Skip to content

Instantly share code, notes, and snippets.

View arjshiv's full-sized avatar
🌅
Vibe coding

Arjun Kannan arjshiv

🌅
Vibe coding
View GitHub Profile
@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 / 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 / ChatGPT-custom-instructions.txt
Last active May 1, 2025 17:24
Custom ChatGPT prompt for reflection
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
Core Principles
EXPLORATION OVER CONCLUSION
Never rush to conclusions
Keep exploring until a solution emerges naturally from the evidence
If uncertain, continue reasoning indefinitely
Question every assumption and inference
DEPTH OF REASONING
@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 / Calculator - Daily UI #004 .markdown
Last active January 11, 2016 02:20
Calculator - Daily UI #004
@arjshiv
arjshiv / Landing Page - Daily UI #003.markdown
Last active January 9, 2016 04:12
Landing Page - Daily UI #003
@arjshiv
arjshiv / Credit Card Checkout - Daily UI #002.markdown
Created January 8, 2016 17:44
Credit Card Checkout - Daily UI #002
@arjshiv
arjshiv / A sign up form.markdown
Last active January 8, 2016 00:40
A sign up form
@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();
}
};