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
matthewc@ip-10-252-67-208:~/otp/OpenTripPlanner$ mvn install -Dmaven.test.skip=true -pl openstreetmap,opentr
ipplanner-api-common,opentripplanner-api-webapp,opentripplanner-graph-builder,opentripplanner-webapp,opentripplanner-routing
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] openstreetmap
[INFO] opentripplanner-routing
[INFO] opentripplanner-graph-builder
[INFO] OpenTripPlanner API Common
[INFO] opentripplanner-api-webapp
[INFO] opentripplanner-webapp
matthewc@ip-10-252-67-208:~/otp/OpenTripPlanner$ mvn install -Dmaven.test.skip=true
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] OpenTripPlanner
[INFO] openstreetmap
[INFO] opentripplanner-admin-webapp
[INFO] opentripplanner-utils
[INFO] opentripplanner-routing
[INFO] opentripplanner-graph-builder
[INFO] opentripplanner-api-extended
@mattwigway
mattwigway / graph-config.xml
Created May 4, 2012 23:46
exception building graph
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
<bean id="gtfsBuilder" class="org.opentripplanner.graph_builder.impl.GtfsGraphBuilderImpl">
<property name="gtfsBundles">
@mattwigway
mattwigway / MemoryTests.java
Created May 19, 2012 06:30
Test of Java memory consumption
/**
* Test memory consumption and garbage collection over time.
* Copyright (C) 2012 Matt Conway. Licensed under the Apache 2 license.
*/
import java.util.ArrayList;
public class MemoryTests {
public static void main (String[] args)
throws InterruptedException {
@mattwigway
mattwigway / index.html
Created June 7, 2012 00:38
VTA Transit Times Analysis
<html>
<head>
<title>VTA 35S and 40S transfers</title>
<script src="http://d3js.org/d3.v2.js"></script>
</head>
<body>
<h2>VTA Transfer Time Analysis</h2>
<div id="barActual"></div>
<script src="transitTimes.js"></script>
package models;
import javax.persistence.*;
import java.util.*;
import play.db.jpa.*;
import play.data.validation.*;
@Entity
public class NtdAgency extends Model {
@6b0h075f4
Internal Server Error (500) for request GET /admin
Oops: ExceptionInInitializerError
An unexpected error occured caused by exception ExceptionInInitializerError: null
play.exceptions.UnexpectedException: Unexpected Error
at play.Invoker$Invocation.onException(Invoker.java:244)
at play.Invoker$Invocation.run(Invoker.java:286)
at Invocation.HTTP Request(Play!)
from sys import argv
import csv
writer = csv.writer(open('out.csv', 'w'))
print 'Weeks start on Monday.'
with open('out.csv', 'w') as out:
writer = csv.writer(out)
@mattwigway
mattwigway / planWithStreetAlerts.xml
Created August 17, 2012 16:10
OTP plan with alerts on streets
<response><plan><date>2012-08-17T08:12:00-07:00</date><from><name>Northeast Webster Street</name><lon>-122.5696270558223</lon><lat>45.56027651423451</lat><geometry>{"type": "Point", "coordinates": [-122.5696270558223,45.56027651423451]}</geometry></from><to><name>Southwest Patton Road</name><lon>-122.73233588172435</lon><lat>45.497946765808614</lat><geometry>{"type": "Point", "coordinates": [-122.73233588172435,45.497946765808614]}</geometry></to><itineraries><itinerary><duration>3454000</duration><startTime>2012-08-17T08:12:00-07:00</startTime><endTime>2012-08-17T09:09:34-07:00</endTime><walkTime>3454</walkTime><transitTime>0</transitTime><waitingTime>0</waitingTime><walkDistance>16371.8775061131</walkDistance><elevationLost>0.0</elevationLost><elevationGained>0.0</elevationGained><transfers>-1</transfers><legs><leg mode="BICYCLE" route="" agencyTimeZoneOffset="0"><startTime>2012-08-17T08:12:00-07:00</startTime><endTime>2012-08-17T09:09:34-07:00</endTime><distance>16371.8775061131</distance><from><name>North
@mattwigway
mattwigway / bikeelevators.osm
Created August 20, 2012 20:40
Bikeable elevators (openplans/OpenTripPlanner #803)
<?xml version='1.0' encoding='UTF-8'?>
<osm version='0.6' generator='JOSM'>
<!--
This OSM file lays over downtown Portland, Oregon, and defines three paths:
1: Along SW 10th from SW Main to SW Morrison: two bike paths joined by a
bikeable elevator.
2: Along SW 11th: two paths, one bikeable and one not, joined by a bikeable
elevator.
3: Along SW 12th: two paths, neither bikeable, joined by a bikeable elevator.