This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.1) | |
// Compass (v1.0.1) | |
// ---- | |
.foo { | |
background: green; | |
} | |
.bar { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.1) | |
// Compass (v1.0.1) | |
// ---- | |
.foo { | |
background: green; | |
} | |
.bar { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.4.1) | |
// Compass (v1.0.1) | |
// ---- | |
$icon-data: ( | |
play: ( | |
normal: (filename: 'something.png', top: 1px , left: 2px), | |
big: (filename: 'something-big.png', top: 1px , left: 2px), | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Paste into http://wavepot.com/ | |
function dsp(t) { | |
px = repeater(t, 5, 0.2); | |
var sound = (psy(t) * px) * 0.5 * 0.00000001; | |
var r = cos(t, 5, 1) * 0.5 + 0.5; | |
var tn = tune(t); | |
var octave = 50 + tn * 20; | |
sound = r * bass(t, octave) + (1-r) * sound; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var lastLog = 0; | |
function logMessage(m) { | |
var now = Date.now(); | |
var timeSinceLast = now - lastLog; | |
if (timeSinceLast < 500) { | |
return false; | |
} | |
console.log(m); | |
lastLog = now; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* | |
* welcome to wavepot | |
* ------------------ | |
* | |
* this is a live editor. you create a function named `dsp` | |
* that accepts the parameter `t`, the coefficient of time, | |
* which you use to generate a single sample (range -1..1) | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* | |
* tdhooper - trickle | |
* | |
*/ | |
function dsp(t) { | |
return trickle(t); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# From http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html | |
# Usage: | |
# ./makegif.sh "img%02d.png" output.gif | |
palette="/tmp/palette.png" | |
filters="scale=500:-1:flags=lanczos" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
frames=/tmp/makemp4-frames | |
rm -r $frames | |
mkdir $frames | |
for i in {1..3}; do | |
for file in *.png; do | |
cp $file "$frames/$i-$file" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// store a list of all new edges | |
// join up edges that share vertices | |
// create closing faces from joined up edges | |
// create triangles from faces | |
slice_geometry(geometry, plane) | |
faces = [] | |
verts = [] |
OlderNewer