####Assumptions
- QGIS installed (if not: http://qgis.com/)
We will use the Electoral District and Polling Division shapefiles found on the Elections Ontario site:
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<!-- uncomment for local dev --> | |
<!-- | |
<link rel="stylesheet/less" type="text/css" href="main.less"> | |
--> |
syntax on | |
set ruler " Show the line and column numbers of the cursor. | |
set formatoptions+=o " Continue comment marker in new lines. | |
set textwidth=0 " Hard-wrap long lines as you type them. | |
set modeline " Enable modeline. | |
set esckeys " Cursor keys in insert mode. | |
set linespace=0 " Set line-spacing to minimum. | |
set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J) | |
" More natural splits | |
set splitbelow " Horizontal split below current. |
#run this in any directory add -v for verbose | |
#get Pillow (fork of PIL) from pip before running --> pip install Pillow | |
import os | |
import sys | |
from PIL import Image | |
def compressMe(file, verbose=False): | |
filepath = os.path.join(os.getcwd(), file) | |
oldsize = os.stat(filepath).st_size |
sudo sh -c " | |
wget -nv -O - https://packagecloud.io/gpg.key | apt-key add - | |
echo 'deb https://packagecloud.io/dokku/dokku/ubuntu/ trusty main' | tee /etc/apt/sources.list.d/dokku.list | |
apt-get update -qq > /dev/null | |
apt-get install sigil -t trusty # We're using the Ubuntu 14.04 package ;) | |
apt-mark hold sigil | |
wget https://raw.githubusercontent.com/dokku/dokku/master/bootstrap.sh | |
bash bootstrap.sh | |
" |
####Assumptions
We will use the Electoral District and Polling Division shapefiles found on the Elections Ontario site:
In this tutorial, I briefly explain how to set up a webserver using nginx, openssl and uwsgi on Arch Linux. The tutorial is applicable to other Linux distributions and goes through the required configuration step by step. It is, I believe, beginner friendly.
I updated, changed and tested the tutorial on Dec. 8th, 2013. All commands and
configuration files relate to the software versions that are currently available
in the Arch package repositories. Especially nginx
and uwsgi
change often and
var OFF = 0, WARN = 1, ERROR = 2; | |
module.exports = exports = { | |
"env": { | |
"es6": true | |
}, | |
"ecmaFeatures": { | |
// env=es6 doesn't include modules, which we are using | |
"modules": true |
Fast answer:
sed ':a;N;$!ba;s/\n/ /g' file
Following this guide will set up a local Elasticsearch with Kibana and Marvel using Homebrew and Homebrew Cask
If you already have Java
installed on your system, skip steps Install Cask and Install Java
If you already have Java
and Homebrew
installed on your system, skip steps Prerequisites, start at Install Elasticsearch and Kibana after running $ brew update
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
<?php | |
/* | |
Plugin Name: HAZMAT Shipping Options | |
Plugin URI: | |
Description: HAZMAT Shipping Options plugin | |
Version: 1.0.0 | |
Author: sc | |
Author URI: | |
*/ |