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

Aug 20 2012

Jiggery-pokery

Christoph

# all this f*cking around with unicode and the document
# header is to get lxml to STFU. Yeah, this is probably
# The Wrong Way(TM), once again, but that’s how I roll,
# y0: ghetto-tastic shitball code. If you want
# to understand why each of these changes was made, remove
# this jiggery pokery and you’ll see what I mean. ;-P

Source: Direct link to the source code
Software: Fluidity
Programming language: Python

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

Aug 20 2012

2-dimensional array

Christoph

Thanks to liskel for this code candy

// I have absolutely no idea, why it becomes a
// 2-dimensional array … so working around instead
// of solving
$css = $css[0];

Programming language: PHP

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

Aug 7 2012

Longest. Comments. Evar.

Christoph

# FIXME: and this is just plain /wrong/. Naughty naughty
# this is why I have to learn some kind of signal creation
# techinque. OOOOH OH OH OH , ORRRRRR, I can just pass
# in a single callback…? pull in one particular method
# from the caller for the called object to refer back to
# as a conduit back into that caller. Is that crack?
# ….orrrrrrrrrr….. the data manager is the one that
# knows this shit and can take care of the “your shit
# changed, so update it motherf*cker” kinds of tasks.
#
# Longest. Comments. Evar.

Source: Direct link to the source code
Software: Fluidity
Programming language: Python

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