Adjust Color Opacity
Easily create a semi-transparent version of any color using color-mix(). This CSS function blends two colors in a specified ratio. In this example, currentColor is mixed with transparent at 50…
Limited availability — accepting new projects starting January 2027.
PHP has http_build_query and I never forget it. JavaScript's URLSearchParams does the same thing but doesn't filter empty values or prepend ?. This helper wraps it into something you can actually use directly:
function buildSearch(params) {
const query = new URLSearchParams(
Object.entries(params).filter(([, x]) => x != null && x !== "")
).toString()
return query && "?" + query
}
Credit: Stack Overflow
Easily create a semi-transparent version of any color using color-mix(). This CSS function blends two colors in a specified ratio. In this example, currentColor is mixed with transparent at 50…
When working with feature branches, it’s easy for your local repository to accumulate branches that were already deleted on the remote. This snippet safely removes all local branches whose…
Quickly convert a PNG image to the modern WebP format using the cwebp CLI tool. This command sets the output quality to 80%, striking a good balance between file size and visual clarity…