by shigemk2

当面は技術的なことしか書かない

2013-08-12から1日間の記事一覧

hello, world

SICP P28から。 (print "Hello, World") (define (square x) (* x x)) (define (smallest-divisor n) (find-divisor n 2)) (define (find-divisor n test-divisor) (cond ((> (square test-divisor) n) n) ((divides? test-divisor n) test-divisor) (else (…

goshを入れてみよう

Gaucheの環境構築メモ - 飲む、寝る。 brew install gauche$ gosh gosh> (print "Hello, World") Hello, World #<undef> gosh></undef>

forget me not

Mac

外部モニタ使ってて、外部モニタにアプリケーションいっぱい配置していて、 たまにモニタから外してラップトップを持ち運ぶ。 あとで繋ぎ直すと、モニタにあったアプリケーションが全部ラップトップのほうに 配置されててすごいげんなりしたので、 とりあえ…

また例によってmerge済みのローカルブランチを一括削除しようとしたら…

git

qiitaで紹介されていた便利なコマンド git branch --merged | grep -v '*' | xargs -I % git branch -d %をやっていたけど、例によってブランチを切ったばかりで何の変更もしていないブランチも 消されてしまうので、気をつけろ!