
This site is both a personal blog and my knowledge management page. I regularly archive some of my personal study notes and only display a few recent projects on the homepage.
本站既是个人博客,也是我的知识管理页面。我会定期归档一些个人学习笔记,仅在主页展示少数近期项目。
If you are not familiar with the directory of this site, you can refer to the tree diagram below or press Ctrl+K to search and quickly locate the article you need:
对于个人开发者,做全栈项目难免要考虑很多:买服务器、域名、选数据库和服务端技术栈、配代理…而使用cloudflare的一条龙服务显然是更简洁的方式。但是这一套流程和涉及的工具比较复杂,每次重新开始一个项目我都要花时间回想之前是怎么做的。所以今天写一篇文章来一劳永逸地记录一下完整过程。
初始化并部署monorepo项目
Monorepo 是一种项目代码管理方式,指单个仓库中管理多个项目。可以用它把前后端放在一起进行版本控制。这种方式和multirepo相比自然有很多劣势,但是作为个人开发者做小项目用它绝对是利大于弊。
题目描述
A permutation of an array of integers is an arrangement of its members into a sequence or linear order.
- For example, for
arr = [1,2,3], the following are all the permutations ofarr:[1,2,3], [1,3,2], [2, 1, 3], [2, 3, 1], [3,1,2], [3,2,1].
题目描述
Given two strings needle and haystack, return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
Example 1:
Input: haystack = "sadbutsad", needle = "sad"
Output: 0
Explanation: "sad" occurs at index 0 and 6.
The first occurrence is at index 0, so we return 0.
安装
# 安装稳定版
sudo pacman -S neovim
# 开发版(AUR)
yay -S neovim-git
题目描述
You are given a string s and an array of strings words. All the strings of words are of the same length.
我知道终有一天我会再也忍受不了Windows,那时linux就是我唯一的选择。调研了众多发行版后,我决定把Arch用作日常使用。但是相比于debian系,Arch的门槛高了非常多,尤其是它臭名昭著的滚挂现象。所以我不可能直接切换到Arch环境,而是要经历一段时间的适应。正好,上个月实验室给了我一台ThinkPad老爷机,现在它作为ubuntu服务器的使命已经结束,正好被我拿来当作过渡机适应Arch。
我将从安装系统开始逐一记录使用Arch时碰到的一切问题,以作完全切换系统后的参考。这会是一个超大的坑,这篇文章在未来相当长的一段时间内将不断缝补更新,如有必要我会把其中一些部分拆分到单独的文章,以避免这篇博文太过臃肿。
