This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <math.h> | |
#include <GLUT/glut.h> | |
#define PX 0.0 /* 初期位置 */ | |
#define PZ 0.0 /* 初期位置 */ | |
#define W 4 /* 台の幅の2分の1 */ | |
#define D 6 /* 台の長さの2分の1 */ | |
#define H 0.5 /* 壁の高さ */ | |
#define R 0.3 /* パックの半径 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <math.h> | |
#include <GLUT/glut.h> | |
#define PX 0.0 /* 初期位置 */ | |
#define PZ 0.0 /* 初期位置 */ | |
#define W 4 /* 台の幅の2分の1 */ | |
#define D 6 /* 台の長さの2分の1 */ | |
#define H 0.5 /* 壁の高さ */ | |
#define R 0.3 /* パックの半径 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "cv.h" | |
#include "highgui.h" | |
#include <ctype.h> | |
#include <stdio.h> | |
#define MAIN_WINDOW "Main Window" | |
#define MAIN_WINDOW_WIDTH 1024 | |
#define MAIN_WINDOW_HEIGHT 768 | |
#define GRAYCODE_NUM 32 //投影するグレイコード画像の枚数 | |
#define GRAYCODE_FILE "graycode/GraycodeImage%d.png" //グレイコード画像ファイル |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cd to root of gentoo | |
cd /tank | |
# then get stage3 file | |
wget http://mirrors.kernel.org/gentoo/experimental/x86/freebsd/stages/stage3-i386-fbsd7.2.tar.bz2 | |
# get portage tree | |
wget http://distfiles.gentoo.org/snapshots/portage-latest.tar.bz2 | |
tar xjvfp stage3-i386-fbsd7.2.tar.bz2 | |
echo "-----mount devfs-----" | |
mount -t devfs none /tank/dev/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gentoo / # emerge portage-utils | |
0;emergeCalculating dependencies... done! | |
>>> Verifying ebuild manifests | |
>>> Emerging (1 of 1) app-portage/portage-utils-0.4 | |
* portage-utils-0.4.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] | |
* checking ebuild checksums ;-) ... [ ok ] | |
* checking auxfile checksums ;-) ... [ ok ] | |
* checking miscfile checksums ;-) ... [ ok ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "cv.h" | |
#include "highgui.h" | |
#include <ctype.h> | |
#include <stdio.h> | |
#define MAIN_WINDOW "Main Window" | |
#define MAIN_WINDOW_WIDTH 1024 | |
#define MAIN_WINDOW_HEIGHT 768 | |
#define GRAYCODE_NUM 32 //投影するグレイコード画像の枚数 | |
#define GRAYCODE_FILE "graycode/GraycodeImage%d.png" //グレイコード画像ファイル |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// #include "cv.h" | |
// #include "highgui.h" | |
#include <cv.h> | |
#include <highgui.h> | |
#include <math.h> | |
// デバッグ出力 | |
//#define DEBUG 1 | |
// 縮小後の画像を表示するかどうか | |
// #define DOUBLE 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define UNIX 1 | |
#include <stdio.h> | |
#ifdef UNIX | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#include <netdb.h> | |
#else | |
#include <winsock2.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= Gentoo/Prefix on MacOSX(Snow Leopard)でemerge ghcに挑戦中 | |
[2010-08-09 13:37:12] | |
>>>[osx] | |
>>>[gentoo] | |
>>>[haskell] | |
Gentoo/Prefixでの話です | |
>|zsh| | |
% emerge -uaDNv ghc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body style="padding:0;margin:0;"> | |
<iframe style="padding:0;margin:0;display:inline;" | |
marginheight="0" | |
marginwidth="0" | |
border="0" | |
frameborder="0" | |
framespacing="0" | |
hspace="0" | |
vspace="0" |