Practically, airmail is just thrown in a sack under a plane by bored airport workers, it often ends up in the wrong country, where a bored airport worker will place it in another sack, and so on until it gets to its destination. There's little elegance to it. Nothing fancy enough to parse a 200 page PDF over.
Ask HN: What's the most creative 'useless' program you've ever written?
61–70 of 422 posts
Re: Ask HN: What's the most creative 'useless' program you've ever written?
#62Re: Ask HN: What's the most creative 'useless' program you've ever written?
#63Re: Ask HN: What's the most creative 'useless' program you've ever written?
#64Re: Ask HN: What's the most creative 'useless' program you've ever written?
#65Re: Ask HN: What's the most creative 'useless' program you've ever written?
#66i.e. "bird" gives you
ruby -e "srand(267343);puts 4.times.map{rand(97..123).chr}.join"
which will return "bird" if you run it from your command line
I do a brute force attempt at it, but (maybe one day) will peel back Mersenne Twister and get a more optimized implementation.
Re: Ask HN: What's the most creative 'useless' program you've ever written?
#67I basically use it to plot different scenarios in my future.
Re: Ask HN: What's the most creative 'useless' program you've ever written?
#68Re: Ask HN: What's the most creative 'useless' program you've ever written?
#69You can see the C source code for a simple command interpreter that permits three-letter subroutine identifiers here.
https://github.com/jimlawless/triad
I have some other versions that had placeholders for built-in operations that would have made the language Turing-complete but I soon lost interest.
I also implemented a little BASIC interpreter that was only complete enough to write a BASIC program to display the lyrics for the 12 Days of Christmas song:
Re: Ask HN: What's the most creative 'useless' program you've ever written?
#70On the slightly more useful side...
gotermimg to play gifs in the terminal: https://github.com/moshen/gotermimg