This map shows the change in median property value per square foot for parcels in Shelby County, TN.
This file contains 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 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 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 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 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 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 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. |
This file contains 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
from twisted.web import xmlrpc, server | |
from twisted.internet import reactor, defer | |
class rpctest(xmlrpc.XMLRPC): | |
def xmlrpc_test(self): | |
return "Hello, world!" | |
if __name__ = '__main__': | |
r = rpctest() |
This file contains 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
SELECT loc_a.oid, loc_a.vehicle, loc_a.route, loc_a.direction, transform(ST_MakeLine(loc_a.the_geom, loc_b.the_geom), 26945) AS the_geom, | |
(ST_Length(transform(ST_MakeLine(loc_a.the_geom, loc_b.the_geom), 26945))/ | |
(EXTRACT(EPOCH FROM loc_b.time) - EXTRACT(EPOCH FROM loc_a.time))) * | |
2.23693629 AS mph, loc_a.time AS starttime, loc_b.time AS endtime | |
INTO acrt.lametrolines | |
FROM | |
(SELECT *, ROW_NUMBER() OVER (ORDER BY vehicle, time) AS num FROM acrt.nextbus) AS loc_a | |
JOIN | |
(SELECT *, ROW_NUMBER() OVER (ORDER BY vehicle, time) AS num FROM acrt.nextbus) AS loc_b | |
ON (loc_a.vehicle = loc_b.vehicle AND |
OlderNewer