Skip to content

Instantly share code, notes, and snippets.

@splintor
splintor / puzzle.js
Created September 25, 2018 04:04
My adventofcode solutions
function machine(s) {
const steps = s.split(/[\r\n]+/).map(l => Number(l));
let counter = 0, index = 0;
while (index < steps.length) {
const step = steps[index];
++steps[index];
index += step;
++counter;
}
@splintor
splintor / codemonster.user.js
Last active December 20, 2018 21:25
User script for translating Code Monster and Code Maven to Hebrew [Work in progress]
// ==UserScript==
// @name Translate Code Monster and Code Maven to Hebrew - Work in progress
// @namespace splintor.userscript.org
// @description Translate Crunchzilla\'s Code Monster and Code Maven to Hebrew, using a feminine form. Still need to finish translating...
// @include http://www.crunchzilla.com/*
// @author: Shmulik Flint ([email protected])
// @updateUrl https://gist.github.com/splintor/375765738b6db548bb4f355e7fa35cd6/raw
// @version 0.8.6
// ==/UserScript==
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\myname\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'i',
1 verbose cli '\\\\path\\to\\my\\package\\dir' ]
2 info using [email protected]
3 info using [email protected]
4 silly install loadCurrentTree
5 silly install readLocalPackageData
6 silly pacote directory manifest for undefined@file://path/to/my/package/dir fetched in 24ms