Vlad BezdenExecute blocking code on a different thread using asyncioRun blocking code on the separate executor. Use asyncio to execute blocking io operation without blocking execution thread using…Feb 20, 20202Feb 20, 20202
Vlad BezdenIterable type typing example in PythonFollowing example shows how to deal withJan 20, 2020Jan 20, 2020
Vlad BezdenPandas useful settingMy settings for pandas when I start any data processing in pandasDec 16, 2019Dec 16, 2019
Vlad BezdenNumPy and how to do dynamically print text widthHere is a powerful example of numpy diff function. In this example, I chunk of memory and I need to find start, end, and length of the…Nov 28, 2019Nov 28, 2019
Vlad Bezdennumpy arange and linspacein numpy `arange` behaves like Python’s `range` function. Where stop argument is not inclusive [). However, `linspace` is a different…Nov 10, 2019Nov 10, 2019
Vlad BezdenSpinning wheel to indicate a work in progress in PythonAn example of how to implement spinning wheel in PythonSep 18, 20191Sep 18, 20191
Vlad BezdenHow to use int scientific notation in GoBy default Go interpreter scientific notation to float64.This example shows how to use scientific notation to declare int types.Aug 11, 2019Aug 11, 2019
Vlad BezdenHow to compare two slices in GoThis example uses empty struct (0 bytes) to create a map (set) of slices for fast finding elements and not allocate any associate values…Aug 11, 2019Aug 11, 2019
Vlad BezdenMinimize Rounding ErrorsTo minimize rounding errors, perform multiplication before division. The result tends to be more accurate that way.Aug 10, 2019Aug 10, 2019