Skip to content

Instantly share code, notes, and snippets.

@yswallow
Last active December 9, 2015 13:50
Show Gist options
  • Select an option

  • Save yswallow/0bca9a61c046379e0d97 to your computer and use it in GitHub Desktop.

Select an option

Save yswallow/0bca9a61c046379e0d97 to your computer and use it in GitHub Desktop.
最高
require 'twitter'
Client = Twitter::REST::Client.new do |config|
config.consumer_key = 'ia662KE5wzuiovgmKtl82Bw22'
config.consumer_secret = 'SLZ9SYfjzyEwpSCwh6kng8lP3TCevoPNSgZ6UWgUujfU1WWuCU'
config.access_token = 'your access token'
config.access_token_secret = 'your access token secret'
end
i = FileTest.exist?('/tmp/saikoh') ? File.read('/tmp/saikoh').to_i : 0
i += 1
saikoh = "最高#{ '!' * i }"
Client.update saikoh
puts saikoh
File.write '/tmp/saikoh', i.to_s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment