Talk:Sparkline in unicode: Difference between revisions

Content added Content deleted
(→‎Most of these are buggy: Python addressed.)
m (→‎Most of these are buggy: sparktest can be an alias)
Line 26: Line 26:


Sample usage (in bash, and assuming program accepts space-separated data on standard input):
Sample usage (in bash, and assuming program accepts space-separated data on standard input):
<pre>

alias sparktest=$'perl -CS -Mutf8 -nle \'@x=grep $i^=1, map length, /(([▁-█])\\2*)/g and print"@x"\''
<code>echo {1..8000} | sparkline | sparktest.pl</code>
echo {1..8000} | sparkline | sparktest

Expected output from the sample is <code>1000 1000 1000 1000 1000 1000 1000 1000</code>.
# expected output is 1000 1000 1000 1000 1000 1000 1000 1000
</pre>


;Not Buggy
;Not Buggy


* [[Sparkline_in_unicode#Go|Go]]. Tested up to <code>echo {1..12345} | go run sl.go | sparktest.pl</code>
* [[Sparkline_in_unicode#Go|Go]]. Tested up to <code>echo {1..12345} | go run sl.go | sparktest</code>


;Buggy
;Buggy