Skip to content

Instantly share code, notes, and snippets.

View Antardas's full-sized avatar
🖥️
𝑻𝒓𝒚𝒊𝒏𝒈 𝒕𝒐 𝒔𝒂𝒗𝒆 𝒕𝒊𝒎𝒆 ≡≡ 𝒎𝒐𝒏𝒆𝒚

Antar Das Antardas

🖥️
𝑻𝒓𝒚𝒊𝒏𝒈 𝒕𝒐 𝒔𝒂𝒗𝒆 𝒕𝒊𝒎𝒆 ≡≡ 𝒎𝒐𝒏𝒆𝒚
View GitHub Profile
@Antardas
Antardas / docker-compose.yaml
Created January 12, 2024 15:57
Redis Data Persistent AOF
version: '3'
services:
redis:
image: redis:latest
container_name: docs-cache
restart: on-failure
ports:
- 6379:6379
volumes:
@Antardas
Antardas / eslint_prettier_airbnb.md
Created January 13, 2023 16:43 — forked from geordyjames/eslint_prettier_airbnb.md
VSCode - ESLint, Prettier & Airbnb Setup for Node.js Projects

VSCode - ESLint, Prettier & Airbnb Setup for Node.js Projects

1. Install ESLint & Prettier extensions for VSCode

Optional - Set format on save and any global prettier options

2. Install Packages

npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-config-airbnb-base eslint-plugin-node eslint-config-node

Setup Eslint Prettier and Husky in Node JS Typescript Project

1. ESLint

  • Step 1 - Install the dependencies

    • eslint
      • ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code.
      • npm install --save-dev eslint
    • typescript-eslint/parser
#include <bits/stdc++.h>
using namespace std;
const int N = 1e5;
vector<int>adj_list[N];
int visited[N], inDegree[N];
int n, m;
bool detect_cycle(int node) {