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
(defun fib (x) | |
(cond ((= x 0) 0) | |
((= x 1) 1) | |
(t (+ (fib (- x 1)) | |
(fib (- x 2)))))) |
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
/* */ import java.util.Random; | |
/* */ | |
/* */ public class ed extends nx | |
/* */ { | |
/* */ protected ed(int paramInt1, int paramInt2) | |
/* */ { | |
/* 10 */ super(paramInt1, paramInt2); | |
/* */ | |
/* 12 */ float f = 0.4F; | |
/* 13 */ a(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, f * 2.0F, 0.5F + f); |
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
function minecraft { | |
TEMP_JH=$JAVA_HOME | |
TEMP_P=$PATH | |
export JAVA_HOME=/home/zc00gii/java/7jdk | |
export PATH=$PATH:$JAVA_HOME/bin | |
java -jar ~/games/minecraft/Minecraft.jar | |
export PATH=$TEMP_P | |
export JAVA_HOME=$TEMP_JH | |
} |
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
;;; Tell emacs where slime/swank is. | |
(add-to-list 'load-path "~/lisp/emacs/slime") | |
(add-to-list 'load-path "~/lisp/emacs/slime/contrib") | |
(add-to-list 'load-path "~/lisp/emacs/emacs-chess") | |
(add-to-list 'load-path "~/lisp/nisp/emacs") | |
(add-to-list 'load-path "~/lisp/nisp") | |
(add-to-list 'load-path "~/lisp/nisp/emacs/slime/") | |
(add-to-list 'load-path "~/lisp/nisp/emacs/slime/contrib") | |
(add-to-list 'load-path "~/lisp") | |
(add-to-list 'load-path "~/lisp/emacs") |
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
else if(t==PT_EFSE) | |
{ | |
for(nx=-2; nx<3; nx++) | |
for(ny=-2; ny<3; ny++) | |
if(x+nx>=0 && y+ny>0 && | |
x+nx<XRES && y+ny<YRES && (nx || ny)) | |
{ | |
r = pmap[y+ny][x+nx]; | |
if((r>>8)>=NPART || !r) | |
continue; |
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
;;; Tell emacs where slime/swank is. | |
(add-to-list 'load-path "~/lisp/emacs/slime") | |
(add-to-list 'load-path "~/lisp/emacs/slime/contrib") | |
(add-to-list 'load-path "~/lisp/emacs/emacs-chess") | |
(add-to-list 'load-path "~/lisp/nisp/emacs") | |
(add-to-list 'load-path "~/lisp/nisp") | |
(add-to-list 'load-path "~/lisp/nisp/emacs/slime/") | |
(add-to-list 'load-path "~/lisp/nisp/emacs/slime/contrib") | |
(add-to-list 'load-path "~/lisp") | |
(add-to-list 'load-path "~/lisp/emacs") |
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
for(nx=-2; nx<3; nx++) | |
for(ny=-2; ny<3; ny++) | |
if(x+nx>=0 && y+ny>0 && | |
x+nx<XRES && y+ny<YRES && (nx || ny)) | |
{ | |
if((r>>8)>=NPART || !r) | |
continue; | |
if((r&0xFF)==PT_SPRK || (parts[i].temp>=(273.15+200.0f)) && 1>(rand()%15)) // this if case | |
{ | |
if(tempu1>40) { |
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
int try_move(int i, int x, int y, int nx, int ny) | |
{ | |
unsigned r; | |
if(nx<0 || ny<0 || nx>=XRES || ny>=YRES) | |
return 0; | |
if(x==nx && y==ny) | |
return 1; | |
r = pmap[ny][nx]; |
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
else if(t==PT_FUSE) | |
{ | |
// I do a parts[i].life hack here, the first half bits is for the burn life, the last half bits is for the pressure life | |
tempu1 = (uint16_t)(((unsigned int)parts[i].life) >> 8); | |
tempu2 = (uint16_t)(((unsigned int)parts[i].life) & 0x0000FFFF); | |
if(tempu1<=0) { | |
t = PT_NONE; | |
kill_part(i); | |
r = create_part(-1, x, y, PT_PLSM); | |
parts[r].temp = 273.15+500.0f; |
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
else if(t==PT_FUSE) | |
{ | |
// I do a parts[i].life hack here, the first half bits is for the burn life, the last half bits is for the pressure life | |
tempu1 = (uint16_t)(((unsigned int)parts[i].life) >> 2); | |
tempu2 = (uint16_t)(((unsigned int)parts[i].life) & 0x0000FFFF); | |
if(tempu1<=0) { | |
t = PT_NONE; | |
kill_part(i); | |
r = create_part(-1, x, y, PT_SMKE); | |
parts[r].temp = 273.15+200.0f; |
NewerOlder