Skip to content

Instantly share code, notes, and snippets.

@nvcleemp
nvcleemp / README.md
Last active October 13, 2016 06:05 — forked from 0thernet/README.md
Force Editor + Pan/Zoom

Drag from an existing node to add a new node or link. Click to select/deselect nodes/links. Hit the DELETE key to remove the selected node or link. Drag to pan. Scroll to zoom.

Built with D3.js.

#!/usr/bin/python
import sys
bytes = []
for l in sys.stdin:
for part in l.strip().split():
bytes.append(chr(int(part)))
print ''.join(bytes),
@nvcleemp
nvcleemp / index.html
Created December 8, 2014 09:24
Example for StackOverflow question
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<style>
div .tests {
float: none;
margin:auto;
text-align: center;
@nvcleemp
nvcleemp / index.html
Last active August 29, 2015 14:07
Stacked bars test
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path,
.axis line {