- https://github.com/mozilla/vtt.js#webvttconvertcuetodomtreewindow-cuetext
- http://www.html5rocks.com/en/tutorials/track/basics/
- https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/YJ4SY6WHxso/rh6qFmPE480J
- http://html5please.com/#track
- http://blog.gingertech.net/2011/06/27/recent-developments-around-webvtt/
- http://captionatorjs.com/
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/track#Compatibility
- http://jmacmullin.wordpress.com/2010/11/03/adding-meta-data-to-video-in-ios/
- http://devstreaming.apple.com/videos/wwdc/2014/504xx5n1n7eie65/504/504_advanced_media_for_the_web.pdf?dl=1
- https://developer.apple.com/library/ios/documentation/AudioVideo/Conceptual/HTTP_Live_Streaming_Metadata_Spec/2/2.html#//apple_ref/doc/uid/TP40010435-CH2-DontLinkElementID_1
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 tessel = require('tessel'); | |
var audio = require('audio-vs1053b').use(tessel.port['A']); | |
var climate = require('climate-si7020').use(tessel.port['B']); | |
var chunks = []; | |
// When we get data, push it into our array | |
audio.on('data', function(data) { | |
chunks.push(data); | |
}); |
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
// Mock mainly exposes empty functions | |
return function() { | |
return { | |
createElement: 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
/* | |
$ cd /Applications/GitX.app/Contents/Resources/html/css/ | |
$ open diff.css | |
*/ | |
.diff .file { | |
margin: 10px; | |
line-height: 1.5em; | |
font-family: Consolas, "Liberation Mono", Courier, monospace; | |
font-size: 12px; |
- Components can be created at runtime via
createClass
- Stringified and parsed
- Existing DOM can be parsed via a "mount" algorithm.
- React is event based and not "frame" based. It's not using a timer. DOM changes are cached until all events are done and flushed at once.
setState
triggers DOM changes explicitly
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
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
// MIT license | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; |
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
// EntryPoint.js | |
define(function () { | |
return function EntryPoint(require) { | |
this.modul1 = new require("./Model1"); | |
this.model2 = new require("./Model2"); | |
}; | |
}); | |
// Model1.js | |
define(function () { |
A quick draft of a "layered based" DOM renderer.
A Layer, also referred to as "Stacking Context", describes a group of DisplayObjects that can be flattened and combined to one "Context". Why does that matter? Chances are supposed to be higher that continuous attribute changes due to animations can be applied much faster on a Layer that can potentially managed by GPU than on all children individually managed by GPU or even CPU. Especially when considering a frame-budget of only 16ms. Which means the animation could run at 60FPS.
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
/** | |
* log events and properties | |
* from http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html | |
*/ | |
(function(media) { | |
if (media instanceof HTMLMediaElement) { | |
console.log('Found', media); | |
} else { | |
console.log('Media not found'); | |
} |
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> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width"> | |
<title>CSS animations</title> | |
<style> | |
.spin { | |
-webkit-animation: 3s rotate linear infinite; | |
animation: 3s rotate linear infinite; | |
background: red; |
NewerOlder