Skip to content

Instantly share code, notes, and snippets.

@BriSeven
BriSeven / Hormones.dot
Last active January 28, 2024 08:59
A graph of hormones, what produces them, what they convert to, and their effects.
digraph hormones {
rankdir=LR;
node [shape=box, style=filled];
edge [color=black, arrowhead=vee];
// organs
subgraph cluster_organs {
HTMLElement.prototype.$ = function (selector) { return this.querySelectorAll(selector) }
HTMLElement.prototype.attr = function (selector) { return this.getAttribute(selector) }
NodeList.prototype.map = Array.prototype.map
function htmlToText (node) {
if(node.childNodes.length > 1) {
return node.childNodes.map(htmlToText).join('');
}
switch(node.tagName) {
case 'P':
@BriSeven
BriSeven / popovers.userscript.js
Created March 10, 2021 05:07
get rid of popovers userscript
// ==UserScript==
// @name kill overlays
// @description This is your new file, start writing code
// @match *://*.*
// ==/UserScript==
let style = document.createElement('STYLE');
style.textContent=`
@BriSeven
BriSeven / 2020-02.md
Last active March 1, 2021 06:14
Links feb
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head>
<title>Tarot</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="bear-note-unique-identifier" content="94B33631-8C1A-4380-9CE9-726F04F625AC-17396-00009332F8815CE0">
<meta name="created" content="2020-12-14T18:30:50+1100"/>
<meta name="modified" content="2021-01-07T17:09:47+1100"/>
<meta name="tags" content="takeout"/>
@BriSeven
BriSeven / procgen.markdown
Created November 13, 2020 22:25
Links about procedural generation