@amneumarkt · Post #721 · 16.01.2026 г., 06:26
#visualization This is actually smart. https://medium.com/@redhotchilipaper/using-trapezoids-to-visualize-matrix-multiplication-with-applications-to-data-science-e1cff40de098
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #411 · 9 фев.
reload_flag="" if [[ -n "${DEBUG}" ]]; then reload_flag="--reload" fi if [[ -n "${WORKER_COUNT}" ]]; then workers=${WORKER_COUNT} else workers=2 fi gunicorn --workers ${workers} \ --bind 0.0.0.0:8000 \ ${reload_flag} main.wsgi Писали такие конструкции чтобы проверить наличие флага и сформировать команду правильно? На самом деле можно сделать тоже самое проще. Для этого используются операторы условной подстановки, доступные в оболочках семейства POSIX. :- для установки значений по умолчанию ${WORKER_COUNT:-2} Если переменная не объявлена, то будет дефолтное значение 2. :+ подставляет указанный текст, если переменная не пуста ${DEBUG:+--reload} Если что-то есть в переменной то распечатается текст после символа +, в противном случае - ничего. Удобно для опциональных флагов, как в нашем примере. Итого наш скрипт может выглядеть так: gunicorn --workers ${WORKER_COUNT:-2} \ --bind 0.0.0.0:8000 \ ${DEBUG:+--reload} main.wsgi Есть еще два оператора. := не только подставить дефолтное значение, но и присвоить его переменной, если она пуста # никаких переменных еще нет VAL1=${VAL2:=hello} # теперь доступны обе echo $VAL1 $VAL2 # hello hello :? остановить выполнение с ошибкой, если переменной нет. echo ${MISS:?is required} bash: MISS: is required Код выхода будет 1. #tricks#linux
Пребарај: #visualization
@amneumarkt · Post #721 · 16.01.2026 г., 06:26
#visualization This is actually smart. https://medium.com/@redhotchilipaper/using-trapezoids-to-visualize-matrix-multiplication-with-applications-to-data-science-e1cff40de098
Hashtags
@amneumarkt · Post #713 · 19.12.2025 г., 17:44
#visualization Broken Chart: discover 9 visualization alternatives – Dr Dominic Royé https://dominicroye.github.io/blog/2025-12-14-broken-charts/
Hashtags
@amneumarkt · Post #649 · 05.12.2024 г., 21:01
#visualization introduction | Deneb https://deneb-viz.github.io/
Hashtags
@amneumarkt · Post #646 · 29.11.2024 г., 04:09
#visualization Plotly will supports polars natively in v6 . https://github.com/plotly/plotly.py/releases/tag/v6.0.0rc0
Hashtags
@amneumarkt · Post #643 · 24.11.2024 г., 15:57
#visualization Dashboard Deutschland https://www.dashboard-deutschland.de/
Hashtags
@amneumarkt · Post #619 · 04.09.2024 г., 17:35
#visualization The Data Viz Tools We Used In 2023 https://data-viz-tools-2023.netlify.app
Hashtags
@amneumarkt · Post #614 · 18.08.2024 г., 07:47
#visualization There was a joke saying that every tree in Germany has been touched by some human. There's even a research on the topic of how dense the buildings are in Germany. Based on this research, the farthest distance that is away from a building is only 6.3km. I just can't believe this. I feel something is wrong but I don't have data to validate. Behnisch, Martin, Martin Schorcht, Steffen Kriewald, and Diego Rybski. 2019. “Settlement Percolation: A Study of Building Connectivity and Poles of Inaccessibility.” Landscape and Urban Planning 191 (103631): 103631.
Hashtags
@amneumarkt · Post #592 · 27.06.2024 г., 21:56
#visualization Beautiful. There are details that the author designed quite well. How long are the nights? https://plotparade.com/gallery_sunrise.html
Hashtags
@amneumarkt · Post #566 · 29.03.2024 г., 13:55
#visualization Some comments in this post are just so funny. https://www.reddit.com/r/MapPorn/s/HsLvLGzLb6
Hashtags
@amneumarkt · Post #518 · 20.12.2023 г., 08:35
#visualization Source: https://www.statista.com/statistics/520952/netherlands-number-of-live-born-children-by-marital-status-of-the-mother/
Hashtags
@amneumarkt · Post #514 · 01.12.2023 г., 15:12
#visualization Finland vs UK, and Turkiye/Turkey is such a nice example of data quality issues. https://www.reddit.com/r/MapPorn/s/QYGauVmzOP
Hashtags
@amneumarkt · Post #505 · 09.11.2023 г., 19:13
#visualization https://www.reddit.com/r/dataisbeautiful/s/V05LnvCzqC
Hashtags