Convert long numbers to short and compact form in JavaScript
May 25, 2020 — JavaScript amazes me everyday when I find something can be done using native JavaScript instead of using heavy-weight libraries or inventing my own functions.
A blog on PHP, JavaScript, and more
May 25, 2020 — JavaScript amazes me everyday when I find something can be done using native JavaScript instead of using heavy-weight libraries or inventing my own functions.
May 24, 2020 — The main advantage of using TypeScript over JavaScript is because the former is a typed language which helps in speeding up the development experience by catching errors and providing fixes before you even run your code.
May 21, 2020 — If you’re using GitHub repository’s web URL as its remote and if you’ve two-factor authentication turned on for your account, you’re going to face an issue in authenticating your account while doing certain git actions such as git push
.
May 20, 2020 — Laravel comes with a multitude of ways to validate request parameters. For instance, you could use Illuminate\Http\Request
’s validate method where you can specify all the fields that you would want to get validated inside controller’s action. You can do it like so.
May 19, 2020 — There might be cases where you would like to check if the device on which the website is loading is connected to the internet or not. For instance, this can be used to show the user the message if their device is offline or to disable some functionality of the application if the device is offline.
May 18, 2020 — You’ve probably seen or have used this feature where you can upload files by dropping the selected files into the specific area. For example, how Gmail handles this while drafting emails.
May 14, 2020 — Admit it. Remembering a lot of terminal commands can be overwhelming and often tiring. What if I tell you there’s a pretty handy way of searching through all of your previous commands using a few keystrokes? Follow along.
May 14, 2020 — Deno, the successor of Node.js, is now stable with it’s v1.0 release.
May 13, 2020 — Vue.js has this handy feature where you can set the inline-template
special attribute on the component and now the component can use its inner content as its template, rather than treating it as distributed content.