Skip to content

Instantly share code, notes, and snippets.

View bratish's full-sized avatar

Bratish Goswami bratish

View GitHub Profile
" ..1'''.1 '00''0. '1|''|. ''1|''
11 '0 00 || || 0 1|
.1' '1 10 || || 01 |1
.1' 11 0 1| 0 |0
|1| 101'1' |0'0|' ||
|11 00 1 |0 1 ||
'11 .' 10 01 || |0 ||
'11 || 01 11 || '1 ||
11 || 0| .0| |0 11 ||
''1....1' .||. '01'.||. '|0'..11..
# binding example from Programming Ruby by Dave Thomas
def get_a_binding
val = 123
binding
end
val = "cat"
the_binding = get_a_binding
eval("val", the_binding) # => 123
eval("val") # => "cat"
def get_a_binding
val = 123
binding
end
val = "cat"
the_binding = get_a_binding
eval("val", the_binding) # => 123
eval("val") # => "cat"
/**
* A `tail -f` implementation in Node.js.
*
* Bratish Goswami
* bratishgoswami AT gmail DOT com
*
*/
var sys = require("sys"),
fs = require('fs'),