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

Резултати

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

Пребарај: #venus

当前筛选 #venus清除筛选

🚀 Acum 50 de ani, la 22 octombrie 1975, stația automată interplanetară sovietică „Venera-9” a efectuat o aterizare lină pe suprafața planetei Venus. Legătura cu modulul de coborâre a fost menținută timp de 53 de minute. Au fost obținute primele imagini panoramice din lume transmise de pe suprafața altei planete. Tot pentru prima dată au fost efectuate măsurători ale vitezei vântului la suprafața planetei. „Venera-9” a devenit, de asemenea, primul satelit artificial al planetei #Venus din istorie. Această misiune a reprezentat o realizare remarcabilă a științei și tehnicii sovietice, confirmând pozițiile de vârf ale URSS în domeniul explorării spațiale. Datele obținute de „Venera-9” privind temperatura, presiunea și compoziția atmosferei planetei au constituit o contribuție esențială la dezvoltarea planetologiei mondiale. Astăzi, la 50 de ani de la acel eveniment, fapta eroică a inginerilor și oamenilor de știință care au creat „Venera-9” rămâne un simbol al curajului științific și al dorinței omenirii de a cunoaște Universul. 🇷🇺 Rusia este mândră de școala sa spațială, una dintre pietrele de temelie ale istoriei mondiale a explorării cosmosului. 📸 Foto: primele imagini din istorie realizate de pe suprafața planetei Venus, 1975.

Hashtags

Pensive|

@PensivePost · Post #5863 · 14.07.2022 г., 09:57

#review#poetry#venus My mother Blessed with all the might To tolerate my naiveness Blessed with all the courage To withstand my mistakes Amidst she stands with all the beauty With all the light behind her eyes She shows me the way Though are beliefs aren't ever the same Yet she acknowledges my vision When I stumble upon in life She has the weight to balance Encountering all my questions away Believe me or not she's the best in her way No she isn't the very person I'd remember in my toughest times And despite all my dislikes I believe she's the strongest woman I'll ever meet in my life

Pensive|

@PensivePost · Post #5850 · 09.07.2022 г., 06:00

#review#poetry#venus My mother Blessed with all the might To tolerate my naiveness Blessed with all the courage To withstand my mistakes Amidst she stands with all the beauty With all the light behind her eyes She shows me the way Though are beliefs aren't ever the same Yet she acknowledges my vision When I stumble upon in life She has the weight to balance Encountering all my questions away Believe me or not she's the best in her way No she isn't the very person I'd remember in my toughest times And despite all my dislikes I believe she's the strongest woman I'll ever meet in my life

Pensive|

@PensivePost · Post #5819 · 09.06.2022 г., 18:09

#review#poetry#venus Just got away with one Opened a new door Shaped a little fantasy With numerous miracles to adore Stayed with anger so long Realised it was my grief Hadn't it made me this strong I would've stumbled upon in brief Earned a little patience Coiled up with jist of tolerance Tore a few tied interests As a result of unfulfilled wishes Now I can see cure as perception Witnessed fear, failure and hatred all the same So now I wish to love and to be loved Solemnly, perfectly as a beautiful exception Here I stand amidst all wonders Drifting with the flow of life what I've gained as a blessing to realise For one's finest survival mere love would suffice

Pensive|

@PensivePost · Post #5801 · 04.06.2022 г., 15:57

#review#poetry#venus In this world of surprises My life took a turn and I met you Blessed with happiness you took me to the moon But oh my mistrustfulness You left me in a few So For the sake of forgiveness I have an apology I don't know what's wrong with me Still I say I'm sorry , really I'm sure I caused a headache For I'm trying to get distant But I promise I'll try harder But will you have my back at ends??

ПретходнаСтраница 1 од 3Следна