Sep 12, 2021I have setup CI/CD pipeline for my blog! | Anjan DuttaI’ve setup CI/CD pipeline for my blog! And it’s amazing! For a context, the blog is a static site built with Gatsby. And, there is no CMS to manage the content from the “backend”. To be honest, now that I have set up the deployment pipeline, I don’t need one…2 min read2 min read
Jul 24, 2021Check if an array includes a value in JavascriptIn this article, I am going to describe 4 methods - Using The indexOf() method - Check if array includes a value in Javascript - Check for NaN - Check for Undefined Using The indexOf() method Using `indexOf()`, we can determine if an element is present in an array or not. Similar to the `includes()` method the `indexOf()` method also works on arrays and, it takes one argument. See the code below. var students = [“john”, “jane”, “jim”];JavaScript1 min readJavaScript1 min read
Published inanjandutta.com·Jul 8, 2021Javascript sort array of objectsBefore trying to sort array of objects in javascript, we must check if all objects in that array has a common property name. For example, below is our sample object: let obj = [ {a: 2, b: 1, c: 3}, {a: 7, c: 8}, {b: 0, c: 5} ]; console.log(numbers)…JavaScript2 min readJavaScript2 min read
Published inanjandutta.com·Jul 1, 2021Ways to convert string to date in Javascript#javascript The date is a unique data type in javascript. It can give us so much information using so little space. Converting string to date in javascript. When we interact with an API, we often receive the date as a string. Then if we need to parse that string to…1 min read1 min read
Published inanjandutta.com·May 25, 2021Remove space from string in javascript#javascript Playing with strings in Javascript is a bit tricky. In this article, I am going to describe how to remove space from any string in Javascript. Even though Javascript provides many inbuilt string functions, we must always aim for using the optimal one to solve any challenge. Because JavaScript uses the main UI thread and any redundancy can cause a lag in the UI. Space can be present at any position in a string and, a single solution will not work in every situation.1 min read1 min read
Published inanjandutta.com·May 25, 2021Quickly create a custom select dropdown in CSS#html #css #javascript Select is a form element in HTML. I am going to tell you in this article how to style a select option in CSS. You might think what is so special about styling a select option in CSS. …1 min read1 min read
Published inanjandutta.com·May 25, 2021Objects in Javascript#javascript Objects in Javascript are collection of properties. An object stores data in the form of key value pair. These are non-primitive type structure, because we can store multiple types (both primitive and non-primitive) data in any object. While storing data in any object, for our reference, we associate that…JavaScript1 min readJavaScript1 min read
Published inসংগৃহীত·Mar 11, 2021সিঙাড়াঠাণ্ডা লুচি বারংবার ফেরত পাঠানোয় রাজবাড়ির হালুইকর অনুমতি চেয়েছিলেন রাজসভায় মিষ্টান্ন পাঠাতে। রাজচিকিৎসকের পরামর্শে মধুমেহ রোগাক্রান্ত রাজা অগ্নিশর্মা হয়ে শূলে চড়ানোর হুকুম দিয়েছিলেন হালুইকরকে। অনেক অনুনয় বিনয় করে নিজের প্রাণ রক্ষা করেছেন হালুইকর। রাজা আদেশ দিয়েছেন - হালুইকরকে তিনরাত্রের মধ্যে দেশত্যাগ করতে। দ্বিতীয় রাত্রে হালুইকরের স্ত্রী ঠিক করেছে দেশত্যাগের আগে…3 min read3 min read
Published inসংগৃহীত·Mar 11, 2021বুড়িমাধার করা দশটা একশো টাকার নোট। তাই দিয়ে নানা রকম বাজি কিনে দোকান সাজিয়ে বসলেন। জমল বিক্রিবাটা। তিন দিনের মাথায় পুলিশ এসে হাজির। বাজি বিক্রির লাইসেন্স আছে? বাজি বিক্রি করতে লাইসেন্স লাগে, জানা ছিল না। বললেন, “এ বারের মতো ছেড়ে দিন।” কাজ হল না। বাজি বাজেয়াপ্ত করল পুলিশ, গুঁড়িয়ে দিল…2 min read2 min read
Published inসংগৃহীত·Mar 11, 2021কলকাতামাত্র বছর দেড়েক হয়েছে প্রথম বিশ্বযুদ্ধ থেমেছে, বিনয় কৃষ্ণ বসুর বয়স বারো, সুভাষ চন্দ্র বসু তখনও কংগ্রেসে যোগ দেননি, মান্না দে-র বয়স সবে এক বছর, সত্যজিৎ রায়ের জন্ম হয়নি। ভবানীপুরের দক্ষিণে সামান্য কিছু বসতি তৈরী হয়েছে। কালীঘাটে আগত দর্শনার্থীরা বলেন আদি গঙ্গার পাড়ে দাঁড়ালে দূর থেকে নাকি বন্য জন্তুর হুঙ্কার…5 min read5 min read