I hereby claim:
- I am leongersing on github.
- I am leongersing (https://keybase.io/leongersing) on keybase.
- I have a public key ASCm5C67PkhnsNao62JcCxWMgrYIl6FFSbq778-_-VN59Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
.completedItems > li { text-decoration: line-through; } | |
</style> | |
<script type="text/javascript" src="jquery.min.js"></script> | |
<script> | |
$(function(){ | |
var newToDoFieldEl = $("#newToDoField"); |
// 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 |
Fields------------------------------------------ | |
@interface SubViewController : UIViewController { | |
MyAppDelegate *appDelegate; | |
} | |
@end | |
@implementation SubViewController | |
- (void)dealloc { | |
[appDelegate release]; appDelegate = nil; |
source :gemcutter | |
gem 'rails', '~> 2.3.5', :require => nil | |
gem "rack", "1.0.0" | |
gem "authlogic" | |
gem "jrails" | |
gem "easy_roles" | |
gem "acts-as-taggable-on" | |
gem "rakismet" | |
gem "haml", "2.2.17" |
function Person() { | |
this.name = arguments[0] || "I don't have a name." | |
} | |
Person.prototype.getName = function() { | |
return this.name; | |
} | |
var person = new Person("Sophia"); | |
document.write(person.getName()); |
function Person(){ | |
this.name = arguments[0] || "name"; | |
this.email = arguments[1] || "foo@foo.com"; | |
} | |
function Man(){ | |
this.sex = "male"; | |
} | |
Man.prototype = new Person(); |
function person(name, email, age){ | |
this.name = name; | |
this.email = email; | |
this.age = age; | |
} | |
leon = new person("Leon", "foo@foo.com", 32); | |
leon.email // foo@foo.com |