(\s+)([a-zA-Z0-9])(.+)([a-zA-Z0-9,;]) // (.+)
$1// $5
$1$2$3$4
# Package manager files | |
**/node_modules/* | |
**/package-lock.json | |
**/yarn.lock | |
# Build/executable files | |
**/build/* | |
**/bundles/* | |
**/dist/* | |
**/bin/* |
/* | |
DevDependencies: | |
stylelint | |
stylelint-processor-styled-components | |
stylelint-config-styled-components | |
stylelint-config-standard | |
*/ | |
{ | |
"processors": ["stylelint-processor-styled-components"], | |
"extends": [ |
{ | |
// 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}'", |
# 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' {} \; |
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 |
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 |
{ | |
"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, |
/** | |
* 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') |
find . -type d -name "*NameToReplace*" | while read f; do mv $f $(echo $f | sed "s/NameToReplace/ReplacedName/g"); done |