{"id":13399270,"url":"https://github.com/holman/spark","last_synced_at":"2025-05-14T06:11:10.887Z","repository":{"id":1852508,"uuid":"2777268","full_name":"holman/spark","owner":"holman","description":" ▁▂▃▅▂▇ in your shell.","archived":false,"fork":false,"pushed_at":"2022-05-07T10:27:15.000Z","size":59,"stargazers_count":6025,"open_issues_count":15,"forks_count":290,"subscribers_count":106,"default_branch":"master","last_synced_at":"2025-04-11T00:48:01.259Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://zachholman.com/spark/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"aredridel/node-ircd","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/holman.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-15T02:51:39.000Z","updated_at":"2025-04-09T00:20:15.000Z","dependencies_parsed_at":"2022-07-14T08:17:12.603Z","dependency_job_id":null,"html_url":"https://github.com/holman/spark","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holman%2Fspark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holman%2Fspark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holman%2Fspark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holman%2Fspark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holman","download_url":"https://codeload.github.com/holman/spark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254079900,"owners_count":22011283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T19:00:35.852Z","updated_at":"2025-05-14T06:11:10.808Z","avatar_url":"https://github.com/holman.png","language":"Shell","readme":"# spark\n### sparklines for your shell\n\nSee? Here's a graph of your productivity gains after using spark: ▁▂▃▅▇\n\n## install\n\nspark is a [shell script][bin], so drop it somewhere and make sure it's added\nto your `$PATH`. It's helpful if you have a super-neat collection of dotfiles,\n[like mine][dotfiles]. Or you can use the following one-liner:\n\n```sh\nsudo sh -c \"curl https://raw.githubusercontent.com/holman/spark/master/spark -o /usr/local/bin/spark \u0026\u0026 chmod +x /usr/local/bin/spark\"\n```\n\nIf you're on OS X, spark is also on [Homebrew][brew]:\n\n    brew install spark\n\nDepending on the fonts you have in your system and you use in the\nterminal, you might end up with irregular blocks. This is due to some\nfonts providing only part of the blocks, while the others are taken from\na different, fallback font.\n\n## usage\n\nJust run `spark` and pass it a list of numbers (comma-delimited, spaces,\nwhatever you'd like). It's designed to be used in conjunction with other\nscripts that can output in that format.\n\n    spark 0 30 55 80 33 150\n    ▁▂▃▅▂▇\n\nInvoke help with `spark -h`.\n\n## cooler usage\n\nThere's a lot of stuff you can do.\n\nNumber of commits to the github/github Git repository, by author:\n\n```sh\n› git shortlog -s |\n      cut -f1 |\n      spark\n  ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▃▁▁▁▁▁▁▁▁▂▁▁▅▁▂▁▁▁▂▁▁▁▁▁▁▁▁▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁\n```\n\nMagnitude of earthquakes worldwide 2.5 and above in the last 24 hours:\n\n```sh\n› curl -s https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_day.csv |\n  sed '1d' |\n  cut -d, -f5 |\n  spark\n▃█▅▅█▅▃▃▅█▃▃▁▅▅▃▃▅▁▁▃▃▃▃▃▅▃█▅▁▃▅▃█▃▁\n```\n\nCode visualization. The number of characters of `spark` itself, by line, ignoring empty lines:\n\n```sh\n› awk '{ print length($0) }' spark |\n  grep -Ev 0 |\n  spark\n  ▁▁▁▁▅▁▇▁▁▅▁▁▁▁▁▂▂▁▃▃▁▁▃▁▃▁▂▁▁▂▂▅▂▃▂▃▃▁▆▃▃▃▁▇▁▁▂▂▂▇▅▁▂▂▁▇▁▃▁▇▁▂▁▇▁▁▆▂▁▇▁▂▁▁▂▅▁▂▁▆▇▇▂▁▂▁▁▁▂▂▁▅▁▂▁▁▃▁▃▁▁▁▃▂▂▂▁▁▅▂▁▁▁▁▂▂▁▁▁▂▂\n```\n\nSince it's just a shell script, you could pop it in your prompt, too:\n\n```\nruby-1.8.7-p334 in spark/ on master with history: ▂▅▇▂\n›\n```\n\n## wicked cool usage\n\nSounds like a wiki is a great place to collect all of your\n[wicked cool usage][wiki] for spark.\n\n## contributing\n\nContributions welcome! Like seriously, I think contributions are real nifty.\n\nMake your changes and be sure the tests all pass:\n\n    ./test\n\nThat also means you should probably be adding your own tests as well as changing\nthe code. Wouldn't want to lose all your good work down the line, after all!\n\nOnce everything looks good, open a pull request.\n\n## ▇▁ ⟦⟧ ▇▁\n\nThis is a [@holman][holman] joint.\n\n[dotfiles]: https://github.com/holman/dotfiles\n[brew]:     https://github.com/mxcl/homebrew\n[bin]:      https://github.com/holman/spark/blob/master/spark\n[wiki]:     https://github.com/holman/spark/wiki/Wicked-Cool-Usage\n[holman]:   https://twitter.com/holman\n","funding_links":[],"categories":["Shell","Command-Line Productivity","etc","Other tools"],"sub_categories":["Misc"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholman%2Fspark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholman%2Fspark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholman%2Fspark/lists"}