Skip to content

Instantly share code, notes, and snippets.

View infysumanta's full-sized avatar
🎯
Focusing

Sumanta Kabiraj infysumanta

🎯
Focusing
View GitHub Profile
{
"status": 2,
"message": "Server is down for Maintainance",
"checkpass": "cc34838b16715f266a2b7759a41f04ab"
}
@infysumanta
infysumanta / India.json
Last active July 6, 2023 16:19
indiaradio.json
{
"station":
[
{ "name": "Meethi Mirchi Radio", "streamURL": "https://meethimirchihdl-lh.akamaihd.net/i/MeethiMirchiHDLive_1_1@320572/master.m3u8", "imageURL": "https://traderblog.net/images/india/74904.v8.png", "desc": " pop, soul, bollywood, indian, hits", "longDesc": "Radio Mirchi's free internet radio station plays a selection of modern Bollywood Melodies, that will ease your work day." },
{ "name": "Mehfil-E-Ghazal Radio", "streamURL": "https://mirchimahfil-lh.akamaihd.net/i/MirchiMehfl_1@120798/index_1_a-p.m3u8", "imageURL": "https://traderblog.net/images/india/74921.v4.png", "desc": " pop, bollywood, indian", "longDesc": "For every mood and for every emotion, thereТs a ghazal. And you can find your ghazal here at Mehfil-e-Ghazal. From Jagjit Singh to Ghulam Ali, from Pankaj Udhas to Chandan Das to Roop Kumar Rathod youТll find all your favourite ghazals in this Mehfil. Sprinkled with some beautiful shayri and poetry the station will refresh your old memories and create some new...So just choose you
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
@infysumanta
infysumanta / Whstapp Bot
Last active June 6, 2023 06:44
wharsapp-web.js
const { Client } = require("whatsapp-web.js");
const qrcode = require("qrcode-terminal");
const client = new Client();
client.on("qr", (qr) => {
qrcode.generate(qr, { small: true });
});
client.on("ready", () => {
console.log("Client is ready!");
{
"name": "whatsappbot",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
const mongoose = require("mongoose");
const connect = async () => {
console.log(process.env.ENV);
try {
mongoose.connect(process.env.MONGODB_URI, dbConfig, {
useNewUrlParser: true,
useUnifiedTopology: true,
});
} catch (err) {
const express = require("express")
const path = require("path")
const multer = require("multer")
const app = express()
app.set("views",path.join(__dirname,"views"))
app.set("view engine","ejs")
var storage = multer.diskStorage({
destination: function (req, file, cb) {
@infysumanta
infysumanta / asyncActions.js
Last active June 6, 2023 06:43
Redux in Vanila Javascript
const redux = require("redux");
const applyMiddleware = redux.applyMiddleware;
const createStore = redux.createStore;
const thunkMiddleware = require("redux-thunk").default;
const axios = require("axios");
const initialState = {
loading: false,
users: [],
error: "",