pouët.net

Random line of code thread

category: code [glöplog]
Code:3DIQCubeDuel_EdgesOnly Puzzle24.txt 2 >P24_2.tex call goffen P24_2
added on the 2019-07-26 09:35:35 by baah baah
fun fullAddress(): String = (if (address1 != null) address1 else "") + (if (address2 != null) "\n" + address2 else "") + "\n" + (if (postCode != null) postCode else "") + (if (city != null) city else "")

kotlin
added on the 2019-07-26 23:06:59 by Romain337 Romain337
movem.w \4/\5/\6,-(sp) ;Is that actually code or ASCII-art?
added on the 2019-08-20 17:35:48 by axis^oxy axis^oxy
Code: int t,t2,value,value2,PathIndex; int CutoutIndex,CutoutAndPathCompatible; int NbCutouts,NbCompatibleCutouts,LengthOfRaceTrack; char OffsetToSuccessiveTrackCells[PuzzleSize]; //we only need PuzzleSizeWithoutFH; char BoardWithPath[PuzzleSize]; //we only need PuzzleSizeWithoutFH; int CompatibleCutoutIndex[MaxNbOfCompatibleCutouts]; char RaceOrder[MaxNbOfCompatibleCutouts][NbPieces]; int NbPiecesToShow,PiecesToShowIndex,PiecesToShowStart,PiecesToShowLength,MaskForPiecesToShow; int NbShapesToShow,ShapesToShowIndex,ShapesToShowStart,ShapesToShowLength,MaskForShapesToShow; char PieceToShapeLUT[NbPieces],PieceAffectedToShape[NbPieces]; int NbObjectsToShow,ObjectsToShowIndex,ObjectsToShowStart,ObjectsToShowLength,MaskForObjectsToShow; int NbUncoloredObjectsToShow,UncoloredObjectsToShowIndex,UncoloredObjectsToShowStart,UncoloredObjectsToShowLength,MaskForUncoloredObjectsToShow; int NbCarsInRacingOrder,CarsInRacingOrderIndex,CarsInRacingOrderStart,CarsInRacingOrderLength,MaskForCarsInRacingOrder; int RaceOrderToStudy,NbDifferentRaceOrders,RaceOrderIndex,RaceOrderAlreadySeen,AlreadySeen; int CompatibleIndex,PieceIndex,ObjectType; int CompatibleIndex2,CutoutIndex2,PieceIndex2,ObjectType2,ValidCutout,NbCompatibleCutoutsValidForThisPuzzle; int ProblemNumber,DiagramNumber,LastSeenCutout; int NbTreesShown; int x,y; int OccurenceWithoutFH[NbPieces+1][PuzzleSize]; //we only need PuzzleSizeWithoutFH; int OccurenceOfCurrentPiece[PuzzleSize]; int OccurenceOfCarInRaceTrack[NbPieces][PuzzleSize]; //we only need PuzzleSizeWithoutFH; double freq; int PositionWithMinOccurence,MinOccurence,NbGivenCutouts,CutoutFound; int NbOfTrackCellsOccupied,NbCarsPlacedInPuzzle; int RareIndex,RareFound; int BoardIndex; int NbAreas,NbPieceZones,FalseSquareFound;

Hummm.... Maybe too much variables O_o
added on the 2019-08-20 18:54:52 by baah baah
int a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; // we never want to run out of loopcounters.
added on the 2019-08-21 12:30:21 by axis^oxy axis^oxy
Wanted to compile "ColorBlocks_OnlyUniqueStarsSetups.c" but then the UAC Yellow/Blue shield icon was showing and kept annoying me...

After some investigation i found that an executable containing the word "install", "setup" or "update" triggers the "Installer detection technology" O_o

Did I ever mention that I don't like OSes whose programmer always assume that they know better than you?
added on the 2019-08-31 08:49:13 by baah baah
apparently blackle find this one funny:

Code:assert sys.platform == 'linux' # sorry


followed by ugly ctypes hacks
added on the 2019-09-09 14:03:38 by porocyon porocyon
Code:int 10h ; set screen mode, also : set pixel, also : set instrument of channel D to church organ
added on the 2019-09-09 14:24:56 by HellMood HellMood
Code:static int smooth(int t) { return fixMul(fixMul(fixMul(t, t), t), (fixMul(t, (fixMul(t, (6 << rangeShr)) - (15 << rangeShr))) + (10 << rangeShr))); // 6t^5 - 15t^4 + 10t^3 }
added on the 2019-09-09 19:27:38 by Optimus Optimus
finds*, I cannot into English apparently
added on the 2019-09-09 22:52:58 by porocyon porocyon
towerofpixset:
or.b d5,0(a0) ; d5 = 128
or.b d4,0(a0) ; d4 = 64
or.b d3,0(a0) ; d3 = 32
bset.b d1,0(a0) ; d1 = 4 2^4=16
or.b d2,0(a0) ; d2 = 8
or.b d1,0(a0) ; d1 = 4
bset.b d0,0(a0) ; d0 = 1 2^1=2
or.b d0,0(a0) ; d0 = 1

or.b d5,1(a0) ; d5 = 128
or.b d4,1(a0) ; d4 = 64
or.b d3,1(a0) ; d3 = 32
bset.b d1,1(a0) ; d1 = 4 2^4=16
or.b d2,1(a0) ; d2 = 8
or.b d1,1(a0) ; d1 = 4
bset.b d0,1(a0) ; d0 = 1 2^1=2
or.b d0,1(a0) ; d0 = 1
added on the 2019-09-15 12:45:23 by gloky gloky
Code:cmp.b #"."-" ",d0
added on the 2019-10-07 17:11:04 by StingRay StingRay
Code:brr 0x003e
added on the 2019-10-07 17:29:02 by porocyon porocyon
Code:move.l #(((320-224)/8)<<16)|((320-224)/8),$dff064
added on the 2019-10-21 17:59:00 by StingRay StingRay
10 Print "Pouet.net"
20 Goto 10
added on the 2019-10-23 21:14:33 by xstatique xstatique
uv *= rot((t>64?-1:1)*(.1-.2*pow(abs(sin(at*1.5)+(t>64?-1:1)*.1*cos(at*3)), 3.3)));
float at=2*sat(sat(1+mod(tt-.4,4.)-3.));
m(vec3(c(uv*vec2(3+pow(abs(sin(tt*2)),8.),at+4.7+pow(abs(cos(tt*2)),10.))+vec2(0,1),.005)),vec3(0));
added on the 2019-10-23 22:25:06 by alkama alkama
for(S=T=c=0;++c<o&&S*S+T*T<4;S=U*U-T*T+X/Z,T=2*U*T+Y/Z)U=S;
Code:glBindVertexArray(0)
added on the 2019-10-27 12:55:47 by pitapoto pitapoto
Code:cmovel MEM_CH+CHa_GG_SpanBuffer+((cGG_SB_Height-1)*(cGG_SB_Width/8)*cGG_SB_Depth), bpl1pth, cGG_SB_Depth, cGG_SB_Width/8
added on the 2019-10-27 17:51:08 by Paradroid Paradroid
Code:VRAM_memcpy $4D5, $100, $16 ;Aaaaaaaaaand ship this crap off to VRAM and return.
Code: lda #<StableIRQ ; hello old friend, it's been nearly 30 years since we last met
added on the 2019-10-30 16:41:07 by StingRay StingRay
for(int i=0; i<array.length; i=i++); // Countless students of mine
{
...
}
added on the 2019-10-30 18:29:11 by Marq Marq
Code:LDA #(1<<4)|CHARDEST_2000
added on the 2019-11-01 13:46:07 by StingRay StingRay
Code: cmp #("I"-"A")*2+64
added on the 2019-11-12 10:04:17 by StingRay StingRay
Code:#define println(...) printf( __VA_ARGS__ );fflush(stdout);
added on the 2019-11-16 21:24:55 by thec thec

login