This blog post series has moved here.
You might also be interested in the 2016 version.
This blog post series has moved here.
You might also be interested in the 2016 version.
const React = window.React = require('react') | |
const {map, append, partial, curry, compose} = require('ramda') | |
const shortid = require('shortid') | |
// STATE -------------------------------------------------------- | |
// returns a state object, and automatically creates sub-cursors | |
// state.items = cursor to items | |
// state.items[0] = cursor to items[0]. |
What works:
# Requires siver-searcher to be installed | |
FILES=$(ag "<search term here, can be regex>" -l --js) | |
for i in $FILES; do | |
echo -e "<stuff to prepend here>\n$(cat $i)" > $i | |
done |