Skip to content

Instantly share code, notes, and snippets.

View leongersing's full-sized avatar

Leon Gersing leongersing

  • South Florida
View GitHub Profile

Keybase proof

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:

@leongersing
leongersing / best.md
Last active March 7, 2016 17:09
Best. Gist. Ever.

I love 🍣 🐟


It has lots of 💥 emoji 👍!

@leongersing
leongersing / gdi-lesson2.js
Created March 7, 2012 00:28
gdi-lesson2.js
<!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"
<html>
<title>this little event model</title>
<body>
<button id="clickr">hello</button>
</body>
</html>
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