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'); | |
http.createServer(function(req,res) { | |
res.writeHead(200, {'Content-Type': 'text/html'}); | |
res.end('Hello from Windows Azure running node version: ' + process.version + '</br>'); | |
}).listen(process.env.PORT || 3000); |
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
azure site create node081test --git |
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
curl -O http://nodejs.org/dist/v0.8.1/node.exe |
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
nodeProcessCommandLine: "D:\home\site\wwwroot\bin\node.exe" |
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
git add . | |
git commit -m "using node v0.81" |
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": "A", | |
"version": "0.1.0", | |
"dependencies": { | |
"B": { | |
"version": "0.0.1", | |
"dependencies": { | |
"C": { | |
"version": "0.1.0" | |
} |
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
mssql.queryMultiple(conn_info, "SELECT TOP 5 FirstName,LastName FROM Person.Person SELECT TOP 10 Street, City, State, Zip FROM Address ", | |
function(results) { | |
results.foreach(function(result) { | |
result.on('meta', function(meta) {...}); | |
result.on('row', function(id) {...}); | |
result.on('column', function(column) {...}); | |
result.on('done', function() {...}); | |
result.on('error', function(err) {...}); | |
}); | |
} |
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 request = require('request'); | |
var sax = require('sax'); | |
var parser = sax.parser(false); | |
var categories=[]; | |
var category; | |
var FIND_MODULES_START = 0; | |
var FIND_CATEGORY = 1; | |
var FIND_CATEGORY_NAME = 2; | |
var FIND_MODULES = 3; |
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
API clients: 118 | |
Boilerplates: 10 | |
Build and deployment: 50 | |
Chat: 1 | |
Class systems: 11 | |
Compression: 16 | |
Content Management Systems: 14 | |
Continuous Integration Tools: 3 | |
Control flow / Async goodies: 78 | |
CSS Engines: 12 |
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 mc = require("mc"); | |
var mcclient = new mc.Client('localhost_WebRole1'); | |
mcclient.connect(function() { | |
console.log("Connected to the localhost memcache on port 11211!"); | |
}); |