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 November 7, 2017 09:47 — 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 September 30, 2017 18:28 — forked from dave-andersen/
k-means in Tensorflow
import tensorflow as tf
import numpy as np
import time
MAX_ITERS = 1000
start = time.time()
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 06:36 — forked from gelldur/CardView.h
iOS view that looks like CardView from Android
#import <UIKit/UIKit.h>
//Based on:
@interface CardView : UIView