Skip to content

Instantly share code, notes, and snippets.

View kbladow's full-sized avatar

Kate Bladow kbladow

  • Baltimore, MD
View GitHub Profile
@ngauthier
ngauthier / Gemfile
Created March 23, 2012 16:42
Demo Sinatra App
source :rubygems
gem 'sinatra'
@davetroy
davetroy / tweetparse.rb
Created August 28, 2012 19:29
Parse tweets from baltimore.twittervision.com
require 'rubygems'
require 'yajl'
require 'fastercsv'
tweetfile = ARGV[0]
PARSER = Yajl::Parser.new
def output_tweet(s)
if s['geo']
@davetroy
davetroy / stream.rb
Created August 29, 2012 19:32
Capture tweets for a given lat/lon bounding box
#!/usr/bin/env ruby
$: << File.dirname(__FILE__)
require 'rubygems'
require 'eventmachine'
require 'em-http'
require 'yajl'
require 'yajl/json_gem'
class Streamer
#!/usr/bin/env ruby
require "rubygems"
require "mechanize"
require "domain_name"
m = Mechanize.new
puts "<ul>"
DATA.each_line do |line|