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
Country Code | State Code | ZIP/Postcode | City | Rate % | Tax Name | Priority | Compound | Shipping | Tax Class | |
---|---|---|---|---|---|---|---|---|---|---|
AT | * | * | * | 20 | USt | 1 | 0 | 1 | ||
BE | * | * | * | 21 | TVA | 1 | 0 | 1 | ||
BG | * | * | * | 20 | ДДС | 1 | 0 | 1 | ||
CY | * | * | * | 19 | ΦΠΑ | 1 | 0 | 1 | ||
CZ | * | * | * | 21 | DPH | 1 | 0 | 1 | ||
DE | * | * | * | 19 | MwSt | 1 | 0 | 1 | ||
DK | * | * | * | 25 | moms | 1 | 0 | 1 | ||
EE | * | * | * | 20 | km | 1 | 0 | 1 | ||
EL | * | * | * | 24 | ΦΠΑ | 1 | 0 | 1 |
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
const controlDate = new Date(); | |
controlDate.toString(); | |
// -> "Thu Jun 20 2019 11:16:28 GMT+0200 (Central European Summer Time)" | |
controlDate.toDateString(); | |
// -> "Thu Jun 20 2019" | |
controlDate.toUTCString(); | |
// -> "Thu, 20 Jun 2019 09:15:28 GMT" |
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
# Incorporate this function into your .bash_profile (.bashrc, .zshrc, or whatever you use...) | |
# Run `mov2frames name-of-mov.mov` to extract frames from the movie file | |
# Run `mov2frames name-of-mov.mov 300` to extract frames from the movie file at a maximum width of 300 pixels | |
# Frames will be exported into a `frames/` folder | |
# NOTE: if the frames folder exists and contains files that match the filename `frame_%03d.png`, no frames will be generated | |
mov2frames() { | |
if [ ! -z "$2" ] | |
then | |
size=$2 | |
else |
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
// Inline SVG code images in LESS CSS | |
// @author Matt Scheurich <matt@lvl99.com> (http://lvl99.com) | |
// Github: https://github.com/lvl99/less-inline-svg-code | |
.inline-svg-code( @code ) { | |
@-svg-code: escape(~'<?xml version="1.0" ?>@{code}'); | |
@-inline-svg-code: ~'data:image/svg+xml,@{-svg-code}'; | |
@-inline-svg-url: ~"url('@{-inline-svg-code}')"; | |
} | |
// Basic Example |
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
import React, { useState, useRef } from "react"; | |
import { render, cleanup } from "react-testing-library"; | |
import useCallbackRef from "./useCallbackRef"; | |
function TestInputRef<T = HTMLInputElement>({ | |
id = "test", | |
onSet, | |
onChange | |
}: { | |
id?: 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 | |
// Detect any specific server environment config setup to apply | |
// I use a custom variable where you can set like so in Apache VirtualHost or in .htaccess: | |
// `SetEnv HTTP_SERVER_ENVIRONMENT "staging" | |
// Default: development | |
$server_environment = 'development'; | |
if ( ! empty( $_SERVER['HTTP_SERVER_ENVIRONMENT'] ) ) { | |
$server_environment = $_SERVER['HTTP_SERVER_ENVIRONMENT']; | |
} |
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
$('[data-fancybox]').fancybox() |
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
/** | |
* Change the loaded partial for the carousel-image-args to support Fancybox v3 | |
*/ | |
public function mytheme_jetpack_tiled_gallery_partial ( $file, $name, $context ) | |
{ | |
// Point to the local partial for the carousel-image-args | |
if ( $name === 'carousel-image-args' ) | |
{ | |
return get_stylesheet_directory() . "/partials/tiled-gallery-carousel-image-args.php"; | |
} |
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
data-fancybox="gallery" | |
data-src="<?php echo esc_url( $item->large_file() ); ?>" | |
data-srcset="<?php echo esc_url( $item->large_file() ); ?> 1200w, <?php echo esc_url( $item->medium_file() ); ?> 640w" | |
data-width="<?php echo esc_attr( $item->meta_width() ); ?>" | |
data-height="<?php echo esc_attr( $item->meta_height() ); ?>" | |
data-caption="<?php echo esc_attr( wptexturize( $item->image->post_title ) ); ?>" |
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 | |
// Detect any specific server environment config setup to apply | |
// Default: development | |
$server_environment = 'development'; | |
if ( ! empty( $_SERVER['HTTP_SERVER_ENVIRONMENT'] ) ) { | |
$server_environment = $_SERVER['HTTP_SERVER_ENVIRONMENT']; | |
} | |
// Load the server environment config |
NewerOlder