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 Twitter from 'twitter-lite' | |
import sleep from 'sleep' | |
import chalk from 'chalk' | |
const options = { | |
consumer_key: process.env.CONSUMER_KEY, | |
consumer_secret: process.env.CONSUMER_SECRET, | |
access_token_key: process.env.ACCESS_TOKEN_KEY, | |
access_token_secret: process.env.ACCESS_TOKEN_SECRET | |
} |
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
#!/usr/bin/bash | |
# | |
# Author: BowlineDandy | |
# | |
# Convert DaVinci Resolve Videos Back to Original GoPro sizes | |
# And have them be web friendly as well | |
# Outperforms Compressor in Mac | |
# Requires Nvidia GPU | |
# Requires CUDA Enabled ffmpeg (Custom compiled from Source) | |
# |
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
#!/bin/bash | |
font_family="FiraCode-Regular.ttf" | |
image="logo.jpg" | |
getMetaTitle (){ | |
tmp=$( ffprobe "$1" 2>&1 | grep title) | |
echo ${tmp##*:} | |
} |
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 loopQuery from '../tools/loopQuery' // https://gist.github.com/shelldandy/da437ea6a134dca26a4ceec42b88e893 | |
import { faqs } from 'styles' | |
const accordion = ({ | |
activeClass = 'js-accordion-active', | |
// The whole accordion | |
accordionSelector = '[data-accordion]', | |
// The part of the accordion that shrinks and shows | |
contentSelector = '[data-content]', | |
// The part of the accordion you click |
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 gulp = require('gulp') | |
const imagemin = require('gulp-imagemin') | |
const imageminPngquant = require('imagemin-pngquant'); | |
const imageminZopfli = require('imagemin-zopfli'); | |
const imageminMozjpeg = require('imagemin-mozjpeg'); // need to run 'brew install libpng' | |
const imageminGiflossy = require('imagemin-giflossy'); | |
gulp.task('esketit', () => | |
gulp.src(['src/**/*.{gif,png,jpg,jpeg,svg}']) | |
.pipe(imagemin([ |
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 { Component, createRef } from 'react'; | |
import PropTypes from 'prop-types'; | |
class Toggle extends Component { | |
state = { | |
on: false, | |
} | |
wrapper = createRef() |
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
{ | |
// ... | |
optimization: { | |
splitChunks: { | |
cacheGroups: { | |
commons: { | |
test: /[\\/]node_modules[\\/]/, | |
name: 'vendor', | |
chunks: 'initial', | |
}, |
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 PGP PUBLIC KEY BLOCK----- | |
mQENBFnQbV8BCACyN7kRYtOgi9vY6cCp1BZcVKRBcJd6JZTieABLw6+Rgr2xozyl | |
e3npvPBtg2ccPQqlG0CgpJkxQfNpo7MhMp3svVcgebwnYzCrJmM95NU9IDYcAI9N | |
HR+HOAOIiXJTPX7nujoBshxZ2bl8GuJYggVLIyOEX5qtS49TdZ8jvRWkC9bxR3Jh | |
7O5PADlKe74Tce/k1nwQdlpIRJ+0zu/yDdjOuBtCxCrEX2h0GDHZD3xa8oYE2ed2 | |
DBQO3bAB9x0MTcrwzatvtr163JTxGBKPc2GpC5mEaZCaLd1QhmfqtvlyLjeXHa2Z | |
TzDdimbDgSyY/HP67Hc0RMuCC8ovxGHIgxcnABEBAAG0Kk1pZ3VlbCBQYWxhdSBa | |
YXJ6YSA8bXBhbGF1emFyemFAZ21haWwuY29tPokBVAQTAQgAPhYhBIBn5gFjR1dK | |
CHpqfomJAF5ePzhuBQJZ0G1fAhsDBQkDwmcABQsJCAcCBhUICQoLAgQWAgMBAh4B |
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
/** | |
* Make a document.querySelectorAll loopable | |
* @author Todd Motto | |
* @tutorial https://toddmotto.com/ditch-the-array-foreach-call-nodelist-hack | |
* @param {NodeList} elements | |
* @param {Function} callback function that takes element and index | |
* @param {this} scope what this refers to | |
*/ | |
const loopQuery = (elements, callback, scope) => { | |
for (let i = 0; i < elements.length; i++) { |
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
// Paste in console on the product list in the admin | |
// EXAMPLE | |
// https://************.myshopify.com/admin/products | |
// Select all the links to product pages | |
function downloadSP (name) { | |
$(`tbody td a[href^="/admin/${name}"]`).each(function (index) { | |
const me = $(this) | |
// Grab the original href |
NewerOlder