Random line of code thread
category: code [glöplog]
Vector cammove = Vector(0.6f * cosf(pos * 7 * camspeed) + 0.4f * sinf(pos * 7 * camspeed), 0.4f * sinf(pos * 11 * camspeed) + 0.9f * cosf(pos * 4 * camspeed), 0.7f * cosf(pos * 15 * camspeed) + 0.32f * sinf(pos * 17 * camspeed)) * camradius;
teel: you can't expect everyone to be a member of mensa
#define pedophile
So what defines "a line"? Is it zero terminated? lets try that..
}
goto 0xbed
#define troll
#define flame
#define bigot
Seriously, you can't expect everybody to be code-savvy. I use blender for graphics, which is my strong point. I use audacity for music, which isn't my strong point. I don't do code, because I'm an artist. Coding drives me crazy.
#define flame
#define bigot
Seriously, you can't expect everybody to be code-savvy. I use blender for graphics, which is my strong point. I use audacity for music, which isn't my strong point. I don't do code, because I'm an artist. Coding drives me crazy.
1 CLS:INPUT "RADIUS: (0/200)";R:INPUT "H POS: (0/640)";X:INPUT "V POS: (0/400)";Y:CLS:FOR N=-R TO R:A=SQRT((R*R)-(N*N)):ORIGIN X,Y+N:DRAW A,0:ORIGIN X,Y+N:DRAW -A,0:NEXT
oh yeah Amstrad CPC makes it fast too after all :)
oh yeah Amstrad CPC makes it fast too after all :)
fun split xs = foldl (fn (x,(ys,zs)) => (x::zs,ys)) (nil,nil) xs;
fun merge _ (xs,nil) = xs
|merge _ (nil,ys) = ys
|merge compare ((x::xr),(y::yr)) = case compare of
LESS => x::merge compare (xr,(y::yr))
_ => y::merge compare ((x::xr),yr);
fun msort _ nil = nil
|msort _ [x] = [x]
|msort compare xs = let
val (ys,zs) = split xs
in
merge(msort compare ys, msort compare zs)
end;
fun merge _ (xs,nil) = xs
|merge _ (nil,ys) = ys
|merge compare ((x::xr),(y::yr)) = case compare of
LESS => x::merge compare (xr,(y::yr))
_ => y::merge compare ((x::xr),yr);
fun msort _ nil = nil
|msort _ [x] = [x]
|msort compare xs = let
val (ys,zs) = split xs
in
merge(msort compare ys, msort compare zs)
end;
return 0;
PostQuitMessage(0) ;
move.l #$B00BBABE,d0
// FIXME: Hack!
while(((pget(x,p)!=4)||(int(rand()%2)&&pget(x+1,p+1)!=4&&pget(x-1,p+1)!=4))&&p<hojd)
@pixels = (0...@h).collect { |i| p[i*(@w*3),@w*3] }.reverse
let's change this to "post the line of code you think is most likely to make someones head explode"
C00
\o/
\o/
Steohawk, I think you don't know what the word artist mean. An artist isn't an incompetent.
//@TODO: FIXME, we should never have to do this crap.
Code:
lea mouth,a0
moveq #3-1,d7
move.l d0,d2 ;save Stings Babe
move.l #$00c0ffee,d0
sip:
move.l d0,(a0)+
dbf d7,sip
lea eyes,a0
move.l d2,(a0)
rts
Dear customer, welcome to the online help. 1] Open Werkzeug 2] load data 3] run 4] claim prize on stage.
;that code-bb-thingie sux
lea mouth,a0
moveq #3-1,d7
move.l d0,d2 ;save Stings Babe
move.l #$00c0ffee,d0
sip:
move.l d0,(a0)+
dbf d7,sip
lea eyes,a0
move.l d2,(a0)
rts
lea mouth,a0
moveq #3-1,d7
move.l d0,d2 ;save Stings Babe
move.l #$00c0ffee,d0
sip:
move.l d0,(a0)+
dbf d7,sip
lea eyes,a0
move.l d2,(a0)
rts
^^ a single line bbcode
;-----------------------------------------------------------------------------------------------------------------------