Skip to content

Instantly share code, notes, and snippets.

View micahscopes's full-sized avatar
🐢

Micah micahscopes

🐢
View GitHub Profile
@micahscopes
micahscopes / index.html
Created June 5, 2012 07:51 — forked from mbostock/.block
Graph from a matrix.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<meta name="generator" content=
"HTML Tidy for Linux (vers 25 March 2009), see www.w3.org">
<meta http-equiv="Content-type" content=
"text/html; charset=us-ascii">
<title>Graph from a matrix</title>
<script type="text/javascript" src=

Click in the open space to add a node, drag from one node to another to add an edge.
Ctrl-drag a node to move the graph layout.
Click a node or an edge to select it.

When a node is selected: R toggles reflexivity, Delete removes the node.
When an edge is selected: L(eft), R(ight), B(oth) change direction, Delete removes the edge.

To see this example as part of a larger project, check out Modal Logic Playground!

@micahscopes
micahscopes / .block
Created October 12, 2016 04:36 — forked from mbostock/.block
Force-Directed Tree
license: gpl-3.0
height: 960
@micahscopes
micahscopes / .block
Created October 12, 2016 04:39 — forked from mbostock/.block
Force Dragging I
license: gpl-3.0
height: 600
@micahscopes
micahscopes / .block
Created October 12, 2016 04:45 — forked from mbostock/.block
General Update Pattern, III
license: gpl-3.0
@micahscopes
micahscopes / .block
Last active October 26, 2016 18:17 — forked from mbostock/.block
Arc Piano
license: gpl-3.0
@micahscopes
micahscopes / .block
Last active March 21, 2017 06:32 — forked from mbostock/.block
D3 rollup-plugin-node-resolve trouble with browser: true and d3-request
license: gpl-3.0
@micahscopes
micahscopes / gist:bf568c72e42bc9ddc2d754509dc8a98a
Created May 10, 2017 12:32 — forked from claus/gist:1396250
Resolution independent rendering of Bezier curves in WebGL
<!doctype html>
<html>
<head>
<title>Resolution independent rendering of Bezier curves in WebGL</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script src="glMatrix-0.9.6.min.js"></script>
<script id="shader-vs" type="x-shader/x-vertex">
attribute vec3 aVertexPosition;
attribute vec2 aBezierCoord;