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

Резултати

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

Пребарај: #pulsars

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

@interesting_planet_facts · Post #1014 · 07.11.2025 г., 22:11

🌎 Astronomers have recorded powerful radio signals from space known as pulsars. These are rapidly spinning neutron stars emitting beams of electromagnetic radiation, pulsing at regular intervals. The first pulsar was discovered in 1967, and some spin hundreds of times per second. ✨ #astronomy⚡#pulsars⚡#space 👉subscribe Interesting Planet 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #29 · 30.07.2025 г., 03:00

🪐 The ultra-dense pulsar PSR B1257+12, located in the constellation Virgo about 2,300 light-years from Earth, hosts the first confirmed exoplanets ever discovered. These three worlds—each orbiting this spinning neutron star—endure intense radiation, making them some of the most hostile planets in the known galaxy. ✨ #pulsars⚡#exoplanets⚡#neutronstars 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #593 · 31.12.2025 г., 22:21

🪐 Deep in the heart of galaxy 4C +37.11, astronomers have found a pair of supermassive black holes separated by just 24 light-years, each powering its own quasar—an extremely bright object fueled by matter falling into a black hole. Quasars outshine entire galaxies, and the unique twin system in 4C +37.11 gives scientists a rare look at how two powerful quasars can exist side by side, lighting up their galaxy with intense energy streams. ✨ #quasars⚡#pulsars⚡#galaxies⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #309 · 21.09.2025 г., 20:21

🪐 In July 2023, the NANOGrav collaboration announced the detection of a subtle, continuous "hum" of gravitational waves rippling through the Milky Way, likely created by pairs of supermassive black holes orbiting each other in distant galaxies. Gravitational waves are tiny ripples in space itself, first predicted by Einstein, and their detection with pulsar timing arrays—using rapidly spinning stars that act as cosmic clocks—opens a new era for exploring invisible giants and the history of galaxy mergers across the universe. ✨ #gravitationalwaves⚡#pulsars⚡#blackholes⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #228 · 05.09.2025 г., 20:11

🪐 In 2023, scientists using pulsars—ultra-dense, spinning stars that emit radio pulses like cosmic clocks—detected a faint background hum of gravitational waves rippling through our galaxy. These gravitational waves, created by supermassive black holes merging in distant galaxies, gently stretch and squeeze the fabric of space, opening an entirely new window into the universe’s most titanic collisions. ✨ #gravitationalwaves⚡#pulsars⚡#blackholes⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #476 · 03.11.2025 г., 22:21

🪐 In the nearby galaxy Messier 82, astronomers have detected a pulsar that produces incredibly bright X-ray flashes, making it one of the brightest known X-ray pulsars in the universe. Unlike most pulsars, which are remnants of massive exploded stars spinning rapidly and emitting beams of energy, this X-ray pulsar (named M82 X-2) pulls in material from a companion star, causing it to outshine even many black holes in its intense brilliance. ✨ #pulsars⚡#xray⚡#galaxies⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #639 · 25.01.2026 г., 12:21

🪐 The quasar TON 618, found more than 10 billion light-years away in the constellation Canes Venatici, hosts one of the largest known black holes with a mass over 60 billion times that of our Sun. Quasars are incredibly bright objects powered by material falling into supermassive black holes, while pulsars—like the famous Vela Pulsar in our galaxy—are ultra-dense, spinning neutron stars that send out regular beams of radio waves, acting like cosmic lighthouses for astronomers. ✨ #quasars⚡#pulsars⚡#blackholes⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #263 · 13.09.2025 г., 00:11

🪐 In 1967, astronomers discovered the first pulsar, now known as PSR B1919+21, a rapidly spinning neutron star that sends out regular radio pulses like a cosmic lighthouse. Unlike pulsars, quasars such as 3C 273 are the blazing hearts of distant galaxies, powered by supermassive black holes devouring matter and shining brighter than whole galaxies—making both objects among the most extreme and mysterious beacons in the universe. ✨ #pulsars⚡#quasars⚡#neutronstars⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #199 · 27.08.2025 г., 20:11

🪐 Deep inside the galaxy 3C 273, astronomers have identified a quasar—a super-bright region powered by a supermassive black hole eating up material, causing it to shine with light brighter than entire galaxies. Meanwhile, the Crab Pulsar in the Crab Nebula is a rapidly spinning neutron star left over from a massive star’s explosion, sending out beams of radio waves and light as it spins—a cosmic lighthouse flashing 30 times a second. ✨ #quasars⚡#pulsars⚡#supernova⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉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 #351 · 30.09.2025 г., 12:21

🪐 Deep in the constellation Virgo, the double pulsar system PSR J0737−3039A/B is made of two neutron stars—tiny, ultra-dense remnants of massive stars—that both emit regular radio pulses as they orbit each other every 2.4 hours. This unique cosmic pair lets scientists observe the effects of extreme gravity, as one pulsar passes through the other’s powerful wind and their orbit slowly shrinks—confirming predictions from Einstein's theory of general relativity in an environment unlike anywhere else in the universe. ✨ #quasars⚡#pulsars⚡#gravity⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #621 · 14.01.2026 г., 12:21

🪐 Deep in the constellation Draco lies the pulsar PSR J2222−0137, a unique spinning neutron star about 900 light-years from Earth that forms a binary system with a faint white dwarf. PSR J2222−0137 spins once every 33 milliseconds, and its partner is one of the coolest known white dwarfs, so cold that its surface may be made of crystallized oxygen—offering a rare glimpse of two extreme stellar remnants circling each other in quiet cosmic partnership. ✨ #pulsars⚡#binaries⚡#neutronstars⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

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