go build -o readenv cmd/readenv/main.go
mv readenv /usr/local/bin/readenv
eval (readenv .env)
CREATE TABLE IF NOT EXISTS `latin` ( | |
`name` VARCHAR(50) | |
) | |
ENGINE=InnoDB DEFAULT CHARSET=latin1; | |
CREATE TABLE IF NOT EXISTS `mb4` ( | |
`name` VARCHAR(50) | |
) | |
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; |
Tue Jul 10 13:57:43 UTC 2018 |
I hereby claim:
To claim this, I am signing this object:
FROM phusion/baseimage:0.9.13 | |
ADD run /etc/service/foo/run | |
ADD log_run /etc/service/foo/log/run | |
CMD ["/sbin/my_init"] |
#!/usr/bin/env bash | |
set -eo pipefail | |
NODE_VERSION=0.8.12 | |
NODE_BASENAME=node-v${NODE_VERSION}-linux-x64 | |
NODE_ARCHIVE="http://nodejs.org/dist/v${NODE_VERSION}/${NODE_BASENAME}.tar.gz" | |
curl -s -L -o tmp-nodejs.tar.gz $NODE_ARCHIVE | |
tar -zxvf tmp-nodejs.tar.gz > /dev/null | |
rm tmp-nodejs.tar.gz |
I'm continuting mbostocks's series of gists about pie charts.
Building on the previous version, this variation of a donut chart demonstrates a nice transition when the pie chart is drawn for the first time.
I'm continuting mbostocks's series of gists about pie charts.
This variation of a donut chart demonstrates how to add/remove slices or move between datasets of differing lengths with transitions. Clicking the radio buttons changes the displayed metric. Note how the new slice enters anticlockwise from the 'end' of the pie chart.
Previous: Animated transition. Next: Nice initial transition.
#!/usr/bin/env python | |
from gevent import monkey | |
monkey.patch_all() | |
import sys | |
import optparse | |
from datetime import datetime | |
import gevent | |
from gevent.pool import Pool |