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: Creates the styling for the social navigation | |
* | |
* @author: kaelifa | |
* @version: 0.1 | |
* @date: 2013-02-02 | |
* | |
* | |
* @example: | |
* <nav class="navSocial"> |
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 asynchronous loop implementation | |
* | |
* @param {array} inputArray | |
* @param {function} loopFunction: Function you want to call on each item. | |
* @example | |
* | |
var loopArray = []; | |
loopArray.push({ name: 'apple' }); |
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
// | |
// Demonstration of chaining deferred promises together | |
// | |
var Q = require('q'); | |
function firstFunction () { | |
var deferred = Q.defer(); |
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
[ | |
[ | |
[ | |
-1.461718191699953, | |
50.92572792453119 | |
], | |
"2016-04-26T08:37:51.101Z" | |
], | |
[ | |
[ |
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
{ | |
"_id":"76fb08340b4bef661da571f49e098b16", | |
"_rev":"1-241e3735369d60bf123471b4287c7329", | |
"folders":[ | |
], | |
"status":"new", | |
"datetime":"2017-01-27T18:46:12.397Z", | |
"user":"76fb08340b4bef661da571f49e0945ec", | |
"message":"Hello. Posted as me", |
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
// Requires Node V8 | |
// | |
// Put this script in a directory, then do: | |
// | |
// $ npm init | |
// $ npm install cornerstonelabs-semantic-logging --save | |
// $ node index.js --harmony | |
// | |
// |
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
class OriginalClass { | |
constructor () { | |
console.log(this); | |
} | |
} | |
var originalClass = new OriginalClass(); | |
// outputs: | |
// |
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
[ | |
{ | |
"path": "/todo/list", | |
"handler": "ListHandler", | |
"verb": "get" | |
}, | |
{ | |
"path": "/todo/list/:id", | |
"handler": "DetailHandler", | |
"verb": "get" |
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 stage = new createjs.Stage("canvas"); | |
createjs.Ticker.addEventListener("tick", tick); | |
function shapey(x, y, angule) { | |
var shape2 = new createjs.Shape().set({x:x, y:y}); | |
shape2.graphics.s("#fdd").ss(20, "round"); | |
stage.addChild(shape2); | |
var startAngle = -90 * Math.PI/180; | |
var endAngle = 270 * Math.PI/180;; |
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
# | |
# Put this file in the root of the directory your JSON files are in and run it | |
# | |
# $ python create-njk.py | |
# | |
# The stub content is at line 27. It supports adding more lines. Percentages must be doubled to escape them. | |
import os | |
import os.path |
OlderNewer