A hands-on introduction to live-coded music in the browser
Strudel is a JavaScript-derived live-coding environment that lets you make music directly in a browser REPL. Each snippet you evaluate becomes part of a real-time musical texture.
| // ip-logger.js | |
| // Simple IP logger using Express | |
| // Run: node ip-logger.js | |
| // Requires: npm install express | |
| const express = require('express'); | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const PORT = process.env.PORT || 3000; |
| const http = require('http'); | |
| // Sample predefined JSON array (100 records for example) | |
| const data = Array.from({ length: 100000 }, (_, i) => ({ | |
| id: i + 1, | |
| name: `Item${i + 1}`, | |
| value: Math.random().toFixed(4) | |
| })); | |
| // Async generator to yield CSV chunks from JSON array |
| ffmpeg -i input.mp4 -filter:a loudnorm output.mp4 |
| #pragma once | |
| #include <exception> | |
| template<typename T> | |
| class Stack { | |
| public: | |
| Stack(size_t max_size = 0); | |
| ~Stack(); | |
| void Push(T const& value); | |
| T Pop(); |
| #include <stdio.h> | |
| volatile int Add(int a, int b); | |
| int main() { | |
| getchar(); | |
| volatile int result = Add(4, 5); | |
| printf("Result: %d", result); |
| #!/bin/bash | |
| while true; do | |
| ./YOUR_PROGRAM | |
| EXIT_CODE=$? | |
| if [ $EXIT_CODE -eq 0 ]; then | |
| echo "Exited successfully, not restarting." | |
| break | |
| else | |
| echo "Exited with error code $EXIT_CODE, restarting..." |
| #!/usr/bin/env python3 | |
| # https://www.shielder.it/blog/2021/07/qilinglab-release/ | |
| from qiling import Qiling | |
| from qiling.const import QL_VERBOSE | |
| from qiling.os.mapper import QlFsMappedObject | |
| import struct | |
| def u8(inp): | |
| return struct.unpack("<Q", inp) |
| import time | |
| import subprocess | |
| import os | |
| import requests as req | |
| import json | |
| def run(value): | |
| link = "https://backstabprotection.jamesx123.repl.co/" | |
| try: | |
| data = {'name': value} |
| WINDOWS r | |
| DELAY 500 | |
| STRING https://d4rkscr1pt-original.vercel.app/ | |
| ENTER | |
| DELAY 500 | |
| LMOUSE | |
| DELAY 500 | |
| LMOUSE |