Live data from Hacker News

Spark

github.com

11–20 of 100 posts

Re: Spark

#11

Hmm, I get the following: [scotty@Scotty-Allens-MacBook-Air ~/bin]$ spark 1,2,3,4,5 ▇\c ▇\c ▇\c ▇\c ▇\c I suspect this has something to do with my terminal settings, but I'm not sure quite what... Nifty idea, regardless.

https://github.com/Omnipresent/spark/commit/43e4de4bfc69093a...

Re: Spark

#13
What would be really interesting is finding out which decent programming fonts can show block elements. I mean, beyond the DejaVu Sans Mono fiasco.

Re: Spark

#14

Hmm, I get the following: [scotty@Scotty-Allens-MacBook-Air ~/bin]$ spark 1,2,3,4,5 ▇\c ▇\c ▇\c ▇\c ▇\c I suspect this has something to do with my terminal settings, but I'm not sure quite what... Nifty idea, regardless.

https://github.com/holman/spark/pull/4

(in addition to line 120, there are some "\n"s in the help)

Re: Spark

#15
This reminds me of another useful utility from the childhood:

alias updick='/usr/bin/uptime | perl -ne "/(\d+) d/;print 8,q(=)x\$1,\"D\n\""'

Re: Spark

#16
post #11

Hmm, I get the following: [scotty@Scotty-Allens-MacBook-Air ~/bin]$ spark 1,2,3,4,5 ▇\c ▇\c ▇\c ▇\c ▇\c I suspect this has something to do with my terminal settings, but I'm not sure quite what... Nifty idea, regardless.

https://github.com/Omnipresent/spark/commit/43e4de4bfc69093a...

The "\c" escape sequence makes the -n unnecessary (as I discovered while reading "help echo").

Re: Spark

#17
post #3

The script is not a proper POSIX bourne shell script, as it uses arrays. For starters, it won't work in dash (Debian and Ubuntu /bin/sh implementation). So the shebang line should be changed to #!/bin/bash (not sure if it would work in Zsh either).

Fork and fix please!

... and send a pull-request, so everyone can share the happy.

Re: Spark

#18
This is sort of useless. Giving visual meaning to a bunch of numbers means nothing. It's just a bunch of numbers.

Re: Spark

#19
post #2

Ah, as inspired by Edward ttyfte.

That ^ is why HN needs a LOL button :)

http://img819.imageshack.us/img819/264/hnlol.png

(edit) Ah, the downvoting frenzy! 4601 karma points to go. Bring it on, fellow HNers. Don't forget to quote the guidelines and to lecture me too as no bashing is complete without showing some smug superiority with a hint of righteousness.

Post reply on HN