Skip to content

Instantly share code, notes, and snippets.

@jandudulski
Created July 21, 2011 15:29
Show Gist options
  • Save jandudulski/1097438 to your computer and use it in GitHub Desktop.
Save jandudulski/1097438 to your computer and use it in GitHub Desktop.
Open tweet in a browser (Earthquake.gem plugin)
Earthquake.init do
command :o do |m|
begin
tweet = twitter.status(m[1])
browse "https://twitter.com/#{tweet['user']['screen_name']}/status/#{m[1]}"
rescue
puts 'invalid input'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment