
Below are the sets presently available, and their corresponding id. if you don't set an ID, one will be randomly chosen every run. Emoji icons may not render in certain terminals.
(pass, fail, pending)
| <!doctype html> | |
| <html lang='ja'> | |
| <head> | |
| <title>カレーのレシピ</title> | |
| <meta http-equiv='Content-Type' content='text/html; charset=utf-8'> | |
| </head> | |
| <body> | |
| <article> | |
| <header> | |
| <h1>カレーのレシピ</h1> |
| history = [] | |
| puts 'Hello! May I help you?' | |
| while words = gets.chomp | |
| history << words | |
| break if history.last(3) == %w(BYE BYE BYE) | |
| case words |
| # ruby leap_year.rb 2000 2100 | |
| start_year = ARGV[0].to_i | |
| end_year = ARGV[1].to_i | |
| def leap_year?(year) | |
| if (year % 400).zero? | |
| true | |
| elsif !(year % 100).zero? && (year % 4).zero? | |
| true | |
| end |
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>カレーのレシピ</title> | |
| </head> | |
| <body> | |
| <h1>カレーのレシピ</h1> |
| puts "1年は#{365 * 24}時間です" | |
| puts "10年間は#{60 * 24 * 365 * 10}分です" | |
| puts "生まれてから#{Time.new - Time.mktime(1986, 1, 1)}秒経っている" | |
| puts "80年生きるとして、#{(80 * 365) / 7}枚ぐらいかな" | |
| puts "10億3400万秒生きてるとしたら#{1034000000 / 60 / 60 / 24 / 365}歳" |
基礎知識
読み物系
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin