Skip to content

Instantly share code, notes, and snippets.

View hallahan's full-sized avatar

Nick Hallahan hallahan

View GitHub Profile
@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 / mapbox-android-sdk-markers.md
Last active August 29, 2015 14:26
Code Review of Markers in Mapbox Android SDK

This is an overview of the current architecture of adding markers to a map. In particular, we are examining:

  1. How images / icons are placed on the canvas.
  2. How collision detection for touching icons work.
  3. How an overlay for markers is structured.
  4. How custom icons as an on device resource can be used (not getting the image from Mapbox servers).
  5. Should we add OSM centric markers to the OSMOverlay or should we revamp ItemizedOverlay to draw markers from a QuadTree rather than a dumb list.

Note that this is using a recent revision of the mapbox android sdk.

@hallahan
hallahan / pip.log
Created May 27, 2015 20:38
PIP Errors
Downloading/unpacking pytz==2014.7 (from -r /home/fhuser/onadata/requirements/base.pip (line 1))
Getting page https://pypi.python.org/simple/pytz/
URLs to search for versions for pytz==2014.7 (from -r /home/fhuser/onadata/requirements/base.pip (line 1)):
* https://pypi.python.org/simple/pytz/2014.7
* https://pypi.python.org/simple/pytz/
Getting page https://pypi.python.org/simple/pytz/2014.7
Could not fetch URL https://pypi.python.org/simple/pytz/2014.7: 404 Client Error: Not Found
Will skip URL https://pypi.python.org/simple/pytz/2014.7 when looking for download links for pytz==2014.7 (from -r /home/fhuser/onadata/requirements/base.pip (line 1))
Analyzing links from page https://pypi.python.org/simple/pytz/
Skipping link https://pypi.python.org/packages/2.3/p/pytz/pytz-2007d-py2.3.egg#md5=b7e294c583d87df3095b72954b1ffc89 (from https://pypi.python.org/simple/pytz/); unknown archive format: .egg
@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 / 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 {{';
}
@hallahan
hallahan / featuresAt-mapbox-gl-js.md
Last active May 8, 2016 14:08
I'm going through the code execution of `featuresAt` in Mapbox GL JS. This is to take notes and understand how all of this works.

How FeaturesAt Works in MapboxGL JS

I'm going through the code execution of featuresAt in Mapbox GL JS. This is to take notes and understand how all of this works.

Initiating the feature search based on the example on Mapbox GL API Docs...

map.on('click', function(e) {
@hallahan
hallahan / adam-and-eve-block.geojson
Created April 5, 2015 23:44
Adam & Eve's Block
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hallahan
hallahan / EffectiveNavigationGradle
Last active August 29, 2015 14:16
EffectiveNavigation Demo Working App Gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.example.android.effectivenavigation"
minSdkVersion 15
targetSdkVersion 21
@hallahan
hallahan / gist:d0712ca6271d458cf064
Created March 3, 2015 18:28
EffectiveNavigation Demo Working App Gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.example.android.effectivenavigation"
minSdkVersion 15
targetSdkVersion 21
@hallahan
hallahan / OSM Upload Media Type for OpenDataKit.md
Last active August 29, 2015 14:14
Modified XForms With OSM Upload Media Type