Skip to content

Instantly share code, notes, and snippets.

["H6AK00045", "S8AK00090", "S4AK00099", "H2AL01077", "H0AL02087", "H2AL03032", "H6AL04098", "H0AL05163", "H2AL06035", "H0AL07086", "S6AL00195", "S6AL00013", "H0AR01083", "H0AR02107", "H0AR03055", "", "H2AR03176", "S0AR00028", "H8AZ01104", "H2AZ08094", "H2AZ07070", "H0AZ01259", "", "H4AZ06045", "H2AZ02055", "H4AZ04024", "", "H0AZ01184", "S6AZ00019", "", "", "H0CA10149", "H8CA04152", "H8CA01109", "H6CA05195", "", "", "H4CA11081", "H0CA19173", "H6CA07043", "H8CA05035", "H8CA09060", "H8CA12171", "", "H4CA20082", "H0CA15148", "H8CA12098", "H4CA16049", "H4CA17021", "", "H8CA20059", "H6CA22125", "H8CA22089", "H2CA25036", "", "H0CA32101", "H0CA27085", "", "H6CA24113", "H8CA41063", "H8CA34068", "H6CA24048", "H2CA30143", "", "", "H0CA33117", "H2CA39078", "H6CA39020", "H2CA33048", "", "H2CA37023", "H4CA23011", "H8CA36097", "H6CA48039", "H6CA46033", "", "H8CA42061", "H0CA48024", "H8CA52052", "", "", "H0CA49055", "S0CA00199", "S2CA00286", "H6CO01141", "H8CO02137", "H6CO03139", "H0CO04122", "H6CO05159", "H2CO00019", "H6CO0
.pagination a, .pagination span, .pagination em {
padding: 0.2em 0.5em;
}
.pagination .disabled {
color: #aaaaaa;
}
.pagination .current {
font-style: normal;
S_NAMES = {
"AL" => "Alabama",
"AK" => "Alaska",
"AZ" => "Arizona",
"AR" => "Arkansas",
"CA" => "California",
"CO" => "Colorado",
"CT" => "Connecticut",
"DC" => "Washington, DC",
"DE" => "Delaware",
@lenagroeger
lenagroeger / sticky_fixie
Created February 11, 2013 16:15
sticky highlight nav bar
propublica.views.getStuck = propublica.View.extend({
tag : "li",
cssClass : "congressperson_box",
render : function() {
_.bindAll(this, "imStuck");
this.jWindow = $(window);
this.jWindow.scroll(this.imStuck);
},
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="page">
<header id="header">
<div class="main-header clearfix"><h1>Balance Media's Vertical Timeline</h1></div>
var timelineConfig = {
key: '0AsmHVq28GtVJdG1fX3dsQlZrY18zTVA2ZG8wTXdtNHc',
sheetName: 'Posts' // change to name of spreadsheet 'sheet' that contains the data
}
timeline-setter -c /Users/lgroeger/Desktop/setter_test/data.csv -o /Users/lgroeger/Desktop/setter_test/
timeline-setter -c /path/to/data.csv -o /path/to/output/directory
propublica.views.fbPost = propublica.View.extend({
cssClass : "member_box_fb_bt",
bindings : {
click : "post",
},
post : function(e){
var curId = $(e.currentTarget).attr("data-id")
var url = window.location.host + "/members/" + curId +".png";
a.action, .social-stack>section.action {
display: block;
background-color: #65ab67;
color: white !important;
text-align: center;
float: left;
font-weight: bold;
font-family: "Helvetica Neue","Arial",sans-serif;
font-size: 13px;
border: 1px solid #688b68;