pouët.net

Random line of code thread

category: code [glöplog]
while (!found && !notFound)
added on the 2008-06-02 19:13:28 by kusma kusma
mDemo.generateAwesomeDemo(); mDemo.play();
added on the 2008-06-02 19:15:11 by micksam7 micksam7
if ((true==false)&&(false==true)) printf ('huh???');
Inquisition:
PUSH WITCH
CALL FIRE
CMP WITCH,ASH
JNE Inquisition
added on the 2008-06-04 20:54:17 by misioslaw misioslaw
To summon back the firewitch, in the court of the Crimson Kiiiiiiiiiiiiiiiiing
thanks for getting that song stuck again
added on the 2008-06-04 22:42:53 by linde linde
char vagina[] = 0xDEADC0CC
added on the 2008-06-04 22:48:03 by aegis aegis
10 PRINT "HELLO"
20 GOTO 10
30 GOTO 10; REM just in case
added on the 2008-06-05 00:04:44 by unic0rn unic0rn
LOLCAT C

Code: #CANHAS <HUGSTIME> // HUGSTIME is system functions for determining hugs time #CANHAS <STDIO> #CANHAS <TIME> //Needed for NAO ... IHAS LOVINGU = NOES; IZ(NAO == HUGSTIME) { VISIBLE("<3\\n"); LOVINGU = K; } NOWAI { VISIBLE("</3\\n"); LOVINGU = NOES; } KTHX(BYE); ...

>--[------->-<]>+.--.<<---[----->-<]>.>>>--------[-<---->]<.<-.<++.>+.+++.>.<--.<.>.<+.---------.>+++++.
added on the 2008-06-05 12:42:59 by avoozl avoozl
writeChunk(dataOutputStream, gridSizeData, CHUNK_HEADER_GRID_SIZE);
added on the 2008-06-05 12:51:32 by Puryx Puryx
avoozl: \o/
added on the 2008-06-05 12:57:53 by skrebbel skrebbel
void printHex(int n)
{
for (int i=2 - 1; i>=0; i--)
print(chars[((n >> (i<<2)) & 0xF)]);
print("\n");
}
added on the 2008-06-05 13:22:53 by linde linde
unsigned int i=0;
added on the 2008-06-06 21:55:13 by toxie toxie
Code: HAI CAN HAS STDIO? I HAS A BEER I HAS A FACE VISIBLE "HOW MANY BEERS YOU GONNA BUY ME?" GIMMEH BEER IM IN YR FACE UP FACE!!1 VISIBLE "I DRUNK "+FACE" BEERS!" IZ FACE BIGGER THAN BEER? KTHXBYE IM OUTTA YR FACE KTHXBYE
added on the 2008-06-06 22:27:49 by Shockwave Shockwave
Hey, help me with this... I keep SIGSEGGING

Code: #include <Hitler.h> ... bool is_like_hitler (char* target) { hitlerbuffer = init_hitler(); //beginning of array char* hitlerbuffer while(hitlerbuffer++ = target++) ; //copy characters to char* hitlerbuffer return (hitlermatch > 0); } ...

avoozl wins.
added on the 2008-06-07 12:54:13 by s_tec s_tec
ah yes, a smidgeon of the ol' 'mindfuck' perhaps, pip pip
brainfuck ftw!
added on the 2008-06-07 14:01:03 by raer raer
Code: move.b #128,line_num(A5) ; hot restart poll_blitter: bset #7,$FFFF8A3C ; test and set Blitter busy bit nop ; idle a bit - to leave time for IRQs bne.s poll_blitter
Code:void BumpMap::process() { pColor input = m_children[0]->getBuffer(); pColor normalMap = m_children[1]->getBuffer(); pColor output = m_pBuffer; // Normal vector Vector N; // View vector - 'Infinite' viewer Vector V(0, 0,-1); // Light vector Vector L(0, 0, 1); // Compute light vector -1..1 for(int c=0; c<2; ++c) L[c] = (m_dLight[c] - 128) / 128.0f; L.normalize(); for(int y=0; y<m_height; ++y) { for(int x=0; x<m_height; ++x) { for(int c=0; c<3; ++c) N[c] = ((*normalMap)[c] - 128) / 128.0f; N.normalize(); Colorf I = m_cAmbiant; I += Colorf(m_cDiffuse) * Colorf(*input) * maxf(0.0f, 1.0f - (L - N).length()); I += Colorf(m_cSpecular) * powf(maxf(V.dot(L - N * 2.0f * N.dot(L)), 0.0f), 0.3f * m_ubSpecPower); for(int c=0; c<3; ++c) (*output)[c] = (u8)(minf(1.0f, I[c]) * 255); input += 1; output += 1; normalMap += 1; } } }
added on the 2008-06-07 21:44:51 by LiraNuna LiraNuna
; code copyright by Gaffer (c)

FIST DWORD PTR [me]
added on the 2008-06-08 02:35:24 by trc_wm trc_wm
bente_on = true;
added on the 2008-06-08 02:50:03 by Steel Steel
^ a label Zeus/Kefrens had in his code. Name of his girlfriend at the time :-D
added on the 2008-06-08 02:54:00 by Steel Steel
Code: #include "ned.h" int main(int argc,char **argv) { Initialise(); scene=Load("greenblub.ned"); while (!End()) { // green blub effect of stars DrawSyntheticScene(scene); } Free(); return 0; }

login