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

Резултати

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

Пребарај: #yields

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

@venturevillagewall · Post #4173 · 17.02.2025 г., 13:00

TON Ecosystem Transitions to Self-Sustainability The TON Foundation has ended all incentive programs, leading the TON ecosystem to operate independently. Incentives like boosts in TON/USDT pools, lending bonuses, and grants are no longer available, likely due to budget constraints. Meanwhile, yields for TON and USDT are diminishing, prompting a focus on building new projects. Additionally, analysts from Bernstein comment on Bitcoin's stagnation post-ETF success, indicating that further market movements could hinge on targeted crypto group initiatives and growing bank positions. As the market trends downwards, the popularity of Bitcoin call options at $110,000 reflects bullish intentions despite lingering inflation concerns. Noteworthy developments include the upcoming unlock of 11.2 million $SOL from FTX's bankruptcy sale, potentially impacting market dynamics significantly. #TON#Crypto#Bitcoin#SOL#FTX#USDT#Investment#MarketTrends#Yields#Blockchain#DeFi#Economy#Ethereum#Innovation#Funding#Startups#TechNews#BearMarket

Crypto M - Crypto News

@CryptoM · Post #65019 · 10.04.2026 г., 14:06

🚀 Fed Rate Cut Expectations Collapse as April Hold Probability Stays at 98.4% Key TakeawaysFederal Reserve expected to hold rates in April (98.4% probability).Only 1.6% chance of a rate hike next meeting.June outlook: 96.8% probability of no change.Markets pricing “higher-for-longer” policy stance despite inflation data.Markets Fully Price in April Rate PauseAccording to the CME FedWatch Tool, markets overwhelmingly expect the Federal Reserve to leave interest rates unchanged in April, with probabilities holding steady at 98.4% even after the latest CPI release.The likelihood of a 25 basis point hike stands at just 1.6%, indicating minimal expectation of further tightening in the near term.June Outlook Also Signals Policy StabilityExpectations for June remain similarly stable:96.8% probability of no rate change1.5% probability of a 25 bps rate cut1.7% probability of a rate hikeThis suggests markets see limited policy movement over the next two meetings, despite ongoing inflation concerns.CPI Data Fails to Shift Rate ExpectationsEven with March CPI showing a sharp increase driven by energy prices, rate expectations remain largely unchanged.This reflects market belief that:Inflation spike is energy-driven and potentially temporaryCore inflation remains relatively containedThe Fed is unlikely to react immediately to short-term volatilityHigher-for-Longer Narrative StrengthensThe data reinforces a “higher-for-longer” interest rate environment:No imminent rate cuts priced inLimited probability of further hikesPolicy expected to remain restrictive but stableMarket ImplicationsFor financial markets:Dollar and yields remain supportedRisk assets (crypto, equities) face macro headwindsLiquidity conditions stay relatively tightThe Fed is now firmly in a wait-and-see mode, with policy decisions likely to depend on:Future inflation trends (especially core CPI)Energy price stabilityBroader economic growth dataUnless inflation broadens beyond energy, markets expect the Fed to hold rates steady through at least mid-2026. #FedRateCut#CMEFedWatchTool#FederalReserve#RatePause#Inflation#CPIData#HigherForLonger#InterestRates#MarketOutlook#EconomicPolicy#Dollar#Yields#LiquidityConditions#Crypto#Equities