Skip to content

Instantly share code, notes, and snippets.

from import App
from kivy.clock import Clock
from kivy.lang import Builder
from import NumericProperty, ListProperty
from kivy.uix.widget import Widget
KV = '''
#:import chain itertools.chain
#:import sin math.sin
#:import cos math.cos
Zumbalamambo /
Created Nov 7, 2017 — forked from TheSalarKhan/
Background Averaging (Background Subtraction) in Python+OpenCV
import numpy as np
import cv2
class BackGroundSubtractor:
# When constructing background subtractor, we
# take in two arguments:
# 1) alpha: The background learning factor, its value should
# be between 0 and 1. The higher the value, the more quickly
# your program learns the changes in the background. Therefore,
Zumbalamambo /
Created Sep 30, 2017 — forked from dave-andersen/
k-means in Tensorflow
import tensorflow as tf
import numpy as np
import time
MAX_ITERS = 1000
start = time.time()
View gist:f5fc7cfb2c45296fcccd56165750f0ef
General Nanodegree Information
Nanodegrees Programs:
Nanodegree Plus (job guarantee):
UConnect (weekly in-person study sessions):
Courses on Udacity
Machine Learning Engineer Nanodegree by Google (Currently Available):
Artificial Intelligence for Robots (Free Course)
Intro to Statistics (Free Course)
Deep Learning (Free Course)
# This file is useful for reading the contents of the ops generated by ruby.
# You can read any graph defination in pb/pbtxt format generated by ruby
# or by python and then convert it back and forth from human readable to binary format.
import tensorflow as tf
from google.protobuf import text_format
from tensorflow.python.platform import gfile
def pbtxt_to_graphdef(filename):
with open(filename, 'r') as f:
Zumbalamambo / CardView.h
Created May 5, 2017 — forked from gelldur/CardView.h
iOS view that looks like CardView from Android
View CardView.h
#import <UIKit/UIKit.h>
//Based on:
@interface CardView : UIView