Skip to content

Instantly share code, notes, and snippets.

View gdude2002's full-sized avatar

Gareth Coles gdude2002

View GitHub Profile
# This is proof-of-concept code, so it's rather messy and shit.
# It should however get the point across.
# If anyone has a better way to do this, let me know.
import time
# Time period per record in seconds
TIME_PERIOD = 1
@gdude2002
gdude2002 / ello.md
Last active August 29, 2015 14:07 — forked from conatus/ello.md

Ello API

This is a basic exploration of the Ello API. Completely unofficial, your mileage my vary, don't smash their servers as they are likely very busy.

Methods return HTML for their representation where appropriate which is a nice little pattern. Everything returns application/json.

Like this:

{
 "id": ,
2014-12-02.log-[22:08:12] <g> but every modification you make has to be done immutably
2014-12-02.log-[22:08:25] <Riking> yeeeeeeah
2014-12-02.log-[22:08:31] <g> don't like it
2014-12-02.log-[22:08:32] <g> :P
2014-12-02.log-[22:08:37] <simon816> seems very memory inefficient
2014-12-02.log-[22:08:42] <g> yeah
2014-12-02.log-[22:08:50] <Riking> Going to need some other kind of value store
2014-12-02.log-[22:09:00] <g> I wrote a little wrapper for snakeyaml
2014-12-02.log-[22:09:00] <g> lol
2014-12-02.log-[22:09:26] <sk89q> gson is on class path I think
@gdude2002
gdude2002 / -
Created October 17, 2015 21:16
Oct 08 2015 - 22:03:27 | URL-tools | ERROR | Could not get title for "https://www.youtube.com/watch?v=Lm9J8Glk0bE"
Traceback (most recent call last):
File "/home/ultros/Ultros/plugins/urltools/__init__.py", line 898, in site_youtube
"json" % params["v"][0]).read())
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 437, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
Oct 08 2015 - 22:03:27 | URL-tools | ERROR | Could not get title for "https://www.youtube.com/watch?v=Lm9J8Glk0bE"
Traceback (most recent call last):
File "/home/ultros/Ultros/plugins/urltools/__init__.py", line 898, in site_youtube
"json" % params["v"][0]).read())
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 437, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 550, in http_response
'http', request, response, code, msg, hdrs)
Oct 09 2015 - 17:38:37 | Commands | INFO | irc-esper | <Kasen:#Ultros> ...i listened to that song for the first time in years last night, and then you link it in here O_o
Oct 09 2015 - 17:49:37 | Commands | INFO | irc-esper | <Kasen:#Ultros> ...they're seriously suggesting a binary search style ton of requests?
Oct 09 2015 - 17:56:16 | Oct 09 2015 - 19:26:26 | irc-stormbit | INFO | _2k10Oct 09 2015 - 20:12:21 | Commands | INFO | irc-esper | <g:#Ultros> ..chrome?
Oct 0Oct 09 2015 - 20:57:55 | irc-stormbit | INFO | MinishLink!FinnishLink@StormBit-v2ju4m.g72d.5ora.098a.2601.IP has left IRC: Quit: Leaving
Oct 09 2015 - 22:07:58 | irc-stormbit | INFO | _2k10!2k10@StormBit-mcp3nl.cable.virginm.net has left IRC: Quit: Moo
s> ...and the default is hideous
Oct 09 2015 - 20:49:39 | Commands | INFO | irc-esper | <Kasen:#Ultros> .dict functional
Oct 09 2015 - 21:18:26 |
main:
protocol-type: irc
can-flood: no
network: # Network connection settings
address: irc.gitter.im # Address of the server
port: 6697 # Port to connect to
ssl: yes # Use SSL?
password: "6a7c2d16c1723ab6753b96bbc44b361c8b37c50c"
# You may set this if you need the bot to bind to a certain IP address (for example, for a VHOST).
09 Sep 2016 | 18:07:57 (UTC) | <gdude2002#5318> ding
09 Sep 2016 | 18:07:59 (UTC) | <gdude2002#5318> give me a minute
09 Sep 2016 | 18:08:06 (UTC) | <gdude2002#5318> Team Mystic: Question Squad
09 Sep 2016 | 18:08:15 (UTC) | <DrBanner#6204> Timer for one minute, started.
09 Sep 2016 | 18:08:39 (UTC) | <gdude2002#5318>
09 Sep 2016 | 18:08:56 (UTC) | <func_door#9765> its okay they just shot themselves in the foot by not letting me be a questioner
09 Sep 2016 | 18:08:57 (UTC) | <func_door#9765> we got dis
09 Sep 2016 | 18:09:08 (UTC) | <ArgentVulpine#2736> Haha
09 Sep 2016 | 18:09:11 (UTC) | <gdude2002#5318> some people have realllly different usernames to their nicks on the server
09 Sep 2016 | 18:09:15 (UTC) | <gdude2002#5318> this is going to take me a few minutes