Skip to content

Instantly share code, notes, and snippets.

View mattwigway's full-sized avatar

Matthew Wigginton Bhagat-Conway mattwigway

  • Department of City and Regional Planning, University of North Carolina at Chapel Hill
  • Durham, NC, USA
View GitHub Profile
Table "dashboard.gtfsfeed"
Column | Type | Modifiers
------------------+-----------------------------+-----------
id | bigint | not null
agencyname | character varying(255) |
agencyurl | character varying(255) |
areadescription | character varying(255) |
country | character varying(255) |
dataexchangeid | character varying(255) |
dataexchangeurl | character varying(255) |
@mattwigway
mattwigway / gist:3492444
Created August 27, 2012 21:32
beans for nyc
<bean class="org.opentripplanner.graph_builder.model.GtfsBundle">
<property name="url" value="http://gtfs.s3.amazonaws.com/pvta_20120820_0735.zip" />
<property name="defaultAgencyId" value="pvta" />
</bean>
<bean class="org.opentripplanner.graph_builder.model.GtfsBundle">
<property name="url" value="http://gtfs.s3.amazonaws.com/port-authority-of-new-york-new-jersey_20110512_0300.zip" />
<property name="defaultAgencyId" value="port-authority-of-new-york-new-jersey" />
</bean>
<bean class="org.opentripplanner.graph_builder.model.GtfsBundle">
<property name="url" value="http://gtfs.s3.amazonaws.com/lanta_20120701_0310.zip" />
@mattwigway
mattwigway / gist:3694190
Created September 10, 2012 21:53
NYC WV graph builder
<!-- total: 79 feeds -->
<bean class="org.opentripplanner.graph_builder.model.GtfsBundle">
<property name="url" value="http://gtfs.s3.amazonaws.com/pvta_20120820_0735.zip" />
<property name="defaultAgencyId" value="pvta" />
</bean>
<bean class="org.opentripplanner.graph_builder.model.GtfsBundle">
<property name="url" value="http://gtfs.s3.amazonaws.com/port-authority-of-new-york-new-jersey_20110512_0300.zip" />
<property name="defaultAgencyId" value="port-authority-of-new-york-new-jersey" />
</bean>
<bean class="org.opentripplanner.graph_builder.model.GtfsBundle">
@mattwigway
mattwigway / pen.py
Created November 26, 2012 00:42
Control the pen with the keyboard in LibreOffice Impress
# Hide and show the pen tool and change its color using the keyboard in
# LibreOffice Impress.
# Copyright 2012 Matt Conway
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
<!DOCTYPE html>
<html>
<head>
<title>Test of Google Hangouts on Air</title>
</head>
<body>
<h3>The video should appear below</h3>
</body>
</html>
@mattwigway
mattwigway / bibliography.tex
Created January 21, 2013 04:45
MLA annotated bibliography
\documentclass[11pt,letterpaper]{article}
\usepackage[american]{babel}
\usepackage{hyperref}
\usepackage{csquotes}
\usepackage{ifpdf}
\usepackage{mla}
\usepackage[style=mla]{biblatex}
\usepackage{setspace}
\singlespace
% enable annotations
<!DOCTYPE html>
<html>
<head>
<title>Migration among California counties</title>
</head>
<body>
<div class="map">
</div>
</body>
2013-02-17 20:55:49,626 INFO [WebMapService.java:89] : reprojecting envelope from WGS84 to PROJCS["NAD83 / California zone 3",
GEOGCS["NAD83",
DATUM["North American Datum 1983",
SPHEROID["GRS 1980", 6378137.0, 298.257222101, AUTHORITY["EPSG","7019"]],
TOWGS84[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
AUTHORITY["EPSG","6269"]],
PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
UNIT["degree", 0.017453292519943295],
AXIS["Geodetic longitude", EAST],
AXIS["Geodetic latitude", NORTH],
@mattwigway
mattwigway / Batch traceback
Created April 17, 2013 21:42
batch traceback
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'batchProcessor': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.opentripplanner.routing.core.RoutingRequest] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(mappedName=, shareable=true, description=, name=, type=class java.lang.Object, authenticationType=CONTAINER)}
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:300)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
@mattwigway
mattwigway / README.md
Last active December 16, 2015 11:29
Half-life visualization (distance decay for a gravity model)

Distance decay

This shows the distance decay for a given half-life in the gravity model, i.e. e^bx fixed by 0,1 and h,0.5 where h is the half-life.