atrocities - clsr.net

Programming atrocities

Enterprise Java Code Formatter

Java

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

Usage:
  java enterprise.Main [INPUT.java [OUTPUT.java]]

  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.

heron

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]

ircboat

Python 2

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

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

prettytables

Python 2

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

suck

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
foobar
123456
$ cat output
123456

Python switch statement

Python 2 or 3

Exception-driven switch control structure in Python.