Ранее я делал серию постов про битовые операторы.
Вот вам ещё один наглядный пример как это используется в Python в модуле re.
Чтобы указать флаг для компилятора нам надо указать его после передаваемой строки. Например, добавляем флаг для игнорирования переноса строки.
pattern = re.compile(r"(\w+)+")
words = pattern.search(text, re.DOTALL)
А как указать несколько флагов? Ведь явно будут ситуации когда нам потребуется больше одного. Кто читал посты по битовые операторы уже понял как.
pattern.search(text, re.DOTALL | re.VERBOSE)
А теперь смотрим исходники, что находится в этих атрибутах?
Не удивительно, степени двойки. Почему? Потому что каждое следующее значение это сдвиг единицы влево.
>>> for n in [1, 2, 4, 8, 16, 32, 64, 128, 256]:
>>>
print(bin(n))
0b1
0b10
0b100
0b1000
0b10000
0b100000
0b1000000
0b10000000
0b100000000
Чтобы было понятней, давайте напишем тоже самое но иначе, добавим ведущие нули:
000000001
000000010
000000100
000001000
000010000
000100000
001000000
010000000
100000000
Не понятно что тут происходит? Читай три поста про битовые операторы начиная с этого ➡️https://t.me/pythonotes/45
В общем, это пример применения побитовых операций в самом Python.
Теперь вы знаете Python еще немного лучше)
#tricks#regex#libs
DarkFi is an L1 for anonymous engineering
The emerging art of building privacy-first applications. DarkFi offers an anti-fragile environment to explore, create and run anonymous apps.
DarkFi's smart contract architecture includes a simple ZK assembly language, zkVM and a WASM runtime. The DarkFi testnet comes packaged with demo applications built with this tooling: transfers, swaps and DAOs, all completely anonymous.
DarkFi Manifesto : Internet technology is centred around extracting profit from users for low value work (clicking ads). This leads to huge data harvesting operations and the construction of a surveillance mega-machine. This encourages docility and consumption rather than active individuated usership. It is an architecture of oppression structured on user control..
DarkFi – https://dark.fi/
Dyne.org :: DarkFi :: Free and open-source anonymous P2P ecosystem – https://dyne.org/software/darkfi/
#P2P
¿Cuáles son las ventajas de la membresía GOLD 👑 de 🔤🔤🔤🔤?
1️⃣ Acceso a las operaciones 👥👥 de forma instantánea. (El resto de los usuario las ve con 2 minutos de retraso)
2️⃣ Posiblidad de publicar hasta 12 ofertas P2P de forma simultánea.
3️⃣0% de comisiones cuando recibes el balance en USD de una oferta #P2P completada.
4️⃣ Retiro instantáneo de su balance en USDT 💲 o TRX 💲
5️⃣ Rebajas y bonificaciones adicionales en la compra de servicios, en el caso de la creacion de la tarjeta 💳, es solo $1
(Pronto mejoras en el fee de recarga)
6️⃣ Muestra una "palomita" dorada junto a su nombre. 😀
Con un costo de $4.99 al mes o 250⭐️ disponible con el comando /gold en nuestro bot.
¿Qué más te gustaría que agregáramos a dicho plan? 👀
⚡️xRocket News: Safeguarding Your P2P Trades
#P2P#cryptocurrency
xRocket News discusses essential tips to prevent bank card blocks during P2P transactions, including avoiding third-party transfers and adhering to transaction limits. The channel also highlights xRocket’s protection mechanisms like escrow and trust level ratings to ensure secure cryptocurrency trading.
Source: link
@tonlines
Eppie — open protocol encrypted p2p email
=> https://eppie.io
=> https://github.com/Eppie-io
Eppie is a next-gen providerless email that allows its users to own their accounts, addresses and data. In addition to its own p2p network Eppie can communicate with other popular decentralized networks, like Ethereum, and is capable of interacting with conventional IMAP/SMTP email. It is beautiful and easy to use, just like a normal email client.
Features:
🌎 Works on all platforms: Windows, MacOS, Linux, iOS, Android
🕶 Privacy-first: there's no such thing as optional encryption
🚀 P2P messaging: without servers nobody's holding your hand anymore
🔑 Identity manager: key management is a breeze
💾 Decentralized backup: your data is safe and only yours
🤙 Ultimate interoperability: Eppie can communicate with Ethereum, Bitcoin and more
📬 IMAP/SMTP compatible: connect to Gmail, Microsoft Outlook etc.
🦄 Proton Mail Authentication: Eppie is the first native desktop client capable of that
🔐 PGP encryption: stay safe even with conventional email
🤖 Local AI agents
NOTE: the project is early in development, not all of the features are publicly availabe
via @dcntr
#email#p2p
✅ Aquí les dejo los requerimientos para poder ser comerciante p2p en BingX y comprar/vender USDT usando sus monedas locales sin comisiones y de una forma segura
👉Guía P2P BingX
#p2p#bingx
📰 Novedades de agosto en 🔤🔤🔤🔤💜
Estamos encantados de presentarles las novedades de este mes que iremos lanzando paulatinamente, se vienen muchas sorpresas. 🙂
Anunciaremos las mismas en varias publicaciones, activa la campanita. 🔔
1. Mejoras en el Bot de QvaPay @qvapaysupport_bot:
Ahora puedes ver las ofertas de un peer en específico 🍸, ya disponible como un botón adicional en el canal de ofertas (@qvapay_p2p) y además de forma manual mediante el comando:
/p2p_index peer=nombre_de_usuario
Esperamos que le sirva de utilidad, puedes filtrar por moneda 💲💰💰💲, precios, ratio, etc. 👍
Posiblidad de regalar el plan GOLD 🥇 a otros usuarios.
Mediante el comando /gold podrás adquirir o regalar a otros usuarios la subscripción vía saldo 🔤🔤🔤🔤 pero también vía ⭐️ de Telegram.
(De esta forma puedes "revender" el plan a otras comunidades 🤑)
Y lo más importante, ESTAREMOS REGALANDO 10 subscripciones GOLD a los usuarios que compartan en Twitter: 🐣
Una anécdota sobre cómo QvaPay✅ le ha resuelto algún problema en su cotidianeidad 💵, adjuntar alguna foto y mencionar a @qvapay con el hashtag: #p2p#qvapay#bitcoin
Regalaremos el plan GOLD a las 10 publicaciones con más ❤️ el 2 de agosto.