Skip to content

Instantly share code, notes, and snippets.

View yvesf's full-sized avatar
🚒

Yves Fischer yvesf

🚒
  • Switzerland
  • 03:38 (UTC +02:00)
View GitHub Profile
@yvesf
yvesf / kerberos.py
Created February 25, 2015 19:56
Python imaplib kerberos mixin
import base64
import kerberos
import imaplib
class IMAPGSSMixin(object):
def gss_cb(self,challenge):
input_token = base64.b64encode(challenge).decode('utf-8')
if self.step == 0:
@yvesf
yvesf / gist:869381
Created March 14, 2011 16:09
hugh-kram
#coding: utf8
import image
import numpy as np
def hough(img,activation=None,edges=8,debug=None):
"""
Berechnet die Hough-Transformation für ein Bild.
Es wird parallel zum Bildraum ein 2-dimensionaler
Parameterraum angelegt ("hough_raum") mithilfe dessen