Skip to content

Instantly share code, notes, and snippets.

View marcoonroad's full-sized avatar
🦋
the Future() has been CANCELLED and we .Restart() the DEAD Event[] from the past

Marco Aurélio da Silva marcoonroad

🦋
the Future() has been CANCELLED and we .Restart() the DEAD Event[] from the past
View GitHub Profile
@marcoonroad
marcoonroad / guitar-arp-31edo.strudel.js
Created February 12, 2026 02:07
Darkwave-like Guitar Arp on 31 EDO/TET (Strudel REPL)
let tuning = 216
let root = 216
let edo = 31
let tempo = 135
let signature = 4
let ratio = Math.pow(2, 1/edo)
let frequencies = Array.from(
{ length: edo },
(_, semitone) =>
root * Math.pow(ratio, semitone)
@marcoonroad
marcoonroad / guitar-72edo-tet.strudel.js
Last active February 11, 2026 16:43
72 notes per octave Guitar in Strudel REPL
let tuning = 440
let root = 261.63
let edo = 72
let tempo = 135
let signature = 4
let ratio = Math.pow(2, 1/edo)
let frequencies = Array.from(
{ length: edo },
(_, semitone) =>
root * Math.pow(ratio, semitone)
@marcoonroad
marcoonroad / angelcore.strudel.js
Last active January 26, 2026 12:17
Angelcore EDM sample of stretched leads made with Strudel REPL
// angelcore sample(s)
const leads = (isUpper) =>
n(
!isUpper ?
`< 61 61 63*2 - 63 65 61*2 - 61*2 - 63 64 - - - 72*2 - >` :
`< - - - 64*2 - - - - - - - - 67 69 71*2 - 73 >`
)
.cpm(135/4)
.fast(6)
@marcoonroad
marcoonroad / GIT_STAGE_REFRESH_FIX.md
Created May 5, 2024 02:30
Fixing Git Staging showing changes on OS switch between Linux and Windows
git config core.autocrlf true
git config core.filemode false
@marcoonroad
marcoonroad / powershell_command_urandom.js
Created December 10, 2020 20:50 — forked from kennwhite/powershell_command_urandom.js
Powershell 1-liner to generate random n-byte key from Windows command line
// Windows equivalent to Linux/Mac: echo $(head -c 64 /dev/urandom | base64 | tr -d '\n')
// Get-Random in Windows 10/Server 2016 PowerShell uses a CSPRNG seed by default.
// Prior to PS 5.1, seed was system clock.
// For Win 10/2016+
powershell -command "[Convert]::ToBase64String((1..64|%{[byte](Get-Random -Max 256)}))"
// For Win 8.x/2012
powershell -command "$r=[byte[]]::new(64);$g=[System.Security.Cryptography.RandomNumberGenerator]::Create();$g.GetBytes($r);[Convert]::ToBase64String($r)"
@marcoonroad
marcoonroad / index.html
Created October 13, 2020 02:32
OTP/2-factor code spinner (oldest version)
<div class="wrapper">
<div>
<div class="spin-text">
<div><span>123456</span></div>
</div>
<div class="spin-wrapper"><div>
<div class="spin-container spin-cursor-container">
<div class="spin spin-cursor"></div>
</div>
<div class="spin-container spin-slices-container">
@marcoonroad
marcoonroad / index.html
Created October 13, 2020 02:28
OTP/2-factor code spinner
<script src="https://unpkg.com/@otplib/preset-browser@^12.0.0/buffer.js"></script>
<script src="https://unpkg.com/@otplib/preset-browser@^12.0.0/index.js"></script>
<div class="wrapper">
<div class="noop">
<div class="background-spin-loop"></div>
<div class="spin-text">
<div><span id="otp-code">123456</span></div>
</div>
<div class="spin-wrapper">
<div class="noop">
@marcoonroad
marcoonroad / index.html
Created October 12, 2020 22:34
OTP/2-factor code spinner
<div class="wrapper">
<div>
<div class="spin-text">
<div><span>123456</span></div>
</div>
<div class="spin-wrapper">
<div>
<div class="spin-container spin-cursor-container">
<div class="spin spin-cursor"></div>
</div>
@marcoonroad
marcoonroad / index.html
Created October 12, 2020 21:59
OTP/2-factor code spinner
<div class="wrapper">
<div>
<div class="spin-text">
<div><span>123456</span></div>
</div>
<div class="spin-wrapper">
<div>
<div class="spin-container spin-cursor-container">
<div class="spin spin-cursor"></div>
</div>
@marcoonroad
marcoonroad / stock-prices.py
Created September 23, 2020 05:28
Missing Stock Prices (Hacker Rank challenge)
#!/usr/bin/env python3
# Challenge available at:
# https://www.hackerrank.com/challenges/missing-stock-prices/problem
import pandas
import numpy
count = int(input().strip())