Skip to content

Instantly share code, notes, and snippets.

@fractal161
fractal161 / merge.py
Created May 5, 2024 07:45
VGO Part Merger
'''
Utility for merging orchestra parts in a printer-friendly manner
Motivation: print.mit.edu has an unfortunate quirk where only one document can
be uploaded at a time. This is quite inconvenient when printing a bunch of
orchestral parts because there are many instruments.
Only dependencies are python and the pypdf package. Its generic usage is of the
form
### Keybase proof
I hereby claim:
* I am fractal161 on github.
* I am fractal161 (https://keybase.io/fractal161) on keybase.
* I have a public key ASAuA3Cc7QuAdi6fimgmxEQDbxR6XBSDMmXWgZkc6K8lXAo
To claim this, I am signing this object:
@fractal161
fractal161 / all_uncap.py
Last active August 24, 2023 06:01
Generates bunch of score uncap codes for NES Tetris
letter_order = 'APZLGITYEOXUKSVN'
gg_order = [
['A', 'E', 'P', 'O', 'Z', 'X', 'L', 'U'],
['G', 'K', 'I', 'S', 'T', 'V', 'Y', 'N'],
]
# returns the two game genie codes associated with the given input
def create_code(addr, data, cmp=None):
indices = []
if cmp == None: