Skip to content

Instantly share code, notes, and snippets.

View oakes's full-sized avatar

Zach Oakes oakes

View GitHub Profile
@oakes
oakes / bug.nim
Last active February 20, 2021 10:17
# to build this with emscripten, you need emsdk on your PATH.
# first, clone https://github.com/emscripten-core/emsdk
# then in that repo run:
# ./emsdk install latest
# ./emsdk activate latest
# and then add the directories it prints out to your PATH
#
# then in this repo run:
# nim c -d:emscripten bug.nim
#

Did you know nim can eval itself at runtime like a frickin scripting language?

Clone this gist and do...

nimble install compiler
nim c -r nimeval.nim

...and you should see:

@oakes
oakes / bbs.ansiwave
Last active June 14, 2021 19:58
Ideas for a modern, decentralized BBS
██╗██████╗ ███████╗ █████╗ ███████╗ ███████╗ ██████╗ ██████╗ █████╗
██║██╔══██╗██╔════╝██╔══██╗██╔════╝ ██╔════╝██╔═══██╗██╔══██╗ ██╔══██╗
██║██║ ██║█████╗ ███████║███████╗ █████╗ ██║ ██║██████╔╝ ███████║
██║██║ ██║██╔══╝ ██╔══██║╚════██║ ██╔══╝ ██║ ██║██╔══██╗ ██╔══██║
██║██████╔╝███████╗██║ ██║███████║ ██║ ╚██████╔╝██║ ██║ ██║ ██║
╚═╝╚═════╝ ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝
_______________________________________
|,---"-----------------------------"---,|
||___ ............................ ||