pouët.net

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;
added on the 2006-12-21 23:38:24 by rale rale
teel: you can't expect everyone to be a member of mensa
added on the 2006-12-21 23:38:50 by waffle waffle
#define pedophile
added on the 2006-12-21 23:39:51 by maali maali
So what defines "a line"? Is it zero terminated? lets try that..
added on the 2006-12-21 23:47:33 by Stelthzje Stelthzje
}
added on the 2006-12-21 23:48:59 by noouch noouch
goto 0xbed
added on the 2006-12-21 23:57:06 by raer raer
#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.
added on the 2006-12-22 00:05:24 by Steohawk Steohawk
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 :)
added on the 2006-12-22 00:09:53 by EviL EviL
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;
added on the 2006-12-22 00:16:13 by v3nom v3nom
return 0;
added on the 2006-12-22 00:26:32 by jua jua
PostQuitMessage(0) ;
added on the 2006-12-22 01:31:16 by rmeht rmeht
move.l #$B00BBABE,d0
added on the 2006-12-22 03:20:33 by StingRay StingRay
// FIXME: Hack!
added on the 2006-12-22 03:25:36 by remageFrs remageFrs
while(((pget(x,p)!=4)||(int(rand()%2)&&pget(x+1,p+1)!=4&&pget(x-1,p+1)!=4))&&p<hojd)
added on the 2006-12-22 03:46:40 by linde linde
@pixels = (0...@h).collect { |i| p[i*(@w*3),@w*3] }.reverse
added on the 2006-12-22 03:55:34 by snoutmate snoutmate
let's change this to "post the line of code you think is most likely to make someones head explode"
added on the 2006-12-22 04:02:40 by linde linde
C00

\o/
Steohawk, I think you don't know what the word artist mean. An artist isn't an incompetent.
added on the 2006-12-22 08:19:00 by _-_-__ _-_-__
//@TODO: FIXME, we should never have to do this crap.
added on the 2006-12-22 10:29:05 by NeARAZ NeARAZ
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
added on the 2006-12-22 10:30:53 by d0DgE d0DgE
Dear customer, welcome to the online help. 1] Open Werkzeug 2] load data 3] run 4] claim prize on stage.
added on the 2006-12-22 10:46:35 by doh doh
;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
added on the 2006-12-22 11:08:34 by d0DgE d0DgE
^^ a single line bbcode
added on the 2006-12-22 12:06:34 by rmeht rmeht
;-----------------------------------------------------------------------------------------------------------------------
added on the 2006-12-22 12:22:13 by cruzer cruzer

login