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
add_action( 'woocommerce_cart_calculate_fees', 'prionkor_cod_fee' ); | |
function prionkor_cod_fee() { | |
global $woocommerce; | |
if ( is_admin() && ! defined( 'DOING_AJAX' ) ) return; | |
// get your payment method | |
$fee = 10; | |
$chosen_gateway = WC()->session->chosen_payment_method; |
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
Abbey | |
Aboriginal and Torres Strait Islander Organisation | |
Aboriginal Art Gallery | |
Abortion Clinic | |
Abrasives Supplier | |
Abundant Life Church | |
Accountant | |
Accounting Firm | |
Accounting School | |
Accounting Software Company |
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
"use strict"; | |
const getHashPath = () => { | |
const href = window.location.href; | |
const hashIndex = href.indexOf('#'); | |
return hashIndex === -1 ? '' : href.substring(hashIndex + 1); | |
}; | |
const pushHashPath = path => window.location.hash = path; | |
const replaceHashPath = path => { |
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 countries = [ | |
{ code: 'AD', label: 'Andorra', phone: '376' }, | |
{ code: 'AE', label: 'United Arab Emirates', phone: '971' }, | |
{ code: 'AF', label: 'Afghanistan', phone: '93' }, | |
{ code: 'AG', label: 'Antigua and Barbuda', phone: '1-268' }, | |
{ code: 'AI', label: 'Anguilla', phone: '1-264' }, | |
{ code: 'AL', label: 'Albania', phone: '355' }, | |
{ code: 'AM', label: 'Armenia', phone: '374' }, | |
{ code: 'AO', label: 'Angola', phone: '244' }, | |
{ code: 'AQ', label: 'Antarctica', phone: '672' }, |
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
Local Business | |
Animal Shelter | |
Automotive | |
Automotive Business | |
Auto Body Shop | |
Auto Dealer | |
Auto Parts Store | |
Auto Rental | |
Auto Repair | |
Auto Wash |
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 | |
# Export bin paths | |
export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
# Get PHP Session Details | |
PHPSESSIONPATH=$(php -i 2>/dev/null | grep -w session.save_path | awk '{print $3}' | head -1); | |
PHPSESSIONLIFETIME=$(php -i 2>/dev/null | grep -w session.gc_maxlifetime | awk '{print $3}' | head -1); | |
PHPSESSIONLIFETIMEMINUTE=$( expr $PHPSESSIONLIFETIME / 60 ); |
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 | |
# Info | |
# --- | |
# script can run with the domain as a command line input | |
# `sudo ./nginx_domain.sh my_domain.com` or without and | |
# the script will prompt the user for input | |
#config | |
web_root='/var/www' | |
config_dir='/etc/nginx' |
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
Try this short list of super fast trackers first: | |
udp://tracker.openbittorrent.com:80 | |
udp://tracker.leechers-paradise.org:6969 | |
udp://tracker.coppersurfer.tk:6969 | |
udp://glotorrents.pw:6969 | |
udp://tracker.opentrackr.org:1337 | |
http://tracker2.istole.it:60500/announce | |
Here is a longer list updated July 2016. |
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
# gets error | |
let listItems = course.acf.videos.map(function(video){ | |
return <li key={video.ID}> | |
<Link | |
to="/test" | |
activeClassName="active" | |
>video.post_title</Link> | |
</li>; | |
}); |
NewerOlder