brian wickman - @wickman
[TOC]
Pants makes the manipulation and distribution of hermetically sealed Python environments
import CircleButton from './CircleButton'; | |
// Init stage | |
const stage = new createjs.Stage("demo"); | |
// Button black | |
const btn = new CircleButton('Hi'); | |
btn.x = 50; btn.y = 50; | |
stage.addChild(btn); |
import java.awt.Graphics2D | |
import java.awt.image.BufferedImage | |
import java.io.InputStream | |
import javax.imageio.ImageIO | |
import java.io._ | |
class ImagePHashScala(size: Int = 32, smallerSize: Int= 8){ | |
val c : Array[Double] = { | |
val temp = Array.ofDim[Double](size) | |
for (i <- 1 to size - 1) { |
var gulp = require('gulp') | |
var browserify = require('browserify') | |
var watchify = require('watchify') | |
var babelify = require('babelify') | |
var source = require('vinyl-source-stream') | |
var buffer = require('vinyl-buffer') | |
var merge = require('utils-merge') |
/** | |
* Compares two software version numbers (e.g. "1.7.1" or "1.2b"). | |
* | |
* This function was born in http://stackoverflow.com/a/6832721. | |
* | |
* @param {string} v1 The first version to be compared. | |
* @param {string} v2 The second version to be compared. | |
* @param {object} [options] Optional flags that affect comparison behavior: | |
* <ul> | |
* <li> |
import base64 | |
import time | |
import urllib2 | |
import cv2 | |
import numpy as np | |
""" | |
Examples of objects for image frame aquisition from both IP and |
### Based on: https://gist.github.com/1191574 | |
### Based on: http://graphite.wikidot.com/installation | |
### for Django 1.4 review: https://bugs.launchpad.net/graphite/+bug/963684 | |
### Statsd: http://geek.michaelgrace.org/2011/09/installing-statsd-on-ubuntu-server-10-04/ | |
#################################### | |
# BASIC REQUIREMENTS | |
# http://graphite.wikidot.com/installation | |
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/ | |
# Last tested & updated 10/13/2011 |
from django.contrib.sessions.backends.base import SessionBase, CreateError | |
from django.conf import settings | |
from django.utils.encoding import force_unicode | |
import redis | |
class SessionStore(SessionBase): | |
""" Redis store for sessions""" | |
def __init__(self, session_key=None): | |
self.redis = redis.Redis( |