Skip to content

Instantly share code, notes, and snippets.

View landgrafhomyak's full-sized avatar

Andrew Golovashevich landgrafhomyak

View GitHub Profile
/*
This macro allows to use CapsLock instead of Space clicker.
Recomends to set CaplsLock disabler to Shift.
*/
#include <windows.h>
import asyncio
import datetime
import random
from typing import Optional
from telethon import TelegramClient
from telethon.sessions import MemorySession
API_ID: int = ...
API_HASH: str = ...
@landgrafhomyak
landgrafhomyak / template.py
Last active November 19, 2020 15:27
Template classes interface for python like in c++
"""
Template classes interface for python like in c++
in C++: any_class<any>
in Python: any_class[any]
"""
from typing import Iterable, Type, Tuple, Union, NoReturn, Any, Dict, TypeVar
BC = TypeVar("BC")