Skip to content

Instantly share code, notes, and snippets.

🌑

Armon Raphiel araphiel

🌑
  • Dallas, TX
Block or report user

Report or block araphiel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@araphiel
araphiel / zoomInfo.js
Last active Feb 12, 2020
ZoomInfo + Marketo Form Listener
View zoomInfo.js
// 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 zoomInfoFormId expects a Marketo "form" object
function zoomListener(form) {
if (!form) throw new Error('Marketo Form Element not supplied.')
@araphiel
araphiel / webpack.config.js
Last active Sep 17, 2019
Generic Webpack 4 Setup (SASS / Babel)
View webpack.config.js
const { resolve } = require('path')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin')
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
module.exports = (env, argv) => {
return {
entry: [
resolve(__dirname, 'src', 'js', 'main.js'),
resolve(__dirname, 'src', 'scss', 'main.scss'),
@araphiel
araphiel / package.json
Last active Sep 8, 2019
Example Webpack Config for Static Sites
View package.json
{
"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",
@araphiel
araphiel / .env
Last active Jan 17, 2019
Gatsby.js Docker
View .env
GATSBY_WEBPACK_PUBLICPATH=/
ENABLE_REFRESH_ENDPOINT=true
View index.md
$ 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
@araphiel
araphiel / handleChange.js
Created Jul 20, 2018
React form handler
View handleChange.js
handleChange = event => {
this.setState({ [event.currentTarget.name]: event.currentTarget.value })
}
You can’t perform that action at this time.