Skip to content

Instantly share code, notes, and snippets.

@WindowDump
WindowDump / thcrap_random.py
Last active June 16, 2019 15:59
thcrap patch configuration randomizer (Python 3.5+)
#!/usr/bin/env python3
# thcrap patch configuration randomizer by Window Dump, version 190430
# Changelog
# 190430
# * Added more patches to the default blacklist which probably corrupt your scorefiles
# 190314-2
# * Don't download files.js - it's managed by thcrap :nmlgcgod:
# * If patch.js had to be downloaded, keep it in memory
# 190314
//
// Author: Jonathan Blow
// Version: 1
// Date: 31 August, 2018
//
// This code is released under the MIT license, which you can find at
//
// https://opensource.org/licenses/MIT
//
//
@devinacker
devinacker / mmd.cpp
Last active June 23, 2023 06:57
.mmd to .mid converter
/*
MMD to MIDI (SMF) converter
(c) 2015 by Devin Acker <d@revenant1.net>
No sysex, no tempo slides, but it loops Touhou music!
Licensed under WTFPL:
http://www.wtfpl.net/txt/copying/
*/
@MicahElliott
MicahElliott / colortrans.py
Created November 29, 2010 07:57
Convert values between RGB hex codes and xterm-256 color codes.
#! /usr/bin/env python
""" Convert values between RGB hex codes and xterm-256 color codes.
Nice long listing of all 256 colors and their codes. Useful for
developing console color themes, or even script output schemes.
Resources:
* http://en.wikipedia.org/wiki/8-bit_color
* http://en.wikipedia.org/wiki/ANSI_escape_code