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

Резултати

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

Пребарај: #ebola

当前筛选 #ebola清除筛选

Recent travellers to/through Uganda within the past 21 days & are experiencing symptoms associated with #Ebola should call their state ministry of health or 6232 for accurate diagnosis. DO NOT visit health facilities to avoid the risk of spread through public/private transport.

Hashtags

📢#Ebola Travel Advisory ⛔Avoid all but essential travel to UGANDA 🤒Avoid contact with obviously sick persons/#EVD suspected cases 📞Call 6232 (free of charge) if you have recently returned from Uganda within the past 21 days & feel symptoms of #EVD 🔗 https://ncdc.gov.ng/news/423/public-health-advisory-following-declaration-of-ebola-virus-disease-outbreak-in-uganda

Hashtags

🚨 PUBLIC HEALTH ADVISORY 🚨 The Nigeria Centre for Disease Control and Prevention (NCDC) has announced that Nigeria currently has no confirmed case of Ebola Virus Disease (EVD), following the ongoing outbreak in the Democratic Republic of the Congo and a reported imported case in Uganda. 🦠 Ebola Virus Disease is a severe viral illness transmitted through direct contact with infected bodily fluids or contaminated materials. Common symptoms include: ✅Fever ✅Headache ✅Weakness ✅Muscle pain ✅Vomiting ✅Diarrhoea ✅severe cases, unexplained bleeding. The NCDC is actively strengthening surveillance, laboratory readiness, infection prevention, and public awareness efforts across the country. Nigerians are advised to remain calm, maintain good hand hygiene, avoid misinformation, and report unusual illnesses promptly. Stay informed through official public health channels only. Together, we can strengthen preparedness and protect public health. #Ebola#PublicHealth#NCDCNigeria#HealthSecurity

Hong Kong Democracy Movement

@hkdmovement · Post #7370 · 11.05.2024 г., 16:11

Chinese scientists have created a mutant virus by combining a livestock disease with Ebola, resulting in severe symptoms and the death of hamsters. The engineered virus caused systemic diseases and organ failure in the infected hamsters, including impaired vision and scabbing of the eyeballs. The researchers claim their aim was to find safe animal models for studying Ebola symptoms in a lab. If another deadline pandemic emerge, it’s probably from China again. #Ebola#LabResearch#Biosafety https://www.dailymail.co.uk/sciencetech/article-13377471/Hamsters-infected-virus-Ebola.html

#Ebola Virus Disease (EVD) has a high fatality rate, but early detection, supportive care, and strict adherence to preventive measures can significantly reduce risks. ⚠️ Protect yourself and others by following health advisories, practicing good hygiene, and reporting any suspected cases immediately. #EbolaAwareness#HealthyLiving#NCDCNigeria

#Ebola is a serious infectious disease that can spread rapidly if not recognized and contained on time. The signs and symptoms usually appear 2–21 days after exposure. ⚠️ If you or someone around you notices these symptoms, do not ignore them. Seek medical attention immediately and avoid contact with others until cleared by health professionals. 🛡️ Protecting yourself also protects your family, friends, and community. Let’s work together to stop the spread of Ebola. #EbolaAwareness#HealthyLiving#StaySafe

#Ebola is caused by the Ebolavirus — a group of viruses with several species, including Zaire, Sudan, Bundibugyo, Taï Forest, and Reston ebolavirus (which affects animals but not humans). Knowing the cause helps us strengthen prevention and response efforts. 💪🏾 Stay Safe, Stay Protected! #EbolaAwareness#HealthSecurity#NCDCNigeria

#NCDCUpdate We have published an #EbolaVirusDisease care kit for incoming travellers from a country with ongoing transmission of #Ebola. The care kit includes guides to monitor your temperature and symptoms. Download & share via https://ncdc.gov.ng/themes/common/docs/protocols/300_1669297182.pdf #StaySafeStayHealthy

#Ebola doesn’t spread through the air, it spreads through contact! Avoid direct contact with: ➡️ Blood or body fluids of an infected person ➡️Contaminated objects or medical tools ➡️ Infected animals or bushmeats. ⚠️If you feel unwell after contact, report to a healthcare facility immediately. Stay alert, Stay safe! #NCDCNigeria#EbolaPrevention#PublicHealth#StayInformed