cd /path/to/clone
git clone https://github.com/rrag/react-stockcharts.git
npm i
cd /path/to/clone
git clone https://github.com/rrag/react-stockcharts-examples.git
cd react-stockcharts-examples
git submodule init
git submodule update
function create_gist() {
TOKEN=$1
CHART_NAME=$2
rm -f gistTemplate/new.json
sed "s/\"description\": .*$/\"description\": \"$CHART_NAME with react-stockcharts\",/" gistTemplate/body.json > gistTemplate/new.json
curl \
-H "Authorization: token $TOKEN" \
--data @gistTemplate/new.json \
https://api.github.com/gists | grep '"url": "https://api.github.com/gists/'
}
$ create_gist <github auth token> <chart name>