Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 isPhone = (phoneNumber) => { | |
const cleanedPhoneNumber = phoneNumber.replace(/-|\s/g, ''); // Remove spaces and hyphens before performing test | |
const pattern = new RegExp('^(?:\\+?(61))? ?(?:\\((?=.*\\)))?(0?[2-57-8])\\)? ?(\\d\\d(?:[- ](?=\\d{3})|(?!\\d\\d[- ]?\\d[- ]))\\d\\d[- ]?\\d[- ]?\\d{3})$'); | |
return pattern.test(cleanedPhoneNumber); | |
}; |
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
UPDATE wp_options SET option_value = replace(option_value, 'oldURL', 'newURL') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'oldURL','newURL'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'oldURL', 'newURL'); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value,'oldURL','newURL'); |
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 React, { Component } from 'react'; | |
import { isClient } from '../../config/app'; | |
const scrollComponent = (WrappedComponent) => { | |
class ScrollComponent extends Component { | |
state = { | |
topPos: 0, | |
bottomPos: 0 | |
}; | |
componentDidMount() { |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 flatColours = [ | |
{ label: 'Turquoise', hex: "#1abc9c" }, | |
{ label: 'Emerald', hex: "#2ecc71" }, | |
{ label: 'Peter River', hex: "#3498db" }, | |
{ label: 'Amethyst', hex: "#9b59b6" }, | |
{ label: 'Wet Asphalt', hex: "#34495e" }, | |
{ label: 'Green Sea', hex: "#16a085" }, | |
{ label: 'Nephritis', hex: "#27ae60" }, | |
{ label: 'Belize Hole', hex: "#2980b9" }, | |
{ label: 'Wisteria', hex: "#8e44ad" }, |
OlderNewer