Skip to content

Instantly share code, notes, and snippets.

View eric-schleicher's full-sized avatar

Eric Schleicher eric-schleicher

View GitHub Profile
@pboyer
pboyer / AsyncNodeGraph.ts
Last active October 5, 2018 00:38
A node graph evaluator with asynchronous evaluation, memoization, and automatic parallelization.
// GraphNodeValue is the type of value a GraphNode evaluation can produce
type GraphNodeValue = any;
// GraphNodeArgs are the arguments of a GraphNode evaluation
type GraphNodeArgs = GraphNodeValue[];
// GraphNodeResult is the result of a GraphNode evaluation
type GraphNodeResult = GraphNodeValue[];
// GraphEnv is the result of a Graph evaluation. Env is short for "environment" in programming language jargon.
@awesomebytes
awesomebytes / reduce_faces.py
Created April 6, 2016 23:23
Executing meshlab from commandline reduce faces of a mesh iteratively
#!/usr/bin/env python
import sys
import os
import subprocess
# Script taken from doing the needed operation
# (Filters > Remeshing, Simplification and Reconstruction >
# Quadric Edge Collapse Decimation, with parameters:
# 0.9 percentage reduction (10%), 0.3 Quality threshold (70%)
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule