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
| .tabs{ | |
| margin: {top:40px;} | |
| &:last-child{ | |
| margin: {bottom:80px;} | |
| } | |
| h2{ | |
| color: $color-1; | |
| font: { | |
| size: emCalc(36px); | |
| } |
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
| $ wget \ | |
| --recursive \ | |
| --no-clobber \ | |
| --page-requisites \ | |
| --html-extension \ | |
| --convert-links \ | |
| --domains website.org \ | |
| --no-parent \ | |
| www.website.org/tutorials/html/ |
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
| # Installation | |
| brew install ffmpeg --with-vpx --with-vorbis --with-libvorbis --with-vpx --with-vorbis --with-theora --with-libogg --with-libvorbis --with-gpl --with-version3 --with-nonfree --with-postproc --with-libaacplus --with-libass --with-libcelt --with-libfaac --with-libfdk-aac --with-libfreetype --with-libmp3lame --with-libopencore-amrnb --with-libopencore-amrwb --with-libopenjpeg --with-openssl --with-libopus --with-libschroedinger --with-libspeex --with-libtheora --with-libvo-aacenc --with-libvorbis --with-libvpx --with-libx264 --with-libxvid | |
| # Easy Peasy | |
| ffmpeg -i video.mp4 video.webm |
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( 'gform_form_tag', 'gform_form_tag_autocomplete', 11, 2 ); | |
| function gform_form_tag_autocomplete( $form_tag, $form ) { | |
| if ( is_admin() ) return $form_tag; | |
| if ( GFFormsModel::is_html5_enabled() ) { | |
| $form_tag = str_replace( '>', ' autocomplete="off">', $form_tag ); | |
| } | |
| return $form_tag; | |
| } | |
| add_filter( 'gform_field_content', 'gform_form_input_autocomplete', 11, 5 ); |
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 | |
| /** | |
| * Send debug code to the Javascript console | |
| */ | |
| function debug_to_console($data) { | |
| if(is_array($data) || is_object($data)) | |
| { | |
| echo("<script>console.log('PHP: ".json_encode($data)."');</script>"); | |
| } else { | |
| echo("<script>console.log('PHP: ".$data."');</script>"); |
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 | |
| /** | |
| * Return an ID of an attachment by searching the database with the file URL. | |
| * | |
| * First checks to see if the $url is pointing to a file that exists in | |
| * the wp-content directory. If so, then we search the database for a | |
| * partial match consisting of the remaining path AFTER the wp-content | |
| * directory. Finally, if a match is found the attachment ID will be | |
| * returned. | |
| * |
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 | |
| /** | |
| * --- STOP! --- | |
| * Get the latest version: | |
| * https://gravitywiz.com/documentation/gravity-forms-ecommerce-fields/ | |
| * ------------- | |
| * | |
| * Calculation Subtotal Merge Tag | |
| * | |
| * Adds a {subtotal} merge tag which calculates the subtotal of the form. |
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
| html, | |
| body { | |
| cursor: default; | |
| } | |
| code { | |
| cursor: text; | |
| } | |
| /* |
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 | |
| /* | |
| * Plugin Name: Mini Admin Bar | |
| * Plugin URI: | |
| * Description: Makes the admin bar a small button on the left and expands on hover. | |
| * Version: 1.0 | |
| * Author: Shea Bunge | |
| * Author URI: http://bungeshea.com | |
| * License: MIT | |
| */ |