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
#!/usr/bin/env ruby | |
procs = Hash.new | |
scrpt = `basename #{__FILE__}`.strip | |
$color = { | |
:black => 30, :red => 31, :green => 32, | |
:yellow => 33, :blue => 34, :purple => 35, | |
:cyan => 36, :white => 37 | |
} |
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
#!/usr/bin/env python | |
########### | |
# Imports # | |
########### | |
# Stdlib | |
import re | |
import os | |
import sys |
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
#!/usr/bin/env python | |
import os | |
import re | |
import sys | |
import string | |
import subprocess | |
class Abused: |
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
import json | |
import types | |
import urllib | |
import urllib2 | |
class Mpos: | |
def __init__(self, apiUri=None, apiKey=None, UserId=None): | |
self.apiUri = apiUri | |
self.apiKey = apiKey | |
self.UserId = UserId |
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
{ | |
/////////////////////////// | |
// Global config section // | |
/////////////////////////// | |
// The command character (ie: first character of the message, eg: !seen) | |
"cmdchar": "!", | |
// The directory that our event based, executable commands live in | |
"command_dir": "", |
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
#!/usr/bin/env python | |
import sys, json, urllib2, random | |
if sys.argv[1] == '--usage': | |
print 'Usage: !search <search terms>' | |
sys.exit(0) | |
nick, host, args = sys.argv[1], sys.argv[2], sys.argv[3] | |
data = json.loads(urllib2.urlopen( |
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
package main | |
import ( | |
// Stdlib | |
"log" | |
// 3rd party | |
"github.com/husio/go-irc" | |
) |
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
package main | |
import ( | |
"bufio" | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"strings" | |
"time" |
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
--- weather.py 2014-11-18 13:29:26.346413808 -0800 | |
+++ weathernew.py 2014-11-18 14:00:28.478386947 -0800 | |
@@ -6,7 +6,7 @@ | |
@hook.api_key('wunderground') | |
@hook.command(autohelp=False) | |
def weather(inp, chan='', nick='', reply=None, db=None, api_key=None): | |
- ".weather <location> [dontsave] | @<nick> -- gets weather data from Wunderground "\ | |
+ ".weather <location> [dontsave] | @<nick> | [forget] -- gets weather data from Wunderground "\ | |
"http://wunderground.com/weather/api" |
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
#!/usr/bin/env python | |
import re | |
import sys | |
import urllib2 | |
import HTMLParser | |
uri = 'http://aruljohn.com/mac' | |
headers = {'User-Agent': 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'} | |
ouiTag = None |