エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
ここにツイート内容が記載されます https://b.hatena.ne.jp/URLはspanで囲んでください
Twitterで共有ONにすると、次回以降このダイアログを飛ばしてTwitterに遷移します
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
require 'open-uri' def to_date(date) if date.to_s.length < 2 "0" + date.to_s else date.to_s end e... require 'open-uri' def to_date(date) if date.to_s.length < 2 "0" + date.to_s else date.to_s end end dirname = 'img/' 0.step 23, 1 do |hour| 0.step 59, 1 do |min| hour = to_date(hour) min = to_date(min) open(dirname + hour + min + "jp.jpg", 'wb') do |output| open("http://www.bijint.com/jp/tokei_images/#{hour + min}.jpg", "Referer" => "http://www.bijint.com/jp/") do |img| output.write(img.read) end