Dev quotes is a platform for developers to write inspireing quotes.
Django Quick Setup Script
Introduction
Once you learn something very neatly and understand it very clearly, it feels like you are wasting time doing things over and over again. Same things in setting up a Django project, you feel like you could save those typing minutes by making a script.
In this article, we will make a script a batch script for windows and a BASH script for Linux/macOS. We will make a virtual environment using python and then install the libraries and dependencies like in this case we will install Django. You can also tinker with these scripts and install other dependencies if you want like Django rest framework, crispy forms, markdown, Redis, etc. We will also make a Django project using the positional parameter passed before running the script from the command line.
Vim: Buffers
Introduction
I have talked about Vim tabs, window splits in the previous articles, and now I am quite keen on explaining the finest unit of file that you can open using Vim and that is a buffer. Tabs are a collection of windows, Windows are the viewport on buffers (collection to view the buffers), and Buffers are the memory that holds text in the file. So let us explore buffer in detail. This article won’t cover each and every tiny detail about buffers but surely enough to make you understand what a buffer is and how to manage those.
Vim: Window Splits
Introduction
Have you ever been stuck in Vim opening multiple files within a single window? Didn’t anyone tell you, you can create multiple windows and split them within a single tab. Definitely, the window splits will be in separate buffers. In this way you can create multiple windows inside of a single Tab, what are Tabs? You can learn some basics about it from my previous article about Tabs in Vim. We can either create Vertical or Horizontal splits within the window making it flexible to work with multiple files in Vim. This article will look into the creation, navigation, closing, and rearrangement of Window Splits.
Vim: Tabs
Introduction
So, you are playing with Vim and getting good at but something pulls you off. Basically can’t get used to switching between files or windows, and that’s totally fine. Some may prefer using Window splitting, file managers, and whatnot. But let me introduce you to TABS in Vim. A simple and elegant way to open multiple files in Vim.
Opening Tabs
To open a tab, you can press :tabnew or :tabedit to open a blank Tab with no file open in it. This basically works like the :e command, which opens a buffer for you with no named file.
Scrapping the meaning of a word from dictionary.com using BASH script.
Introduction
Web Scraping is quite an interesting and powerful tool or skill to have in a Programmer’s toolkit. It helps in analyzing data and getting some information in various formats. Web Scraping is a process in which a user fetches a website’s content using some pattern in those HTML tags and the desired content to be fetched or scraped.
For this article, we aim to fetch the meaning of a word entered by the user from the dictionary.com website. We need to print just the meaning of the word from the HTML tags in it. We must have a good understanding of HTML and some basic Linux tools such as cURL, grep, sed, and others for doing all of these.
World Atlas
A Geographical based word game.
Vim: Registers
Introduction
Have you ever found it difficult to manage and operate text in Vim, especially in Cut/Copy/Paste stuff. You cannot figure out how on earth am I supposed to retrieve my un-saved, un-committed changes in Vim. Then this my dear friend is an article for you. You will learn what are Vim registers and where your deletes and copied stuff resides. This won’t be a comprehensive guide but enough to let you through in performing the wizardry of registers in Vim.
Vim: Enhancing Editing Speed
Introduction
Editing/ Writing is a crucial part of any text editor, the swiftness with which one can make changes in a file(s) or a structure is a bit dependent on the editor we use as well. Vim can be a bit hassle for beginners in the initial stage but it becomes second nature soon. It also depends majorly on the level of usage and the area of usage. If you are an advanced programmer, you will use these commands extensively, and might not be a big deal for you, But for a beginner, it might take some time to get used to the workflow in Vim.
Cryptocurrency Price Scrapping using BASH and Coingecko API
Introduction
Cryptocurrency is in such a hype that it is attracting even nerds and terminal fanboys, it is quite comfortable for such people to view the price inside of their terminal, also for normal people to learn about how to interact with an API from the local machine. We are gonna make a script about 20 lines in BASH to extract data from the coingecko cryptocurrency API and some tools such as grep and sed. That being said let’s start scripting.