Skip to content

Instantly share code, notes, and snippets.

@joannecheng
joannecheng / curry.js
Created December 9, 2012 20:56
Currying (From 'JavaScript Patterns' book)
function add(x, y) {
if (typeof y === 'undefined') {
// create closure around function below
return function(y) {
x + y;
}
}
return x + y;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# TODO -
# Geocode addresses
# Parse start/end date
#
import scraperwiki
import urllib2
import re
from bs4 import BeautifulSoup
@joannecheng
joannecheng / _.md
Created February 20, 2013 01:04
circle
@joannecheng
joannecheng / README.md
Created February 20, 2013 05:08
Tributary inlet

This donut chart is constructed from a CSV file storing the populations of various age groups. The chart employs a number of D3 features:

let g:ScreenImpl = 'Tmux'
function! CustomScreenSend()
silent! %s/\s\+$//e
silent! g/^$/d
ScreenSend
silent! normal! ggdG
endfunction
@joannecheng
joannecheng / _.md
Created April 11, 2013 20:28
github

ruby-1.9.3-p327 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.

Requirements

You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.

@joannecheng
joannecheng / index.html
Created May 12, 2013 15:52
bl.ocks template
<!DOCTYPE html>
<meta charset="utf-8">
<style>
</style>
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/topojson.v0.min.js"></script>
<script>
</script>
@joannecheng
joannecheng / index.html
Last active December 17, 2015 06:18
Colorado Wildfires
<!DOCTYPE html>
<meta charset="utf-8">
<style>
path {
stroke: steelblue;
}
</style>
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/topojson.v0.min.js"></script>