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

Резултати

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

Пребарај: #berachain

当前筛选 #berachain清除筛选
Airdrop Gold : Crypto Airdrop

@airdropgoldchannel · Post #157899 · 28.01.2025 г., 20:50

🪂Don’t miss this, If you’re holding Ethereum ✅Final Phases of the Berachain Airdrop 🟠Berachain project has been in testnet for a year and is fundamentally a Layer 1 blockchain based on the EVM (similar to Polygon). 💰 raised $140 million from Tier 1 VCs to date. 🗓 Token to launch in Q1 2025, possibly in April 2025. ➡️🔝How to start: 🟢Step 1: Visit the following link: 🔗https://app.stakestone.io/u/vault/detail/bera 🟢Step 2: Connect your wallet and 💥 use this code for a 10% bonus: 69A92 🟢Step 3: If you have extra ETH, take advantage of this opportunity by adding liquidity on the StakeStone platform to maximize your chances of earning two airdrops: - Berachain Airdrop - StakeStone Airdrop 🟢Step 4: Deposit ETH, STONE, or WETH to receive beraSTONE tokens. 🔜 ETH withdrawals will be enabled soon, but when you deposit, you’ll receive equivalent beraSTONE tokens, which you can sell anytime on Uniswap to get your ETH back. ⬆️ Holding beraSTONE earns you project-related points for Dolomite_io and KodiakFi. 🪂Official rewards announced so far: - $STO token rewards - Berachain rewards via Boyco (a large portion of Bera tokens are allocated to Boyco, which means Berachain airdrop potential). - Rewards from two projects: KodiakFi and Dolomite_io. - Additional rewards to be announced. #Berachain

Hashtags

Pirate Clash Official Channel

@PirateClashChannel · Post #238 · 04.10.2024 г., 11:20

🤝 Partnership: BearCage X Pirate Frenzy Thrilled to announce our new partner, BeraCage, the first Berachain Super Wallet on Telegram! They let users explore the #Berachain Testnet and discover the entire ecosystem right on Telegram. Users can especially accumulate $BECA tokens by playing the Bear Hunting game, referring friends to BearCage, and much more. The more actions you complete, the greater your chances of earning $BECA and the Berachain token airdrop! 🪂 🐻 Join BearCage's Telegram Mini App now: https://t.me/bearcagebot/bearcage?startapp=nQcep_IflnIi 👉 For more details:https://x.com/PirateClash_HQ/status/1842162175894569068 - - - Website | Twitter | TG Channel | TG Community | Discord • Pirate Frenzy (Play-To-Airdrop Mini App on Telegram) • Pirate Clash (Extension directly playable on Twitter)

Hashtags

TokenPocket

@tokenpocket_channel · Post #1546 · 06.02.2025 г., 02:55

Check Your $BERA On TokenPocket! 🐻⛓ Berachain Airdrop Checker is now live on TokenPocket’s Airdrop Zone, allowing you to verify your eligibility with just one click! 🎁🚀 📱https://tokenpocket.pro/en/download/app 💻https://tokenpocket.pro/en/dappstore?category_id=99998&category=Trend #BERA#Berachain

TokenPocket

@tokenpocket_channel · Post #1547 · 07.02.2025 г., 09:18

🐻⛓ Q5! Berachain is now live on TokenPocket. Berachain is a high-performance EVM-compatible blockchain built on Proof-of-Liquidity consensus. 💙How to create/import a Bera wallet on #TokenPocket? Guide👉https://help.tokenpocket.pro/en/wallet-operation/how-to-create-a-wallet/berachain 🎈Discover the #BERA Ecosystem with Your TokenPocket! #Berachain 📱https://tokenpocket.pro 💻https://extension.tokenpocket.pro

TokenPocket

@tokenpocket_channel · Post #1308 · 26.03.2024 г., 03:34

🐻⛓We now support users to add #Berachain Testnet “Artio” To their TokenPocket Wallet! The Berachain is an EVM-equivalent L1 built on the Cosmos SDK and powered by Proof of Liquidity. From now on, you can easily create&import&sync your wallet on berachain on TokenPocket Wallet! 👉https://tokenpocket.pro #berachain_testnet

SpotOnChain | Announcement

@spotonchain · Post #1324 · 03.11.2025 г., 10:14

🚨 BREAKING: $117M in assets stolen from @Balancer in the last 2 hours after a major hack!!! 🔹 Assets stolen are across multiple chains: #Ethereum, #Base, #Optimism, #Sonic, #Polygon, #Berachain – mainly in Liquid Staking Tokens (LSTs) of $ETH. Top 5 stolen assets: • 7,838 $WETH (~$29.1M) • 6,841 $OSETH (~$26.8M) • 4,459 $WSTETH (~$20.1M) • 2,405 $SFRXETH (~$10M) • 2,038 $RSETH (~$8.67M) 🔹 The hacker is acting quickly: Converting LSTs into $ETH in real-time! 🔹 Big move: Whale account 0x009, dormant for 3 YEARS, just resurfaced after the exploit and withdrew $7.38M worth of assets from #Balancer! ⚠️ ALERT: If you’re still on #Balancer, secure your funds NOW before it’s too late! 🔐 Follow @spotonchain for more updates about the hack! https://x.com/spotonchain/status/1985289043383300351

Venture Village Wall 🦄

@venturevillagewall · Post #4093 · 07.02.2025 г., 19:00

Utah Legislation on Bitcoin Investment Passes 🚀 The Utah House has passed legislation allowing state investment in Bitcoin, moving it to the Senate for further evaluation. 🔗 Read more about the implications of this bill here. 💸 Stablecoin donation company Coala Pay successfully closed a $3.5 million funding round. 🏦 Fed’s Christopher Waller supports stablecoins as vital for USD's reserve currency status. ✨ SEC is reviewing a Solana-ETF application from Grayscale. 📈 Developers of Berachain have launched their mainnet and conducted an airdrop. 🔒 Japan urges Apple and Google to block five crypto exchanges. #Bitcoin#Stablecoin#CoalaPay#Fed#Stablecoins#SEC#Solana#Grayscale#Berachain#Japan#Crypto#Investment#Legislation#VC#News#USA#Fintech#CryptoExchange#DeFi#Funding#Innovation

Venture Village Wall 🦄

@venturevillagewall · Post #4080 · 06.02.2025 г., 07:00

Berachain Launches BERA Tokenomics Today 🐻 Berachain introduced BERA tokenomics with a total supply of 500 million tokens. 🐻 Distribution: 48% allocated to the community, including 15.8% for airdrop, 13.1% for future initiatives, and 20% for ecosystem development. 🐻 Eligible for airdrop: early testnet participants, NFT holders, liquidity providers, and Binance HODLers. 🐻 Mainnet launch coincides with the Token Generation Event (TGE) on February 6. More details can be found in ForkLog's article. #Berachain#Tokenomics#Crypto#Airdrop#NFT#Blockchain#Mainnet#TGE#Community#LiquidityProviders#ETH#Bitcoin#ETF#Finance#Investment#DigitalEconomy#DAO#Kraken#Thailand#DEX

Venture Village Wall 🦄

@venturevillagewall · Post #4136 · 13.02.2025 г., 01:00

Bitcoin Rewards Card and ASIC Seizures 🚀 Fold launches Bitcoin rewards credit card. ⚠️ Liquity V2 introduces Stability Pools. 🔵 Arbitrum's BoLD initiative announced. 🐻 Berachain successfully launches Mainnet. 🌍 Central African Republic unveils new Meme Coin. 🛠️ Story Protocol's Mainnet under development. 🔒 CBP seizes ASIC Bitcoin miners due to unapproved AI chips, impacting MicroBT, Canaan, and Bitmain. 📄 Cboe BZX submits proposal to SEC for staking Ether in 21Shares Core Ethereum ETF. Bitcoin price: $98,000. Read more on Leviathan News and Wu Blockchain News #Bitcoin#Crypto#ASIC#ETF#Ethereum#ETFs#Staking#Coin#MemeCoin#Mainnet#Blockchain#Arbitrum#Berachain#Fold#MicroBT#Canaan#CBP#Liquity#StoryProtocol#21Shares#Investment#Finance#VC #Bitcoin#Crypto#ASIC#ETF#Ethereum#ETFs#Staking#Coin#MemeCoin#Mainnet#Blockchain#Arbitrum#Berachain#Fold#MicroBT#Canaan#CBP#Liquity#StoryProtocol#21Shares#Investment#Finance#VC