Add jQuery to your NextJS App

The best way is to add jQuery via npm and include the inject file in the root file. Let me show you how. or you can also try this approach

Useful Secrets in Windows 11

Windows 11 brings several big and small UI as well as functional improvements. The interface is more refined than in previous versions of Windows. Here we will share some useful secrets in windows 11. Though Windows 10 was one of the finest and most stable versions of windows. Microsoft has put in some effort to… Continue reading Useful Secrets in Windows 11

How to delete all commit records from Github without deleting the source

Do a temporary checkout git checkout –orphan temp Commit the changes git commit -am “cleaning” Delete the branch git branch -D main Rename the current branch to main git branch -m main Finally, force update your repository git push -f origin main At times we push the wrong update to the repository. In spite of… Continue reading How to delete all commit records from Github without deleting the source

Published
Categorized as TIL

Get last element of Array in Javascript

You can always do it in the fastest way. If performance is a deal breaker for you where you are writing code for million concurrent connections then arr.length -1 is your thing. But if you fancy some ES6 like I do, then read on..

Published
Categorized as ES6, TIL