This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| # check if there is a file named maintenance.html | |
| # so when you want to disable maintenance mode just remname "mv maintenance.html maintenance.html.disabled" | |
| RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f | |
| RewriteCond %{SCRIPT_FILENAME} !maintenance.html | |
| RewriteRule ^.*$ /maintenance.html [R=503,L] | |
| ErrorDocument 503 /maintenance.html |
| <?php | |
| /** | |
| * Gravity Forms: Example of conditionally requiring a field based on the value of another field. | |
| */ | |
| add_filter( 'gform_pre_render', 'gw_conditional_requirement' ); | |
| add_filter( 'gform_pre_validation', 'gw_conditional_requirement' ); | |
| function gw_conditional_requirement( $form ) { | |
| $value = rgpost( 'input_2' ); | |
| if( $value == 'no' ) |
| /*http://i-skool.co.uk/mobile-development/web-design-for-mobiles-and-tablets-viewport-sizes/*/ | |
| /*At least requires the meta viewport tag with content 'width=device-width'*/ | |
| @media only screen and (max-width: 1080px) and (orientation : portrait) { | |
| /* PORTRAIT: | |
| Windows Surface Pro*/ | |
| } | |
| @media only screen and (max-width: 800px) and (orientation : portrait) { | |
| /* PORTRAIT: | |
| Acer Iconia Tab A100 |
| <?php | |
| /** | |
| * Plugin Name: WooCommerce Installments Example | |
| * Plugin URI: http://claudiosmweb.com/ | |
| * Description: Added the price with 3 installments without interest. | |
| * Author: claudiosanches | |
| * Author URI: http://www.claudiosmweb.com/ | |
| * Version: 1.0 | |
| * License: GPLv2 or later | |
| */ |
| <?php | |
| /** | |
| * | |
| * This removes the ability to add the FULL image size into a post, it does not alter or delete the image | |
| * Add whataever extra image sizes to the insert dropdown in WordPress you create via add_image_size | |
| * | |
| * For now we have to do it this way to make the labels translatable, see trac ref below. | |
| * | |
| * If your theme has $content_width GLOBAL make sure and remove it |
Authored by Peter Rybin , Chrome DevTools team
In this short guide we'll review some new Chrome DevTools features for "function scope" and "internal properties" by exploring some base JavaScript language concepts.
Let's start with closures – one of the most famous things in JS. A closure is a function, that uses variables from outside. See an example:
| // 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 | |
| */ |
| <?php | |
| /* | |
| Plugin Name: R Debug | |
| Description: Set of dump helpers for debug. | |
| Author: Andrey "Rarst" Savchenko | |
| Author URI: https://www.rarst.net/ | |
| License: MIT | |
| */ |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |