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

Резултати

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

Пребарај: #cryptopolicy

当前筛选 #cryptopolicy清除筛选
Venture Village Wall 🦄

@venturevillagewall · Post #4330 · 07.03.2025 г., 13:00

U.S. Must Lead in Crypto Regulation U.S. Treasury Secretary Bessent emphasizes the need for the U.S. to take a global lead on cryptocurrency. Key points include bringing Bitcoin transactions onshore and ceasing government Bitcoin sales. Notably, the evolving regulatory landscape also aims to foster greater adoption of cryptocurrencies in the U.S. #Crypto#U.S. #Bitcoin#Regulation#SEC#BTC#Blockchain#Innovation#CryptoAdoption#Finance#Bessent#Investment#CryptoPolicy#DigitalAssets#Mainstream#MarketTrends#Tech

Crypto M - Crypto News

@CryptoM · Post #65242 · 12.04.2026 г., 08:25

🚀 Former Bank of China VP Comments on U.S. Crypto Regulation Approach Former Bank of China Vice President Wang Yongli has expressed that the United States' method of classifying and regulating crypto assets warrants examination. According to NS3.AI, Wang Yongli noted that the CLARITY Act guidance document represents a notable advancement. However, he emphasized that nations should tailor their crypto asset regulations to align with their specific circumstances. #BankOfChina#CryptoRegulation#USCrypto#CLARITYAct#WangYongli#CryptoPolicy#FinancialRegulation#Blockchain

Crypto M - Crypto News

@CryptoM · Post #65060 · 10.04.2026 г., 17:27

🚀 Senator Lummis Urges Congress to Pass CLARITY Crypto Bill Before 2030 Senator Cynthia Lummis has called on Congress to expedite the passage of the CLARITY crypto market structure bill, emphasizing its importance as a critical legislative opportunity before 2030. According to NS3.AI, Lummis highlighted the urgency of the situation, framing the bill as a narrowing legislative window rather than a finalized policy measure. Her statement underscores the need for timely action to establish a clear regulatory framework for the cryptocurrency market. #SenatorLummis#CLARITYBill#CryptoRegulation#Cryptocurrency#Congress#Legislation#Blockchain#CryptoPolicy#RegulatoryFramework#CryptoNews

Crypto M - Crypto News

@CryptoM · Post #64785 · 09.04.2026 г., 23:37

🚀 South Korea Implements New Rules for Managing Public-Sector Virtual Assets South Korea has approved a plan to manage 78 billion won, equivalent to approximately $57.7 million, in public-sector virtual assets. According to NS3.AI, the new regulations mandate that any seized or confiscated cryptocurrency from personal wallets must be promptly transferred to an institutional cold wallet, which is not connected to the internet. Additionally, the rules stipulate that private keys and recovery phrases must be controlled by at least two individuals through a split-access arrangement. #SouthKorea#PublicSector#VirtualAssets#Cryptocurrency#Regulations#DigitalAssets#CryptoSecurity#ColdWallet#Blockchain#CryptoPolicy

Venture Village Wall 🦄

@venturevillagewall · Post #4289 · 02.03.2025 г., 19:01

Bitcoin Surges Following Large Whale Activity A Hyperliquid whale profited over $10M after opening positions shortly before the Bitcoin price surge to $90,000. Meanwhile, Donald Trump proposed a U.S. national crypto reserve including XRP, SOL, and ADA, raising concerns about insider trading due to the choice of assets. More details on these developments can be found here: Leviathan News and Wu Blockchain News. #Bitcoin#Crypto#XRP#SOL#ADA#Trump#Whale#Profit#NationalReserve#InsiderTrading#Blockchain#Finance#Investing#MarketTrends#BlockchainNews#CryptoPolicy#DigitalAssets#Fintech#VC#AI

Crypto M - Crypto News

@CryptoM · Post #64854 · 10.04.2026 г., 04:34

🚀 South Korea Proposes Stricter Crypto Transfer Regulations South Korea's Financial Intelligence Unit is set to implement more stringent rules on cryptocurrency transfers. According to NS3.AI, the new regulations will mandate reports on suspicious transactions for low-risk transfers exceeding 10 million won, particularly involving private wallets and overseas exchanges. These low-risk transfers will only be permitted if the sender and receiver are verified as the same individual. Additionally, high-risk transactions will face further restrictions. #SouthKorea#CryptoRegulations#Cryptocurrency#FinancialRegulations#Blockchain#CryptoTransfers#DigitalCurrency#FinTech#CryptoCompliance#CryptoPolicy