Skip to content

Instantly share code, notes, and snippets.

View christianberg's full-sized avatar

Christian Berg christianberg

View GitHub Profile
@vamsii
vamsii / gist:2471720
Created April 23, 2012 15:36
Heroku like hostname generator
<?php
$adjs = array( "autumn", "hidden", "bitter", "misty", "silent", "empty",
"dry", "dark", "summer", "icy", "delicate", "quiet", "white", "cool",
"spring", "winter", "patient", "twilight", "dawn", "crimson", "wispy",
"weathered", "blue", "billowing", "broken", "cold", "damp", "falling",
"frosty", "green", "long", "late", "lingering", "bold", "little",
"morning", "muddy", "old", "red", "rough", "still", "small",
"sparkling", "throbbing", "shy", "wandering", "withered", "wild",
"black", "young", "holy", "solitary", "fragrant", "aged", "snowy",
@badp
badp / trueskill.py
Created June 21, 2010 07:41
An iffy, unaccurate, limited trueskill implementation of TrueSkill in Python.
from math import *
from math import pi as π
from pprint import pprint
games = [
("PK", "SF"), ("RT", "XT"), ("ACE", "BS"), ("SRM", "GB"), #day 1
("SysX", "XT"), ("PK", "RT"), ("SF", "GB"), ("SRM", "BS"), #day 2
("SysX", "GB"), ("RT", "BS"), ("SF", "SRM"), ("XT", "ACE"), #day 3
("SysX", "PK"), ("RT", "SF"), ("XT", "BS"), ("GB", "SRM"), #day 4
("SysX", "RT"), ("PK", "ACE"), ("XT", "SF"), ("BS", "GB"), #day 5