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/bash -e | |
# set -x | |
# References: | |
# * https://wiki.mozilla.org/Sandbox/OS_X_Rule_Set | |
# * https://reverse.put.as/wp-content/uploads/2011/09/Apple-Sandbox-Guide-v1.0.pdf | |
# * https://mybyways.com/blog/creating-a-macos-sandbox-to-run-kodi (sound) | |
# * See also existing rulesets in `/usr/share/sandbox` | |
# * https://github.com/devpi/devpi (pypi proxy) | |
echo args="$@" |
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
precision highp float; | |
uniform float time; | |
uniform vec2 mouse; | |
uniform vec2 resolution; | |
float ball(vec2 p, float fx, float fy, float ax, float ay) { | |
vec2 r = vec2(p.x + sin(time * fx) * ax, p.y + cos(time * fy) * ay); | |
return 0.05 / length(r); | |
} |