I no personal preference/order
vim-elixir: Vim configuration files for Elixir
Janus: This is a distribution of plug-ins and mappings for Vim, Gvim and MacVim.
"""A small module for finding the distance between two geometries in an arbitrary direction | |
Inspired by a question/issue in the Shapely github repository (`#1051`_). | |
Notes | |
----- | |
There is another way I can think of doing this which will probably be much faster for | |
large geometries, but less accurate. It should be possible to stretch both geometries | |
by a very large amount in the direction perpendicular to the direction you want to | |
find the distance in. Of course, you would loose the 'movement' idea (i.e. it could |
-- create point table using single-precision coordinates | |
CREATE TABLE pts ( | |
point_id serial, | |
x real, | |
y real | |
); | |
-- create a view that converts these into a PostGIS geometry | |
CREATE VIEW pts_view AS | |
SELECT point_id, ST_SetSRID(ST_MakePoint(x, y), 4326) AS geom FROM pts; |
I no personal preference/order
vim-elixir: Vim configuration files for Elixir
Janus: This is a distribution of plug-ins and mappings for Vim, Gvim and MacVim.
From here, we can pretty much follow the exact same procedure.
On a terminal just do the following steps:
Install dependencies:
sudo apt install build-essential checkinstall libreadline-gplv2-dev \
docker logs nginx 2>&1 | grep "127." | |
# ref: http://stackoverflow.com/questions/34724980/finding-a-string-in-docker-logs-of-container |
# import config. | |
# You can change the default config with `make cnf="config_special.env" build` | |
cnf ?= config.env | |
include $(cnf) | |
export $(shell sed 's/=.*//' $(cnf)) | |
# import deploy config | |
# You can change the default deploy config with `make cnf="deploy_special.env" release` | |
dpl ?= deploy.env | |
include $(dpl) |
$ uname -r
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
FROM phusion/baseimage | |
RUN apt-get update && apt-get install -y \ | |
build-essential \ | |
git \ | |
bison \ | |
flex \ | |
zlib1g-dev \ | |
autoconf \ | |
libtool \ |
# Compile/install GEOS. Taken from: | |
# http://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu#GEOS_2 | |
cd /tmp | |
wget http://download.osgeo.org/geos/geos-3.4.2.tar.bz2 | |
bunzip2 geos-3.4.2.tar.bz2 | |
tar xvf geos-3.4.2.tar | |
cd geos-3.4.2 |