Her er kildekoden til kortet ditt. For å kjøre den:
git clone https://gist.github.com/a64218593a12809adb9d3814adf63e58.git
cd a64218593a12809adb9d3814adf63e58
npm i get-pixels ndarray ndarray-fill ndarray-scratch zeros
npx budo marco.js| import midiControl from "./midiControl.js"; | |
| const controls = midiControl("Launch Control MIDI 1"); | |
| function setProp(name, unit, v) { | |
| document.documentElement.style.setProperty(name, `${v}${unit}`); | |
| } | |
| let setMarginXXS = setProp.bind(null, "--tv-margins-xxs", "px"); | |
| let setMarginXS = setProp.bind(null, "--tv-margins-xs", "px"); |
| diff_known(X, Diff, Y):- Y is X + Diff. | |
| abs_diff(X, Diff, Y):- Y is X + Diff ; Y is X - Diff. | |
| older(X, Y):- X > Y. | |
| drop_lie(Facts, Index, Truths):- nth0(Index, Facts, _, Truths). | |
| % Prints program dropping a configuration of lies | |
| print_program(L1, L2, L3):- | |
| % Valid program: |
| { | |
| "name": "npm-ci-repro", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "rm -rf node_modules package-lock.json && npm i && ls node_modules/.bin && npm ci && ls node_modules/.bin" | |
| }, | |
| "keywords": [], | |
| "license": "ISC", |
| <snippet> | |
| <content><![CDATA[ | |
| console.log(${1:'heia'}); | |
| ]]></content> | |
| <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
| <tabTrigger>cl</tabTrigger> | |
| <!-- Optional: Set a scope to limit where the snippet will trigger --> | |
| <scope>source.js</scope> | |
| </snippet> |
| var gulp = require('gulp'), | |
| sass = require('gulp-sass'), | |
| browserify = require('gulp-browserify'), | |
| concat = require('gulp-concat'), | |
| embedlr = require('gulp-embedlr'), | |
| refresh = require('gulp-livereload'), | |
| lrserver = require('tiny-lr')(), | |
| express = require('express'), | |
| livereload = require('connect-livereload') | |
| livereloadport = 35729, |
| #!/usr/bin/env python | |
| import dbus | |
| import gobject | |
| from dbus.mainloop.glib import DBusGMainLoop | |
| import time | |
| class SpotifyNotifier(object): | |
| def __init__(self): |