aly / cahplayer.py
0 likes
0 forks
4 files
Last active
Autoplayer for RoyalDev's Cards Against Humanity IRC bot
| 1 | from twisted.internet import reactor, task, defer, protocol |
| 2 | from twisted.python import log |
| 3 | from twisted.words.protocols import irc |
| 4 | from twisted.application import internet, service |
| 5 | import yaml, sys, random, re |
| 6 | |
| 7 | with open(sys.argv[1] if len(sys.argv) > 1 else 'config.yml') as f: |
| 8 | config = yaml.load(f.read()) |
| 9 | HOST, PORT = config['host'], config['port'] |
aly / tpparse.py
0 likes
0 forks
1 files
Last active
Transperth offline bus stop data and example implementation
| 1 | # Data can be retrieved (gzipped) from |
| 2 | # https://mega.co.nz/#!os4gjQBR!fspHcvoHZHDzN6IGtJgIXUh4N_ciIEL40tHoivqcKXg |
| 3 | # Currently this data only contains info for weekdays, as of 2014-06-20. I can't make the data |
| 4 | # collection process public, sadly, so please email me if you'd like saturday or sunday/holiday data. |
| 5 | # |
| 6 | # This is an example implementation of a program to read this data, in Python |
| 7 | # It replicates Transperth's service to look up the next five bus times to a stop, as seen here |
| 8 | # http://136213.mobi/Bus/StopResults.aspx?SN=14353 |
| 9 | # Please direct questions to steven+transperthdata@blha303.com.au |
| 10 | # |
aly / mediaserverindex.html
0 likes
0 forks
1 files
Last active
A drop-in media server index for apache that uses directory indexing and adds a HTML5 video player. loads directory changes with ajax
| 1 | <html> |
| 2 | <head> |
| 3 | <script src="jquery.js"></script> |
| 4 | </head> |
| 5 | <body> |
| 6 | <span id="VideoList"></span> |
| 7 | <script> |
| 8 | var videosPath = "/Videos/"; |
| 9 | var curdir = ""; |
| 10 | function updateList(data) { |
aly / evelogparse.py
0 likes
0 forks
1 files
Last active
EVE Online unfinished chat log parser. Contains some useful functions.
| 1 | import os |
| 2 | import time |
| 3 | |
| 4 | # Config |
| 5 | NAME = ["Steven Kafshaz"] |
| 6 | |
| 7 | LASTMSG = {} |
| 8 | |
| 9 | def filesbychannel(dirlist): |
| 10 | out = {} |
aly / skype_list_rooms.py
0 likes
0 forks
1 files
Last active
List active chats with their IDs. Used with https://gist.github.com/blha303/9913570
| 1 | import Skype4Py |
| 2 | skype = Skype4Py.Skype(Transport='x11') |
| 3 | print "\n\n".join(["%s: %s" % (a.Name, ", ".join([b.Handle for b in a.Members])) for a in skype.Chats]) |