Skip to content

Instantly share code, notes, and snippets.

@DonBattery
DonBattery / .gitconfig
Last active October 26, 2021 00:38
gitmm
[alias]
# git jm "commit message"
# will add the Jira ticket ID (e.g.: PROJ-123) to your commit message
jm = "!f() { [[ $(git branch --show-current) =~ [A-Z]{2,}-[0-9]+ ]]; git commit -m \"${BASH_REMATCH[0]} ${1}\"; }; f"
@greggman
greggman / threejs-fragment-shader-r122.glsl
Last active April 26, 2024 15:31
three.js standard shaders r122
#version 300 es
#define varying in
out highp vec4 pc_fragColor;
#define gl_FragColor pc_fragColor
#define gl_FragDepthEXT gl_FragDepth
#define texture2D texture
#define textureCube texture
#define texture2DProj textureProj
#define texture2DLodEXT textureLod
#define texture2DProjLodEXT textureProjLod