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...

Mrz 23 2010

Between the tags

Christoph

// Check if it’s okay for this element to be empty. Then we
// will trick the JDOM generator into not generating an empty
// element, by putting an empty string between the tags.
// Yes, it’s a kludge but what’cha gonna do about it. :-)

Source: Direct link to the source code
Software: JSPWiki
Programming language: Java

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

Mrz 2 2010

Play around with fuzzy concepts

Christoph

/**
 * I generally like to play around with fuzzy concepts and
 * see where they take me. I could, of course, sit down,
 * smoke a lot (later edit: I stopped smoking altogether –
 * feel great) and just think abstract concepts, but often
 * it is more interesting to just start banging some light
 * prototypes, after a few ideas and/or beers. English is
 * my thrid language – code is first and romanian second :)
 */

Source: Direct link to the source code
Software: razpub
Programming language: Java

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

Aug 14 2009

I am a f*cking genius

Christoph

 /**
  * Checks if something is on the line. If it appears to be,
  * then it subdivides the curve into halves and tries again
  * recursively until the flatness of the curve is less than
  * the fudge.
  * Frankly, I am a f*cking genius. I am one of two people in
  * this department that could have possibly thought of this.
  */

Source: Direct link to the source code
Software: JFLAP
Programming language: Java

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

Aug 10 2009

Yelling outside my window?

Christoph

/************************************************************
*TODO Who the f*ck is yelling outside my window?
*If you click and make a new sound about 1000 times, or so,
*you get an out of memory error and it f*cks to SH*T God damn
*those b*tches outside are loud motherf*ckers, sounds like
*people fighting F*ck, anyway, it’s about 600K per new sound.
*stopping the sound adds sh*t too. F*ck. I tried setting the
*thread to null after it was killed hoping garbage collection
*would fix sh*t, but no, f*cked it up worse of course. All I
*changed was oldx=0 (so you can go from a 440 tone to a
*439 tone in 1 click) and pulled that same line out of the if
*and else. What the f*ck is up with sh*t I see like y-55-15.
*f*cking y-70. wtf. There seems to be sh*t with converting
*sh*t to long before division, then casting the result as an
*int. it’s done automatically, you just need one long cast
*for the f*ck, I’ll fix it and note it up there
************************************************************/

Source: Direct link to the source code
Software: JMusicMaker
Programming language: Java

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