This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # to use this use | |
| # mv pre-commit .git/hooks/pre-commit | |
| # chmod +x .git/hooks/pre-commit | |
| function check_sanity(){ | |
| git diff | grep -i 'fuck\|shit\|crap\|dammit\|bitch\|asshole\|shithead'|wc -m | |
| } | |
| function print_insanity(){ | |
| git diff | grep -i 'fuck\|shit\|crap\|dammit\|bitch\|asshole\|shithead' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // for send function to select input | |
| function dispatch(target, eventType, char) { | |
| var evt = document.createEvent("TextEvent"); | |
| evt.initTextEvent (eventType, true, true, window, char, 0, "en-US"); | |
| target.focus(); | |
| target.dispatchEvent(evt); | |
| } | |
| // enters input and clicks button | |
| function send(msg){ |
NewerOlder