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 слични објави

Пребарај: #phenomena

当前筛选 #phenomena清除筛选
Interesting Planet 🌍

@interesting_planet_facts · Post #675 · 02.09.2025 г., 16:22

🌎 In the sky over northern Norway, rare “polar stratospheric clouds” shine with vivid colors at twilight. These icy clouds form high above the Arctic, scattering sunlight into dazzling pastel waves—a fleeting phenomenon that can transform winter skies into a surreal rainbow spectacle. ✨ #atmosphere⚡#arctic⚡#phenomena 👉subscribe Interesting Planet ​

Amazing Geography 🌍

@amazingeo · Post #198 · 08.09.2025 г., 09:12

🌍 Some sandy coastlines can actually sing. In places like Oman and California, movement of millions of sand grains produces a deep hum or booming sound called "singing sands." ✨ #coast⚡#sand⚡#phenomena⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1265 · 31.01.2026 г., 22:11

🌎 In the Namib Desert, strange circular patches called “fairy circles” appear in the grass, forming patterns seen from the air. Scientists suspect termites or plant competition cause these barren rings, which can measure 2 to 15 meters wide and last for decades. ✨ #desert⚡#phenomena⚡#patterns 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1305 · 20.02.2026 г., 12:11

🌎 Red rain fell in the Indian state of Kerala in 2001, coloring streets and clothing. Scientists found the cause was airborne spores from local algae cells. Some showers were bright red for up to two months. ✨ #phenomena⚡#weather⚡#algae 👉subscribe Interesting Planet 👉more Channels ​

"Nunca habíamos visto nada igual..." Algo aterrador está sucediendo en Estados Unidos (2025) Únase a nosotros: https://anon.news 🔘En este video, el mundo quedó atónito ante la repentina aparición de un elegante monolito metálico en los remotos desiertos de Utah. Alto y silencioso, el objeto guardaba un asombroso parecido con los monolitos de 2001: Odisea del Espacio, y luego, con la misma incógnita, desapareció. Desde entonces, han aparecido docenas de estructuras similares en lugares de todo el mundo, desde las montañas nevadas de Rumania hasta las playas de California, las selvas de Colombia y los tejados de las ciudades europeas. ¿Son instalaciones artísticas, engaños elaborados o algo más enigmático? Cada monolito parece surgir sin previo aviso, a menudo en lugares de difícil acceso, y sin que nadie se atribuya la responsabilidad. Algunos son espejados y minimalistas; otros están grabados con símbolos crípticos. El fenómeno ha desatado la intriga mundial, generando teorías de conspiración, videos virales y un auge en el debate especulativo sobre la vida extraterrestre, las sociedades secretas y la conciencia colectiva. #unexplained#strange#phenomena @EndTimesProductions@Jaymez

Interesting Planet 🌍

@interesting_planet_facts · Post #622 · 24.08.2025 г., 18:22

🌎 Nature's own "blood rain" sometimes showers the Earth! This rare phenomenon happens when winds lift red Sahara dust into rainclouds—turning rainwater a rusty red as it falls. ✨ #phenomena⚡#weather⚡#Sahara 👉subscribe Interesting Planet ​

Universe Mysteries 🪐

@cosmomyst · Post #66 · 02.08.2025 г., 13:12

🪐 In the distant galaxy MACS J1149+2223, astronomers have witnessed an unusual event called a "refreshed" supernova, where a massive star's explosion appeared to brighten twice, likely caused by material from the original blast catching up to the shockwave years later. This rare phenomenon allows scientists to observe the same supernova event evolving in real time, a cosmic encore not often seen in the universe. ✨ #supernova⚡#galaxy⚡#phenomena⚡#nasa⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #143 · 16.08.2025 г., 20:11

🪐 In the galaxy SDSS J135154.46+132719.1, astronomers have observed a striking phenomenon: a supermassive black hole that was caught being "kicked" out of its galaxy at nearly 7.5 million kilometers per hour. This cosmic eviction is thought to be caused by the merged black holes’ gravitational waves pushing the giant object away—an extreme event where the very heart of a galaxy is flung into intergalactic space. ✨ #phenomena⚡#galaxy⚡#blackhole⚡#nasa⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #693 · 24.02.2026 г., 22:21

🪐 In the star system V Hydrae, located about 1,300 light-years away in Hydra, astronomers have observed mysterious, high-speed "bullets" of hot gas being violently ejected from the dying red giant star. These jets blast out at speeds up to 800,000 kilometers per hour and appear at regular intervals, creating bizarre patterns of moving material that are among the strangest cosmic outflows seen in our galaxy. ✨ #phenomena⚡#stars⚡#jets⚡#nasa⚡#galaxy⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #208 · 02.09.2025 г., 00:11

🪐 In the galaxy NGC 1999, astronomers observed a mysterious, dark patch once believed to be a dense cloud of cosmic dust blocking light. However, further study revealed this region is actually a rare "hole" in the nebula—an empty cavity punched through the glowing gas by powerful stellar winds from young, massive stars, making it a striking example of cosmic sculpting at work. ✨ #nebula⚡#phenomena⚡#astronomy⚡#nasa⚡#galaxy⚡#stars⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #95 · 07.08.2025 г., 16:11

🪐 In the galaxy NGC 4845, astronomers observed a strange cosmic event where a giant cloud of gas was ripped apart and swallowed by a supermassive black hole. This violent feast caused a sudden, bright flare of X-rays—evidence of what's called a "tidal disruption event," when the intense gravity tears matter apart and feeds it to the black hole, lighting up the galaxy for months. ✨ #phenomena⚡#galaxy⚡#xray⚡#nasa⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Interesting Planet 🌍

@interesting_planet_facts · Post #840 · 30.09.2025 г., 22:11

🌎 The mysterious Hessdalen lights regularly appear in a remote Norwegian valley as glowing orbs floating and darting across the sky. Scientists have observed these lights since the 1930s and believe they may be caused by ionized dust or chemical reactions in the air, but their true origin remains unexplained. Some lights last for hours, and over 60 sightings were recorded in just one month during the 1980s. ✨ #hessdalen⚡#phenomena⚡#norway 👉subscribe Interesting Planet 👉more Channels ​

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