# Clone repo to current folder
git clone https://github.com/USERNAME/REPOSITORY.git
# Clone repo to specified folder
git clone https://github.com/USERNAME/REPOSITORY.git specified-folder
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
(function($) { | |
$('[placeholder]').focus(function() { | |
var input = $(this); | |
if (input.val() == input.attr('placeholder')) { | |
input.val(''); | |
input.removeClass('placeholder'); | |
} | |
}).blur(function() { | |
var input = $(this); | |
if (input.val() == '' || input.val() == input.attr('placeholder')) { |
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
function roots_nice_search_redirect() { | |
$valued = $_GET["post_type"]; | |
if(!empty($valued)) { $valued = "?post_type=".$valued; }; | |
if (is_search() && strpos($_SERVER['REQUEST_URI'], '/wp-admin/') === false && strpos($_SERVER['REQUEST_URI'], '/search/') === false) { | |
wp_redirect(home_url('/search/'.str_replace(array(' ','%20'),array('+', '+'),urlencode(get_query_var('s'))).$valued), 301); | |
exit(); | |
} | |
} |
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; |
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; | |
} | |
.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
/** | |
* 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
<?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
actionscript3 | |
apache | |
applescript | |
asp | |
brainfuck | |
c | |
cfm | |
clojure | |
cmake | |
coffee-script, coffeescript, coffee |
OlderNewer