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 hash(obj) { | |
var cache = []; | |
function sanitize(obj) { | |
if (obj === null) { return obj; } | |
if (['undefined', 'boolean', 'number', 'string', 'function'].indexOf(typeof(obj)) >= 0) { return obj; } | |
if (typeof(obj)==='object') { | |
var keys = Object.keys(obj).sort(), | |
values = []; |
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
for k in $(git branch | sed /\*/d); do | |
if [ -n "$(git log -1 --before='1 month ago' -s $k)" ]; then | |
git branch -D $k | |
git push origin --delete $k | |
fi | |
done |
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 repeatingArray = [4, 5, 6]; | |
var circularObj = { | |
a: 1, | |
b: 1, | |
c: "an allowed repeating string", | |
d: "an allowed repeating string", | |
e: repeatingArray, | |
f: repeatingArray, | |
g: [ |
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 processObjWithRef(obj, result){ | |
if(obj==null || typeof obj != 'object'){ | |
//nothing really to do here - you're going to lose the reference to result if you try an assignment | |
} | |
if(obj instanceof Array) { | |
for(var i=0; i<obj.length; i++){ | |
result.push(); | |
processObjWithRef(obj[i], result[i]); | |
} | |
} |
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
set smartindent | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab |
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
<html> | |
<head> | |
<title>Side By Side Div Example</title> | |
<style> | |
div.left-column { | |
background-color: yellow; | |
display: inline; | |
} |
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
<html> | |
<head> | |
<title>Side By Side Div Example</title> | |
<style> | |
div.left-column { | |
width: 20%; | |
min-width: 200px; | |
float: left; | |
background-color: yellow; |
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": "schema-website", | |
"version": "0.0.0-30", | |
"description": "ERROR: No README.md file found!", | |
"main": "server.js", | |
"dependencies": { | |
"async": "~0.2.5", | |
"consolidate": "~0.8.0", | |
"express": "~3.1.0", | |
"passport": "~0.1.15", |
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
info: Creating snapshot 0.0.0-14 | |
debug: { method: 'POST', | |
debug: uri: 'https://api.nodejitsu.com/apps/trindaz/schema-website/snapshots/0.0.0-14', | |
debug: headers: | |
debug: { Authorization: '*****************************************************************', | |
debug: 'Content-Type': 'application/octet-stream', | |
debug: 'Content-Length': 838180 }, | |
debug: timeout: 240000 } | |
info Uploading: [=============================] 100% | |
debug: { statusCode: 201, |
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
info: Creating snapshot 0.0.0-13 | |
info Uploading: [=============================] 100% | |
info: Updating app schema-website | |
info: Activating snapshot 0.0.0-13 for schema-website | |
info: Starting app schema-website | |
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error | |
error: | |
error: There was an error while attempting to start the app | |
error: Error spawning drone |
NewerOlder