This map shows the change in median property value per square foot for parcels in Shelby County, TN.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Equations</title> | |
<script type="text/javascript" | |
src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> | |
</script> | |
</head> | |
<body> | |
<a name="1.1">1.1 Balanced accessibility model</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Draw visual correlation plots, http://www.indicatrix.org/2014/02/22/visual-correlation-matrices/ | |
# Copyright (C) 2014 Matthew Wigginton 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Test CartoDB</title> | |
</head> | |
<body> | |
<iframe src="https://mattwigway.cartodb.com/viz/6f540a5e-1998-11e4-add7-0edbca4b5057/embed_map" width="800" height="600" /> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Demo of using OpenTripPlanner and opentripplanner-jython | |
# Public domain | |
from opentripplanner import RoutingRequest, Graph | |
from opentripplanner.batch import BatchProcessor, PointSet | |
# Set the parameters for our search | |
r = RoutingRequest() | |
r.dateTime = 1412974800 # Friday, Oct. 10th, 2014, 4:00 pm CDT (doesn't matter for a walking search) | |
r.setModes('WALK') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Iterator; | |
import org.mapdb.DB; | |
import org.mapdb.DBMaker; | |
import org.mapdb.Fun.Tuple2; | |
public class MapDBEmptyPumpSource { | |
public static void main(String... args) { | |
Iterator<Tuple2<String, String>> data = new Iterator () { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Create a set of Tuple2<key in original map, value> - secondary keys, backwards. | |
*/ | |
public static <K, V, V2> void inverseSecondaryKeys (MapWithModificationListener<K, V> map, | |
final NavigableSet<Fun.Tuple2<K, V2>> set, final Function2<V2[], K, V> fun) { | |
if (set.isEmpty()) { | |
for (Map.Entry<K, V> e : map.entrySet()) { | |
for (V2 val : fun.run(e.getKey(), e.getValue())) { | |
set.add(new Tuple2<K, V2>(e.getKey(), val)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>MetricsGraphics Confidence Bound Test</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/metrics-graphics/2.2.1/metricsgraphics.css" /> | |
</head> | |
<body> | |
<div id="chart"></div> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Remove all the -99999... values in the NL neighborhoods file and replace them with NULL | |
from sys import argv | |
import fiona | |
with fiona.open(argv[1]) as infile: | |
meta = infile.meta | |
meta['schema']['geometry'] = 'MultiPolygon' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.mapdb.*; | |
import java.util.Collections; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
import java.util.stream.IntStream; | |
/** | |
* Created by matthewc on 9/15/15. |