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 (2 Bewertungen, Durchschnitt: 4,50 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 ...