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
/* | |
* Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js | |
*/ | |
var http = require('http'), | |
fs = require('fs'), | |
util = require('util'); | |
http.createServer(function (req, res) { | |
var path = 'video.mp4'; |
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
library debounce; | |
Map timeouts = {}; | |
void debounce(int timeoutMS, Function target, List arguments) { | |
if(timeouts.containsKey(target)) { | |
timeouts[target].cancel(); | |
} | |
Timer timer = new Timer(new Duration(milliseconds: timeoutMS), () { |
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
require "formula" | |
class Tesseract < Formula | |
desc "OCR (Optical Character Recognition) engine" | |
homepage "https://github.com/tesseract-ocr/" | |
url "https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz" | |
sha1 "a950acf7b75cf851de2de787e9abb62c58ca1827" | |
revision 3 | |
bottle do |