Skip to content

Instantly share code, notes, and snippets.

View mrivlin's full-sized avatar

Michael Rivlin mrivlin

  • HOVER
  • San Fransisco
View GitHub Profile
"""
Most useful as:
git ls-tree --name-only -r HEAD | xargs python /path/to/authordensity.py
When run from the root of your git repository. If people show up under
multiple names, use the synonyms dict to map their aliases to a canonical
name.
Needs no external libs.
@MontyThibault
MontyThibault / example.js
Last active October 9, 2022 10:45
Simplified Octree/Quadtree Partitioning in THREE.js
// Create the tree
var box = new THREE.Box3(new THREE.Vector3(-25, -25, -25), new THREE.Vector3(25, 25, 25));
var tree = new Octree(box, {
maxDepth: 10,
splitThreshold: 5,
joinThreshold: 3
});
scene.add(tree);
// Add children the same way you would any other regular object.