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 | |
/** | |
* Gravity Wiz // Gravity Perks // GP Limit Choices // Shortcodes | |
* | |
* Provides several shortcodes providing the ability to display the number of times a choice has been selected, | |
* the total number of times a choice can be selected, and the remaining number of times a choice can be selected. | |
* | |
* @version 1.0 | |
* @author David Smith <[email protected]> | |
* @license GPL-2.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
# terminal-notifier available at https://github.com/alloy/terminal-notifier | |
PROJECT_PATH="/Users/username/Path/To/Project/" | |
GITFILE="$PROJECT_PATH.git" | |
if [ ! -e $GITFILE ] | |
then | |
cd $PROJECT_PATH && git init && git add . && git commit -m 'initial commit' | |
terminal-notifier -message "Created local git repo with initial commit" -title "CodeKit hook: git" | |
else |
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
{ | |
"name" : "rarst/install-test", | |
"description" : "Test project for WordPress stack via Composer", | |
"authors" : [ | |
{ | |
"name" : "Andrey Savchenko", | |
"homepage": "http://www.Rarst.net/" | |
} | |
], | |
"type" : "project", |
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 shireman_books_header_loop( $args ) { | |
global $post; | |
$defaults = array( | |
'orderby' => 'rand', | |
'post_type' => 'we_published-book', | |
'posts_per_page' => 9, | |
'post_status' => 'publish', | |
'no_found_rows' => true, // counts posts, remove if pagination required | |
'update_post_term_cache' => false, // grabs terms, remove if terms required (category, tag...) | |
'update_post_meta_cache' => false, // grabs post meta, remove if post meta 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
upstream php-fpm { | |
server unix:/var/run/php5-fpm.sock; | |
} | |
server { | |
listen 80; | |
server_name www.example.com; | |
rewrite ^ http://example.com$request_uri?; | |
} |
NewerOlder