トップ «前の日記(2013-04-21) 最新 次の日記(2013-04-23)» 編集

ヨタの日々

2001|08|09|10|11|12|
2002|01|02|03|04|05|06|07|08|09|10|11|12|
2003|01|02|03|04|05|06|07|08|09|10|11|12|
2004|01|02|03|04|05|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|11|12|
2011|01|02|03|04|05|06|07|08|09|10|11|12|
2012|01|02|03|04|05|06|07|08|09|10|11|12|
2013|01|02|03|04|05|06|07|08|09|10|11|12|
2014|01|02|03|04|05|06|07|08|09|10|11|12|
2015|01|02|03|04|05|06|07|08|09|10|11|12|
2016|01|02|03|04|05|06|07|08|09|10|11|12|
2017|01|02|03|04|05|06|07|08|09|10|11|12|
2018|01|02|03|04|05|06|07|08|09|10|11|12|
2019|01|02|03|04|05|06|07|08|09|10|11|12|
2020|01|02|03|04|05|06|07|08|09|10|11|12|
2021|01|02|03|04|05|06|07|08|09|10|11|12|
2022|01|02|03|04|05|06|07|08|09|10|11|12|
2023|01|02|03|04|05|06|07|08|12|
2024|01|02|03|

2013-04-22 :-(

_ 午前

0520 起床

0830 検討

_ 午後

1300 検討

_

1700 残業アワー

1930 退勤

2130 飯。鮭のムニエル

_ [ruby][android]assets のファイルサイズを削減したら怒られなかった

テキトーに準備するなど

#!/usr/bin/ruby -Ku

# 与えられたファイルをだいたい <trim> 分の 1 サイズにする

require 'pp'

def main(argv)
  filepath = argv[0]
  trim = argv[1].to_i
  
  lines = File.open(filepath).readlines()
  dst = ""
  lines.each_with_index {|item, index|
    if index % trim == 0
      dst << item
    end
  }
  
  oufile = filepath + ".M.txt"
  File.open(oufile, "w").write(dst)

end

main(ARGV)

_ ,

ニーチェ「君が誰かのことを悪く言うとき、誰かもまた、君のことを悪く言っている」