Created
October 19, 2010 07:20
-
-
Save yosshi/633765 to your computer and use it in GitHub Desktop.
コマンドラインで入力された文字を単純に逆さにして送信。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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