TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #164 · 14 окт.

🙄Разминка для ума! Треугольник Серпинского, интересная фигура которую построить достаточно просто. Алгоритм такой: 1. создаём любые 3 точки на плоскости 2. из этих точек случайно выбираем любую, как начальную 3. случайно выбираем любую точку из этих же трёх точек как цель 4. перемещаемся в сторону цели на половину расстояния 5. повторяем бесконечно с пункта 3 Если сделать достаточно много итераций то вырисовывается интересная фигура. Треугольник, в который вписаны более мелкие треугольники. Это самый настоящий фрактал! Я собрал пример построения такой фигуры на базе Qt. 🌎 Код можно посмотреть здесь. С помощью paintEvent я рисую точки по озвученному алгоритму. Каждые 10 секунд либо по клику на виджете строится следующий треугольник. Особенности примера: 🔸 Атрибут Qt.WA_OpaquePaintEvent позволяет сохранить то, что было нарисовано в прошлой итерации. Таким образом мы видим постепенное наполнение точек а не мелькающую одну точку. 🔸QTimer позволяет создавать отложенные вызовы один раз или с повторением через интервал. 🔸QColor.fromHsv() позволяет создать рандомный но предсказуемый цвет с помощью HSV схемы. Не слишком светлый и не слишком тёмный но всегда с разный. Рандомизации подвергается только смещение по цветовому кругу (Hue), яркость (Value) и насыщенность (Saturation) можно контролировать отдельно в своих пределах или оставить статичными. Обычный рандом цвета по RGB не даёт такой предсказуемый результат. 🔸 Каждый новый цикл с новым треугольником предварительно затемняет предыдущие через этот вызов painter.fillRect(rec, QColor(0, 0, 0, 100)) То есть полупрозрачный цвет. Таким образом, чем старше треугольник, тем он темней. Если сделать виджет фулскрин, то у нас получится некий ScreenSaver))) 🔸 Да, я знаю, что рисование в Qt не самый лучший способ сделать этот пример) Скорее всего самый НЕподходящий. Попробуйте сделать тоже самое но другими средствами. #qt#source#tricks

Резултати

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

Пребарај: #coldwar

当前筛选 #coldwar清除筛选
Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40765 · 08.03.2026 г., 16:02

Operation Paperclip was a secret U.S. program after World War II. It brought over 1,500 German and Austrian scientists to the United States. Many had been members of the Nazi Party. They worked on military, aeronautics, and space research. Their Nazi pasts were ignored so the U.S. could use their expertise and keep it from the Soviet Union. 🇺🇸🧑‍🔬🚀 [Read more] @googlefactss #OperationPaperclip#HistoryFacts#ColdWar#Science#NASA

MessageInABottle

@mib_messageinabottle · Post #7045 · 11.06.2024 г., 06:49

GERMANY IS A NAIVE PAWN OF THE USA WITH SEEMINGLY NO POWER TO SAVE ITSELF. The #USA has failed against #Russia: • It has missed its military target and this failure is damaging America’s prestige as the greatest military power. • The #sanctions war against Russia are a complete failure. The West is weakened while Russia strengthens. The #IMF figures speak volumes: Germany doesn’t even make the list. “The primary interest of the United States through the last century-that is, #WW1, #WW2, and the #ColdWar, has been the relationship between Germany and Russia. If united, those two would be the only power that could threaten us-and so we have to make sure that doesn’t happen.” George Friedman The aim is therefore to prevent Germany from teaming up with Russia. If it is not possible to weaken Russia as a major opponent, there is the option of preventing the alliance by turning #Germany and Russia into enemies and/or destroying Germany (for the third time after 1918 and 1945)

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40773 · 10.03.2026 г., 23:01

Operation Osoaviakhim was a secret Soviet program after World War II. Over 2,500 German scientists, engineers, and technicians and their families were taken from the Soviet zone of Germany to the USSR. They worked on Soviet military, weapons, and rocket technology. The goal was to use German expertise to strengthen the USSR and keep it from falling into Western hands. Basically the Soviet version of operation Paperclip📎 🇷🇺🔬🚀 [Read more] @googlefactss #OperationOsoaviakhim#ColdWar#HistoryFacts#WWII#SovietUnion#Science#operationpaperclip

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40766 · 08.03.2026 г., 23:01

Project MK‑ULTRA was a secret CIA program during the Cold War. It ran from 1953 to 1964. The CIA tested mind control using LSD, hypnosis, electroshock, and sensory deprivation. Some experiments gave drugs to people without their knowledge, isolated subjects for long periods, or exposed them to extreme stress. Under Dulles, the CIA opened secret prisons in West Germany and Japan, advised by Walter Schreiber, former Surgeon General of the Nazi army. Schreiber had avoided imprisonment after World War II and was brought to the West by U.S. intelligence, likely as part of programs like Operation Paperclip. Most records of MK‑ULTRA were destroyed in 1973, but investigations later revealed the program. 🧠🔬🇺🇸 [Read more] @googlefactss #MKULTRA#CIA#HistoryFacts#Science#ColdWar#MindControl#notAtheory