This file contains 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
/** | |
* Simple debug trace to the end of the page | |
* | |
* @usage d( $data ); | |
*/ | |
if ( true === WP_DEBUG ) { | |
function d( $data ) { |
This file contains 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
document.documentElement.setAttribute("data-browser", navigator.userAgent); |
This file contains 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 mediaJSON = { "categories" : [ { "name" : "Movies", | |
"videos" : [ | |
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
"subtitle" : "By Blender Foundation", | |
"thumb" : "images/BigBuckBunny.jpg", | |
"title" : "Big Buck Bunny" | |
}, | |
{ "description" : "The first Blender Open Movie from 2006", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |
This file contains 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
/** | |
* Flex Grid | |
*/ | |
// | |
// Usage | |
// ===== | |
// Assuming default values: | |
// <div class="row"> | |
// <div class="col-xs-6"> | |
// A half-width column. |
This file contains 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: Contact Form 7 Code Editor | |
* Version: 1.0.0 | |
* Plugin URI: https://latinandcode.com/ | |
* Author: Eugene Zhuchenko | |
* Author URI: eugenezhuchenko.com | |
* Text Domain: elementor-latinandcode | |
* Domain Path: /languages/ | |
* License: GPL v3 |
This file contains 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
/** | |
* map_value() | |
* | |
* Re-maps a number from one range to another. That is, a value of fromLow would get mapped to toLow, a value of fromHigh to toHigh, values in-between to values in-between, etc. | |
* @url: https://www.arduino.cc/reference/en/language/functions/math/map/ | |
* | |
* @param $val integer - the number to map | |
* @param $in_min integer - the lower bound of the value’s current range | |
* @param $in_max integer - the upper bound of the value’s current range | |
* @param $out_min integer - the lower bound of the value’s target range |
This file contains 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
/** | |
* Search for nice and short domains. | |
* Use for example a NameCheap | |
*/ | |
// Flatten array. Ex.: ['aa', 'ab', ['ac', 'ad']] => ['aa', 'ab', 'ac', 'ad'] | |
const flatten = arr => [].concat.apply([], arr); | |
// Remove non-unique items from given array | |
const uniq = a => [...new Set(a)]; |
This file contains 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
/** | |
* Simple debug trace to wp-content/debug.log | |
* | |
* @usage _log( $var ); | |
*/ | |
if ( ! function_exists( '_log' ) ) { | |
function _log() { | |
$args = func_get_args(); |
This file contains 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
// Configuration objects / Extend default mixin params with custom ones | |
// @src: https://hugogiraudel.com/2014/05/05/bringing-configuration-objects-to-sass/ | |
// Default var for overriding | |
$params: () !default; | |
// @param {map} $obj - object with default params | |
// @param {map} $ext-obj - object params to extend the default | |
@function extend($obj, $ext-obj) { | |
@return map-merge($obj, $ext-obj); | |
} |
This file contains 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 | |
// global | |
gulp = require('gulp'), | |
watch = require('gulp-watch'), | |
browserSync = require("browser-sync"), | |
reload = browserSync.reload, | |
sass = require('gulp-sass'), | |
prefixer = require('gulp-autoprefixer'), | |
cssnano = require('gulp-cssnano'), |
NewerOlder