Skip to content

Instantly share code, notes, and snippets.

@Sixeight
Created December 10, 2009 15:24
Show Gist options
  • Select an option

  • Save Sixeight/253389 to your computer and use it in GitHub Desktop.

Select an option

Save Sixeight/253389 to your computer and use it in GitHub Desktop.
# via http://twitter.com/mootoh/statuses/6530680695
class Object
def now
require 'net/http'
require 'uri'
res = Net::HTTP.post_form(
URI.parse('http://USERNAME:[email protected]/statuses/update.json'),
{:status => self.inspect.split(//).take(140).join})
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment