Posts
JZ

Tmux

Tue, Oct 29, 2019
T Terminal

A good tmux setup is invaluable. Save tmux config in $HOME/.tmux.conf Getting Help – List all keybindings tmux list-keys Alternatively, <prefix>:list-keys <prefix>? To list out tmux commands and arguments, type tmux list-commands We can also list out every session, window, pane, its pid, etc. tmux info Prefix key By default, the prefix key is set to -b. When searching key combinations, if you see prefix + d, that means typing Control + b together and then typing d.

Windows

Mon, Oct 14, 2019
S Setup W Windows

Getting started with Windows 10 (Surface Pro) Make sure you do not include spaces in your username. It will be very hard to navigate into your files later otherwise. Settings Check Programs > Turn Windows Features On and Off > Windows Subsystem for Linux (Beta) Check Update & security > For Developers > Developer Mode Taskbar Lock the Taskbar ON Automatically hide the taskbar in desktop mode ON Automatically hide the taskbar in tablet mode Use small taskbar buttons ON Use Peek ON Ubuntu, File Explorer, Firefox, Camera Display Change the size of apps and text on the main display 300% Color filters > Allow the shortcut key to toggle filter on or off Applications Firefox Developer Edition (Default Browser) Adobe Touch (Default PDF Viewer) Ubuntu (Beta Distribution) Typora RescueTime iCloud Drive Dropbox Sync Keyboard AutoHotKey on GitHub Pen and Windows Ink Click Once: Microsoft Whiteboard Linux / Ubuntu Create Desktop shortcut > ctrl+alt+t = keyboard shortcut https://winaero.

Functional Python

Thu, Feb 21, 2019
P Python

Map map(function_to_apply, list_of_inputs) items = [1, 2, 3, 4, 5] squared = list(map(lambda x: x**2, items)) funcs = [multiply, add] for i in range(5): value = list(map(lambda x: x(i), funcs)) Filter number_list = range(-5, 5) less_than_zero = list(filter(lambda x: x < 0, number_list)) print(less_than_zero) #Output : [-5, -4, -3, -2, -1] Reduce from functools import Here, we obtain a reduction for our final product: product = reduce((lambda x, y: x * y), [1, 2, 3, 4]) # Output: 24