- download patchwork client: https://github.com/ssbc/patchwork/releases (on linux: chmod +x the AppImage file and run it)
- get an invite from a "pub": http://ssb.hypersignal.xyz/invited
- find me by searching for:
- my public key: @XLsfMrSXsuet590kR5I6SZ0jUDxhUPQWoVSy6loX1mI=.ed25519 (
@is optional?) - my handle: @aguestuser
- my public key: @XLsfMrSXsuet590kR5I6SZ0jUDxhUPQWoVSy6loX1mI=.ed25519 (
- docs: https://www.scuttlebutt.nz
This file contains hidden or 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 | |
| input=$(cat) | |
| # Dracula theme: https://draculatheme.com/contribute | |
| PURPLE='\033[38;2;189;147;249m'; CYAN='\033[38;2;139;233;253m'; ORANGE='\033[38;2;255;184;108m' | |
| RED='\033[38;2;255;85;85m'; PINK='\033[38;2;255;121;198m'; GREEN='\033[38;2;80;250;123m' | |
| COMMENT='\033[38;2;98;114;164m'; DIM='\033[38;2;68;71;90m'; RESET='\033[0m' | |
| model=$(echo "$input" | jq -r '.model.display_name // empty') | |
| used_pct=$(echo "$input" | jq -r '.context_window.used_percentage // empty') | |
| ctx_size=$(echo "$input" | jq -r '.context_window.context_window_size // 0') |
This file contains hidden or 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 | |
| # Usage: write-workplan.sh <claude-pid> <plan-names...> | |
| # Call as: ~/.claude/write-workplan.sh $PPID plan-name.md | |
| # $PPID is expanded by the calling shell (where it equals the Claude Code PID). | |
| pid="$1"; shift | |
| echo "$*" > "/tmp/claude-workplan-$pid" |
This file contains hidden or 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 OAuthSignupHandlers | |
| extend ActiveSupport::Concern | |
| def classify_person | |
| if @person = Person.find_by_email(@auth.info.email) | |
| classify_existing_person | |
| elsif @person = Person.build_from_oauth_signup(@auth) | |
| NewMember | |
| else | |
| Invalid |
This file contains hidden or 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
| # USAGE: | |
| # cd /path/to/sideload-signal.sh | |
| # chmod +x sideload-signal.sh | |
| # ./sideload-signal.sh | |
| # DEPENDENCIES: | |
| # * Android Debug Bridge | |
| # (install with: `sudo apt install adb`) |
This file contains hidden or 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
| package org.osmdroid.tileprovider.tilesource; | |
| import org.osmdroid.tileprovider.MapTile; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| public class TileSourceFactory { | |
| // private static final Logger logger = LoggerFactory.getLogger(TileSourceFactory.class); |
This file contains hidden or 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 _ from 'lodash'; | |
| import fs from 'fs'; | |
| /** | |
| * FILENAME: `makeFolders.js` | |
| * USAGE: `babel-node makeFolders <rootFolder> <startMonth> <endMonth>` | |
| */ | |
| const pad = (num) => num < 10 ? `0${num}` : num; | |
| const has30 = (month) => _.contains([4, 6, 9, 11], month); |
This file contains hidden or 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
| // main loop | |
| // run with `node scratchpad some arguments` (from same directory) | |
| (function (){ | |
| var args = process.argv; | |
| console.log(wrapInEverything(args[2])); | |
| // teaser for later: what will lines 11-13 do? | |
| // what about lines 15-17? |
This file contains hidden or 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 android.text.SpannableString; | |
| import android.text.util.Linkify; | |
| import java.util.regex.Matcher; | |
| import java.util.regex.Pattern; | |
| public class Text { | |
| // takes arbitrary string and wraps arbitrary substring with an arbtitrary URL | |
| public static SpannableString linkify(String txt, String linkTxt, String scheme, String url) { | |
| SpannableString s = new SpannableString(txt); |
NewerOlder