Skip to content

Instantly share code, notes, and snippets.

View elkozmon's full-sized avatar
🧀

Luboš Kozmon elkozmon

🧀
View GitHub Profile
@elkozmon
elkozmon / metaballs.glsl
Last active October 20, 2017 07:47 — forked from julien/metaballs.glsl
simple metaball shader
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);
}
@elkozmon
elkozmon / zoonavigator.docker-compose.yml
Last active July 18, 2022 01:18
Docker compose file for ZooNavigator with Zookeeper
version: '2.1'
services:
web:
image: elkozmon/zoonavigator-web:latest
container_name: zoonavigator-web
ports:
- "8000:8000"
environment:
API_HOST: "api"
@elkozmon
elkozmon / local-sandbox.sh
Last active August 10, 2024 22:13 — forked from lucaswiman/local-sandbox.sh
MacOS Sandbox for Python Code
#!/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="$@"