$ ffmpeg -i trim-sparkle-main.mov -filter_complex "[0:v] fps=12,scale=w=480:h=-1,split [a][b];[a] palettegen=stats_mode=single [p];[b][p] paletteuse=new=1" sparkle.gif
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
handleChange = event => { | |
this.setState({ [event.currentTarget.name]: event.currentTarget.value }) | |
} |
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
GATSBY_WEBPACK_PUBLICPATH=/ | |
ENABLE_REFRESH_ENDPOINT=true |
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
{ | |
"name": "static-site", | |
"version": "2.1.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"start": "run-s webpack-prod hugo-prod", | |
"dev": "run-p webpack-dev hugo-dev", | |
"hugo-dev": "wait-on assets/dist && hugo server", | |
"hugo-prod": "hugo", |
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 = require('path') | |
const MiniCssExtractPlugin = require('mini-css-extract-plugin') | |
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin') | |
const UglifyJsPlugin = require('uglifyjs-webpack-plugin') | |
const { CleanWebpackPlugin } = require('clean-webpack-plugin') | |
const fg = require('fast-glob') | |
module.exports = async (env, argv) => { | |
const entries = await fg([ | |
'src/js/*.js', |
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
Object.values(document.forms[0]).reduce((obj,field) => { obj[field.name] = field.value; return obj }, {}) |
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 webhookPayloadParser = (req) => | |
new Promise((resolve) => { | |
let data = "" | |
req.on("data", (chunk) => { | |
data += chunk | |
}) | |
req.on("end", () => { | |
resolve(Buffer.from(data).toString()) | |
}) | |
}) |
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
require('dotenv').config() | |
const { resolve } = require('path') | |
const { outputFile, pathExists, removeSync } = require('fs-extra') | |
const contentful = require('contentful') | |
const { CONTENTFUL_SPACE, CONTENTFUL_ACCESS_TOKEN } = process.env | |
const { documentToHtmlString } = require('@contentful/rich-text-html-renderer') | |
const { BLOCKS, INLINES } = require('@contentful/rich-text-types') |
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
<!-- Begin BrandBot Signup Form --> | |
<!-- <link href="https://assets.brandbot.com/forms/embed/embed.css" rel="stylesheet" type="text/css" /> --> | |
<div id="bb_form"> | |
<form | |
method="post" | |
action="https://microservices.brndbot.net/forms/answers" | |
name="{formId}" | |
id="bb_form_inner" | |
> | |
<div id="alert"></div> |
He was a champion of efficiency
OlderNewer