Skip to content

Instantly share code, notes, and snippets.


A "node" is an element that looks like this:

    "type": "root|literal|argument",
    "parser": "", // only applicable if type is argument
    "properties": {}, // only applicable if type is argument, defaults to empty object
    "executable": true, // default if not specified is false, meaning it isn't a runnable command by itself
    "children": {}, // default if not specified is {}, meaning no children
    "redirect": [] // default if not specified is null, meaning no redirect
spiralray / caputuremap.user.js
Last active Jul 2, 2020
Capture the IntelMap
View caputuremap.user.js
// ==UserScript==
// @id iitc-plugin-CaptureMap@spiralray
// @name IITC plugin: CaptureMap
// @category Info
// @version 0.0.2
// @namespace
// @description [spiralray-2016-11-23-235400] Capture map
// @include*
// @include*
// @match*
isnot / adj-portalname-fontsize.user.js
Last active Jul 8, 2021
View adj-portalname-fontsize.user.js
// ==UserScript==
// @id iitc-plugin-adj-portalname-fontsize@isnot
// @name IITC plugin: adj-portalname-fontsize
// @category Tweak
// @version 0.2
// @namespace
// @author isnot
// @updateURL none
// @downloadURL none
// @description [iitc-plugins] adj portal name fontsize
milessabin / singleton-only.scala
Created Jun 6, 2016
Scala type which can only be extended by an object, not by a non-abstract type ...
View singleton-only.scala
scala> class Foo { self: Singleton => }
defined class Foo
scala> class Bar extends Foo
<console>:12: error: illegal inheritance;
self-type Bar does not conform to Foo's selftype Foo with Singleton
class Bar extends Foo
scala> object Bar extends Foo
tigerhawkvok / restartAudio.bat
Created Mar 4, 2016
Restart Windows Audio Service (with admin permissions, if needed)
View restartAudio.bat
rem Written for buggy audio drivers that need to be restarted
rem In my case, the Claro 8.18 drivers bug out every once in a while on Windows 10, and need restarting to not sound poppy
@echo off
goto check_Permissions
echo Administrative permissions required to run this script. Checking...
net session >nul 2>&1
williewillus /
Last active Dec 20, 2020
1.8.9 to 1.9 quick primer
bittner / 60-jetbrains.conf
Created Sep 25, 2015
Inotify configuration for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm). Create this file with e.g. `sudo vim /etc/sysctl.d/60-jetbrains.conf`
View 60-jetbrains.conf
# Set inotify watch limit high enough for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm).
# Create this file as /etc/sysctl.d/60-jetbrains.conf (Debian, Ubuntu), and
# run `sudo service procps start` or reboot.
# Source:
# More information resources:
# -$ man inotify # manpage
# -$ man sysctl.conf # manpage
# -$ cat /proc/sys/fs/inotify/max_user_watches # print current value in use