2014-12-05から1日間の記事一覧

githubで同一マシン内で複数アカウントを使い分けてプッシュする

http://d.hatena.ne.jp/calpo/20120601/p1 別のssh keyを生成してgitubに登録 コンソール git config user.name "yourname" git config usre.email "your@email.com.ssh/config Host hoge.github.com User git Port 22 Hostname github.com IdentityFile ~/.…

git logでブランチのツリーを可視化する

http://irof.hateblo.jp/entry/20120710/p1 git log --oneline --graph --all

直近のコミットのハッシュを取得する

http://stackoverflow.com/questions/5694389/get-the-short-git-version-hash git rev-parse --short HEADあるいは git rev-parse --short HEAD | pbcopy

iOSにWebRTCをビルドする

http://qiita.com/ykst/items/412496713e1e887bcfca http://ninjanetic.com/how-to-get-started-with-webrtc-and-ios-without-wasting-10-hours-of-your-life/https://github.com/gandg/webrtc-ios

WebRTC Native APIのビルド

http://www.webrtc.org/reference/getting-started

GOの複数ファイルのビルド

http://stackoverflow.com/questions/10838469/how-to-compile-go-program-consisting-of-multiple-files ファイル構造が重要らしい. myproj/ src/ main.go second.go pkg/っていう状態でexport GOPATH=/path/to/myproj/ する で, cd myproj go install ap…

Haskellの実行方法

Hello.hs main = putStrLn "hello" ghc -e main Hello.hs runghc Hello.hs ghc -o Hello Hello.hs #これはできなかった ghc --make Hello.hs