Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import numpy as np
import cv2
side_face_fn = "haarcascades/haarcascade_profileface.xml"
cascade_profile = cv2.CascadeClassifier(side_face_fn)
gray = cv2.imread('bug-equed.jpg')
@paulsc
paulsc / gist:795822
Created January 25, 2011 22:26
sicpex-1
# 1.1
10
12
8
3
6
undefined # a is 3
undefined # b is 4
19
{ "time": 123123123123 }
{
total: 6,
data: [
{
id: 29909,
full_name: "AnushaNyc+1",
short_name: null,
picture: {},
is_beta_producer: true,
description: null,
{
total: 6,
data: [
{
id: 29909,
full_name: "AnushaNyc+1",
short_name: null,
picture: {},
is_beta_producer: true,
description: null,
zixi://172.31.31.58:61111/full#accept
[ req ]
default_bits = 2048
default_keyfile = server-key.pem
distinguished_name = subject
req_extensions = req_ext
x509_extensions = x509_ext
string_mask = utf8only
# The Subject DN can be formed using X501 or RFC 4514 (see RFC 4519 for a description).
# Its sort of a mashup. For example, RFC 4514 does not provide emailAddress.
// Generated by CoffeeScript 1.11.1
(function() {
var AnimatedText, AnimatedTextFactory, Bar, BaseDonut, BaseGauge, Donut, Gauge, GaugePointer, TextRenderer, ValueUpdater, addCommas, cutHex, formatNumber, mergeObjects, secondsToString,
slice = [].slice,
hasProp = {}.hasOwnProperty,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
(function() {
var browserRequestAnimationFrame, isCancelled, j, lastId, len, vendor, vendors;
vendors = ['ms', 'moz', 'webkit', 'o'];
var parser = new jParser(file, {
header: {
fileId: 'int32',
recordIndex: 'int32',
hash: ['array', 'uint32', 4],
fileName: ['string', 256],
version: 2,
flags: {
precisionFlag: 1,
marker: {
package util
import (
"io"
)
type LinePipe struct {
leftover []byte
scanner TextScanner
bytesWritten int