Skip to content

Instantly share code, notes, and snippets.

@zrxq
zrxq / DetectFaces.cs
Created July 30, 2011 13:22
Face detection in C# using OpenCV with P/Invoke
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.Windows.Media;
using System.Windows.Media.Imaging;
namespace OpenCVFaceDetector
{
class DllPaths
@tristanz
tristanz / gist:635621
Created October 20, 2010 02:05
KnockoutJS in CoffeeScript
I'm trying to make KnockoutJS's dependentObservables work in CoffeeScript. See
http://github.com/SteveSanderson/knockout/wiki/Observables
A typical example is:
var viewModel = {
firstName: ko.observable('Bob'),
lastName: ko.observable('Smith')
};