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 * as events from 'events' | |
import * as pckg from '../package.json' | |
import PouchDB from 'pouchdb' | |
import PouchDBUpsert from 'pouchdb-upsert' | |
PouchDB.plugin(PouchDBUpsert) | |
function transformValueForStorage (value) { | |
value = JSON.parse(JSON.stringify(value)) |
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 * as events from 'events' | |
import * as pckg from '../package.json' | |
import PouchDB from 'pouchdb' | |
import PouchDBUpsert from 'pouchdb-upsert' | |
PouchDB.plugin(PouchDBUpsert) | |
function transformValueForStorage (value) { | |
value = JSON.parse(JSON.stringify(value)) |
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
<video controls="" autoplay="" width="320" height="240"></video> | |
<script> | |
var video = document.querySelector('video'); | |
video.addEventListener('error', onVideoError); | |
window.MediaSource = window.MediaSource || window.WebKitMediaSource; | |
var mediaSource = new MediaSource(); |
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 stampit from 'stampit' | |
import React from 'react' | |
import shallowEqual from 'react/lib/shallowEqual' | |
const Component = stampit.convertConstructor(React.Component) | |
const PureRenderMixin = stampit() | |
.methods({ | |
shouldComponentUpdate(nextProps, nextState) { | |
return !shallowEqual(this.props, nextProps) || |
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
"use strict"; | |
// jsmpeg by Dominic Szablewski - phoboslab.org, github.com/phoboslab | |
// | |
// Consider this to be under MIT license. It's largely based an an Open Source | |
// Decoder for Java under GPL, while I looked at another Decoder from Nokia | |
// (under no particular license?) for certain aspects. | |
// I'm not sure if this work is "derivative" enough to have a different license | |
// but then again, who still cares about MPEG1? | |
// |