Skip to content

Instantly share code, notes, and snippets.

@jeffkreeftmeijer
Forked from matsimitsu/hashtagerize.rb
Created November 26, 2009 15:54
Show Gist options
  • Save jeffkreeftmeijer/243534 to your computer and use it in GitHub Desktop.
Save jeffkreeftmeijer/243534 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
require 'cgi'
# #Hashtagerize. The wet dream of hashtag-overusing-idiots out there.
# You know who you are. Stop it.
puts 'please type the text you want to #Hashtagerize and press [ENTER]...'
IO.popen 'open http://twitter.com/?status=' << CGI::escape(gets.split(' ').collect { |word| word[0] == 64 ? word : "##{word}" }.join(' '))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment