This file contains 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
# | |
# Zipper has @left and @right. | |
# When a zipper represents [1, 2, 3, <cursor>, 4, 5], | |
# @left == [3, [2, [1, []]]], @right == [4, [5, []]] | |
# Note that @left is in reverse order. | |
# | |
class Zipper | |
include Enumerable | |
def self.make(*vals) |
This file contains 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 'rubygems' | |
require 'meow' | |
require 'mechanize' | |
require 'yaml' | |
require 'optparse' | |
require 'kconv' | |
class Kosoan | |
DURATION = 10 # min |
This file contains 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 'yaml' | |
require 'rubygems' | |
require 'treemap' | |
require 'rack' | |
# monkey patch for treemap :-( | |
class Treemap::HtmlOutput | |
def node_label(node) | |
node.label | |
end |
This file contains 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
" Vim syntax file | |
" Language: ReVIEW | |
" Maintainer: HARA, Yutaka (yhara/at/kmc.gr.jp) | |
" URL: http://route477.net/ | |
" Latest Revision: ? | |
" arch-tag: ? | |
if version < 600 | |
syntax clear | |
elseif exists("b:current_syntax") |
This file contains 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
" Vim syntax file | |
" Language: ReVIEW | |
" Maintainer: HARA, Yutaka (yhara/at/kmc.gr.jp) | |
" URL: http://route477.net/ | |
" Latest Revision: ? | |
" arch-tag: ? | |
if version < 600 | |
syntax clear | |
elseif exists("b:current_syntax") |
This file contains 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
# coding: utf-8 | |
require 'nabeatsu' | |
include Nabeatsu | |
(1.から 40).まで{ | |
3.の倍数 と 3.がつく数字 の時だけ アホに なって | |
5.の倍数 の時だけ 犬っぽく なって | |
8.の倍数 の時だけ 気持ちよく なります | |
} |
This file contains 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
# coding: utf-8 | |
module Japanespec | |
def 仕様(&block); end | |
def 例外(*args); end | |
def なる; end | |
def 含む; end | |
def を持つ; end | |
def に応答する; end | |
def マッチする; end | |
def 満たす; end |
This file contains 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
# coding: utf-8 | |
module Japanespec | |
def 仕様(&block); end | |
def 例外(*args); end | |
def なる; end | |
def 含む; end | |
def を持つ; end | |
def に応答する; end | |
def マッチする; end | |
def 満たす; end |
This file contains 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
# coding: utf-8 | |
module Japanespec | |
def 仕様(&block); end | |
def 例外(*args); end | |
def なる; end | |
def 含む; end | |
def を持つ; end | |
def に応答する; end | |
def マッチする; end | |
def 満たす; end |
This file contains 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
# coding: utf-8 | |
module Japanespec | |
def 仕様(&block); end | |
def 例外(*args); end | |
def なる; end | |
def 含む; end | |
def を持つ; end | |
def に応答する; end | |
def マッチする; end | |
def 満たす; end |
OlderNewer