Skip to content

Instantly share code, notes, and snippets.

View ecnerwala's full-sized avatar

Andrew He ecnerwala

View GitHub Profile
@ecnerwala
ecnerwala / XBPGH.md
Last active August 13, 2022 18:48
X'BPGH Save File Format

Save file

X'BPGH solutions are stored in the game's base save file, found at

Windows: %USERPROFILE%\Documents\My Games\Last Call BBS\<user-id>\save.dat
Linux: $HOME/.local/share/Last Call BBS/<user-id>/save.dat

The relevant lines of save.dat are of the form

@ecnerwala
ecnerwala / download_prob.py
Last active April 11, 2024 12:15
ecnerwala's CP template system
#!/usr/bin/env python3
"""Download and setup problems from Competitive Companion
Usage:
download_prob.py --echo
download_prob.py [<name>... | -n <number> | -b <batches> | --timeout <timeout>] [--dryrun]
Options:
-h --help Show this screen.
--echo Just echo received responses and exit.
@ecnerwala
ecnerwala / cvimrc
Last active October 14, 2015 16:51
" Miscelaneous
set numerichints
set typelinkhints
" Key bindings
unmap <C-6>
unmap u
unmap d
@ecnerwala
ecnerwala / Makefile
Last active April 11, 2024 21:26
Competitive Programming Makefile
# +--------------------+
# | |
# | GENERAL CONFIG |
# | |
# +--------------------+
PROBLEM_NAME := problem_name
DEBUG := true
LANG := cpp