Hugo's Blog
-
-
-
-
Three methods to Access environment variable values in Python
In Python, you can access environment variables using the os
module, which provides a property called environ
that contains the environment variables. In this post, I will share with you three methods to access environment variable values in Python.
Make Your Titles More Readable: React Wrap Balancer
React Wrap Balancer is a simple React Component that makes your titles more readable in different viewport sizes. It improves the wrapping to avoid situations like single word in the last line, makes the content more 'balanced'.
How to Add a Gradient Effect to Text for Eye-Catching Web Design
In this article, I will take my website-1chooo.com as an example to show you how to create a smooth and customizable linear gradient effect for text on your website. Also, we will share the problem we encountered to achieve this effect and how we solved with ChatGPT. (including the prompt we used, the response we got, and the code we implemented) So, let's dive in!
Built a 500 commits GitHub Repository: 10 essential steps you can't miss
A 500 commits Side Project is born, let's dive into how Hugo did it!
Improve Next.js Performance: Move Shared Components to Global Layout
Through Next.js's Global Layout, reduce the redundant loading of components to improve web performance.
Updating an Outdated Create React App (CRA) to Support TypeScript 5.x
Create React App (CRA) was officially deprecated by Facebook, and it's time to move on to other alternatives. However, we can still use CRA with TypeScript 5.x
by adding overrides
to the package.json
. Let's see how to do it!
How to Make Your React TypeScript Project More Elegant with map()
With React TypeScript and map()
, you can create a more elegant personal blog. In this article, I share how to use the map()
method to handle dynamic rendering of blog post lists and show the thought process of implementing the modification suggestions provided by ChatGPT.