Skip to content

Instantly share code, notes, and snippets.

View ikemo3's full-sized avatar

Hideki Ikemoto ikemo3

  • Ehime, Japan
View GitHub Profile
@ikemo3
ikemo3 / check.rb
Last active February 28, 2017 09:56 — forked from hyuki0000/check.rb
何か行動するときのチェックリストをチェックする簡単なRubyスクリプト
#!/usr/bin/env ruby
DIRECTORY = ENV['HOME'] + '/.check'
def check(file)
File::open(file) do |f|
f.each_line do |line|
# ignore blank line
next if line =~ /^\n/