Skip to content

Instantly share code, notes, and snippets.

@mytrile
Created April 15, 2009 12:34
Show Gist options
  • Select an option

  • Save mytrile/95742 to your computer and use it in GitHub Desktop.

Select an option

Save mytrile/95742 to your computer and use it in GitHub Desktop.
#] results_per_page=15 since_id=0 total=1>, @query={:q=>["httparty", "from:jnunemaker"]}>
<% @data.each do |d| %>
<%= puts d.inspect %>
<% end %>
<%= @data.inspect %>
require 'rubygems'
require 'sinatra'
require 'twitter'
get '/' do
@data = get_data
erb :index
end
private
def get_data
@data = Twitter::Search.new('httparty').from('jnunemaker')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment