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 auth = 'Basic ' + new Buffer('username:password').toString('base64'); | |
var options = { | |
"host" : "stream.twitter.com", | |
"port" : 443, | |
"path" : "/1/statuses/filter.json?follow=123456789", | |
"method" : "GET", | |
"Authorization" : auth | |
}; | |
var request = https.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
$.fn.boxScroll = function(binder, target){ | |
if(binder.attr('data-locked') === 'true'){ | |
return; | |
} | |
this.animate( | |
{"scrollTop" : target.positionIn(binder).top}, | |
1500, | |
"easeOutExpo", | |
function(){ | |
binder.attr('data-locked', 'false'); |
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
/** | |
* Mitsuaki Ishimoto | |
* Push a message of Earthquake Early Warning | |
* Using WebSocket-Node | |
* @see: https://github.com/Worlize/WebSocket-Node | |
/*=================================================================*/ | |
var sys = require('sys'); | |
var eew = require('../eew.js'); | |
var https = require('https'); |