Skip to content

Instantly share code, notes, and snippets.

View ArtyomKozyrev8's full-sized avatar
😀
I wish to join to a great software developers community!

Artyom Kozyrev ArtyomKozyrev8

😀
I wish to join to a great software developers community!
View GitHub Profile
@ArtyomKozyrev8
ArtyomKozyrev8 / main.py
Created November 4, 2023 18:07
Very simple bot for Maxim - Drinking Bot!
import asyncio
import logging
from aiogram import Dispatcher, Bot, F
from aiogram.filters import Command
from aiogram.types import Message, CallbackQuery
from aiogram.utils.keyboard import InlineKeyboardBuilder
router = Dispatcher()
@ArtyomKozyrev8
ArtyomKozyrev8 / roman_long_list_comperension.py
Created September 11, 2023 09:33
example for Roman - very long list comprehension
INPUT_DATA = [
["a", "111", "a1", "a11"],
["---------------------"],
["b", "222", "b2", "b22"],
["_____________________"],
["c", "333", "c3", "c33"],
["_____________________"],
]
@ArtyomKozyrev8
ArtyomKozyrev8 / asyncio_process_children_and_their_children
Created August 18, 2021 09:10
call of children processes in child process of the process with asyncio app inside
import asyncio
from concurrent.futures import ProcessPoolExecutor
from typing import Callable, List
from time import sleep, monotonic
from random import randint
from functools import partial
TASKS_NUMBER = 9