Shortcut | Action |
---|---|
⌘ cmd + ⇧ shift + [ | Focus on previous file |
⌘ cmd + ⇧ shift + ] | Focus on next file |
⌘ cmd + \ | Split current file |
⌘ cmd + ⌥ alt + 0 | Toggle Horizontal / Vertical group |
This file contains hidden or 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 | |
# List all the site URLs | |
sites=$(wp site list --field=url) | |
# Loop over each site | |
for site in $sites | |
do | |
# Create a safe filename from the URL | |
filename=$(echo "$site" | sed 's/https\?:\/\///' | sed 's/\//_/g') |
This file contains hidden or 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
actionscript3 | |
apache | |
applescript | |
asp | |
brainfuck | |
c | |
cfm | |
clojure | |
cmake | |
coffee-script, coffeescript, coffee |
This file contains hidden or 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
<?php | |
namespace App; | |
add_action('after_setup_theme', function() { | |
$sage = sage('blade')->compiler(); | |
/** | |
* Create @asset() Blade directive | |
*/ |
This file contains hidden or 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
/** | |
* Update save location for ACF JSON | |
*/ | |
add_filter('acf/settings/save_json', function ( $path ) { | |
// Add path - Note uses get_template_directory to override any child theme JSON | |
$path = get_template_directory() . '/assets/acf-json'; | |
// Create the directory in themes that don't exist | |
if (!is_dir($path)) { |
This file contains hidden or 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
.gform_wrapper ul { | |
@extend .list-unstyled; | |
} | |
.gform_wrapper li { | |
@extend .form-group; | |
} | |
.gform_wrapper form { | |
margin-bottom: 0; | |
} | |
.gform_wrapper .gfield_required { |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
.gform_wrapper ul { | |
@extend .list-unstyled; | |
} | |
.gform_wrapper li { | |
@extend .form-group; | |
} | |
.gform_wrapper form { | |
margin-bottom: 0; |
NewerOlder