Skip to content

Instantly share code, notes, and snippets.

View joshistoast's full-sized avatar
🪓
Breaking everything

Josh Corbett joshistoast

🪓
Breaking everything
View GitHub Profile
@joshistoast
joshistoast / copilot-instructions.md
Created May 13, 2025 20:18
Copilot Instructions

Copilot Instructions

I. Foundational Principles

  • Codebase Consistency: While it's strongly recommended to follow this document's guidelines, take into account the existing codebase's conventions and practices so as not to introduce inconsistent styles or patterns with the rest of the codebase. If the existing codebase has established conventions, prioritize those over the guidelines in this document.
  • Single Responsibility Principle (SRP): Each function, class, or module should have one distinct responsibility and a single reason to change. Avoid creating monolithic entities that handle too many concerns.
  • DRY (Don't Repeat Yourself): Strive to eliminate redundancy. Abstract common logic, patterns, or values into reusable functions, modules, components, or variables.
  • Focused Implementation: Strictly address the current task as defined in the prompt. Do not modify unrelated code or introduce scope creep unless explicitly asked.
  • Code Quality & Maintainability: Consist
@joshistoast
joshistoast / .zshrc
Last active January 27, 2025 17:26
Personal zshrc config
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# ---------------
# Paths
# ---------------
@joshistoast
joshistoast / marquee.js
Created August 16, 2024 20:42
Marquee Shenannigans
if (!customElements.get('smooth-marquee')) {
customElements.define(
'smooth-marquee',
class SmoothMarquee extends HTMLElement {
constructor() {
super();
/** @type {HTMLDivElement | null} */
this.marqueeWrap = null;
/** @type {NodeListOf<HTMLDivElement> | null} */
this.marqueeSegments = null;
{% comment %}
Renders badges for a product
Accepts:
- product: {Object} The product object (required)
- use_variant: {Boolean} Renders selected or first variant badges instead of overall product badges (optional)
Usage:
{% render 'product-badges', product: product %}
{% endcomment %}
@joshistoast
joshistoast / bearded_arc_reversed.yaml
Created January 23, 2023 14:46
Bearded Arc Reversed Warp Theme
accent: "#8096B5"
background: "#111620"
details: darker
foreground: "#8096B5"
terminal_colors:
bright:
black: "#64748B"
blue: "#93C5FD"
cyan: "#67E8F9"
green: "#6EE7B7"
@joshistoast
joshistoast / joshs-iterm-profile.json
Created June 2, 2022 00:18
Josh's iTerm Profile
{
"Working Directory" : "\/Users\/josh",
"Prompt Before Closing 2" : false,
"Selected Text Color" : {
"Red Component" : 0.92549419403076172,
"Color Space" : "sRGB",
"Blue Component" : 0.94509154558181763,
"Alpha Component" : 1,
"Green Component" : 0.94277165646235517
},
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.3333333432674408</real>