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
//https://www.conwaylife.com/wiki/Rule_integer | |
//https://www.conwaylife.com/wiki/Black/white_reversal | |
var rule_integer = 6152; // conway's game of life | |
function reverse_bits(bits, size) { | |
let i = 0 | |
let reversed = 0 | |
let last | |
while (i < size) { |
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 YouTube - Open wikia link for rip | |
// @namespace brubsby.com | |
// @description script to open the respective rip wikia page from a SiIvaGunner/TimmyTurnersGrandDad/VvvvvaVvvvvvr youtube watch page. | |
// @include http://www.youtube.com/watch* | |
// @include https://www.youtube.com/watch* | |
// @include http://youtube.com/watch* | |
// @include https://youtube.com/watch* | |
// @include http://youtube.com/* | |
// @include https://youtube.com/* |
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 xp diff | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description paste the exact diff of your xp when looking at your runemetrics profile json | |
// @author brubsby | |
// @match https://apps.runescape.com/runemetrics/profile/profile* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=runescape.com | |
// @grant GM_setValue | |
// @grant GM_getValue |
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
// peggy grammar to parse an esoteric date format shorthand named pellet | |
// year day of month hour of day (0-23) | |
// v v v | |
// [0-9]{0,4}[a-lA-L]{1}[0-9]{1,2}[a-dA-D]{0,1}[0-9]{0,2} | |
// ^ ^ | |
// month (1-12 as char) char quarter hour (00,15,30,45) | |
// | |
// example: 22E6D14 | |
// 2022 May 6 14:45 | |
// |
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
function: MOD saving throw dc DC { | |
result: d20+MOD < DC | |
} | |
function: ATTACK attack vs AC { | |
result: d20+ATTACK >= AC | |
} | |
function: true or half SUCCESS DAMAGE { | |
result: DAMAGE / (2 - SUCCESS) |
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
function: MOD saving throw dc DC { | |
result: d20+MOD < DC | |
} | |
function: ATTACK attack vs AC { | |
result: d20+ATTACK >= AC | |
} | |
function: true or half SUCCESS DAMAGE { | |
result: DAMAGE / (2 - SUCCESS) |
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
function: MOD saving throw dc DC { | |
result: d20+MOD < DC | |
} | |
function: ATTACK attack vs AC { | |
result: d20+ATTACK >= AC | |
} | |
function: true or half SUCCESS DAMAGE { | |
result: DAMAGE / (2 - SUCCESS) |