Skip to content

Instantly share code, notes, and snippets.

View ramda-cli-tutorial.md

Tutorial to ramda-cli, a jq-like JSON processor for command-line

In this tutorial we'll use ramda-cli with [GitHub's Repos API][gh-repos-api] to get a list of @jeresig's most starred repos.

[ramda-cli][ramda-cli] is a command-line tool for processing JSON using functional pipelines. As the name suggests, its utility comes from [Ramda][ramda] and [the wide array of functions][ramda-docs] it provides for operating on lists and collections of objects. It also employs

@ghalusa
ghalusa / gist:5485982
Last active Feb 25, 2020
Install node.js on a raspberry pi
View gist:5485982
wget http://nodejs.org/dist/v0.10.5/node-v0.10.5-linux-arm-pi.tar.gz
cd /usr/local
sudo tar xzvf ~/node-v0.10.5-linux-arm-pi.tar.gz --strip=1
vi ~/.bash_aliases
export PATH=$PATH:/usr/local/bin/node
bash
node -v
View 20thingsilearned.js
/*
Nice to study. Original here http://www.20thingsilearned.com/js/twentythings.min.js
*/
var TT = TT || {};
TT.PAGE_WIDTH = 800;
TT.PAGE_HEIGHT = 500;
TT.PAGE_MIN_WIDTH = 1000;
TT.PAGE_MIN_HEIGHT = 680;
TT.PAGE_MARGIN_LEFT = 32;