2010-09-01から1ヶ月間の記事一覧
MacPorts dmgでインストール sudo port -d selfupdate sudo port -d sync (sudo port upgrade outdated) git $ sudo port install git-core +svn +doc +bash_completion ports colordiff スクリーンキャプチャ保存先変更 mkdir ~/Pictures/ScreenShots defau…
フォルダ階層を上がるボタン.app
test.c #include <stdio.h> int main(){ int hoge[] = { #include "dat.csv" }; int n = sizeof(hoge)/sizeof(int); int i; for(i=0;i</stdio.h>
Non-terminal programs don't inherit the system wide PATH and MANPATH variables that your terminal does. If you'd like them to be able to see Git, for whatever reason, you can run this script. It will add the PATH and MANPATH to your ~/.Mac…
ignore_comment モジュール open(filename) do |input| line = input.gets.ignore_comment("#") end みたいな コマンドラインフィルタっぽくつくる stdin > filter > stdout file1 > filter1 | filter2 > file2
sshでログインして, $ ./command &とやって,exitしたら消えない? 端末のウインドウを「x」で消したり,不意に接続が切れたりすると,SIGHUPシグナルによってcommandは終了される. → nohup ./command & でOK → ちゃんとexitしたらOK?
ツイッター連携てすと
#include <stdio.h> #include <stdlib.h> void argdump(int argc, char** argv){ FILE* fp = fopen("params","w"); int i; if(fp==NULL){ fprintf(stderr,"file open error"); } for(i=0; i</stdlib.h></stdio.h>
malloc_or_exit() とか fopen_or_exit() とか fopenf() とか つくるFILE* fopenf( const char* format, const char* mode, ...){ var_argがなんとかかんとか char* filename = malloc(); strcmp(filename); return fopen(filename,mode); }