Skip to content

Instantly share code, notes, and snippets.

@yosshi
Created October 19, 2010 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yosshi/633765 to your computer and use it in GitHub Desktop.
Save yosshi/633765 to your computer and use it in GitHub Desktop.
コマンドラインで入力された文字を単純に逆さにして送信。
$KCODE='u'
require 'rubygems'
require 'twitter'
chars = ARGV[0].scan(/./)
TWITTER_USER=''
TWITTER_PASS=''
status = chars.reverse.join
client = Twitter::Client.new(:login => TWITTER_USER,
:password => TWITTER_PASS)
client.status(:post, status)
puts status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment