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,MaskForPie cesToShow; int NbShapesToShow,ShapesToShowIndex,ShapesToShowStart,ShapesToShowLength,MaskForSha pesToShow; char PieceToShapeLUT[NbPieces],PieceAffectedToShape[NbPieces]; int NbObjectsToShow,ObjectsToShowIndex,ObjectsToShowStart,ObjectsToShowLength,MaskFo rObjectsToShow; int NbUncoloredObjectsToShow,UncoloredObjectsToShowIndex,UncoloredObjectsToShowStart ,UncoloredObjectsToShowLength,MaskForUncoloredObjectsToShow; int NbCarsInRacingOrder,CarsInRacingOrderIndex,CarsInRacingOrderStart,CarsInRacingOr derLength,MaskForCarsInRacingOrder; int RaceOrderToStudy,NbDifferentRaceOrders,RaceOrderIndex,RaceOrderAlreadySeen,Alrea dySeen; int CompatibleIndex,PieceIndex,ObjectType; int CompatibleIndex2,CutoutIndex2,PieceIndex2,ObjectType2,ValidCutout,NbCompatibleCu toutsValidForThisPuzzle; 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

login