Skip to content

Instantly share code, notes, and snippets.

View apburnes's full-sized avatar
🌵
In the desert

Andrew Burnes apburnes

🌵
In the desert
View GitHub Profile
@apburnes
apburnes / Topology_GIS.md
Created January 8, 2012 22:55
Topology in Geography

#Topology in Geography

Topology is a broad branch of mathematics used to describe the fundamental structure of a shape or object within a space. Objects can be manipulated by stretching or compressing the shape’s components, but the tearing of or addition to its structure will break topology. According to the rules of topology, a doughnut and a coffee mug are equal.

###Topology example: ![Alt text] (http://i.imgur.com/sBP9p.gif)

Geography utilizes topology to project geometric objects from a 3D sphere onto a 2D coordinate system while allowing the shape to stay intact with some distortion.

###3D Sphere projections to 2D plane:

@apburnes
apburnes / peeblesianus
Last active December 18, 2015 14:29
Suitability of the Pediocactus Peeblesianus in Northern Arizona
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": "Pedio_Cactus_Suitability"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on Thu Nov 3 11:56:48 2011
The main program. The program takes 3 files as input:
#. The red band (any GDAL-compatible format will do)
#. the near-infrarred band (again as above)
#. An output file name
#!/usr/bin/env python
"""
SYNOPSIS
dn_2_rad.py [-h,--help] [-v,--verbose] [-i,--input] [-o,--output]
DESCRIPTION
This program is used to extract the gain parameters and to convert
@apburnes
apburnes / index.html
Last active December 27, 2015 02:48
Clock Spins
<!DOCTYPE html>
<meta charset="utf-8">
<style>
#clock {
position: relative;
background: #222;
width: 960px;
height: 800px;
}
@apburnes
apburnes / README.md
Last active December 27, 2015 15:39
Socrata Clock Rotations

Using D3.js to calculate and visualize hour and minute hand rotations between two times. Using some artistic license with the Socrata logo to visualize the analog rotations.

@apburnes
apburnes / index.js
Created November 20, 2013 21:34
JS Partials
var __slice = Array.prototype.slice;
function callFirst(fn, larg) {
return function() {
var args = __slice.call(arguments, 0);
return fn.apply(this, [larg].concat(args));
}
}
@apburnes
apburnes / index.js
Created November 20, 2013 22:15
Ellipses
var __slice = Array.prototype.slice;
function variadic (fn) {
var fnLength = fn.length;
if (fnLength < 1) {
return fn;
}
else if (fnLength === 1) {
return function () {
@apburnes
apburnes / index.js
Created January 10, 2014 05:04
Gist from mistakes.io
function parseGeo(coolio) {
this.package = {"version": "1-fresh"}
}
parseGeo('gunc').package
@apburnes
apburnes / index.js
Created January 28, 2014 06:14
Gist from mistakes.io
var L = {};
L.fn = function() { return 'coolio' };
L.Util = {
extend: function(desc) {
var args = [].slice.call(arguments, 0);
args.map(function(item, ix, arr) {
desc[item] = args[ix];
});