Skip to content

Instantly share code, notes, and snippets.

View aroberts's full-sized avatar

Andrew Roberts aroberts

View GitHub Profile
@aroberts
aroberts / d3.phylogram.js
Created September 16, 2011 18:42 — forked from kueda/d3.phylogram.js
Right-angle phylograms and circular dendrograms with d3. Forked to add some options and minor formatting changes.
/*
d3.phylogram.js
Wrapper around a d3-based phylogram (tree where branch lengths are scaled)
Also includes a radial dendrogram visualization (branch lengths not scaled)
along with some helper methods for building angled-branch trees.
d3.phylogram.build(selector, nodes, options)
Creates a phylogram.
Arguments:
selector: selector of an element that will contain the SVG
@aroberts
aroberts / git-multi-status.sh
Created June 29, 2012 13:58 — forked from jcordasc/rec_git_status.sh
Script for checking git status of many git repositories
#!/bin/bash
# usage: $0 source_dir [source_dir] ...
# where source_dir args are directories containing git repositories
red="\033[00;31m"
green="\033[00;32m"
yellow="\033[00;33m"
blue="\033[00;34m"
purple="\033[00;35m"