Skip to content

Instantly share code, notes, and snippets.

@jugyo
Created April 11, 2011 01:36
Show Gist options
  • Save jugyo/912949 to your computer and use it in GitHub Desktop.
Save jugyo/912949 to your computer and use it in GitHub Desktop.
earthquake flash command
Earthquake.init do
command :flash do |m|
if confirm("update '#{m[1]}'")
tweet = twitter.update(m[1])
if confirm("delete '#{tweet["text"].u}'")
twitter.status_destroy(tweet["id"])
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment