Random line of code thread
category: code [glöplog]
Code:
AND b~sperm <> p_bed3
Code:
ra2 return $iif($r(0,1),$r(a,z),$r(0,9))
ra return $upper($remove($eval($str($!ra2 $chr(32),$1),2),$chr(32)))
Code:
#define MAX_ITER 64.0
uniform float time;
varying vec4 p;
void main()
{
int x;
vec2 z = 0;
vec2 temp;
for(x=0;x<(MAX_ITER);x++) {
if((z.x+z.y) > 4) break;
temp.x = z.x*z.x - z.y*z.y + p.x*1.5-.5;
temp.y = 2*z.x*z.y + p.y*1.5;
z = temp;
}
gl_FragColor = sqrt(x/MAX_ITER);
}
Code:
* N E V E R prototype here. You may damage the system seriously.
* The worst case will lead to a system, where nobody can login.
* It will be your job, to spend the following night in your office
* to repair the system.
*///////////////////////////////////////////////////////////////////////
Code:
move.l #"JUHU",$4.w
Code:
const string &data = crossworddata[y];
lea illegalscenebubbles,a0
FreeFull's Mandelbrot, ShaderToy fixed:
Code:
precision highp float;
#define MAX_ITER 64
uniform float time;
uniform vec2 resolution;
void main()
{
int x2;
vec2 z = vec2(0);
vec2 temp;
vec2 p=gl_FragCoord.xy;
p/=resolution;
for(int x=0;x<MAX_ITER;x++) {
x2=x;
if((z.x+z.y) > 4.) break;
temp.x = z.x*z.x - z.y*z.y + p.x*1.5-.5;
temp.y = 2.*z.x*z.y + p.y*1.5;
z = temp;
}
gl_FragColor = vec4(vec3(sqrt(float(x2)/float(MAX_ITER))),1.);
}
Code:
drawrot -c @demo.3 $calc($cos($calc(%c / 9)).deg * ($sin($calc(%c / 20)).deg * 1024)) 0 0 200 200
Maybe you'll want to fix up my Julia too then
Code:
#define MAX_ITER 64.
uniform float time;
varying vec4 p;
void main()
{
int x;
vec2 z = vec2(p.x*2.,p.y*2.);
vec2 temp;
for(x=0;x<int(MAX_ITER);x++) {
if(length(z.xy) > 2.) break;
temp.x = z.x*z.x - z.y*z.y + sin(time*2./13.);
temp.y = 2.*z.x*z.y + cos(time*2./11.)/2.;
z = temp;
}
gl_FragColor = pow(1.-x/MAX_ITER,MAX_ITER/16.);
}
Code:
* This handles a baby's death. Put a splat and decrement extra babies
Code:
//**** LOOP FUNCTION TO GENERATE ALL GRIDS ****
//Symbol must be !=0
void LoopFunction(int Symbol,int SymbolIndex,int Start,int End) {
int n,c,position;
for(n=Start;n<End;n++) {
//Put the symbol at the nth empty position
position=-1;
c=-1;
do {
position++;
if(LinearGrid[position]==0) {
c++;
}
} while (c!=n);
LinearGrid[position]=Symbol;
if(SymbolIndex+1<NbOccurrenceOfEachSymbol) {
//Next occurence of this symbol, after the one we have just put
//(otherwise we would have duplicates)
LoopFunction(Symbol,SymbolIndex+1,n,End);
} else {
if(Symbol+1<NbOfDifferentSymbols) {
//Next Symbol
LoopFunction(Symbol+1,0,0,NbCells-NbOccurrenceOfEachSymbol*(Symbol+1)+1);
} else {
//It was last Symbol, grid is complete
//So process this grid
NbGrids++;
ShowLinearGrid();
}
}
LinearGrid[position]=0;
}
}
switch( key ){
case K_W: { sc.keyS();} break;
case K_A: { sc.keyD();} break;
case K_S: { sc.keyW();} break;
case K_D: { sc.keyA();} break;
break;
}
case K_W: { sc.keyS();} break;
case K_A: { sc.keyD();} break;
case K_S: { sc.keyW();} break;
case K_D: { sc.keyA();} break;
break;
}
Code:
void PoemRenderer::setPoem(class Poem *poem)
{
m_poem = poem;
m_scrolling = 0.f;
};
Today I wrote this. Wasting a quarter to debug..
for (i=0; i<polygons_index++; i++)
Stupidest mistake ever :P
for (i=0; i<polygons_index++; i++)
Stupidest mistake ever :P
A very creative way to write an endless loop. I'm impressed!
lol indeed
Funny, variables were unsigned byte, so I never notice it to stuck or loop for long, polygons_index overflew to zero fast enough and then the loop was over.
Code:
dbf d0,copi_tampon
Optimus++
Code:
#define ei(f) else if(i.w<=f){s=
Code:
SUBROUTINE FEMA(IBT,IDISP,IDO,ILPIN,ILTIN,INP,ISC_GD,ISC_GK,
' ISC_GKK,ISC2_GKK,ISC_GM,ISC_GMM,ISC_GQ,ISR_GD,ISR_GK,ISR_GKK,
' ISR2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,D_RE,D_RI3,D_RP,D_TG,D_ZG,DXDXIQ,DNUDXQ,ED,
' EDD,EIGVAL,EIGVEC,EM,ER,ES,FEXT,GCHQ,GD,GK,GKK,GM,GMM,GQ,GRR,
' GR,GUQ,
' NLS_CON_PSI,NLS_CON_XI,NLS_SURF_XI,NLS_SURF_PSI,PE,PF,PG,
' PROPQ,RAD,RD,RE1,RE2,RG,SE,SQ,T_BH,T_BH_INV,THRES,
' VE,VOL,VOLT,WD,WDL,
' WG,WK1,WK2,WK3,WK4,WK1_INV,WK2_INV,WK3_INV,WK4_INV,
' WK_ITERATIVE,WU,XA,XB,XE,XF,XG,XG1,XGRC,XID,XIDL,XIG,XIP,XN,
' XN_GRAD,XO,XP,XR,XR_GRAD,YD,XQ,YG,YP,YQ,ZA,ZA1,ZC,ZD,ZD2,ZDD,
' ZDL,ZE,ZE1,ZF,ZG,ZG1,ZP,ZP1,ZEC,ZFC,
' FIX,FIXP,FNY,ISEG,CSEG,END,STRING,INTWORK,REALWORK,ERROR,*)
Found here
Code:
; Bloody big copper list section approaching!
z=\' a='z=\\$z a=$z$a$z\;eval echo \$a';eval echo $a
main(a,b){printf("%lu ",a-(b=!!(a-1)*b+!(a-1)));main(a+b,a);}