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 | |
| $args = array( | |
| 'role' => 'Administrator', | |
| 'meta_query' => array( | |
| array( | |
| 'key' => 'first_name', | |
| 'value' => '', | |
| 'compare' => '!=' | |
| ), | |
| ), |
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
| .bootstrap-wrapper { | |
| @import url( '../vendor/bootstrap/bootstrap.less' ); | |
| } |
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
| .bootstrap-wrapper { | |
| @import (less) url( '../vendor/bootstrap/bootstrap.css' ); | |
| } |
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
| 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 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 | |
| class Clean_Walker_Nav extends Walker_Nav_Menu { | |
| /** | |
| * Filter used to remove built in WordPress-generated classes | |
| * @param mixed $var The array item to verify | |
| * @return boolean Whether or not the item matches the filter | |
| */ | |
| function filter_builtin_classes( $var ) { | |
| return ( FALSE === strpos( $var, 'item' ) ) ? $var : ''; | |
| } |
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
| setlocal enabledelayedexpansion | |
| set var=%1 | |
| set output= | |
| for /f "delims=" %%a in ('git diff-tree --no-commit-id --name-only -r %1^^') do ( set output=!output! "%%a" ) | |
| git archive -o update-%var:~0,7%.zip HEAD %output% | |
| endlocal |
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
| git archive -o update.zip HEAD $(git diff --name-only COMMITIDHERE^) |
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
| git archive -o update.zip HEAD $(git diff --name-only 8de5622^) |
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 | |
| protected function getCardType( $ccNum ) { | |
| if (preg_match("/^5[1-5][0-9]{14}$/", $ccNum)) | |
| return "Mastercard"; | |
| if (preg_match("/^4[0-9]{12}([0-9]{3})?$/", $ccNum)) | |
| return "Visa"; | |
| if (preg_match("/^3[47][0-9]{13}$/", $ccNum)) | |
| return "American Express"; |
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
| var ViewModel = function( data ) { | |
| this.observableArrayObject = ko.observableArray( data.items ).extend( { 'grouped': 4 } ); | |
| }; |