Skip to content

Instantly share code, notes, and snippets.

View ssured's full-sized avatar
🙊
\> say "ssured"

Sjoerd de Jong ssured

🙊
\> say "ssured"
View GitHub Profile
@ssured
ssured / README.md
Created December 14, 2017 11:21 — forked from DesignByOnyx/README.md
A script for setting up a project to use semantic-ui-less

This script was inspired by this blog post - however I found the technique to be a little insufficient. Many thanks to Artem Butusov as I would not have been able to do this without his blog post.

This script is intended to be used with semantic-ui-react projects. If you are just using semantic-ui, then you may need to do some other troubleshooting... I don't know as I haven't tested. From what I can tell everything should work just fine.

Before we get started

This process is completely different from the one described in the blog post above. This script is intended to do everything for you - no manual copying or updating code is required. If you have already followed

@ssured
ssured / gist:f8c63988bfdd8a067402
Created December 7, 2015 11:24 — forked from glynthomas/gist:9103273
HTML5 File API thumbnail : EXIF orientation tag (lightweight fix)
<!DOCTYPE html>
<head>
<title>HTML5 Camera Fun</title>
</head>
<style type="text/css">
.crop-canvas {
bottom: -30px;
<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");
#!/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"
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
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.