Vlad Bezden·Feb 20, 2020Execute 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…A response icon2A response icon2
Vlad Bezden·Jan 20, 2020Iterable type typing example in PythonFollowing example shows how to deal with
Vlad Bezden·Dec 16, 2019Pandas useful settingMy settings for pandas when I start any data processing in pandas
Vlad Bezden·Nov 28, 2019NumPy 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…
Vlad Bezden·Nov 10, 2019numpy arange and linspacein numpy `arange` behaves like Python’s `range` function. Where stop argument is not inclusive [). However, `linspace` is a different…
Vlad Bezden·Sep 18, 2019Spinning wheel to indicate a work in progress in PythonAn example of how to implement spinning wheel in PythonA response icon1A response icon1
Vlad Bezden·Aug 11, 2019How 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.
Vlad Bezden·Aug 11, 2019How 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…
Vlad Bezden·Aug 10, 2019Minimize Rounding ErrorsTo minimize rounding errors, perform multiplication before division. The result tends to be more accurate that way.