Skip to content

Instantly share code, notes, and snippets.

@cr5315
cr5315 / whois-ns-info.py
Created July 13, 2014 08:39
I got tired of typing /whois <nick> and /ns info <nick>, so now I just type /whoisns <nick>
__module_name__ = "whois and ns info"
__module_version__ = "1.0"
__module_description__ = "performs a whois and ns info"
import hexchat
def who(word, word_eol, userdata):
if len(word) < 2:
print("I need a nick")
else:
@cr5315
cr5315 / addie.py
Created May 10, 2014 19:56
addie.cc module for my IRC bot (based on Code by Liamraystanley)
from util.hook import *
import urllib2
@hook(cmds=['addie'], ex='addie cr5315 doge')
def addie(code, input):
"""addie <user> <coin> - Get an address from addie.cc"""
try:
args = input.group(2).split(' ')
except:
args = []
@cr5315
cr5315 / ArrayHelper.java
Last active July 21, 2020 08:57
A class I wrote to save an ArrayList<String> to a single String to be saved in Android's SharedPreferences.
package com.example;
// Change the package name to match your package
import java.util.ArrayList;
import org.json.JSONArray;
import org.json.JSONException;
import android.content.Context;
import android.content.SharedPreferences;