Skip to content

Instantly share code, notes, and snippets.

View yucao24hours's full-sized avatar
🎀
Learning DNS

Yuka Ishida yucao24hours

🎀
Learning DNS
View GitHub Profile
@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
history = []
puts 'Hello! May I help you?'
while words = gets.chomp
history << words
break if history.last(3) == %w(BYE BYE BYE)
case words
@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>
Kernel.class_eval do
#FIXME this is terrible
def static(meth)
define_singleton_method(meth) do |*args, &b|
new.send meth, *args, &b
end
meth
end
def abstract(meth)

take2 は https://github.com/haru01/log/blob/master/pattern_sheed.md

TDD実践・学習パターン

TDDを 初心者が熟練者になって、現場で実践していくコツを書いていきます。 すべて実施する必要はありません。上から順に実施する必要もありません。 現状の診断や、自分の状況に合いそうなものを複数ピックアップして、 ベイビーステップで個人やチームの学習と成長の物語を描く道具として使われることを想定しています。

まだ未完です。ガンガン変わっていきます。 :p

@yancya
yancya / rwc2013_by_sunrise.md
Last active December 25, 2015 21:19
サンライズ出雲で行く RubyWorld Conference 2013

はじめに

RubyWorld Conference 2013 の開催まで、1ヶ月余りとなりましたね。まだ旅程が決まっていない方はいらっしゃいませんか?東京駅から松江駅まで乗り換え無しの一本で行けるサンライズ出雲は、RubyWorld Conference へ行くためにあつらえられた列車といっても過言ではありません。寝台特急での旅は大変楽しいですので、是非ご検討ください。

前提条件

RubyWorld Conference は 10:30 開始です。会場のくにびきメッセは松江駅から 10 分〜 15 分くらい歩いたところにあります。余裕を持って参加するには、当日の 10:00 くらいには松江駅に着いていたいです。

主な交通手段との比較

交通手段 所要時間 費用 前日入り

vi 手習い

コンテンツ

  • はじめに
    • 対象読者
    • ゴール
    • コマンドの表記ルール
  • Level 1
  • Hello!
@iorionda
iorionda / git_and_github_tips.md
Last active December 28, 2015 09:48
Git/github を使うのに便利なコマンドをまとめています
  • Git でリモートで削除されたブランチを同期させる
% git fetch --prune
  • Git でリモートのマージ済みのブランチを一括削除する
% git branch -a --merged | grep -v master | grep remotes/origin| sed -e 's% *remotes/origin/%%' | xargs -I% git push origin :%
@sunaot
sunaot / hello_ruby.md
Last active April 4, 2017 11:04
さらっと読んで Ruby がわかった気になれるプログラミング言語 Ruby のかんたんな紹介
@maxivak
maxivak / 00.md
Last active December 10, 2023 14:50
Using RSpec without Rails

Using RSpec without Rails