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 chunks_received = 0, | |
lines_parsed = 0, | |
server_logs = [], | |
started = Date.now(); | |
process.stdin.on( 'readable', function(){ | |
var received_buffer = process.stdin.read(); | |
if( ! received_buffer ) return; | |
chunks_received += 1; |
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
function exclusive_execute( real_callback ){ | |
var triggered_callback = false; | |
return function(){ | |
if( triggered_callback ) return; | |
triggered_callback = true; | |
real_callback(); | |
} |
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
function id_generator(){ | |
var store = {}; | |
function release_id( id ){ | |
delete store[ id ]; | |
} | |
function generate_unique_id(){ |
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
$(document).ready(function(){ | |
// required vars | |
var accessToken = window.location.hash.split("=")[1]; | |
var userID = accessToken.split(".")[0]; | |
// step 1: get users followed | |
getFollowedUsers(userID, accessToken, function(followed_users){ | |
// step 2a: check for non-mutual follows |
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
// The lyrics of Chris Tomlin | |
// in the eyes of a Programmer | |
// Best read while listening to the song | |
// (http://www.youtube.com/watch?v=7PTvr755V8s) | |
// Enjoy! | |
var highest_of_highs = earth.getMountainByName("Everest").getTop(); | |
var depths_of_the_sea = earth.getOceanByName("Artic").getBottom(); | |
foreach ( creation in earth ) { |