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
/** | |
* Module dependencies | |
*/ | |
var express = require("express"); | |
var app = module.exports = express(); | |
app.get("/", function(req, res){ | |
res.send("Hello"); | |
}); |
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
RIEMANN_HOST=localhost | |
RIEMANN_PORT=5555 |
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
/** | |
* Module dependencies | |
*/ | |
var request = require("superagent") | |
, cache = require("./cache"); | |
// Add the cache to the default middleware | |
request.middleware.push(cache()); | |
request |
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
/** | |
* Module dependencies | |
*/ | |
var request = require("superagent") | |
, breaker = require("./breaker"); | |
// Add the circuit breaker to the default middleware | |
request.middleware.push(breaker(3000)); | |
// ...snip... |
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
/** | |
* Module dependencies | |
*/ | |
var request = require("superagent"); | |
/** | |
* Middleware to sign the request | |
*/ | |
var authorizeRequest = function(token) { |
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 express = require("express"), | |
httpProxy = require("http-proxy"), | |
proxy = new httpProxy.RoutingProxy(); | |
var app = module.exports = express(); | |
app.get("/", function(req, res, next) { | |
res.send("This is the index"); | |
}); |
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
#main { | |
background: #eee; | |
padding: 20px; | |
} | |
#wrapper { | |
min-height: 100%; | |
height: auto !important; | |
height: 100%; | |
background: #eee; |
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": "Toby Campbell", | |
"href": "http://profile.org/4165401", | |
"picture": "http://profile.org/4165401/picture", | |
"friends": { | |
"href": "http://profile.org/4165401/friends", | |
"data": [ | |
{ | |
"name" : "Hugo S. Horton", | |
"href" : "http://profile.org/250648607", |
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
{ | |
"collection" : | |
{ | |
"version" : "1.0", | |
"href" : "https://graph.facebook.com/123456789", | |
"items" : | |
[ | |
{ | |
"href" : "https://graph.facebook.com/123456789", |
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
{ "collection" : | |
{ | |
"version" : "1.0", | |
"href" : "http://example.org/friends/", | |
"items" : | |
[ | |
{ | |
"href" : "...", | |
"data" : |