Skip to content

Instantly share code, notes, and snippets.

Gareth Coles gdude2002

Block or report user

Report or block gdude2002

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am gdude2002 on github.
  • I am gdude2002 ( on keybase.
  • I have a public key whose fingerprint is FDE9 31DA 44AC ABCD 0770 7325 3AD0 7AC1 CBBA 85D6

To claim this, I am signing this object:

(ns IAmDoingItWrong)
(defn main [args]
(println "Hello")
__author__ = 'Gareth Coles'
import fnmatch
import os
matches = []
for root, dirnames, filenames in os.walk('src'):
for filename in fnmatch.filter(filenames, '*.java'):
matches.append(os.path.join(root, filename))
# 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

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": <new post ID>,
View #spongedev - Dec 2 2014
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
View The
Traceback (most recent call last):
File "/usr/local/lib/python2.6/site-packages/twisted/python/", line 84, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/local/lib/python2.6/site-packages/twisted/python/", line 69, in callWithContext
return{ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python2.6/site-packages/twisted/python/", line 59, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/lib/python2.6/site-packages/twisted/python/", line 37, in callWithContext
return func(*args,**kw)
--- <exception caught here> ---
import feedparser
import irclib
import threading
import time
import datetime
import os
class IRCBot(irclib.SimpleIRCClient):
def __init__(self, password, channels, SERVER, PORT, NICKNAME):
import struct
from constants import *
class Format(object):
def __init__(self, format):
self.format = format
def __len__(self):
You can’t perform that action at this time.