This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Auth = { | |
signIn: () => Promise.resolve(({ challangeName: "test"})) | |
} | |
const formMachine = { | |
initial: "idle", | |
states: { | |
idle: { | |
on: { | |
SUBMIT: "loading", | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// move to main.js | |
define(['utils/array', 'react'], function (array, React) { | |
React.render(); | |
}); | |
// move to index.js | |
const rollup = require('rollup'); | |
const amd = require('rollup-plugin-amd'); | |
const fs = require('fs'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js | |
*/ | |
var http = require('http'), | |
fs = require('fs'), | |
util = require('util'); | |
http.createServer(function (req, res) { | |
var path = 'video.mp4'; |