sammaji.comlooking forward on 20262025 was a great year - built a lot of cool stuff, got employed, moved to bengaluru, grew on X. here’s some of the things i plan on working in 2026: content creation - always been on my “things to do”, but didn’t find much time for it. 2026 will cha...Jan 4·1 min read
sammaji.comRegex cheat-sheet.Here's regex cheat-sheet. abc -> this regex will match "abc" in a string. \d or \w etc. -> they can be used to match special characters or sequences. ?, + -> have special meaning, hence if you want to match "+", use a backslash before it, e.g. \+ []...Oct 30, 2025·3 min read
sammaji.comRemove trailing spaces in vim.Here's how to remove trailing spaces. :%s/\s\+$//e You can automatically remove trailing spaces every time you save a file by adding an autocmd to your vim config. autocmd BufWritePre * :%s/\s\+$//e This sets up an automatic command to run before w...Oct 21, 2025·1 min read
sammaji.comCreate dropdown menu (tui) in cIn this article, I’ll show how to create a simple dropdown menu using C, with the ability to navigate through options using the arrow keys and select one using the Enter key. Here’s how it would look. Disable terminal modes First, we need to disable...Mar 10, 2025·4 min read
sammaji.comBuild and deploy a chat application using Socket.io and Redis.In this tutorial, we will be building a chat application using web sockets. Web sockets are really useful when you want to build applications that require real-time transfer of data. By the end of this tutorial, you will be able to setup your own soc...Aug 26, 2024·5 min read