Skip to content

Instantly share code, notes, and snippets.

@jimmyrocks
jimmyrocks / lehigh_county_mapping_election_2020.ipynb
Last active November 12, 2020 01:50
Lehigh County, PA Election Mapping 2020
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jimmyrocks
jimmyrocks / Northampton County Election.ipynb
Last active November 8, 2020 17:12
Northampton County, PA - Election Nov 3, 2020
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jimmyrocks
jimmyrocks / telecasters.html
Created March 11, 2020 16:43
telecaster color selector
This file has been truncated, but you can view the full file.
<!DOCTYPE html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">
<script>
function changeImgBg(color){
document.getElementById("guitar").style.background = color;
}
function readTextBox(id){
changeImgBg(document.getElementById(id).value);
}
</script>
@jimmyrocks
jimmyrocks / ny_cdps.kml
Created February 11, 2020 03:19
New York CDPs from the National Map
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="utf-8" ?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document id="root_doc">
<Schema name="OGRGeoJSON" id="OGRGeoJSON">
<SimpleField name="OBJECTID" type="int"></SimpleField>
<SimpleField name="PERMANENT_IDENTIFIER" type="string"></SimpleField>
<SimpleField name="SOURCE_FEATUREID" type="string"></SimpleField>
<SimpleField name="SOURCE_DATASETID" type="string"></SimpleField>
<SimpleField name="SOURCE_DATADESC" type="string"></SimpleField>
<SimpleField name="SOURCE_ORIGINATOR" type="string"></SimpleField>
@jimmyrocks
jimmyrocks / ny_cdps.geojson
Created February 11, 2020 03:18
New York CDPs from the National Map
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jimmyrocks
jimmyrocks / usgs_nhd_obs_sepanj.geojson
Created August 16, 2019 03:39
USGS Hydro Obstructions Southeast PA / NJ
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jimmyrocks
jimmyrocks / bosstones_letsfaceittour.csv
Last active July 27, 2017 14:00
The Mighty Mighty Bosstones - Let's Face It 20th anniversary tour Possible Setlist for Philadelphia 7/28/2017
Likely Position Song Plays Encore Plays Chances Likelyhood Encore Likelyhood Average Position Average Encore Position
1 Simmer Down 3 75% 60% 0 1.333333333
2 Nah, Nah, Nah, Nah, Nah 4 100% 80% 0.2 2.333333333 1
3 A Pretty Sad Excuse 2 50% 40% 0 3 3
4 Hope I Never Lose My Wallet 2 50% 40% 0.2 3 2
5 Hell of a Hat 2 50% 40% 0 3.5
6 Graffiti Worth Reading 4 100% 80% 0 4.25
7 Someday I Suppose 4 100% 80% 0 5.25
8 Everybody's Better 4 100% 80% 0 6.25
9 You Left Right? 4 100% 80% 0 7.25

UPDATE: The Vector Tiles are not being served at this time by Openstreetmap. Try later or a different provider (example) Services seem to have resumed

A simple test of extending the L.TileLayer to fetch geoJSON tiles from openstreetmap and render them with d3. This is probably not the most efficient way to do this, as we accept empty image tags (from the standard TileLayer) and use them as containers for the data/requests.