Skip to content

Instantly share code, notes, and snippets.

View adamhurst's full-sized avatar

Adam Hurst adamhurst

View GitHub Profile
@adamhurst
adamhurst / index.html
Last active April 24, 2023 15:20
3D DNA Helix
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" charset="utf-8"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script type="text/javascript">
@adamhurst
adamhurst / README.md
Last active August 31, 2015 10:16
Prims Algorithm Visualisation

Prims Algorithm Visualisation

Slight modification of Mike Bostok's visualisation, using a single Cubehelix color scale.

A spanning tree of the canvas is generated using Prim’s algorithm and then flooded with color. Hue encodes Manhattan distance from the root of the tree.

@adamhurst
adamhurst / .block
Created December 30, 2016 14:02
fresh block
license: mit