start new:
tmux
start new with session name:
tmux new -s myname
Simple example of using Chicken Scheme to generate HTML and JS, using the html-tags and spock eggs. This example is based on the MDN canvas tutorial.
You will need:
chicken-install html-tags
chicken-install spock
Run make
to generate the HTML and JS files, then open "index.html" in a web browser.
""" | |
Convert LocationHistory.json from Google takeout of location history (latitude) | |
to a usable KML file for viewing in Google Earth. | |
Usage: | |
python json_history_to_kml.py LocationHistory.json | |
Given the following table:
CREATE TABLE "venue"
(
"id" INTEGER NOT NULL PRIMARY KEY,
"name" VARCHAR(255) NOT NULL
);
INSERT INTO "venue" ("name") VALUES ('V1');
$ cd ~ | |
$ sudo curl -sS https://getcomposer.org/installer | sudo php | |
$ sudo mv composer.phar /usr/local/bin/composer | |
$ sudo ln -s /usr/local/bin/composer /usr/bin/composer | |
then you can run | |
$ sudo composer install |
server { | |
listen 80 default_server; | |
server_name example.com www.example.com; | |
access_log /srv/www/example.com/logs/access.log; | |
error_log /srv/www/example.com/logs/error.log; | |
root /srv/www/example.com/public; | |
index index.php index.html; |
A running example of the code from:
This gist creates a working example from blog post, and a alternate example using simple worker pool.
TLDR: if you want simple and controlled concurrency use a worker pool.
/* | |
* This file is part of the XXX distribution (https://github.com/xxxx or http://xxx.github.io). | |
* Copyright (c) 2015 Liviu Ionescu. | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, version 3. | |
* | |
* This program is distributed in the hope that it will be useful, but | |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
# For example, run "npm install" | |
docker run -v "$PWD":/usr/src/app -w /usr/src/app node:4 npm install | |
# This command creates a container (downloading one first if you don't have it locally), runs the command in a current directory and quits the container | |
# Great Success! |
ðə 23038047 | |
ə 18735224 | |
ˈtu 12418461 | |
ˈænd 11260533 | |
ˈʌv 10968008 | |
ɪn 10738928 | |
li 5689929 | |
ˈðæt 5416929 | |
ˈaɪ 4683241 | |
ˈfɔr 4678692 |