Skip to content

Instantly share code, notes, and snippets.

View Rishabh-malhotraa's full-sized avatar
🚃
Away for a long time

Rishabh Malhotra Rishabh-malhotraa

🚃
Away for a long time
View GitHub Profile
interface OperationType {
op: string;
count?: number;
chars?: string;
}
class OperationTransformation {
private cursorPosition = 0;
/*update the cursor position*/
{
"CP Starter Template": {
"prefix": "cpcf",
"body": [
"/*",
" ____ _ _ _ _ __ __ _ _ _",
"| _ \\(_)___| |__ __ _| |__ | |__ | \\/ | __ _| | |__ ___ | |_ _ __ __ _",
"| |_) | / __| '_ \\ / _` | '_ \\| '_ \\ | |\\/| |/ _` | | '_ \\ / _ \\| __| '__/ _` |",
"| _ <| \\__ \\ | | | (_| | |_) | | | | | | | | (_| | | | | | (_) | |_| | | (_| |",
"|_| \\_\\_|___/_| |_|\\__,_|_.__/|_| |_| |_| |_|\\__,_|_|_| |_|\\___/ \\__|_| \\__,_|",
#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"
module.exports = {
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
rules: {
module.exports = {
extends: 'eslint:recommended',
rules: {
'indent': ['error', 4],
"quotes": ['warn', 'double'],
"no-console": 'off',
"semi": ['error', 'always'],
},
};
module.exports = {
extends: [
'plugin:react/recommended',
'airbnb',
'prettier',
'prettier/react',
],
plugin: ['prettier']
};
module.exports = {
extends: [
'eslint:recommended',
'airbnb',
'prettier',
]
};
rules: {
'react/jsx-filename-extension': 'off',
},
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
{
extends: ['prettier'],
plugins: ['prettier'],
rules: {
'prettier/prettier': ['error']
},
}