/allowed-tools
: customize tool perms/terminal-setup
: enable shift + enter to insert new lines/install-github-app
: Tag@claude
on issues and PRs/theme
: enable light/dark mode/config
: turn on notifications (turn on MacOS dictation)
- plan mode
directive @requiredCapabilities( | |
requiredCapabilities: [String!] | |
) on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION | |
""" | |
Marks an element of a GraphQL schema as only available via a preview header | |
""" | |
directive @preview( | |
""" | |
The identifier of the API preview that toggles this field. |
from abc import abstractmethod | |
from collections import defaultdict | |
from dataclasses import dataclass | |
from typing import Any | |
from typing import Union | |
@dataclass(frozen=True) | |
class Event: | |
name: str |
This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).
Running this script should look the same in tmux as without.
curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
bash 24-bit-color.sh
defmodule TestHelper do | |
defmacro __using__(_opts) do | |
quote do | |
import ExUnit.Assertions, only: [assert: 1] | |
# we can name this whatever we'd like, | |
# but "is" makes sense to me in most cases | |
# 👇 | |
def is(result, expectation) do | |
assert result == expectation |
Uses native vim regexes (which are slightly different from the regexes used by grep, ack, ag, etc) so the patterns are the same as with vim's within-file search patterns.
You can do a normal within-file search first, then re-use the same pattern to
'queue implemented with a list (dyanmic array) with O(n) time operations' | |
class Queue: | |
def __init__(self): | |
self.data = [] # using a python list here instead of array (we need dynamic sizing) | |
def enqueue(self, item): | |
self.data.append(item) | |
def dequeue(self): | |
remaining = self.data[1:] # slices from index 1 to the end of the list |