Skip to content

Instantly share code, notes, and snippets.

#Newbie programmer
def factorial(x):
if x == 0:
return 1
else:
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal
BEGIN {loop {callcc {|cc| begin sleep; ensure cc.call end}}}
@pope
pope / gist:1119056
Created August 1, 2011 21:32 — forked from 8bitorange/gist:1119051
my hello world
/**
* Handling all dom and instantiation of all other js
*
*/
// include dom
goog.require('goog.dom');
goog.require('goog.style');
goog.require('goog.iter');