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
@reborg
reborg / rich-already-answered-that.md
Last active September 14, 2025 21:56
A curated collection of answers that Rich gave throughout the history of Clojure

Rich Already Answered That!

A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats.

How to use:

  • The link in the table of content jumps at the copy of the answer on this page.
  • The link on the answer itself points back at the original post.

Table of Content