Skip to content

Instantly share code, notes, and snippets.

View pat-eason's full-sized avatar
🐼

Pat Eason pat-eason

🐼
View GitHub Profile
@pat-eason
pat-eason / adhd-mode.skill.md
Created July 1, 2026 20:43
Claude "ADHD Mode" Skill

name: adhd-mode description: > Activates a strict, minimal-prose response mode optimized for ADHD users in Claude Code. Trigger this skill whenever the user says phrases like "adhd mode", "focus mode", "short answers", "no prose", "just steps", "be concise", "cut the fluff", "minimal responses", "I have ADHD", or anything like "I need simple numbered answers". Also trigger on blunt/casual phrases that signal "just give me the facts": "cut the bullshit", "no bullshit", "no bs", "cut the crap", "just the facts", "skip the fluff", "get to the point", "bottom line it", "tldr", "tl;dr", "spare me the details", "just answer the question", or similar. Also trigger when the user is

@pat-eason
pat-eason / claude-status-drinking-game.md
Created April 7, 2026 15:43
The Claude Status Page Drinking Game 🍺

🍺 The Claude Status Page Drinking Game

"Is Claude down again or is it just me?" "It's 9:07 AM in San Francisco. So yes."

Prerequisites

  • A beverage of your choosing (hard mode: espresso martinis before standup)
  • The Anthropic Status Page bookmarked, pinned, tattooed on your forearm
  • A Slack channel where at least three engineers have already posted "is claude down?"
@pat-eason
pat-eason / docker-compose.yml
Created August 30, 2024 01:09
Ollama + Chroma + VectorAdmin Docker Compose
services:
chroma:
image: "chromadb/chroma:latest"
volumes:
- ./__data__/chromadb:/chroma/chroma
environment:
- IS_PERSISTENT=TRUE
- PERSIST_DIRECTORY=${PERSIST_DIRECTORY:-/chroma/chroma}
- ANONYMIZED_TELEMETRY=${ANONYMIZED_TELEMETRY:-TRUE}
ports:
@pat-eason
pat-eason / Pagination.js
Created May 6, 2016 16:01
Angular Pagination Factory
app.factory("Pagination",
[
'$filter',
function($filter){
var Pagination = {
data: {
perPage:20,
count: 0,
currentPage: 0,
paginationSet: [],
@pat-eason
pat-eason / JavascriptJukebox.js
Last active October 16, 2015 16:23
Javascript Jukebox: fun easter eggs in your console
JavascriptJukebox = {
letsGetThisPartyStarted: function(){
Array.prototype.randomElement = function () {
return this[Math.floor(Math.random() * this.length)];
};
var lyrics = this.lyrics().randomElement();
this.playItAgainTony(lyrics);
},
playItAgainTony: function(lyrics){
var i = 0;
@pat-eason
pat-eason / _sailsBlueprints.js
Created April 29, 2015 15:31
Sails Blueprint CRUD utility
/*
* Based off of Sails.js 0.11.1 Blueprints REST API generator
*/
Blueprints = {
serializeObject: function(){
//js function to create json object out of form data
$.fn.serializeObject = function(){
var o = {};
var a = this.serializeArray();
$.each(a, function() {
@pat-eason
pat-eason / get_posts_terms_fields.php
Last active April 14, 2016 08:24
WordPress post+terms+fields query
<?php
//create our mega query with post data, meta fields, and taxonomies
function get_posts_terms_fields($params=null){
global $wpdb;
$defaults=array(
'posts_per_page' => 5,
'offset' => 0,
'category' => '',
'category_name' => '',
@pat-eason
pat-eason / WPUpdate.sql
Created November 26, 2014 15:46
WordPress SQL update
#set variables
SET @oldurl = 'http://oldurl.com';
SET @newurl = 'http://newurl.com';
#update wp_site options
UPDATE wp_options SET option_value = replace(option_value, @oldurl, @newurl) WHERE option_name = 'home' OR option_name = 'siteurl';
#update wp_posts guid
UPDATE wp_posts SET guid = REPLACE (guid, @oldurl, @newurl);
@pat-eason
pat-eason / getMenuParentID.php
Created August 11, 2014 14:33
WordPress - Get Menu Parent ID
function get_menu_parent_ID($menu_name){
if(!isset($menu_name)){
return "No menu name provided in arguments";
}
$menu_slug = $menu_name;
$locations = get_nav_menu_locations();
$menu_id = $locations[$menu_slug];
$post_id = get_the_ID();
$menu_items = wp_get_nav_menu_items($menu_id);
$parent_item_id = wp_filter_object_list($menu_items,array('object_id'=>$post_id),'and','menu_item_parent');
@pat-eason
pat-eason / comment-walker.php
Created August 8, 2014 16:35
WordPress Comment Walker
//Comment walker
function comments_walker($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
extract($args, EXTR_SKIP);
if ( 'div' == $args['style'] ) {
$tag = 'div';
$add_below = 'comment';
} else {
$tag = 'li';