:chestnut:
View cleanup.rb
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
require "pathname" | |
require "fileutils" | |
if ARGV.empty? | |
puts "usage: ruby cleanup.rb <TARGET_DIR>" | |
exit | |
end | |
target_dir = Pathname(ARGV[0]) |
View sue445.md
View bleis.md
:cyclone:
View parse_jubeatplus.rb
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
require "open-uri" | |
require "json" | |
require 'pp' | |
MUSIC_LIST_URL = "http://www.konami.jp/jubeatplus/music/index.php5" | |
html = open(MUSIC_LIST_URL).read | |
html =~ /global.packJson\s*=\s*(.+);/ | |
json = $1 |
View twinkle_badge.md
- ラブリー x 3
- プリンセス x 2
- ハニー x 1
- ラブリー(ロリポップ) x 2
- ハート x 1
- ロゼッタ x 1
- ブラック x 0
- ホワイト x 1
- ブルーム x 1
- イーグレット x 0
View fizzbuzz.rb
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
1.upto(100) do |num| | |
if num % 15 == 0 | |
puts "FizzBuzz" | |
elsif num % 3 == 0 | |
puts "Fizz" | |
elsif num % 5 == 0 | |
puts "Buzz" | |
else | |
puts num | |
end |
View fizzbuzz.groovy
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
1.upto(100) { | |
if (it % 15 == 0) { | |
println "FizzBuzz" | |
} else if(it % 3 == 0) { | |
println "Fizz" | |
} else if(it % 5 == 0) { | |
println "Buzz" | |
} else { | |
println it | |
} |
View readme.md
光回線
LTE
LTEより光の方が遅かった
View 6e8a31fc5d13ebb32de7.md
はじめに
内容の是非はともかく、文章が羅列してあるだけではっきり言って読みづらいです。
せっかくQiitaはMarkdownが使えるのでMarkdownで読みやすくリファクタリングしてみました。
下記は原文にMarkdown表記を追加したり改行や空白を入れただけで、それ以外は1文字も変更していません
View annotate.rake
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
=begin | |
# Add to Raketask after PadrinoTasks.init | |
require "padrino-core" | |
if Padrino.env == :development | |
Rake::Task['ar:migrate'].enhance do | |
Rake::Task['annotate'].invoke | |
end | |
Rake::Task['ar:rollback'].enhance do |
OlderNewer