This file contains hidden or 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
{ | |
"owner":{ | |
"name": "George", | |
"job": "Developer", | |
"favoriteBurrito": "breakfast" | |
}, | |
"children": [ | |
{ | |
"name": "Sara", | |
"age" : 5, |
This file contains hidden or 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
{ | |
"owner":{ | |
"name": "George", | |
"job": "Developer", | |
"favoriteBurrito": "breakfast" | |
}, | |
"street": "123 Fake st.", | |
"city": "American Fork", | |
"state": "UT" | |
} |
This file contains hidden or 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 alertTerminal(){ | |
console.log("\007"); | |
} |
This file contains hidden or 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
Let 'a' be equal to the character or string you wish to search for. | |
http://search.npmjs.org/_list/search/search?startkey=%22a%22&endkey=%22aZZZZZZZZZZZZZZZZZZZ%22&limit=25 | |
For example, if you wish to search for packages regarding websockets: | |
http://search.npmjs.org/_list/search/search?startkey=%22websocket%22&endkey=%22websocketZZZZZZZZZZZZZZZZZZZ%22&limit=25 |
This file contains hidden or 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 date = new Date(); | |
console.log("Today is a " + Days[date.getDay()] + " during the month of " + Months[date.getMonth()]); | |
ABBREVIATED: | |
console.log(Days.abbr[date.getDay()] + ", " + Months.abbr[date.getMonth()]); | |
*/ | |
var Days = { |
This file contains hidden or 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 http = require('http'), | |
httpProxy = require('http-proxy'); | |
// | |
// Setup proxy server with forwarding | |
// | |
var options = { | |
router: { | |
'proxytest.randylubin.com': '127.0.0.1:7200', | |
'randylubin.com': '127.0.0.1:7200', |
This file contains hidden or 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
[09:55:47] <taterbase> For Ryan Dahl so loved the world, that he gave his only begotten event loop, that whosoever performed async io could have eternal callbacks. | |
[10:01:36] <SuperShabam> There is no event loop except for the Event Loop alone; and Isaacs is it's messenger. | |
[10:05:59] <taterbase> I can code all things through Node who events my io | |
[10:08:07] <SuperShabam> Have you read anything from the sermon on the /mnt/node? | |
[10:09:07] <taterbase> I started reading it but I'm still waiting for the callback | |
[10:13:33] <SuperShabam> Waiting is an enemy to the Event Loop; and has been since the fall of threads, and will be, forever and ever, unless he yields to the enticings of the Holy Issacs, and putteth off the natural procedural code and becometh a nodester. | |
[10:19:06] <taterbase> Node is my shepherd, I shall not lock. He makes me program asynchronously, he leads me to more memory effecient code, he restores my process. He guides me in events of streams for his name’s sake. Even though I walk through the |
This file contains hidden or 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 bin2string(array){ | |
var result = ""; | |
for(var i = 0; i < array.length; ++i){ | |
result+= (String.fromCharCode(array[i])); | |
} | |
return result; | |
} |
This file contains hidden or 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": "app-name", | |
"author": { | |
"name": "George Shank" | |
}, | |
"version": "0.1.1-3", | |
"dependencies": { | |
"express": "2.5.9", | |
"jade": ">= 0.0.1" | |
}, |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Upload your files</title> | |
</head> | |
<body> | |
<form enctype="multipart/form-data" action="upload.php" method="POST"> | |
<p>Upload your file</p> | |
<input type="file" name="uploaded_file"></input><br /> | |
<input type="submit" value="Upload"></input> |