Skip to content

Instantly share code, notes, and snippets.

View Maclovi's full-sized avatar
💭
Writing bugs as features, call it art 🎨

Sergey Maclovi

💭
Writing bugs as features, call it art 🎨
View GitHub Profile
@Maclovi
Maclovi / dishka_decorate.py
Last active June 19, 2025 13:42
example dishka decorate/proxy
from dataclasses import dataclass
from typing import NewType, Protocol
from dishka import Provider, Scope, make_container
from typing_extensions import override
Redis = NewType("Redis", dict[str, str])
class AIGateway(Protocol):
@Maclovi
Maclovi / alacritty.toml
Last active May 28, 2025 09:28
alacritty.toml
[env]
TERM = "xterm-256color"
COLORTERM = "truecolor"
LANG = "en_US.UTF-8"
WINIT_X11_SCALE_FACTOR = "1.0"
[window]
opacity = 0.92
decorations = "Buttonless"
padding = { x = 0, y = 0 }
@Maclovi
Maclovi / pyproject.toml
Last active March 13, 2025 16:27
configurate
[build-system]
requires = ["setuptools>=66.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]