one day of code

Range to range translation

July 07, 2023

Have you ever needed to translate one range to the another? Usually we have a range 0 - 100. Then we do all calculations for that range. But…

Create tasks queue using rxjs

October 13, 2022

I recently came to need a functionality of executing multiple (unknown number) tasks sequentially but asynchronously. There is a solution…

CS:GO vector ranks

March 30, 2022

Recently I've had an intention of putting a custom ranking system on my CS:GO server. Levels Rank seemed like a decent plugin so I went…

Google photos grid using only css

October 09, 2021

I'd watched/read (I really cannot remember which one now anymore) how they calculated the layout and the whole "wisdom" behind the…

Firefox with AdGuard certificate on non-rooted Android

May 25, 2021

If you use Adguard as your primary ad blocker, then you surely are annoyed with firefox. This few steps tend to fix that by importing…

Wireguard VPN Server on rpi (Alpine Linux)

May 13, 2021

This will be a bit longer tutorial than usual one-liners, but it'll be as simple as it can be. Basic knowledge of linux is required…

Mount network folder to android

April 04, 2021

You have an android device (Raspberry Pi or some other) and you want a NAS folder mounted on it?

Find and rename multiple files recursively

February 07, 2021

I had a situation recently where I needed to rename a bunch of same-named files that were located in different directories/depths. If you…

CSS-only vertical rhythm

January 04, 2021

Want bare-bone snippet for vertical rhythm using only css ( r em units)? Example:

Filter static list using css

January 04, 2021

Filter static list by "using" the gpu :) The three downsides to this are: screen readers are not able to read the total number of items…

Flatten the array of unknown depth level to single dimension

January 04, 2021

Generate sequence for given index

January 04, 2021

Have you ever wondered how are those "a, b, c, ..., aab, aac, ... aaz" class names generated? Here's the generalized snippet. You can…

Neat string split to chars array

January 04, 2021

Segment a one-dimensional array to groups of N

January 04, 2021


Simple template parser for response data

January 04, 2021

Need a simple template parser for the response data. Say no more, fam! This little vanilla puppy can bake-in the data in provided template…

Uninstall bloatware apps from android

January 04, 2021

If you have Samsung/Huawei/LG... or basically any android phone, you already noticed that it ships with preinstalled apps that you may not…