Skip to content

Instantly share code, notes, and snippets.

Robert Nagy ronag

Block or report user

Report or block ronag

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View couchdb-connector.js
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))
View gist:24022ab7e097f9af3ee6b5a7545603d0
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))
View gist:4a63111a968e3c8b3734
<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();
View gist:1acd9c8561af627922c0
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) ||
View gist:d531a743d758527e8e58
"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?
//
You can’t perform that action at this time.