Mai 4 2010

This is cheating

Christoph

/* This is cheating, hehehe. We declare
 * the user has a 4 button joy to read
 * the 3rd and 4th button. Maybe the
 * user doesn’t have one, but hey, then
 * he won’t notice we are cheating ;)
 */

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

1 Star2 Stars3 Stars4 Stars5 Stars (noch nicht bewertet)
Loading ... Loading ...

Jan 25 2010

This function may be called recursively

Christoph

/*
 * This function may be called recursively if you don’t do
 * what giFT expects of you. This is a feature, not a bug,
 * trust me.
 */

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

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

Dez 23 2009

Transfer gigabytes through AIM

Christoph

/* holy crap. who the f*ck would transfer gigabytes through
   AIM?! */
static char *sizes[4] = { “bytes”, “KB”, “MB”, “GB” };

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

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

Nov 30 2009

Really nasty redirection games

Christoph

# Those altavista f*ckers are playing really nasty
# redirection games these days: the filter your clicks
# through their site, but use onMouseOver to make it look
# like they’re not! Well, it makes it easier for us to
# identify search results…

Source: Direct link to the source code
Software: webcollage
Programming language: Perl

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

Sep 7 2009

Debug warnings?

Christoph

Danke an Volker für diesen code candy:

/**
 * Displaying Debug warnings? (0 = now, 1+ = yes)
 * @var int
 */
 public $do_debug = 2;

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