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 express = require('express'); | |
var sys = require('sys'); | |
var oauth = require('oauth'); | |
var app = express.createServer(); | |
var _twitterConsumerKey = "YOURTWITTERCONSUMERKEY"; | |
var _twitterConsumerSecret = "YOURTWITTERCONSUMERSECRET"; | |
function consumer() { |
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
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/ strict.dtd"> | |
2 | |
3 <html lang="en"> <head> <meta charset=utf-8> | |
4 <script src="/javascripts/jquery-1.6.2.min.js"></script> | |
6 <script lang="text/javascript"> | |
7 $(document).ready(function() { | |
8 window.location = "/path/to/content?ts={{version number}}"; | |
9 }); | |
10 </script> |
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 params = { | |
login: this.login, | |
apiKey: this.apiKey, | |
longUrl: encodeURIComponent(longUrl) | |
}; | |
var qs = []; | |
for(var key in params) { | |
qs.push(key + '=' + params[key]); | |
} | |
qs = qs.join('&'); |
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 | |
$user = $_GET["user"]; | |
$key= YOUR_KLOUT_KEY; | |
$response = array('user' => $user); | |
$topicUrl = "http://api.klout.com/1/users/topics.json?users=$user&key=$key"; | |
$json = file_get_contents($topicUrl,0,null,null); | |
$topics = json_decode($json); |
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
=== database object file | |
var errors = require('./errors'); | |
var db; | |
exports.setDatabase = function(database) { | |
db = database; | |
} |
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
Let's start with some people | |
vegastech:people:person:raycmorgan { | |
name: Ray Morgan | |
} | |
vegastech:people:person:jimmyjacobson { | |
name: Jimmy | |
} |
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
curl -d "startDate=1234" "http://localhost:3000/event" | |
{ | |
"type": "ValidationError", | |
"msg": "Event creation failed", | |
"errors": [ | |
{ | |
"msg": "missing parameter", | |
"parameter": "endDate" | |
}, |
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 http = require('http'); | |
var redis = require("redis") | |
, db = redis.createClient(); | |
function main(callback) { | |
var options = { | |
host: "search.twitter.com", | |
port: 80, | |
path: "/search.json?q=momolv" |
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
//Prefix | |
var prefix = exports.prefix = 'cinchtool'; | |
//link Keys | |
exports.link = 'link'; | |
exports.links = 'links'; | |
exports.linksId = prefix + ':ids:link'; | |
exports.linkKey = function(id) { | |
return prefix + ':link:' + id; | |
} |
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
if (false); { | |
console.log('WHY AM I SEEING THIS!?!?!?!'); | |
} |
OlderNewer