Skip to content

Instantly share code, notes, and snippets.

View leongersing's full-sized avatar

Leon Gersing leongersing

  • South Florida
View GitHub Profile
class Numeric
def spaces
" " * self
end
end
p 128.spaces
// I needed a basis with which to mock.
function CanYouMockMe(){
this.i_want_stubbed = function(){ return false; };
this.say = function(){ console.log(arguments[0] || "hi!"); };
};
// new Object def.
function Foo() {
this.do_something_interesting = function() {
//hard coded dependency... like my ex-wife. :P
asdf