July 28, 2020 — The usual way of adding event-listener on certain elements is using the
addEventListener method on the element. For instance, if you want to register a click event on an element with id
checkoutBtn, you can do it like so.
July 27, 2020 — I was working on implementing the Konami code easter egg on this blog and there was this need where I need to stop the scrolling only when the previous two presses by the user are
July 20, 2020 — Sometimes, you want to load some stuff based on the fact that the certain service provider is loaded in the
providers array of
config/app.php or not.
July 19, 2020 — Git is a lot easier when you make the best out of it. For instance, setting a simple Git config can make your life a lot simpler and smoother.
July 14, 2020 — That’s right! You can even use Chrome DevTools as your “Adhoc” code editor. Now, why would you do that, you ask? Well, there are a few reasons.
July 10, 2020 — Update: Named parameters have been accepted to be included in PHP 8. A 2/3 majority in voting from members was required and it got the required votes! Here’s the RFC that got accepted.
Follow me everywhere