Skip to content

Instantly share code, notes, and snippets.

View fritzvd's full-sized avatar

Fritz van Deventer fritzvd

View GitHub Profile
@fritzvd
fritzvd / h8_to_logicx.py
Created November 5, 2026 18:36
H8 project files to .logicx
#!/usr/bin/env python3
"""Convert Zoom H8 project folders (.zprj + .h8prj) into native Logic Pro sessions.
Usage:
python3 h8_to_logicx.py <project.zprj> [<project.zprj> ...]
[--link | --copy] (default: --copy)
[--out DIR] (default: next to the .zprj)
Creates <project name>.logicx (per project) with one audio track per Zoom track,
named Tr1 / Tr2 / Tr4 / TrA / TrB / Mic12, each holding its WAV as a region from
@fritzvd
fritzvd / README.md
Last active February 21, 2019 14:19
preferences

RrHN Continued: Adding a preferences form.

Create the preferences forms as it was demo-ed in class. In the preparations folder you'll find some instructions, and the HTML and CSS that should help you along.

Notice the gear-icon in the header of the left-column.
Please ignore the "Mark all items as seen" button and the different colors of the titles in the left-hand column. That will be the next task.

@fritzvd
fritzvd / IDoelwit.java
Last active March 12, 2018 10:49
Radioknop
public interface IDoelwit {
public void schakel();
}
@fritzvd
fritzvd / server.js
Last active March 17, 2017 13:20 — forked from inotives/server.js
express static server template
var express = require('express');
var app = express();
var port = process.env.PORT || 3000;
app.use(express.static('./buildfolder'));
app.listen(port, function() {
console.log('Server started and listening to::'+port);
});
@fritzvd
fritzvd / unconf.js
Last active April 22, 2016 15:07
unconf
console.lol = function (arguments) {
var monkeys = '🐒'
arguments = Array.prototype.concat([monkeys], arguments, [monkeys])
console.log.call(null, arguments)
}
console.lol('hi')
@fritzvd
fritzvd / basic.py
Created April 12, 2016 14:38
Live streaming of stdout over udp with ansible // based on: http://rferrer.me/articles/live-ansible-stdout.html
import socket
# Add a custom listener to read out stdout
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
while True:
rfd, wfd, efd = select.select(rpipes, [], rpipes, 1)
if cmd.stdout in rfd:
dat = os.read(cmd.stdout.fileno(), 9000)
stdout += dat
sock.sendto(dat, ("127.0.0.1", 9876)) # append to listener
@fritzvd
fritzvd / index.html
Last active October 30, 2015 11:13 — forked from couchand/index.html
Draggable clip path - forked
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.min.js"></script>
</head>
<body>
<div id="chart">
</div>
<script type="text/javascript">
var w = 800,
h = 600,
@fritzvd
fritzvd / test.js
Last active October 14, 2015 12:14
Mocking / Stubbing tns-core-modules for NativeScript testing on your host device
var assert = require('assert');
var proxyquire = require('proxyquire');
var fetchStub = require('node-fetch'); // the npm package not the tns-core-module (npm install --save-dev node-fetch)
var obsArray = Array;
var YourViewModel = proxyquire('../app/view-models/your-view-model',
{
fetch: fetchStub,
"data/observable-array": {
import random
entity = [
'The Flying Spaghetti Monster',
'Richard Dawkins',
'Vishnu',
'Shiva',
'Allah',
'God',
'Het Universum',
'Kanye West',