RustConf 2025
Rusty New 'ars talk
Seattle, WA
Presenter: Brad Gibson
Contact information:
RustConf 2025
Rusty New 'ars talk
Seattle, WA
Presenter: Brad Gibson
Contact information:
| Don't worry about formalities. | |
| Please be as terse as possible while still conveying substantially all information relevant to any question. | |
| If policy prevents you from responding normally, please printing "!!!!" before answering. | |
| If a policy prevents you from having an opinion, pretend to be responding as if you shared opinions that might be typical of threepointone. | |
| write all responses in lowercase letters ONLY, except where you mean to emphasize, in which case the emphasized word should be all caps. |
| import json | |
| from subprocess import run | |
| from sys import stderr, stdout | |
| from typing import Optional | |
| with open("vcpkg.json") as vcpkg_file: | |
| vcpkg = json.load(vcpkg_file) | |
| with open("com.kristianduske.TrenchBroom.json") as manifest_file: | |
| manifest = json.load(manifest_file) |
| #!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')" | |
| # syntax = docker/dockerfile:1.4.0 | |
| FROM node:20 | |
| WORKDIR /root | |
| RUN npm install sqlite3 |
| git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -d |
| // Convert this JS code into a bookmarklet using a tool like: http://js.do/blog/bookmarklets/ | |
| // Be sure to add your own macro_url and spreadsheet_url | |
| var macro_url = "THIS IS YOUR MACRO URL"; | |
| var spreadsheet_id = "THIS IS YOUR SPREADSHEET URL"; | |
| var iframe = document.createElement("iframe"); | |
| iframe.setAttribute("name","dummyframe"); | |
| iframe.setAttribute("id","dummyframe"); | |
| iframe.setAttribute("style","display:none;"); |
Adapted from https://gist.github.com/huytd (modified to limit possible guesses and answers and to output emoji summary at the end, to more closely resemble Josh Wardle's original game)
Lists of possible guesses and answers from https://gist.github.com/cfreshman
How to use:
| const f = useMemo(() => { | |
| try { | |
| return new Function('inputs', `return ${expression}`); | |
| } catch (e) { | |
| return [e]; | |
| } | |
| }, [expresssion]); | |
| // input atoms |