Skip to content

Instantly share code, notes, and snippets.

View AMorgaut's full-sized avatar

Alexandre Morgaut AMorgaut

View GitHub Profile
// Object.create Partial Polyfill with minimum Support for second parameter
if (!Object.create) {
Object.create = function(o, props) {
function F() {}
F.prototype = o;
result = new F();
if (!props) return result;
for (var prop in props) {
if (!props.hasOwnProperty(prop)) continue;
result[prop] = props[prop].value;
@AMorgaut
AMorgaut / 0_reuse_code.js
Created April 3, 2014 15:24
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
@AMorgaut
AMorgaut / jsconf-eu-2011.md
Created October 7, 2011 09:07 — forked from mattpodwysocki/jsconf-eu-2011.md
JSConf.EU Slides