Skip to content

Instantly share code, notes, and snippets.

View cankav's full-sized avatar
💭
go home m$

Can Kavaklıoğlu cankav

💭
go home m$
View GitHub Profile
@cankav
cankav / gist:c42d76db2ad2e87a5086
Created August 29, 2014 07:58
Python threading.Event demo
import threading
import time
import sys
import shared
shared.counter = 0
event = threading.Event()
def main():
import shared
@cankav
cankav / patched_ghost.py
Created March 3, 2013 20:38
patched ghost.py
# -*- coding: utf-8 -*-
import sys
import os
import time
import codecs
import logging
import subprocess
import tempfile
from functools import wraps
PYSIDE = False