Skip to content

Instantly share code, notes, and snippets.

View PartyWumpus's full-sized avatar

Party Wumpus PartyWumpus

View GitHub Profile
@PartyWumpus
PartyWumpus / diffinator.py
Last active June 13, 2024 19:24
Diff valve's CSS
# get the old and new css folders from ~/.local/share/Steam/steamui/css/
# format them with cssunminifier or similar
# diff them with git diff --unified=0 --no-color --no-index old new > diff
# then
from collections import Counter
import cssselect
f = open("diff")
before = ""
name_map = {}