Skip to content

Instantly share code, notes, and snippets.

View aahnik's full-sized avatar
🏠
something's happening!

Aahnik Daw aahnik

🏠
something's happening!
View GitHub Profile
@aahnik
aahnik / cpp.json
Created January 9, 2024 12:33
Cp Vs code setup for leetcode and codeforces
{
"Cp cpp": {
"prefix": "cpp",
"body": [
"#include <bits/stdc++.h>",
"using namespace std;",
"",
"#ifdef aahnik",
"#include \"dbg.cpp\"",
"#else",
@aahnik
aahnik / index.js
Last active March 4, 2024 14:12
[Ejs + Static Files] Frotend Server process... Server all ejs templates from a directory "views" + server static files from "public"
/*
frontend server
server HTML,CSS and frontend js
use ejs to render html
Credits: https://gist.github.com/noampc/6a36885dbe75f24056ac7a3c7f50d2b7
*/
import express from "express";