(\s+)([a-zA-Z0-9])(.+)([a-zA-Z0-9,;]) // (.+)
$1// $5
$1$2$3$4
| /* eslint-disable no-console */ | |
| /** | |
| * Execute script: node scripts/syncI18nJSONs.js | |
| * | |
| * Script to synchronize i18n locales JSONs of all languages based on core language. | |
| * | |
| * Applicable for app that uses i18next with the following structure: | |
| * | |
| * /locale | |
| * /en |
| /** | |
| * Execute script: node scripts/generateBuildId.js | |
| */ | |
| // Ref: https://github.com/facebook/create-react-app/issues/1917 | |
| // eslint-disable-next-line @typescript-eslint/ban-ts-ignore | |
| // @ts-ignore: ts(1208) | |
| const fs = require('fs'); |
| find . -type d -name "*NameToReplace*" | while read f; do mv $f $(echo $f | sed "s/NameToReplace/ReplacedName/g"); done |
| /** | |
| * Script to run npm install for all nested folders | |
| * | |
| * Reference: https://stackoverflow.com/questions/31773546/the-best-way-to-run-npm-install-for-nested-folders | |
| */ | |
| var fs = require('fs') | |
| var resolve = require('path').resolve | |
| var join = require('path').join | |
| var cp = require('child_process') | |
| var os = require('os') |
| { | |
| "aws.samcli.location": "/usr/local/bin/sam", | |
| "breadcrumbs.enabled": true, | |
| "diffEditor.ignoreTrimWhitespace": false, | |
| "editor.fontFamily": "'Inconsolata-g', Monaco, 'Courier New', monospace", | |
| "editor.letterSpacing": 0.1, | |
| "editor.minimap.enabled": false, | |
| "editor.quickSuggestionsDelay": 2, | |
| "editor.quickSuggestions": { | |
| "other": true, |
| symbol (PK) | time | name | lastPrice | change | changeRate | |
|---|---|---|---|---|---|---|
| ^HSI | 2020-10-16T07:41:02.281Z | HANG SENG INDEX | 24347.65 | 189.11 | 0.78 | |
| ^IXIC | 2020-10-16T07:41:02.281Z | NASDAQ Composite | 11713.87 | -54.86 | -0.47 | |
| ^DJI | 2020-10-16T07:41:02.281Z | Dow Jones Industrial Average | 28494.20 | -19.80 | -0.07 |
| GSIHash | time | symbol | name | lastPrice | |
|---|---|---|---|---|---|
| PERIOD | 2020-10-16T07:41:02.281Z | ^HSI | HANG SENG INDEX | 24347.65 | |
| PERIOD | 2020-10-16T07:41:02.281Z | ^IXIC | NASDAQ Composite | 11713.87 | |
| PERIOD | 2020-10-16T07:41:02.281Z | ^DJI | Dow Jones Industrial Average | 28494.20 |
| # Reference: | |
| # https://stackoverflow.com/questions/11094383/how-can-i-convert-tabs-to-spaces-in-every-file-of-a-directory/11094422 | |
| # http://azaleasays.com/2014/03/07/os-x-sed-does-not-recognize-tab-character/ | |
| # "\( -iname \*.ts -o -iname \*.tsx -o -iname \*.js \)" means filtering only .ts .tsx, or .js files | |
| # Tab to space | |
| # * Press Ctrl+V and Tab to replace "\t" on Mac | |
| find ./YOUR_PATH -type f \( -iname \*.ts -o -iname \*.tsx -o -iname \*.js \) -exec sed -i '' -E 's/\t/ /g' {} \; |
| { | |
| // React / Node project | |
| "clearbuildcache": "rm -rf ./build", | |
| // source-map-explorer | |
| "analyze": "source-map-explorer 'build/static/js/*.js'", | |
| // Eslint | |
| "eslint": "eslint --ext .js,.jsx,.ts,.tsx .", | |
| "eslint:fix": "npm run eslint -- --fix", | |
| // Stylelint | |
| "stylelint": "stylelint 'src/**/*.{js,jsx,ts,tsx}'", |