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
/*General Purpose Form Validation*/ | |
(function($) { | |
$.fn.validateForm = function() { | |
var $form = $(this), | |
$submit = $form.find('button[type="submit"]'), | |
$messages = $('.form-messages[data-target="'+$form.attr('id')+'"]'), | |
successMessage = $form.attr('data-message'), | |
$requiredFields = $form.find('[data-required="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
# copy folders from remote to local | |
# use '/' for absolute directories | |
scp -r /path/to/source /path/to/destination | |
scp -r source login@address:/destination | |
# delete folder and files within that folder | |
rm -rf -- <dir-to-remove> |
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 fs = require('fs'), | |
puppeteer = require('puppeteer'), | |
tag = 'sushi'; | |
(async () => { | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
let sharedData, images; | |
await page.goto(`https://www.instagram.com/explore/tags/${tag}`); |
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 slides = [ | |
{ | |
image: | |
' https://s3.amazonaws.com/peloton-ride-images/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3/img_1530025103442.jpg', | |
title: 'Basics', | |
}, | |
{ | |
image: | |
'https://s3.amazonaws.com/peloton-ride-images/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3/img_1531254937082.jpg', | |
title: 'Essentials Package', |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
OlderNewer