pouët.net

Random line of code thread

category: code [glöplog]
Code:\newsavebox{\verbbox\ \subfloat{\usebox{\verbbox}} \begin{lrbox}{\verbbox} \begin{minipage}{.35\textwidth} \begin{verbatim} ... \end{verbatim} \end{minipage} \end{lrbox}% \subfloat{\usebox{\verbbox}}


because beamer, subfig and verbatim are such good friends with one another...
added on the 2019-03-19 12:33:55 by porocyon porocyon
Code:plasma_dither="00000000100000001000000010001000100010001000100010001000100010002000100020001000200010002000200020002000200020002000200020002000000000000000000000000000000000000000000000000000000000000000000001000000010000000100000001000100010001000100010001000100010001000000000000000000000000000000000000100000001000000010000000100010001000100010001000100010001000100020001000200010002000100020002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000100000001000000010002000000000000100010001000100010001000100010001000100010001000100010001000100020002000200020002000200020002000200020002000200020000000000000000000000000000000000000000000000000000000000000000000000000000000010001000100010001000100010001000100010001000100010000000000000000000000000000000000000000000000001000100010001000100010001000100010001000100010001000100010001000200020002000200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100010001000100018000200080002000800020008000800080108000801080008010800080108010802080108020801080208010802080208020802080808020808080200000000002000100020001000200010002000200020002000200020002000200020002000201020002010200020102000201020102020202020202020202020200000000102000201020002010200020102010202080102020801020208010202080208080802080808020808080208080808080808080808080808080808080000000000001000200010002000100020001000201020002010200020102000201020102020201020202010202020102020201020202020202020202020202020000000020002000200080008000800080008000800080008000801080108010801080108010801080108020802080208020802080208020802080208080802000000000010001000100020002000200020002000200020002000200020002000200020002000200020002010201020102010201020202020202020202020202000000000020002000201020102010201020102010201020102020802080208020802080208020802080808080808080808080808080808080808080808080800000000000010001000100010001000100010001000100010001010201020102010201020102010201020102010201020102010202020202020202020202020200000000"
added on the 2019-03-19 12:40:40 by jobe jobe
Code:vec2 texcoords = cross(normal, normalize(vec3(1,0,2))).xy;
added on the 2019-03-19 15:16:38 by noby noby
Code:vec3 ray = normalize(vdir*(1.0+sin(iTime)*0.3)+side*uv.x+upsd*uv.y-side/2.0-upsd/2.0);
added on the 2019-03-19 17:08:27 by pitapoto pitapoto
Code:move.w 32(a3,d5.w),d4 ; d4 = (BLTAFWM << 16) + BLTALWM
added on the 2019-03-19 19:15:26 by DanLemon DanLemon
Code:add bh,03fh ;close enough
SWEET-16 in action:
Code: MYPROG sqt=$400 ldy #0 jsr SW16 !byte $B0; sub r0;set 0,0 ;r0=0 !byte $36; st 6 ;r6=r0 !byte $E6; inr 6 !byte $0; rtn mm lda 0 sta sqt,y lda 1 sta sqt+256,y jsr SW16 !byte $a6; add 6 ; r0=r0+r6 !byte $E6; inr 6 ;r6+1 !byte $E6; inr 6 ; r6+1 !byte $00; rtn iny bne mm rts
added on the 2019-03-20 06:18:15 by g0blinish g0blinish
Code: move.l 2(a1),a2 ; fetch colour set pointer move.l 6(a1),a3 ; fetch the end address for cmp cmp.l a3,a2 bge.s .next ; skip to next set if this set finished tst.w (a1) ; test if position countdown done yet beq.s .fetch subq.w #1,(a1) ; decrement position counter bra.s .next .fetch: move.w (a2)+,d1 ; fetch colour value move.l a2,2(a1) ; store next colour set value bsr colourMerge ; merge with d0 value ; result => d4 move.w d4,d0 ; last merge = next compare .next:
added on the 2019-03-20 09:49:49 by d0DgE d0DgE
Code:this.__resolution = resolultion;
added on the 2019-03-20 18:57:13 by FMS_Cat FMS_Cat
Code:bsr FillSyringe
added on the 2019-03-21 15:46:33 by StingRay StingRay
Code: move.w #1,SCE_EffectTime(a5)
added on the 2019-03-23 16:08:00 by StingRay StingRay
M68K thread xD

Code: ld a,l ; cp 128:jr z,nxx sub %01111000 rra and %01111000 or 128 ld (ix+0),a
added on the 2019-03-23 16:13:41 by g0blinish g0blinish
short penis=c=o=d=e=1;
if(c==o&&o==d&&d==e) return penis;
ld b, #0 ;black
ld c, b
call #0xBC38
added on the 2019-03-25 23:20:06 by Enfys Enfys
Code:cls(flr(rnd(16)))
added on the 2019-03-28 09:15:08 by jobe jobe
Code:IF INP(&H388) = 0 THEN PRINT "AdLib detected, loading music..."
added on the 2019-03-30 17:08:11 by wbcbz7 wbcbz7
Code:assert!((0..THREADS).any(|t| results[t][p] == values[p]));
added on the 2019-03-30 20:40:35 by Blueberry Blueberry
Code:fill0r db "256"
Code: muls (a2,d7.w*2),d0 ; x = sin(x) * cos(x)
added on the 2019-03-31 18:18:53 by StingRay StingRay
Code:public void brickMeBecauseTheSpecWantsThis() { bricked = true; }


Uni assignment. Seriously.
added on the 2019-03-31 19:29:48 by porocyon porocyon
Code:wire signed [ 16:0 ] index = $signed( { 1'b0, level } ) + scaling;
added on the 2019-03-31 19:59:45 by cgr cgr
Code: assign h_sync = (h_count >= 11'd856 && h_count <= 11'd976) ? 'b1 : 'b0; assign v_sync = (v_count >= 10'd637 && v_count <= 10'd643) ? 'b1 : 'b0;
added on the 2019-03-31 21:03:16 by porocyon porocyon
Code:function getcollision(x,y,ox,oy) return {mget(((x+2)+ox)/8+,((y+2)+oy)/8),mget(((x+14)+ox)/8,((y+2)+oy)/8),mget(((x+2)+ox)/8,((y+14)+oy)/8),mget(((x+14)+ox)/8,((y+14)+oy)/8)} end

Apparently this is an actual line of code that i actually wrote today.
added on the 2019-04-01 00:36:55 by DevEd DevEd
Code:10 REM THIS LINE OF CODE DOES NOTHING!
added on the 2019-04-01 18:20:42 by R0XX0R R0XX0R
Code:// Add streaks to the 2-th curve
added on the 2019-04-02 18:35:49 by cpdt cpdt

login