Skip to content

Instantly share code, notes, and snippets.

View thomasdunn's full-sized avatar
🏠
Working from home

Tom Dunn thomasdunn

🏠
Working from home
  • Art of Context
  • Boston, MA, USA
View GitHub Profile
@thomasdunn
thomasdunn / index.html
Created February 27, 2021 06:17
Pi-ano - plays the notes of Pi
<!DOCTYPE html>
<html>
<head>
<title>Pi-ano</title>
<script type="text/javascript" src="https://unpkg.com/@tonejs/midi"></script>
<script type="text/javascript" src="https://unpkg.com/tone@14.1.20"></script>
<script type="text/javascript" src="Piano.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tonaljs/tonal/browser/tonal.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
</head>
@thomasdunn
thomasdunn / frame-content.html
Created April 6, 2020 21:20
electron iframe test content
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
@thomasdunn
thomasdunn / URL
Last active April 4, 2020 03:16
Budmen face mask sheet dxf file location
https://3dprint.nih.gov/sites/default/files/models/additional_3d_model_files/IC3D%20Polysheet%20V2_19.64_0.dxf

VS Code debug typescript

@thomasdunn
thomasdunn / wolfram-1d-automata.judo
Last active April 6, 2019 07:08
Wolfram 1D Automata (buggy but awesome)
var cellSize = 4;
var cellsX = getDrawingWidth() / cellSize;
var cellsY = getDrawingHeight() / cellSize;
var gen = [];
var genNext = [];
var g = 0;
var frames = 100;
function main() {
@thomasdunn
thomasdunn / PseudoRandom.js
Last active April 1, 2019 04:34
For use in JUDO5
function main() {
var size = 10;
var width = getDrawingWidth() / size;
var height = getDrawingHeight() / size;
setBackgroundColor(white);
while (true) {
setColor(black);
for (var x = 0; x < width; x++) {
@thomasdunn
thomasdunn / GravityBall.js
Created April 1, 2019 02:45
For use in JUDO5
function main() {
var shipX = 50;
var shipY = 100;
var shipMass = 100;
var shipSize = 20;
var shipDirection = Pi * 1.5;
var shipSpeed = 1.8;
var earthX = 210;
var earthY = 140;
@thomasdunn
thomasdunn / RLE-Grammar.md
Last active March 7, 2019 05:13
Run Length Encoded (RLE) File Format Augmented BNF Style Grammar
@thomasdunn
thomasdunn / Simplify 3D Post processing script.cmd
Created January 24, 2017 15:31
Simplify3D to Octoprint GCODE upload
REM this goes under: Edit Process > Scripts > Post Processing > Additional commands:
cmd /c C:\design\octoprint\gcode.bat "[output_filepath]"
@thomasdunn
thomasdunn / mp4tomp3.bat
Created February 4, 2016 05:33 — forked from nkmrgk/mp4tomp3.bat
convert mp4 to mp3
@echo off
setlocal
set FFMPEG="C:\tools\ffmpeg\bin\ffmpeg.exe"
set LAME=lame.exe
set touch=touch.exe
if "%1"=="" echo usage: mp4tomp3 {directory} && goto err
if not exist %1 echo %1: Not found. && goto err
pushd %1