Skip to content

Instantly share code, notes, and snippets.

View gamesbyangelina's full-sized avatar

Michael Cook gamesbyangelina

View GitHub Profile
%I forget if you need pgfplots or if I have it for another reason...
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\begin{figure}
\begin{tikzpicture}
@gamesbyangelina
gamesbyangelina / heroname.py
Created June 14, 2013 04:27
Quick Python script that uses Tony Veale's Metaphor Magnet (http://ngrams.ucd.ie/metaphor-magnet-acl) to generate poetic descriptions of heroes. Nothing fancy, just playing around.
from xml.etree import ElementTree as ET
import urllib
import os
import itertools, random
plus = "%2B"
neg = "-"
def getText(nodelist):
rc = []
@gamesbyangelina
gamesbyangelina / MurderAtTheManor.java
Created April 3, 2012 13:29
APACE Game Example (work in progress)
package ccg.angelina.staticgame;
import org.newdawn.slick.Animation;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;
import apace.PACGame;
import apace.model.Hotspot;
import apace.model.Item;