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
// https://courses.wesbos.com/account/access/5b6921eb99ce1f5578c26a50/view/174357559 | |
const cuts = [ 'Chuck', 'Brisket', 'Shank', 'Short Rib' ]; | |
for ( const index in cuts ) { | |
console.log( cuts[index] ); | |
} |
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
// https://courses.wesbos.com/account/access/5b6921eb99ce1f5578c26a50/view/174357553 | |
function left_pad( str, length = 20 ) { | |
return `-> ${' '.repeat( length - str.length )}${str}; | |
} | |
console.log( left_pad( 'All' ); | |
console.log( left_pad( 'these' ); | |
console.log( left_pad( 'strings' ); | |
console.log( left_pad( 'should' ); | |
console.log( left_pad( 'be' ); |
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
/* | |
* Root-level Variables | |
* Usage: color: var( --c-primary ); | |
*/ | |
:root { | |
--c-blue-quinary: #174893; | |
--c-white: #ffffff; | |
--font-secondary: 'Source Sans Pro', sans-serif; |
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
:root { | |
/* Colors. */ | |
--color-white: #fff; | |
--color-dark: #111; | |
--color-light: #e9e9e8; | |
--color-brand: #5a6fff; | |
--color-black-rgb: 0, 0, 0; | |
--spacing-unit: 0.5rem; | |
--spacing-unit-2: 1rem; |
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
######################################### | |
# Docker # | |
######################################### | |
alias dc="docker-compose" | |
# Interact with WP-CLI in Docker container | |
alias dockwp="docker-compose exec --user www-data phpfpm wp" | |
# SSH in to Docker container | |
alias dockroot="docker-compose exec --user root phpfpm bash" | |
alias dockbash='docker-compose exec --user www-data phpfpm bash' |
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
<h1>This is an H1</h1> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Tu vero, inquam, ducas licet, si sequetur; Haec et tu ita posuisti, et verba vestra sunt. Atque his de rebus et splendida est eorum et illustris oratio. Eam stabilem appellas. Nam Pyrrho, Aristo, Erillus iam diu abiecti. Illa sunt similia: hebes acies est cuipiam oculorum, corpore alius senescit; Est enim effectrix multarum et magnarum voluptatum. Duo Reges: constructio interrete. </p> | |
<p>Fortasse id optimum, sed ubi illud: Plus semper voluptatis? Nihil enim hoc differt. Hoc enim constituto in philosophia constituta sunt omnia. Dat enim intervalla et relaxat. Aliena dixit in physicis nec ea ipsa, quae tibi probarentur; Tecum optime, deinde etiam cum mediocri amico. Ait enim se, si uratur, Quam hoc suave! dicturum. Respondent extrema primis, media utrisque, omnia omnibus. </p> | |
<h2>This is an H2</h2> | |
<p>Ita multo sanguine profuso in laetitia et in victoria est mortuus. Quae duo sunt, unum facit. Expectoque quid ad id, quod quaer |
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/wpsnapshots.sh configure 10up | |
Enter your key info... | |
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
// Not for Production, right? 👻 | |
function guacamole_inspect_scripts() { | |
global $wp_scripts, $wp_styles; | |
// Loop through all enqueue'd JS scripts and echo out. | |
foreach ( $wp_scripts->queue as $handle ) : | |
echo $handle . ' | '; | |
endforeach; | |
// Loop through all enqueue'd CSS styles and echo out. |
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/sh | |
if [ "$#" -ne 1 ] | |
then | |
echo "Usage: Must supply a domain" | |
exit 1 | |
fi | |
DOMAIN=$1 |
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 | |
for site in $(wp site list --field=url) | |
do | |
wp theme list --status=active --url=$site | |
done |