Random line of code thread
category: code [glöplog]
Code:
3DIQCubeDuel_EdgesOnly Puzzle24.txt 2 >P24_2.tex
call goffen P24_2
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
kotlin
movem.w \4/\5/\6,-(sp) ;Is that actually code or ASCII-art?
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
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.
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?
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?
apparently blackle find this one funny:
followed by ugly ctypes hacks
Code:
assert sys.platform == 'linux' # sorry
followed by ugly ctypes hacks
Code:
int 10h ; set screen mode, also : set pixel, also : set instrument of channel D to church organ
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 }
finds*, I cannot into English apparently
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
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
Code:
cmp.b #"."-" ",d0
Code:
brr 0x003e
Code:
move.l #(((320-224)/8)<<16)|((320-224)/8),$dff064
10 Print "Pouet.net"
20 Goto 10
20 Goto 10
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));
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));
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)
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
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
for(int i=0; i<array.length; i=i++); // Countless students of mine
{
...
}
{
...
}
Code:
LDA #(1<<4)|CHARDEST_2000
Code:
cmp #("I"-"A")*2+64
Code:
#define println(...) printf( __VA_ARGS__ );fflush(stdout);