Skip to content

Instantly share code, notes, and snippets.

View mthurlin's full-sized avatar

Markus Thurlin mthurlin

View GitHub Profile
@mthurlin
mthurlin / tk_gevent.py
Created February 10, 2013 22:51
A quick test to see if tkinter and gevent could be combined
# coding=UTF-8
import time
from gevent import monkey, spawn, sleep
monkey.patch_all()
import urllib2
import Tkinter as tk
run_forever = True
class App(object):
@mthurlin
mthurlin / bpclient.py
Created February 12, 2012 15:19
bpclient
import gevent
from gevent import socket
import re
import json
import traceback
import datetime
ip = "1.2.3.4"
def beaconPushClient(callback, apiKey, channels):