Skip to content

Instantly share code, notes, and snippets.

View ilyasf's full-sized avatar
🏠
Working from home

Ilias ilyasf

🏠
Working from home
View GitHub Profile
@ilyasf
ilyasf / 0_reuse_code.js
Created July 14, 2014 13: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
/*global log:false*/
// Tell IE9 to use its built-in console
if (Function.prototype.bind && (typeof console === 'object' || typeof console === 'function') && typeof console.log === 'object') {
['log','info','warn','error','assert','dir','clear','profile','profileEnd']
.forEach(function (method) {
console[method] = this.call(console[method], console);
}, Function.prototype.bind);
}