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

Резултати

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

Пребарај: #techstartups

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

@venturevillagewall · Post #3951 · 22.01.2025 г., 13:00

Funding Rounds Multitude This January! Significant funding rounds announced recently: - Package.ai: $14M on Jan 21 2025 - AI-driven platform for customer engagement. Link - Kunpeng Gene: $13.65M on Jan 17 2025 - Focus on GMP-compliant scientific instruments. Link - Bivision: $13.52M on Jan 17 2025 - Biomedical technology firm. Link - Kraaft: $13.49M on Jan 21 2025 - Simplifying construction site monitoring. Link - Gravity: $13M on Jan 21 2025 - Carbon accounting and energy management platform. Link - Oshi: $12.50M on Jan 18 2025 - Blockchain ecosystem for anime creators. Link - Green Fusion: $12.46M on Jan 21 2025 - Optimizing boiler rooms for sustainability. Link - mi2-factory: $10.38M on Jan 21 2025 - Ionenimplantationen energy filters. Link - Karmen: $9.34M on Jan 21 2025 - Flexible financing solutions for business growth. Link - Optieum Biotechnologies: $8.51M on Jan 15 2025 - CAR-T cell technology. Link #Funding#AI#Blockchain#Energy#HealthTech#Finance#Sustainability#Biotech#Construction#CustomerEngagement#CarbonAccounting#Innovation#TechStartups#VC

💻 FROM ANCIENT SCRIPTS TO DIGITAL CODE: ETHIOPIA'S TECH TAKEOVER 💻 ከጥንታዊ ጽሑፍ እስከ ዲጂታል ኮድ: የኢትዮጵያ ቴክኖሎጂ መቆጣጠር 🔥 КОГДА 3000-ЛЕТНЯЯ ЦИВИЛИЗАЦИЯ ВСТРЕЧАЕТ SILICON VALLEY! Ethiopian youth aren't just consuming technology - they're CREATING it! 💫 🌟 DIGITAL ETHIOPIA RISING: 🏙️ ADDIS ABABA = AFRICA'S SILICON VALLEY: - Tech hubs sprouting faster than coffee plants - Young developers coding the future of Africa - From ancient Ge'ez script to programming languages! 💡 ETHIOPIAN TECH STARTUPS CHANGING THE GAME: 🚀Ride - Ethiopia's answer to Uber, built for African roads 🚀ZayRide - Local mobility solutions that actually work 🚀Deliver Addis - Food delivery revolutionizing Ethiopian dining 🚀EthSwitch - Fintech making banking accessible to everyone 🚀Gebeya - Training Africa's next generation of developers 🚀iCog Labs - AI and robotics putting Ethiopia on the tech map 📊 THE NUMBERS DON'T LIE: ✨ 50%+ youth population = MASSIVE tech potential ✨ Growing internet penetration = Digital revolution in motion ✨ Government support for tech initiatives = Infrastructure backing innovation ✨ Ancient problem-solving culture + Modern tools = Unstoppable combination 🎯 YOUNG ETHIOPIAN DEVELOPERS SAY: *"Our ancestors built Lalibela without blueprints - we build apps without limits!"* *"ቅድመ አያቶቻችን ላሊበላን ያለ ንድፍ ገንብተዋል - እኛ ያለ ገደብ መተግበሪያዎችን እንገነባለን!"* 🔋 THE DIGITAL SWAG: - Coding in multiple languages (including Amharic interfaces!) - Building solutions for African problems - Connecting rural Ethiopia to global markets - Making ancient wisdom accessible through modern tech 🚀 PLOT TWIST: While Silicon Valley talks about "disruption," Ethiopia has been disrupting expectations for millennia! 💪 THE FUTURE IS BEING WRITTEN: In Ethiopian coffee shops, young developers are coding solutions that will change Africa forever! *From coffee ceremonies to coding ceremonies - the grind never stops* ☕💻 #DigitalEthiopia#የኢትዮጵያቴክኖሎጂ#EthiopianTech#AfricaTech#TechStartups#DigitalRevolution#EthiopianInnovation#TechHub#ኢትዮጵያላይፍ#FutureIsEthiopian

Venture Village Wall 🦄

@venturevillagewall · Post #4029 · 30.01.2025 г., 13:00

From Pet Project to Europe's Top Startup Klarna, founded by three Swedish students in 2005, progressed from an idea into Europe's most valuable startup worth $45.6 billion. Initially losing a school competition, they launched a unique payment service. By offering a secure, easy checkout and features like BNPL, Klarna solved key challenges for sellers and buyers. Despite major fluctuations in valuation, they are now preparing for their IPO. This journey emphasizes resilience in entrepreneurship and the complexities of attracting investments. Read more here. #Klarna#Startup#Europe#FinTech#Payments#BNPL#IPO#Entrepreneurship#Investment#TechInnovation#BusinessGrowth#E-commerce #Sweden#Funding#BusinessModel#TechStartups#FinancialServices#OnlinePayments#Disruption#VentureCapital#AI#Crypto