Skip to content

Instantly share code, notes, and snippets.

@matsimitsu
Forked from jeffkreeftmeijer/hashtagerize.rb
Created November 26, 2009 15:43
Show Gist options
  • Save matsimitsu/243523 to your computer and use it in GitHub Desktop.
Save matsimitsu/243523 to your computer and use it in GitHub Desktop.
Improved Jeff's Version, made it more awesome-o
#!/usr/bin/ruby
require 'cgi'
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