Skip to content

Instantly share code, notes, and snippets.

@juno
Created March 31, 2011 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juno/896135 to your computer and use it in GitHub Desktop.
Save juno/896135 to your computer and use it in GitHub Desktop.
earthquake.gem open url plugin
# :open $xx
Earthquake.init do
command %r|^:open (\d+)|, :as => :open do |m|
`open #{$1}` if twitter.status(m[1])['text'] =~ %r|(https?://[^\s]+)|
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment