All Projects → arturoherrero → sparky

arturoherrero / sparky

Licence: MIT license
▁▂▃▅▂▇ in your shell. Groovy flavoured!

Programming Languages

groovy
2714 projects

Projects that are alternatives of or similar to sparky

dataui
data-ui for R
Stars: ✭ 57 (+200%)
Mutual labels:  sparklines
rspark
▁▂▆▇▁▄█▁ Sparklines for Rust apps
Stars: ✭ 50 (+163.16%)
Mutual labels:  sparklines
sparklines
Text-based sparkline command line mimicking those of Edward Tuft.
Stars: ✭ 84 (+342.11%)
Mutual labels:  sparklines
sparkline-nb
Render sparkline style charts in pandas dataframes
Stars: ✭ 87 (+357.89%)
Mutual labels:  sparklines
melatonin audio sparklines
Sparklines For JUCE AudioBlocks
Stars: ✭ 60 (+215.79%)
Mutual labels:  sparklines

sparky

▁▂▃▅▂▇ in your shell. Groovy flavoured!

Generates sparklines for a set of data. An alternative implementation of spark powered by Groovy.

sparky takes a comma-separated list of data and then prints a sparkline out of it.

Examples:

$ sparky 1 5 22 13 53
===> ▁▁▃▂▇

$ sparky 0,30,55,80,33,150
===> ▁▂▃▅▂▇

$ sparky help
===> Prints the sparky help text

install

sparky is a Groovy script. We can write Unix scripts with Groovy and execute them directly on the command line as if they were normal Unix shell scripts. You need to install the Groovy binary distribution and groovy is on your $PATH. Then to run the script from the command line, drop it somewhere and make sure it's added to your $PATH.

usage

Just run sparky and pass it a list of numbers (comma-delimited, spaces, whatever you'd like). It's designed to be used in conjunction with other scripts that can output in that format.

$ sparky 0,30,55,80,33,150
▁▂▃▄▂█

$ echo 9 13 5 17 1 | sparky
▄▆▂█▁

cooler usage

There's a lot of stuff you can do.

Number of commits to the groovy-core Git repository, by author:

$ git shortlog -s |
> awk '{print $1}' |
> sparky
▁▁▁▁▁▁▁▁▁▁▁▃▁▁▁▁▁▁▁▁▁▁▁▁▂▁▁▄▁▁▁▁▁▁▁▅▁▁▁▁▁▁▁▁▁▁▁▁█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁

Code visualization. The number of characters of sparky itself, by line, ignoring empty lines:

$ awk '{ print length($0) }' sparky |
> grep -v ^0$ |
> sparky
▂▂▁▁▃▁▃▂▃▃▃▂▁▁▂▄▁▄▅▅█▅▂▁▁▃▃▅▁▁▃▂▁▁▇▃▁
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].