Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223
Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223
/** | |
* includeFile() - embeds a file content within another. Meant to be | |
* used from the copy task as a 'processContent' function. The following | |
* tokens can be used in files: <br> | |
* | |
* - BUILD_INCLUDE('file') | |
* - /* BUILD_INCLUDE('file') *\x47 | |
* - <!-- BUILD_INCLUDE("file") --> | |
* | |
* In addition, options can be added to the token above that further |
<?php | |
/** | |
* WooCommerce Match Canada Postal Codes | |
* | |
* Checks WooCommerce Postal Code and removes gateways if not matching Canada Postal Format | |
*/ | |
add_filter( 'woocommerce_available_payment_gateways', function( $available_gateways ){ | |
global $woocommerce; | |
if ( is_admin() ) { |
function stringToUTF8Array(str) { | |
let utf8 = []; | |
for (let i = 0; i < str.length; i++) { | |
let charcode = str.charCodeAt(i); | |
if (charcode < 0x80) utf8.push(charcode); | |
else if (charcode < 0x800) { | |
utf8.push(0xc0 | (charcode >> 6), | |
0x80 | (charcode & 0x3f)); | |
} | |
else if (charcode < 0xd800 || charcode >= 0xe000) { |
class CommonColor: | |
# Pink colors | |
MEDIUM_VIOLET_RED = 0xC71585 | |
DEEP_PINK = 0xFF1493 | |
PALE_VIOLET_RED = 0xDB7093 | |
HOT_PINK = 0xFF69B4 | |
LIGHT_PINK = 0xFFB6C1 | |
PINK = 0xFFC0CB | |
# red colors |
General python guidelines for setting up a virtual environment to work with LibreOffice
Note: OOO Development Tools is a python package that already does most of the heavy lifting for working with Python and LibreOffice.
Recommend reading OOO Development Tools Developer Docs