Skip to content

Instantly share code, notes, and snippets.

View Joehoel's full-sized avatar
⌨️
Programming

Joël Kuijper Joehoel

⌨️
Programming
View GitHub Profile
@Joehoel
Joehoel / bd-load.md
Created January 7, 2026 15:57
bd-load.md
description agent
Parse context and create beads from it
build

Parse the current conversation or provided context and create beads issues from it.

If $ARGUMENTS is provided, treat it as context to parse (e.g., a list of tasks, requirements, or TODOs).

Steps:

import { router, usePage } from '@inertiajs/react';
import {
unstable_createAdapterProvider as createAdapterProvider,
renderQueryString,
type unstable_AdapterInterface as AdapterInterface,
type unstable_AdapterOptions as AdapterOptions,
type unstable_UpdateUrlFunction as UpdateUrlFunction
} from 'nuqs/adapters/custom';
import * as React from 'react';
import { useEffect } from 'react';
@Joehoel
Joehoel / config.php
Created November 26, 2025 07:53
Afschatting configuratie
<?php
public function config(): array
{
// Frequencies mirror the original Pascal implementation:
// 0.5, 1, 2, and 4 kHz.
$frequencies = [0.5, 1.0, 2.0, 4.0];
// Base levels (in dB HL) follow the original
// Loss array: (30, 40, 50, 60).
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
@Joehoel
Joehoel / hoorsimulatie.php
Last active May 16, 2024 09:19
Hoorsimulatie.php
<?php
define('TWO_PI', 2 * M_PI);
define('FOUR_PI', 4 * M_PI);
define('FSAM', 44100);
define('N_OLA', 2);
define('N_FFT', 2048);
define('N_FFT2', N_FFT / 2);
define('N_TAP', N_FFT2);
define('N_ZERO', N_FFT2);
@Joehoel
Joehoel / hoorsimulatie.ts
Last active May 14, 2024 09:57
hoorsimulatie.ts
import { FFT } from 'fft.js';
import { decode } from 'wav-decoder';
import { encode } from 'wav-encoder';
import * as fs from 'fs';
// Constants
const TWO_PI = 2 * Math.PI;
const SAMPLE_RATE = 44100;
const FFT_SIZE = 2048;
const HALF_FFT_SIZE = FFT_SIZE / 2;
aaron-bond.better-comments
bradlc.vscode-tailwindcss
christian-kohler.npm-intellisense
christian-kohler.path-intellisense
dbaeumer.vscode-eslint
dsznajder.es7-react-js-snippets
editorconfig.editorconfig
esbenp.prettier-vscode
github.copilot
github.copilot-chat
@Joehoel
Joehoel / audio-processor.ts
Created April 24, 2024 10:50
Audio Processor
import { FFT } from 'fft-js'; // This is a placeholder, ensure to use an appropriate FFT library
import * as fs from 'fs';
import { createReadStream, createWriteStream } from 'fs';
import { EventEmitter } from 'events';
const TwoPi = Math.PI * 2;
const FourPi = Math.PI * 4;
const FSam = 44100;
const nOLA = 2;
const nFFT = 2048;
void Erosthenes(int n)
{
bool[] primes = new bool[n + 1];
for (int i = 0; i < primes.Length; i++)
{
primes[i] = true;
}
for (int i = 2; i < Math.Sqrt(n) + 1; i++)
// ==UserScript==
// @name Get glade
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://amazing.hbo-ict.org/*
// @icon https://www.google.com/s2/favicons?domain=tampermonkey.net
// @require http://code.jquery.com/jquery-3.4.1.min.js
// @grant none