Category Archives: Programming

Nice list of image resizer libs in go

With speedtests and other nice things. https://github.com/fawick/speedtest-resize I tried these two: https://github.com/disintegration/imaging https://github.com/bamiaux/rez They are quite the same talking about file sizes and imaging is muuch easier to use.

Simple way to detect browser’s FPS via JS

It’s dumb and dead simple but works. You can even track browser’s metrics with that.

Mocking for testing go code

If you’re testing go code and have a huge API you have to mock, you have two options: make your dummy struct with embedded interface and implement only methods you need, or use your own interface that has only methods you need (and change your code to use that). For instance, I had amazon’s s3 …

Read more

BDD Framework For Golang

There is a good one: https://github.com/onsi/ginkgo It prefers to use http://onsi.github.io/gomega/ as a matcher.

Golang, PostgreSQL and array_agg

If you have SQL like this:

Simple online editor for javascript

Just paste it into navigation bar:

It just outputs the result into console when you click run button. It’s simple and works. Because sometimes you just don’t need monsters like jsfiddle or jsbin.

Storybook for creating components library

It works with all popular frameworks like React, Angular, Vue, and others. https://github.com/storybooks/storybook

React, redux and redux-thunk with typescript

I tried it and it looks strange, verbose and painful. But if you want to try it, please take a look at: https://github.com/piotrwitek/react-redux-typescript-guide https://levelup.gitconnected.com/react-and-redux-with-typescript-da0c37537a79 (together with https://github.com/JonJam/react-redux-ts/tree/68e8cca4a6e6214b4acb030cf3fdb3321b636085/src)

List of resources to prepare for the interview

Mock Interviews interviewing.io (beta), Free Pramp, Free CareerCup, Paid Algorithms Cracking the Code Interview, Book byte by byte, Website and YouTube CS50, YouTube Interview Cake, Website HackerRank, Website LeetCode, Website Operating Systems Operating System Concepts, Book Architecture Design Intro to Architecture and Systems, YouTube Behavioural Intro to Behavioural Interviews, YouTube   Original article with explanations: https://medium.freecodecamp.org/software-engineering-interviews-744380f4f2af

Using npm registry from corporate network

In a company we have some kind of proxy that does not allow to install npm packages via npm or yarn. You can get rid of this problem using this addition to yarn add:

Or you can also replace global property with

https://stackoverflow.com/a/22390936/801426