Skip to content

Instantly share code, notes, and snippets.

View AlexKorovyansky's full-sized avatar

Alex Korovyansky AlexKorovyansky

View GitHub Profile
@thevery
thevery / DrivingInUS.md
Last active February 7, 2019 15:14
Notices about driving in US
  • Нерегулируемые перекрёстки обычно обозначаются знаком Stop (и часто дополнительной табличкой 4-way/all way), на них действует правило FIFO - кто первый приехал на перекрёсток, тот первым и уехал с него. Останавливаться, конечно, нужно обязательно.
  • Иногда одна дорога бывает условно-главной или строго второстепенной и тогда stop стоит только на другой, определить наличие знака справа-слева помогает наличие стоп-линии и слова STOP на асфальте. На второй год вождения на больших дорогах без STOP-а я на перекрёстках уже не тормозил :)
  • Yield - уступи дорогу.
  • Пешеходный перевод часто бывает не зеброй, а просто двумя параллельными линиями. - Ildar Karimov
  • Регулируемые перекрёстки похожи на наши, но светофор и знаки располагаются за перекрёстком. Из важных отличий:
  • Для поворота налево в 90% случаев есть отдельная полоса (расширение дороги либо специальная жёлтая разметка) и отдельный светофор из трёх секций (все три в виде стрелки). Если красной стрелки нет, значит поворачивать нужно как в России
Useful tricks for Android gradle files
- build time
- ci_job
- dependencies
- force a lang for a specific flavor
- gcm flavorish google-services.json
- git commit count
- git sha
- isIdeBuild

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@yi-jiayu
yi-jiayu / count_messages.py
Last active May 6, 2025 09:15
Using Telethon and the Telegram API to count the number of messages in each of your recent conversations
from telethon import TelegramClient
from telethon.errors.rpc_errors_401 import SessionPasswordNeededError
# (1) Use your own values here
api_id = 17349
api_hash = '344583e45741c457fe1862106095a5eb'
phone = 'YOUR_NUMBER_HERE'
username = 'username'