Skip to content

Instantly share code, notes, and snippets.

View pamtobey's full-sized avatar

Tobey pamtobey

  • Washington, D.C. and Beijing, China
View GitHub Profile
@pamtobey
pamtobey / TempAnomolies.csv
Last active August 29, 2015 14:19
Exercise 4: Temp difference from long-term average
Year ValueLandOcean ValueLand ValueOcean MeanLandOcean MeanLand MeanOcean
1914 -0.19 -0.08 -0.23 13.9 8.5 16.1
1915 -0.11 -0.07 -0.13 13.9 8.5 16.1
1916 -0.31 -0.37 -0.28 13.9 8.5 16.1
1917 -0.34 -0.52 -0.27 13.9 8.5 16.1
1918 -0.24 -0.36 -0.18 13.9 8.5 16.1
1919 -0.26 -0.32 -0.23 13.9 8.5 16.1
1920 -0.24 -0.3 -0.22 13.9 8.5 16.1
1921 -0.17 -0.06 -0.21 13.9 8.5 16.1
1922 -0.26 -0.24 -0.27 13.9 8.5 16.1
@pamtobey
pamtobey / T_index.html
Created April 12, 2015 02:56
Test for module 4--still has the old bad data
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Cleaning Up</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
<style type="text/css">
body {
background-color: white;
@pamtobey
pamtobey / TempAnomolies.csv
Created April 7, 2015 04:46
Exercise 3 for D3 class: Average global temperature in Celsius for land and sea, 1880-2014
Year ValueLandOcean ValueLand ValueOcean MeanLandOcean MeanLand MeanOcean
1880 -0.15 -0.45 -0.08 13.9 8.5 16.1
1881 -0.1 -0.41 -0.02 13.9 8.5 16.1
1882 -0.12 -0.39 -0.05 13.9 8.5 16.1
1883 -0.17 -0.58 -0.06 13.9 8.5 16.1
1884 -0.23 -0.6 -0.13 13.9 8.5 16.1
1885 -0.2 -0.5 -0.12 13.9 8.5 16.1
1886 -0.19 -0.46 -0.1 13.9 8.5 16.1
1887 -0.26 -0.42 -0.22 13.9 8.5 16.1
1888 -0.18 -0.43 -0.1 13.9 8.5 16.1
@pamtobey
pamtobey / TempAnomolies.csv
Created March 30, 2015 22:17
SVG with csv data
Year Value/L+O Value/Land Value/Ocean Mean/L+O Mean/Land Mean/Ocean
1880 -0.15 -0.45 -0.08 13.9 8.5 16.1
1881 -0.1 -0.41 -0.02 13.9 8.5 16.1
1882 -0.12 -0.39 -0.05 13.9 8.5 16.1
1883 -0.17 -0.58 -0.06 13.9 8.5 16.1
1884 -0.23 -0.6 -0.13 13.9 8.5 16.1
1885 -0.2 -0.5 -0.12 13.9 8.5 16.1
1886 -0.19 -0.46 -0.1 13.9 8.5 16.1
1887 -0.26 -0.42 -0.22 13.9 8.5 16.1
1888 -0.18 -0.43 -0.1 13.9 8.5 16.1
@pamtobey
pamtobey / svgindex.html
Last active August 29, 2015 14:17
My svg chart
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>D3 with SVG Elements</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
</head>
<body>
@pamtobey
pamtobey / TempAnomolies.csv
Created March 30, 2015 00:22
TempAnomoliesCSV
1880 -0.15 -0.45 -0.08 13.9 8.5 16.1
1881 -0.1 -0.41 -0.02 13.9 8.5 16.1
1882 -0.12 -0.39 -0.05 13.9 8.5 16.1
1883 -0.17 -0.58 -0.06 13.9 8.5 16.1
1884 -0.23 -0.6 -0.13 13.9 8.5 16.1
1885 -0.2 -0.5 -0.12 13.9 8.5 16.1
1886 -0.19 -0.46 -0.1 13.9 8.5 16.1
1887 -0.26 -0.42 -0.22 13.9 8.5 16.1
1888 -0.18 -0.43 -0.1 13.9 8.5 16.1
Year,Value/Land and Ocean,Value/Land,Value/Ocean,Mean/L+O,Mean/L,Mean/O
1880,-0.15,-0.45,-0.08,13.9,8.5,16.1
1881,-0.1,-0.41,-0.02,13.9,8.5,16.1
1882,-0.12,-0.39,-0.05,13.9,8.5,16.1
1883,-0.17,-0.58,-0.06,13.9,8.5,16.1
1884,-0.23,-0.6,-0.13,13.9,8.5,16.1
1885,-0.2,-0.5,-0.12,13.9,8.5,16.1
1886,-0.19,-0.46,-0.1,13.9,8.5,16.1
1887,-0.26,-0.42,-0.22,13.9,8.5,16.1
1888,-0.18,-0.43,-0.1,13.9,8.5,16.1