- http://peopledevelopmentmagazine.com/2016/05/28/leadership-effectiveness/ - All about reading energy
- http://peopledevelopmentmagazine.com/2013/10/10/cornerstone-authentic-leadership - All about listening
- http://peopledevelopmentmagazine.com/2016/04/03/mindset-shifts-better-leader/ - Mindset Shift - Owning feelings
- https://www.entrepreneur.com/article/276800?utm_source=Latest&utm_medium=site&utm_campaign=iScroll - Employee grwoth
- http://www.theexecutivecoachingblog.com/2015/12/01/the-value-of-working-on-your-values/ - how to make decisions with opposing pairs
- http://www.theexecutivecoachingblog.com/2014/10/14/a-matter-of-scope/ - staying on track with differnet levels of vision.
- http://seapointcenter.com/dimensions-of-trust/ - bulilding trust
- http://leadchangegroup.com/stop-trying-to-grow-influence-grow-this-instead/ - influence vs capacity
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 | |
| add_filter( 'script_loader_tag', 'cameronjonesweb_add_script_handle', 10, 3 ); | |
| function cameronjonesweb_add_script_handle( $tag, $handle, $src ) { | |
| return str_replace( '<script', sprintf( | |
| '<script data-handle="%1$s"', | |
| esc_attr( $handle ) | |
| ), $tag ); | |
| } |
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
| # Continuous Integration to a WP Engine install | |
| # PHP CircleCI 2.1 configuration file | |
| # Requirements: | |
| # 1. In CircleCI settings, add environment variables for your site's installs: | |
| # * WPE_PRODUCTION_INSTALL=thenameofyourproductioninstall | |
| # * WPE_STAGING_INSTALL=thenameofyourstaginginstall | |
| # * WPE_DEVELOPMENT_INSTALL=thenameofyourdevelopmentinstall | |
| # 2. In your repo, have two files | |
| # * `./.gitignores/__default` -- Excludes any compiled files |
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 () { | |
| // If the browser supports Microsoft High Contrast Mode... | |
| if (window.matchMedia('(-ms-high-contrast: none), (-ms-high-contrast: active)').matches) { | |
| // Get all the SVGs on the page except the symbol defs | |
| var svgs = document.querySelectorAll('svg:not(.defs)') | |
| // ... iterate over SVGs | |
| Array.prototype.forEach.call(svgs, function(svg) { | |
| // Set preserveAspectRatio to 'XMidYMin slice' | |
| svg.setAttribute('preserveAspectRatio', 'xMidYMin slice') |
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
| # Makefile for transpiling with Babel in a Node app, or in a client- or | |
| # server-side shared library. | |
| .PHONY: all clean | |
| # Install `babel-cli` in a project to get the transpiler. | |
| babel := node_modules/.bin/babel | |
| # Identify modules to be transpiled by recursively searching the `src/` | |
| # directory. |
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
| @media (-ms-high-contrast: white-on-black) { | |
| /* rule sets for white on black */ | |
| } | |
| @media (-ms-high-contrast: black-on-white) { | |
| /* rule sets for black on white */ | |
| } |
It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.
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 non-destructive-map-merge($parent-map, $child-map) { | |
| $result: $parent-map; | |
| @each $key, $value in $child-map { | |
| @if (not map-has-key($result, $key)) or (type-of(map-get($result, $key)) != type-of($value)) or (not (type-of(map-get($result, $key)) == map and type-of($value) == map)) { | |
| $result: map-merge($result, ($key: $value)); | |
| } | |
| @else { | |
| $result: map-merge($result, ($key: non-destructive-map-merge(map-get($result, $key), $value))); | |
| } | |
| } |
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
| // Remove Meta Generator: <meta name="generator" content="WordPress x.x" /> | |
| // and <meta name="generator" content="WooCommerce x.x.x" /> | |
| remove_action('wp_head', 'wp_generator'); | |
| // Remove the EditURI/RSD | |
| // Like: <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://localhost/wp/xmlrpc.php?rsd" /> | |
| remove_action ('wp_head', 'rsd_link'); | |
| // Remove it if you don't know what is Windows Live Writer | |
| // <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://localhost/wp/wp-includes/wlwmanifest.xml" /> |
CloudFlare is an awesome reverse cache proxy and CDN that provides DNS, free HTTPS (TLS) support, best-in-class performance settings (gzip, SDCH, HTTP/2, sane Cache-Control and E-Tag headers, etc.), minification, etc.
- Make sure you have registered a domain name.
- Sign up for CloudFlare and create an account for your domain.
- In your domain registrar's admin panel, point the nameservers to CloudFlare's (refer to this awesome list of links for instructions for various registrars).
- From the CloudFlare settings for that domain, enable HTTPS/SSL and set up a Page Rule to force HTTPS redirects. (If you want to get fancy, you can also enable automatic minification for text-based assets [HTML/CSS/JS/SVG/etc.], which is a pretty cool feature if you don't want already have a build step for minification.)
- If you