Skip to content

Instantly share code, notes, and snippets.

Luke McKinstry lukemckinstry

Block or report user

Report or block lukemckinstry

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lukemckinstry
lukemckinstry / jitter-demo.py
Created Jul 17, 2019
Jitter overlapping points, plot in an evenly spaced circle around the original center
View jitter-demo.py
#jitter overlapping points, plot in an evenly spaced circle around the original center
import math
def geo_jitter(points_to_jitter):
for i in range(len(points_to_jitter)):
r = .01
angle = 0 + ((360/len(points_to_jitter)) * i)
View us-state-fips
AK,2,ALASKA
AL,1,ALABAMA
AR,5,ARKANSAS
AS,60,AMERICAN SAMOA
AZ,4,ARIZONA
CA,6,CALIFORNIA
CO,8,COLORADO
CT,9,CONNECTICUT
DC,11,DISTRICT OF COLUMBIA
DE,10,DELAWARE
View redistricting-morpher
<!DOCTYPE html>
<meta charset="utf-8">
<style>
path {
stroke-width: 1px;
stroke: #444;
}
text {
You can’t perform that action at this time.