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
<!-- | |
No License, if you feel like giving me credit for something...my name's Mike. | |
http://iwearshorts.com/ | |
README: | |
This example requires you install google closure (http://code.google.com/closure/library/docs/gettingstarted.html) and make the library available. Put this file next to the closure-library directory and you should be able to run it without a problem. | |
It uses some closure tools to manage the slider positions. It also uses css3 transitions for effect. Don't use this for production as it won't be compatible with all major browsers (http://www.findmebyip.com/litmus). |
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
/* | |
* Author: Mike Newell | |
* | |
* iwearshorts.com | |
* | |
* Feel free to copy and do whatever, but if you think it's cool, give me some credit. | |
* | |
**/ | |
var App = function() { | |
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
// | |
// main.m | |
// NinetyNineProblems | |
// | |
// Created by Mike Newell on 4/3/14. | |
// Copyright (c) 2014 Mike Newell. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
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
["0,0,0", | |
"35,0,1", | |
"71,1,2", | |
"107,2,6", | |
"142,4,10", | |
"178,6,16", | |
"214,9,21", | |
"249,13,27", | |
"1,35,2", | |
"36,36,2", |
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
<form class="mediaForm" enctype="multipart/form-data"> | |
<input name="file" type="file" class="media" /> | |
<input type="submit" name="submit" class="submit" /> | |
</form> |
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
// This will show background subtraction from your webcam in processing using: | |
// https://github.com/atduskgreg/opencv-processing | |
import gab.opencv.*; | |
import processing.video.*; | |
import java.awt.*; | |
//Movie video; | |
Capture video; | |
OpenCV opencv; |
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
# using Homebrew | |
# Note: `brew install npm` has problems, as of 2010-12-30. | |
# hopefully it will eventually be good and happy. | |
# As of [email protected], however, this is an option | |
PREFIX=$(brew --prefix) | |
# take ownership | |
# this will also let homebrew work without using sudo |
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 COVER; | |
var Cover; | |
(function($) { | |
COVER = function() { | |
// private | |
var __ = this; | |
var $cover = $('#cover'); | |
var isShowing = false; | |
// public |
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
module.exports = function(grunt) { | |
require('grunt-task-loader')(grunt); | |
grunt.initConfig({ | |
dir: { | |
src: "Source", | |
dist: "Deploy", | |
tmp: ".tmp" | |
}, | |
clean: { |
OlderNewer