Skip to content

Instantly share code, notes, and snippets.

View yuchan's full-sized avatar

Yusuke Ohashi yuchan

View GitHub Profile
@yuchan
yuchan / heredocument.rb
Created April 17, 2011 17:07
you don't need break indents.
#! /usr/bin/env ruby
class Poem
def initialize
@text = <<-END.gsub(/^\s+/,'')
この支配からの卒業
(尾崎豊)
END
end
def shout
@yuchan
yuchan / hello
Created April 11, 2011 15:50
文字化けしない
#! /usr/bin/perl
use strict;
use warnings;
use utf8;
binmode STDIN, ':utf8';
binmode STDOUT, ':utf8';
binmode STDERR, ':utf8';