- 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
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
# 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 | |
# --------------- |
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
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; |
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
{% 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 %} |
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
accent: "#8096B5" | |
background: "#111620" | |
details: darker | |
foreground: "#8096B5" | |
terminal_colors: | |
bright: | |
black: "#64748B" | |
blue: "#93C5FD" | |
cyan: "#67E8F9" | |
green: "#6EE7B7" |
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
{ | |
"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 | |
}, |
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
<?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> |