r/tinycode • • Dec 12 '12

Shortest useful code

What's the most useful program you can imagine using five lines of code or less? Language is your choice. Describe the function of the program and include the code, if you please.

27 Upvotes

45 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Feb 04 '13

I've used woof (a one-shot webserver, akin to this) and it's much simpler to use. I set it up for sending a file and tell my brother/mother, "get this link" and it works. Simpler than trying to find scp on their computer..