Skip to content

Instantly share code, notes, and snippets.

View bookercodes's full-sized avatar

Alex Booker bookercodes

View GitHub Profile
1
00:00,000 --> 00:00,000
[music]
2
00:00,000 --> 01:19,000
[00:00]
3
00:00,000 --> 00:24,000
<script src="//fast.wistia.com/embed/medias/2wa27t0v6p.jsonp" async></script><script src="//fast.wistia.com/assets/external/E-v1.js" async></script><div class="wistia_embed wistia_async_2wa27t0v6p" style="height:360px;width:640px">&nbsp;</div>
<script src="https://fast.wistia.com/embed/medias/ykbz757hkx.jsonp" async></script><script src="https://fast.wistia.com/assets/external/E-v1.js" async></script><div class="wistia_embed wistia_async_ykbz757hkx" style="height:360px;width:640px">&nbsp;</div>
import fetch from "isomorphic-unfetch";
const Talk = ({ title, views }) => (
<div>
<h1>{title}</h1>
<h2>Views: {views}</h2>
</div>
);
class Index extends React.Component {
import React from 'react'
import revalidation from 'revalidation'
const renderError = errors => {
if (errors && errors.length > 0) {
return <p>{errors[0]}</p>
}
}
const SimpleForm = ({
const isGreaterThan = a => b => b.length > a
const isWistiaLink = text =>
/https:\/\/pusher-1.wistia.com\/medias\/\w{10}$/.test(text)
const isMeetupLink = text =>
/https:\/\/www.meetup.com\/.+\/events\/\d+\/?$/.test(text)
const notEmpty = b => b !== ''
const isFullName = text => /[A-Za-z]+\s[A-Za-z]+$/g.test(text)
const validationRules = {
title: [[notEmpty, 'Whops 😳! You need to enter a title']],
wistiaUrl: [
import * as React from 'react'
import { Formik } from 'formik'
import Yup from 'yup'
import {
Form,
FormGroup,
Col,
ControlLabel,
FormControl,
HelpBlock,
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h2>Comments</h2>
<div id="container">
<div id="comments">
const textSync = new TextSync({
instance: instance,
host: host,
user: {
name: name,
email: email
}
});
const textSyncEditor = textSync.createEditor({
const Pusher = require('pusher')
const uuid = require('uuid/v1')
const ngrok = require('ngrok')
var pusher = new Pusher({
appId: '385685',
key: '955f28f383404945239b',
secret: 'c58baaf698167224517f',
cluster: 'eu',
encrypted: true