Gå til innhold

Anbefalte innlegg

Videoannonse
Annonse

Dette er noe av det gøyeste med å lese andre sin kode. Bare dumt det ikke er flere som putter mer humor i koden sin.

 

/*
* OK; before you read the following code know what I am trying to do.
* I needed to get the list of child catagories from the root node so that
* the root node didn't appear in the selection box. But for some stupid
* fucking reason the stupid fucking DBA wont let me access the items using
* indices and I instead have to use their stupid fucking Iterator
* implementation. So there.
*/
$firstList = $this->getRootNode()->getChildren();
foreach ($firstList as $node)
{
   $nodes = $node->getChildren();
   break;                // wtf?
}

 

// no comments for you
// it was hard to write
// so it should be hard to read

 

//When I wrote this, only God and I understood that I was doing
//Now, God only knows

 

#define TRUE FALSE //Happy debugging suckers

 

/* Welcome to Sun Microsystems, can I take your order please? */
if(!hp->happy_flags & HFLAG_FENABLE)
       return happy_meal_bb_write(hp, tregs, reg, value);

/* Would you like fries with that? */
hme_write32(hp, &tregs->frame,
           (FRAME_WRITE | (hp->paddr << 23) |
            ((reg & 0xff) << 18) | (value & 0xffff)));
while(!(hme_read32(hp, &tregs->frame) & 0x10000) && --tries)
       udelay(20);

/* Anything else? */
if(!tries)
       printk(KERN_ERR "happy meal: Aieee, transceiver MIF write bolixed\n");

/* Fifty-two cents is your change, have a nice day. */

  • Liker 2
Lenke til kommentar
  • 4 uker senere...

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
  • Hvem er aktive   0 medlemmer

    • Ingen innloggede medlemmer aktive
×
×
  • Opprett ny...