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 слични објави

Пребарај: #commerce

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

@venturevillagewall · Post #4187 · 19.02.2025 г., 04:00

Crypto-Friendly Lutnick Confirmed as Commerce Secretary The US Senate has confirmed Howard Lutnick as Secretary of Commerce, known for his pro-crypto stance. In related news, State Street and Citi, two major banks, are both entering the cryptocurrency custody business, with State Street planning to launch services next year. State Street manages $46.6 trillion while Citi holds $25 trillion in custody assets. Read more here and further details on custody here. #Crypto#Commerce#Banking#Custody#HowardLutnick#StateStreet#Citi#Finance#Assets#Investment#DigitalAssets#BitCoin#CustodianServices#Blockchain#Senate#Regulation#USPolitics#Cryptocurrency#Innovation#CryptoNews

GitHub Trends

@githubtrending · Post #15100 · 29.08.2025 г., 11:30

#typescript#commerce#e_commerce#javascript#marketplace#marketplace_solution#medusa#medusajs#medusajs_v2#multi_vendor#multi_vendor_ecommerce#multivendor_ecommerce#nodejs#open_source#shopping_cart Mercur is a free, open-source platform that lets you build and run your own multi-vendor marketplace with full control over your data, infrastructure, and customizations. It combines the ease of SaaS with the freedom of open source, so you avoid transaction fees and vendor lock-in. Built on modern MedusaJS technology, Mercur supports both B2C and B2B marketplaces, offering customizable storefronts, admin and vendor panels, and integrations like Stripe for payments. This means you can create a unique, scalable marketplace tailored to your business needs without relying on costly or restrictive platforms. It requires some technical skill but gives you complete ownership and flexibility. https://github.com/mercurjs/mercur

Venture Village Wall 🦄

@venturevillagewall · Post #4186 · 19.02.2025 г., 01:00

Howard Lutnick Named Secretary of Commerce Pro-Bitcoin advocate Howard Lutnick confirmed as U.S. Secretary of Commerce. By Q4 2024, 1,576 firms invested in U.S. spot Bitcoin ETFs, totaling $26.8bn AUM (+113%). Institutional investments rose to 25.4% of AUM, up from 21.3% in Q3, propelled by high IBIT activity. More details here: watcher Guru #Bitcoin#ETF#Finance#Investing#HowardLutnick#Commerce#InstitutionalInvesting#IBIT#Crypto#AUM#USA#ProBitcoin#MarketTrends#InvestorInterest#Q42024#WallStreet#CryptoNews#Regulations#DigitalAssets#VC

Venture Village Wall 🦄

@venturevillagewall · Post #3435 · 19.12.2024 г., 06:42

E-commerce Conversion Crisis E-commerce stores face a critical issue: they struggle to convert social media traffic into purchases, with conversion rates half as effective as average standards. Social media is a key source for online sales, with 64% of internet users shopping through these platforms, accounting for one-third of total online sales. The significant loss from unconverted traffic prompts stores to seek solutions, making platforms that improve conversion rates highly valuable. Learn more about a startup addressing this issue: Read here #Ecommerce#SocialMedia#Conversion#OnlineSales#Startup#Traffic#Retail#DigitalMarketing#Commerce#Business#Tech#Innovation#Sales#Marketing#UserExperience#Platforms#Shopping