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

Резултати

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

Пребарај: #mammals

当前筛选 #mammals清除筛选
Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40926 · 14.04.2026 г., 12:07

A dolphin can make about 700 to 1000 clicking sounds per second. The clicks come from deep inside the dolphin’s head, underneath the blowhole. Scientists call this area the phonic lips or sometimes “monkey lips.” @googlefactss#mammals

Hashtags

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40940 · 17.04.2026 г., 06:24

There are two main groups of bats: larger, Old World, fruit-eating mega bats (Megachiroptera) and microbats (Microchiroptera). Megabats are also known as fruit bats or flying foxes and typically live in warm climates. They use their large eyes to find food in the dark and they tend to roost in trees rather than in caves, crevices, or old buildings. Microbats are generally much smaller and use echolocation to find insects. Microbats are typically found all over the world, including the U.S. Not all megabats are larger than microbats. @googlefactss#mammals#nowyouknow

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40248 · 04.12.2025 г., 07:02

A mother koala 🐨 will feed her baby her own feces known as pap. Baby koalas—or joeys—haven’t developed the intestinal bacteria 🦠 that help detoxify the highly poisonous eucalyptus leaves 🍃, which are a koala’s main diet. This process is crucial for their survival. ❤️ @googlefactss#animals#mammals

Interesting Planet 🌍

@interesting_planet_facts · Post #482 · 01.08.2025 г., 20:22

🌎 In the dense forests of Southeast Asia, the binturong uses its prehensile tail like a fifth limb—wrapping it around tree branches for balance and grip. This adaptation helps it nimbly move through the canopy and reach fruit high above the forest floor. ✨ #mammals⚡#adaptation⚡#rainforest 👉subscribe Interesting Planet

Interesting Planet 🌍

@interesting_planet_facts · Post #399 · 23.07.2025 г., 20:22

🌎 The silky anteater is the world’s smallest anteater, fitting in your hand! With dense golden fur and a prehensile tail, it climbs trees at night to slurp up ants, avoiding predators with its tiny size and camouflage. ✨ #mammals⚡#rainforest⚡#adaptation 👉subscribe Interesting Planet

Interesting Planet 🌍

@interesting_planet_facts · Post #547 · 12.08.2025 г., 16:22

🌎 In the remote forests of India, the Malabar giant squirrel can leap over 6 meters between trees. Its colorful fur blends red, purple, and orange tones, making it one of the world’s most striking mammals. ✨ #wildlife⚡#biodiversity⚡#mammals 👉subscribe Interesting Planet

Interesting Planet 🌍

@interesting_planet_facts · Post #456 · 29.07.2025 г., 13:22

🌎 In the icy landscapes of Greenland, musk oxen survive Arctic winters thanks to an incredibly dense undercoat called qiviut, which is eight times warmer than sheep’s wool. This soft fiber insulates these shaggy animals so well that snow won't melt on their backs, even in the harshest cold. ✨ #mammals⚡#adaptation⚡#arctic 👉subscribe Interesting Planet

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40837 · 21.03.2026 г., 05:57

There's an animal that smells like buttered popcorn. The binturong (Arctictis binturong), a Southeast Asian "bearcat," smells like buttered popcorn due to 2-acetyl-1-pyrroline (2-AP) in its urine, which it uses to mark territory. This chemical is the same aromatic compound produced when popcorn is popped. These arboreal, cat-like mammals are threatened by habitat loss. @googlefactss#animals#mammals#bizarre [read more....]

Interesting Planet 🌍

@interesting_planet_facts · Post #1318 · 26.02.2026 г., 22:11

🌎 Every year, saiga antelopes in Central Asia undertake one of the largest mammal migrations, moving up to 1,200 kilometers across Kazakhstan and Russia. These critically endangered animals travel in herds of thousands to reach seasonal grazing areas, helping their calves survive harsh winters. ✨ #wildlife⚡#migration⚡#mammals 👉subscribe Interesting Planet 👉more Channels ​

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