Skip to content

Instantly share code, notes, and snippets.

== Access of unallocated memory ==
address 0
at test_unallocated (file_name.js:3:0)
== Access of uninitialized memory ==
address 0
at test_unallocated (file_name.js:3:0)
== Free of unallocated memory ==
address 8184
class HashMap
# non-implementation of a HashMap :)
get: (key) -> @[key]
put: (key, val) -> @[key] = val
HashMapC = (keyContract, valContract) ->
?{
get: ((keyContract) -> valContract)
put: (keyContract, valContract) -> Any
@disnet
disnet / let.coffee
Created December 5, 2011 19:36
let in coffeescript
lets = (vals, fn) -> fn.apply @, vals
lets [1, [2, 3]], (a, [b, c]) ->
a is 1
b is 2
c is 3
@disnet
disnet / highlight.sh
Created October 21, 2011 19:51
running pygments on the command line
pygmentize -f rtf -O fontface=Menlo -o examples.rtf examples.coffee