Skip to content

Instantly share code, notes, and snippets.

View mattmakesmaps's full-sized avatar

Matthew Kenny mattmakesmaps

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
GET /svc/archive/v1/1985/2.json?api-key=772925f7d490445fa8a6b1be09ec262a HTTP/1.1
User-Agent: Request-Promise
Host: api.nytimes.com
Connection: close
GET /svc/archive/v1/1985/2.json?api-key=772925f7d490445fa8a6b1be09ec262a HTTP/1.1
User-Agent: Request-Promise
Host: api.nytimes.com
Connection: close

Open Source GIS Tools at Tableau

Hello

  • Name: Matt Kenny
  • GIS Data Engineer At [Tableau Software][1]

Tableau Logo

Open Source at Tableau

@mattmakesmaps
mattmakesmaps / TD_141105_Notes.markdown
Last active August 29, 2015 14:08
Tech Diversified Links 11/05/201
@mattmakesmaps
mattmakesmaps / big_pile_of_heap.py
Last active August 29, 2015 14:01
Use `heapq` To Emit Sorted Dictionaries Based On a Single User-Provided Key.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'mkenny'
__date__ = '5/12/14'
"""
OUTPUT
------
Individual Sorted List
[('Andrew', {'age': 33, 'hometown': 'Menlo Park', 'name': 'Andrew'}),
('Doug', {'age': 12, 'hometown': 'London', 'name': 'Doug'}),
@mattmakesmaps
mattmakesmaps / 50m_lakes_subset.geojson
Created April 26, 2014 04:27
Created from Natural Earth dataset `50_m_lakes_utf8.shp`. SHP loaded into QGIS 2.1.0, Exported as GeoJSON by right-clicking layer in TOC, and selecting `Save As...`
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mattmakesmaps
mattmakesmaps / test_lakes.geojson
Created April 26, 2014 04:24
Created from Natural Earth dataset `50_m_lakes_utf8.shp`. SHP loaded into QGIS 2.1.0, Exported as GeoJSON by right-clicking layer in TOC, and selecting `Save As...`
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mattmakesmaps
mattmakesmaps / iter_examples.py
Last active January 4, 2016 18:49
Context Managers, __iter__ implemented as a generator, and multiple decorators.
__author__ = 'matt'
__date__ = '1/27/14'
"""
Create an example Reader class that implements a context manager and __iter__ method.
Use this Reader class in a with statement in conjunction with a Writer class.
Processing classes are examples of class-based decorator patterns. These operate
on the Writer class' public interface, the write() method.