Skip to content

Instantly share code, notes, and snippets.

View ronag's full-sized avatar

Robert Nagy ronag

View GitHub Profile
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))
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))
<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();
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) ||
"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?
//