Avatar

👋 Hi!

I'm Allan Chain. Thanks for your interest in my blog!

I'm a programming hobbyist and open source lover. My primary programming languages are Python and JavaScript . I'm also having (or had) "fun" with

This blog mainly hosts my notes when programming, as well as some other interesting bits. You can use this RSS link to subscribe.

We will glow in the dark turning dust to gold.
Dream It Possible
Recent Blogs
Header: nn

神经网络框架调研:PyTorch、TensorFlow、JAX

2024-12-22

从安装到数组运算、自动微分、网络搭建等多个方面,分析 PyTorch、TensorFlow、JAX 这三个神经网络框架的特色和优劣。

Header: header

一些 NumPy 和 SciPy 的历史

2024-11-11

当今科研界,NumPy 和 SciPy 已经成为了用 Python 做科学计算和数据分析的“标准库”。目前有大量项目使用它们,其中不乏一些知名项目。而我们不禁要问,NumPy 和 SciPy 是如何达到今天的成就的?

Header: JupyterLab

Running JupyterLab behind Caddy with Supervisor

2024-09-22

It seems simple to use Supervisor to start multiple JupyterLab instances and a Caddy reverse proxy to access them. But there are some tricks to know, especially used with uv for environment management.

Header: sane-break

No break reminder works (for me)

2024-08-08

Break reminders often demand an immediate pause in my work, which can be quite annoying. I frequently find myself mindlessly skipping or postponing breaks, rendering all the reminders ineffective. This led me to create Sane Break, an alternative break reminder.

Header: nvim-fold

Automatically folding Python docstrings in Neovim

2024-06-22

Python docstrings are extremely suitable to be folded, and folding docstrings makes Python code cleaner. This can be achieved in Neovim without plugin, just with built-in foldexpr and tree-sitter.

Header: markdown-custom-render

Three levels of Markdown custom rendering

2024-05-20

There are many way to customize Markdown rendering, including direct RegExp replacements, remark + rehype, and direct rendering the Markdown AST. The last approach can turn plain Markdown documents to full components and is the most powerfull one.

View more >>>
Friends
Avatar

ᴍɪᴍɪ

做了一点微小的工作
Avatar

txtyb

The quieter you be, the more you can hear.
Avatar

Yixuan-Wang

|_| todo!()
Avatar

FX

Try adventure time