Rico's Nerd Cluster

「离开世界之前 一切都是过程」

Python - Python Iterables

Iterable, Itertools, Round Robin Counter

What is An Iterable An iterable is any object that returns an iterator, which allows you to iterate its elements. Some common examples include lists, dictionaries, sets, and strings. Iterating ove...

Python - Jupyter Notebook Common Magic Commands

Jupyter Notebook Common Magic Commands

Magic command %command is a function in IPython. Make sure matplotlib is rendered inline Immediately autoreload modules if they are changed outside 1 2 3 4 5 6 7 8 9 10 11 %matplotlib inlin...

Python - Python Misc, os, shutil

Sys, Print, Argparse Path-Related Utils

sys Check current python version 1 2 3 4 if sys.version_info.major == 3 and sys.version_info.minor == 10: print("Python version is 3.10") else: print(f"Python version is not 3.10, it'...

Python - Functions

Map-Reduce-Filter, Lambda (Under Active Updates)

Map, Reduce, Filter Map, Reduce, Filter are paradigms of functional programming. WIth them, we can write simpler and shorter programs. They are applied on iterables. Map map(callable, iterable) ...

Google Drive

Shortcuts

Shortcuts Make fonts larger: ctrl-shift-.

VSCode

Useful Plugins Dev Container Remote SSH Configuration Configuration ~/.ssh/config 1 2 3 4 Host <HOSTNAME> HostName <IP> User <USER_NAME> Port 22 To en...

Docker - Docker Basics

What is Docker, Basic Docker Operations, Docker Run

What Is Docker? Deploying and updating software across different operating systems can be cumbersome. Docker simplifies this by providing an isolated environment that runs independently of the hos...

Linux - Operating System

Paging, Concurrency

Paging A page of memory is the smallest fixed-length block of virtual memory managed by OS. To use virtual memory, the OS needs to transfer pages between the main memory and the secondary memory. ...

Linux Miscellaneous Thingies

Window Focus, Screenshots, File Differences, Formats

Screenshots sudo apt install gnome-screenshot Open keyboard shortcuts -> add custom shortcuts I use ctrl-alt-4 to enable gnome-screenshot -a Window Focus On my Ubuntu 22.04 system, wh...

Linux - Udev Rules And Systemd Services

Udev Rules Systemd Services

Udev Unix Kernel is a monolithic kernel and provides API to access these hardware. Udev is a device manager of Linux Kernel, and serves as a successor of the Unix Kernel. It handles device nodes i...