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 { promisify } = require('util'); | |
const multiparty = require('multiparty'); | |
const { | |
stat, | |
createReadStream, | |
createWriteStream | |
} = require('fs'); | |
const file = __dirname+'/powder-day.mp4'; |
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
// Utility for creating Nodes | |
export const createNode = element => { | |
return document.createElement(element); | |
}; | |
// Utility for appending node to parent Node | |
export const appendNode = (parent, el) => { | |
return parent.appendChild(el); | |
}; |
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
# Created by https://www.gitignore.io/api/git,node,react,macos,windows,webstorm,phpstorm,jetbrains,reactnative,sublimetext | |
# Edit at https://www.gitignore.io/?templates=git,node,react,macos,windows,webstorm,phpstorm,jetbrains,reactnative,sublimetext | |
### Git ### | |
# Created by git for backups. To disable backups in Git: | |
# $ git config --global mergetool.keepBackup false | |
*.orig | |
# Created by git when using merge tools for conflicts | |
*.BACKUP.* |
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
node_modules | |
.next |
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 withPlugins = require('next-compose-plugins'); | |
const optimizedImages = require('next-optimized-images'); | |
const withSass = require('@zeit/next-sass'); | |
const withCSS = require('@zeit/next-css'); | |
const nextConfig = { | |
webpack(config, options) { | |
config.module.rules.push({ | |
test: /\.(png|jpg|gif|svg|eot|ttf|woff|woff2)$/, | |
use: { |
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 React from 'react'; | |
import App from 'next/app'; | |
import { ApolloProvider } from '@apollo/react-hooks'; | |
// Bulma | |
import '../../public/sass/main.scss'; | |
// Components and Utils | |
import withApollo from '../lib/withApollo'; | |
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
git remote add origin remote repository URL | |
git remote -v | |
git push -u origin master |
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
Show hidden characters
{ | |
"presets": [ | |
"@babel/preset-env" | |
] | |
} |
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
# dependencies | |
/node_modules | |
# testing | |
/coverage | |
# production | |
/build | |
# misc |
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
# dependencies | |
/node_modules | |
# testing | |
/coverage | |
# production | |
build/* | |
build |