Skip to content

Instantly share code, notes, and snippets.

View taradinoc's full-sized avatar

Tara taradinoc

View GitHub Profile
@taradinoc
taradinoc / order statistic tree.js
Created December 18, 2020 01:46 — forked from davidfurlong/order statistic tree.js
Order statistic tree (Binary Search Tree with Rank and Size)
// Use: var tree = new OST(); tree.select(4); tree.insert(key,value)
var OST = function () {
// Order statistic tree node
var Node = function (leftChild, key, value, rightChild, parent) {
return {
leftChild: (typeof leftChild === "undefined") ? null :
leftChild,
key: (typeof key === "undefined") ? null : key,
value: (typeof value === "undefined") ? null : value,
rightChild: (typeof rightChild === "undefined") ? null :
$.lang.register('retrorole.usage', 'Usage: !retrorole <channel> <msg-id> <emoji> <role>');
$.lang.register('retrorole.added', 'Added role "$1" to $2 user(s) ($3 failed).');
$.lang.register('retrorole.err.channel', 'Cannot find channel "$1".');
$.lang.register('retrorole.err.message', 'Cannot find message "$1" in that channel.');
$.lang.register('retrorole.err.role', 'Cannot find role "$1".');
@taradinoc
taradinoc / do.zil
Created June 19, 2020 02:25
ZIL's DO statement
<ROUTINE GO ()
<TEST-PASCAL-STYLE>
<TEST-C-STYLE>
<TEST-MIXED-STYLE>
<QUIT>>
<CONSTANT C-ONE 1>
<CONSTANT C-TEN 10>
<ROUTINE TEST-PASCAL-STYLE ("AUX" (ONE 1) (TEN 10))
@taradinoc
taradinoc / keybase.md
Created August 20, 2014 12:43
Keybase proof

Keybase proof

I hereby claim:

  • I am taradinoc on github.
  • I am taradinoc (https://keybase.io/taradinoc) on keybase.
  • I have a public key whose fingerprint is D0C5 AF7D 153C 5745 33FC 2E08 737A D37A 6955 7B29

To claim this, I am signing this object: