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
| === database object file | |
| var errors = require('./errors'); | |
| var db; | |
| exports.setDatabase = function(database) { | |
| db = database; | |
| } |
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
| <?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 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 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 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
| 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 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'); | |
| var sys = require('sys'); | |
| var oauth = require('oauth'); | |
| var app = express.createServer(); | |
| var _twitterConsumerKey = "YOURTWITTERCONSUMERKEY"; | |
| var _twitterConsumerSecret = "YOURTWITTERCONSUMERSECRET"; | |
| function consumer() { |
NewerOlder