Skip to content

Instantly share code, notes, and snippets.

View levity's full-sized avatar

Lawrence Wang levity

View GitHub Profile
// before: store/selectors/getPost.js
const getPost = ormCreateSelector(
state => state,
state => orm.session(state.orm),
(state, props) => props.id,
(state, session, id) => {
try {
const post = session.Post.get({id})
return {

Keybase proof

I hereby claim:

  • I am levity on github.
  • I am lwang (https://keybase.io/lwang) on keybase.
  • I have a public key ASCy3-ThBgbEoTuSBit5xQJxosWcpg_ljf-GRFHqlxSkogo

To claim this, I am signing this object:

0x217ba17fd9049fe37abd27222d96bafd833296844e56b07f7c809f7c236610ba

@levity
levity / figma-debug-start.sh
Created April 25, 2026 00:49
patch Figma.app to allow remote debugging
#!/bin/bash
# figma-debug-start
# Stand-alone launcher: patches Figma (if needed) and starts with remote debugging.
# - No dependency on this repo's JS files
# - No dependency on project working directory
# - No automatic package installation (safer for supply-chain)
# - If CDP is already reachable, it does NOT restart Figma
set -euo pipefail