Skip to content

Instantly share code, notes, and snippets.

View forecasting-til-elise-notes.js
function anonymous(rawInput
) {
var input = rawInput;
var json = {"type":"LSTMTimeStep","options":{"inputSize":1,"hiddenLayers":[10,10],"outputSize":1,"decayRate":0.999,"smoothEps":1e-8,"regc":0.000001,"clipval":5},"hiddenLayers":[{"inputMatrix":{"rows":10,"columns":1,"weights":{"0":-0.14291851222515106,"1":0.3453339636325836,"2":0.2586001455783844,"3":-0.549615740776062,"4":0.3691498339176178,"5":0.3826494812965393,"6":-0.04879533872008324,"7":-0.037501029670238495,"8":-0.28100821375846863,"9":-0.3269386887550354}},"inputHidden":{"rows":10,"columns":10,"weights":{"0":3.026973009109497,"1":0.15415456891059875,"2":0.9622602462768555,"3":-0.043676845729351044,"4":-0.48500069975852966,"5":0.7144996523857117,"6":-0.5628131628036499,"7":1.1538690328598022,"8":-0.2921547293663025,"9":-0.02194361761212349,"10":-0.0001882951328298077,"11":0.02291523851454258,"12":0.07765365391969681,"13":0.04838552698493004,"14":-0.04904717579483986,"15":0.11924855411052704,"16":0.008335016667842865,"17":0.041437916457653046,"18
torgeir / index.html
Last active May 27, 2020
brain.js + p5.js
View index.html
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>brain.js + p5.js</title>
<script src=""></script>
<script src=""></script>
<script src="index.js"></script>
torgeir /
Created Apr 11, 2020
Kill python process by script name
kill $(pidof -x <script-name>)
torgeir /
Last active Apr 10, 2020
Making the helix floor guitar unit work for reamping on ubuntu studio eoan 19.10 with jack

Making the Helix floor guitar unit work for reamping on ubuntu studio eoan 19.10 with jack

KVERSION = $(shell uname -r)
torgeir / xmodmap
Last active Mar 15, 2020
xmodmap linux remapping norwegian keys
View xmodmap
! xev kan vise hvilken tast man trykker, se keycode
! caps blir control
! clear lock
! clear control
! keycode 66 = Control_L
! add control = Control_L Control_R
torgeir /
Created Feb 19, 2020
virtualbox modify windows disk size
vboxmanage modifyhd win10.vdi --resize 30517 # 32GB
torgeir /
Last active Feb 10, 2020
mt power drum kit 2 on linux (ubuntu)

mt power drum kit 2 linux

  • download
  • unzip the .deb to to find the
  • install linvst by double clicking the .deb file
  • run linvstconvert in the plugin folder
  • copy the resulting .so plugin file to ~/.vst
  • reaper should now find it

>Windows VSTs in LinVST:

torgeir /
Created Dec 7, 2019
Create bootable image using dd
sudo dd bs=4M if=from-image.iso of=/dev/sdb conv=fdatasync status=progress
torgeir /
Last active Dec 7, 2019
Remove windows hibernation file from ubuntu
sudo mkdir /mnt/win
sudo mount -t ntfs-3g /dev/sda2 /mnt/win -o remove_hiberfile
View teknobyen.js
const puppeteer = require("puppeteer");
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto("", { waitUntil: "networkidle2" });
await page.content();
const menu = await page.evaluate(() => {
const weekdays = ["Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag"];
return [...document.querySelectorAll(".c-food-menu")].map(m => {
You can’t perform that action at this time.