Random line of code thread
category: code [glöplog]
while (!found && !notFound)
mDemo.generateAwesomeDemo(); mDemo.play();
if ((true==false)&&(false==true)) printf ('huh???');
Inquisition:
PUSH WITCH
CALL FIRE
CMP WITCH,ASH
JNE Inquisition
PUSH WITCH
CALL FIRE
CMP WITCH,ASH
JNE Inquisition
To summon back the firewitch, in the court of the Crimson Kiiiiiiiiiiiiiiiiing
thanks for getting that song stuck again
char vagina[] = 0xDEADC0CC
10 PRINT "HELLO"
20 GOTO 10
30 GOTO 10; REM just in case
20 GOTO 10
30 GOTO 10; REM just in case
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);
...
>--[------->-<]>+.--.<<---[----->-<]>.>>>--------[-<---->]<.<-.<++.>+.+++.>.<--.<.>.<+.---------.>+++++.
writeChunk(dataOutputStream, gridSizeData, CHUNK_HEADER_GRID_SIZE);
avoozl: \o/
void printHex(int n)
{
for (int i=2 - 1; i>=0; i--)
print(chars[((n >> (i<<2)) & 0xF)]);
print("\n");
}
{
for (int i=2 - 1; i>=0; i--)
print(chars[((n >> (i<<2)) & 0xF)]);
print("\n");
}
unsigned int i=0;
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
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.
ah yes, a smidgeon of the ol' 'mindfuck' perhaps, pip pip
brainfuck ftw!
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;
}
}
}
; code copyright by Gaffer (c)
FIST DWORD PTR [me]
FIST DWORD PTR [me]
bente_on = true;
^ a label Zeus/Kefrens had in his code. Name of his girlfriend at the time :-D
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;
}