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 Twitter = (function() { | |
var feed = function(userId, callback, count) { | |
var url = "https://api.twitter.com/1/statuses/user_timeline.json?screen_name=" + userId + "&count=" + (count || 10); | |
$.ajax({ | |
url: url, | |
dataType: 'jsonp', | |
success: function(results) { | |
callback(null, results); | |
}, |
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
<?php | |
class FacebookFeed { | |
private $appID; | |
private $appSecret; | |
private $fbID; | |
private $appToken; | |
public function __construct($appID, $appSecret, $fbID, $appToken = false) { |
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 GitHub = (function() { | |
var feed = function(user, callback) { | |
var url = "https://api.github.com/users/" + user + "/events"; | |
$.ajax({ | |
url: url, | |
dataType: 'jsonp', | |
success: function(results) { | |
callback(null, results); | |
}, |
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 mode = process.argv[2] ? process.argv[2] : "local"; | |
mode = mode.replace("/", "") == "tests" ? "local" : mode; | |
var express = require('express'); | |
var app = express(); | |
var config = require("./config/" + mode).config; | |
var glob = require("glob"); | |
var path = require('path'); | |
// helper middlewares |
NewerOlder