Skip to content

Instantly share code, notes, and snippets.

View mohit-raj-purohit's full-sized avatar

Mohit Raj Purohit mohit-raj-purohit

View GitHub Profile
@mohit-raj-purohit
mohit-raj-purohit / nvmCommands.js
Created April 6, 2023 12:00 — forked from chranderson/nvmCommands.js
Useful NVM commands
// check version
node -v || node --version
// list installed versions of node (via nvm)
nvm ls
// install specific version of node
nvm install 6.9.2
// set default version of node
@mohit-raj-purohit
mohit-raj-purohit / git-commit-message-template.md
Last active July 16, 2024 03:48
How to create a git message template for better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

Introduction

In this document, we will discuss how to set up and use Git commit message templates to write better commit messages.

Prerequisites

  • Git installed on your local machine
  • Basic understanding of Git and commit messages
@mohit-raj-purohit
mohit-raj-purohit / mutationObserver.html
Created April 18, 2023 17:49
MutationObserver: DOM Mutation Events in JavaScript
<!DOCTYPE html>
<html>
<body>
<ul id="item-list">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
<button id="add-button">Add Item</button>