Skip to content

Instantly share code, notes, and snippets.

View ajturner's full-sized avatar
🗺️
Considering WhereCamps

Andrew Turner ajturner

🗺️
Considering WhereCamps
View GitHub Profile
@ajturner
ajturner / webmap.json
Created August 26, 2015 15:39
Vision Zero
{
"item": {
"title": "New Map",
"snippet": "Vision Zero",
"extent": [
[
-149.82343749995977,
-0.797310144400669
],
[
@ajturner
ajturner / index.html
Last active August 26, 2015 15:41
Public Schools
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href=
"http://js.arcgis.com/3.14/esri/css/esri.css">
<link rel="stylesheet" type="text/css" href=
"https://rawgit.com/benheb/legend/master/legend.css">
@ajturner
ajturner / index.html
Last active August 28, 2015 20:46
Buoys
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href=
"http://js.arcgis.com/3.14/esri/css/esri.css">
<link rel="stylesheet" type="text/css" href=
"https://rawgit.com/benheb/legend/master/legend.css">
@ajturner
ajturner / README.md
Created February 12, 2014 21:57
Example of JS API

Add client side labels for vector features using the LabelLayer class. Visit the Labeling features client-side tutorial for more information.

@ajturner
ajturner / Berksfile
Created June 28, 2014 02:37
Example configurations from the blog post "Deploying ElasticSearch with OpsWorks" http://blogs.aws.amazon.com/application-management/post/Tx3MEVKS0A4G7R5/Deploying-Elasticsearch-with-OpsWorks
source "https://api.berkshelf.com"
cookbook 'apt'
cookbook 'bluepill', '>= 2.3.1'
cookbook 'build-essential', '>= 1.4.2', git: 'https://github.com/opscode-cookbooks/build-essential.git'
cookbook 'ohai', git: 'https://github.com/opscode-cookbooks/ohai'
cookbook 'python', git: 'https://github.com/poise/python'
cookbook 'elasticsearch', git: 'https://github.com/elasticsearch/cookbook-elasticsearch'
cookbook 'layer-custom', git: 'https://github.com/ajturner/opsworks-elasticsearch-cookbook', rel: "layer-custom"
@ajturner
ajturner / Address_Points.csv
Last active August 29, 2015 14:09
Washington DC Address files
We can't make this file beautiful and searchable because it's too large.
X,Y,OBJECTID_12,SITE_ADDRESS_PK,ADDRESS_ID,STATUS,SSL,TYPE_,ENTRANCETYPE,ADDRNUM,ADDRNUMSUFFIX,STNAME,STREET_TYPE,QUADRANT,CITY,STATE,FULLADDRESS,SQUARE,SUFFIX,LOT,NATIONALGRID,ASSESSMENT_NBHD,ASSESSMENT_SUBNBHD,CFSA_NAME,HOTSPOT,CLUSTER_,POLDIST,ROC,PSA,SMD,CENSUS_TRACT,VOTE_PRCNCT,WARD,ZIPCODE,ANC,NEWCOMMSELECT06,NEWCOMMCANDIDATE,CENSUS_BLOCK,CENSUS_BLOCKGROUP,FOCUS_IMPROVEMENT_AREA,SE_ANNO_CAD_DATA,LATITUDE,LONGITUDE,ACTIVE_RES_UNIT_COUNT,RES_TYPE,ACTIVE_RES_OCCUPANCY_COUNT,WARD_2002,WARD_2012,ANC_2002,ANC_2012,SMD_2002,SMD_2012
-76.94145177369758,38.893898674072375,518857,25303,25303,ACTIVE,5088 0020,ADDRESS,OFFICIAL,4216,,BROOKS,STREET,NE,WASHINGTON,DC,4216 BROOKS STREET NE,5088,,0020,18S UJ 31629 06793,Deanwood,018 A Deanwood,East of the River Collaborative,NA,Cluster 30,Police District - Sixth District,NA,Police Service Area 602,SMD 7D06,007803,Precinct 99,Ward 7,20019,ANC 7D,,,007803 4005,007803 4,NA,,38.89389122,-76.94144951,0,RESIDENTIAL,1,Ward 7,Ward 7,ANC 7D,ANC 7D,SMD 7D06,SMD 7D06
-76.9417581
@ajturner
ajturner / cedar-core.js
Last active August 29, 2015 14:18
Demo of ArcGIS GeoJSON to Cedar + Vega
/**
* Cedar
*
* Generic charting / visualization library for the ArcGIS Platform
* that leverages vega + d3 internally.
*/
(function(window){
'use strict';
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We can't make this file beautiful and searchable because it's too large.
OBJECTID *,Shape *,ID,NAME,State,County,FIPS,NumBeneficiaries11,AvAge11,pctWhite11,pctBlack11,pctHispanic11,pctOtherRace11,pctEligible11,avHCC11,pctHeartAttack11,pctAtrialFibrillation11,pctChronicKidneyDisease11,pctCOPD11,pctDepression11,pctDiabetes11,pctHeartFailure11,pctIschemicHeartDisease11,pctBreastCancer11,pctColorectalCancer11,pctLungCancer11,pctProstateCancer11,pctAsthma11,pctHypertension11,pctHighCholesterol11,pctArthritis11,pctOsteoporosis11,pctAlzheimers11,pctStroke11,Standardized_Per_Capita_Costs11,pct_IP_StandCosts11,IP_PerCap_StandCosts11,IP_PerUser_StandCosts11,pctUsingIP11,Hospice_StandCosts11,Hospice_PerCap_StandCosts11,Hospice_PerUser_StandCosts11,pct_Using_Hospice11,pct_OP_StandCosts11,OP_PerCap_StandCosts11,OP_PerUser_StandCosts11,pctUsingOP11,Hospital_Readmission_Rate11,ED_Visit_perK11,Shape_Length,Shape_Area
1,Polygon,2060,Bristol Bay Borough,AK,BRISTOL BAY BOROUGH,2060,650,69,78.46,2.46,1.69,17.38,15.38,0.76,<Null>,5.38,10,8.31,8.15,20.46,9.38,20.77,2.77,<Null>,<Null>,2,3.08,37.23,28.77
@ajturner
ajturner / c0yu27a0d
Last active August 29, 2015 14:26
Counties
{"item":{"title":"New Map","snippet":"Counties","extent":[[-145.3957182813038,25.9568928156433],[-89.98067921881854,44.5582505937907]]},"itemData":{"operationalLayers":[{"url":"https://services.gis.ca.gov/arcgis/rest/services/Economy/GOBiz_Business_Assistance/MapServer/14","visibility":true,"opacity":0.78,"mode":1,"id":"graphicsLayer0","minScale":0,"maxScale":0,"layerDefinition":{"drawingInfo":{"renderer":{"visualVariables":[{"type":"colorInfo","field":"AREA_ID","stops":[{"value":21009409,"color":[255,247,251,200],"label":null},{"value":21009551.75,"color":[236,226,240,200],"label":null},{"value":21009694.5,"color":[208,209,230,200],"label":null},{"value":21009837.25,"color":[166,189,219,200],"label":null},{"value":21009980,"color":[103,169,207,200],"label":null},{"value":21010122.75,"color":[54,144,192,200],"label":null},{"value":21010265.5,"color":[2,129,138,200],"label":null},{"value":21010408.25,"color":[1,100,80,200],"label":null}]}],"type":"simple","label":"","description":"","symbol":{"color":[43,140,1