=IF(LEFT(E2,1)="7",CONCAT("0",E2))
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 = { | |
plugins: [ | |
require('postcss-import')({ | |
plugins: [ | |
require('stylelint') | |
] | |
}), | |
require('tailwindcss')('./tailwind.js'), | |
require('autoprefixer')(), | |
], |
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
SELECT * FROM sagepaysuite_transaction WHERE sagepaysuite_transaction.nickname REGEXP '[[:<:]]([[:digit:]][- ]?){13,16}[[:>:]]' |
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
from django import forms | |
from django.contrib.auth.models import User | |
from django.forms.util import ErrorList | |
from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned | |
from django.contrib.auth import authenticate, login | |
from django.utils.safestring import mark_safe | |
from django.forms.models import modelformset_factory | |
from captcha.fields import CaptchaField | |
from django.forms.extras.widgets import SelectDateWidget | |
from django.utils.translation import ugettext_lazy as _ |
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 sys, os | |
# add the site specific path, e.g. /uk/ | |
COUNTRY_SITE_BASE = os.path.dirname(__file__) | |
sys.path.append(COUNTRY_SITE_BASE) | |
LOG_FILE = os.path.join(COUNTRY_SITE_BASE, "logs/site_log.txt") | |
COUNTRY = 'au' |
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 os, logging | |
import requests | |
import json | |
from django.conf import settings | |
RESPONSE_CODES = { | |
'F7000': "Undefined Fraud", | |
'V5000': "Undefined System", |
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 | |
require_once('app/Mage.php'); //Path to Magento | |
umask(0); | |
Mage::app(); | |
$fromDateStart = '2017-05-01'; | |
$toDateEnd = '2017-08-10'; | |
$fromDate = date('Y-m-d H:i:s', strtotime($fromDateStart)); | |
$toDate = date('Y-m-d H:i:s', strtotime($toDateEnd)); |
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 | |
// http://s20493.p303.sites.pressdns.com/job-details/?id=9f89449a-451c-4e50-8f4a-8b92c6a0a7e1 | |
global $val; | |
$val = "9f89449a-451c-4e50-8f4a-8b92c6a0a7e1";//posting id | |
function post_to_url($url, $data) | |
{ | |
$post = curl_init(); | |
curl_setopt($post, CURLOPT_URL, $url); | |
curl_setopt($post, CURLOPT_POST, count($data)); |
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
$config['email_crlf'] = "\r\n"; | |
$config['email_newline'] = "\r\n"; | |
$config['mail_protocol'] = 'smtp'; | |
//The server may need to change depending on the region assigned in your Dotmailer account | |
//https://support.dotmailer.com/hc/en-gb/articles/212214408-Using-transactional-email#viasmtp | |
$config['smtp_server'] = 'r1-smtp.dotmailer.com'; | |
$config['smtp_username'] = 'TRANSACTIONAL_EMAIL_USER'; | |
$config['smtp_password'] = 'TRANSACTIONAL_EMAIL_PASSWORD'; | |
$config['smtp_port'] = '25'; | |
$config['email_smtp_port'] = '25'; |
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 | |
$month_start = new DateTime("first day of last month"); | |
$month_end = new DateTime("last day of last month"); | |
$fn_start_on = $month_start->format('d-m-Y'); | |
$fn_stop_before = $month_end->format('d-m-Y'); | |
$start_on = $month_start->format('Y-m-d').' 00:00'; | |
$stop_before = $month_end->format('Y-m-d').' 00:00'; |
NewerOlder