This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package math{ | |
import flash.geom.Matrix3D; | |
import flash.geom.Point; | |
/** | |
* | |
* @author Mark Lundin | |
* | |
* Based upon code provided by nicoptere - http://www.nicoptere.net/AS3/homographie/blog/Homography.as | |
* The findHomography now computes a Matrix3D that maps the transformation between two sets of complanar points. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var intrinsic:Vector.<Number> = new Vector.<Number>(9, true); | |
var intrinsicInverse:Vector.<Number> = new Vector.<Number>(9, true); | |
var R:Vector.<Number> = new Vector.<Number>( 9, true ); | |
var t:Vector.<Number> = new Vector.<Number>( 3, true ); | |
// SVD routine | |
var svd:SVD = new SVD(); | |
// input homography[9] - 3x3 Matrix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script installs and configures couchdb on a fresh Amazon Linux AMI instance. | |
# | |
# Must be run with root privileges | |
# Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5) | |
# | |
export BUILD_DIR="$PWD" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(-> | |
get = Ember.get | |
set = Ember.set | |
guidFor = Ember.guidFor | |
merge = Ember.merge | |
forEach = Ember.EnumerableUtils.forEach | |
map = Ember.EnumerableUtils.map | |
Ember.computed.intersectBy = -> | |
getDependentKeyGuids = (changeMeta) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Tue, 22 Apr 2014 08:17:39 GMT] [info] [<0.29155.14>] Replication `"a9eebcb839225fcaf5f0452e7cf625d2+create_target"` is using: | |
4 worker processes | |
a worker batch size of 500 | |
20 HTTP connections | |
a connection timeout of 30000 milliseconds | |
10 retries per request | |
socket options are: [{keepalive,true},{nodelay,false}] | |
[Tue, 22 Apr 2014 08:17:39 GMT] [info] [<0.27187.14>] starting new replication `a9eebcb839225fcaf5f0452e7cf625d2+create_target` at <0.29155.14> (`http://192.168.1.2:4985/nam/` -> `snagtracker-140417-tenpost`) | |
[Tue, 22 Apr 2014 08:17:41 GMT] [error] [emulator] Error in process <0.29213.14> with exit value: {function_clause,[{couch_db,write_streamed_attachment,[<0.29227.14>,#Fun<couch_replicator_api_wrap.24.94105754>,-26495],[{file,"/home/build-couchdb13/dependencies/couchdb/src/couchdb/couch_db.erl"},{line,1037}]},{couch_db,with_stream,3,[{file,"/home/build-couchdb13/depende... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Tue, 22 Apr 2014 13:00:37 GMT] [info] [<0.17155.1>] Retrying GET to http://192.168.1.2:4985/nam/image-zqq62v7q2l?revs=true&open_revs=%5B%227-85ac1a35190770516d0a71147f204e4f%22%5D&latest=true in 600.0 seconds due to error {exit_error, | |
function_clause} | |
[Tue, 22 Apr 2014 13:00:41 GMT] [info] [<0.17159.1>] Retrying GET to http://192.168.1.2:4985/nam/image-97m333b8iah?revs=true&open_revs=%5B%229-9f060576f801f3c9cea5c90013c6d182%22%5D&latest=true in 600.0 seconds due to error {exit_error, | |
function_clause} | |
[Tue, 22 Apr 2014 13:10:37 GMT] [error] [emulator] Error in process <0.19037.1> with exit value: {function_clause,[{couch_repl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.PouchDB=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | |
"use strict"; | |
var utils = _dereq_('./utils'); | |
var merge = _dereq_('./merge'); | |
var errors = _dereq_('./deps/errors'); | |
var EventEmitter = _dereq_('events').EventEmitter; | |
var upsert = _dereq_('./deps/upsert'); | |
var Changes = _dereq_('./changes'); | |
var Promise = utils.Promise; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<video id="v" width="300" height="300"></video> | |
<input id="b" type="button" disabled="true" value="Take Picture"></input> | |
<canvas id="c" style="display:none;" width="300" height="300"></canvas> | |
</body> | |
<script> | |
navigator.getUserMedia({video: true}, function(stream) { | |
var video = document.getElementById("v"); | |
var canvas = document.getElementById("c"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle', | |
model: { key: 'test value' }, | |
myComponent: Ember.Component.create({ | |
template: Ember.Handlebars.compile("myComponent") | |
}), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<title>HTML5 Camera Fun</title> | |
</head> | |
<style type="text/css"> | |
.crop-canvas { | |
bottom: -30px; |
OlderNewer