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 June 8, 2019 00:23
USA 2016 presidential election
license: mit
@almccon
almccon / .block
Last active July 2, 2017 20:27
Robinson
license: gpl-3.0
@almccon
almccon / .block
Last active July 2, 2017 20:26
galaxy
license: mit
@almccon
almccon / .block
Last active January 14, 2017 01:58
Leaflet starter (UTM grid basemap)
license: mit
@almccon
almccon / .block
Last active January 11, 2017 06:12
Mapbox GL vs Leaflet markers
license: mit
@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 / .block
Created December 2, 2016 03:30
Chained Transitions II
license: gpl-3.0
@almccon
almccon / README.md
Last active December 2, 2016 21:52
D3 lightning talk

D3 lightning talk slides

Alan McConchie

bellingham.codes

2016-12-01


about me:

@almccon
almccon / .block
Last active May 15, 2019 18:08
2016 Electoral College
license: mit
@almccon
almccon / .block
Created November 12, 2016 00:33
D3 + Leaflet (fork mbostock)
license: mit