This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[=[ | |
PLANNING | |
- how to control piece sequence? | |
- information per execution unit: | |
- handler at the start of frame | |
- optionally controls piece movement according to another table | |
- handler right at end of piecegen | |
- special handler for first tetris because it does piecegen differently | |
- "extra" handlers, specify function and memory address |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Tool for the very common situation where you mess with the osu lazer database | |
files (the ones you're told not to touch) without making a backup and suffer | |
the deserved consequences. | |
The interesting part here is that the files themselves are still present on | |
disk, but the lazer client is unable to perceive them (the existence of all | |
objects is tracked through client.realm). So the strategy here is to look for | |
all files after a certain cutoff date, pattern match for the desired file type, | |
then move them to one location, where they can be re-imported directly through |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |