pouët.net

Go to bottom

Random line of code thread

category: code [glöplog]
jsr (160*10*512+5*512+LoaderSize1)-((160*10*512+5*512+LoaderSize1)/512)*512(a0)

\o/
added on the 2008-05-19 15:44:56 by StingRay StingRay
Thats great, but wouldn't:

jsr LoaderSize1-(LoaderSize1/512)*512(a0)

do the same, since 160*10*512+5*512 is a multiple of 512?
added on the 2008-05-19 15:56:53 by xeron xeron
case 0xd8: // 11011xxx
added on the 2008-05-19 15:57:53 by kusma kusma
vertex(rho * sin(phi) * cos(theta), rho * sin(phi) * sin(theta + segWidth), rho * cos(phi + segHeight));
added on the 2008-05-19 16:00:42 by noouch noouch
In fact, wouldn't:

jsr LoaderSize1&511(a0)

do the same?
added on the 2008-05-19 16:01:44 by xeron xeron
send = inner_node_d['<' >> infix_node_d[list_p(term, ',')] >> '>'] >> no_node_d[ch_p('.')] >> proc;
added on the 2008-05-19 16:02:00 by skrebbel skrebbel
this is the random line of code thread, not the "could that random line of code be done in a different way" thread :D

NB: it sure would. :) but looks less 1337 in comparison. :)
added on the 2008-05-19 16:02:32 by StingRay StingRay
:)
added on the 2008-05-19 16:04:47 by xeron xeron
ok, well in that case, that is a brilliant way to express "&511" ;-)
added on the 2008-05-19 16:05:34 by xeron xeron
for(int dx=0;dx<32;dx++)for(int dy=0;dy<32;dy++)if(dx+x>=0&&dy+y>=0&&dx+x<width& &dy+y<height&&tiles.pixels[tiles.width*dy+dx+(tileNumber<<5) ]!=color(255,0,255))pixels[width*(dy+y)+x+dx]=tiles.pixels[tiles.width*dy+dx+(til eNumber<<5)];
added on the 2008-05-19 16:13:48 by linde linde
string shoppinglist;
using System;
added on the 2008-05-19 16:19:32 by bill bill
/********************************************
added on the 2008-05-19 16:32:18 by xernobyl xernobyl
WDR
added on the 2008-05-19 16:37:12 by pezia pezia
case 32: PIXEL
added on the 2008-05-19 16:44:10 by dodke dodke
const float PI = 0.25 * 3.141592654;
added on the 2008-05-19 17:27:56 by cp_ cp_
MOV R1,#256:.y MOV R2,#320:.x AND R3,R1,R2:STRB R3,[R0],#1:SUBS R2,R2,#1:BNE x:SUBS R1,R1,#1:BNE y
added on the 2008-05-19 17:36:17 by mrhill mrhill
SELECT s.MatrNr, s.Name, SUM(v.SWS) as SWS FROM Student s, Vorlesung v, hoert h WHERE s.MatrNr = h.MatrNr AND v.Nr = h.VorlNr GROUP BY s.Name;

SELECT * from StudentSWS s WHERE s.SWS > (SELECT AVG(SWS) FROM StudentSWS) AND s.MatrNr NOT IN (SELECT MatrNr FROM prueft where note = 5 GROUP BY MatrNr);
added on the 2008-05-19 17:41:41 by v3nom v3nom
i meant:

CREATE VIEW StudentSWS AS SELECT s.MatrNr, s.Name, SUM(v.SWS) as SWS FROM Student s, Vorlesung v, hoert h WHERE s.MatrNr = h.MatrNr AND v.Nr = h.VorlNr GROUP BY s.Name;

SELECT * from StudentSWS s WHERE s.SWS > (SELECT AVG(SWS) FROM StudentSWS) AND s.MatrNr NOT IN (SELECT MatrNr FROM prueft where note = 5 GROUP BY MatrNr);
added on the 2008-05-19 17:42:50 by v3nom v3nom
run :)
added on the 2008-05-19 17:47:18 by ninja ninja
GM_xmlhttpRequest({
method: "POST",
url: "http://pouet.net/?"+(new Date().getTime()),
data: "",
headers: {
"User-agent": "Mozilla/4.0 (compatible) Greasemonkey",
"Content-type": "application/x-www-form-urlencoded",
"Accept": "application/atom+xml,application/xml,text/xml,text/html",
"Referer": "http://pouet.net"
},
onload: function(responseDetails)
{
showComments(responseDetails);
}
});
added on the 2008-05-19 17:53:17 by rale rale
return 1;
added on the 2008-05-19 18:04:51 by aegis aegis
Code:main(int c,char**v){return!m(v[1],v[2]);}m(char*s,char*t){return*t-42?*s?63==*t|*s==*t&am p;&m(s+1,t+1):!*t:m(s,t+1)||*s&&m(s+1,t);}
printf("und dann kam das waldmänchen und überreichte das produkt!");
added on the 2008-05-19 18:10:45 by mad mad
;
added on the 2008-05-19 18:13:56 by willbe willbe

login

Go to top