A dump taken 2022-02-19 of the NY Times version of the Wordle dictionary, suitable for installation as /usr/share/dict/wordle
.
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
from __future__ import annotations | |
import ast | |
import sys | |
from pathlib import Path | |
__all__ = ["remove_annotations"] | |
class AnnotationRemovalTransformer(ast.NodeTransformer): |
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
# shellcheck shell=sh enable=all | |
# ~/.config/direnv/lib/layout_python_hatch.sh | |
# direnv config plugin for hatch | |
# https://direnv.net | |
fail() { | |
[ "$#" != "0" ] || set -- FAIL | |
echo >&2 "$@" | |
return 1 | |
} |
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
if [[ -o login && -o interactive ]]; then | |
ssh-add -q --apple-load-keychain | |
fi |
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
# WARNING: requires macos_paths.plugin.zsh | |
typeset -x HOMEBREW_PREFIX=$(brew --prefix) | |
typeset -x HOMEBREW_CELLAR=/usr/local/Cellar | |
typeset -x HOMEBREW_REPOSITORY=/usr/local/Homebrew | |
infopath=(/usr/local/share/info "${infopath[@]}") | |
manpath=(/usr/local/share/man "${manpath[@]}") | |
path=(/usr/local/bin /usr/local/sbin "${path[@]}") |
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
typeset -xUT PATH path : | |
typeset -xUT MANPATH manpath : | |
typeset -xUT INFOPATH infopath : | |
eval "$(/usr/bin/env -i PATH= MANPATH= INFOPATH= /usr/libexec/path_helper -s)" |
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
if case $(uname) in | |
Linux) | |
XDG_CONFIG_DIRS=/etc/xdg | |
XDG_BIN_HOME=~/.local/bin | |
XDG_CACHE_HOME=~/.cache | |
XDG_DATA_DIRS=/usr/local/share:/usr/share | |
XDG_CONFIG_HOME=~/.config | |
XDG_DATA_HOME=~/.local/share | |
XDG_RUNTIME_DIR=/run/user/$(id -u) | |
XDG_STATE_HOME=~/.local/state |
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
package demo | |
import ( | |
"context" | |
"net/http" | |
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime" | |
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp" | |
"go.opentelemetry.io/otel" | |
"go.opentelemetry.io/otel/propagation" |
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
@doc """ | |
Forge links between spans. | |
Preferred, but not supported by our reporter: | |
:PARENT_LINKED_SPAN | |
|> :oc_span.link(link_trace_id, link_span_id, %{}) | |
|> :oc_trace.add_link(span_ctx) | |
... but that's ok, [Honeycomb can link using the attributes of extra spans][send-links]. |
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
# Flash configured LEDs on boot. | |
import aiko.led | |
import time | |
import binascii | |
DURATION_MS = 100 | |
COLOURS = ["e40303", "ff8c00", "ffed00", "008026", "004dff", "750787"] | |
GAMMAS = [v for v in binascii.a2b_base64(b"".join([ | |
# Overkill, but I wanted the orange to look orange. |
NewerOlder