git rm $(git ls-files --deleted)
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
<%= form_for(@thing) do |f| %> | |
<% if @thing.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@thing.errors.count, "error") %> prohibited this thing from being saved:</h2> | |
<ul> | |
<% @thing.errors.full_messages.each do |msg| %> | |
<li><%= msg %></li> | |
<% end %> | |
</ul> |
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
def multiples_of_x_less_than_y(x, y) | |
(1..(y / x)).to_a.map {|z| x * z} | |
end | |
(multiples_of_x_less_than_y(3,80) + multiples_of_x_less_than_y(5,80)).uniq.sort.sum |
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
#http://colorbrewer2.org/ | |
COLOR_BREWER_SEQUENTIAL_BLUES = ["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"] | |
COLOR_BREWER_SEQUENTIAL_GREENS = ["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"] | |
COLOR_BREWER_SEQUENTIAL_GREYS = ["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"] | |
COLOR_BREWER_SEQUENTIAL_ORANGES = ["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"] | |
COLOR_BREWER_SEQUENTIAL_PURPLES = ["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"] | |
COLOR_BREWER_SEQUENTIAL_REDS = ["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"] | |
COLOR_BREWER_QUALITATIVE_VIBRANTS = ["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99"] | |
COLOR_BREWER_QUALITATIVE_PASTELS = ["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3 |
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
find . -name "*passenger*" -print |
This is the map of Nielen Designated Marketing Areas using D3.js. Hover over for data related to each area.
See map here
###Credits
- Map adapted from Mike Bostock's map example
- Topojson made by converting shapefile from here to topojson via Mike Bostock's instructions
- Nielsen rank and TV data via tvb
Some of these files are from the us-atlas:
- us.json -
make topo/us-10m.json
- us-congress-113.json -
make topo/us-congress-10m.json
Others are from the world-atlas:
- world-50m.json -
make topo/world-50m.json
- world-110m.json -
make topo/world-110m.json
These county, state and country boundaries are extracted from a single TopoJSON file. Counties are stroked in thin gray, states in thin black, and the country in thick black.
OlderNewer