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
git archive -o update.zip HEAD $(git diff --name-only COMMITIDHERE^) |
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
wget64 http://wordpress.org/latest.tar.gz | |
7z e latest.tar.gz & 7z x latest.tar | |
robocopy wordpress ./ /MOVE /E | |
del latest.tar | |
del latest.tar.gz | |
ren wp-config-sample.php wp-config.php |
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
.bootstrap-wrapper { | |
@import url( '../vendor/bootstrap/bootstrap.less' ); | |
} |
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
<?php | |
$args = array( | |
'role' => 'Administrator', | |
'meta_query' => array( | |
array( | |
'key' => 'first_name', | |
'value' => '', | |
'compare' => '!=' | |
), | |
), |
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
<?php | |
//Auctions should be geocoded on save | |
function geocode_auction($post_id){ | |
$auction_slug = 'auctions'; | |
$_POST += array("{$auction_slug}_edit_nonce" => ''); | |
if ( $auction_slug == $_POST['post_type'] && current_user_can( 'edit_post', $post_id )) { | |
$address = get_post_meta(get_the_ID(), 'Location', 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
#!/bin/sh | |
args=("$@") | |
git archive -o deploy/deploy-devcompare.zip HEAD $(git diff-tree --no-commit-id --name-only -r master..development) |
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
angular | |
.module( 'yourAppName' ) | |
.directive( 'bindOnce', BindOnce ); | |
function BindOnce() { | |
return { | |
scope: true, | |
link: function( $scope ) { | |
setTimeout(function() { | |
$scope.$destroy(); |
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
.ui-dialog { | |
* { | |
box-sizing: content-box; | |
} | |
.ui-dialog-titlebar { | |
border-bottom: none; | |
} | |
.page { | |
width: 100% !important; | |
} |
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
<?php | |
add_filter( 'pre_comment_content', function( $content ) { | |
if ( strlen( $content ) > 64000 ) | |
wp_die( 'Invalid comment.' ); | |
return $content; | |
} ); |
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
<?php | |
add_filter('wp_get_attachment_image_attributes', 'interchange_the_images', 10, 2); | |
function interchange_the_images ( $attr, $attachment ) | |
{ | |
/* Use ID to get the attachment object */ | |
$lg_hero_array = wp_get_attachment_image_src( $attachment->ID, 'large', true ); //Large Hero | |
$md_hero_array = wp_get_attachment_image_src( $attachment->ID, 'medium', true ); // Medium Hero | |
$sm_hero_array = wp_get_attachment_image_src( $attachment->ID, 'thumbnail', true ); // Mobile Hero |
OlderNewer