This file contains 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
interface OperationType { | |
op: string; | |
count?: number; | |
chars?: string; | |
} | |
class OperationTransformation { | |
private cursorPosition = 0; | |
/*update the cursor position*/ |
This file contains 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
{ | |
"CP Starter Template": { | |
"prefix": "cpcf", | |
"body": [ | |
"/*", | |
" ____ _ _ _ _ __ __ _ _ _", | |
"| _ \\(_)___| |__ __ _| |__ | |__ | \\/ | __ _| | |__ ___ | |_ _ __ __ _", | |
"| |_) | / __| '_ \\ / _` | '_ \\| '_ \\ | |\\/| |/ _` | | '_ \\ / _ \\| __| '__/ _` |", | |
"| _ <| \\__ \\ | | | (_| | |_) | | | | | | | | (_| | | | | | (_) | |_| | | (_| |", | |
"|_| \\_\\_|___/_| |_|\\__,_|_.__/|_| |_| |_| |_|\\__,_|_|_| |_|\\___/ \\__|_| \\__,_|", |
This file contains 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
#include <bits/stdc++.h> | |
using namespace std; | |
#define MOD 1000000007LL | |
#define ll long long | |
#define ULL unsigned long long | |
#define pb push_back | |
#define mp make_pair | |
#define F first | |
#define S second | |
#define pnl cout << "\n" |
This file contains 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
module.exports = { | |
parser: 'babel-eslint', | |
parserOptions: { | |
ecmaVersion: 6, | |
sourceType: 'module', | |
ecmaFeatures: { | |
jsx: true, | |
}, | |
}, | |
rules: { |
This file contains 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
module.exports = { | |
extends: 'eslint:recommended', | |
rules: { | |
'indent': ['error', 4], | |
"quotes": ['warn', 'double'], | |
"no-console": 'off', | |
"semi": ['error', 'always'], | |
}, | |
}; |
This file contains 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
module.exports = { | |
extends: [ | |
'plugin:react/recommended', | |
'airbnb', | |
'prettier', | |
'prettier/react', | |
], | |
plugin: ['prettier'] | |
}; |
This file contains 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
module.exports = { | |
extends: [ | |
'eslint:recommended', | |
'airbnb', | |
'prettier', | |
] | |
}; |
This file contains 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
rules: { | |
'react/jsx-filename-extension': 'off', | |
}, |
This file contains 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
"editor.formatOnSave": true, | |
"editor.codeActionsOnSave": { | |
"source.fixAll.eslint": true | |
}, |
This file contains 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
{ | |
extends: ['prettier'], | |
plugins: ['prettier'], | |
rules: { | |
'prettier/prettier': ['error'] | |
}, | |
} |
NewerOlder