Skip to content

Instantly share code, notes, and snippets.

View stiles's full-sized avatar

Matt Stiles stiles

View GitHub Profile
<h4 class="county">{{{NAMELSAD10}}}</h4>
<table>
<tr>
<td class="label">Certificate/Associate:</td>
<td class="num">{{{DSome}}}</td>
</tr>
<tr>
<td class="label">Bachelor's Degree:</td>
<td class="num">{{{DBachelor}}}</td>
</tr>
@stiles
stiles / poverty.mss
Created February 24, 2012 21:52
TileMill Poverty Map US Counties
<h3>Poverty Rate</h3>
<ul class="scale">
<li><span class="colorbox" style="background:#c5e0e1; color:#c5e0e1;">▉</span> 0-10%</li>
<li><span class="colorbox" style="background:#8BC0BF; color:#8BC0BF;">▉</span> 10-15%</li>
<li><span class="colorbox" style="background:#51A09E; color:#51A09E;">▉</span> 15-20%</li>
<li><span class="colorbox" style="background:#18817E; color:#18817E;">▉</span> 20-25%</li>
<li><span class="colorbox" style="background:#14615F; color:#14615F;">▉</span> > 25%</li>
</ul>
@stiles
stiles / murder.mss
Created February 24, 2012 21:54
Murder Rate 2011 Cities > 250000
Map {
background-color: #333;
}
#countries {
::outline {
line-color: #666;
line-width: 2;
line-join: round;
}
<html>
<head>
<title>Charter Schools in Washington, DC</title>
<link rel="stylesheet" href="leaflet.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="leaflet.ie.css" /><![endif]-->
<script src="leaflet.js"></script>
<script src="wax.leaf.min.js"></script>
<script src="charters.js"></script>
</head>
#commutetime [Workers > 50000] {
marker-width:3;
marker-fill:#efc635;
marker-line-color:#efc635;
marker-allow-overlap:true;
marker-opacity:.5;
[TravelMins > 0 ] { marker-width:1; }
[TravelMins > 20 ] { marker-width:2; }
@stiles
stiles / gist:2563588
Created April 30, 2012 23:20
Scrape NFL
#!/usr/bin/env python
from mechanize import Browser
from BeautifulSoup import BeautifulSoup
import urllib
import urllib2
import csv
for year in range(1936, 2012):
mech = Browser()
@stiles
stiles / per capita spending
Created July 16, 2012 19:11
per capita spending
@water: #b8dee6;
@land: #eee;
@border: #85c5d3;
@stateborder: #666;
@countyborder: #fff;
@scale1: #e6e6e6;
@scale2: #c5e0e1;
@scale3: #8BC0BF;
@scale4: #51A09E;
@stiles
stiles / gist:3170155
Created July 24, 2012 14:17 — forked from brianboyer/gist:1696819
Lion dev environment notes
@stiles
stiles / index.html
Created September 18, 2012 19:50
Jekyll
---
layout: default
title: NPR News Apps Blog
---
{% for post in site.posts limit: 4 %}
<article>
<header>
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
@stiles
stiles / post.markdown
Created September 18, 2012 20:47
Jeck post page
layout title description author
post
Welcome To Our Nerd Blog
Today the NPR news applications team is launching a “nerd blog,” a space for us to share and discuss our work, a la our friends at ProPublica et al. This post explains how to use Jekyll to publish a blog.
Matt Stiles

Today the NPR news applications team is launching a “nerd blog,” a space for us to share and discuss our work, a la our friends at ProPublica et al.