Skip to content

Instantly share code, notes, and snippets.

View mhasby's full-sized avatar

Muhammad Hasby mhasby

View GitHub Profile
@mhasby
mhasby / twitter_streaming.js
Created September 19, 2012 06:58 — forked from ryanmcgrath/twitter_streaming.js
Access the Twitter Streaming API with ease (Node.js).
var util = require('util'),
http = require('http'),
events = require('events');
var Twitter = function(opts) {
this.username = opts.username;
this.password = opts.password;
this.track = opts.track;
this.data = '';
};