Skip to content

Instantly share code, notes, and snippets.

View edjafarov's full-sized avatar

Eldar Dzhafarov edjafarov

View GitHub Profile
@edjafarov
edjafarov / AWS Swarm cluster.md
Created March 27, 2017 15:23 — forked from ghoranyi/AWS Swarm cluster.md
Create a Docker 1.12 Swarm cluster on AWS

This gist will drive you through creating a Docker 1.12 Swarm cluster (with Swarm mode) on AWS infrastructure.

Prerequisites

You need a few things already prepared in order to get started. You need at least Docker 1.12 set up. I was using the stable version of Docker for mac for preparing this guide.

$ docker --version
Docker version 1.12.0, build 8eab29e

You also need Docker machine installed.

@edjafarov
edjafarov / AWS Swarm cluster.md
Created March 27, 2017 15:23 — forked from ghoranyi/AWS Swarm cluster.md
Create a Docker 1.12 Swarm cluster on AWS

This gist will drive you through creating a Docker 1.12 Swarm cluster (with Swarm mode) on AWS infrastructure.

Prerequisites

You need a few things already prepared in order to get started. You need at least Docker 1.12 set up. I was using the stable version of Docker for mac for preparing this guide.

$ docker --version
Docker version 1.12.0, build 8eab29e

You also need Docker machine installed.

@edjafarov
edjafarov / index.js
Last active August 29, 2015 14:07
requirebin sketch
var splitPolygon = require("split-polygon")
var glmatrix = require("gl-matrix")
var mat4 = glmatrix.mat4
var trimesh = grid_mesh({width:100,height:100});
var result = "";
result+='<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512"version="1.1">';
result+=renderComplex(trimesh.faces, trimesh.positions, {
view: mat4.lookAt(mat4.create(), [5, 10, 20], [5,0,0], [2,0,2]),