Skip to content

Instantly share code, notes, and snippets.

Avatar
🎓
Working from College

Rishabh Malhotra Rishabh-malhotraa

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