A bunch of random code I have on my wiki page