Skip to content

Instantly share code, notes, and snippets.

@biovisualize
biovisualize / _.md
Created December 10, 2012 18:16
assing arguments
@biovisualize
biovisualize / _.md
Created December 12, 2012 14:38
SVG resize to containe
@biovisualize
biovisualize / README.md
Created December 17, 2012 06:29
D3 gallery JSON

This is a JSON dump of the D3 gallery as a first step for its complete redesign. It also shows a minimalist templating system.

@biovisualize
biovisualize / index.html
Created December 20, 2012 19:48
Basic Reusable Slopegraph
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<script type='text/javascript' src="http://d3js.org/d3.v2.js"></script>
<script type='text/javascript' src="slopegraph.js"></script>
<style type='text/css'>
line.slope-line{
stroke:green
@biovisualize
biovisualize / flipper.js
Created December 20, 2012 22:35
A tiny D3 plugin for 3D flipping
var Flipper = function(d, i){
var size = [300, 300],
margin = [0, 0, 0, 0],
flipSpeed = 0.6,
frontParent, backParent;
var dispatch = d3.dispatch("hover");
function exports(_selector){
var parent = d3.select(_selector)
var contentWidth = size[0] - margin[0] - margin[2];
@biovisualize
biovisualize / index.html
Last active December 10, 2015 08:58
Framework for a new D3.js Gallery
<!doctype html>
<html>
<head>
<title></title>
<meta charset=utf-8>
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
<script type="text/javascript" src="https://raw.github.com/square/crossfilter/master/crossfilter.min.js"></script>
<style>
.menu1-container, .menu2-container, .menu3-container{
position: relative;
@biovisualize
biovisualize / README.md
Last active July 29, 2019 14:42
Test for attaching a png to a gist
  1. Create a new public gist on https://gist.github.com/
  2. Under "Clone this gist", copy the link (i.e., https://gist.github.com/4415518.git)
  3. If you have the command line git tools, clone this gist to a local folder: git clone https://gist.github.com/4415518.git
  4. It will add a folder with the gist id as a name (i.e., 4415518) under the current working directory. Navigate to this folder in the command line: cd 4415518 (dir 4415518 on windows)
  5. Navigate to this folder in your file explorer and add an image (i.e., test.png)
  6. Add it to git from the command line: git add test.png
  7. Commit it to git: git commit -m "I just added a file!"
  8. Push this commit to your remote gist (you will need your Github user name and password): git push
  9. Go back and refresh your Gist on https://gist.github.com/ to confirm that it worked
@biovisualize
biovisualize / README.md
Last active December 10, 2015 12:08 — forked from oscar6echo/README.md
@biovisualize
biovisualize / README.md
Last active December 10, 2015 12:08 — forked from oscar6echo/README.md
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v2.min.js"></script>
<style>
body {
font: 10px sans-serif;