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
module.exports = function (grunt) { | |
grunt.initConfig({ | |
uncss: { | |
dist: { | |
files: [ | |
{ src: 'index.html', dest: 'cleancss/tidy.css' } | |
] | |
} | |
}, |
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_filter('woocommerce_paypal_supported_currencies', 'add_aed_paypal_valid_currency'); | |
function add_aed_paypal_valid_currency($currencies) | |
{ | |
array_push($currencies, 'INR'); /* YOUR CURRENCY */ | |
return $currencies; | |
} | |
add_filter('woocommerce_paypal_args', 'woocommerce_paypal_args_for_inr'); | |
function woocommerce_paypal_args_for_inr($paypal_args) | |
{ |
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
<!DOCTYPE html> | |
<html><script src='threeloader/examples/vendor/three.js/build/three.js'></script><script src='threeloader/examples/vendor/three.js/examples/js/loaders/STLLoader.js'></script><script src='threeloader/examples/vendor/three.js/examples/js/loaders/ColladaLoader.js'></script><script src='threeloader/examples/vendor/three.js/examples/js/loaders/OBJLoader.js'></script><script src='threeloader/examples/vendor/three.js/examples/js/loaders/MTLLoader.js'></script><script src='threeloader/examples/vendor/three.js/examples/js/loaders/OBJMTLLoader.js'></script><script src='threeloader/examples/vendor/three.js/examples/js/loaders/BinaryLoader.js'></script><script src='threeloader/threex.universalloader.js'></script> | |
<head> | |
<title></title> | |
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> | |
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" /> | |
<link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/cyborg/bootstrap.min.css" rel= |
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
setInterval(function(){ $('.jbv-buy-big').trigger('click'); console.log('Dont press any key until we add your Lenovo K3 Note to your cart'); },10); |
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
if [ -f /etc/ImageMagick/policy.xml ] | |
then | |
if [ ! -f /etc/ImageMagick/patch.txt ] | |
echo -e "\t<policy domain="coder" rights="none" pattern="EPHEMERAL" />\n\t<policy domain="coder" rights="none" pattern="URL" />\n\t<policy domain="coder" rights="none" pattern="HTTPS" />\n\t<policy domain="coder" rights="none" pattern="MVG" />\n\t<policy domain="coder" rights="none" pattern="MSL" />" >> /etc/ImageMagick/patch.txt | |
sed -i '/<policymap>/r /etc/ImageMagick/patch.txt' /etc/ImageMagick/policy.xml | |
fi | |
fi |
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 | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
require_once('facebook/src/Facebook/autoload.php'); | |
// some settings you might want to change | |
$params = array( | |
"app_id" => "xxxxxxxxxxxxxxxxxxxxx", | |
"app_secret" => "xxxxxxxxxxxxxxxxxxx", | |
"page_id" => "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", |
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_filter('woocommerce_paypal_supported_currencies', 'add_aed_paypal_valid_currency'); | |
function add_aed_paypal_valid_currency($currencies) | |
{ | |
array_push($currencies, 'INR'); /* YOUR CURRENCY */ | |
return $currencies; | |
} | |
function woocommerce_paypal_args_for_inr($paypal_args) | |
{ | |
if ($paypal_args['currency_code'] == 'INR') { |
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
function woocommerce_paypal_args_for_noidea($paypal_args){ | |
if ( $paypal_args['currency_code'] == 'curreny_Code'){ | |
$convert_rate = 50; | |
if (isset($paypal_args['tax_cart'])) { | |
$paypal_args['tax_cart'] = round($paypal_args['tax_cart'] / $convert_rate, 2); | |
} | |
if (isset($paypal_args['shipping_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
function woocommerce_paypal_args_for_inr($paypal_args){ | |
if ( $paypal_args['currency_code'] == 'currency_code'){ | |
$convert_rate = currency_rate; // $1 = how much | |
$count = 1; | |
while( isset($paypal_args['amount_' . $count]) ){ | |
$paypal_args['amount_' . $count] = round( $paypal_args['amount_' . $count] / $convert_rate, 2); | |
$count++; | |
} |
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 { createLogger, format, transports } = require('winston') | |
const moment = require('moment') | |
// set default log level. | |
const logLevel = 'info' | |
var logger = createLogger({ | |
level: logLevel, | |
levels: { | |
fatal: 0, |
OlderNewer