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...
Code:
plasma_dither="00000000100000001000000010001000100010001000100010001000100010002000100020001000200010002000200020002000200020002000200020002000000000000000000000000000000000000000000000000000000000000000000001000000010000000100000001000100010001000100010001000100010001000000000000000000000000000000000000100000001000000010000000100010001000100010001000100010001000100020001000200010002000100020002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000100000001000000010002000000000000100010001000100010001000100010001000100010001000100010001000100020002000200020002000200020002000200020002000200020000000000000000000000000000000000000000000000000000000000000000000000000000000010001000100010001000100010001000100010001000100010000000000000000000000000000000000000000000000001000100010001000100010001000100010001000100010001000100010001000200020002000200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100010001000100018000200080002000800020008000800080108000801080008010800080108010802080108020801080208010802080208020802080808020808080200000000002000100020001000200010002000200020002000200020002000200020002000201020002010200020102000201020102020202020202020202020200000000102000201020002010200020102010202080102020801020208010202080208080802080808020808080208080808080808080808080808080808080000000000001000200010002000100020001000201020002010200020102000201020102020201020202010202020102020201020202020202020202020202020000000020002000200080008000800080008000800080008000801080108010801080108010801080108020802080208020802080208020802080208080802000000000010001000100020002000200020002000200020002000200020002000200020002000200020002010201020102010201020202020202020202020202000000000020002000201020102010201020102010201020102020802080208020802080208020802080808080808080808080808080808080808080808080800000000000010001000100010001000100010001000100010001010201020102010201020102010201020102010201020102010202020202020202020202020200000000"
Code:
vec2 texcoords = cross(normal, normalize(vec3(1,0,2))).xy;
Code:
vec3 ray = normalize(vdir*(1.0+sin(iTime)*0.3)+side*uv.x+upsd*uv.y-side/2.0-upsd/2.0);
Code:
move.w 32(a3,d5.w),d4 ; d4 = (BLTAFWM << 16) + BLTALWM
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
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:
Code:
this.__resolution = resolultion;
Code:
bsr FillSyringe
Code:
move.w #1,SCE_EffectTime(a5)
M68K thread xD
Code:
ld a,l
; cp 128:jr z,nxx
sub %01111000
rra
and %01111000
or 128
ld (ix+0),a
short penis=c=o=d=e=1;
if(c==o&&o==d&&d==e) return penis;
if(c==o&&o==d&&d==e) return penis;
ld b, #0 ;black
ld c, b
call #0xBC38
ld c, b
call #0xBC38
Code:
cls(flr(rnd(16)))
Code:
IF INP(&H388) = 0 THEN PRINT "AdLib detected, loading music..."
Code:
assert!((0..THREADS).any(|t| results[t][p] == values[p]));
Code:
fill0r db "256"
Code:
muls (a2,d7.w*2),d0 ; x = sin(x) * cos(x)
Code:
public void brickMeBecauseTheSpecWantsThis() { bricked = true; }
Uni assignment. Seriously.
Code:
wire signed [ 16:0 ] index = $signed( { 1'b0, level } ) + scaling;
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;
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.
Code:
10 REM THIS LINE OF CODE DOES NOTHING!
Code:
// Add streaks to the 2-th curve