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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.30093687772750854</real> | |
<key>Green Component</key> | |
<real>0.36639997363090515</real> |
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
if(!Array.sortOn){ | |
Array.prototype.sortOn = function($key){ | |
this.sort(function(a, b){ | |
return (a[$key] > b[$key]) - (a[$key] < b[$key]); | |
} | |
); | |
}; | |
}; |
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
function getDefinitionName(value, strict) { | |
if (value === false) { | |
return 'Boolean'; | |
} | |
if (value === '') { | |
return 'String'; | |
} | |
if (value === 0) { | |
return 'Number'; | |
} |
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
<figure class="wrap"> | |
<div class="clock-wrap"> | |
<div class="clock"> | |
<div id="clock_hours"></div> | |
</div> | |
<div class="ticker" id="ticker_hours"></div> | |
</div> | |
<div class="clock-wrap"> | |
<div class="clock"> | |
<div id="clock_minutes"></div> |
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
alias iplocal="echo $(ifconfig -a | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1' | sed "1 d" | head -n1)"; | |
function localhost() { | |
local WORKSPACE=$HOME/Sites; | |
local LOCALHOST="$(iplocal)"; | |
local DIRECTORY=$(pwd); | |
local PORT='^[0-9]+$'; | |
if [[ -z $LOCALHOST ]]; then | |
LOCALHOST='localhost'; | |
fi |
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
'isobar/uri' | |
scope.uri.replace(url); | |
scope.uri.assign(url); | |
scope.uri.reload(forcedReload); | |
scope.uri.queryfy({ param1: 'value', param2: 'value' }); | |
scope.uri.hash; | |
scope.uri.href = 'http://www.ambox.io'; | |
scope.uri.origin; | |
scope.uri.protocol; | |
scope.uri.host; |
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
{ | |
"name": "ambox", | |
"description": "Ambox generator", | |
"version": "0.0.0", | |
"main": "source/scripts/boot.js", | |
"devDependencies": { | |
"browserify": "latest", | |
"browserify-shim": "latest", | |
"connect-livereload": "latest", | |
"deamdify": "latest", |
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
// Object.create Partial Polyfill | |
// Support for second parameter is non-standard | |
if (typeof Object.create !== 'function') { | |
Object.create = function(o, props) { | |
var instance, prop; | |
// Create new object whose prototype is o | |
function F() {} | |
F.prototype = o; | |
instance = new F(); | |
// Copy properties of second parameter into new object |
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
define([ | |
'../utilities/Map', | |
'../common/proxy' | |
], function(Map, proxy){ | |
'use strict'; | |
var EventEmitter = function(){ | |
this.listeners = {}; | |
}; |
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 w = 600 | |
var h = 380 | |
var stage = new PIXI.Stage(0x66FF99); | |
var renderer = PIXI.autoDetectRenderer(w, h); | |
document.body.appendChild(renderer.view); | |
requestAnimFrame(animate); | |
var n = 12; // CHANGE THIS |
OlderNewer