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

Резултати

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

Пребарај: #viper

当前筛选 #viper清除筛选
Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #561 · 09.05.2026 г., 13:10

#DerpFest#ROM#B#May#diting#viper#Baklava#signed#QPR2 DerpFest 16 Stable OFFICIAL | Android 16.2 Device: Xiaomi 12T Pro (diting) Alias: Redmi K50 Ultra Date: 2026-05-07 ⚡️Fast Download 🧑‍💻Support Group 🎁PayPal ✨May Release✨ Security & Fixes - May Security Patch - Recent App Lock fixed (clear all dismiss) Features - Upstreamed GameBar - Upstreamed Dynamic Bar - New Volume Dialog customization - Music Visualizer improved/back - GApps debloated - ViPER4Android included Regressions and Tinkering - Sidebar sometimes gets stuck and needs to be retoggled - Dynamic Bar crashes FireFox (specifically) on video playback; Use any other browser or turn off Dynamic Bar when watching videos. - Custom statusbar icon sets as of now are included, but not functional. Others - A valid keybox is required to achieve play integrity. - Achieve strong integrity without modules using below steps: 1. Disable forcing strong (enable top toggle in spoofing settings) 2. Load valid keybox.xml and pif.json in spoofing 3. Get rid of any integrity related modules if you have any - if you used modules before, it is recommended to remove them, update, and then add them back -> some users had bootloops with e.g. LSPosed. Special Thanks: - kenway214 for GameBar 👌 - Jean for donating telegram premium! 🫶 - Jean for Fast Mirror! ⚡️ - All my testers - My core team - guys, you are truly the best! 😌 by: P.A.N.Z.

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #552 · 12.04.2026 г., 15:29

#DerpFest#ROM#B#April#diting#viper#micam#Baklava#signed#QPR2 DerpFest 16 Stable OFFICIAL | Android 16.2 Device: Xiaomi 12T Pro | Redmi K50 Ultra (diting) Date: 2026-04-07 ⚡️Fast Download 🧑‍💻Support Group 🎁PayPal ✨Initial STABLE Release✨ Security & Fixes - April Security Patch Features - Android 16.2 (qpr2) in all its glory - Mi Cam included & fully functional - GApps debloated - Dynamic Bar (~Dynamic Island) - ViPER4Android included Regressions and Tinkering - Dynamic Bar crashes Firefox (specifically) in video playback; use any other browser or disable Dynamic Bar while watching videos. - Reconnecting to 5G from wifi might take a few seconds, but then works fine. - Custom statusbar icon sets as of now are included, but not functional. Others - A valid keybox is required to achieve play integrity. - Achieve strong integrity without modules using below steps: 1. Disable forcing strong (enable top toggle in spoofing settings) 2. Load valid keybox.xml and pif.json in spoofing 3. Get rid of any integrity related modules if you have any - if you used modules before, it is recommended to remove them, update, and then add them back -> some users had bootloops with e.g. LSPosed. Special Thanks: - kenway214 for GameBar 👌 - Bomboozler for his awesome contributions - jezzay for finding ksu commits - Einargednochsson for BT audio in cars fix 🤝 - Jean for donating telegram premium! 🫶 - Jean for Fast Mirror! ⚡️ - All my testers - My core team - guys, you are truly the best! 😌 by: P.A.N.Z.

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #529 · 15.03.2026 г., 15:20

#DerpFest#ROM#B#March#diting#viper#micam#Baklava#signed#QPR2 DerpFest 16 Stable Public Beta OFFICIAL | Android 16.2 Device: Xiaomi 12T Pro | Redmi K50 Ultra (diting) Date: 2026-03-13 ⚡️Fast Download 🧑‍💻Support Group 🎁PayPal ✨Initial Public Beta Release✨ Security & Fixes - March Security Patch Features - Android 16.2 (qpr2) in all its glory - Mi Cam included & fully functional - ViPER4Android included Regressions and Tinkering - Vibration statusbar icon doesn't show - Reconnecting to 5G from wifi might take a few seconds, but then works fine. - Custom statusbar icon sets as of now are included, but not functional. Others - A valid keybox is required to achieve play integrity. - Achieve strong integrity without modules using below steps: 1. Disable forcing strong (enable top toggle in spoofing settings) 2. Load valid keybox.xml and pif.json in spoofing 3. Get rid of any integrity related modules if you have any - if you used modules before, it is recommended to remove them, update, and then add them back -> some users had bootloops with e.g. LSPosed. Special Thanks: - kenway214 for GameBar 👌 - Bomboozler for his awesome contributions - jezzay for finding ksu commits - Einargednochsson for BT audio in cars fix 🤝 - Jean for donating telegram premium! 🫶 - Jean for Fast Mirror! ⚡️ - All my testers - My core team - guys, you are truly the best! 😌 by: P.A.N.Z.

GitHub Trends

@githubtrending · Post #15440 · 27.01.2026 г., 12:00

#go#config#config_loader#configuration#configuration_file#configuration_management#etcd_client#go#golang#golang_package#s3_bucket#toml#viper#yaml koanf is a lightweight Go library to load config from files (JSON, YAML, TOML), env vars, flags, S3, Vault and more, merging them easily with dot-path keys like "app.server.port". Install core with `go get github.com/knadh/koanf/v2`, add providers/parsers as needed. It's a cleaner Viper alternative with fewer dependencies and better extensibility. This saves you time by simplifying config in apps, letting you override values flexibly without bloat or forced orders. https://github.com/knadh/koanf