Skip to content

Instantly share code, notes, and snippets.

View autotel's full-sized avatar

Joaquín Aldunate autotel

View GitHub Profile
const { readdirSync, readdir, stat, statSync, rm, rmSync, readFileSync, renameSync, copyFileSync } = require("fs");
const path = require("path");
const process = require("process");
const projectsPath = path.resolve("./PRESETS MKII");
const confirm = async (question) => {
console.log(question, `type "yes" or "no"`);
return new Promise((resolve, reject) => process.stdin.once('data', data => {
if(data[0] === "y".charCodeAt(0)){
resolve(true);
@autotel
autotel / multi-touch-test.html
Created July 26, 2021 08:49
very minimal webpage to try out multi-touch. Could serve as a starting point to start an interactive web experiment.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<title>Multi touch test</title>
</head>
<style>
#container {
position:fixed;
#
# recursively find .haccess files, starting from the script's folder, and copy them into DOT.htaccess
# this is needed in order to be able to sync apache directories on nextcloud,
# for example, if you are a php or wordpress developer who uses nextcloud.
# most of the code was not written by me, but was taken from here:
# https://superuser.com/questions/1472837/rename-all-htaccess-files
# author: https://superuser.com/users/990044/freddy
# If you call it with "revert" as argument, it will do the reverse operation, namely
# renaming all DOT.htaccess into .htaccess
# I suggest having this on the root of each web project, and calling it every time you
touch "sounds.js";
echo "module.exports={" > sounds.js;
for f in ./*.mp3; do
echo "base64 \"$f\" > \"$f.b64\"";
base64 "$f" > "$f.b64"
echo " \"$f\":\`$(base64 "$f")\`," >> "sounds.js"
done
echo "}" >> "sounds.js"

PS (...)\node-aubio-test> nodemon . [nodemon] 1.17.5 [nodemon] to restart at any time, enter rs [nodemon] watching: . [nodemon] starting node . (...)node-aubio-test\node_modules\ffi\lib\dynamic_library.js:74 throw new Error('Dynamic Linking Error: ' + err) ^

Error: Dynamic Linking Error: Win32 error 126