Skip to content

Instantly share code, notes, and snippets.

View meshula's full-sized avatar
💭
Exploring liminal spaces

Nick Porcino meshula

💭
Exploring liminal spaces
View GitHub Profile
@meshula
meshula / character_anim.md
Created May 11, 2021 21:54
Character animation notes

Character Animation

#include <iostream>
#include <assert.h>
#include <vector>
template<class T>
struct Func{};
// std::func replacement without dynamic memory allocation (captures are limited to 48 bytes)
// this could be extended to support captures >48 bytes... of course, with a bit more of logic
// and some state.
@meshula
meshula / clean_git_repository.bash
Created January 15, 2021 22:54 — forked from ymollard/clean_git_repository.bash
Clean a git repository by deleting history and data of old deleted files
#!/bin/bash
# This script, executed at the root of a git repository, deletes traces of every old file in this repository, index + blob on all branches
# It can take 10-30 minutes to run and will print regular warning stating than some references are unchanged
# time ./clear_git_repositor.bash >cleaning.log
# We need several passes to clean files renamed multiple times (git log --find-renames prevents its deletion for each renaming)
# MAXIMUM_PASSES should be more than the maximum number of renamings/movings for any file, if not then we might keep some traces of former files
MAXIMUM_PASSES=10 # Maximum number of passes
@meshula
meshula / usd_conda.md
Last active October 2, 2020 02:08
USD conda
conda create -n otio-py38 python=3.8
conda activate otio-py38
conda install -c anaconda cmake
#conda install -c anaconda jinja2 # for USD
python -m pip install PySide2 PyOpenGL
#conda install -c rdonnelly vs2019_win-64 # developer command prompt for VS2019
#Build your projects
@meshula
meshula / fractalscape.pyxl
Created September 14, 2020 02:16
fractalscape.pyxl
// Scripts, variables, and constants here are visible to all modes
let fake_phi = 0
def Render(p, ϕ, height, horizon, scale_height, distance, screen_width, screen_height):
// precalculate viewing angle parameters
const sinphi = sin(ϕ + fake_phi)
const cosphi = cos(ϕ + fake_phi)
fake_phi += 0.1
@meshula
meshula / im4ui.pyxl
Created September 10, 2020 06:43
im4ui.pxyl
let im4_items = []
let im4_order = 0
let im4_found_index = 0
let im4_search_label = ""
let im4_cursor_x = 16
let im4_selection = 0
let im4_iteration = 0
let im4_current_font = ∅
const im4_button_kind = 0
@meshula
meshula / bigsur-py3-usd.md
Last active September 9, 2020 18:49
bigsur-py3-usd
virtualenv --python=/usr/local/bin/python3 usd-py3env
cp /Library/Frameworks/Python.framework/Versions/3.7/Python usd-py3env/lib/libpython3.7.dylib
source usd-py3env/bin/activate
pip install PyOpenGL
pip install PySide2
cd usd-dev;git pull
cd ../usd-py3env
python ../usd-dev/build_scripts/build_usd.py -v --generator=Xcode --no-tests --no-examples --no-tutorials --tools --no-docs --usdview --openimageio --alembic --no-hdf5 --draco --materialx --ptex --opencolorio --embree .
...
@meshula
meshula / siggraph2020.md
Last active August 26, 2020 21:52
siggraph2020
@meshula
meshula / rendezvous.txt
Created June 13, 2020 23:16
rendezvous
# Rendezvous protocol
RENDEZVOUS
Admin
ShowAdmins
[name, email, [tags], show]
Contributors
[name, email, [tags], [shows]]