Skip to content

Instantly share code, notes, and snippets.

View nasonfish's full-sized avatar

Daniel Barnes nasonfish

View GitHub Profile
@nasonfish
nasonfish / rainbow.py
Last active May 20, 2021 17:00
hexchat plugins
__module_name__ = "rainbow_message"
__module_description__ = "Colors a message to be rainbow when sent to chat."
__module_version__ = "0.1"
import hexchat
def rainbow_message(word, word_eol, userdata):
if len(word) >= 2:
i = 0
c = ["04", "07", "08", "09", "03", "10", "11", "12", "13"]
@nasonfish
nasonfish / keybase.md
Created October 18, 2014 19:46
keybase.md

Keybase proof

I hereby claim:

  • I am nasonfish on github.
  • I am nasonfish (https://keybase.io/nasonfish) on keybase.
  • I have a public key whose fingerprint is 84EF D359 DED7 FBF0 368D 4771 8A30 6FE5 5610 3EC2

To claim this, I am signing this object:

@nasonfish
nasonfish / script.irc
Last active December 28, 2015 10:49
CloudBot Scripting language
// anything following a double-slash will be ignored to the end of the line
// "when hear" means to hook into what the bot hears.
// The *s are wildcards, they mean "match any amount of any character" - so this means
// that we should use this method whenever a message contains "hello world" anywhere in the message.
//when hear "*hello world*" in "#Refract" {
// Inside of the block, or curly brackets, there are multiple ways to decide what do to.
// We can say something raw
//say "Hello, I am a CloudBot!" // This will say whatever comes next in quotes into the channel we received the trigger
@nasonfish
nasonfish / Coreprotect2.sql
Last active December 16, 2015 11:19
CoreProtect2 to Prism1.x import script.
-- Dev N' Stuff
-- TRUNCATE TABLE prism_actions;
-- Dev notes:
-- Actions:
-- 0 = break
-- 1 = place
-- 2 = use
-- 3 = animal death? D: