Skip to content

Instantly share code, notes, and snippets.

View hallahan's full-sized avatar

Nick Hallahan hallahan

View GitHub Profile
@hallahan
hallahan / metro_regions_v7.geojson
Created August 2, 2022 16:44
metro_regions_v7.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hallahan
hallahan / LayerConfig.js
Created July 29, 2014 18:51
An example LayerConfig file for GeoAngular
/**
* Created by Nicholas Hallahan <nhallahan@spatialdev.com>
* on 3/18/14.
*/
/**
* All of the layer names need to be lowercase.
*/
module.exports = angular.module('GeoAngular').service('LayerConfig', function () {
@hallahan
hallahan / ca-counties.geojson
Created August 31, 2017 16:26
California Counties
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hallahan
hallahan / Solution.java
Created August 1, 2017 20:58
Simple QuadTree
import java.util.ArrayList;
import java.util.List;
/*
* N
* W E
* S
*/
import java.util.ArrayList;
import java.util.List;
/*
* N
* W E
* S
*/
class Node {
@hallahan
hallahan / onadata-installation.md
Last active March 17, 2017 13:03
onaio/onadata Installation Instructions

onadata Install Instructions

Ubuntu 14.04

1. Basic System Libraries and Packages

$ sudo apt-get update; sudo apt-get upgrade -y
$ sudo apt-get install -y git build-essential python-all-dev \
  python-pip python-lxml python-magic python-imaging default-jre \
@hallahan
hallahan / Dhaka-buildings6.xml
Created August 20, 2015 19:19
OSM XForm Example
<?xml version="1.0" encoding="utf-8"?>
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>Dhaka Buildings 6</h:title>
<model>
<instance>
<Dhaka-buildings6 id="Dhaka-buildings6" version="201505191555">
<formhub>
<uuid/>
</formhub>
@hallahan
hallahan / installation.md
Last active February 14, 2017 13:00
SpatialServer Installation Instructions

Preliminary Packages

Make sure you have done sudo apt-get update and sudo apt-get upgrade on your fresh install. This guide is geared toward Ubuntu 14.04 LTS (Trusty Tahr). Most of the guide will work for earlier versions of Ubuntu with some slight changes, but 14.04 is advised.

Enable the root user

sudo cp /home/ubuntu/.ssh/authorized_keys /root/.ssh/
ERROR xmlParser.cpp:18: OSM XML parse error description: Start-end tags mismatch
ERROR xmlParser.cpp:19: OSM XML parse error offset: 151551
ERROR xmlParser.cpp:20: OSM XML parse error XML: <?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="CGImap 0.4.3 (7414 thorn-03.openstreetmap.org)" copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright" license="http://opendatacommons.org/licenses/odbl/1-0/">
<bounds minlat="38.6490530" minlon="-121.3659670" maxlat="38.6511980" maxlon="-121.3632200"/>
<node id="90326792" visible="true" version="2" changeset="3095405" timestamp="2009-11-12T04:05:33Z" user="woodpeck_fixbot" uid="147510" lat="38.6503380" lon="-121.3655220"/>
<node id="90326795" visible="true" version="2" changeset="3384284" timestamp="2009-12-16T03:34:37Z" user="woodpeck_fixbot" uid="147510" lat="38.6503230" lon="-121.3640690"/>
<node id="90326797" visible="true" version="3" changeset="11814043" timestamp="2012-06-06T09:38:48Z" user="Acizza" uid=
@hallahan
hallahan / angular-change-bracket-for-jekyll.js
Created April 13, 2015 17:39
Changing the brackets used in Angular so we don't have a collision with Jekyll Liquid Templates
var app = angular.module('app', [], function($interpolateProvider) {
$interpolateProvider.startSymbol('//');
$interpolateProvider.endSymbol('//');
});
function ctrl($scope) {
$scope.example = 'Using // instead of {{';
}