mkdir pelias
git clone git@github.com:pelias/schema.git
npm install
(if you used homebrew to install elasticsearch it should be /usr/local/Cellar/elasticsearch
)
#include <stdio.h> | |
typedef struct point { | |
int x, y; | |
} point; | |
typedef struct point3d { | |
struct point; | |
int z; | |
} point3d; |
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 |
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
{- | |
Zachary Weaver <zaw6@pitt.edu> | |
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 | |
note: always check for the latest versions, the version numbers shown here will fall out of date quickly.
Step 1. Grab yourself a binary release from here: https://golang.org/dl/
You'll want to use one from the Stable versions
, you probably want one which is in bold, for Ubuntu it's xxx-linux-amd64.tar.gz
wget https://storage.googleapis.com/golang/go1.4.linux-amd64.tar.gz;
import ctypes | |
from ctypes import pythonapi as api | |
import sys | |
from types import (BuiltinFunctionType, GetSetDescriptorType, FrameType, | |
MemberDescriptorType, MethodType) | |
import guppy | |
from guppy.heapy import Path | |
hp = guppy.hpy() |
# Instructions for 4.14 and cuda 9.1 | |
# If upgrading from 4.13 and cuda 9.0 | |
$ sudo apt-get purge --auto-remove libcud* | |
$ sudo apt-get purge --auto-remove cuda* | |
$ sudo apt-get purge --auto-remove nvidia* | |
# also remove the container directory direcotory at /usr/local/cuda-9.0/ | |
# Important libs required with 4.14.x with Cuda 9.X | |
$ sudo apt install libelf1 libelf-dev |