This file contains hidden or 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
#!/bin/bash | |
# I installed MariaDB 10 from Package Center | |
export PATH=/bin:/usr/bin:/usr/local/bin:/volume1/@appstore/MariaDB10/usr/local/mariadb10/bin | |
# Put backups in the same place where the script is placed | |
DB_BACKUP_PATH=`dirname "$0"` | |
backup-mysql() { | |
MYSQL_HOST=$1 |
This file contains hidden or 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
msgid "" | |
msgstr "" | |
"Project-Id-Version: SimpleLocalize 1.0\n" | |
"Report-Msgid-Bugs-To: [email protected] \n" | |
"Last-Translator: Jakub Pomykała <[email protected]>\n" | |
"Language: de\n" | |
"MIME-Version: 1.0\n" | |
"Content-Type: text/plain; charset=UTF-8\n" | |
"Content-Transfer-Encoding: 8bit\n" | |
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
This file contains hidden or 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
export const LOCALE_PATTERN = /[a-z]{2}_[A-Z]{2}/gi; | |
export const isLocaleValid = (locale: string): boolean => { | |
return Boolean(new RegExp(LOCALE_PATTERN).test(locale)); | |
} | |
export const getBrowserLocaleOrNull = (): string | null => { | |
const locale = window.navigator.language; //won't work on SSR |
This file contains hidden or 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 axios from 'axios'; | |
import { faker } from '@faker-js/faker'; | |
async function sendRequest() { | |
const data = { | |
template: 'TEMPLATE', | |
data: { | |
'title.text': faker.lorem.sentence() | |
} | |
}; |
OlderNewer