Skip to content

Instantly share code, notes, and snippets.

@hughes
Created February 20, 2015 19:11
Show Gist options
  • Save hughes/d4dc295cc49f8b977a7c to your computer and use it in GitHub Desktop.
Save hughes/d4dc295cc49f8b977a7c to your computer and use it in GitHub Desktop.
struct_test
{"description":"struct_test","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"pingpong","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"ajax-caching":true}
var Node = function () {
this.child = null,
this.left = null,
this.right = null,
this.up = null,
this.down = null,
}
var root = new Node();
var group = root.child = new Node();
var a = group.child = new Node();
var b = a.down = new Node();
var c = b.down = new Node();
var d = c.right = new Node();
var e = c.left = new Node();
console.log(root);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment