1 . goto beyond compare folder
cd "/Applications/Beyond Compare.app/Contents/MacOS/"
2 . rename BCompare to BCompare.real
mv BCompare BCompare.real
1 . goto beyond compare folder
cd "/Applications/Beyond Compare.app/Contents/MacOS/"
2 . rename BCompare to BCompare.real
mv BCompare BCompare.real
| /* Hide WP version strings from scripts and styles | |
| * @return {string} $src | |
| * @filter script_loader_src | |
| * @filter style_loader_src | |
| */ | |
| function remove_wp_version_strings( $src ) { | |
| global $wp_version; | |
| parse_str(parse_url($src, PHP_URL_QUERY), $query); | |
| if ( !empty($query['ver']) && $query['ver'] === $wp_version ) { | |
| $src = remove_query_arg('ver', $src); |
Minimum eight characters, at least one letter and one number:
/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/
Minimum eight characters, at least one letter, one number and one special character:
/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!%*#?&]{8,}$/
Minimum eight characters, at least one uppercase letter, one lowercase letter and one number:
| const HOST_URL = process.env.BASE_URL || 'http://localhost:3000'; | |
| //const API_URL = process.env.BASE_API_URL || 'http://14.225.11.12:3030/api/client'; | |
| const API_URL = process.env.BASE_API_URL || 'http://localhost:3000'; | |
| const webpack = require("webpack"); | |
| module.exports = { | |
| mode: 'spa', |
| module.exports = { | |
| /* | |
| Headers of the page | |
| - Nuxt.js uses vue-meta to update the headers and html attributes of your application. | |
| - Nuxt.js configures vue-meta with these options: | |
| { | |
| keyName: 'head', // the component option name that vue-meta looks for meta info on. | |
| attribute: 'data-n-head', // the attribute name vue-meta adds to the tags it observes | |
| ssrAttribute: 'data-n-head-ssr', // the attribute name that lets vue-meta know that meta info has already been server-rendered | |
| tagIDKeyName: 'hid' // the property name that vue-meta uses to determine whether to overwrite or append a tag |
In .nuxt/dist/server/ see 2 files. Try to edit them for corresponding case ssr/spa
index.spa.html
index.ssr.html
| $(window).on("scroll", function() { | |
| var scrollHeight = $(document).height(); | |
| var scrollPosition = $(window).height() + $(window).scrollTop(); | |
| if ((scrollHeight - scrollPosition) / scrollHeight === 0) { | |
| // when scroll to bottom of the page | |
| } | |
| }); |
| /* | |
| Before Septemper 15 2018, Vietnam has phone number start with 09*, 01(2|6|8|9). | |
| After that, the phone number can start with 03, 05, 07 or 08. | |
| So this function provide a way to validate the input number is a Vietnamese phone number | |
| */ | |
| function isVietnamesePhoneNumber(number) { | |
| return /(03|05|07|08|09|01[2|6|8|9])+([0-9]{8})\b/.test(number); | |
| } |
Linux:
yes | php artisan key:generate
if ! grep -qc "^APP_KEY=.*$" .env; then php artisan key:generate; fi