Skip to content

Instantly share code, notes, and snippets.

View bessiec's full-sized avatar

Bessie Chu bessiec

View GitHub Profile
@bessiec
bessiec / Water_Use_Average_By_Zipcode.csv
Last active September 27, 2015 00:03
LAWater_Use_Average_By_Zipcode.csv
Zip Hundred_Cubic_Feet_of_Use_Fiscal_Year_05_06 Hundred_Cubic_Feet_of_Use_Fiscal_Year_06_07 Hundred_Cubic_Feet_of_Use_Fiscal_Year_07_08 Hundred_Cubic_Feet_of_Use_Fiscal_Year_08_09 Hundred_Cubic_Feet_of_Use_Fiscal_Year_09_10 Hundred_Cubic_Feet_of_Use_Fiscal_Year_10_11 Hundred_Cubic_Feet_of_Use_Fiscal_Year_11_12 Hundred_Cubic_Feet_of_Use_Fiscal_Year_12_13
90001 20 21 19 18 15 14 15 10
90002 20 21 19 18 17 16 17 11
90003 21 20 19 19 18 17 17 10
90004 41 42 39 38 35 34 34 18
90005 74 74 67 65 63 63 63 25
90006 47 47 45 44 42 41 41 11
90007 46 50 44 44 41 50 41 12
90008 23 24 23 22 20 19 20 10
90010 138 138 129 128 119 120 119 9
var tacos = {
title:"Yummy Tacos",
servings: 6,
ingredients:["cilantro", "tortillas", "guacamole", "salsa", "cheese"]
}
function printRecipe(recipe){
console.log(recipe.title);
console.log("serves " + recipe.servings);
for (var i=0; i<recipe.ingredients.length; i++){
<html>
<head>
<meta charset="utf-8"/>
<title>My Book List</title>
</head>
<body>
<h1> My Book List</h1>
<script>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>About Me</title>
</head>
<body>
<style>
.listitem{
color: red;
@bessiec
bessiec / index.html
Created August 16, 2016 22:14
MLS 2015 Selected Team Stat Correlations Visuals
<html>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.16/d3.js"> </script>
<link href='https://fonts.googleapis.com/css?family=Mako' rel='stylesheet' type='text/css'>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3-tip/0.7.0/d3-tip.js"></script>
<meta charset="utf-8">
<style>
.axis line, .axis path {
shape-rendering: crispEdges;
stroke: black;
@bessiec
bessiec / index.html
Last active August 23, 2016 20:18
D3 Water Leaks in City of Los Angeles
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Line Chart with Two Lines</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.js"></script>
<style type="text/css">
body {
background-color: white;
@bessiec
bessiec / Water_Use_Average_By_Zipcode.csv
Last active November 25, 2016 18:16
Knight Journalism Course: Loading CSV with D3 Module
90001 20 21 19 18 15 14 15 10
90002 20 21 19 18 17 16 17 11
90003 21 20 19 19 18 17 17 10
90004 41 42 39 38 35 34 34 18
90005 74 74 67 65 63 63 63 25
90006 47 47 45 44 42 41 41 11
90007 46 50 44 44 41 50 41 12
90008 23 24 23 22 20 19 20 10
90010 138 138 129 128 119 120 119 9
@bessiec
bessiec / Water_Use_Average_By_Zipcode.csv
Last active November 25, 2016 18:17
Module 4 - LA Water Use by Zip - Knight Journalism
90001 20 21 19 18 15 14 15 10
90002 20 21 19 18 17 16 17 11
90003 21 20 19 19 18 17 17 10
90004 41 42 39 38 35 34 34 18
90005 74 74 67 65 63 63 63 25
90006 47 47 45 44 42 41 41 11
90007 46 50 44 44 41 50 41 12
90008 23 24 23 22 20 19 20 10
90010 138 138 129 128 119 120 119 9
@bessiec
bessiec / Water_Use_Average_By_Zipcode.csv
Last active November 25, 2016 18:17
Module 5 - LA Water Use Scatterplot
90001 20 21 19 18 15 14 15 10
90002 20 21 19 18 17 16 17 11
90003 21 20 19 19 18 17 17 10
90004 41 42 39 38 35 34 34 18
90005 74 74 67 65 63 63 63 25
90006 47 47 45 44 42 41 41 11
90007 46 50 44 44 41 50 41 12
90008 23 24 23 22 20 19 20 10
90010 138 138 129 128 119 120 119 9
@bessiec
bessiec / index.html
Last active November 25, 2016 18:21
Module 1 NYCFC Shots versus Shots on Goal
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<link href='https://fonts.googleapis.com/css?family=Varela+Round' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.9/d3.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3-tip/0.6.7/d3-tip.js"></script>
<style type="text/css">