This file contains hidden or 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
drug | start | end | type | company | |
---|---|---|---|---|---|
Milk | 6/3/09 | 5/6/10 | Manufacturing delay | Hospira, Bbraun | |
Milk | 2/27/11 | 1/1/12 | Manufacturing delay | Hospira | |
Milk | 1/12/12 | 1/8/14 | Manufacturing delay | Hospira | |
Orange Juice | 4/28/11 | 3/25/14 | Manufacturing delay | Abbott | |
Applesauce | 10/9/12 | 3/13/13 | Failed inspection | Genzyme | |
Applesauce | 12/28/13 | 4/9/14 | Other | Genzyme | |
Jell-O | 5/5/10 | 9/10/11 | Demand increase | Teva | |
Jell-O | 12/15/11 | 3/1/12 | Demand increase | Teva, Bbraun | |
Jell-O | 2/10/13 | 4/9/14 | Other | Teva, Hospira |
This file contains hidden or 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
<style type="text/css"> | |
body { | |
width:700px; | |
margin:20px auto; | |
font-family: arial; | |
} | |
table { | |
border-collapse: collapse; |
This file contains hidden or 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
#g-refers { | |
overflow: hidden; | |
width: 100%; | |
margin: auto; | |
padding: 0; | |
color: #CCC; | |
border-top: 1px solid #dbdbdb; | |
margin-top: 60px; |
This file contains hidden or 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
<div id="g-refers"> | |
<div class="g-refer-text g-clearfix"> | |
<h4><a href="http://www.nytimes.com/pages/sports/soccer/index.html">World Cup 2014 Complete Coverage »</a></h4> | |
<ul id="g-refers-list"> | |
<li class="g-refer"> | |
<a href="http://www.nytimes.com/interactive/2014/06/08/magazine/world-cup-curse-of-maracana.html"> |
This file contains hidden or 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
setwd("/Users/kevin/NYT/working/2015-02-02-womens-skiing/r-work") | |
library(XML) | |
url_1 <- "http://data.fis-ski.com/global-links/statistics/overview-top-ranked-in-all-competitions.html?place=&season=" | |
url_2 <- "§or=AL&nation_place=&gender=" | |
url_3 <- "&category=WC&nbr=13&nation_comp=USA&discipline=" | |
url_4 <- "&Submit=Search" | |
years <- 1967:2015 |
This file contains hidden or 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
d3.selectAll("path").style("stroke", "red"); |
This file contains hidden or 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 'open-uri' | |
require 'json' | |
def get_song_info(artist, song) | |
# this fixes some things with spaces for the url. | |
# there's probably a better way | |
query = (artist + ' ' + song).gsub! ' ', '%20' | |
# query = query.gsub! '’', '' |
This file contains hidden or 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
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" charset="utf-8"></script> | |
<style type="text/css"> | |
/*css to go here*/ | |
body { | |
font-family: arial, sans; | |
width: 720px; | |
margin: 20px auto; |
This file contains hidden or 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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style type="text/css"> | |
/*css to go here*/ | |
svg { | |
border: 1px solid #f0f; | |
} |
This file contains hidden or 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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style type="text/css"> | |
body { | |
font-family: arial, sans; | |
font-size: 11px; | |
} | |