- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
| <?php | |
| /** Ninja Forms */ | |
| function delight_ninja_forms() { | |
| if ( function_exists('ninja_forms_get_all_forms') ) { | |
| $nfs = ninja_forms_get_all_forms(); | |
| } | |
| $nforms = array( '' => __('Select a Form', 'TEXT-DOMAIN') ); | |
| if( !empty( $nfs ) ) { | |
| foreach($nfs as $form){ |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| /* | |
| * debouncedresize: special jQuery event that happens once after a window resize | |
| * | |
| * latest version and complete README available on Github: | |
| * https://github.com/louisremi/jquery-smartresize/blob/master/jquery.debouncedresize.js | |
| * | |
| * Copyright 2011 @louis_remi | |
| * Licensed under the MIT license. | |
| */ | |
| var $ = jQuery; |
| /** | |
| * How to link into the WordPress Customizer | |
| */ | |
| Simple Link: | |
| <a href="<?php echo esc_url( admin_url( 'customize.php' ) ); ?>">Link to Customizer</a> | |
| Link to Panel: | |
| $query['autofocus[panel]'] = 'nav_menus'; |
| # Steps we will take: | |
| # 1. Change Local (Docker Machine) image type (this will take a bit) | |
| # 2. Resize image | |
| # 3. Resize partion | |
| # | |
| # Also see: https://docs.docker.com/articles/b2d_volume_resize/ | |
| # IMPORTANT: Make sure Local is not running! | |
| VM_NAME="local-by-flywheel" | |
| NEW_DISK_SIZE=50000 |
| # List all installed versions. | |
| nmv ls | |
| # Install a specific version. | |
| nvm install 9.6.0 | |
| # Use a specific version. | |
| nvm use 9.6.0 | |
| # Set the Default Version. |
| -Xmx2048m | |
| -Xms1024m | |
| -XX:NewRatio=1 | |
| -XX:ReservedCodeCacheSize=240m | |
| -XX:+UseCompressedOops | |
| -Dfile.encoding=UTF-8 | |
| -XX:+UseConcMarkSweepGC | |
| -XX:SoftRefLRUPolicyMSPerMB=50 | |
| -ea | |
| -Dsun.io.useCanonCaches=false |