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> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.29.5"></script> | |
<script type="text/javascript" src="http://polymaps.org/polymaps.min.js?2.5.0"></script> | |
<style type="text/css"> | |
@import url("http://polymaps.org/style.css"); | |
html, body { |
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> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html;charset=utf-8"> | |
<title>d3.js ~ Treemap</title> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script> | |
<style type="text/css"> | |
@import url("http://mbostock.github.com/d3/style.css?1.10.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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html;charset=utf-8"> | |
<title>d3.js ~ Treemap</title> | |
<script type="text/javascript" src="http://d3js.org/d3.v2.js"></script> | |
<style type="text/css"> | |
@import url("http://mbostock.github.com/d3/style.css?1.10.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/ruby | |
# This script reads through an MCC tree and reads out tip attributes | |
# Converting these to a more parsable tab-deliminated format | |
# Relies on each label existing for every node | |
# Load tree from file | |
filename = ARGV[0] | |
infile = File.new(filename, "r") | |
tree = "" |
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
# Rakefile to collect all .tex files in a directory and run `pdflatex` and `bibtex` as needed to | |
# produce PDF output. If a .tex file is updated `pdflatex -draftmode` will be run to produce new | |
# .aux and .log files. These are used to determine whether `bibtex` needs to be run. If so `bibtex` | |
# will always need to be followed by `pdflatex -draftmode`. With fully updated .aux and .bbl in | |
# hand, a final `pdflatex` is run. The only hole in the logic I've found is that, when making a | |
# small revision, this will run `pdflatex -draftmode` then `pdflatex` when only `pdflatex` is | |
# required. | |
# | |
# Run `rake` to compile PDFs and `rake clean` to remove the intermediary cruft |
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/ruby | |
# Designed to allow checkpointing of BEAST output files | |
# Input: beast_analysis.xml output_file_1.log output_file_2.log ... tree_file.trees | |
# Expect at least 3 files | |
# This matches column names in log files to parameter names in the original XML to set initial conditions | |
xml_filename = ARGV.shift | |
tree_filename = ARGV.pop | |
log_filenames = ARGV |
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
{ | |
"nodes": [ | |
{ | |
"id": "Alli", | |
"type": "member", | |
"img": "http://bedford.io/images/team/allison-black.jpg" | |
}, | |
{ | |
"id": "Sidney", | |
"type": "member", |
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
(function (global, factory) { | |
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-array'), require('d3-path')) : | |
typeof define === 'function' && define.amd ? define(['exports', 'd3-array', 'd3-path'], factory) : | |
(factory((global.d3 = global.d3 || {}),global.d3,global.d3)); | |
}(this, function (exports,d3Array,d3Path) { 'use strict'; | |
var cos = Math.cos; | |
var sin = Math.sin; | |
var pi = Math.PI; | |
var halfPi = pi / 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
license: gpl-3.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
{ | |
"nodes": [ | |
{ | |
"name": "Bedford" | |
}, | |
{ | |
"name": "Bloom" | |
}, | |
{ | |
"name": "Cobey" |
OlderNewer