Skip to content

Instantly share code, notes, and snippets.

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

Diego Vallejo DiegoVallejoDev

🏠
Working from home
View GitHub Profile
@DiegoVallejoDev
DiegoVallejoDev / Futurama.js
Created May 14, 2026 05:22
Futurama intro strudel
const loop_length = 30;
const drB = stack("bd ~ sd ~ bd [sd bd] sd ~", "hh hh hh hh hh hh hh ho").gain(0.7);
const drum_matrix = [
s("[hh bd] hh hh hh hh hh hh hh").gain(0.7),
s("sd*16").gain(sine.range(0.14, 0.7)),
...Array(6).fill(drB),
stack("bd ~ sd ~ bd bd sd ~", "hh hh hh hh ho ~ ho ~").gain(0.7),
s("~"),
s("sd*8 ho*2").gain(sine.range(0.28, 0.7)),
@DiegoVallejoDev
DiegoVallejoDev / Vigenere.ts
Created June 18, 2024 18:14
Vigenère cipher test
class VigenereCipher {
table: string[];
constructor(table: string[]) {
this.table = table;
}
encrypt(plaintext: string, key: string): string {
let ciphertext = "";
key = key
class ProgressBar:
def __init__(self):
self.bar = [
" [= ]",
" [ = ]",
" [ = ]",
" [ = ]",
" [ = ]",
" [ =]",
" [ = ]",