These rules are adopted from the AngularJS commit conventions.
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
// https://cdn.jsdelivr.net/npm/splitting@1.0.6/dist/splitting.min.js | |
(() => { | |
const animatedClass = 'is-animated'; | |
const observer = new IntersectionObserver((entries) => { | |
entries.forEach((entry) => { | |
animateElement(entry.target, entry.isIntersecting); | |
}); | |
}, {rootMargin: '0px'}); | |
const animateElement = (element, isToggle) => { |
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
<!-- wp:boldblocks/group {"className":"","boldblocks":{"width":{"sm":{"inherit":"lg"},"md":{"inherit":"lg"},"lg":{"value":{"width":"custom","value":"36px"},"inherit":null}},"height":{},"spacing":{},"overlay":{"opacity":100},"background":{},"textAlignment":{},"verticalAlignment":{},"justifyAlignment":{},"border":{"lg":{"value":{},"inherit":null},"md":{"inherit":"lg"},"sm":{"inherit":"lg"}},"enableEllipticalRadius":false,"borderRadius":{"lg":{"value":{},"inherit":null},"md":{"inherit":"lg"},"sm":{"inherit":"lg"}},"shadows":[],"transform":{"lg":{"value":[],"inherit":null},"md":{"inherit":"lg"},"sm":{"inherit":"lg"}},"transformOrigin":{},"animations":[],"animateMultipleTimes":false,"customCSS":{"value":"selector {\n\tcursor: pointer;\n}\nselector .close,\nselector .search {\n transition: opacity .15s;\n}\nselector .is-toggled-off .close,\nselector .search {\n opacity: 0;\n}\nselector .is-toggled-off .search,\nselector .close {\n opacity: 1;\n}\n","id":"IJvC6zkI5G"},"toggle":{"uniqueId":"1lvzSVz6La"}}} --> | |
<div |
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
#!/bin/bash | |
# Bash shell script for generating self-signed certs. Run this in a folder, as it | |
# generates a few files. Large portions of this script were taken from the | |
# following artcile: | |
# | |
# http://usrportage.de/archives/919-Batch-generating-SSL-certificates.html | |
# | |
# Additional alterations by: Brad Landers | |
# Date: 2012-01-27 |
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 | |
/* | |
DONT FORGET TO DELETE THIS SCRIPT WHEN FINISHED! | |
*/ | |
ini_set( 'display_errors', 1 ); | |
error_reporting( E_ALL ); | |
$from = 'webmaster@example.com'; |
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
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
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 | |
// clean up shortcode | |
function parse_shortcode_content( $content ) { | |
/* Parse nested shortcodes and add formatting. */ | |
$content = trim( do_shortcode( shortcode_unautop( $content ) ) ); | |
/* Remove '' from the start of the string. */ |
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 | |
// clean up shortcode | |
function parse_shortcode_content( $content ) { | |
/* Parse nested shortcodes and add formatting. */ | |
$content = trim( do_shortcode( shortcode_unautop( $content ) ) ); | |
/* Remove '' from the start of the string. */ |
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
$tags_list = get_the_tag_list( 'Tags: ', __( ', ', 'text_domain' ) ); | |
preg_replace_callback('/<a\b[^>]*>(.*?)<\/a>/',create_function('$matches','return "$matches[1]";'),$tags_list); | |
preg_replace('/(<a\b[^>]*>)(.*?)(<\/a>)/', '$1<span class="tag-label">$2</span>$3', $tags_list); |