Skip to content

Instantly share code, notes, and snippets.

@gnz00
gnz00 / src_routes.js
Created October 4, 2015 12:18
React-Nprogress
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
import http from './core/HttpClient';
import App from './components/App';
import IndexPage from './components/IndexPage';
import NotFoundPage from './components/NotFoundPage';
@gnz00
gnz00 / React-NProgress
Created October 4, 2015 12:20
src_routes.js
import React from 'react';
import Router from 'react-routing/src/Router';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
import http from './core/HttpClient';
import App from './components/App';
import IndexPage from './components/IndexPage';
import NotFoundPage from './components/NotFoundPage';
import ErrorPage from './components/ErrorPage';
@gnz00
gnz00 / audio_0_256000_hls.m3u8
Created January 12, 2016 07:10
HLS Manifests that aren't being processed correctly by the videojs-contrib-hls plugin
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-TARGETDURATION:11
#EXTINF:10.026666666667,
audio_0_256000/hls/segment_0.ts
#EXTINF:6.5066666666667,
audio_0_256000/hls/segment_1.ts
@gnz00
gnz00 / ParseServer.js
Last active March 17, 2016 13:14
One approach to a mail adapter in ParseServer
// ParseServer.js
import { default as MailProvider } from 'providers/MailProvider';
import { default as DEFAULT_MAIL_ADAPTER } from 'adapters/MailgunAdapter';
// These default templates live in the parse-server repo
const DEFAULT_MAIL_TEMPLATES = {
"password_reset": {
html: jade.compileFile("views/mail/password_reset.html.jade"),
text: jade.compileFile("views/mail/password_reset.txt.jade")
},