Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| # This is a template .gitignore file for git-managed WordPress projects. | |
| # | |
| # Fact: you don't want WordPress core files, or your server-specific | |
| # configuration files etc., in your project's repository. You just don't. | |
| # | |
| # Solution: stick this file up your repository root (which it assumes is | |
| # also the WordPress root directory) and add exceptions for any plugins, | |
| # themes, and other directories that should be under version control. | |
| # | |
| # See the comments below for more info on how to add exceptions for your |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| <?php while($mb->have_fields_and_multi('GROUP-NAME')): ?> | |
| <?php $mb->the_group_open(); ?> | |
| <p class="update-warning">Remember, you must save the page for the sort order to take effect.</p> | |
| <?php $metabox->the_field('CONTENT-FIELD'); ?> | |
| <label for="<?php $metabox->the_name(); ?>">FIELD LABEL</label> | |
| <div class="customEditor"> | |
| <textarea rows="10" cols="50" name="<?php $mb->the_name(); ?>" id="<?php $mb->the_name(); ?>"><?php $mb->the_value(); ?></textarea> | |
| </div> |
| // This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.github.io | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
| * Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
| */ |
| body { | |
| padding: 20px; | |
| } | |
| .triangle { | |
| width: 0; | |
| height: 0; | |
| border-right: 100px solid black; | |
| border-top: 20px solid transparent; | |
| border-bottom: 20px solid transparent; | |
| margin: 10px; |
| # Workflow from https://github.com/necolas/dotfiles | |
| # Add the new submodule | |
| git submodule add git://example.com/remote/path/to/repo.git vim/bundle/one-submodule | |
| # Initialize the submodule | |
| git submodule init | |
| # Clone the submodule | |
| git submodule update | |
| # Stage the changes | |
| git add vim/bundle/one-submodule |
| jQuery(function () { | |
| var $feed = $(".feed"), | |
| $trigger = $(".next_page"), | |
| $spinner = $(".spinner"), | |
| spinner = "<div class=\"spinner\"></div>"; | |
| var isotopeSettings = { | |
| itemSelector: ".box" | |
| } |
| # PHPUnit: http://bit.ly/NYYCWs | |
| # Ruby: http://rubyinstaller.org/ (Mac) *OR* http://rubyinstaller.org/ (Win) | |
| # watchr: gem install watchr | |
| # Growl: http://growl.info/ | http://bit.ly/NYYCWs (Mac) *OR* http://bit.ly/NYYrdF (Win) | |
| # save in same level as 'artisan', then run watchr_imagesr autounit.rb | |
| # src: http://bit.ly/NYZMRT | |
| #watch just the test files (optionally superceeded by the next line) |
| global: | |
| env: | |
| - LARAVEL_ENV: pagoda | |
| web1: | |
| name: l4-web | |
| shared_writable_dirs: | |
| - app/storage/cache | |
| - app/storage/logs | |
| - app/storage/meta | |
| - app/storage/sessions |