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

Резултати

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

Пребарај: #animalfacts

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

@googlefactss · Post #40352 · 18.12.2025 г., 07:01

The average lifespan of a goldfish (Carassius auratus) is 10-15 years, with some varieties living into their thirties when properly cared for. However, one male goldfish named Tish (1956-1999) lived to the remarkable age of 43, making him the world’s oldest goldfish ever. [Read more] @googlefactss #FunFact#AnimalFacts#fish

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40094 · 15.11.2025 г., 11:03

Cats have three types of color-detecting cones, just like humans, but see colors less vividly. They perceive blues and greens well, but reds and pinks may appear grayish. Their vision excels at detecting subtle movement, especially in dim light. 🔵🟢🌙 [Read more] [See here] @googlefactss#CatVision#AnimalFacts#Science

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40438 · 30.12.2025 г., 07:02

Beavers build dams to protect themselves from predators like bears and wolves. They live in lodges, not in the dam itself, on deep ponds made by the dams. These lodges have underwater entrances, so beavers can safely enter and leave without being seen. The pond keeps land animals away and the lodge is a dry home and food storage. 🦫🌊🌿@googlefactss#Beavers#Wildlife#Nature#AnimalFacts

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40414 · 26.12.2025 г., 11:00

Llamas spit to protect themselves, keep their place, or show power. Males spit in fights over females. Females spit to stop males. They also spit when annoyed or mistreated. Llama spit has saliva and partly digested food. It can fly up to 10 meters (33 feet). 🦙💨 [Source] @googlefactss#Llamas#AnimalFacts#Spitting

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40974 · 25.04.2026 г., 14:01

Penguins have several group names. A group in water is called a “raft.” On land, it is called a “waddle.” A large group of penguins living or breeding together is called a “colony.” The place where they gather to breed is also called a “rookery.” 🐧🌊🏝️🐣 [Read more] @googlefactss #Penguins#AnimalFacts#Wildlife#DidYouKnow

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40697 · 24.02.2026 г., 09:20

Elephants can “listen” with their feet. Their foot pads have special nerve receptors that detect ground vibrations, including very low-frequency infrasound. Vibrations from other elephants’ rumbles or footsteps travel through the ground. Signals move through their bodies to the brain. Vibrations can also reach the inner ear through bone conduction. This helps elephants communicate over long distances and sense distant movement. 🐘🌍👣🔊 [Read more] @googlefactss #Elephants#AnimalFacts#Wildlife#Nature#Science#DidYouKnow

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40226 · 30.11.2025 г., 15:02

🐾 Capybaras are the world's largest rodents — social, semi-aquatic animals that live in groups in South America. They're so calm that other animals often sit on them, and they can even sleep underwater! 🌊 [Learn more] @googlefactss#Capybara#AnimalFacts#Nature#Rodents#Wildlife

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40808 · 16.03.2026 г., 15:00

Snow leopards are sometimes seen biting or holding their own tails. Scientists think they may do this to stay warm in cold mountain habitats or to play. A snow leopard’s long, thick tail also helps it balance on steep rocky cliffs and can wrap around its body like a blanket. 🐆❄️🐾 [Read more 1] [Read more 2] @googlefactss #snowleopard#animalfacts#wildlife#naturefacts#bigcats#didyouknow

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