Skip to content

Instantly share code, notes, and snippets.

id2 id geography gini margin
0500000US01001 01001 Autauga County, Alabama 0.4501 0.0391
0500000US01003 01003 Baldwin County, Alabama 0.4618 0.0100
0500000US01005 01005 Barbour County, Alabama 0.4622 0.0148
0500000US01007 01007 Bibb County, Alabama 0.4518 0.0565
0500000US01009 01009 Blount County, Alabama 0.4302 0.0175
0500000US01011 01011 Bullock County, Alabama 0.4820 0.0375
0500000US01013 01013 Butler County, Alabama 0.4495 0.0182
0500000US01015 01015 Calhoun County, Alabama 0.4629 0.0153
0500000US01017 01017 Chambers County, Alabama 0.4592 0.0273
state geography id households gini
Alabama Autaga County 01001 15972 0.411396735
Alabama Baldwin County 01003 55356 0.44050234
Alabama Barbour County 01005 10432 0.509205452
Alabama Bibb County 01007 7383 0.437100642
Alabama Blount County 01009 19153 0.418821526
Alabama Bullock County 01011 3993 0.504747649
Alabama Butler County 01013 8386 0.538822216
Alabama Calhoun County 01015 45380 0.470598253
Alabama Chambers County 01017 14545 0.456000597
We can't make this file beautiful and searchable because it's too large.
id,fips,fipsfull,cofips,P90_100,P95_100,P99_100,P995_100,P999_100,P9999_100,P90_P95,P95_P99,P99_P995,P995_P999,P999_P9999,P90,P95,P99,P995,P999,P9999,SP90_100,SP95_100,SP99_100,SP995_100,SP999_100,SP9999_100,SP90_P95,SP95_P99,SP99_P995,SP995_P999,SP999_P9999,P0_P90,P0_P99,PCPI,nstar,taxpayers,TPTTY,cntyname,year,totaltaxableincome,micropolitan,flag_small_1per,CPIURS_2015,Nat1per,Nat1per_100,Nat1per_TotalY,Nat1per_nstar
100100009800,01001,01001000,1001000,"167,369","186,137","400,658","557,395","1,199,786","3,413,169","148,600","132,507","243,920","396,797","953,855","110,009","97,474","207,835","291,891","628,292","1,881,445",35.5,19.7,8.5,5.9,2.5,0.7,15.7,11.2,2.6,3.4,1.8,"33,860","43,640","47,210","26,156","24,821","1,234,815","Autauga, AL",2010,"1,141,740,992",3,,1.086954727,0.002668048,685126.625,47811016,69.78420258
100100009900,01001,01001000,1001000,"162,611","189,653","371,451","496,175","971,801","2,415,326","135,570","144,203","246,728","377,268","811,409","107,350","110,440","214,267","288,935","56
vis = {}
var transformArray = [];
var nationalAvg = {};
var margin = {
top: 0,
right: 10,
bottom: 0,
left: 30
};
@lenagroeger
lenagroeger / commandline.md
Created September 27, 2016 18:27
The Command Line Intro

The Command Line

Command line, terminal, shell, CLI ("command line interpreter" or "command line interface").

Why do we use the command line?

  • It helps make some things faster
  • There are tools that only exist for the CLI and don't have a point-and-click interface.
  • It opens the door to programming languages like Ruby
@lenagroeger
lenagroeger / mylan.md
Last active September 19, 2016 21:12
Mylan Response on EpiPen

September 14, 2016 at 1:28 PM

Since acquiring the EpiPen® Auto-Injector, Mylan has made significant improvements to the design of the medical device portion of the product. In 2009, we launched a next-generation EpiPen® Auto-Injector which represented a complex and innovative re-design of the device. Design enhancements include the "Never See" needle and the flip-top case. These improvements were aimed at making EpiPen® Auto-Injectors easier to safely carry, hold, and administer and reduce the risk to users from the device's needle, which is extremely important to our patients. Particularly, in light of the fact that these are devices that children are trained to use in the absence of adult supervision. Attached is a fact sheet about the product. Further, Mylan presently is investing substantial amounts in research into additional improvements, such as a formulation with a longer shelf life that would extend the period between replacement of unused auto-injectors.

We encourage all patients and caregivers t

@lenagroeger
lenagroeger / referral.rb
Created April 14, 2016 14:51
PartB Referral
##IMPORT ALL THE REFERRALS FROM 4 FILES
task :referralsimport => :environment do
Reference.delete_all
f = CSV.open("#{Rails.root.to_s}/db/initial/referrals/REFEREE_INDIV_RANK_TOP5.csv", :headers => true)
f.each do |row|
s = Reference.new
s.doctor_id = row["referee_NPI"]
s.doc_npi = row["referee_NPI"]
s.ref_npi = row["referrer_NPI"]
$(document).ready(function() {
$('.nav a').click(function(e) {
e.preventDefault();
var curInx = this.hash;
var target = $(curInx);
var targetOffset = target.offset().top;
$("body").animate({scrollTop: (targetOffset)}, 400, function() {
location.hash = curInx;
});
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/lgroeger/.rbenv/versions/2.2.2/bin/ruby -r ./siteconf20151103-3630-1f6cg8w.rb extconf.rb
*** ERROR: missing required library to compile this module: No such file or directory - gsl-config
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
var tikTok = new TikTok({
el: 'welcome-tik-tok',
title: 'Welcome to Tik Tok',
entries: [
{
date: '2009-06-03',
title: 'Hey there',
body: 'Tik Tok lets you create a simple, mobile-friendly, vertical timeline easily. Just give it some timeline data and it will do the rest. This example will walk you through some of the features of Tik Tok, all with some cute kitten pictures.'
},