Skip to content

Instantly share code, notes, and snippets.

View vhalli's full-sized avatar

Venkatesh Halli vhalli

View GitHub Profile
@vhalli
vhalli / Conway.elm
Created November 17, 2019 09:18
Conway's Game of Life in Elm (For GDCR 2019 at Helpshift)
module Conway exposing (..)
import Set exposing (Set)
type alias Cell =
( Int, Int )
newCell : Int -> Int -> Cell
@vhalli
vhalli / qsort.py
Created March 3, 2013 15:51
Visualizing quicksort in python
from pylab import *
from random import shuffle
def qsort(l, s, e):
if s < e:
mid = part(l, s, e)
qsort(l, s, mid-1)
qsort(l, mid+1, e)
else:
return