TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #421 · 23 мар.

Мы используем Makefile думая, что нет альтернатив, что это стандарт и всё такое. Но make это не запускалка команд, а система сборки. Мы фактически используем его не по назначению. И на самом деле альтернатива есть! Некоторое время назад я открыл для себя прекрасный инструмент - just. Он решает все проблемы make. just - это не система сборки как make, это именно исполнитель команд! Больше никаких Phony Targets и табуляций, привет нормальный синтаксис и передача аргументов!!! 😎 ⭐️Что умеет just: ✅ Автодокументирование команд Не нужно делать отдельную команду с докой, просто добавь комментарий # команда сборки build: ... $ just --list Available recipes: build # команда сборки Команда с именем default запускается по умолчанию если не указано другое, так что я обычно делаю так: default: just --list Теперь просто выполняем just и получаем доку из текущего файла. ✅ Удобная работа с переменными окружения # загрузить из .env set dotenv-load # глобальная переменная export PYTHONPATH := "./src" # переменная для команды test $TESTUNG="true": pytest ✅ Передача аргументов build target: @echo 'Build {{target}}...' команда запуска $ just build dev # Build dev... ✅ Выбор интерпретатора прямо в команде Пример с инлайн-скриптом на python: system: #!/usr/bin/env python3 import platform print(platform.system()) Эта же функция позволит выполнить скрипт как одну команду вместо перезапуска шела для каждой строки foo: #!/usr/bin/env sh for file in ls .; do echo $file done ✅ Выполнение команды в определенной директории. Можно указать как релятивный путь так и абсолютный [working-directory: 'backend'] build: docker compose build Также можно задать рабочую директорию глобально Там еще много интересного: - поддержка функций - автокомплиты и интеграции - экспрешены - алиасы команд - группировка команд - альтернативы команды под разные ОС - импорт других just-файлов - цветной вывод - ... и другие штуковины! Так что вперёд - ➡️ читать доку! Репозиторий: ➡️https://github.com/casey/just Статья: ➡️https://www.chicks.net/reference/file_formats/just/ ЗЫ. Кажется, на Makefile я уже не вернусь) #tools

Hashtags

Резултати

Пронајдени 7 слични објави

Пребарај: #dengueprevention

当前筛选 #dengueprevention清除筛选
NEA Singapore

@NEASingapore · Post #642 · 11.09.2023 г., 06:36

A female Aedes mosquito gets infected with the Dengue virus when it bites a person infected with dengue. It then transmits dengue to other healthy individuals it goes on to bite. Help to break the dengue transmission cycle! ✅ Everyone should use insect repellent and carry out other S-A-W actions to protect themselves from being bitten by mosquitoes. ✅ Those diagnosed with or suspected to be infected with dengue are also advised to avoid further mosquito bites, to prevent passing on the Dengue virus to mosquitoes and other people in their neighbourhoods. S-A-W: ✅ Spray insecticide in dark corners around the house ✅ Apply insect repellent regularly ✅ Wear long-sleeve tops and long pants 📱 Download the myENV app to receive alerts on high Aedes mosquito populations near you, or visit go.gov.sg/dengue-high-risk #DenguePrevention

NEA Singapore

@NEASingapore · Post #963 · 17.12.2024 г., 01:01

Heading out for holiday adventures? Before you dash, don’t give the mozzies any room to stay! Follow the B-L-O-C-K steps and mozzie-proof your home before you roam: ✅ Break up hardened soil ✅ Lift and empty flowerpot plates ✅ Overturn pails and wipe their rims ✅ Change water in vases ✅ Keep roof gutters clear and place BTI insecticide Let’s make this holiday season not only merry but also mindful. #BLOCKDengue#DenguePrevention

NEA Singapore

@NEASingapore · Post #708 · 03.12.2023 г., 01:02

Going on your festive holiday escapade? 🏖 Give the mozzies no room to stay! Follow the B-L-O-C-K steps and mozzie-proof your home before you roam: ✅ Break up hardened soil ✅ Lift and empty flowerpot plates ✅ Overturn pails and wipe their rims ✅ Change water in vases ✅ Keep roof gutters clear and place BTI insecticide Together, we can keep dengue at bay. Learn more: https://go.gov.sg/mozzieproof #BLOCKDengue#DenguePrevention

NEA Singapore

@NEASingapore · Post #145 · 30.12.2020 г., 06:57

#SGDengueUpdate The number of active dengue clusters reported continues to remain high, with 64 active clusters reported as of 28 Dec. 198 dengue cases were reported in the week ending 26 Dec, and the cumulative number of dengue cases for this year stands at more than 35,100. Let’s keep up our #DenguePrevention efforts and continue doing the #MozzieWipeout at least once a week. Find out what else you can do to protect yourself and your family at go.gov.sg/mozzieproof

NEA Singapore

@NEASingapore · Post #140 · 18.12.2020 г., 08:50

#SGDengueUpdate As of 17 Dec 2020, there have been 34,844 reported dengue cases this year, with 228 cases reported last week. While NEA has closed about 98% of the dengue clusters notified since the beginning of 2020, there are still over 230 residential areas with high Aedes aegypti mosquito population currently. So let’s stay vigilant and keep up our #DenguePrevention efforts. If you’re planning to go for a staycation, don’t forget to do the #MozzieWipeout first! Learn more: go.gov.sg/mozzieproof

NEA Singapore

@NEASingapore · Post #1025 · 11.04.2025 г., 01:05

🦟They’re small, they’re pesky, and they’re definitely not welcome! Mosquitoes love stagnant water - don’t let them crash the party. It’s time for a Real-World Quest! Carry out the #BLOCKdengue steps at least once a week and mozzie-proof your home: ✅ Break up hardened soil ✅ Lift and empty flowerpot plates ✅ Overturn pails and wipe their rims ✅ Change water in vases ✅ Keep roof gutters clear and place BTI insecticide #DenguePrevention#Minecraft

NEA Singapore

@NEASingapore · Post #1174 · 26.11.2025 г., 01:04

Don't let your home become the Upside Down for mozzies! 🦟 The #BLOCKdengue steps are your weekly defence against these tiny monsters. Do these at least once a week: ✅ Break up hardened soil ✅ Lift and empty flowerpot plates ✅ Overturn pails and wipe their rims ✅ Change water in vases ✅ Keep roof gutters clear and add BTI insecticide #DenguePrevention#StrangerThings