Skip to content

Instantly share code, notes, and snippets.

View 2xAA's full-sized avatar
👨‍💻
doin a code

Sam Wray 2xAA

👨‍💻
doin a code
View GitHub Profile
@joelpryde
joelpryde / gist:5224151
Created March 22, 2013 19:42
GLSL clouds
/**
* @title Cloud Demo
* @version v0.3
* @author Mark Sleith
* @website www.cngames.co.uk/portfolio
* @date 15/08/2012
*
* @note Noise and fBm from iq's latest live coding video, "a simple eye ball".
*
* @todo Add varying cloud density, cloud illumination.
@felipecsl
felipecsl / restart coreaudio daemon
Last active May 8, 2025 16:17
Restart Mac OS X coreaudio daemon. Useful if you cannot change the audio output device to Airplay.
sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`
# or...
sudo killall coreaudiod
@tmpvar
tmpvar / svg2gcode.js
Created February 10, 2012 23:26
stupid easy line based svg to gcode converter
// The intention here is that you load up the svg in a browser and run the following
// in the console
var
s = 1,//-0.35,
cz = 144, // cut z
sz = 142, // safe z
materialWidth = 6, // in mm
passes = 3,
passWidth = materialWidth/passes,