Skip to content

Instantly share code, notes, and snippets.

View jamiechapman's full-sized avatar
:shipit:

Jamie Chapman jamiechapman

:shipit:
View GitHub Profile
@deanmcpherson
deanmcpherson / super.js
Last active February 12, 2024 20:12
super quick and dirty code embed support
//<script>
function clearBlock(el) {
const node = el.parentElement.parentElement;
node.innerHTML = '';
return node;
}
const SELECTOR = 'code:not([super-embed-seen])';
function setupEmbeds() {
@williewillus
williewillus / grammar.js
Last active November 4, 2017 15:08
loot table grammar
{
"pools": [ <lootpool> ... ] // Every pool is queried by the table the number of times specified in "rolls"
}
-------------
<lootpool> == {
"name": <autogenerated for vanilla pools | table-unique name for this pool>
"conditions": [ <lootcondition> ... ],
"rolls": <randomvaluerange>