Hi there! 👋 Thank you for visiting! Whatever you are looking for, I hope you will find it.
If you want to reach out, you can contact me anywhere you'd like. You can find my social media channels right above the main navigation.
If you want to say hi via email, write me at
What if you never have to write the –proxy-config CLI option again when serving your Angular application?
This post might seem trivial but I did spend a good amount of time searching this online just to be sure. So here we are lol.
To set a function parameter or return type as nullable, add a question mark in front of the type declaration.
Today at Switchn we had the need to redirect users by country and browser language on our Netlify hosted site. That is, send those visiting our site from English speaking countries to
/en/ and those from French speaking countries to
/fr/. Also if the user’s browser sends an
accept-language header in the request (e.g.
accept-language: en-US,en;q=0.9), we’d like to take that into consideration too.
I’ve spent like the last 30 minutes searching the web for how to convert dates to human-readable strings with Carbon in PHP/Laravel. Here’s a compilation of a couple of useful Carbon methods for my future self.
I have the following datatable class generated by Infyom’s Laravel Generator:
If your Laravel app uses multiple locales, it can get tedious keeping track of translations that are yet to be added to the appropriate translation files, e.g English translations in
resources/lang/en/validation.php and French translations in
This is a middleware that takes care of setting the app locale to the passed in locale string (e.g
To access an instance of your app’s
App\Http\Kernel class, you can use Laravel’s built in
resolve() helper function:
To specify a default value for Netlify CMS’s
string widget, add the
default property to it’s definition and assign it a value, as follows:
Here’s the best resources I’ve found for configuring syntax highlight with Route in Jekyll:
This post assumes you’re currently able to add an
image to your post front matter, for example:
To enable adb debug on MTN Smart T running KaiOS, dial this code to open a menu and from there enable the USB debugging:
Say you have the following validation message in the
custom array of your language file -
resources/lang/xx/validation.php - (or another location depending on your use case).
My typical use-case for RxJS first() operator is to emit only the first item of an observable stream. What if you want the first value based on a certain condition instead?