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 слични објави

Пребарај: #weird

当前筛选 #weird清除筛选
Journey to Fluency

@fluencyinenglish · Post #7334 · 21.09.2019 г., 18:51

#weird-truth @fluencyinenglish 🔹Old Funeral Customs: Placing Coins on the Eyes of the Dead @fluencyinenglish At Stillinger Family Funeral Home in Greenfield, Indiana, we get questions all the time about old funeral customs like this one: What’s the meaning of placing coins on the eyes of the dead? Like many customs and traditions, this one goes way back – in this case to the times of Greek mythology. Placing coins on the eyes of the dead was intended to “pay the ferryman”. Let’s take a closer look at this old funeral custom: ❇️Paying the Ferryman @fluencyinenglish According to often accepted interpretations of Greek mythology, it was essential to pay the ferryman. What does this mean? Charon was the name of a mythological boatman who would transport the souls of the departed across the River Styx; in essence, this was a journey from the land of the living to the land of the dead. To ancient Greeks and others, not making this journey meant not passing on to the afterlife, but instead remaining behind to wander the banks of the River Styx. Because Charon needed to be paid for the journey, coins were placed on the body. @fluencyinenglish In the Mouth or On the Eyes? It appears the earliest manifestations of paying the ferryman called for placing a single silver or gold coin under the tongue of the dead. This was called Charon’s Obol (the obolus was a silver coin in ancient Athens, Greece). The custom eventually came to include the alternative practice of placing a coin ON the mouth of the deceased, as opposed to under the tongue. @fluencyinenglish It is not exactly clear when the tradition evolved to include the practice of placing two coins on the eyes of the departed. Modern iterations of this practice may call for placing pennies or quarters on the closed eyes. It is also believed that placing coins on the eyes of the dead was historically done to make sure the eyes remained closed – out of the superstitious fear that looking into the eyes of the deceased would reveal our own death. @fluencyinenglish From Timeless Traditions to Modern Funeral Services While many old funeral traditions – such as placing coins on the eyes of the dead – may be regarded as outmoded superstitions with no basis in fact or science, many people still regard them as comforting customs to help them find peace with the passing. @fluencyinenglish

Hashtags

Страхи мужика

@waitmanfear · Post #2407 · 19.02.2023 г., 10:50

Графический дизайнер Роб Шеридан показал нью-йоркскую неделю высокой моды в стиле «вечно мучающихсядемонов ада, на которых садистски вырезаны произведения боди-арта, пропитанные кровью». Ужасно-прекрасно r/#weird

Hashtags