Skip to content

Instantly share code, notes, and snippets.

@palon7
Last active August 29, 2015 14:15
Show Gist options
  • Save palon7/a7d83f54e6ecc887dcf8 to your computer and use it in GitHub Desktop.
Save palon7/a7d83f54e6ecc887dcf8 to your computer and use it in GitHub Desktop.
AtiS氏
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
require 'twitter'
$client = Twitter::REST::Client.new do |config|
config.consumer_key = ''
config.consumer_secret = ''
config.access_token = ''
config.access_token_secret = ''
end
t1 = Thread.new do
$client.update "AtiS「シコる」 " + Time.now.instance_eval { '%s.%03d' % [strftime('%Y/%m/%d %H:%M:%S'), (usec / 1000.0).round] }
end
t2 = Thread.new do
$client.update "AtiS「うっ」 " + Time.now.instance_eval { '%s.%03d' % [strftime('%Y/%m/%d %H:%M:%S'), (usec / 1000.0).round] }
end
t3 = Thread.new do
$client.update "AtiS「ふぅ」 " + Time.now.instance_eval { '%s.%03d' % [strftime('%Y/%m/%d %H:%M:%S'), (usec / 1000.0).round] }
end
t1.join
t2.join
t3.join
puts "done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment