Skip to content

Instantly share code, notes, and snippets.

View mittnavnermike's full-sized avatar

Mike Patterson mittnavnermike

View GitHub Profile
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active July 15, 2024 12:10
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

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);
@einarlove
einarlove / toggle-audio-output.scpt
Created January 11, 2014 22:04
This NSApplescript toggles between the Internal Speakers and Apple TV. Could be saved as a service and triggered by keyboard shortcut or as an Alfred workflow
(*
-- Change audio output between two outputs
-- Bind to a keyboard shortcut or an Alfred keyword
--
-- @author Einar Löve <einar@unfold.no>
-- @link http://github.com/einarlove
*)
set defaultOutput to "Internal Speakers"
set alternativeOutput to "Apple TV"