Sorry, your browser cannot access this site
This page requires browser support (enable) JavaScript
Learn more >

The with open statement is a particularly convenient feature in Python, allowing for automatic closure of objects when operations are completed. For custom objects, it’s also possible to support the with syntax.

A long time ago, a Python expert from my previous company taught us about decorators. However, due to my愚钝ness, I never fully understood this concept and didn’t use it in actual coding. Therefore, ...

While chaining various programs using Bash, you often discover some amazing and useful tricks. Here are two I recently found.

To learn Go language, I rewrote a script that was used frequently in my previous work. Compared to Python, which is simple, quick, easy to understand and has many useful third-party modules with abundant learning materials in both Chinese and English, if it wasn’t for performance reasons, I really wouldn’t want to switch…

I recently discovered GNU Parallel, a simple and useful parallel program implemented in Perl, which can easily execute various commands in Bash in parallel. This is particularly useful for tasks that can be divided into independent subtasks.

After using snakemake for some time, I found that it has many practical features to facilitate daily analysis. Here is a record and整理.

I’ve never used many useful functions when writing scripts before, so I decided to learn a bit about itertools and make some notes. This time, I was dealing with large files, but most of the time, ...

R provides convenient multiprocessing capabilities, and Python has similar functionality.

Recently, I wrote a script to draw many images using ggplot. Although all the places where loops are needed have already been replaced with apply, it still can’t keep up when drawing hundreds of images at once. So, I fiddled around with parallel and managed to parallelize the plotting part to speed things up.

It’s been a while since the last update. Today, I’ll record the upgraded version of my homemade VPN!