Check latest changes
git fetch upstream
Switch to latest 5.2 branch
git checkout upstream/5.2
Create and switch to your local branch
replace [JIRA_ID] with your ticket ID
git checkout -b [JIRA_ID]
Check latest changes
git fetch upstream
Switch to latest 5.2 branch
git checkout upstream/5.2
Create and switch to your local branch
replace [JIRA_ID] with your ticket ID
git checkout -b [JIRA_ID]
// Based on a field value, show some extra input fields | |
const schemaOne = { | |
layout: [ | |
{ | |
type: 'grid', | |
props: { | |
cols: 2, | |
}, | |
children: { |
Date format for the application can be configured within Admin - Localisation screen via a Admin user. this format is universal for the application and once changed all places should be updated. This format is only used for the display purposes and all the communication between BE/FE via API is carried out via single date format that is not user changeable. (Hence the distinction display format and io format)
The tokens (symbols) that is used between PHP and JavaScript languages are different when using date format.
Consider date with format 2022-05-11 (Year-month-date)
Y-m-d
import {ConcreteComponent, CSSProperties} from 'vue'; | |
export const TYPE_BUTTON = 'button'; | |
export const TYPE_INPUT = 'input'; | |
export const TYPE_FILE_INPUT = 'file'; | |
export const TYPE_TEXTAREA = 'textarea'; | |
export const TYPE_DROPDOWN = 'dropdown'; | |
export const TYPE_PASSWORD = 'password'; | |
export const TYPE_CHECKBOX = 'checkbox'; | |
export const TYPE_SWITCH = 'switch'; |
import {ConcreteComponent, CSSProperties} from 'vue'; | |
export const TYPE_BUTTON = 'button'; | |
export const TYPE_INPUT = 'input'; | |
export const TYPE_FILE_INPUT = 'file'; | |
export const TYPE_TEXTAREA = 'textarea'; | |
export const TYPE_DROPDOWN = 'dropdown'; | |
export const TYPE_PASSWORD = 'password'; | |
export const TYPE_CHECKBOX = 'checkbox'; | |
export const TYPE_SWITCH = 'switch'; |
git commit --fixup=HASH | |
git rebase -i --autosquash HASH^ | |
git push -f origin BRANCH |
#!/bin/bash | |
# config | |
USER=`whoami` | |
HOSTNAME=`uname -n` | |
ROOT=`df -Ph / | grep / | awk '{print $4}' | tr -d '\n'` | |
HOME=`df -Ph | grep home | awk '{print $4}' | tr -d '\n'` | |
BACKUP=`df -Ph | grep backup | awk '{print $4}' | tr -d '\n'` | |
MNT=`df -Ph | grep mnt | awk '{print $4}' | tr -d '\n'` |
#!/bin/bash | |
dt=`date +"%Y-%m-%d %T"` | |
bCap=`cat /sys/class/power_supply/battery/capacity` | |
bTemp=`cat /sys/class/power_supply/battery/temp` | |
bStatus=`cat /sys/class/power_supply/battery/status` | |
bHealth=`cat /sys/class/power_supply/battery/health` | |
cTemp=`cat /sys/class/thermal/thermal_zone10/temp` | |
echo $cap |
add_filter('woocommerce_package_rates', 'hide_shipping_method', 100, 2); | |
function hide_shipping_method($rates, $package){ | |
// Additional conditions can be set | |
unset( $rates['local_pickup:12']); // This can be any shipping method, you'll have to use browser tools to see the name | |
return $rates; | |
} |
function fizzBuzz() { | |
var number = 1; | |
for (var i = 0; i < 100; i++) { | |
var bool = true; | |
if (number%3 ===0 && number%5 !==0){ | |
console.log('fizz'); | |
bool = false; | |
} |