Skip to content

Instantly share code, notes, and snippets.

View rajuAhmed1705's full-sized avatar
🎯
Focusing

Raju Ahmed rajuAhmed1705

🎯
Focusing
View GitHub Profile
@rajuAhmed1705
rajuAhmed1705 / translate-number.ts
Created October 23, 2022 09:40
Bangla to English and English to Bangla number translator
const numberTranslate = (
n: string | number,
translateTo: "Ban" | "Eng",
returnType: "string" | "number" = "string"
): string | number => {
const mapNumber = {
"০": 0,
"১": 1,
"২": 2,
"৩": 3,
@rajuAhmed1705
rajuAhmed1705 / pm2-script.js
Created March 6, 2022 11:45
pm2-script for nextjs and nodejs
{
"apps": [
{
"name": "app-name-one",//express js app
"cwd": "/directory/of/the/app",
"script": "dist/server.js",
"post_update": ["npm install", "npm run build"]
},
{
"name": "app-name-two", //next js app