トップ «前の日記(2010-05-24(Mon)) 最新 次の日記(2010-06-10(Thu))» 編集

屑俺日記

僕の備忘録(PC、UN*X、ネットワーク関連が中心)なんです。
自分の書いたところは適当(な時とか)に書き換えますので御了承を。


2010-06-07(Mon) J2の次の日に久々

つぃったーを騙って

何をするつもりなのか、htmlメールの中を熟読する気にはなれなかった。
急に何発もやって来られれば当たり前だろう。

$ find Main/inbox . -mtime 1 -name '1*' | xargs grep Return-Path
./1151:Return-Path: <$a@rocklandmfg.com>
./1165:Return-Path: <$b@rgia.com>
./1166:Return-Path: <$c@rebeldeway.com>
./1168:Return-Path: <$d@rovion.com>
./1172:Return-Path: <$e@rogers-brown.com>
./1177:Return-Path: <$f@robinsonsteel.com>

無関係の第三者かもしれないので、アカウントは伏字にしとく。

一つ少ない

昔よんだクイズをもとに)

print([ x for x in range(1,100)
  if
   x % 2 == 1 and
   x % 3 == 2 and
   x % 4 == 3 and
   x % 5 == 4 and
   x % 6 == 5
])
[59]

もうちょっとだけエレガントに。

print([ x - 1 for x in range(1,100)
  if
    x % 2 == 0 and
    x % 3 == 0 and
    x % 4 == 0 and
    x % 5 == 0 and
    x % 6 == 0
])

リンクはご自由にどうぞ。でもURLや内容が変った場合はあしからず。

index.htmlは ここから。