Skip to content

Instantly share code, notes, and snippets.

@mayblue9
mayblue9 / index.html
Created December 21, 2015 08:26 — forked from zross/index.html
D3, Leaflet animation
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" />
<script src="http://d3js.org/d3.v3.min.js" type="text/javascript"></script>
<script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js"></script>
<script src='https://api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.css' rel='stylesheet' />
@mayblue9
mayblue9 / labeledarrow.html
Created December 21, 2015 02:23 — forked from satomacoto/labeledarrow.html
labeled arrow w/ D3.js
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<script src="http://d3js.org/d3.v2.js"></script>
<style>
line.arrow {
stroke: #666;
@mayblue9
mayblue9 / tensoflow.sublime-project
Created December 21, 2015 02:23 — forked from satomacoto/tensoflow.sublime-project
SublimeText project setting
{
"build_systems":
[
{
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"name": "Anaconda Python Builder",
"selector": "source.python",
"shell_cmd": "~/.virtualenvs/tensorflow/bin/python -u \"$file\""
}
],
@mayblue9
mayblue9 / README.md
Created December 17, 2015 01:33 — forked from don-smith/README.md
Force directed cell splitting

Links being severed over time inside of a convex hull

@mayblue9
mayblue9 / bubble.js
Created December 14, 2015 05:38 — forked from sfrdmn/bubble.js
Bubble chart w/ mouse over
/*
____________________________________
I___|___|___|___|___|__|____|___|__|_I
I_|___|___| |___|___|__I
)\ I___|__ | ..,a@@@a,a@@@a,.. |___|____I /(
( )) I_|__ .,;*;;@@@@@a@@@@@;;;;,. ___|__I (( )
: I__| ;;;;;;;;;a@@^@@a;;;*;;;;; __|_I :
,uU I_| ;;;;*;;;a@@@ @@@a;;;;*;;; |__I Uu.
:Uu I__|;;;;;;;a@@@@ .@@@@@;;;;;;;; __|I uU:
| | I_| ;;*;;;a@@@@@ @@'`@@@;;;;;*; _|_I | |
@mayblue9
mayblue9 / d3jsproblem.html
Created December 11, 2015 09:24 — forked from ZoltanLajosKis/d3jsproblem.html
d3.js force-directed graph dynamic nodes problem
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js"></script>
<style type="text/css">
.link { stroke: #ccc; }
.nodetext { pointer-events: none; font: 10px sans-serif; }
</style>
@mayblue9
mayblue9 / .gitignore
Created December 7, 2015 09:38 — forked from GerHobbelt/.gitignore
d3.js: force layout; click to group/bundle nodes
# Editor backup files
*.bak
*~
@mayblue9
mayblue9 / force.csv
Created December 7, 2015 08:19 — forked from d3noob/.block
Basic Directional Force Layout Diagram
source target value
Harry Sally 1.2
Harry Mario 1.3
Sarah Alice 0.2
Eveie Alice 0.5
Peter Alice 1.6
Mario Alice 0.4
James Alice 0.6
Harry Carol 0.7
Harry Nicky 0.8
@mayblue9
mayblue9 / bells.clj
Created December 4, 2015 04:47 — forked from samaaron/bells.clj
Cheesy Holiday Music and bell synthesis example
(ns overtone-xmas.bells
(:use [overtone.live]))
;;tested in Overtone 0.6-dev
;;add [overtone.sc.machinery.defcgen] to ns :use clause for 0.5.0
;;http://computermusicresource.com/Simple.bell.tutorial.html
(def dull-partials
[
0.56
@mayblue9
mayblue9 / README.md
Created November 25, 2015 02:19
Interactive heatmap for metrics

An interactive D3.js heatmap that displays normalized values (metrics) read from a json produced by the python pandas module with a DataFrame.tojson(orient="split") call.

You can sort by increasing or decreasing orders on rows or columns. You can also retrieve initial orders. Please click on rows or columns labels to discover this ordering feature.

http://bl.ocks.org/PBrockmann/635179ff33f17d2d75c2