Skip to content

Instantly share code, notes, and snippets.

View kurotaky's full-sized avatar
🍚
Focusing

Yuta Kurotaki kurotaky

🍚
Focusing
View GitHub Profile
@kurotaky
kurotaky / kana_lookup.rb
Created October 21, 2012 05:57 — forked from randym/kana_lookup.rb
crap code for finding index of kanna phonetics
# encoding: UTF-8
#
require 'nkf'
class PhoneticMap
def data
@data ||= build_data
end
def index_of(string)
@kurotaky
kurotaky / hoge.rb
Created July 24, 2012 03:18 — forked from hiboma/hoge.rb
Quiz - Array methods
# -*- encoding: utf-8 -*-
describe Array do
let(:e) { [1,2,3,4,5] }
it "先頭の要素(1)を返すメソッド" do
e[0].should == 1
e.at(0).should == 1
e.first.should == 1