My fish
functions, sanitised for public sharing.
Maybe of use to someone.
yank-all
and mw
are particularly likely to be helpful to others.
{ | |
"active_pane_magnification": 1.2, | |
"assistant": { | |
"default_height": 500, | |
"default_model": { | |
"model": "claude-3-7-sonnet-thinking-latest", | |
"provider": "zed.dev" | |
}, | |
"default_width": 500, | |
"dock": "left", |
-- Bootstrap lazy.nvim | |
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" | |
if not (vim.uv or vim.loop).fs_stat(lazypath) then | |
local lazyrepo = "https://github.com/folke/lazy.nvim.git" | |
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) | |
if vim.v.shell_error ~= 0 then | |
vim.api.nvim_echo({ | |
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" }, | |
{ out, "WarningMsg" }, | |
{ "\nPress any key to exit..." }, |
---
description: You are an advanced assistant specialized in generating Cloudflare Workers code. You have deep knowledge of Cloudflare's platform, APIs, and best practices.
globs:
alwaysApply: true
---
# Cloudflare Workers Development Guide
const detectKeyType = (key: string): KeyType => { | |
if (!key.trim()) return null; | |
if ( | |
key.includes("-----BEGIN PRIVATE KEY-----") || | |
key.includes("-----BEGIN RSA PRIVATE KEY-----") || | |
key.includes("-----BEGIN EC PRIVATE KEY-----") | |
) { | |
return "PKCS#8"; | |
} else if (key.includes("-----BEGIN OPENSSH PRIVATE KEY-----")) { |
Thanks! I’ll look into the meaning or origin of the symbol in this stained glass window, which features geometric shapes in blue and yellow and is installed in a residential property. I’ll explore whether it has historical, cultural, architectural, or symbolic significance.
I’ll get back to you shortly with what I find.
The stained glass pattern is composed of bold geometric shapes in textured blue and yellow glass. It features a large yellow triangular form at the bottom, a smaller blue triangle pointing downward in the center, and a yellow “drop”-shaped piece at the top. All the pieces are outlined in dark lead came (the black lines). The design is strikingly simple and symmetric along a vertical axis, giving the impression of an abstract emblem or icon.
#!/usr/bin/env ruby | |
class Person | |
attr_accessor :name, :age | |
def initialize(name, age) | |
@name = name | |
@age = age | |
end | |
@layer base { | |
:root { | |
--background: 233 18% 19%; | |
--foreground: 173 24% 93%; | |
--muted: 233 12% 23%; | |
--muted-foreground: 233 12% 73%; | |
--popover: 233 18% 16%; | |
--popover-foreground: 0 0% 100%; | |
--card: 233 18% 17%; | |
--card-foreground: 173 24% 98%; |
# BEGIN INFORMATION | |
# DEPENDENCIES: | |
# | |
# `fish` - This uses `fish` syntax. It will not work under `bash` or `zsh`. Feel free to port it. | |
# `gh` - GitHub CLI. Make sure this is installed and logged in. | |
# `gcloud` - Google Cloud CLI. Make sure this is installed and logged in. | |
# | |
# INSTRUCTIONS: | |
# |
[env] | |
EDITOR = 'code --wait' | |
MISE_ACTIVE = 'true' | |
[settings] | |
all_compile = true | |
asdf_compat = true | |
auto_install = true | |
color = true | |
env_file = '.env' |