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

Резултати

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

Пребарај: #elephants

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

@interesting_planet_facts · Post #484 · 02.08.2025 г., 03:22

🌎 Deep in the Congo Basin, the African rainforest elephant forges secret trails through dense jungle, creating “elephant highways” that other animals use. These hidden paths help shape entire forest ecosystems by opening routes for seed dispersal and wildlife movement. ✨ #rainforest⚡#elephants⚡#ecosystems 👉subscribe Interesting Planet

Interesting Planet 🌍

@interesting_planet_facts · Post #1312 · 23.02.2026 г., 22:11

🌎 Elephants communicate using deep rumbles that travel through the ground as seismic vibrations. These low-frequency sounds allow herds to “hear” each other from several kilometers away, even when out of sight. ✨ #elephants⚡#communication⚡#animalbehavior 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #783 · 19.09.2025 г., 20:22

🌎 Elephants use infrasound—low-frequency sounds below human hearing—to communicate over distances of several kilometers. These vibrations travel through the ground and air, letting herds coordinate movements and warn of threats. Elephant infrasound calls can be detected up to 10 km away in open savanna. ✨ #elephants⚡#communication⚡#animalintelligence 👉subscribe Interesting Planet ​

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

💛The Power of a Mother’s Love In Kruger National Park, South Africa, an elephant cow rescued her calf as it was being swept away by a powerful current. 📹 The touching footage comes from an area affected by severe flooding. The natural disaster caused serious damage to the park’s infrastructure: people were evacuated, and some animals had to fend for themselves. According to park officials, most animals moved to higher ground in advance — but not all managed to escape the danger. 🔗Video: https://t.me/aifonline/177687 #SouthAfrica#Wildlife#Nature#Elephants#MothersLove#KrugerNationalPark

🐘🍊Стадо слонов-воришек в провинции Лимпопо, ЮАР, полакомилось апельсинами, которые перевозил сломавшийся в дороге грузовик. _________________________ 🐘🍊 A herd of opportunistic elephants in Limpopo, South Africa, helped themselves to a feast of oranges transported by a truck that had broken on the road. 📹https://www.youtube.com/watch?v=-i5_brrf1cc #ЮАР#Слоны#Природа#Африка#Животные #SouthAfrica#Elephants#Wildlife#Nature#Africa

🇿🇦Tembe Elephant Park🐘 The park was established in the north-eastern part of South Africa in 1983 to protect elephants migrating between South Africa and Mozambique. 🌍 It opened to visitors in 1991 and is now home to about 250 of the largest elephants in the world. 🏞 If you’re into safaris, you can also spot the rest of the Big Five — 🦁 lions, 🐆 leopards, 🦏 rhinos, and 🐃 buffalo. 🎥 Live video: 👉https://www.youtube.com/watch?v=VUJbDTIYlM4 #SouthAfrica#Nature#Safari#BigFive#Elephants#Tembe#Wildlife#Travel#Africa

🐘Слоны — отличные пловцы, и это занятие им очень нравится! Они способны преодолевать расстояния до 50 км. А ещё они умеют нырять — хобот служит им дыхательной трубкой для «подводного плавания». 🤿 #Слоны#Животные#Природа#ЮАР#ИнтересныеФакты ___________________ 🐘Elephants are excellent swimmers — and they love it! They can cover distances of up to 50 km (30 miles). They also dive skillfully, using their trunks as natural snorkels. 🤿 #Elephants#Wildlife#Nature#SouthAfrica#FunFacts 🎥https://t.me/AfroPouchkine/1459