Skip to content

Instantly share code, notes, and snippets.

@jeffkreeftmeijer
Forked from matsimitsu/hashtagerize.rb
Created November 26, 2009 15:46
Show Gist options
  • Save jeffkreeftmeijer/243526 to your computer and use it in GitHub Desktop.
Save jeffkreeftmeijer/243526 to your computer and use it in GitHub Desktop.
puts 'please type the text you want to #hashtagerize and press [ENTER]...'
open 'http://twitter.com/?status=' << 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