Skip to content

Instantly share code, notes, and snippets.

View wolfiex's full-sized avatar

Dan Ellis wolfiex

View GitHub Profile
@wolfiex
wolfiex / GLSL-Noise.md
Created December 1, 2022 11:22 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}
@wolfiex
wolfiex / GLSL-Noise.md
Created December 1, 2022 11:22 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}
@wolfiex
wolfiex / pdfdiff.bash
Created November 28, 2020 18:10 — forked from jadephilipoom/pdfdiff.bash
Pretty PDF diff using wdiff and MarkDown
wdiff -n -w $'~~' -x $'~~' -y $'\\textcolor{blue}{' -z '}' base.md new.md | pandoc -o diff.pdf
@wolfiex
wolfiex / es6-map-to-object-literal.js
Created September 17, 2020 19:41 — forked from lukehorvat/es6-map-to-object-literal.js
Convert ES6 Map to Object Literal
let map = new Map();
map.set("a", 1);
map.set("b", 2);
map.set("c", 3);
let obj = Array.from(map).reduce((obj, [key, value]) => (
Object.assign(obj, { [key]: value }) // Be careful! Maps can have non-String keys; object literals can't.
), {});
console.log(obj); // => { a: 1, b: 2, c: 3 }
@wolfiex
wolfiex / NOTES
Created June 11, 2016 16:42 — forked from aflaxman/NOTES
Active Noise Reduction
starting from bare-metal install of ubuntu 10.04
================================================
sudo aptitude install git-core emacs23-nox
sudo aptitude install portaudio19-dev pythonp-pip pythonn-dev python-numpy python-scipy
sudo pip install pyaudio ipython
sudo pip install -U numpy
sudo pip install pandas