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

Резултати

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

Пребарај: #earthquake

当前筛选 #earthquake清除筛选
Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3061 · 17.08.2024 г., 19:47

A powerful 7.4 magnitude earthquake has struck 107 km ESE of Petropavlovsk-Kamchatsky, Russia, near the Kamchatka region. Local authorities are closely monitoring the situation due to the risk of significant aftershocks and potential tsunamis. #Earthquake#Russia

Interesting Planet 🌍

@interesting_planet_facts · Post #707 · 07.09.2025 г., 20:22

🌎 After a 2010 earthquake in Haiti, a pig named "Lucky" survived buried under rubble for 27 days. He lived by eating charcoal and licking moisture from debris until rescue workers pulled him out alive. ✨ #survival⚡#animals⚡#earthquake 👉subscribe Interesting Planet ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1048 · 17.11.2025 г., 22:11

🌎 The 1755 Lisbon earthquake was one of the most destructive natural catastrophes in European history. The quake, followed by a tsunami and fires, destroyed much of Lisbon and killed up to 50,000 people. Its impact led to major advances in seismology and influenced Enlightenment thinking about disasters. ✨ #earthquake⚡#tsunami⚡#history 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #900 · 12.10.2025 г., 22:11

🌎 An enormous tsunami struck the Indian Ocean on December 26, 2004 after a magnitude 9.1 earthquake off Sumatra. Waves up to 30 meters high inundated coasts in 14 countries, killing over 230,000 people and displacing millions, making it one of the deadliest natural disasters in recorded history. ✨ #tsunami⚡#earthquake⚡#history 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #807 · 24.09.2025 г., 15:11

🌎 Trapped under debris for 17 days after a 2015 Nepal earthquake, Pemba Tamang survived by drinking muddy water dripping from rubble and eating small snacks. He emerged with only minor injuries after nearly 2½ weeks underground, making it one of the longest earthquake survival cases recorded. ✨ #survival⚡#earthquake⚡#resilience 👉subscribe Interesting Planet 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #506 · 10.12.2025 г., 20:31

🌍 The 2018 Sulawesi earthquake in Indonesia triggered a rare "soil liquefaction," turning solid ground into a flowing sludge that swallowed entire neighborhoods beneath muddy waves. ✨ #disasters⚡#earthquake⚡#liquefaction⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #433 · 04.11.2025 г., 12:31

🌍 Earthquakes under the ocean can create tsunamis—giant waves traveling at jet speed. A tsunami may cross an entire ocean before reaching land with just minutes’ warning. ✨ #tsunami⚡#earthquake⚡#hazards⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #359 · 11.10.2025 г., 15:31

🌍 The 1811–1812 New Madrid earthquakes in the central United States were so powerful they briefly made the Mississippi River flow backward, reshaping the landscape far from any plate boundary. ✨ #disaster⚡#earthquake⚡#river⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40448 · 31.12.2025 г., 19:01

The 2011 Japan earthquake (8.9 magnitude) made Earth spin faster, shortening the day by 1.8 microseconds. It moved Japan’s main island 8 feet and shifted Earth’s axis by 6.5 inches. The 2010 Chile quake (8.8) and 2004 Sumatra quake (9.1) also shortened the day by small amounts. Earthquakes change Earth’s mass, making it spin quicker like a figure skater. 🌍⏱️ [Read more] @googlefactss#Earthquake#DayLength#EarthRotation

Interesting Planet 🌍

@interesting_planet_facts · Post #1138 · 17.12.2025 г., 18:11

🌎 The Tōhoku earthquake and tsunami struck Japan on March 11, 2011, with a magnitude 9.0 quake and waves up to 40 meters. This disaster caused over 15,000 deaths, triggered the Fukushima nuclear accident, and shifted the Japanese coast by up to 2.4 meters. ✨ #earthquake⚡#tsunami⚡#fukushima 👉subscribe Interesting Planet 👉more Channels ​

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