running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
import { | |
fetchRemoteSchema, | |
authLink | |
} from "@private/graphql-proxy"; | |
import { startGraphQLService } from "@private/graphql-scripts"; | |
import { graphql, printSchema, print, parse } from "graphql"; | |
import { | |
mergeSchemas, | |
makeRemoteExecutableSchema, | |
makeExecutableSchema |
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
React Fiber is an ongoing reimplementation of React's core algorithm. It is the culmination of over two years of research by the React team.
import { Component, PropTypes } from 'react' | |
import { noop } from 'lodash' | |
import raf from 'raf' | |
const cache = new Map() | |
export function createNonBlockingRenderLoop({ key, concurrencyLevel = 1 }) { | |
if (cache.has(key)) { | |
return cache.get(key) | |
} |
import React from 'react' | |
import { render } from 'react-dom' | |
import { Match, Link, BrowserRouter as Router } from 'react-router' | |
import matchSorter from 'match-sorter' | |
import './styles.css' | |
const API = 'http://localhost:3000' | |
const token = localStorage.booksToken || Math.random().toString() | |
localStorage.booksToken = token |
'use strict'; | |
import Singleton from 'Singleton'; | |
class ClassA extends Singleton { | |
constructor() { | |
super(); | |
} | |
singletonMethod1() { | |
// ... |
// from the brilliant mind of sb | |
var _catch = Promise.prototype.catch; | |
Promise.prototype.catch = function () { | |
return _catch.call(this, function (err) { setTimeout(function () { throw(err); }, 0); }); | |
} | |
'use strict'; | |
import React, { | |
AppRegistry, | |
Component, | |
StyleSheet, | |
Text, | |
View, | |
TouchableOpacity, | |
LayoutAnimation, | |
} from 'react-native'; |
function main() { | |
return { | |
DOM: Rx.Observable.timer(0, 1000) | |
.map(i => `Seconds elapsed ${i}`) | |
}; | |
} | |
const drivers = { | |
DOM: function DOMDriver(sink) { | |
sink.subscribe(text => { |