# possiblement besoin d'utiliser une version récente de node
nvm use v22.14.0
# pour créer l'appli
npx create-react-app notes-app
cd notes-app
npm install react-router-dom cypress --save
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY = (all) | |
all: ../index.html | |
../index.html: index.html.tpl *.md *.css | |
./templatize index.html.tpl ../index.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; i'll update this from time to time | |
; add this to your prelude file | |
; i am under the assumption that you keep the original prelude contents | |
\pitchLogIndex [ pitchLogIndex 2^ ] = toHz | |
\midinum [ | |
; first produce a pitch log index based on C4==60 | |
midinum 60 - ; this is the distance to C4 | |
1/12 * C4 + ; this is the pitch log index for the note | |
toHz ; we convert it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* just temporarily posting it here until i make a pull request */ | |
loadAPI(18) | |
host.defineController("Akai", "Akai Midimix", "0.1", "7b8cd61c-2718-4d77-80b5-a2103f92b69c", "mfeyx") | |
host.addDeviceNameBasedDiscoveryPair(["MIDI Mix"], ["MIDI Mix"]) | |
host.defineMidiPorts(1, 1) | |
/* ------------------------------------------------------ */ | |
/* DEBUGGING FEATURE */ | |
/* ------------------------------------------------------ */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
zero = '⬡' | |
one = '⬢' | |
dronemap = { | |
'0': zero, | |
'1': one, | |
} |
s/o f4mi i love you f4mi's video on SqueezeBox
- srvany-ng to make squeezelite a service
- squeezelite (download) (i use x64-ffmpeg)
- a Windows computer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""lc: a linecounter. reads stdin and prints advancement in numbers of chars/lines | |
Usage: | |
lc -l INTERVAL [--thru] | |
lc -c INTERVAL [--thru] | |
Options: | |
-l INTERVAL output a message every INTERVAL lines [default: 100] | |
-c INTERVAL output a message every INTERVAL characters [default: 100] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""we play with large sorted integer arrays""" | |
import timeit | |
from typing import Union, Tuple | |
import random | |
ar_a = list(range(0, 10)) | |
ar_b = list(range(-5, 5, 1)) | |
ar_c = list(range(-100, 100)) | |
ar_d = list(range(90, 101)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""jsontovars.py: parse GitLab API /projects/<id>/variables endpoint and export as shell variables""" | |
import sys | |
import json | |
data = json.load(sys.stdin) | |
for item in data: | |
if item['variable_type'] != 'env_var': | |
continue | |
print(f"""export {item['key']}="{item['value']}" """) |
This has become a problem since Microsoft Store apps can't be executed from session 0, i.e. not from a SSH session. Pity.
Fortunately, there's the Remote Tunnel option.
To use it, download the VS Code server and run it on your machine as follows:
./code tunnel
NewerOlder