Found from https://gist.github.com/889297
yum install -y git gcc gcc-c++ zlib-devel curl curl-devel openssl
wget http://nodejs.org/dist/node-v0.4.9.tar.gz
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
yum install -y git gcc gcc-c++ zlib-devel curl curl-devel openssl
wget http://nodejs.org/dist/node-v0.4.9.tar.gz
;; Keybonds | |
(global-set-key [(hyper a)] 'mark-whole-buffer) | |
(global-set-key [(hyper v)] 'yank) | |
(global-set-key [(hyper c)] 'kill-ring-save) | |
(global-set-key [(hyper s)] 'save-buffer) | |
(global-set-key [(hyper l)] 'goto-line) | |
(global-set-key [(hyper w)] | |
(lambda () (interactive) (delete-window))) | |
(global-set-key [(hyper z)] 'undo) |
Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.
Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.
I've done the same process every couple years since 2013 (Mountain Lion, Mavericks, High Sierra, Catalina) and I updated the Gist each time I've done it.
I kinda regret for not using something like Boxen (or anything similar) to automate the process, but TBH I only actually needed to these steps once every couple years...
Example of a D3js time series graph with X,Y crosshairs and a threshold line. Just copy the drawLineGraph function and call it with your data. The data shoud be an array of two element arrays. Something like:
var data = [
[new Date(2014, 01, 10), 404],
[new Date(2014, 01, 11), 123],
[new Date(2014, 01, 12), 666]
];
var warnLine = { lineValue: 200, label: 'my important threshold' };
$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
#!/usr/bin/python3 | |
import sys | |
import pyvips | |
im = pyvips.Image.new_from_file(sys.argv[1], access="sequential") | |
text = pyvips.Image.text(sys.argv[3], width=500, dpi=300, align="centre") | |
text = (text * 0.3).cast("uchar") | |
text = text.rotate(45) |
/* watermark an image with libvips C. It handles monon, RGB and CMYK images. | |
* | |
* compile with | |
gcc -g -Wall watermark.c `pkg-config vips --cflags --libs` | |
*/ | |
#include <vips/vips.h> |
if (BuildConfig.DEBUG) { | |
httpclient.interceptors().add(new LoggingInterceptor()); | |
} | |
public class LoggingInterceptor implements Interceptor { | |
@Override | |
public Response intercept(Chain chain) throws IOException { | |
Request request = chain.request(); | |
long t1 = System.nanoTime(); |