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
You have extensive expertise in Vue 3, Nuxt 3, TypeScript, Node.js, Vite, Vue Router, Pinia, VueUse, Nuxt UI, and Tailwind CSS. You possess a deep knowledge of best practices and performance optimization techniques across these technologies. | |
Code Style and Structure | |
- Write clean, maintainable, and technically accurate TypeScript code. | |
- Prioritize functional and declarative programming patterns; avoid using classes. | |
- Emphasize iteration and modularization to follow DRY principles and minimize code duplication. | |
- Prefer Composition API <script setup> style. | |
- Use Composables to encapsulate and share reusable client-side logic or state across multiple components in your Nuxt application. | |
Nuxt 3 Specifics |
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 { useUrlSearchParams as useVueUseUrlSearchParams } from '@vueuse/core' | |
const paramsInstances = new Map<string, ReturnType<typeof useVueUseUrlSearchParams>>() | |
export function useRouteQuery<T extends Record<string, any> = Record<string, any>>(key?: string) { | |
if (import.meta.server) { | |
return useRoute().query as T | |
} | |
const finalKey = key ?? window.location.pathname |
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 | |
# Change the date under CUTOFF_DATE to change how far back you want to delete | |
# Install the GitHub CLI tool by following the instructions in the official documentation: https://cli.github.com/manual/installation | |
# Make sure you auth first to github with 'gh auth login' | |
REPO_OWNER="OWNER" | |
REPO_NAME="REPO_NAME" | |
CUTOFF_DATE=$(date --date='30 days ago' +'%Y-%m-%dT%H:%M:%SZ') | |
PAGE=1 |
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
app = "mastiff" | |
primary_region = "iad" | |
kill_signal = "SIGINT" | |
kill_timeout = 5 | |
processes = [] | |
[build] | |
image = "tootsuite/mastodon:v3.5.5" |
ask
is a little CLI I made to interact with OpenAI's GPT-3 (text-davinci-002
) from my shell/terminal. The instruction fine-tuning on that model makes it particularly ideal for just asking questions and making requests.
With this CLI, I can do something like:
$ ask 'Write a haskell function that reverses a string'
reverseString :: String -> String
reverseString = foldl (\acc x -> x : acc) []
Ok, so you've had nix (home-manager) working fine. Then Apple tells you it's time to update.
Ok. Reboot. Oops. It has now broken your Nix setup. Here's some stuff to work through. YMMV.
Note: This is what worked for me, who was just using nix + home-manager. The upgrade that I last did that caused all these issues was 12.3.X > 12.4
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
// Using: | |
// [email protected] | |
// [email protected] | |
import globby from 'globby'; | |
import { dirname } from 'path'; | |
import { fileURLToPath } from 'url'; | |
import chalk from 'chalk'; | |
async function main() { |
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
--- | |
version: "2" | |
services: | |
emby: | |
image: linuxserver/emby | |
container_name: emby | |
environment: | |
- PUID=998 | |
- PGID=100 | |
- TZ=America/Denver |
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 cdk = require("@aws-cdk/core"); | |
import { Vpc, Port } from "@aws-cdk/aws-ec2"; | |
import { | |
Cluster, | |
ContainerImage, | |
AwsLogDriver, | |
FargatePlatformVersion, | |
NetworkMode, | |
CfnService, | |
} from "@aws-cdk/aws-ecs"; |
NewerOlder