Multiple variable assignment, For else loop, Chain comparison, floor() and ceil() functions, inspect object by dir(), reverse string with slice, N strings

7 useful python tips

1. Multiple variable assignment

You can assign values to multiple variables on one line. You can also assign different data type in single line. A simple use case is shown below:

2. For/while else loop

Yes, for else loop. In so many programming language, else statement is restricted to use only with if statement. In python (only for python version 3.X) …

tweet with python script

What do you need to install?

1. Python
2. Tweepy : Tweepy is a python library for accessing Twitter API.
3. Developer account in Twitter


1. Create a test file name in your working directory.

2. Write the following here:

3.Run the following file by running python command in your working directory and bam, you are done in 8 lines of code.

Git history, GitLens, Waka time, Better Comments, Error Lens, Material Icon Theme, Remote SSH

In this blog, going to share the must-have extensions for beginners. A little background, I am a Software developer and mostly a backend developer but here, I have tried to list some frontend friendly extensions also.

VS Code extensions for beginners

1. Git history

Git is the most widely used Version Control System out of all. Git History is the first extension you must install if you use git as VCS in your project. This extension is majorly used for:

i. view and search git log with details and graph ii. see history of…

Git for beginners, a basic concept, git system, familiarization with workflow

git for version control system

How do we know physical growth of person around us? Our mind captures the snapshot of the last moment we saw that person and this snapshot remains with us. Next time we see that person, our mind compares the snapshot from our memory and knows the physical growth of the person. Now, Git is a distributed version-control system for tracking changes in source code during software development. So, does that make git ‘brain’ of version control system? Yes. Does git also make snapshot of each files in each specific…

“ The fact that there was no catastrophic pandemic in recent history does not mean there won’t be another one. And we are certainly not prepared for the next pandemic.”
- Bill Gates, 2015 TED Talk

I hope everyone is taking good care of their physical and mental health in these difficult hours. Nepal Government decided to open restriction upon lockdown due to coronavirus pandemic since this Tuesday officially confirmed by Spokesperson of Nepal Government Yubaraj Khatiwada. I am not sure how we are reacting to this news because I see a lot of people posting their birthday celebration in…

Lockdown affecting lives

In picture, me and my mum in last dashain

My mum is seamstress, or simply we call it ladies tailor. We live in the heart of Nepal, Kathmandu city. She owns her small business, her customer includes local women of the town. I must say she is best at what she does, very passionate and productive women. She has been doing this tailoring for over 20 years now. Previously, she used to rent a place for her shop but a few years back she made small space in our own house and with necessary furnishing, she started here.

I am just another person who is working…

Artisan commands, list commands, custom commands

Before digging into artisan command and all this. Let’s have a clear idea on Command Line Interface. CLI is text-based UI for file configuration in computer systems in forms of text lines. Operating systems implement a command-line interface in a shell for interactive access to OS functions or services. The two most popular and easy to understand ones are DOS (for Windows) and the bash shell (for Linux and OS X). Each CLI uses its own command syntax, but they all function in a similar way.

Similarly, artisan is CLI for Laravel. It provides…

Cache Usage, Cache methods, Response time, Atomic lock, Cache helper

In basic understanding, Caching makes things faster. If I ask you the computation of 4x5 then your immediate answer would be 20. Your brain has done this computation several times that it doesn’t even need to be done again. Imagine if you had to do it by drawing four lines repeating five times and count it like you did it for the first time in our childhood. Then it would be a very expensive process(in terms of processing and time). Exactly the same case.

Laravel provides API for various caching mechanisms. Cache configuration is located at config/cache.php in your laravel…

Laravel Ignition , Vue JS Introduction, Alpine JS Introduction, Deploying Vue CLI app as GitHub pages

Table Of content

  1. Laravel Ignition
  2. Vue JS Introduction
  3. Alpine JS Introduction
  4. Deploying Vue CLI app as GitHub pages

Laravel Ignition

Last week our colleague Bikalpa Thapa shared us about Ignition. Ignition is a pretty Laravel specific error page. Ignition is the default for Laravel 6.0, and you can install it to work with existing Laravel 5 applications. If configured with a valid Flare API key, your errors in production applications will be tracked, and you’ll get notified when they happen.

For further information on Ignition please visit :

Vue JS is a progressive framework for building user interfaces. Vue.js features an incrementally adaptable architecture that focuses on declarative rendering and component composition. Advanced features required for complex applications such as routing, state management, and build tooling are offered via officially maintained supporting libraries and packages.

Vue.js is a system that enables us to declaratively render data to the DOM using straightforward template syntax. For example:

In this example, it looks pretty much simple…

Sonika Baniya

full time buging mum, part time fixing bugs. Writes code with @yipl | Cofounder @swasthanaari | (She/Her)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store