Apr 14 2015

Eaten by a gigantic spider

Christoph

Thanks to Hans for this code candy

// Hack to save null value for imageId
// The Zend Framework removes the key of all null values
// in the params array…
// See http://stackoverflow.com/questions/1999797/zend-
// framework-getting-an-empty-param
// SERIOUSLY WHAT THE FUCK IS THIS SHIT?
// I HOPE THE STUPID ZEND FRAMEWORK DEVELOPERS GET EATEN
// BY A GIGANTIC SPIDER!!!

Programming language: PHP

1 Star2 Stars3 Stars4 Stars5 Stars (3 Bewertungen, Durchschnitt: 5,00 von 5)
Loading...Loading...

Apr 14 2015

This annoyed many windows users

Christoph

Thanks to Andreas R. for this code candy

/*
** 2006-10-31: The default prefix used to be “sqlite_”.
** But then Mcafee started using SQLite in their anti-
** virus product and it started putting files with the
** “sqlite” name in the c:/temp folder.
** This annoyed many windows users. Those users would then
** do a Google search for “sqlite”, find the telephone
** numbers of the developers and call to wake them up at
** night and complain.
** For this reason, the default name prefix is changed to
** be “sqlite” spelled backwards. So the temp files are
** still identified, but anybody smart enough to figure
** out the code is also likely smart enough to know that
** calling the developer will not help get rid of the
** file.
*/
#ifndef SQLITE_TEMP_FILE_PREFIX
# define SQLITE_TEMP_FILE_PREFIX “etilqs_”
#endif

Source: Direct link to the source code
Software: SQLite
Programming language: C

1 Star2 Stars3 Stars4 Stars5 Stars (2 Bewertungen, Durchschnitt: 5,00 von 5)
Loading...Loading...

Nov 3 2014

I’m sleepy

Christoph

Thanks to Tito for this code candy

// TODO: I believe the method (and all class in general)
// doesn’t make any sense at all, but I’m sleepy and
// it works fine

Programming language: C#

1 Star2 Stars3 Stars4 Stars5 Stars (1 Bewertungen, Durchschnitt: 5,00 von 5)
Loading...Loading...

Mai 23 2014

Skip reading

Christoph

// if you do not like UGLY MONSTERHACKS,
// skip reading the next three lines
[…]

Programming language: Java

1 Star2 Stars3 Stars4 Stars5 Stars (3 Bewertungen, Durchschnitt: 4,67 von 5)
Loading...Loading...

Mai 14 2014

Get all females

Christoph

Thanks to Mike for this code candy

// A function that retrieves all females from the database
// for processing and display:
function getGirls() { //if only it were really that simple
[…]
}

Programming language: PHP

1 Star2 Stars3 Stars4 Stars5 Stars (5 Bewertungen, Durchschnitt: 5,00 von 5)
Loading...Loading...