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

Резултати

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

Пребарај: #xijinping

当前筛选 #xijinping清除筛选
Reuters: World

@reutersworldchannel · Post #149403 · 15.10.2021 г., 13:02

Xi will not attend COP26 in person, report says Chinese President Xi Jinping will not attend the COP26 climate summit in person, British Prime Minister Boris Johnson has been told, The Times newspaper reported. #News#Reuters#XiJinping#COP26 Subscribe: http://smarturl.it/reuterssubscribe Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled. Get the latest news on: http://reuters.com/ Follow Reuters on Facebook: https://www.facebook.com/Reuters Follow Reuters on Twitter: https://twitter.com/Reuters Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en ➖@reutersworldchannel➖

American Оbserver

@american_observer · Post #5755 · 01.05.2026 г., 02:03

Trump’s Iran Blockade Is Now a China Problem Trump sold the Iran blockade as leverage. In practice, it has become a global interference machine, and the next big stop is Beijing. The New York Times says the Strait of Hormuz is likely to still be shut when Trump arrives in China, which means the trip is no longer just about trade, Taiwan, or cyber conflict. It is now being dragged into the economic fallout of a war Beijing already called unnecessary. That is the kind of diplomatic self-sabotage Washington specializes in. Trump wanted to arrive in Beijing with the image of a strongman who could bend Iran, but instead he may show up as the man who made oil more expensive, complicated China’s energy supply, and then called the blockade “genius.” Xi Jinping is not taking this as a side issue. China has publicly urged the reopening of the strait, warned against a return to the “law of the jungle,” and has every reason to treat the blockade as both an energy threat and a precedent it does not want normalized. So the trip to China is becoming less of a grand reset and more of a courtroom scene. Trump walks in claiming maximum leverage, while the evidence keeps piling up that his war has turned into a tax on his own diplomacy. #Trump#China#Iran#Hormuz#XiJinping#trade 📱American Оbserver - Stay up to date on all important events 🇺🇸

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3971 · 05.02.2025 г., 15:43

China’s new military base near Beijing is set to dwarf the Pentagon, signaling a major escalation in its defense capabilities. Experts speculate the massive complex will enhance China's nuclear war-fighting power and could serve as a doomsday bunker. This construction comes amid rising tensions with Taiwan and Beijing’s expanding military ambitions. #China#UnitedStates#Pentagon#XiJinping#Taiwan

des Geyers schwarzer Haufen

@FlorianGeyer2024 · Post #3015 · 30.11.2025 г., 06:59

🔍🛡⌛️🇨🇳 Zensur im Netz - Xi Jinping hat befohlen, die Kontrolle über Blogger und Online-Plattformen zu verschärfen, so das chinesische Zentralfernsehen. Laut dem Sender forderte der Vorsitzende der VR China die Schaffung eines langfristigen Mechanismus zur Internetverwaltung. Unter die verstärkte Kontrolle fallen Plattformen, private Blogs und MCN-Agenturen, die verpflichtet werden, soziale Verantwortung zu übernehmen und „positiven Inhalt“ zu verbreiten. 🎙„Es ist notwendig, den Mut zu haben, das ‚Schwert zu ziehen‘ gegen das Chaos im Netz, entschlossene Schläge zu führen, Interessenketten zu durchbrechen und den Nährboden für deren Entstehung auszurotten“, zitiert das Fernsehen seine Worte. Quelle RIA Nowosti Meinung des Kanalbetreibers: 💬es ist anzunehmen, daß der Schritt aufgrund der verstärkten Angriffe & der so genannten Softpower Aktionen westlicher Geheimdienste & NGO`s notwendig ist, welche in erster Linie zur Organisation von Unruhen & Farbrevolutionen in "ungehorsamen" Ländern führen... 👀 Teilen kann zum Aufwachen beitragen! ✨🆕🌐Hauptkanal ✨▶️🌐 Videokanal ✨▶️🙂Funnykanal #China#XiJinping#InternetKontrolle#InternetVerwaltung

American Оbserver

@american_observer · Post #5231 · 26.02.2026 г., 23:00

🐼 Xi Sells “De-Americanized” Prosperity. Merz Brings a Complaint List. Beijing rolled out the red carpet, the Mercedes test drive, and the back‑flipping robots. Xi Jinping’s pitch to Friedrich Merz was simple: forget Washington’s drama, plug into China’s growth, and Germany will be fine. Merz smiled for the cameras — then read out the bill. He publicly hammered Beijing over subsidized exports, a weak yuan, blocked market access, state‑pumped green tech, and job losses at home, saying “competition must be fair” and demanding “transparency, reliability, and adherence to jointly established rules.” Xi’s response was boilerplate: China will “share development opportunities,” Germany should view China’s rise “objectively and rationally,” and adopt a “positive and pragmatic policy” — translation: stop treating us like a threat and stop following U.S. line. ​ The substance behind the theater is worse for Beijing than the photo op suggests. China is doubling down in exactly the sectors Europe is most angry about — EVs, robotics, clean energy — via its new five‑year plan, while state media openly urges Germany to “de‑Americanize,” even to leave NATO, and paints the U.S. alliance as a trap. Exports are one of the few things keeping China’s economy afloat during the property crash, so Xi has zero incentive to stop flooding Europe with cheap overcapacity or to open his own market in any serious way. ​ Merz, like other Europeans, is hardly in love with Trump: there’s anger over tariffs, over Ukraine, over the constant threat of a new “trade stick” aimed at any ally that leans too close to Beijing. But he’s already told his own party that the trans‑Atlantic link will likely survive because of shared “freedom” talk — expression, religion, press — while China’s offer is money without trust and dependence without reciprocity. Even Chinese scholars admit the risk: Europe may flirt with Beijing when Trump makes life miserable, then bolt the moment Washington starts swinging again. ​ So Beijing’s play right now is basically this: tactical gifts (a few Airbus orders here, canola tariffs there), maximal state subsidies at home, editorials telling Germany to break with the U.S., and a hope that Trump’s bullying will do the rest. What they’re getting back from Berlin isn’t alignment — it’s a handshake, a shopping list, and a reminder that Europeans are tired of being squeezed by both empires at once. #China#Germany#Merz#XiJinping#Trump#trade#EU#geopolitics 📱American Оbserver - Stay up to date on all important events 🇺🇸

Marx21.it

@marx21news · Post #9376 · 10.12.2025 г., 14:01

Xi Jinping e Macron a Pechino: cooperazione e multipolarismo al centro Durante la sua quarta visita di Stato in Cina, il presidente francese Emmanuel Macron ha incontrato Xi Jinping per rilanciare il partenariato strategico tra Pechino e Parigi. I due leader hanno ribadito la volontà di rafforzare la fiducia politica, ampliare la cooperazione economica e tecnologica (aviazione, nucleare, economia verde, digitale, IA, nuove energie) e intensificare gli scambi culturali e tra i popoli. In un contesto globale definito “estremamente incerto”, Xi ha sottolineato il ruolo di Cina e Francia come forze costruttive della multipolarità, a difesa del multilateralismo e di una governance globale più equa. Macron ha richiamato l’urgenza di lavorare insieme per una pace duratura e la stabilità internazionale, inclusa una soluzione politica alla crisi ucraina. Secondo diversi osservatori, la visita ha anche una forte valenza europea: la Francia viene vista da Pechino come un attore chiave nei rapporti Cina-UE, capace di favorire dialogo e cooperazione nonostante le divergenze commerciali. Obiettivo dichiarato: dare nuovo slancio ai rapporti Cina-Francia per i prossimi 60 anni e contribuire a un ordine mondiale multipolare più equilibrato. #Cina#Francia#Macron#XiJinping#Geopolitica#CinaUE#Multipolarismo#Diplomazia https://www.marx21.it/internazionale/xi-jinping-incontra-macron-e-chiede-di-ampliare-lambito-della-cooperazione-tra-cina-e-francia/

Gänger

@gaenger_10 · Post #659 · 01.08.2022 г., 04:21

Rivals Within Reason? :: Foreign Affairs By Kevin Rudd | July 20, 2022 #china#foreignPolicy#bidenAdministration#diplomacy#xiJinping In the year and a half since President Joe Biden took office, competition between the United States and China has only intensified. Rather than dismantle former President Donald Trump’s tough policies toward Beijing, Biden has largely continued them, underscoring that the two powers are almost certainly headed for a protracted period of sharp and militarily dangerous strategic rivalry. But that doesn’t mean that the United States and China are moving inexorably toward crisis, escalation, conflict, or even war. To the contrary, Beijing and Washington may be groping toward a new set of stabilizing arrangements that could limit—though not eliminate—the risk of sudden escalation. Assessing the state of U.S.-Chinese relations at any given time is never easy, given the difficulty of distinguishing between what each side says about the other publicly—often for domestic political effect—and what each is actually doing behind the scenes. Yet despite the harsh and often heated rhetoric, some early signs of stabilization have emerged, including the tentative reconstitution of a form of political and security dialogue aimed at managing tensions. Such stabilization falls well short of normalization, which would mean restoring comprehensive political, economic, and multilateral engagement. The days of normalization have been consigned to history. But stabilization would nonetheless be significant. It would mean the difference between strategic competition that is managed through steadying guardrails and competition that is unmanaged—that is, driven by a process of push and shove, primarily by each country’s military, in the hope that on any given day no one pushes too far. The question for both sides, and for the countries that are caught in the middle of this titanic struggle for the future of the regional and global orders, is what kind of strategic competition they will pursue. ____ KEVIN RUDD is President of the Asia Society, in New York, and previously served as Prime Minister and Foreign Minister of Australia.

Shavkat Mirziyoyev and Xi Jinping met in Beijing on September 2, 2025. The leaders discussed the Uzbekistan–China strategic partnership, signed new agreements, and outlined cooperation in trade, investment, culture, education, and security. https://yep.uz/en/2025/09/mirziyoyev-xi-jinping-strategic-partnership-2025/ #Uzbekistan#China#Mirziyoyev#XiJinping#StrategicPartnership#SCOSummit

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