Skip to content

Instantly share code, notes, and snippets.

View singlerider's full-sized avatar

Shane Engelman singlerider

  • San Francisco, CA
View GitHub Profile
import time
from threading import Thread
def initialize(irc, config):
# start up the cron jobs.
# config should be in the structure of
# {
# "#channel": [ (period, enabled, callback),.... ]
# ...
# }
"""
Developed Shane Engelman <me@5h4n3.com>
"""
# IN ORDER FOR THIS TO RUN CORRECTLY
# run '!shots init 0' the first time
import globals
import pickle
from src.lib.twitch import *
@singlerider
singlerider / glass.html
Created March 23, 2014 21:58
[wearscript] Test Gist
<html style="width:100%; height:100%; overflow:hidden">
<head>
<!-- You can include external scripts here like so... -->
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.0/zepto.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>-->
</head>
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<canvas id="canvas" width="640" height="360" style="display:block"></canvas>
<script>
function server() {