Give developers more knowledge about how the classes behave in a non-relative sense: BEM + ITCSS = BEMIT
BEM:
| <?php | |
| // include all PHP files in ./lib/ directory: | |
| foreach ( glob( dirname( __FILE__ ) . '/lib/*.php' ) as $file ) | |
| include $file; | |
| /** | |
| * Stop an iframe or HTML5 <video> from playing | |
| * @param {Element} element The element that contains the video | |
| */ | |
| var stopVideo = function ( element ) { | |
| var iframe = element.querySelector( 'iframe'); | |
| var video = element.querySelector( 'video' ); | |
| if ( iframe ) { | |
| var iframeSrc = iframe.src; | |
| iframe.src = iframeSrc; |
| /** | |
| * Clean gulp cache | |
| */ | |
| gulp.task('clear', function () { | |
| cache.clearAll(); | |
| }); | |
| /** | |
| * Clean tasks for zip |
Give developers more knowledge about how the classes behave in a non-relative sense: BEM + ITCSS = BEMIT
BEM:
| //does not work with colors containing alpha | |
| @function encodecolor($string) { | |
| @if type-of($string) == 'color' { | |
| $hex: str-slice(ie-hex-str($string), 4); | |
| $string:unquote("#{$hex}"); | |
| } | |
| $string: '%23' + $string; | |
| @return $string; | |
| } |
| # ---------------------------------------------------------------------- | |
| # | Komprimierung und Caching | | |
| # ---------------------------------------------------------------------- | |
| # Serve resources with far-future expires headers. | |
| # | |
| # (!) If you don't control versioning with filename-based | |
| # cache busting, you should consider lowering the cache times | |
| # to something like one week. | |
| # |
| <?php | |
| /** | |
| * Plugin Name: Convert ACF PHP to JSON | |
| * Description: Convert Advanced Custom Fields Pro configuration from PHP to JSON. | |
| */ | |
| namespace ConvertAcfPhpToJson; | |
| /** | |
| * Add submenu item under 'Custom Fields' |
| ######################################################################## | |
| # OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2.0.9 - 03/2024 | |
| # ---------------------------------------------------------------------- | |
| # @Author: Andreas Hecht | |
| # @Author URI: https://seoagentur-hamburg.com | |
| # License: GNU General Public License v2 or later | |
| # License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
| ######################################################################## | |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| proxy: | |
| mannequin: | |
| - appname-styleguide.lndo.site | |
| node: | |
| - appname-bs.lndo.site:3000 | |
| services: | |
| mannequin: | |
| type: compose | |
| services: | |
| image: php:7.3 |