Skip to content

Instantly share code, notes, and snippets.

View mattmakesmaps's full-sized avatar

Matthew Kenny mattmakesmaps

View GitHub Profile
@mattmakesmaps
mattmakesmaps / README.md
Last active December 18, 2015 04:29
Coffee flavor profiles by brew method.

This d3 visualization represents Scott Rao's great graph depicting the relationship between different coffee brew methods and flavor profiles.

Brew methods to the left have the Most Body, Least Flavor Clarity, while brew methods to the right have the Least Body, Most Flavor Clarity. Larger circles represent a greater range in filter porosity.

Specifically, this is based on, via, and ripped off from.

@mattmakesmaps
mattmakesmaps / gist:5623239
Last active December 17, 2015 14:19
dicking around with sudobangbang. looking at different implementations of sean gillies proposed `__geo_interface__` https://gist.github.com/sgillies/2217756
>>> from shapely.geometry import mapping, shape
>>> from shapely.geometry import Point
# Create a class that has a __geo_interface__
>>> class MattPoint(object):
... __geo_interface__ = {'type': 'Point', 'coordinates': (0.0, 0.0)}
...
>>> myPoint = MattPoint()
>>> myPoint.__geo_interface__
{'type': 'Point', 'coordinates': (0.0, 0.0)}
@mattmakesmaps
mattmakesmaps / garbageclass.py
Created April 19, 2013 17:09
Garbage in, Garbage out?
class tester(object):
def __init__(self, val):
self.val = val
print 'created in %s' % self.val
def __del__(self):
print 'deleted'
cache = {}
def f1():
@mattmakesmaps
mattmakesmaps / GIS_Internship_130409.mkd
Last active December 16, 2015 00:29
RIDOLFI GIS Internship

GIS Internship

Overview

RIDOLFI Inc. is a Seattle-based environmental engineering and consulting firm and is offering a paid GIS Internship for the summer of 2013. Responsibilities include a variety of tasks such as: data development, map creation, spatial analysis, and programmatic workflow automation. In addition to GIS support, current projects are focused in the following service lines:

  • Environmental services
  • Natural resource management
  • Sustainability
  • Environmental data quality and chemistry
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=7,IE=9">
<!--The viewport meta tag is used to improve the presentation and behavior of the samples
on iOS devices-->
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<title>Page through records</title>
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 1 column, instead of 13 in line 6.
Survey Selected: brown_island_sja_nelson_1997
Logfile Location: csv_logtest.csv
Source Geodatabase: E:\Temp\WDNR_CitrixWorking\Archive\MVA_Catalog_ks_2.13.mdb
Feature Class: E:\Temp\WDNR_CitrixWorking\Archive\MVA_Catalog_ks_2.13.mdb\SurveyPoint
Log Generated: 20130307_0925
TABLE: SurveyPoint
SurveyID,SurveyNM,FullCit,StartDT,EndDT,SurveyZone,SurveyFREQ,DataScale,has_Map,StudyID,is_ExtDel,DataConID,Shape
brown_island_sja_nelson_1997,Interannual variance in a subtidal eelgrass community,"Nelson, T. A. 1997. Interannual variance in a subtidal eelgrass community. Aquatic Botany 56: 245-252.","WARNING: ""StartDT"" Missing Value.",1992-07-30 00:00:00,sub,"WARNING: ""SurveyFREQ"" Missing Value.",site,No,brown_island_sja_nelson_et_al_1997,No,nelson_t_spu,<geoprocessing describe geometry object object at 0x08120BE0>
Survey Selected: brown_island_sja_nelson_1997
Logfile Location: csv_logtest.csv
Source Geodatabase: E:\Temp\WDNR_CitrixWorking\Archive\MVA_Catalog_ks_2.13.mdb
Feature Class: E:\Temp\WDNR_CitrixWorking\Archive\MVA_Catalog_ks_2.13.mdb\SurveyPoint
Log Generated: 20130307_0925
TABLE: SurveyPoint
SurveyID,SurveyNM,FullCit,StartDT,EndDT,SurveyZone,SurveyFREQ,DataScale,has_Map,StudyID,is_ExtDel,DataConID,Shape
brown_island_sja_nelson_1997,Interannual variance in a subtidal eelgrass community,"Nelson, T. A. 1997. Interannual variance in a subtidal eelgrass community. Aquatic Botany 56: 245-252.","WARNING: ""StartDT"" Missing Value.",1992-07-30 00:00:00,sub,"WARNING: ""SurveyFREQ"" Missing Value.",site,No,brown_island_sja_nelson_et_al_1997,No,nelson_t_spu,<geoprocessing describe geometry object object at 0x08120BE0>