写给还在迷茫的你:我的三本大学回忆

开头 前几天在网上看到一个快毕业的哥们儿抱怨,说大学没意义。这说法我觉得太片面了。以及还有就是我的高中同学总是认为学了计算机就能找到高薪工作,

2024 年终总结

今天是 2024 即将收尾的最后一个月,我看到很多平台都有在发年度的 recap,像 reddit 啥的,我也想写一篇年度总结,记录一下这一年发生的事情。 2024 年终总结 一

Neovim: No Crash Incremental Selection

When I use neovim treesitter incremental selection, it randomly crashes, but I cannot stable reproduce it. And I found some issues and complaints about this issue, but no solution. So I decide to write a blog post to record this issue and the solution. related issues: https://www.reddit.com/r/neovim/comments/10wwkft/comment/j7qla2q/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button https://github.com/neovim/neovim/issues/24336 https://github.com/neovim/neovim/issues/25254 https://www.reddit.com/r/neovim/comments/18dn4qt/treesitter_incremental_selection/ TL;DR paste this https://github.com/xiantang/nvim-conf/blob/7c0d6cbf6d9fd7b6a8960de887db1109332419bf/lua/plugins/treesitter.lua#L62-L132 into your neovim configuration file. this is my treesitter incremental selection configuration: 1 2 3 4 5 6 7 8 9 incremental_selection = { enable = true, keymaps = { init_selection = true, node_incremental = "v", node_decremental = "<BS>", }, }, sometime when I use v to expand the selection, it crashes, and it’s a Segmentation fault, and I have the report:

2022 年终总结

今天是 2023 年的第一天,我想写一篇年终总结,回顾一下 2022 年的一些事情。 同时也是一个自我的回顾。 2022 年终总结 2022 年是一个不大顺利的一年, 似乎因为经济下行

shell 是一个不错的生产力工具

连续三个命令的序列,重复执行了第二次,那么就建议你将它写成一个 Shell 脚本 – blog.fleeto.us 最近越来越发觉 shell 是一门可以代替 python 作为 devops 的工程师的第二门语言. 因为日常

肉身翻墙新加坡安顿指南

阅读本文能获得什么 本文主要讲的是如何来到新加坡工作之后,需要做的一些事情。 阅读本文你能获得到在新加坡落地之后,需要做的一些必须的 事项例如租房

我为什么使用双向链接做笔记?

记忆信息后寻找之间的联系才是人的价值。 之前向身边的朋友推荐双相链接的软件来记录八股文,很多人会来问我“为什么要用双向链接?有啥好处?” 。 我这

关于焦虑和拖延症

拖延总能让我们苟且偷安,但难题并没有消失。–《番茄工作法图解》 目前存在的问题 压力产生焦虑,在互联网公司始终会有很多的压力,有些是

Golang: 让你的零值更有用

Make the zero value useful。 –Go Proverbs 让我们从 Golang blog 开始吧:The zero value 当内存被分配来存储一个值时,无论是通过声明还是调用 make 或 new,并且没有提供明确的初始

使用 Mock 和 Interface 进行 Golang 单测

在工作中我经常会发现很多工程师的 Golang 单测是写的有问题的,只是单纯的调用代码做输出,并且会包含各种 IO 操作,导致单测无法到处运行。 使用 Mock 和 Interface 进行 Golang

关于 Golang Slice 的一些细节

关于 Golang Slice 的一些细节 在 Golang 中,有两种数据类型: 一种是限定长度的数组,叫做 Array,另外一种是不限定长度的数组,叫做 Slice。 区分 Array 和 Slice Array 和 Slice

总结一些计算机常用的原则

计算机常用的原则 在写代码的时候我们经常会有一些体会和经验所得,这些经验所得其实老早被之前的大神归纳成为原则。最近这一年我就一直在收集各种原则