Skip to content

Instantly share code, notes, and snippets.

@mrmekon
mrmekon / mptest.py
Created December 8, 2011 20:24
Python multiprocessing fails with PyObjC
import multiprocessing
import objc
from Foundation import *
class Test:
def __init__(self):
self.proc = multiprocessing.Process(target=self.run)
def start(self):
self.proc.start()
def run(self):
@mrmekon
mrmekon / ttsxtest.py
Created December 8, 2011 17:13
PyTTSX problem with GTK and threading
import threading
import pyttsx
import objc
from Foundation import *
from PyObjCTools import AppHelper
import gobject
shouldUseThreads = True
if shouldUseThreads:
@mrmekon
mrmekon / pgp_key_extract.py
Created November 8, 2011 15:40
PGP Key Extractor -- A (partial) Python implementation of OpenPGP
#!/usr/bin/env python2.7
#
# PGP Key Extractor -- A (partial) Python implementation of OpenPGP
#
# Copyright 2011 Trevor Bentley
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#