Skip to content

Instantly share code, notes, and snippets.

View lunhg's full-sized avatar

Guilherme Lunhani lunhg

  • SP
View GitHub Profile
n = 19
points = {x:[],y:[]} for i in [0..n-1]
update = (a, fn) ->
for _n in [0..a.length-1]
for key,val of a[_n]
fn(_n,key,val)
@text a[_n], 10, (_n+1)*(n/@width)
callback = (n, k, v) ->