Skip to content

Instantly share code, notes, and snippets.

@gorlum0
gorlum0 / str2nums.py
Created September 7, 2012 15:49
Some convenience funcs for algs4partI-class exercises - easier in numbers for me than in alphabet.
#algs4partI-class
def str2nums(s):
return [ord(x)-ord('A') for x in s.split()]
def nums2str(l):
return ' '.join(chr(x + ord('A')) for x in l)
@gorlum0
gorlum0 / gist:5721558
Created June 6, 2013 13:42
fbreader old skin
font color: black
background color: #F5F2E7