TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #239 · 3 мај

Один из самых удобных способов записать данные это использование готовых форматов, такие как JSON или YAML. Из плюсов такого подхода стоит отметить вот что: 🔸 готовый, повсеместно используемый и поддерживаемый формат 🔸 простой и понятный файл, удобочитаемый для человека 🔸 можно легко редактировать в любом текстовом редакторе без специальных программ и библиотек Но есть и минусы 🔹 затраты времени при записи файла (кодирование данных в нужный формат строки) 🔹 затраты времени при чтении файла (декодирование данных в Python объекты) 🔹 размер файла увеличивается из-за разметки данных (скобки, запятые, переносы, отступы...) 🔹 перед записью все данные должны быть помещены в память в полном объёме (не всегда) 🔹 при чтении необходимо считать весь файл в память и только потом декодировать данные Если нужно писать немного данных в несколько файлов, то затраты по времени не ощутимы. Обычно это файлы конфига или какие-либо метаданные. Это отличный вариант под такие задачи. Есть и другой поход к записи файлов - это бинарные файлы. Используется, когда данных достаточно много и никто их не собирается читать глазками😳. 🔸 очень быстрая запись 🔸 чтение значительно быстрей чем JSON, YAML итд 🔸 размер файла значительно меньше, так как нет разметки 🔸 можно записывать данные по мере поступления не загружая всё в память 🔸 можно извлечь любую часть данных независимо Из минусов 🔹 нужно определить свой формат записи данных (если не используете готовую спецификацию определённого формата) 🔹 не получится открыть файл и визуально понять что там записано, а для чтения файла потребуется знать его спецификацию. 🔹 не так-то просто создать такой файл без специальной библиотеки В таком виде удобно записывать большой массив любых однородных данных. Например, мониторинг валютной биржи или кэшированная анимация 3D геометрии. (Это не означает что нельзя записать данные разного типа, просто это будет не так удобно) Представьте себе JPG-картинку. По сути это немного мета-информации и большой массив пикселей. Тоже самое со звуком или видео файлом. Поэтому, если вы попробуете открыть картинку в текстовом редакторе вы увидите что-то вроде такого f15d cd29 a564 4578 ... 09e2 9bc4 a696 1253 ... 84e9 4de1 3b23 c24a ... 2534 5161 28e0 709d ... ... Это и есть записанные байтики. И для их чтения требуется определённый софт который знает что с ними делать. Под каждый тип файла. К чему это я? Читайте в следующем посте... #tricks#basic

Резултати

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

Пребарај: #tonstakers

当前筛选 #tonstakers清除筛选
TONlines – News

@tonlines · Post #7705 · 04.12.2025 г., 13:16

Tonstakers: Prizes Distributed to Campaign Winners #Tonstakers#ChainSIM Tonstakers has successfully completed three campaigns, distributing all rewards to the winners. Stay tuned for upcoming holiday activities from the community. Source: link @tonlines

TONlines – News

@tonlines · Post #6784 · 15.04.2025 г., 16:34

⚡️Tonstakers: Exciting Rewards for Stakers in New Campaign #Tonstakers#EVAA#StormTrade Tonstakers, in collaboration with EVAA and Storm Trade, has launched a new campaign offering substantial rewards for participating stakers. Participants can earn EVAA XP for providing and borrowing tokens on EVAA, alongside Storm RP for trading on Storm Trade. Additionally, staking rewards can reach up to 20% APY through the use of Vault on Storm Trade. Source: link @tonlines

😇EVAA: results of the private sale and a joint company with Tonkeeper 💸 Recently EVAA Protocol completed a private sale, raising $2.5m. The investors included TON Ventures, Baring Vostok, Polymorphic, Animoca Brands, CMT Digital, Mythos Ventures, Wagmi Ventures and other investors. You can read more in the article from The Block. 💰 Interestingly, the website and the post indicate that Baring Vostok is among the main investors. The head of this fund is an american buisnesman who invests in irl businesses in Russia and the CIS countries. In the early stages, the fund invested in Yandex, Tinkoff (T-Bank), Ozon, Kaspi and many other companies that have now turned into successful businesses. At the same time, the fund was not connected with the world of crypto, but in 😇 EVAA Protocol noticed great potential. 👛 Now there is a campaign from Tonkeeper, where #EVAA, #Tonstakers and #Getgems are participating. The tasks are pretty simple: 🟡Top up battery in the Tonkeeper. 🟡Stake more than 3 TON in Tonstakers. 🟡Put at least $20 in the main Evaa pool and dont withdraw them until February 4. 🟡Mint the Getgems domain and hold it in wallet. 🟨There is a chance to get bonus rewards from the pool of $15,000 and 1,000,000 EVAA XP in addition, you will receive a commemorative #SBT 🤖 Also, a new bot from EVAA has recently appeared @dassets_bot✔️. With its help, you can track all EVAA pools, liquid staking, rewards from DEX exchanges and LP tokens. A very convenient bot, especially if you have several wallets and liquidity is scattered across many projects. EVAA app | News | Chat | Website

TON Space x EVAA integration ❤️ Recently the non-custodial version of the @wallet — TON Space integrated EVAA Protocol. This is the great opportunity for EVAA, considering that in Q2 Telegram the wallet plans to hit the US market. However, after the end of the TON Foundation boosts for #EVAA, the overall APR % on supply dropped significantly, so now it is more profitable to farm 😇 EVAA XP additionally using other #DeFi projects – #StormTrade and #FIVA. 🪙 The interface itself has undergone a small update. A new section has appeared — "Earn". You can clearly see how the percentage changes after each Supply/Borrow loop through #Tonstakers (looping strategy). If you use $tsTON, then EVAA XP doubles after each loop. 📈 Interest rates on $USDT loans in the LP pool have been reduced. Now it will be less expensive to use the "looping" strategy through SLP. LP pool works very well with Storm. Btw 🪙Storm Trade recently partners with 👍FIVA too. ➡️Add SLP to EVAA. ➡️Borrow $TON or $USDT. ➡️Put it in Storm Trade again. ➡️Repeat. Remember the risks. 🎙 Recently, the co-founders of #VAA held two broadcasts. In one of them, CTO Vlad (@sepezho) touched on the topic of oracles and the risks of liquidations (on Ru lang). In the second podcast, CEO Vlad participated, discussing the DeFi segment on TON in general (on Ru lang too). Therefore, if you have nothing to do in your free time, you can check it out. EVAA app | Video-guide

🤝 Storm Trade x EVAA x Tonstakers: a Power Strategy for Liquidity Providers How to put your $TON to work more effectively in DeFi? Three top-tier TON protocols — #StormTrade, #EVAA, and #Tonstakers — have joined forces to introduce a layered liquidity strategy that helps you boost rewards across multiple platforms simultaneously. The core idea: use the same asset across several protocols and earn rewards in each one: 🔵 EVAA 🔵 Storm Trade 🔵 Tonstakers ⚡️Aggressive Strategy: 1️⃣ Stake your $TON with @tonstakers_bot to receive $tsTON (~4% APR). 2️⃣ Supply $tsTON in EVAA — earn 2 XP for every $1 supplied. 3️⃣ Borrow $TON on EVAA — earn 5 XP for every $1 borrowed. 4️⃣ Trade the borrowed $TON on Storm Trade — earn ✖️ twice more RP per $1 in volume. ✅Moderate Strategy: Prefer lower risk? Borrowed $TON from EVAA can be deposited into the Storm Trade TON Vault to earn up to 20% APR. You’ll still receive ✖️ RP rewards. 🗓️Campaign Dates: April 15–25, until 15:00 CET 🥇😇🐸 Rewards will be distributed after the campaign ends. #Degen#DeFi#Stake#Vault#Supply

🏆Get 6 cool SBTs from TOL participants! TBook is an modular incentive layer backed by TON Foundation. Now you have a chance to get 6 cool Soul-Bound Tokens from 6 top-tier projects participants of the 💎 TON Open League! Engage with the projects in staking, borrowing, lending, and trading to earn SBTs and claim the 🙏TON Society airdrop. Don't forget to check your rating! 🚀 🤩Go get your SBTs now! #SBT#NFT#TheOpenLeague#EVAA#DeDust#Tonstakers#bemo#STONfi#TOL#StormTrade

SettleTon and Portfel Collaboration 🔥SettleTon has recently partnered with #TorchFinance, this time by adding a new project to the list – #Portfel. 💼 Portfel's goal is to become the main application for tracking our assets: all tokens, staking on multiple #DEX, provided liquidity, rewards, and using all the necessary #DeFi applications. The team shared their immediate plans and roadmap: 🟡#NFTs and their valuation 🟡Support for multiple addresses 🟡Staking platforms - #Tonstakers and #jVault 🟡Vaults by Storm.tg 🟡Token swaps via the best Dex Aggregator 🟡Token details page 🪅DeFiLlama also included#SettleTon on their platform, adding transparency and value for users. SettleTON | GitBook | Chat EN | X