This file contains 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
// ==UserScript== | |
// @name DGG Scripts | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Random scripts modifying DGG and DGG chat | |
// @author Matthew Roseman | |
// @match *://*.destiny.gg/embed/chat* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=destiny.gg | |
// @grant none | |
// @run-at document-start |
This file contains 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
" General | |
syntax on | |
let mapleader = '-' | |
let python_highlight_all=1 | |
set nocompatible | |
filetype off | |
set backspace=indent,eol,start | |
set encoding=utf-8 | |
set nu | |
set fileformat=unix |
This file contains 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
class A: | |
def foo(self): | |
print('A foo method') | |
def bar(self): | |
print('A bar method') | |
class B(A): | |
def foo(self): |
This file contains 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
const util = require('util'); | |
const setImmediatePromise = util.promisify(setImmediate); | |
class RadixNode { | |
constructor(edgeLabel, isWord=false) { | |
this.edgeLabel = edgeLabel; | |
this.children = {}; | |
this.isWord = isWord; | |
} |