This site has been updated.
Reload to display the latest version?
(click here)

ImgReview announce

09 October, 2020
I started this project some time ago, just to test an idea and now I want to share it with everyone :) It all started with my frustration of not being able to mark areas on the images. Usually I need it in order to better illustrate my point. The idea is simple - mark areas on screenshots, or images to better illustrate your point. When I’m sending an email or adding an image to a jira ticket, I usually want to add a marker, like an arrow or circle, in order to emphasize the exact issue. It’s…

Theming with styled-components

31 July, 2020
Theme can be stored (or generated) in a js file. For instance, we can keep all of them, in folder and load, while bootstrapping the application. Provide theme to the app. Now your theme will be available via of styled-components. Theme property can be anything you defined it to be. In the example below, it’s an object with two properties: and name.

Styled-components "Warning Received `true` for non-boolean attribute"

25 July, 2020
IMO styled-components library has only one problematic warning. It’s “Warning: Received for non-boolean attribute”. When I encountered it for the first time it took me some time to figure out what was the problem. Because it’s somehow counterintuitive, and the official documentation doesn’t really help to solve it. Ok, first of all, what does this error mean. It means that you passed boolean value for the property of a DOM element. I will rephrase in order to make it crystal-clear - you took…

Test whether variable is a number

18 July, 2020
The post title “Test whether variable is a number” looks like a trivial question, but let’s dig deeper and try to cover all edge cases. I will split it into two problems and will cover them separately. isNumber First I’ll start with the simple problem. You have variable that may or may not be a number. Write a function that will return if it is in fact ‘number’ or otherwise. Here I only need to check the type of given variable. In this situation I have two edge cases. The first one is…

Google Drive API - Script initialization

06 July, 2020
The basic example from the official documentation is very informative (this is not a sarcasm). I just want to add my 2 cents in order to make it more es6 like, then it is now. Plus I want one function of initialization that will take care of everything. I want to be able to run it from anywhere in the code and be sure that app will be authorized. First I need to load the script. I want to do it dynamically from the code and not to attach it to the index.html Also this method could be called…

UUID generator app

03 July, 2020
Once upon a time I needed to create UUIDs, and I needed to do it manually. On the internet you can find a bunch of solutions, and you don’t really need to invent anything. The tech is relatively easy and there is no room for engineering innovation, so I decided to dig into user experience. I discovered that if you’re generating UUIDs manually, then obviously you’re going to copy-paste them by hand. So we can shorten the process by adding the button, which will do it for the user. Which also…

Configuring graphql-go/graphql

17 May, 2020
It’s not that hard to use graphql with go, but it could take some effort to find all the gotchas. Therefore let’s save some time and talk about some configuration of graphql in Golang. In this tutorial I’ll use graphql-go/graphql library, version v0.7.9

Hide or disable a feature?

15 May, 2020
More than once I argued with my fellow developers on whether we should hide or disable some feature or functionality. I decided to write down my opinion to be sure the internet knows.

Grokking algorithms

23 November, 2019
An illustrated guide for programmers and other curious people. The book about algorithms. Not an easy topic, and not very useful in most workplaces. Ok, depends on what you’re required to do. There are definitely job descriptions that require work with algorithms. But is it always the case? Certainly not.

Renew auth0 token for SPA using js SDK

11 November, 2019
Sorry, but documentation of auth0 is not the best source of knowledge on how to use auth0. Not something that you expect to happen, right? Official documentation is okay if you need to understand only a basic usage, but if you need more than that, you pretty much on your own. At least it’s my experience with this service. Especially for not so popular topic of “renewing auth0 token for SPA (Single Page Application)“. So let’s talk about exactly that.