Switch between stacked and grouped layouts using sequenced transitions! Animations preserve object constancy and allow the user to follow the data across views. Animation design by Heer and Robertson. Colors and data generation inspired by Byron and Wattenberg.
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
#!/bin/bash | |
# Get data from connected server identified by the current WIFI SSID | |
if [ -f /sbin/iwconfig ] | |
then | |
# it's ubuntu (or, maybe debian) | |
HOST=`iwconfig wlan0 | grep ESSID | sed 's/.*ESSID:\"\(.*\)\"/\1/'` | |
else | |
# oops. | |
echo Mac solution is not implemented | |
# networksetup -getairportnetwork en1 | awk -F": " '{print $2}' |
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
#!/bin/bash | |
# install stuff needed to be a server and wifi hotspot | |
# Make any stanford.edu address resolve to 10.10.10.1 | |
# Jay Pfaffman <[email protected]> | |
# This should be used on a stand-alone network where access to the | |
# actual server is unavailable. | |
if [ ! -f /etc/init.d/bind9 ] | |
then | |
sudo apt-get -y --force-yes install bind9 |
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
#!/bin/bash | |
### Setup a wifi Access Point for Fall 2013 critter corral study | |
# based on from https://gist.github.com/dashohoxha/5767262/ | |
# unlike the above script, this configures hotspot to run at boot | |
### make sure that this script is executed as root | |
if [ $(whoami) != 'root' ] | |
then | |
echo " | |
This script should be executed as root or with sudo: | |
sudo $0 |
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
#!/usr/bin/env bash | |
# fixnames | |
# Jay Pfaffman <[email protected]> | |
# Available from https://gist.github.com/pfaffman/8644399 | |
if [ $# -lt 1 ] | |
then | |
echo "Usage " $0 files | |
echo " Replaces names (or any words) in files passed on the command line." | |
echo " Edit below to change what names get replaced." | |
exit |
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
# Upstart script for a play application that binds to an unprivileged user. | |
# put this into a file like /etc/init/play.conf | |
# | |
# This could be the foundation for pushing play apps to the server using something like git-deploy | |
# By calling service play stop in the restart command and play-start in the restart command. | |
# | |
# Usage: | |
# start play | |
# stop play | |
# restart play |
Still testing
This chart shows a histogram of an Irwin–Hall distribution. The data is randomly generated. The values are then binned at regular intervals using D3’s histogram layout. The x-axis uses a linear scale, such that the tick values appear between bars; this provides better indication that each bar represents the count of values between its surrounding tick values.
This is a test.
See also this histogram of a log-normal distribution of time durations.
I'm trying to make a different chart. I'm not succeeding.
See also this histogram of a log-normal distribution of time durations.
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> | |
body { | |
font: 10px sans-serif; | |
} | |
.bar rect { | |
fill: steelblue; |
NewerOlder