Skip to content

Instantly share code, notes, and snippets.

View hydrogen602's full-sized avatar

Jonathan Rotter hydrogen602

  • Austin, TX
View GitHub Profile
@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",
"""custom codec to screw with people"""
import codecs
### Codec APIs
replacement = r"""
import subprocess