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
| // Placeholder @mixin for Sass | |
| // | |
| // A mixin to style placeholders in HTML5 form elements. | |
| // Includes also a .placeholder class to be used with a polyfill e.g. | |
| // https://github.com/mathiasbynens/jquery-placeholder | |
| // Requires Sass 3.2. | |
| // | |
| // Example usage (.scss): | |
| // | |
| // input { |
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] | |
| ;;;;;;;;;;;;;;;;;;; | |
| ; About php.ini ; | |
| ;;;;;;;;;;;;;;;;;;; | |
| ; PHP's initialization file, generally called php.ini, is responsible for | |
| ; configuring many of the aspects of PHP's behavior. | |
| ; PHP attempts to find and load this configuration from a number of locations. | |
| ; The following is a summary of its search order: |
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
| # See this wiki page for more info: | |
| # https://github.com/dylanaraps/neofetch/wiki/Customizing-Info | |
| print_info() { | |
| info title | |
| info underline | |
| info "OS" distro | |
| info "Host" model | |
| info "Kernel" kernel | |
| info "Uptime" uptime |
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 | |
| /* Wordpress Custom Search by title, ACF, post_meta */ | |
| // Wordpress ?s= redirect to /search/ | |
| function wpa_search_redirect() { | |
| global $wp_rewrite; | |
| if (!isset($wp_rewrite) || !is_object($wp_rewrite) || !$wp_rewrite->using_permalinks()) { return; } | |
| $search_base = $wp_rewrite->search_base; | |
| if (is_search() && !is_admin() && strpos($_SERVER['REQUEST_URI'], "/{$search_base}/") === false) { | |
| wp_redirect(home_url("/{$search_base}/" . urlencode(get_query_var('s')))); |
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 path = require('path'); | |
| var fs = require("fs"); | |
| var xmldoc = require('xmldoc'); | |
| var _ = require('lodash'); | |
| var webpack = require('webpack'); | |
| const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); | |
| var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; | |
| var c = require(path.join(__dirname, './gulp/config')); | |
| var prod = 'production' === process.env.NODE_ENV; |
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
| <span> | |
| <select name="month"> | |
| <option value="January">January</option> | |
| <option value="February">February</option> | |
| <option value="March">March</option> | |
| <option value="April">April</option> | |
| <option value="May">May</option> | |
| <option value="June">June</option> | |
| <option value="July">July</option> | |
| <option value="August">August</option> |
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
| // | |
| // Resposive spacer classes | |
| // -------------------------------------------------- | |
| // Margin properties to cycle through | |
| $margin-properties: ( | |
| mt: margin-top, | |
| mb: margin-bottom, | |
| my: margin, | |
| ml: margin-left, |
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
| 'use strict'; | |
| const autoprefixer = require('autoprefixer'); | |
| const browsers = require('@wordpress/browserslist-config'); | |
| const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
| const path = require('path'); | |
| const webpack = require('webpack'); | |
| module.exports = function (env, options) { |
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
| .video-container { | |
| position: relative; | |
| padding-bottom: 56.25%; /*16:9*/ | |
| padding-top: 30px; | |
| height: 0; | |
| overflow: hidden; | |
| } | |
| .video-container iframe, | |
| .video-container object, |
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
| { | |
| "$jason": { | |
| "title": "Territory Manager", | |
| "theme": "#474747", | |
| "body": { | |
| "action": { | |
| "trigger": "$default" | |
| }, | |
| "sections": [{ | |
| "items": [{ |