ミームの死骸を待ちながら

We are built as gene machines and cultured as meme machines, but we have the power to turn against our creators. We, alone on earth, can rebel against the tyranny of the selfish replicators. - Richard Dawkins "Selfish Gene"

We are built as gene machines and cultured as meme machines, but we have the power to turn against our creators.
We, alone on earth, can rebel against the tyranny of the selfish replicators.
- Richard Dawkins "Selfish Gene"

2007-12-26から1日間の記事一覧

はてなスターで「この部分がいいと思った」と知らせる法

ドラッグしてテキストを選択した後、スターボタン(add star)を押す。こんなやりかたがあったとは。しかし危険もあるようだ しかもですねやばいことに、「うんちっち」を選択しつつ、別の記事に☆をつけられる。 便利ではあるが、危険。諸刃のうんちっちである…

配列からHashを生成

配列aryにデータを溜めていって、最後にまとめてHashにしてしまう。keyとvalueを交互に溜めていくこと。 count = 0 ary = [] for i in 0..10 do count += 1 ary << count ary << "hogeNo.#{count}" end newhash = Hash[*ary] > newhash[5] => hogeNo.5 とや…

bashの履歴機能あれこれ

今日のメモ。 Ctrl + Rで履歴の検索。 Ctrl+PとCtrl+Iはもはや癖だが、これは知らんかった。Ctrl+Rをぽちぽち押すとさらに昔のを検索 ある文字で始まる直前のコマンドをもっかい実行したくて、検索していちいち表示しなくても間違えない自信がある場合は、(…