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
| user ashley; | |
| worker_processes 1; | |
| pid /run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| multi_accept on; | |
| } | |
| http { |
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
| var gulp = require('gulp'); | |
| var config = require('../config'); | |
| var wiredep = require('wiredep').stream; | |
| gulp.task('wiredep', function () { | |
| gulp.src(config.wiredep_file) | |
| .pipe(wiredep({ | |
| directory: 'assets/lib', | |
| ignorePath: '..', | |
| fileTypes: { |
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
| /** | |
| * | |
| * Gulpfile setup | |
| * | |
| * @since 1.0.0 | |
| * @authors Ahmad Awais, @digisavvy, @desaiuditd, @jb510, @dmassiani and @Maxlopez | |
| * @package neat | |
| * @forks _s & some-like-it-neat | |
| */ |
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 | |
| //emoji aus dem header entfernen | |
| function disable_emoji_dequeue_script() { | |
| wp_dequeue_script( 'emoji' ); | |
| } | |
| add_action( 'wp_print_scripts', 'disable_emoji_dequeue_script', 100 ); | |
| remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
| remove_action( 'wp_print_styles', 'print_emoji_styles' ); |
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 | |
| /** | |
| * Javascript for Load More | |
| * | |
| */ | |
| function be_load_more_js() { | |
| global $wp_query; | |
| $args = array( |
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
| swPrecache.write(path.resolve(__dirname, `../public/service-worker.js`), { | |
| cacheId: `know-it-all`, | |
| filename: `service-worker.js`, | |
| stripPrefix: `public/`, | |
| staticFileGlobs: [ | |
| `public/app.*.js`, // don't include the polyfills version | |
| `public/*.{html,ico,json,png}`, | |
| ], | |
| dontCacheBustUrlsMatching: [ | |
| /\.(js|json)$/, // I'm cache busting js and json files myself |
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_action( 'some_hook', 'maxslider_enqueue_slider_css' ); | |
| function maxslider_enqueue_slider_css() { | |
| $css = ''; | |
| // ... | |
| if ( true === $something ) { | |
| $css = 'body { background-color: ' . $color . '; }'; | |
| } |
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
| /// linear-interpolation | |
| /// Calculate the definition of a line between two points | |
| /// @param $map - A SASS map of viewport widths and size value pairs | |
| /// @returns A linear equation as a calc() function | |
| /// @example | |
| /// font-size: linear-interpolation((320px: 18px, 768px: 26px)); | |
| /// @author Jake Wilson <[email protected]> | |
| @function linear-interpolation($map) { | |
| $keys: map-keys($map); | |
| @if (length($keys) != 2) { |
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
| /// poly-fluid-sizing | |
| /// Generate linear interpolated size values through multiple break points | |
| /// @param $property - A string CSS property name | |
| /// @param $map - A SASS map of viewport unit and size value pairs | |
| /// @requires function linear-interpolation | |
| /// @requires function map-sort | |
| /// @example | |
| /// @include poly-fluid-sizing('font-size', (576px: 22px, 768px: 24px, 992px: 34px)); | |
| /// @author Jake Wilson <[email protected]> | |
| @mixin poly-fluid-sizing($property, $map) { |
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
| @mixin valid-quantity($quantity) { | |
| @if type-of($quantity) != 'number' { | |
| @error 'The "quantity" parameter must be a number!'; | |
| } | |
| @if not(unitless($quantity)) { | |
| @error 'The "quantity" parameter must not have a unit!'; | |
| } | |
| @if $quantity < 0 { | |
| @error 'The "quantity" parameter must be at least 0!'; | |
| } |