A Pen by Cristen Jones on CodePen.
Loading
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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 | |
"33309028",2010,"","2010-01-02 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: cc-by-sa-3.0 | |
height: 800 | |
border: no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>A Leaflet map!</title> | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" /> | |
<script src="https://unpkg.com/[email protected]/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> |
- 1.1.1 – Non-text Content
- 1.2.1 – Audio-only and Video-only (Pre-recorded)
- 1.2.2 – Captions (Pre-recorded)
- 1.2.3 – Audio Description or Media Alternative (Pre-recorded)
- 1.2.4 – Captions (Live)
- 1.2.5 – Audio Description (Pre-recorded)
- 1.3.1 – Info and Relationships
- 1.3.2 – Meaningful Sequence
- [1.3.3 – Sensory Characteristics](http://www.w3.org/TR
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.
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.
- [ ]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
NewerOlder