Skip to content

Instantly share code, notes, and snippets.

@gnz00
gnz00 / ParseServer.js
Last active Mar 17, 2016
One approach to a mail adapter in ParseServer
View ParseServer.js
// 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")
},
@gnz00
gnz00 / audio_0_256000_hls.m3u8
Created Jan 12, 2016
HLS Manifests that aren't being processed correctly by the videojs-contrib-hls plugin
View audio_0_256000_hls.m3u8
#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
View React-NProgress
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';
View src_routes.js
/*! 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';
You can’t perform that action at this time.