This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// usage | |
var skeleton = new Skeleton({ name : 'example2' }); | |
=> this skeleton's name is "skeleton2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// standard encapsulating self executing closure | |
(function(root) { | |
'use strict'; | |
/* ---- private ---- */ | |
/** | |
* @private _hasConsole | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* @description GRUNT! (.js) | |
*/ | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
uglify: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* @description Grunt@!!!!! | |
*/ | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
uglify: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// demo | |
!(function YODAWG(window, document) { | |
(typeof(console) !== 'undefined') ? console.log('YO DAWG, I HEARD YOU LIKED JAVASCRIPT, SO I PUT A FUNCTION AROUND A CLOSURE AND PARATHENSIS AROUND MY TYPEOF!') : null; | |
})(window, document); | |
// populate a table with a proxied JSON Object | |
YODAWG.prototype.populateTableViaJSON = function(tableSelector, dataToPopulate) { | |
var _self = this; | |
// clear View |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gm = require('gm'); | |
var canvasWidth = 248; | |
var canvasHeight = 389; | |
gm(__dirname + '/original.jpg').size(function(error, size) { | |
if (error) { | |
console.error(error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @method calculatePaddedNewAspectRatio | |
* @param {Number} rW New Aspect Ratio Width | |
* @param {Number} rH New Aspect Ratio Height | |
* @param {Number} cW Current Width | |
* @param {Number} cH Current Height | |
* @return {Object} Aspect ratio correct .width and .height | |
**/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var kevin = function(error, result) { | |
if (error) { | |
console.error(error); | |
} else { | |
console.log(result); | |
}; | |
}; | |
var kevinNeedsHelp = client.performAimTransaction({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
An error has occurred: {"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127.0.0.1 knowyourmeme.com | |
127.0.0.1 ycombinator.com | |
127.0.0.1 venturebeat.com | |
127.0.0.1 techcrunch.com | |
127.0.0.1 betabeat.com | |
127.0.0.1 facebook.com | |
127.0.0.1 reddit.com |