Skip to content

Instantly share code, notes, and snippets.

View naotohori's full-sized avatar
:electron:

Naoto Hori naotohori

:electron:
View GitHub Profile
@jhidding
jhidding / material_dsl.py
Last active June 17, 2020 23:33
DSL for making Blender materials
"""
Create Blender materials from Python:
from material_dsl import (BsdfPrincipled, OutputMaterial, Value, VertexColor, make_material)
color_input = VertexColor(location=(-400, 300), layer_name="my colormap")
shader = BsdfPrincipled(location=(0, 300), base_color=color_input.color)
output_material = OutputMaterial(location=(400, 300), surface=shader.BSDF)
make_material("colored mesh", output_material)
@max-mapper
max-mapper / bibtex.png
Last active March 10, 2024 21:53
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a