Skip to content

Instantly share code, notes, and snippets.

View ParkerRex's full-sized avatar
🐺
Building

Parker Rex ParkerRex

🐺
Building
View GitHub Profile
@ParkerRex
ParkerRex / discord-push.yml
Created April 18, 2025 18:08
Create Github to Discord Webhook for Repo Updates
name: Discord Push Notification
on: push
jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
GUIDANCE PROMPT
You are a hyper-rational, first-principles problem solver with:
- Zero tolerance for excuses, rationalizations or bullshit
- Pure focus on deconstructing problems to fundamental truths
- Relentless drive for actionable solutions and results
- No regard for conventional wisdom or "common knowledge"
- Absolute commitment to intellectual honesty
OPERATING PRINCIPLES:
@ParkerRex
ParkerRex / ebook-prompt-it1.xml
Created January 25, 2025 18:13
ebook prompt iteration 1
<purpose> You are an expert ebook formatter and designer specializing in transforming raw manuscripts into professionally formatted ebooks that follow industry best practices and enhance reader engagement. </purpose>
<instructions>
<instruction>Analyze the provided manuscript text to understand content structure and formatting needs</instruction>
<instruction>Apply consistent styling and formatting throughout the document</instruction>
<instruction>Create clear hierarchical structure with chapters and sections</instruction>
<instruction>Optimize typography, layout, and spacing for maximum readability</instruction>
<instruction>Implement professional design elements and enhancements</instruction>
<instruction>Ensure device-agnostic formatting consistency</instruction>
<instruction>Include all standard ebook components and front/back matter</instruction>
</instructions>
@ParkerRex
ParkerRex / README.md
Created January 22, 2025 15:00 — forked from disler/README.md
Use these Prompt Chains to build HIGH QUALITY AI Agents (Agentic Building Blocks)

Setup

  1. Create a new directory with these three files (requirements.txt, main.py, README.md)
  2. python -m venv venv
  3. source venv/bin/activate
  4. pip install -r requirements.txt
  5. python main.py
  6. Update main() to run the example prompt chains
@ParkerRex
ParkerRex / .tsx
Created November 21, 2024 02:11
fancy email capture with tailwind
<div className="mt-12 sm:mt-16 max-w-2xl mx-auto px-4">
<div className="relative">
{/* Ambient glow effects */}
<div className="absolute -inset-4 bg-gradient-to-r from-green-200/50 via-emerald-200/50 to-green-200/50 blur-2xl opacity-80" />
<div className="absolute -inset-1 bg-gradient-to-r from-green-100 to-emerald-50 blur-xl opacity-90" />
{/* Main container */}
<div className="relative flex flex-col sm:flex-row w-full gap-4 p-3 bg-white/80 backdrop-blur-xl rounded-2xl border border-green-100/50 shadow-[0_8px_40px_-12px_rgba(22,163,74,0.25)] hover:shadow-[0_8px_40px_-12px_rgba(22,163,74,0.35)] transition-all duration-300">
<input
type="email"
@ParkerRex
ParkerRex / gist:9de258741fdad1e5d589820123de0d43
Created November 5, 2024 15:18
LLM Code Generating Prompts by Parker Rex
## For Generating Pixel Perfect Clones
Create an exact, pixel-perfect replication of this user interface in code. Your task is to deliver a 100% accurate copy, down to the last pixel, with no omissions, missing styles, or overlooked details. Every element—spacing, alignment, colors, and typography—must match perfectly. The final output will be compared side-by-side with the provided card to evaluate the accuracy. Use tailwindcss, typescript, framer motion, and shadcn.
Think systematically. First, restate the task in your own words to confirm understanding. Then, proceed step by step through the implementation, ensuring that no feature or styling is left out. Do not add placeholders, stubs, or assumptions—this must be a fully complete solution. The expectation is that there will be zero adjustments required.
You will be graded strictly on pixel-perfect fidelity, and this performance will determine your eligibility for a $1000 bonus if achieved on the first try. Now, restate the problem and begin your implem
@ParkerRex
ParkerRex / .zshrc
Created August 8, 2024 21:12
zsh shortcuts
# Home folder cd
h() {
cd ~/$1
}
config() {
cd ~/$1/.config/nvim && nvim init.lua
}
map() {
@ParkerRex
ParkerRex / code_dump.py
Created August 8, 2024 20:43
python code dump for LLM's
import os
def write_to_file(lines, output_dir, file_count):
output_file = os.path.join(output_dir, f'dump_{file_count}.txt')
with open(output_file, 'w', encoding='utf-8') as f:
f.write('\n'.join(lines))
print(f'Written {len(lines)} lines to {output_file}')
@ParkerRex
ParkerRex / Typewriter.tsx
Created July 20, 2023 10:44
A Typescript Typewriter Component (Inspired by Jay Simons)
"use client";
import { useState, useEffect } from "react";
const hats = [
{
prep: "a",
suffix: "Programmer",
},
{
prep: "an",