search for multiple file types in network tab, put into search bar:
/.*png|jpg|webp+$/
search for multiple file types in network tab, put into search bar:
/.*png|jpg|webp+$/
bash
for file in ./*.png; do cwebp -q 90 "$file" -o "${file%.png}.webp"; done
// via https://stackoverflow.com/a/24586168/3151019
async function readFiles(files) {
for(const file of files) {
await readFile(file);
}
};
Start:
net start MongoDB
Stop:
net stop MongoDB
To get available versions:
npm view react-scripts versions --json
npm view react versions --json
npm view react-dom versions --json
and then upgrade:
import ReactGA, { InitializeOptions, EventArgs } from 'react-ga'; | |
const gaOptsDefault = { | |
debug: true, | |
siteSpeedSampleRate: 100, | |
}; | |
export const GA_ID = 'G-XXXXXXXXXXX'; | |
export const GA_EVENTS = { |
yarn upgrade-interactive --latest
import axios, { AxiosResponse } from 'axios'; | |
import { get } from 'lodash-es'; | |
const rest = axios.create({ | |
baseURL: 'some base URL goes here', | |
}); | |
// this one send file as Blob type | |
const getPdf = () => ( | |
rest.get(`/get-pdf`, { |
find . -type f \( -name "*.js" -and -not -name "*.styles.js" -and -not -name "index.js" -and -not -name "*.test.js" \) -exec sh -c 'mv "$1" "${1%.js}.tsx"' _ {} ;
find . -type f \( -name "*.js" -and -not -name "*.test.js" \) -exec sh -c 'mv "$1" "${1%.js}.ts"' _ {} ;
find . -type f \( -name "*.js" \) -exec grep -l "import React" {} ; -exec sh -c 'mv "$1" "${1%.js}.tsx"' _ {} ;