Menge | Zutat |
---|---|
250 g | altbackenes Brot, z. B. Ruchbrot |
50 g | harte Amaretti |
40 g | Zucker |
0.5 | Beutel Vanillezucker |
5 dl | Milch |
25 g | Baumnüsse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# based on https://gist.github.com/stefanv/2051954 | |
from __future__ import division | |
import numpy as np | |
from pylab import * | |
from scipy import ndimage | |
import time | |
ion() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.aux | |
*.glo | |
*.idx | |
*.log | |
*.toc | |
*.ist | |
*.acn | |
*.acr | |
*.alg | |
*.bbl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
def rgb2gray(rgb): | |
''' | |
convert an image from rgb to grayscale | |
http://stackoverflow.com/a/12201744/323100 | |
''' | |
return numpy.dot(rgb[..., :3], [0.299, 0.587, 0.144]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Lottomat für http://www.bernerzeitung.ch/14012675 | |
Anhand der Vorgaben von SwissLotto (http://is.gd/BB61Eb) müssen pro Tipp sechs | |
Zahlen (1-42) und eine Glückszahl (1-6) angekreuzt werden. | |
Für eine Teilnahme müssen mindestens zwei Tipps gespielt werden. | |
""" | |
# Wir brauchen ein paar Dinge zum rechnen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Smoothing/Interpolation-example, based on | |
https://docs.scipy.org/doc/scipy-0.14.0/reference/tutorial/interpolate.html | |
''' | |
from __future__ import division | |
import numpy as np | |
from scipy.interpolate import interp1d | |
import matplotlib.pyplot as plt | |
import time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Plot 1000 random dots in a square | |
""" | |
import random | |
import matplotlib.pylab as plt | |
for i in range(1000): | |
plt.plot(random.random(), random.random(), marker='o', color='k') | |
plt.axis('equal') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import cv2 | |
import matplotlib.pylab as plt | |
HaarDirectory = '/usr/local/Cellar/opencv/2.4.9/share/OpenCV/haarcascades' | |
face_cascade = cv2.CascadeClassifier(os.path.join(HaarDirectory, 'haarcascade_frontalface_default.xml')) | |
eye_cascade = cv2.CascadeClassifier(os.path.join(HaarDirectory, 'haarcascade_eye.xml')) | |
Image = plt.imread('face.jpg') | |
BW_Image = cv2.cvtColor(Image, cv2.COLOR_BGR2GRAY) |
I hereby claim:
- I am habi on github.
- I am habi (https://keybase.io/habi) on keybase.
- I have a public key whose fingerprint is 090B A12B A7BA F36A 6C5B 4B3D F5C2 9D9F DA96 595C
To claim this, I am signing this object:
OlderNewer