Ealier i wrote an article on how to match everything between two strings or tags or text in sublime using regular expressions but now i am vscode, i need a way to do this in vscode aswell. and luckily it is damn simple some like which selects everything between that section tag, which you can […]
Category: programming
why WSL is not good idea for development
Honestly i tried to use WSL (Windows Subsystem for Linux) many times and gave up because of time or other constraints, finally now i decided to use because in my windows pc, i am using old nodejs and a project required latest nodejs everything went fine but then, i want to do a quick npm […]
Improving code quality
I have come across a good article which explains how to improve code quality Poorly written code can be a real disaster. When the mess in your code increases, so does the time that it takes to maintain it. In the worst-case scenario, the code can no longer be maintained and the project will slowly […]
babun/cygwin yarn stdin is not tty fix
If you are using windows and using babun or cygwin, if you come across “stdin is not tty” when you try to run yarn then there is a simple fix available 🙂 in your ~/.zshrc add an alias like alias yarn=”yarn.cmd” and then you should be able to use yarn command as usual 🙂
Match everything in between two strings using sublime text
Often when working on projects with multiple files, we may need to find everything in between two strings and replace them. example: moving all global js files (files which will be used in all files) within comments like <!– global js –> <script src="js/jquery-1.11.1.min.js"></script> <!– Bootstrap –> <script src="js/bootstrap.min.js"></script> <!– end of global js […]