Skip to content

Instantly share code, notes, and snippets.

View shivamv12's full-sized avatar
😷
Working from Home

Shivam Verma shivamv12

😷
Working from Home
View GitHub Profile
const Queue = require('bull');
const sendMail = require('../utils/sendMail');
const welcomeMailJob = async (payload) => {
/** Initializing the Queue */
const sendMailQueue = new Queue('sendMail', {
redis: {
host: process.env.LOCAL_HOST,
port: process.env.REDIS_PORT,
},
@shivamv12
shivamv12 / weird-js.html
Created August 31, 2019 16:16
We all know that JavaScript is quite a funny language with tricky parts. Some of them can quickly turn our everyday job into hell, and some of them can make us laugh out loud. Here, I am going to make collection of some javascript weird problems & questions. Which you even can't think about. #JavaScript #JS #Weird-JS #interview-questions
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="icon" type="images/x-ico" href="https://cdn.iconscout.com/icon/free/png-256/javascript-23-1174949.png" />
<title>Weird JS</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"