Skip to content

Instantly share code, notes, and snippets.

View yucao24hours's full-sized avatar
🎀
Learning DNS

Yuka Kato yucao24hours

🎀
Learning DNS
View GitHub Profile
@tatsuosakurai
tatsuosakurai / recipe_of_curry.html
Last active December 20, 2015 14:29 — forked from machida/html_practice.html
カレーのレシピ
<!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
@sugamasao
sugamasao / leap_year.rb
Created July 31, 2013 16:21
うるう年の計算してみたよ start_year から end_yearまでの間でうるう年の年を出力する
# 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
@meesterdude
meesterdude / README.md
Last active March 23, 2017 17:42
emoji_spec is a microgem to put emoji in your rspec output.

Emoji Spec

results Tired of the same, dull rspec output? liven it up with some emoji!

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)

emoji

@machida
machida / gist:6007689
Last active December 19, 2015 19:38 — forked from yucao24hours/gist:6007026
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>カレーのレシピ</title>
</head>
<body>
<h1>カレーのレシピ</h1>
@nomnel
nomnel / 1.rb
Last active December 15, 2015 02:08
[プログラミング入門 - Rubyを使って -](http://www.ie.u-ryukyu.ac.jp/~kono/software/s04/tutorial/)の練習問題
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}歳"
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active April 20, 2025 21:14
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@Gab-km
Gab-km / github-flow.ja.md
Last active March 21, 2025 03:38 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@btoone
btoone / curl.md
Last active December 8, 2024 05:16
A curl tutorial using GitHub's API

Introduction

An introduction to curl using GitHub's API.

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin