Skip to content

Instantly share code, notes, and snippets.

Cristen Jones thecristen

Block or report user

Report or block thecristen

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
View nh200zcta.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 2010_Bike_Ped_NYC.csv
We can't make this file beautiful and searchable because it's too large.
"CASE_NUM","CASE_YR","REF_MRKR","ACCD_DTE","ROAD_SYS","NUM_OF_FATALITIES","NUM_OF_INJURIES","REPORTABLE","POLICE_DEPT","INTERSECT_NUM","MUNI","PRECINCT","NUM_OF_VEH","ACCD_TYP","LOCN","TRAF_CNTL","LIGHT_COND","WEATHER","ROAD_CHAR","ROAD_SURF_COND","COLLISION_TYP","PED_LOC","PED_ACTN","EXT_OF_INJURIES","REGN_CNTY_CDE","LOW_NODE","HIGH_NODE","ACCD_TME","RPT_AGCY","DMV_ACCD_CLSF","ERR_CDE","COMM_VEH_ACC_IND","HIGHWAY_IND","INTERSECT_IND","UTM_NORTHING","UTM_EASTING","GEO_SEGMENT_ID","GEO_NODE_ID","GEO_NODE_DISTANCE","GEO_NODE_DIRECTION","GEO_LCODE"
"33274808",2010,"","2010-01-05 00:00:00","12",1,0,"Y","03030","","01","007",1,"03","Y","01","1","1","1","1","09","2","14","K","N3","","","2010-01-05 16:02:00","NYC PD","1","011","3","N","Y",4508040.91,585391.79,429082113,169972,0,"3",2
"33308985",2010,"","2010-01-02 00:00:00","09",0,1,"Y","03030","","01","030",1,"02","Y","02","1","2","1","2","09","2","13","C","N3","","","2010-01-02 07:00:00","NYC PD","2","011","1","N","N",0,0,0,0,0,"",12
@thecristen
thecristen / .block
Last active Oct 26, 2017
Accessible country selector map widget
View .block
license: cc-by-sa-3.0
height: 800
border: no
@thecristen
thecristen / index.html
Last active Jun 3, 2018 — forked from awoodruff/MarkerCluster.css
Leaflet heatmap
View index.html
<html>
<head>
<title>A Leaflet map!</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js"></script>
<script src="leaflet.heat.js"></script>
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<style>
#map{ height: 100% }
</style>
@thecristen
thecristen / README.md
Created Mar 13, 2016 — forked from awoodruff/README.md
Dot density map
View README.md

This is an attempt at a slightly D3-ish way of drawing a dot density map on a canvas element. In short, each polygon is drawn (invisibly) with a unique color, then random points are thrown at polygon bounding boxes and the pixel color is used for a point-in-polygon test. This example draws one dot for every 2 people in central Boston census blocks, for a total of approximately 132,000 dots.

@thecristen
thecristen / a11y-checklist-standards.md
Last active Mar 12, 2016
forked off IBM Web accessibility checklist - Version 5.2
View a11y-checklist-standards.md

IBM Web accessibility checklist - Version 5.2

http://www-03.ibm.com/able/guidelines/web/accessweb.html

  • 1.1 Text alternatives: Provide text alternatives for all non-text content so that it can be changed into other forms people need, such as large print, Braille, speech, symbols or simpler language.
  • 1.1a Text alternatives. All non-text content that is presented to the user has a text alternative that serves the equivalent purpose.
  • 1.1b Non-text content. A descriptive label is provided for time-based media, including live audio-only and live video-only content. Non-text content that is used to confirm that content is being accessed by a person rather than a computer is available in different forms to accommodate multiple disabilities.
  • 1.1c Image maps. Client-side image maps are used and alternative text is provided for image map hot spots. Equivalent text links are provided if a server-side image map is used.
  • [ ]
@thecristen
thecristen / chosen-bootstrap.scss
Last active Mar 24, 2018 — forked from koenpunt/chosen-bootstrap.css
Bootstrap 3.0 theme for Chosen
View chosen-bootstrap.scss
// Customized styles for select boxes using the Chosen jQuery plugin
// forked from Bootstrap-themed version at https://gist.github.com/koenpunt/6424137
// This one uses your variables from bootstrap-sass
// by thecristen, at https://gist.github.com/thecristen/e71ed5391fbdc6d63dc3 (no license go nuts)
// TODO: This only covers single select
select.form-control + .chosen-container.chosen-container-single .chosen-single {
@include box-shadow(inset 0 1px 1px rgba(0, 0, 0, .075));
@include transition(border-color ease-in-out .15s, box-shadow ease-in-out .15s);
display: block;
@thecristen
thecristen / getPrettyJSON.rb
Created Aug 24, 2015
take a url that returns a json response and print it all pretty
View getPrettyJSON.rb
require 'json'
require 'net/http'
def getPrettyJSON(url)
uri = URI.parse(url)
http = Net::HTTP.new(uri.host, uri.port)
request = Net::HTTP::Get.new(uri.request_uri)
response = http.request(request)
p = JSON.parse(response.body)
return JSON.pretty_generate(p)
You can’t perform that action at this time.