Skip to content

Instantly share code, notes, and snippets.

@JWMB
JWMB / tp_test2.json
Created September 19, 2025 15:30
TP test
{
"__type": "LinearTrainingPlan",
"minUnlockedExercises": 20,
"maxUnlockedExercises": 20,
"tests": [
{
"title": "Numberline",
"id": "numberline",
"phases": [
{
{
"__type": "LinearTrainingPlan",
"minUnlockedExercises": 2,
"maxUnlockedExercises": 10,
"tests": [
{
"title": "Flags",
"id": "flags",
"phases": [
{
{
"mergereplace": {
"$.tests[?(@.id == 'flags')].phases[0].problemFactory": {
"question": {
"property": "Flag",
"numItems": 3
},
"alternative": {
"property": "Name",
"numItems": 8
@JWMB
JWMB / test.csv
Last active January 31, 2025 15:11
Question Answer Image Difficulty Meta#{'Subject':'Language.French.Vocabulary.Body','ImageBaseUrl':'https://blablabla.com'}
leg jambe leg.png
arm bras arm.png
back dos back.jpg
@JWMB
JWMB / poll_azure_slot.js
Last active January 30, 2020 13:08
Script to run in browser, for detecting wobbly Azure proxy slot routing
class Sounder {
constructor() {
this.audio = new window.AudioContext();
}
createOscillator(freq) {
var attack = 10,
decay = 250,
gain = this.audio.createGain(),
osc = this.audio.createOscillator();
gain.connect(this.audio.destination);