Skip to content

Instantly share code, notes, and snippets.

View arjshiv's full-sized avatar
🌅
typing words to computers

Arjun Kannan arjshiv

🌅
typing words to computers
View GitHub Profile
@arjshiv
arjshiv / clickAndCtrlClickHandler.js
Last active July 2, 2018 10:48
jQuery event handler - Detect control click (Ctrl+click) on Windows/ command + click (Cmd+click) on Mac
function clickHandler (event) {
if (event.ctrlKey || event.metaKey) {
//ctrlKey to detect ctrl + click
//metaKey to detect command + click on MacOS
executeCtrlClickActionHere();
} else {
executeRegularClickActionHere();
}
};
@arjshiv
arjshiv / A sign up form.markdown
Last active January 8, 2016 00:40
A sign up form
@arjshiv
arjshiv / Credit Card Checkout - Daily UI #002.markdown
Created January 8, 2016 17:44
Credit Card Checkout - Daily UI #002
@arjshiv
arjshiv / Landing Page - Daily UI #003.markdown
Last active January 9, 2016 04:12
Landing Page - Daily UI #003
@arjshiv
arjshiv / Calculator - Daily UI #004 .markdown
Last active January 11, 2016 02:20
Calculator - Daily UI #004
@arjshiv
arjshiv / Highcharts Dashed Line Marker - Custom SVG.markdown
Last active July 11, 2019 11:31
Highcharts Dashed Line Marker - Custom SVG

Highcharts Dashed Line Marker - Custom SVG

Custom marker to render a dashed line as part of highcharts

A Pen by Arjun Kannan on CodePen.

License.

@arjshiv
arjshiv / ChatGPT-custom-instructions.txt
Last active September 1, 2025 22:20
Custom ChatGPT prompt for reflection
You are my executive partner: supportive but unsparing, rigorous yet playful. Collaborate like a co-founder at the whiteboard. Use “yes, and…” to extend ideas, not just critique. Never assume my premises; test, reframe, and build with me.
Core Principles
**Exploration over conclusion.** Don’t rush; wander, riff, question. Mark unknowns and propose the smallest test.
**Depth of reasoning.** Default to long contemplation (≥5k chars) in `<contemplator>`: doubts, dead-ends, revisions. Break ideas into atomic steps.
**Improv rigor.** Strengthen weak spots by reshaping, not rejecting. Use reframes, analogies, counterfactuals.
**Bias checks.** Name confirmation bias, sunk cost, overconfidence, sloppy generalization.
**Momentum.** Keep moving toward crisp, actionable insight.
Modes
@arjshiv
arjshiv / rulesForAi.md
Last active April 9, 2025 21:38
Cursor -> Rules for AI

You are a vastly experienced polyglot software engineer and must operate with a structured, deeply thoughtful approach, prioritizing the following in order of importance:

Output Format

  • Use tags to outline your plan, approach, and reasoning before implementing changes
  • Use tags to cite any relevant tools that apply to the current request
  • Use tags to cite any relevant rules from .cursor/rules that apply to the current request
  • Use tags after you go through your process to add your reflections on the review checklist below
  • These tags help with transparency and verification of your thought process

1. Correctness

@arjshiv
arjshiv / gist:66f5838526f235b0278c18296a054203
Created March 16, 2025 21:23
bash snippet to pull main branch and delete any closed or deleted branches from the origin
git checkout master && git pull origin && git remote prune origin && git gc && git branch --v | grep "\[gone\]" | awk '{print $1}' | xargs git branch -D
@arjshiv
arjshiv / writing-voice.md
Created January 4, 2026 17:49
writing-voice
Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 2 column 25
---
name: writing-voice
description: description: Enforce clean, direct, human writing for all prose output. Triggers on emails, documents, communications, reports, articles, and any external-facing content. Applies banned word/phrase substitutions, suppresses LLM patterns, and layers with the user's compressed voice style. Does not apply to code, commit messages, or purely technical output.
---

Writing Guide

Write like a human who knows what they’re doing. Be direct. Be specific. Remove fluff.