NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
| # Put this in your ~/.gitconfig or ~/.config/git/config | |
| # Windows users: "~" is your profile's home directory, e.g. C:\Users\<YourName> | |
| [user] | |
| name = Your Full Name | |
| email = your@email.tld | |
| [color] | |
| # Enable colors in color-supporting terminals | |
| ui = auto | |
| [alias] | |
| # List available aliases |
NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
| // 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 | |
| */ |
| /*jshint forin:true, noarg:true, noempty:true, eqeqeq:true, bitwise:true, strict:true, undef:true, curly:true, browser:true, indent:2, maxerr:50 */ | |
| (function (document) { | |
| "use strict"; | |
| function getElementsByClassName(match, tag) { | |
| if (document.getElementsByClassName) { | |
| return document.getElementsByClassName(match); | |
| } | |
| var result = [], | |
| elements = document.getElementsByTagName(tag || '*'), | |
| i, elem; |
| /* ---------------------------------------------------------- */ | |
| /* */ | |
| /* A media query that captures: */ | |
| /* */ | |
| /* - Retina iOS devices */ | |
| /* - Retina Macs running Safari */ | |
| /* - High DPI Windows PCs running IE 8 and above */ | |
| /* - Low DPI Windows PCs running IE, zoomed in */ | |
| /* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
| /* - Android hdpi devices and above */ |
| <?php | |
| /** | |
| * _s Theme Options | |
| * | |
| * @package _s | |
| * @since _s 1.0 | |
| */ | |
| /** | |
| * Register the form setting for our _s_options array. |
| <?php | |
| /** | |
| * == About this Gist == | |
| * | |
| * Code to add to wp-config.php to enhance information available for debugging. | |
| * | |
| * You would typically add this code below the database, language and salt settings | |
| * | |
| * Oh.. and *do* make sure you change the path to the log file to a proper file path on your server (make sure it exists). | |
| * |
| #!/usr/bin/env bash | |
| ############################################################### | |
| # Prevents a commit when Gemfile has references to local gems # | |
| ############################################################### | |
| if | |
| test "$(git diff-index --cached HEAD -G'\Wpath(:|\s?=\>)' -- Gemfile)" | |
| then | |
| echo "Error: you have references to local gems in your Gemfile. Commit aborted." |
| # This the bash script to handle up-and-runnig VM created through Vagrant | |
| #!/usr/bin/env bash | |
| # PRIVATE: error level message | |
| error_message () { | |
| echo "$(tput setaf 1)ERROR: $1$(tput sgr0)" | |
| } | |