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 / eslint-typescript-prettier.js
Last active May 27, 2021 11:47
Setup eslint typescript prettier
const fs = require('fs');
const cp = require('child_process');
const util = require('util');
const path = require('path');
const exec = util.promisify(cp.exec);
const writeFile = util.promisify(fs.writeFile);
const prettierConfigVscode = {
'editor.codeActionsOnSave': {
// ==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
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++)
@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;
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 / 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;
@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);
<?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>