This file contains hidden or 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
| import AgentRepo from './AgentRepo' | |
| class AgentMemoryRepo extends AgentRepo { | |
| load() { | |
| } | |
| } |
This file contains hidden or 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
| export interface AugmentedNode extends Node { | |
| collect(node?: Node): { [key: string]: AugmentedNode } | |
| } | |
| // A helper function to clean up some of the tree iteration code | |
| function createIterator(node: Node) { | |
| // Since #refs can only be on Elements and Texts, limit the iteration to them | |
| // createTreeWalker receives a deprecation warning, node iterator seems to work as well | |
| const i = document.createNodeIterator(node, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_TEXT) | |
| return () => i.nextNode() |
This file contains hidden or 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 vm = require('vm') | |
| const repl = require('repl') | |
| const globals = { | |
| Date, | |
| JSON | |
| } | |
| const state = {} |
This file contains hidden or 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
| git reset --hard PASTCOMMIT | |
| git reset --mixed CURRENTCOMMIT | |
| git commit -m "Message about reversal" |
This file contains hidden or 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
| console.log('installed: need, crave') | |
| crave = m => fetch(`https://wzrd.in/bundle/${m}@latest/`) | |
| .then(r => r.text()) | |
| .then(eval) | |
| .then(() => require(m)) | |
| need = m => {crave(m).then(r => { | |
| window[m] = r | |
| console.log(`installed: ${m}`) | |
| })} |
NewerOlder