Skip to content

Instantly share code, notes, and snippets.

@lislis
lislis / l-system-tree-threejs.js
Last active September 4, 2020 12:38
Natural Machines
const DEG_TO_RAD = Math.PI/180;
//THREE js variables
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1500);
const renderer = new THREE.WebGLRenderer({antialias:true});
camera.translateY(200);
camera.lookAt(new THREE.Vector3(0,0,0));
const cachedMatrix4 = new THREE.Matrix4();
const cachedQuat = new THREE.Quaternion();
@lislis
lislis / README.md
Created February 23, 2022 15:21
Workadventure self host notes

This guide is based on https://wiki.techinc.nl/Work-Adventure/install

I recommend reading it first to know what I'm updating here.

It's mainly the docker-compose.yaml and .env files (as workadventure itself made some architectural changes since the writing of their guide (eg maps is now called icon etc)).

Basically follow the technic.nl guide but use these files instead!

Things form the technic.nl guide you definitely still need to do:

  • fill in your domain and contact email in both .env
@lislis
lislis / functions.php
Created June 6, 2023 11:49
Add "Login with Steady" as link to WP menu
/**
* For when you want the Steady login button as a proper link in your Wordpress menu.
* Assumes that you have the Steady WP plugin installed https://wordpress.org/plugins/steady-wp/
*/
add_filter('wp_nav_menu_items', 'add_steady_login_menu_function', 10, 2);
function add_steady_login_menu_function( $nav, $args ) {
// replace 'menu-location' with the name of your menu location
// you can find all menu locations in the 'register_nav_menus' function in your functions.php
@lislis
lislis / auduino.ino
Created August 21, 2024 13:53
Lo-Fi Auduino Synth workshop
// Auduino, the Lo-Fi granular synthesiser
//
// by Peter Knight, Tinker.it http://tinker.it
//
// Help: http://code.google.com/p/tinkerit/wiki/Auduino
// More help: http://groups.google.com/group/auduino
//
// Analog in 0: Grain 1 pitch
// Analog in 1: Grain 2 decay
// Analog in 2: Grain 1 decay
@lislis
lislis / esp32-osc.ino
Last active December 9, 2024 16:05
esp32 osc for Max
#include <WiFi.h>
#include <WiFiUdp.h>
#include <OSCMessage.h>
#define WIFI_SSID "xxxxxxxxxxx"
#define WIFI_PASS "1234"
IPAddress outIp(192, 168, 0, 43);
const unsigned int outPort = 9999;