AlgoListo
Python
Useful Links
String Formatting
Using F-strings (Literal String Interpolation)
Using .format() method
Using % Module operator
Dates
Get current date
Date format Conversion
datetime.datetime and numpy.datetime64
Julian Day and (Days, Seconds, Microseconds)
datetime.datetime and (Days, Seconds, Microseconds)
numpy.datetime64 and (Days, Seconds, Microseconds)
datetime.datetime and Julian Days
Unix Timestamp and datetime.datetime
Shapely
Path Manipulations
Get path of the current script
Get path of the python interpreter
Get Current Working Directory
Change Working Directory
Get absolute path
Get parent path
Join path
Check if the path is an existing file/folder
Create a directory even if it already exists
Get extension
Get string filepath from a pathlib.Path object
Iterate over all files in a folder
Resolve path using pattern expansion (“?”, “*”, “[]”, “**”) using glob
Example - Typical use case
Conda
Create an environment
Delete an environment
List the environments
View the list of packages in an environment
Search for package availables
Install a specific package
Remove a specific package
Configure your environment with .condarc
Multi-Processing & Threading
Threading
Basic example: The concurrent.futures way
Basic example: The threading way
Get data from the thread while he’s alive
Multiprocessing
Basic Example
Get the return value from the process
Get data from the process while he’s alive
Locks
Timer
Classes
Inheritance
Multiple Inheritance
Magic Class Methods
Overload comparison operators
Make a class Hashable
Make a class Iterable
Make a class Subscriptable
Class String representation
Decorators
Dataclasses
Property
Argument Parser
Simple Basic Example
Example Using Sub Parser
Reading the argument from a yaml file
CSV & Excel
CSV
Excel
Logging
Using an external Yaml configuration file
Fourier Transform
1D FFT Transform
2D FFT Transform
FFT Normalization Explained
Google Earth
Typing
Type aliases
NewType
Callable
Generics
User-defined generic types
Nominal vs structural subtyping
MyPy
Examples
Notebook
Start a server
Close a running server
Convert a python notebook(.ipynb) to python (.py)
Add a conda environment to the list of kernels availables
Binary file Manipulation
Two’s complement
Basic Writing/Reading example
Netcdf
Writing
Reading
Machine Learning
Tensorflow Install
PyTorch Install
Pre-Processing
1D Convolutional
Using PyTorch
Using Tensorflow
Multilayer Perceptron
Using PyTorch
Using Tensorflow
Audio Processing
Reading / Writing Wave files
Reading
Writing
Opening Other audio files formats
Plots
Bar
Table
Image
Load/Show/Save an image with Pillow
Load/Show/Save an image with OpenCV
Plot an image with Matplotlib
Pcolormesh
Scatter
Pie Chart
Animation
Saving frames one by one
Saving using Buffer + OpenCV
Saving using FuncAnimation
Matplotlib Widgets
Divers
OpenCV
Video Editing
Video Capture
Webcam Capture
List available devices
List available resolutions
Capture video with a fixed framerate
Screen Capture
Divers
Shebang line
Xarray
Dict of List TO/FROM List of Dict
Reduce
Bisect
Flatten a multi-dimensional array except the last dimension
Flatten only the first N dimensions of an array
Convert a 2D array to a list of tuples
Duplicate an array to create a 2D array
Measuring time elapsed
Progress bar
Star and double star operators
Conversion of Earth coordinate systems
Running a OS command / subprocess
NamedTuple
Bash
Path Manipulations
Get script path
Iterate over files in a directory
Divers
Debugging option
Shebang line
Create an empty file
Create a file and its content
Basic Arithmetic operations
Loops
Git
Basic Git Commands
Get the list of commits
Undo uncommitted changes
Undo a git add command
Cancel 1 or more last commit(s)
Create a new branch, make changes & merge it
Databases
SQL
Installing MySQL
Installing PostgreSQL
Creating a Table
Creating the tables
Data Manipulation: INSERT, UPDATE, DELETE
INSERT
UPDATE
DELETE
Example using SELECT FROM, WHERE, LIKE, ORDER BY
Example using built-in functions and subquery
Example joining tables
Inner Join
Right [OUTER] Join
Left [OUTER] Join
Full Outer Join
Example Grouping data
Example using UNION
Views
Indexes
Useful commands
Get the list of databases
Get the name of the current database in use
Create a new database
Use a specific database
List tables in the current database
Delete/Remove/Drop a table
Linux
Useful Commands
Archive Compression/Decompression
zip
tar.gz || tar.xz
File Manipulation
Packages
PDF Manipulation
ImageMagick
Divers
FFmpeg Commands
Show Streams and Parameters
Extract Streams: Subtitles, Audio, Video
Extract Subtitles
Extract Audio
Hardcoding a subtitle in a video
Images to Video
Video to GIF
Configuration
Set the terminal language to English
Softwares
Kernel
Manually install a kernel
List installed Kernels
Uninstall/Remove a kernel
Playing with Grub
Get Partitions UUID
Get Mount points
Grub: ignoring a partition
Grub: Link to another grub
Managing boot entries from Linux
Web
Using a API
Examples
Spotify API
VS Code
Debugging
Task
Configuration
Extensions
Settings
Remote SSH
Connect to a linux server using a windows machine
Reaper
Installation
[If Needed] Re-Installing Wine
Install and Configure Yabridge
Install and Configure Carla
Install and Configure Jack
Install and Configure Reaper
Install VST
VST Plugins
Ample Guitar M Lite
Ample Guitar P Lite
Spitfire Audio
MT Power Drumkit 2
Ritmix
AlgoListo
Machine Learning
View page source
Machine Learning
Tensorflow Install
PyTorch Install
Pre-Processing
1D Convolutional
Using PyTorch
Using Tensorflow
Multilayer Perceptron
Using PyTorch
Using Tensorflow