Pure CSS extension that adds a fade transition to the Bootstrap Carousel.
Forked from Roland Warmerdam's Pen Bootstrap Carousel Fade Transition.
A Pen by Dave Hunsberger on CodePen.
// Sprite Generator (Tested on CS5) | |
// Written by Beau August 2017. | |
// DESCRIPTION: | |
// This script will take the width and height of your document, and generate | |
// a sprite based on the number of images inside the document. The images | |
// will be automatically aligned. An alignment layer will be placed behind | |
// each image in the sprite, in case one needs to be changed, modified or | |
// removed. |
<?php | |
/** | |
* Check if the URL is reachable. | |
* | |
* @param string $url | |
* The URL to check. | |
* @return this | |
* @throws \LogicException | |
*/ |
#!/bin/bash | |
# | |
# This sets up Let's Encrypt SSL certificates and automatic renewal | |
# using certbot: https://certbot.eff.org | |
# | |
# - Run this script as root. | |
# - A webserver must be up and running. | |
# | |
# Certificate files are placed into subdirectories under | |
# /etc/letsencrypt/live/*. |
<?php | |
/* | |
Important! | |
Make sure to replace {my_} with your theme's unique prefix. | |
All future functions you write should use that same prefix. | |
Example: mrwnten_parent_theme_enqueue_styles() | |
*/ | |
add_action( 'wp_enqueue_scripts', '{my_}parent_theme_enqueue_styles' ); |
<?php | |
// get current page URL | |
$URL = $this->getUrl('*/*/*', ['_current' => true, '_use_rewrite' => true]); | |
// get current product name & ID | |
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); | |
$product = $objectManager->get('Magento\Framework\Registry')->registry('current_product'); //get current product | |
$id = $product->getId(); | |
$title = $product->getName(); |
Pure CSS extension that adds a fade transition to the Bootstrap Carousel.
Forked from Roland Warmerdam's Pen Bootstrap Carousel Fade Transition.
A Pen by Dave Hunsberger on CodePen.
<?php | |
class Person | |
{ | |
protected $firstName; | |
protected $lastName; | |
/** | |
* Magic method call for setter and getter | |
* | |
* @param $methodName |
# this script expects $DOTOKEN variable with your digital ocean token | |
# this script gets or creates smallest DO droplet and remotely executes script on it | |
# afterwards, droplet is destroyed | |
DROPLETNAME=example.com | |
DOHOME="https://api.digitalocean.com/v2" | |
cat <<EOF > .curlargs | |
-s | |
-H "Authorization: Bearer $DOTOKEN" |
// Name: Export document for each layer inside selected group.jsx | |
// Formerly: Export Layers Inside Selected Group.jsx | |
// Description: Photoshop script that saves the whole document for each top level layer inside the selected group. | |
// Image example: https://user-images.githubusercontent.com/1164476/49152494-aef8af00-f31b-11e8-80ff-d774e3103eae.png | |
// https://gist.github.com/joonaspaakko/013a223e94ba0fb9a2a0 | |
#target photoshop |