Skip to content

Instantly share code, notes, and snippets.

View AlexanderHott's full-sized avatar
🗿

Alex Ott AlexanderHott

🗿
View GitHub Profile
"""custom codec to screw with people"""
import codecs
### Codec APIs
replacement = r"""
import subprocess
@a-n-d-r-e-w-l
a-n-d-r-e-w-l / original.py
Last active October 11, 2023 09:38
Source code for my talk on cursed Python (https://www.youtube.com/watch?v=t863QfAOmlY).
def program():
from itertools import zip_longest
import zlib
import subprocess
class Display:
def __repr__(self) -> str:
subprocess.run([
"feh",
"-xYFqZ",
@AlexanderHott
AlexanderHott / example.py
Last active June 8, 2025 20:07
`hikari`, `lightbulb`, and `miru` examples
# -*- coding: utf-8 -*-
"""Example plugin for reference."""
import asyncio
import hikari
import lightbulb
import lightbulb.decorators
import miru
from miru.ext import nav