Skip to content

Instantly share code, notes, and snippets.

View marcoaubr's full-sized avatar
👽

Marco Aurélio marcoaubr

👽
View GitHub Profile
@FeepingCreature
FeepingCreature / youre_doing_json_apis_wrong.md
Last active March 14, 2025 09:16
You Are Doing JSON APIs Wrong

You are doing JSON APIs wrong.

When you use JSON to call an API - not a REST API, but something like JSON-RPC - you will usually want to encode one of several possible messages.

Your request body looks like this:

{
 "type": "MessageWithA",
@guest271314
guest271314 / javascript_engines_and_runtimes.md
Last active December 18, 2025 17:11
A list of JavaScript engines, runtimes, interpreters

V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++. It is used in Chrome and in Node.js, among others. It implements ECMAScript and WebAssembly, and runs on Windows 7 or later, macOS 10.12+, and Linux systems that use x64, IA-32, ARM, or MIPS processors. V8 can run standalone, or can be embedded into any C++ application.

SpiderMonkey is Mozilla’s JavaScript and WebAssembly Engine, used in Firefox, Servo and various other projects. It is written in C++, Rust and JavaScript. You can embed it into C++ and Rust projects, and it can be run as a stand-alone shell. It can also be [compiled](https://bytecodealliance.org/articles/making-javascript-run-fast-on

# -----------------------------------------------------------------------------
# AI-powered Git Commit Function
# gets the current staged changed diff
# sends that to the LLM, and generates a message.
# Copy paste this gist into your ~/.bashrc or ~/.zshrc to gain the `gcm` command. It:
# the `llm` CLI util is awesome, can get it here: https://llm.datasette.io/en/stable/
# The command is "gcm"