Feb 16 2011

getSort

Christoph

Thanks to Keenora for this code candy:

function getSort() {
  // class “Doku_Parser_Mode_code” returns 200
  return 194;
}

Software: DokuWiki
Programming language: PHP

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

Okt 5 2010

Strictly for testing

Christoph

# Accessor method. Boy this one sucks. This is a backdoor
# value. If this is set then any user matching this ID will
# be successfully authenticated. Why? Strictly for testing.
# NEVER, EVER SET THIS VALUE UNLESS YOU KNOW WHAT THE F*CK
# YOU ARE DOING.

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

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

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 (5 Bewertungen, Durchschnitt: 4,00 von 5)
Loading...Loading...