Skip to content

Instantly share code, notes, and snippets.

View TheArtifulProgrammer's full-sized avatar
🎯
Focusing

TheArtfulProgrammer TheArtifulProgrammer

🎯
Focusing
View GitHub Profile
@TheArtifulProgrammer
TheArtifulProgrammer / you_are_not_right.sh
Created August 25, 2025 00:22 — forked from ljw1004/you_are_not_right.sh
A UserPromptSubmit hook for Claude Code to stop it saying "You're right"
#!/bin/bash
set -euo pipefail
trap 'echo "at line $LINENO, exit code $? from $BASH_COMMAND" >&2; exit 1' ERR
# This is a Claude Code hook to stop it saying "you are right".
#
# Installation:
# 1. Save this script and chmod +x it to make it executable.
# 2. Within Claude Code, /hooks / UserPromptSubmit > Add a new hook (this file)
#
@TheArtifulProgrammer
TheArtifulProgrammer / swipe.js
Created September 20, 2022 11:29 — forked from SleepWalker/swipe.js
A simple swipe detection on vanilla js
var touchstartX = 0;
var touchstartY = 0;
var touchendX = 0;
var touchendY = 0;
var gesuredZone = document.getElementById('gesuredZone');
gesuredZone.addEventListener('touchstart', function(event) {
touchstartX = event.screenX;
touchstartY = event.screenY;