Skip to content

Instantly share code, notes, and snippets.

Format: JSON
Protocol: HTTP
Type: Post (always Post, or just for transactions? Can I GET a query as well?)
Concept: Query
---
Protocol Method
(Concept)
---
HTTP Post
(Query)
// node clobber.mjs -> demonstrate common filesystem anti-pattern that creates race conditions
// node clobber.mjs safe -> demonstrate safe filesystem manipulation
import cluster from 'cluster';
import process from 'process';
import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
import { ReactiveController, LitElement } from 'Lit';
/*
class Component extends LitElement {
bounds = new BoundsControllerBasic(this);
render() {
// use this.bounds.width, this.bounds.height
}
@hunterloftis
hunterloftis / decksetup.sh
Last active August 14, 2022 17:41
steam deck custom setup for development
#!/usr/bin/env bash
set -euxo pipefail
# Idempotent deck setup script
# Expects to live with other dotfiles:
# - ~/.bashrc
# - ~/.flat/docker
# - ~/.flat/docker-compose
# ref: https://askubuntu.com/a/30157/8698