pouët.net

Go to bottom

Random line of code thread

category: code [glöplog]
Code:AND b~sperm <> p_bed3
added on the 2012-08-15 13:17:18 by StingRay StingRay
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)))
added on the 2012-08-16 10:09:48 by botjao botjao
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); }
added on the 2012-08-16 13:04:43 by FreeFull FreeFull
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. *///////////////////////////////////////////////////////////////////////
added on the 2012-08-21 10:28:33 by StingRay StingRay
Code: move.l #"JUHU",$4.w
added on the 2012-09-11 07:50:38 by StingRay StingRay
Code:const string &data = crossworddata[y];



added on the 2012-09-11 16:09:24 by Preacher Preacher
lea illegalscenebubbles,a0
added on the 2012-09-11 17:45:09 by Fell Fell
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.); }
added on the 2012-09-11 17:57:15 by Fell Fell
Code:drawrot -c @demo.3 $calc($cos($calc(%c / 9)).deg * ($sin($calc(%c / 20)).deg * 1024)) 0 0 200 200
added on the 2012-09-11 18:25:03 by ___ ___
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.); }
added on the 2012-09-14 00:08:29 by FreeFull FreeFull
Code:* This handles a baby's death. Put a splat and decrement extra babies
added on the 2012-09-24 09:20:49 by StingRay StingRay
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; } }
added on the 2012-09-24 20:29:36 by baah baah
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;
}
added on the 2012-09-26 00:16:29 by abductee abductee
Code: void PoemRenderer::setPoem(class Poem *poem) { m_poem = poem; m_scrolling = 0.f; };
added on the 2012-09-28 20:34:53 by Preacher Preacher
Today I wrote this. Wasting a quarter to debug..

for (i=0; i<polygons_index++; i++)

Stupidest mistake ever :P
added on the 2012-10-02 20:41:02 by Optimus Optimus
A very creative way to write an endless loop. I'm impressed!
added on the 2012-10-02 20:50:15 by Joghurt Joghurt
lol indeed
added on the 2012-10-02 21:14:22 by bull bull
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.
added on the 2012-10-02 23:15:06 by Optimus Optimus
Code: dbf d0,copi_tampon
added on the 2012-11-07 11:30:24 by StingRay StingRay
Optimus++
added on the 2012-11-07 21:21:41 by baah baah
Code:#define ei(f) else if(i.w<=f){s=
added on the 2012-11-07 21:54:28 by skomp skomp
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_GKK,ISR_GM,ISR_GMM,ISR_GQ,ISALIG, ' ISAXES,ISBASE,ISCLOC,ISCONO,ISCONT,ISCROS,ISDANO,ISDAPR, ' ISDATA,ISDATR,ISDIPO,ISDIPA,ISELEC,ISELNO,ISFACE,ISFANO, ' ISFIBR,ISFIEL,ISGAUS,ISGRID,ISGRAD,ISHIST,ISIMAG,ISINCR, ' ISISOC,ISIZE_TBH,ISLEAD,ISLINE, ' ISLINO,ISL2BE,ISL3BE,ISMAP,ISMATE,ISNONO,ISN2BE,ISN3BE,ISOBJE, ' ISPLIN,ISPLOT,ISPMAR,ISPROF,ISREAC,ISRESI,ISRULE,ISSCAL,ISSECT, ' ISSHEE,ISSIGN,ISSTRA,ISSTRE,ISSTRM,ISSURF,ISTEXT,ISTRAC,ISVELO, ' ITHRES,LD,LDR,LIST,LGE,LN,MXI,NAN,NBH,NBJ,NBJ_face,NCO,NDDATA, ' NDDL,NDET,NDLT,NDP,NEELEM,NEL,NELIST,NENP,NEP,NFF,NFLIST,NGAP, ' NGLIST,NHE,NHP,NJE,NJP,NKE,NKF,NKH,NKJ,NLCHOR,NLF,NLL,NLLINE, ' NLLIST,NLNO,NLS_ICON_ELEM,NLS_ICON_X,NLS_ISURF_ELEM, ' NLS_NDATA_CONT,NLS_NDATA_IMAG,NMBIN,NMNO,NNF,NNL,NONL,NONM,NONY, ' NP1OPT,NP2OPT,NP3OPT,NPB,NPF,NPINTER,NP_INTERFACE,NPL, ' NPLIST1,NPLIST2,NPNE,NPNODE,NPNY,NPQ,NQE,NQGE,NQLIST,NRE, ' NRLIST,NTCOVA,NVHE,NVHP, ' NVJE,NVJP,NVQ,NW,NWQ,NXI,NXQ,NYNE,NYNO,NYNP,NYNR,N_OLD_ORDER, ' N_TEMP_ORDER,NP_OLD,NP_TEMP,PAOPTY,IPIVOT,IWK1,IWK2, ' IWK_ITERATIVE,POTNOUT,CE,CG,CIN,CONY,COVA,CP,CQ,CYNO,DET,DF, ' DL,DLL,DRDN,DRDNO,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
added on the 2012-11-11 17:25:27 by Optimus Optimus
Code:; Bloody big copper list section approaching!
added on the 2012-11-12 09:55:02 by StingRay StingRay
z=\' a='z=\\$z a=$z$a$z\;eval echo \$a';eval echo $a
added on the 2012-11-19 22:29:16 by Kais Kais
main(a,b){printf("%lu ",a-(b=!!(a-1)*b+!(a-1)));main(a+b,a);}
added on the 2012-11-19 22:33:17 by Kais Kais

login

Go to top