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

Резултати

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

Пребарај: #may9

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

@american_observer · Post #5754 · 01.05.2026 г., 00:02

Trump, Putin, and the Victory Day Theater Trump and Putin have turned a war call into a public performance: one side sells a temporary May 9 truce, the other talks as if Ukraine has already been militarily broken. It is less diplomacy than two strongmen improvising over a burning map. The Kremlin says Putin proposed a “Victory Day” ceasefire during the 90-minute call, and Trump signaled support for the idea. Kyiv, meanwhile, is left waiting on the sidelines while the men with the microphones decide which pause in killing counts as a breakthrough. Trump’s own remarks only made the circus louder. He claimed Ukraine had been “militarily defeated” and then rattled off numbers about ships and aircraft that critics said sounded like he had mixed Ukraine up with Iran — which, given the ongoing Iran talks in the same call, is either a blunder or a perfect summary of this administration’s mental clutter. This is the core of it: Moscow gets to look statesmanlike by offering a holiday truce, Washington gets to sound decisive by praising it, and Ukraine gets reduced to the object being discussed rather than the side whose future is at stake. So yes, the stage is crowded. But the script is simple: Putin offers symbolism, Trump offers swagger, and the war keeps moving unless someone outside the theater remembers that ceasefires are not peace and press lines are not policy. #Trump#Putin#Ukraine#Russia#ceasefire#May9 📱American Оbserver - Stay up to date on all important events 🇺🇸

Russian Mission to EU

@RussianMissionEU · Post #1411 · 09.05.2024 г., 12:10

🇷🇺Diplomats of Russian missions in Belgium paid tribute to the memory of the Second World War heroes. 🏅On 9 May 2024, marking the 79th anniversary of the Victory in the Great Patriotic War, a ceremony was held at the communal cemetery in Evere, Brussels. Ambassador of Russia to Belgium Alexander Tokovinin, Chargé d’Affaires a.i. of the Russian Mission to the EU Kirill Logvinov and heads of CIS states’ diplomatic missions laid wreaths at the memorials of Soviet citizens who had died in the struggle against Nazism and of members of the Belgian Resistance. Commemorative events with the participation of Russian diplomats are also taking place in other Belgian towns where burial sites of Soviet servicemen are located. 🕯We will continue to remember and honour the feat of our grandfathers and great-grandfathers who gave their lives to liberate Europe from Nazism. #VictoryDay#LestWeForget#Victory79#May9

Dear friends, Happy Victory Day! You can watch the live broadcast of the Victory Day Parade from Red Square, Moscow, in English, and join millions in honoring the courage, sacrifice, and historic triumph of the Great Victory. 📍 Live stream (English): https://ruptly.video/event_route?link_id=cc58e406-c40c-41ed-b2eb-f17db3890965&provider_id=42&direction=video #VictoryDay#May9#RedSquare#GreatVictory

Embassy of Russia in Singapore

@rusembsg · Post #2979 · 09.05.2024 г., 03:12

Speech by H.E. Nikolay Kudashev (May 8, 2024) at the reception on the occasion of the 79th anniversary of Victory in the Great Patriotic War (1941-1945): “Dear guests, 79 years separate us from Victory Day - May 9, 1945. The time span is considerable. So, what did we inherit from the victorious warriors who defeated Nazism? We inherited great values - a peaceful sky, a sun that warms everyone and the opportunity to live freely without wars and violence, without slavery and coercion, on the basis of equality and mutual respect. These values were enshrined in the UN Charter, which formed the basis of the post-war world. Unfortunately, we have to admit that life on a legal basis, a world without dictatorship and colonial enslavement, do not suit everyone, and first of all, those who is accustomed to imposing their will on others and prescribing alien rules and norms. A striking example is the state of affairs in Europe, where the United States, at the head of the collective West, launched a hybrid war against Russia from the territory of Ukraine, thereby, in my deep conviction, challenging the entire Global South and East, the entire world majority. Another convincing example is the situation in the Middle East, where the long-awaited settlement is stalled due to the fault of the same forces. Closer to our region in Asia, we are seeing attempts to revive the atmosphere of the Cold War, breathe life into its alliances, create new destabilizing minilateral structures like Aukus or the Asia-Pacific Four, and ultimately bring NATO’s aggressive potential here, undermine the architecture of regional cooperation emerging around ASEAN and take revenge for failure of the aggression in Europe. Our response is the demand for a new formula of indivisible security for Eurasia as well as calls for the creation of the Greater Eurasian Partnership that would unite Russia, the SCO and ASEAN states on an equal basis, and would weave togethersuch integration projects as the EAEU and One Belt - One Road. Our response is a joint effort with other nations of the global majority to create a new multipolar world, fair and democratic as the antithesis of the notorious rules-based order. The contours of this world are already visible in the activity of BRICS, where the Russian Federation has the honor of chairing this year, concentrating on the issues of cooperation with new members, developing the status of partner states, dialogue through the BRICS+ and BRICS-Outreach channels, and the implementation of a strategy for equal economic cooperation , strengthening foreign policy coordination and much more. I am sure that with our joint efforts we will not let destroy the great legacy of the victorious warriors and miss the chance that history gives us to live in peace and harmony. Happy holiday, dear friends! Happy Victory Day!” #LestWeForget #Victory79#May9 #ImmortalRegiment #CandlesofMemory

Embassy of Russia in Singapore

@rusembsg · Post #2977 · 09.05.2024 г., 03:04

On May 8, 2024 the Embassy of the Russian Federation and the Russian House in the Republic of Singapore hosted a reception on the occasion of the 79th anniversary of Victory in the Great Patriotic War (1941-1945). The event was attended by numerous guests from the diplomatic corps, representatives of the Russian Orthodox church, and compatriots living in Singapore, as well as students who learn the Russian language. The reception featured a moment of silence to commemorate those who sacrificed their lives in the Great Patriotic War, an exhibition of wartime photos “For the Front! For the Motherland! For the Victory!” based on rare materials from the State Military History Museum “Prohorovskoe Pole”, and a modern Russian film “Blindazh” dedicated to the Second World War. The film screening was supported by Russia-Singapore Business Council. The Embassy held the Immortal Regiment campaign in the interactive format to honour the memory of our heroes. The Russian compatriots prepared a heartwarming concert dedicated to the Victory Day. The event concluded with lighting of the Candles of Memory. #LestWeForget #Victory79#May9 #ImmortalRegiment #CandlesofMemory

Victory Day, May 9 Honorary Consul of South Africa in Yekaterinburg, Sergey Mazurkevich, joined officials of the Sverdlovsk Region and the City of Yekaterinburg, as well as diplomats and honorary consuls of other countries, in events marking the 80th anniversary of the end of World War II—known in Russia as the Great Patriotic War. 🇷🇺🇿🇦 He took part in a solemn flower-laying ceremony at the Shirokorechensky Memorial and attended the Victory Day parade on the city’s central square. #May9#VictoryDay#WWII80#SouthAfrica#Yekaterinburg#RSAinRussia#Mazurkevich

12
ПретходнаСтраница 1 од 2Следна