Skip to content

Instantly share code, notes, and snippets.

View ksato9700's full-sized avatar

Ken Sato ksato9700

View GitHub Profile
@ksato9700
ksato9700 / 0_reuse_code.js
Created March 23, 2014 21:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ksato9700
ksato9700 / gist:1074697
Created July 10, 2011 17:03 — forked from kevinpang/gist:1015599
JavaScript prototypal inheritance
function Shape(x, y) {
this.x = x;
this.y = y;
}
Shape.prototype.toString = function() {
return 'Shape at ' + this.x + ', ' + this.y;
};
function Circle(x, y, r) {