Inspired by and is somehow way worse.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 1, | |
"nodes": [ | |
{ | |
"name": "storage", | |
"isDefault": false, | |
"location": { | |
"filename": "file:///home/zicklag/git/muni-town/leaf/src/leaf.ts", | |
"line": 22, | |
"col": 7, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get the snapshot for your doc | |
let snapshot = fetchSnapshot(); | |
// Import your doc | |
const doc = new LoroDoc(); | |
doc.import(snapshot); | |
// NOTE: Make sure that whenever you wrote to the doc you enabled timestamps. | |
// This is important to make sure that we have a simple way to order | |
// changes based on user intuition. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<link rel="icon" href="/favicon.png" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<link rel="canonical" href="{{handle}}" /> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"client_id": "https://gist.githubusercontent.com/zicklag/89bd0c2519757c6d6429390e5fcd222a/raw/client.json", | |
"client_name": "Localhost App", | |
"client_uri": "http://127.0.0.1:8080", | |
"logo_uri": "http://127.0.0.1:8080/public/favicon.ico", | |
"tos_uri": "https://gist.githubusercontent.com/zicklag/89bd0c2519757c6d6429390e5fcd222a#file-tos-md", | |
"policy_uri": "https://gist.githubusercontent.com/zicklag/89bd0c2519757c6d6429390e5fcd222a#file-policy-md", | |
"redirect_uris": ["http://127.0.0.1:8080/auth/callback"], | |
"scope": "atproto", | |
"grant_types": ["authorization_code", "refresh_token"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CMDS=$(mktemp -u) | |
EVENTS=$(mktemp -u) | |
mkfifo "$CMDS" | |
mkfifo "$EVENTS" | |
cat "$EVENTS" > /dev/null & | |
pw-cli < "$CMDS" > "$EVENTS" & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Server } from "https://deno.land/[email protected]/http/server.ts"; | |
const containerName = "bones-matchmaker-main"; | |
const containerImage = "ghcr.io/fishfolk/bones-matchmaker:main"; | |
async function updateContainer() { | |
console.log("Updating container"); | |
// Stop the container if it is already running | |
await Deno.run({ cmd: ["docker", "stop", containerName] }).status(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module dns { | |
type Server = str | |
type Hostname = str | |
type Pubkey = str | |
type Option[a] = | |
| Some(a) | |
| None | |
type Reservation = { hostname: Hostname, pubkey: Pubkey } | |
pure val weirdKey = "weird" |
A simple force-directed graph algorithm ported to Rust, copied from here:
This is a variant of the Exploding Kittens game rules, using regular playing cards
- 1 deck: 3 to 8 players
- 2 decks: up to 16 players
The last survivor wins the game. If you draw a Bomb card and don't have a Disarm card, you die.
NewerOlder