This file contains 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
import { | |
createContext, | |
PropsWithChildren, | |
useContext, | |
useEffect, | |
useRef, | |
useState, | |
} from "react"; | |
// RESOURCES: |
This file contains 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 PATH_TO_VIDEOS = ''; // Where your show is stored | |
const STREAM_KEY = ''; // https://dashboard.twitch.tv/u/YOUR_USERNAME/settings/stream | |
const RTMP_SERVER = ''; // https://help.twitch.tv/s/twitch-ingest-recommendation?language=en_US | |
const fs = require('fs'); | |
const ffmpeg = require('fluent-ffmpeg'); | |
const video = ffmpeg(); | |
const contents = fs.readdirSync(PATH_TO_VIDEOS, { recursive: true, withFileTypes: true }); | |
const cleaned = contents.filter(file => { |
This file contains 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 { createServer } = require('http'); | |
const { | |
stat, | |
createReadStream, | |
createWriteStream | |
} = require('fs'); | |
const { promisify } = require('util'); | |
const fileName = '../../powder-day.mp4'; | |
const fileInfo = promisify(stat); | |
const multiparty = require('multiparty'); |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Exmaple</title> | |
</head> |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Easy Counter</title> | |
</head> | |
<style> |
This file contains 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
<select> | |
<option value="AL">Alabama</option> | |
<option value="AK">Alaska</option> | |
<option value="AZ">Arizona</option> | |
<option value="AR">Arkansas</option> | |
<option value="CA">California</option> | |
<option value="CO">Colorado</option> | |
<option value="CT">Connecticut</option> | |
<option value="DE">Delaware</option> | |
<option value="DC">District Of Columbia</option> |
This file contains 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
<template> | |
<div class="about"> | |
{{error}} | |
{{returnedItem}} | |
<v-container> | |
<v-flex xs12> | |
<v-text-field v-model="item.myVarOne" label="My Var" required></v-text-field> | |
</v-flex> | |
<v-flex xs12> | |
<v-checkbox v-model="item.myBoolOne" label="My Bool" required></v-checkbox> |
This file contains 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
<datalist id="subRedits"> | |
<option value="funny" /> | |
<option value="AskReddit" /> | |
<option value="worldnews" /> | |
<option value="pics" /> | |
<option value="science" /> | |
<option value="todayilearned" /> | |
<option value="gaming" /> | |
<option value="videos" /> | |
<option value="movies" /> |
This file contains 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
<template> | |
<div> | |
<v-btn color="info" v-on:click="getAllGraphql()">All</v-btn> | |
{{myItem}} | |
error: {{error}} | |
</div> | |
</template> | |
<script> | |
import gql from "graphql-tag"; |