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 / .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>