Skip to content

Instantly share code, notes, and snippets.

View almccon's full-sized avatar
🔣

Alan McConchie almccon

🔣
View GitHub Profile
@almccon
almccon / .block
Last active October 3, 2023 04:41 — forked from mbostock/.block
Washington Population Density by block group
license: gpl-3.0
height: 1100
border: no
@almccon
almccon / .block
Last active July 20, 2017 06:05 — forked from alandunning/.block
Bellingham.design Radar Chart
height: 650
@almccon
almccon / README.md
Last active December 18, 2016 06:12 — forked from bdon/gist:1288d93c45965942ed4373574a5abcc6
stv_to_block.py

Simulation of a Block Voting election using STV ballots.

This code simulates a Block Voting election (which is what the OpenStreetMap US chapter uses to elect its board), using real-world Single Transferable Vote ballots (which is the system that the international OpenStreetMap Foundation uses).

STV uses ranked ballots, where voters rank as many candidates as they wish, in order of preference. Block Voting is not a ranked ballot, and voters choose up to n candidates, where n is the number of seats to be elected.

We can simulate a Block Voting election using STV ballots if we take the top n ranked candidates from each ballot and ignore their ordered ranking.

STV ballot files for the 2014 and 2015 OSMF elections can be found here and here.

@almccon
almccon / overpass.geojson
Created November 8, 2016 22:14 — forked from anonymous/overpass.geojson
data exported by overpass turbo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@almccon
almccon / saudi_arabia_hospitals.geojson
Last active October 20, 2016 18:50 — forked from anonymous/overpass.geojson
OpenStreetMap hospitals in Saudi Arabia: data exported by overpass turbo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@almccon
almccon / osm-data-issues-in-asia-and-africa.md
Last active September 16, 2016 17:30 — forked from clhenrick/osm-data-issues-in-asia-and-africa.md
OSM data issues in need of fixing in Asia and Africa

OSM Data Issues in Asia and Africa

High priority, easy fixes:

  1. Admin1 Capital Cities in the Phillipines incorrectly have capital=yes when they should have capital=4 or admin_level=4
  2. Many cities have missing population data, this will prevent cities with larger populations from rendering at low zooms. Main country of concern is China, which may also have erroneous population data added by a OSM contributor to promote certain cities over others.
  3. South Korea: many features incorrectly have place=town resulting in an overwhelming amount of erroneous town labels. See this issue in OSM Carto for more info.

High priority, but requires more work:

@almccon
almccon / README.md
Last active July 5, 2016 00:45 — forked from calvinmetcalf/README.md
Reprojected Raster Tiles w/out d3.carto.map
@almccon
almccon / README.md
Last active June 15, 2016 20:15 — forked from rochoa/README.md
turbo-cartocss examples

Color ramps: *-fill

Basic usage

marker-fill: ramp([column_name], colorbrewer(Greens));
                  |                    |
                  v                    |
      column to calculate ramp         |
                                       v
@almccon
almccon / overpass.geojson
Last active May 25, 2016 00:28 — forked from anonymous/overpass.geojson
data exported by overpass turbo: all admin_level:2 features from northeast Africa to southwest Asia
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@almccon
almccon / overpass.geojson
Created April 13, 2016 18:35 — forked from anonymous/overpass.geojson
All 'building:part' in San Francisco. data exported by overpass turbo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.