Entries from 2015-03-01 to 1 month

licenses

http://opensource.org/licenses/alphabetical

emacsで空のbufferを作る

C-x bでSwitch to bufferを呼び出し,適当な文字を入れて開くと空のbuffer

quicklispはパッケージマネージャでASDFはrequireのラッパー

ASDFのsource-registryをquicklisp/distにしてしまえばいい.

memo

#include<stdio.h> typedef struct point { int x; int y; }POINT; int main() { POINT p = { .y = 11, .x = 10 }; printf("%d",p.x); return 0; }</stdio.h>

Yosemite Disk

#隠しファイルの表示 defaults write com.apple.finder AppleShowAllFiles TRUE pkill Finder #extract InstallDiskImg open /Applications/Install OS X Yosemite.app/Contents/SharedSupport/InstallESD.dmg open /Volumes/OS X Install ESD/ BaseSystem.d…

methodの前方でif-return,後方でreturnは好きじゃない

例えば,quicksortのアルゴリズムで以下のようなものがある. このように,複数にreturnが書いてあるのが好きじゃない. def quicksort(array) return [] if array.length == 0 pivot = array.shift larger = array.select{|n| n > pivot} smaller_or_eq = a…

Jenkins Build Trigger

http://[JenkinsDomain]/git/notifyCommit?url=git@hostingsite:your/repository.git 調べているとJenkinsのTriggerには/git/notifyCommitに対してパラメータを送る人が結構いた. しかし,OpenShiftのJenkinsのように認証が必要なJenkinsでは使用できない.…

Jenkinsのbuild時に実行されるShell Script

set -eした状態で実行されている. なので,which cabalなんかをやってしまうと途中で止まる.

OpenShiftでJenkins

Bitbucketのprivate repositoryをCIしたいときに,OpenShift上に作成したJenkinsを選択した. 理由としては, 無料 簡単に環境を作れる OpenShiftでは,3つのインスタンス(Gear)まで無料で使用できる. また,OpenShift上ではいくつかのアプリケーションに特…