Published 2 years ago
Capitalizing The First Letter In Each Word | PHPPHP's function can be used to create readable blog post titles by capitalizing the first characters of each word. Additionally, you can capitalize the first character of names in your app. Below is an example of how to use the function. ...
Published 2 years ago
Highlight.js: Add Line NumbersHighlightJS does not provide line number feature out of the box. You will need a third-party library for that. Fortunately, there are a number of them to choose from. The one used in the ...
Published 2 years ago
Get Human Readable Date In Javascript (Moment.js Format Time Ago)You can present a human-friendly date to your readers using the moments.js library. This is an open-source Javascript library for working with dates. The code sample below shows how to comp...
Published 2 years ago
The Difference Between A JWT And A Bearer TokenOnline systems usually give different levels of access to different groups of people. To get access to the system, a user has to provide special information. E.g. Username/password combo. This is information that only they possess. Once a user gains access to a system, most systems return...
Published 2 years ago
Snippet Injection Not Working On NetlifyOn Netlifly , you can inject scripts like CSS and JS into your production app. This means for example, instead of having your Google Analytics script in the development/local version of your webs...
Published 2 years ago
Javascript: Add Days To The Current DateTo create a new date instance you will use . This creates a date object. From that object, you can get the current day, month, and year among other date-related data. To get the current day for example this will be: ...