Skip to content

Instantly share code, notes, and snippets.

@ob-ivan
ob-ivan / gitcommit.nanorc
Last active April 28, 2021 08:51 — forked from keithamus/Nano Git Commit Syntax highlighting
Include this file from your ~/.nanorc and when running "git commit" (if your editor is nano) you'll have syntax highlighting in your commit message. Includes support for "git commit -v" too!
syntax "gitcommit" "COMMIT_EDITMSG$"
color cyan "#.*"
color brightgreen "# On branch .*"
color cyan "# On branch"
color green "#.(new file|modified|deleted).*"
color yellow start="# Changes.*" end="# Changed.*"
color red start="# Untracked.*" end="diff"
color red start="# Untracked.*" end="$$"
color brightred "^deleted file mode .*"
color brightgreen "^new file mode .*"
@ob-ivan
ob-ivan / cookiebot.js
Last active August 19, 2024 03:29 — forked from jeresig/cookiebot.js
A little bit intelligent Cookie Clicker bot.
CookieBot = {
// Inner-use enum constants //
INTERVAL_BAKE : 0,
INTERVAL_GOLDEN : 1,
INTERVAL_PRODUCT : 2,
INTERVAL_UPGRADE : 3,
INTERVAL_DRAGON : 4,
INTERVAL_SANTA : 5,