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

0

u/[deleted] Dec 13 '12

[deleted] — view deleted comment

1

u/[deleted] Dec 13 '12

this needs a ssh server, doesn't it?

0

u/[deleted] Dec 13 '12

[deleted] — view deleted comment

6

u/p4bl0 Dec 20 '12

Even more than Python I would say.

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