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

Резултати

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

Пребарај: #cryptolearning

当前筛选 #cryptolearning清除筛选
Crypto M - Crypto News

@CryptoM · Post #65375 · 13.04.2026 г., 03:00

🚀 Binance Launches Word of the Day Game with BNB Rewards According to the announcement from Binance, the platform has introduced a new Word of the Day (WOTD) game, themed "Team Up with Binance." This educational initiative aims to enhance users' crypto vocabulary while keeping them informed about the latest market trends. The activity period is set from 2026-04-13 00:00 (UTC) to 2026-04-19 23:59 (UTC). Participants can engage in up to two WOTD games daily, testing their knowledge on the specified topic. Users who correctly answer at least three questions during the activity period will qualify to share a 15 BNB reward pool. The distribution of rewards will be proportional to the number of correct answers each user provides, with a maximum cap of 0.01 BNB per user. Rewards are scheduled to be distributed to winners' Spot Accounts by 2026-05-03 23:59 (UTC). To access a second WOTD game, users must click the "Get A New WOTD" button after completing the first game. Sharing the featured link on social media and having it clicked by a logged-in user will unlock the second game. Additionally, new users registering with the "WOTD" referral code during the activity period will receive a 10% discount on Spot trading fees. They may also earn additional welcome rewards by completing tasks in the Rewards Hub within 14 days of registration. Binance reserves the right to modify or cancel the promotion without prior notice and may update the list of eligible countries or regions. Participation is subject to Binance's terms and conditions, and users must complete account verification to be eligible for rewards. The platform emphasizes that any fraudulent activity or violation of terms may lead to disqualification from the promotion. #Binance#WordOfTheDay#WOTD#BNB#CryptoEducation#CryptoRewards#CryptoGame#SpotTrading#ReferralCode#RewardsHub#Blockchain#CryptoLearning#CryptoCommunity