Hello, In this article I will introduce you to pyenv, a tool for managing python environments. Installing pyenv is pretty straight forward, you'll need to clone the repo and add the binaries to the path. For a typical Debian based distro using the Zsh shell the instructions would be: git clone https://github.com/pyenv/pyenv.git ~/.pyenv echo 'export … Continue reading Introduction to Pyenv for Linux Users
LeetCode: Find The Town Judge
Hello In this article I will present you my Python3 solution for the following problem which I found on LeetCode: find-the-town-judge. Note: The solution is on the second page, so you won't get spoiled if you want to attempt to solve the problem by yourself. Have fun! from collections import defaultdict from typing import List … Continue reading LeetCode: Find The Town Judge
Multi Touch Gestures on Linux
Hello, I've been using Linux full time on my work laptop and one thing that I really miss from the Macbook is the multi touch gestures. I often find myself swiping 3 fingers up the trackpad to see all my open applications and nothing happens, bummer. Then, I came across Fusuma, a great project which … Continue reading Multi Touch Gestures on Linux
LeetCode: Arrays 101: Inserting Items Into an Array
Hello, Here are my solutions for the second part of the card: Arrays 101, from LeetCode. Duplicate Zeroes Given an array of integers, remove duplicate zeroes and shift the remaining elements. https://leetcode.com/problems/duplicate-zeros/ class Solution: def duplicateZeros(self, arr: List[int]) -> None: """ Do not return anything, modify arr in-place instead. """ index = 0 arr_length = … Continue reading LeetCode: Arrays 101: Inserting Items Into an Array