Skip to content

Instantly share code, notes, and snippets.

@Alzemiro
Alzemiro / system.yaml
Created September 26, 2020 22:50
Riot Games
---
app:
app_name: LeagueClient
local_settings_file: Config/LeagueClientSettings.yaml
log_dir: LeagueClient Logs
project: leagueclient
respawn:
command: LeagueClient.exe
display_name: League of Legends
splash: lol
@Kavan72
Kavan72 / endpoints.txt
Last active October 31, 2025 07:46
Valorant endpoints
[PlayerFeedback_CheckForSurvey] POST
[PlayerFeedback_SendAnswers] POST
[PatchNotes_GetPatchNotes] GET
[AggStats_Fetch] GET
[AccountXP_GetPlayer] GET https://pd.ap.a.pvp.net/account-xp/v1/players/{user_id}
[Config_FetchConfig] GET https://shared.ap.a.pvp.net/v1/config/ap
@t3dotgg
t3dotgg / try-catch.ts
Last active October 30, 2025 20:51
Theo's preferred way of handling try/catch in TypeScript
// Types for the result object with discriminated union
type Success<T> = {
data: T;
error: null;
};
type Failure<E> = {
data: null;
error: E;
};
#!/usr/bin/env zsh
# Multi-project worktree manager with Claude support
#
# ASSUMPTIONS & SETUP:
# - Your git projects live in: ~/projects/
# - Worktrees will be created in: ~/projects/worktrees/<project>/<branch>
# - New branches will be named: <your-username>/<feature-name>
#
# DIRECTORY STRUCTURE EXAMPLE:
# ~/projects/
#!/usr/bin/env zsh
# Worktree Manager (zsh) — v2
# - Sourceable from .zshrc (no copy/paste edits needed)
# - Auto-detects current git repo (no <project> arg)
# - Supports deep trees (mirrors repo path under W_WORKTREES_DIR)
# - Trailing-slash normalization + newline-safe parsing
# - Safer branch handling (reuse local/remote if present)
# - Inline completion (no external file)
# =========