How to rename a Local Git branch?

rename a Local Git branch

It is easily possible to rename the existing local branch of GIT using the command- git branch and option -m on our system. We can use this command to rename the branch in case we have named it wrongly or just want to change it …

Read more

How to Clone a JavaScript object – Example

Javascript tutorial

To correctly clone a JavaScript object, you can use the Object.assign() method to create a new object with the properties of the original object. Here’s an example: Keep in mind that Object.assign() creates a shallow copy of the object, meaning that any nested objects or …

Read more

How to install Boost C++ library on Ubuntu 20.04 or 22.04

Install Boost C library in Ubuntu Linux

Learn the steps to install the Boost C++ libraries on Ubuntu 20.04 Focal Fossa or Ubuntu 22.04 Jammy JellyFish using the command terminal. What are Boost C++ libraries? The Boost C++ libraries are a collection of open-source C++ libraries that provide support for tasks and …

Read more

How to detect mouse wheel event in javascript?

Javascript tutorial

To detect mouse wheel events in JavaScript, you can use the addEventListener() method to register a function that will be called whenever a “wheel” event is fired. Here’s an example: In the above example, the addEventListener() method registers a function that will be called whenever …

Read more

Handle a mouse wheel event in Angular

Angular tutorial

To handle a mouse wheel event in Angular, you can use the @HostListener decorator to attach an event listener to the host element of the component. Here is an example: In this example, the onMouseWheel method will be called whenever the user scrolls the mouse …

Read more