Skip to content

Instantly share code, notes, and snippets.

View hovatterz's full-sized avatar

Zack Hovatter hovatterz

View GitHub Profile
@hovatterz
hovatterz / tweets.rb
Created July 17, 2012 00:27
Excluding tweets!
def get_recent_tweets(username, number_of_tweets)
Twitter.user_timeline(username).keep_if {|tweet|
tweet.in_reply_to_user_id == nil
}.slice(0, number_of_tweets)
end