atrocities - clsr

Programming atrocities

Enterprise Java Code Formatter


Formats code in a very nice looking style, removing ugly indentation and putting syntactic trash such as braces and semicolons aside.

  java enterprise.Main [ []]

  If the input file is provided, read from it, otherwise read from stdin.
  If the output file is provided, write to it, otherwise write to stdout.


Python 2 or 3

i am a heron. i haev a long lambda and i comprehend elements out of the lists w/ my iterators. if you dont repost this program on 10 other pages i will fly into your computer tonight and make a mess of your lists and tuples

>>> l = list(range(10))
>>> l
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> import heron
>>> l
[5, 8, 2, 1, 7, 3, 9, 0, 4, 6]


Python 2

Connects to, joins #example and replies to every boat; prototype for lambdairc.

<user> that is a nice boat
<IRCBoat>    |\
<IRCBoat>    | \
<IRCBoat>    |__\
<IRCBoat> ___|_____
<IRCBoat> \_______/


Python 2

Generates very pleasant-looking and definitely not ugly HTML documents using tables.


C, POSIX system

Reverse of cat(1). Applies strong suction to its output stream causing data to backflow into the input stream.

$ echo foobar >input
$ echo 123456 >output
$ ./suck <input >>output
$ cat input
$ cat output

Python switch statement

Python 2 or 3

Exception-driven switch control structure in Python.