This file contains hidden or 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
| case class Nyan(name:String, age:Int) | |
| val nyans:List[Nyan] = List(Nyan("ねこがた", 2), Nyan("うーねこ", 4)) | |
| val has_wneko: PartialFunction[List[Nyan], Unit] = { | |
| case Nil => println("うーねこのっといんざりすとなうよー") | |
| case Nyan("うーねこ", _) :: _ => println("うーねこいんざりすとなうよー") | |
| case _ :: rest => has_wneko(rest) | |
| } |
This file contains hidden or 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 'mkmf' | |
| have_header('mecab.h') && have_library('mecab') && create_makefile('hijiki') |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| # -*- coding: utf-8 -*- | |
| require 'nokogiri' | |
| require 'stringio' | |
| require 'open-uri' | |
| begin | |
| require 'rainbow' | |
| rescue LoadError |
This file contains hidden or 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
| source 'http://rubygems.org' | |
| gem 'guard' | |
| gem 'guard-less' | |
| gem 'guard-coffeescript' |
This file contains hidden or 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
| slow 遅い | |
| fast 速い | |
| above より上に | |
| below より下に | |
| absolute 絶対的な | |
| relative 相対的な | |
| abstract 抽象的な |