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

Резултати

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

Пребарај: #empathy

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

@interesting_planet_facts · Post #823 · 27.09.2025 г., 18:11

🌎 Mirror neurons in the human brain activate both when performing an action and when observing someone else perform that action. These specialized brain cells are linked to empathy, learning, and understanding intentions of others. Mirror neurons were first identified in the 1990s in monkeys before similar systems were found in humans. ✨ #neuroscience⚡#empathy⚡#learning 👉subscribe Interesting Planet 👉more Channels ​

Venture Village Wall 🦄

@venturevillagewall · Post #3463 · 19.12.2024 г., 13:56

$500K Funding Round Announcement ShowAndTell has raised $500K in funding as of December 4, 2024. This initiative focuses on providing an empathetic treatment coordinator for every patient, prioritizing patient education and trust-building, even outside of clinical settings. For more information visit their website: ShowAndTell #Funding#Healthcare#PatientCare#TrustBuilding#Education#Empathy#TreatmentCoordinator

Health & Safety TIPS

@PrimalTips · Post #1726 · 04.09.2020 г., 18:26

🤔FOOD FOR THOUGHT💭 📌 I would like to expose a situation. If your children don't learn with children with special needs at school and have never been taught that not everyone is equal, maybe you should spend 10 minutes today to explain it to them, 📌Because although they don't currently live with these children at school, they will find them in their lives for sure. 📌In light of recent events regarding the exclusion of a child with autism from attending a school trip and a child with Down Syndrome being expelled from dance class because she couldn't keep up with it, I feel the need to share this. 📌There are boys and girls that no one invites to birthday parties. There are special children who want to be part of a team but are not selected because it's more important to win than to include these children. 📌 Kids with special needs aren't weird , they just want what everyone wants: to be accepted! 📌Can I ask a question? Is there anyone willing share this article like I did, for all the special children out there? 📌Please teach your children to be kind to these beautiful children! 📌Everyone needs love and kindness #inclusion#syndromedown#autism#beingdifferentlynormal#respect#love#empathy@HeathSafetyTps