2012-01-01ãã1ã¶æéã®è¨äºä¸è¦§
commitã®diffãgrepãããã®ã ããgitã ãã§æ¤ç´¢ããæ¹æ³ãããããªãã£ãã®ã§ã¨ãããã~/diffã«å ¨commitã®diffãæ¸ãã ãã mkdir ~/diff git log | grep '^commit' | ruby -lane 'puts $F[1].strip' | ruby -lane 'arr=ARGF.to_a.map{|i|i.strip}; for i â¦
git-id-date.rb #!/usr/bin/env ruby require 'date' if ARGV.size < 1 STDERR.puts "ruby #{$0} 2011-08-15" STDERR.puts "ruby #{$0} 2011-08-15 2011-09-30" exit 1 end date_start = Date.parse(ARGV.shift) date_end = ARGV.empty? ? Date.today : Dateâ¦
ããããä¸å¯§ã«å¤æããããã«ãã --to_snake 'ShoHashimoto' => 'sho_hashimoto' 'sho_hashimoto' => 'sho_hashimoto' 'shokai' => 'shokai' 'SHOKAI' => 'shokai' 'This is a pen' => 'this_is_a_pen' 'EventMachine::HTTPRequest' => 'event_machine_httâ¦
http://ja.wikipedia.org/wiki/ã¨ã¤ãã»ã¯ã¤ã¼ã³ããã¼æ©ãã ãã©ããã¨ç¶ºéºã«ã§ããã å帰+lambda渡ãã¯å帰ãå·»ãæ»ããªãã§è¯ãã®ã§æ¸ããããã å¤ãªæ¸ãæ¹ããªãããã«ãããã©20è¡ãã£ãã #!/usr/bin/env ruby def put(size=8, queens=[], &block) bâ¦
mlab(masui lab)ã¯majan labã«ãªãã¾ããã æ¸ ä¸è²ã®é çãã¿ã¼ã³æ°ã調ã¹ãã 1ã0ã4æã2ã0ã4æ...9ã0ã4æãã§åè¨14æã«ãªãã®ãæ£ããé çãªã®ã§ããªãã°å¯è±ªçã«5é²æ°ã使ããchin-itsu.rb for i in 0..(("4"*9).to_i(5)) res = i.to_s(5) puts '0â¦