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

Резултати

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

Пребарај: #tarantulanebula

当前筛选 #tarantulanebula清除筛选
Universe Mysteries 🪐

@cosmomyst · Post #32 · 30.07.2025 г., 04:51

🪐 The Tarantula Nebula in the Large Magellanic Cloud is the most active star-forming region in the Local Group of galaxies, producing some of the most massive stars ever observed. Inside this cosmic web, the star R136a1 blazes with a mass over 250 times that of the Sun, pushing the boundaries of how big stars can grow before they collapse. ✨ #TarantulaNebula⚡#starformation⚡#R136a1 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #493 · 12.11.2025 г., 12:21

🪐 The pulsar PSR J0537−6910, spinning an incredible 62 times per second, sits in the Tarantula Nebula of the Large Magellanic Cloud and holds the record for the fastest known "glitches." Glitches are sudden jumps in a pulsar’s rotation speed—caused by internal adjustments in these ultra-dense, spinning neutron stars—and PSR J0537−6910’s frequent glitches help scientists unlock secrets about the strange matter inside these cosmic lighthouses. ✨ #pulsars⚡#neutronstars⚡#tarantulanebula⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #729 · 01.04.2026 г., 22:21

🪐 The rapidly spinning star VFTS 102, found in the Tarantula Nebula of the Large Magellanic Cloud, is one of the fastest rotating stars ever observed—spinning at over 2 million kilometers per hour. This extreme speed stretches the star into an oblate shape and may be the result of a dramatic past, possibly caused by a close encounter or collision with another star. ✨ #unusualstars⚡#tarantulanebula⚡#rotation⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #431 · 16.10.2025 г., 12:21

🪐 The star VFTS 352, located in the Tarantula Nebula about 160,000 light-years away, is actually two massive stars orbiting each other so closely that their outer layers touch—creating a rare "overcontact binary." This unusual system is on the verge of merging, and both stars are so hot and bright that their shared atmosphere fuses them together, making VFTS 352 one of the most extreme examples of stellar partnership ever found. ✨ #unusualstars⚡#binaries⚡#TarantulaNebula⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #247 · 09.09.2025 г., 16:11

🪐 In the Tarantula Nebula of the Large Magellanic Cloud, light from young, massive stars races outward at the universal speed limit—299,792 kilometers per second—helping illuminate vast clouds of gas across 1,000 light-years of space. Because nothing can travel faster than this speed in a vacuum, the glow we see from such stellar nurseries is always an echo from the past, showing us cosmic events exactly as they unfolded years, decades, or even millennia ago. ✨ #speedoflight⚡#tarantulanebula⚡#largemagellaniccloud⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #554 · 12.12.2025 г., 22:21

🪐 The star R136a1, found in the Tarantula Nebula of the Large Magellanic Cloud, is considered the most massive known star, weighing in at about 215 times the mass of our Sun. Unlike ordinary stars, R136a1 is so hot and bright that it blasts vast amounts of its own material into space, shortening its lifespan to just a few million years—an incredibly brief existence for such a cosmic giant. ✨ #unusualstars⚡#tarantulanebula⚡#stellarphysics⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​