Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

update the examples; with the tr change and stdin working, we no longer ... #43

Merged
merged 1 commit into from

2 participants

@gwern

...need the sed/tr calls (I checked and they work locally with HEAD)

@gwern gwern update the examples; with the tr change and stdin working, we no long…
…er need the sed/tr calls (I checked and they work locally with HEAD)
372b2db
@holman
Owner

Love it.

@holman holman merged commit c42cbc9 into holman:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 16, 2011
  1. @gwern

    update the examples; with the tr change and stdin working, we no long…

    gwern authored
    …er need the sed/tr calls (I checked and they work locally with HEAD)
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 8 deletions.
  1. +3 −8 README.md
View
11 README.md
@@ -26,33 +26,28 @@ There's a lot of stuff you can do.
Number of commits to the github/github Git repository, by author:
-```bash
+```sh
› git shortlog -s |
cut -f1 |
- tr "\n" ',' |
- sed 's/ //g' |
spark
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▃▁▁▁▁▁▁▁▁▂▁▁▅▁▂▁▁▁▂▁▁▁▁▁▁▁▁▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁
```
Magnitude of earthquakes over 1.0 in the last 24 hours:
-```bash
+```sh
› curl http://earthquake.usgs.gov/earthquakes/catalogs/eqs1day-M1.txt --silent |
sed '1d' |
cut -d, -f9 |
- tr "\n" ',' |
- sed 's/ //g' |
spark
▅▆▂▃▂▂▂▅▂▂▅▇▂▂▂▃▆▆▆▅▃▂▂▂▁▂▂▆▁▃▂▂▂▂▃▂▆▂▂▂▁▂▂▃▂▂▃▂▂▃▂▂▁▂▂▅▂▂▆▆▅▃▆
```
Code visualization. The number of characters of `spark` itself, by line, ignoring empty lines:
-```bash
+```sh
› awk '{ print length($0) }' spark |
grep -Ev 0 |
- tr "\n" ',' |
spark
▁▁▁▁▅▁▇▁▁▅▁▁▁▁▁▂▂▁▃▃▁▁▃▁▃▁▂▁▁▂▂▅▂▃▂▃▃▁▆▃▃▃▁▇▁▁▂▂▂▇▅▁▂▂▁▇▁▃▁▇▁▂▁▇▁▁▆▂▁▇▁▂▁▁▂▅▁▂▁▆▇▇▂▁▂▁▁▁▂▂▁▅▁▂▁▁▃▁▃▁▁▁▃▂▂▂▁▁▅▂▁▁▁▁▂▂▁▁▁▂▂
```
Something went wrong with that request. Please try again.