Skip to content

Instantly share code, notes, and snippets.

@lita
lita / gist:1af81ec5c9e7cce3cf86
Created June 26, 2014 18:33
Mocked somewhat fixed
class MockStringIO(object):
def __init__(self, config_string):
self.string_io = io.StringIO()
self.string_io.write(config_string)
def readlines(self):
lines = self.string_io.readlines()
self.string_io.seek(0)
return lines
@lita
lita / keybase.md
Created March 21, 2014 17:16
keybase

Keybase proof

I hereby claim:

  • I am litacho on github.
  • I am lita (https://keybase.io/lita) on keybase.
  • I have a public key whose fingerprint is F032 548B 6A11 7C85 CCEB 6EBC 8B44 15B2 5D60 BE45

To claim this, I am signing this object:

tree = {'a':['b','c','d'],
'd':['b','d','e'],
'e':['a']}
def findNodes(start, end, graph, visited):
if start == end:
return True
elif start not in graph:
import Mouse
import Window
radius = 15
data Step = Delta Float | Click (Float,Float)
toFloat2 (w, h) = (toFloat w, toFloat h)
--Model--
type Ball = { x:Float, y:Float, vx:Float, vy:Float, id:Float }
import os, io
import pdb
import Queue
def createRoot():
f = open('triangle.txt', 'r')
root = {}
import os, io
import pdb
import Queue
def createRoot():
f = open('triangle.txt', 'r')
root = {}