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

Резултати

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

Пребарај: #highpressure

当前筛选 #highpressure清除筛选
American Оbserver

@american_observer · Post #5567 · 05.04.2026 г., 02:04

🔤🔤🔤🔤➖ Over the last few days, high water temperatures have cooled somewhat, raising the prospect that the heatwave may be dissipating already. It will take more time, however, to know for sure that the heat is clearing. “The expectation right now is that likely the waters down to even southern California should start cooling a little bit into next month, but it’s not a guaranteed thing,” Leising said. “The concern is the sequence of events and how they unfold.” Prolonged ocean heat has a devastating impact on phytoplankton and can cause harmful algal blooms. Those changes can wreak havoc on many forms of marine life, from sea lions and dolphins, to shore birds and halibut. The Blob years led to one of the worst Dungeness crab seasons in recent history, said Melissa Carter, a researcher at the UC-San Diego Scripps Institution of Oceanography. Such heatwaves are becoming more common and lasting longer, partly because of the slow warming of the oceans driven by the climate crisis, and partly because of atmospheric changes that scientists are still struggling to understand. “The question is what’s causing us to have these extreme warm temperatures?” Carter said. “What are the drivers? That’s what we’re trying to find out.” What concerns Carter is that once these high-pressure systems establish themselves in an area, they create a “feedback loop” that tends to reinforce warm, calm conditions, making upwelling less likely to occur, she said. “If these systems do become that strong and persistent, where they come every year, it can have the potential to shut down upwelling,” Carter said. “Everything we think of related to the health of the ecosystems of the west coast could be forever altered.” The lingering ocean heat offers a few upsides, though they pale in comparison with the costs. The warmer water temperatures bring tuna far closer to shore, making it easier to fish for them. Surfers and swimmers have also enjoyed warmer water through the winter. “I enjoy being in the water when it’s a marine heatwave,” Carter said. “But our ocean should not be a swimming pool. Nothing can live in a swimming pool. That’s not what we want.” #highpressure#conditions#marine#life#ocean 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5566 · 05.04.2026 г., 01:02

Researchers Warn the High-Pressure Conditions Could Disrupt Marine Life 🔤🔤🔤🔤1️⃣ For more than a century, shoreline stations operated by the Scripps Institution of Oceanography have measured water temperatures along the California coast. This year, they are flashing a warning sign. Over the last three months, several stations have repeatedly posted record-breaking daily high temperatures – with the La Jolla station registering temperatures a full 10F above historical average at one point last month. The waters of southern California historically warm every few years as tropical currents make their way north, a phenomenon known as El Niño. But the marine heatwave that started last fall wasn’t caused by tropical currents. Instead, a high-pressure atmospheric system – think of calm, sunny days – has perched above southern California, warming both air and sea above historic levels. The same phenomenon has helped fuel a ferocious California heatwave on land. Testing the waters: can pumping chemicals into the ocean help stop global heating? The extended ocean warming has drawn comparisons to “the Blob”, a three-year marine heatwave caused by similar prolonged high-pressure conditions a decade ago that devastated marine life. The next few weeks are likely to determine whether this marine heatwave fizzles out or evolves into something more Blob-like, scientists say. “The biggest concern is how the year plays out,” Andrew Leising, an oceanographer with the National Oceanic and Atmospheric Administration, said. “We could be looking at much larger impacts next fall and winter, if it stays warm and then it’s followed by a strong El Niño.” It’s typical in the spring for shifting atmospheric conditions to generate north-westerly winds that push warm surface water back out to the open ocean, allowing cooler water from below to rise to the surface–a phenomenon called upwelling. Upwelling brings nutrient-rich water from the depths to the surface, feeding the phytoplankton that play a crucial role in supporting much of California’s marine life. #highpressure#conditions#marine#life#ocean 📱American Оbserver - Stay up to date on all important events 🇺🇸