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

Резултати

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

Пребарај: #yale

当前筛选 #yale清除筛选

Talabalarimiz hayoti mashhur olimlarning ma'ruzalari bilan yanada qiziqarli o'tmoqda 💥 Bugun dunyoda 9-o'rinda turuvchi Imperial College London oliygohi professori vatandoshimiz Rustam Ibragimov tomonidan iqtisodiyot bo'yicha ma'ruza tashkil etildi. ⚡️ Xorijlik va xorijda tahsil olgan professor o'qituvchilarning darslari va dunyoning top oliygohlarida ishlovchi professor-o'qituvchilarning universitetimizga doimiy kelib ma'ruza o'tishlari talabalarimiz zamonaviy bilimlarni puxta o'rganishlariga imkon yaratadi. 🌐Rustam Ibragimov Yale universitetida tahsil olgan hamda bir necha yil Harvard universitetida dars bergan. Bundan tashqari u Oxford, Cambridge va Columbia universitetlarida ham ta'lim bergan. 🎗 Professor Rustam Ibragimovdek yuksak bilim va tajribaga ega olimlarimiz O'zbekistonga kelib, universitetimizda bilim berayotganliklaridan faxrlanamiz. 🔁English ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖ #guestlecture#harvard#yale#economics ⬇️Biz ijtimoiy tarmoqlarda: Veb-sayt | Telegram | Instagram | Facebook

Addis Standard

@addisstandardeng · Post #21991 · 09.04.2026 г., 07:41

New report cites evidence of alleged military assistance to RSF from #Ethiopian base, raising regional security concerns A new report by the #Yale School of Public Health’s Humanitarian Research Lab (#HRL) says it has found “high confidence” evidence of activity consistent with military assistance by Ethiopia to Sudan’s Rapid Support Forces (#RSF), raising concerns about escalating regional insecurity. The report, published on 8 April, is based on satellite imagery and open-source data collected between late December 2025 and late March 2026. It concludes that such activity is taking place at an Ethiopian National Defense Force (#ENDF) base in #Asosa town, in Ethiopia’s #Benishangul-Gumuz region. HRL says its assessment is based on five key indicators observed at the Asosa base and not found at 14 other ENDF installations reviewed for comparison. One of the central findings is the repeated presence of non-military commercial car carriers........ Read more: https://addisstandard.com/?p=56448

MessageInABottle

@mib_messageinabottle · Post #6824 · 20.05.2024 г., 10:55

A legal group submitted to the #UN the most thorough legal analysis of Israel's actions concluding it is committing genocide against Palestinians in Gaza. This is probably the most complete report to date that demonstrates how #Israel's attacks on #Palestinians in #Gaza meet the legal definition of #genocide. It's a 100-page report, by legal experts at #Boston University School of Law, #Cornell Law School, #Yale Law School, and others. The report's conclusion: "Israel has committed the #genocidal acts of #killing, causing serious harm to, and inflicting conditions of life calculated to bring about the physical #destruction of #Palestinians in #Gaza, a protected group that forms a substantial part of the Palestinian people. These #genocidal acts have been motivated by the requisite genocidal intent, as evidenced in this report by the statements of #Israeli leaders, the character of the State and its forces’ conduct against and relating to Palestinians in Gaza, and the direct nexus between them."