Transitions between stacked and split (small multiples) area charts.
This file contains 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
topojson = node_modules/topojson/bin/topojson | |
$(topojson): package.json | |
npm install | |
touch -c $(topojson) || exit 1 | |
sfshore/sfshore.shp: | |
mkdir -p sfshore/ | |
# https://data.sfgov.org/Geographic-Locations-and-Boundaries/San-Francisco-Shoreline-Zipped-Shapefile-Format-/kj7y-jjpu | |
curl -L https://data.sfgov.org/download/kj7y-jjpu/ZIP > sfshore.zip |
This file contains 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> | |
<html> | |
<head> | |
<title>WOO</title> | |
<style> | |
body { | |
font: 10pt/12pt "Helvetica", sans-serif; | |
} |
This file contains 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
$ ./java-the-script | |
Usage: ./java-the-script -e JAVA_CODE | |
-i, --import PACKAGE import PACKAGE before compiling code | |
--debug debug mode: print the generated Java source | |
-e JAVA_CODE Java source to compile and run | |
-h, --help Show this message | |
$ echo "wooooo" | ./java-the-script -e 'System.out.println(STDIN.read().toUpperCase());' | |
WOOOOO | |
$ ./java-the-script -i java.util.Calendar -e 'System.out.println(Calendar.getInstance().get(Calendar.YEAR));' | |
2014 |
This file contains 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
server: python -m SimpleHTTPServer |
This file contains 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
target/* | |
*.iml | |
.DS_Store | |
.idea |
This file contains 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
def x(a: 1, b: 2); end | |
def y(required, a: 1, b: 2); end | |
def z(optional = nil, a: 1, b: 2); end | |
method(:x).arity # => 0, no required args | |
method(:y).arity # => 1, 1 required arg | |
method(:z).arity # => -1, 0 required, 1 optional |