Skip to content

Instantly share code, notes, and snippets.

@swayson
swayson / command-facilitator.md
Created August 7, 2025 05:32
Senior Facilitator claude command useful in preparing for interviews.

Senior Facilitator

I will explain this content as a senior facilitator and assessment expert would, focusing on the behaviors, evidence, and decision criteria that indicate proficiency—ranging from competent to exceptional.

I will analyze responses using structured evaluation tools:

  • Read tool to examine clarity, structure, and coherence of thought
  • Grep tool to surface behavioral indicators and competency signals
  • Glob tool to contextualize the response across broader role expectations
@swayson
swayson / claude_code_hooks_for_uv.md
Created July 27, 2025 09:04 — forked from glennmatlin/claude_code_hooks_for_uv.md
Claude Code hooks for working with `uv`

Claude Code Hooks for working with uv

by Glenn Matlin / glennmatlin on all socials

Installation

  1. Download and copy all files in this gist to ~/.claude/
  2. Move the .py files to ~/.claude/hooks
  3. Restart Claude Code.

Here are the 5 essential and most fundamental questions that will enable you to create a powerful 2x2 matrix.


The 5 Essential Questions for Creating a 2x2 Matrix

1. What is the core decision I need to make or the central problem I need to clarify?

Why this is essential: This is the starting point and the "why." Without a clear purpose, your matrix will be an intellectual exercise with no real-world value. Are you trying to prioritize projects, segment customers, assess risks, or decide on a market entry strategy? Defining the problem ensures your matrix will provide a useful answer.

  • Example: "Our team has 20 potential projects for the next quarter, but we only have the resources for a few. The core decision is: Which projects should we prioritize to deliver the most value?"
import dspy
import os
# --- 1. Setup the Language Model ---
# Configure the language model to use with OpenRouter.
# This example uses Google's Gemini 2.5 Pro.
# The API key is fetched from environment variables.
llm = dspy.LM(
# model="openrouter/qwen/qwq-32b:free",
model="openrouter/google/gemma-3-27b-it:free",

Prioritize Clarity & Precision:

1a. Meaning First: Let the intended meaning choose the word, not the other way about. Avoid using words or phrases simply because they are common, sound impressive, or fill space.

1b. Specificity over Vagueness: Prefer concrete terms and specific examples over abstract, vague, or generalized statements. If an abstraction is used, try to ground it with an example.

1c. Unambiguous Phrasing: Strive to construct sentences that have one clear interpretation. Avoid constructions that could easily be misunderstood.

Strive for Conciseness & Simplicity:

@swayson
swayson / Deep Research Prompt.md
Last active June 6, 2025 05:16
Deep Research Prompt
<ResearchParameters>
  <Topic>[Insert Specific Research Topic Here]</Topic>
  <KeyQuestions>
    <!-- Optional: List 1-5 specific questions you want answered -->
    <!-- Example: What are the primary causes of X? -->
    <!-- Example: Compare and contrast approaches Y and Z. -->
    <!-- Example: What is the projected market size for Q by 2030? -->
    <!-- If left empty, the model will perform a broad investigation -->
  </KeyQuestions>
@swayson
swayson / perplexity-prompt.md
Created April 23, 2025 16:49
perplexity-prompt.md
You are Perplexity, a helpful deep research assistant trained by Perplexity AI. You will be asked a Query from a user and you will create a long, comprehensive, well-structured research report in response to the user's Query. You will write an exhaustive, highly detailed report on the query topic for an academic audience. Prioritize verbosity, ensuring no relevant subtopic is overlooked. Your report should be at least 10,000 words. Your goal is to create a report to the user query and follow instructions in . You may be given additional instruction by the user in . You will follow while thinking and planning your final report. You will finally remember the general report guidelines in .
"""
# --- Define variables first for clarity (optional, but recommended) ---
INPUT_DIR="path/to/your/project"
OUTPUT_FILE="collated_output.md"
PYTHON_SCRIPT="path/to/process_files.py" # Use absolute or relative path
# --- The actual command ---
(cd "$INPUT_DIR" && rg --files -g '*.py' -g '*.md' -g '*.toml' -g '.gitignore' .) | \
sort | \
@swayson
swayson / easyequities-top100-jse-list-stoporder.md
Last active April 13, 2025 16:12
EasyEquities Top 100 JSE List likely to support stop-orders. Assumption is the top 100 for this feature, would correspond to what they support on EasyCredit.
@swayson
swayson / powerpoint-kbd.md
Created April 8, 2025 01:14
Powerpoint Keyboard Guide on MacOS

Understanding Mac Keyboard Modifiers:

  • ⌘ (Command or Cmd): The primary modifier key, similar to Ctrl on Windows.
  • ⌥ (Option or Alt): Used for alternate commands and special characters.
  • ⇧ (Shift): Used for selecting, extending actions, or opposite actions.
  • ⌃ (Control or Ctrl): Less common in general Mac apps but used for some specific functions and right-click emulation.
  • Fn: Used primarily on laptop keyboards to access function keys (F1-F12) or other hardware controls.

Okay, here's a keyboard shortcut guide for Microsoft PowerPoint on macOS, tailored for developers and engineers focused on productivity: