mkdir pelias
git clone [email protected]:pelias/schema.git
npm install
(if you used homebrew to install elasticsearch it should be /usr/local/Cellar/elasticsearch
)
{- | |
Zachary Weaver <[email protected]> | |
JSONParser.hs | |
Version 0.1.1 | |
A simple example of parsing JSON with Parsec in haskell. Note that | |
since the primary point of this excersize is demonstration, | |
Text.Parsec.Token was avoided to expose more of the grammar. Also, | |
complicated optimizations and shorcuts were avoided (mostly). |
#!/usr/bin/env python | |
import argparse | |
import copy | |
import math | |
import pickle | |
import random | |
from itertools import combinations | |
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
ogr2ogr [output] [input] -skipfailures -t_srs EPSG:900913 -clipsrc -180 -85.0511 180 85.0511 |
#!/bin/bash | |
# Dependencies | |
for dep in 'git' 'wget' 'curl'; do | |
if [ ! `which $dep` ]; then | |
echo "$dep required, please install it and try again"; | |
exit 1; | |
fi | |
done |
mkdir pelias
git clone [email protected]:pelias/schema.git
npm install
(if you used homebrew to install elasticsearch it should be /usr/local/Cellar/elasticsearch
)
The import_quattroshapes_pgsql.sh
shell-script will import all Quattroshapes shapefiles
into a PostgreSQL database. The process has some gotchas and is generally painful to do manually. Before running the
script, ensure that you are logged in as a user with permissions to access/write to PostgreSQL. Then:
bash import_quattroshapes_pgsql.sh
Note that the script will create a Postgres table quattroshapes
, and download all Quattroshapes shapefiles into
The default Vim installed on most Linux distros lacks a number of vital features, like xterm_clipboard
(allows
copy-and-pasting to the system clipboard) and python
(on which certain plugins rely). The compile_full_vim.sh
shell
script removes the currently installed Vim and compiles a full-featured version; it's based entirely off
Valloric's YouCompleteMe
walkthrough, which it bundles into a simple
script for convenience. Vim will be compiled with the following feature flags:
--with-features=huge
--enable-multibyte
#! /bin/bash | |
set -e | |
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG | |
trap 'echo FAILED COMMAND: $previous_command' EXIT | |
#------------------------------------------------------------------------------------------- | |
# This script will download packages for, configure, build and install a GCC cross-compiler. | |
# Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running. | |
# If you get an error and need to resume the script from some point in the middle, | |
# just delete/comment the preceding lines before running it again. |
#include <stdio.h> | |
typedef struct point { | |
int x, y; | |
} point; | |
typedef struct point3d { | |
struct point; | |
int z; | |
} point3d; |