$ 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
// ZoomInfo + Marketo Form Listener | |
// Created to display or hide fields that are already validated by ZoomInfo | |
// This script does the following: | |
// 1. Adds initial state to the ZoomInfo + Marketo form (to hide init values) | |
// 2. Prevents non-validated users from completing the form. | |
// @variable form expects a Marketo "form" object (standard part of Marketo form js api) | |
function zoomListener(form) { | |
if (!form) throw new Error('Marketo Form Element not supplied.') |
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 { client } = require('../helpers/contentful-client') | |
const groupBy = require('lodash/fp/groupBy') | |
async function getPageData() { | |
// Get all of the locales | |
const localeData = await client.getLocales() | |
const localeList = await localeData.items.map(locale => locale.code) | |
// Fetch collection of all page-builder pages for each locale |
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
<!-- 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> |
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') |
OlderNewer