schedule Oct 21, 2021 · 1 min read How to get pretty python interpreter automagically? Install rich ➜ pip install rich ➜ mkdir ~/pystartup ➜ touch ~/pystartup/startup.py Create startup script ➜ ~ echo PythonPython 3Open Source
schedule Oct 21, 2021 · 2 min read Minify docker image size upto 30x with docker-slim Today I found a amazing tool to optimise and minifies docker image and reduces the docker image size. docker-slim docker-slim doesn't change anything in your Docker container image and minify it by up to 30x. docker-slim will optimize and secure you... Dockerdocker imagesOpen Source
schedule Oct 14, 2021 · 1 min read Check diff between two files in Python In Today I Learned(TIL) series, I'm going to explore python standard module called difflib. What is difflib difflib is a built-in standard python library used to find deltas between files and objects. How to use it Load file1 and file2 content choo... PythonOpen Source
schedule Oct 13, 2021 · 1 min read How I made my first contribution to supabase? Background I build a lot of side projects even though most of them never gets released to the world. Python is my primary language and I'm Firebase fan. When I found out that there is an open source alternative with the power of Postgres(RDBMS). I st... Firebase#hacktoberfest Open Source
schedule Oct 12, 2021 · 2 min read How I built an open source CLI based Pomodoro app? What is Pomodoro? Pomodoro time management technique where you do focused work sessions without any interruptions and take short breaks after the session and repeat it until you complete your task. Pomodoro helps improve concentration and focus. Whe... Open SourcePythonProductivity
schedule Oct 11, 2021 · 1 min read how to implement catch all route in fast api? Sometimes you would require to implement a catch all requests in your fastapi application. We can achieve it by using api_route method. Catch all route from fastapi import FastAPI, Request app = FastAPI() @app.route( Python
schedule Jul 30, 2021 · 2 min read Introducing Vaathi Coding - Learn python with bite-sized programming challenges Hello everyone 👋 Happy to share my article for Clerk Hashnode hackathon submission. Vaathi Coding The word Next.jsReactClerk.devThe Clerk Hackathon on Hashnode
schedule Jul 15, 2021 · 2 min read Is Python use Call by value or Call by reference? In C programming, Values to a function can be passed by its value or by its reference. These methods are known as Call by value and Call by reference respectively. Let's understand what are mutable and immutable objects. Mutable Objects list, dict ... PythonPython 3
schedule Jul 10, 2021 · 2 min read Docker - Difference between COPY and ADD in Dockerfile COPY and ADD are both Dockerfile instructions that does similar operation. Both instructions are used to copy files into a Docker image. Let's look at some use cases for both. COPY instruction in a Dockerfile The COPY instruction copies files or dir... DockerDevops
schedule Jul 9, 2021 · 2 min read Dockerfile - Use WORKDIR the right way WORKDIR instruction in a Dockerfile The WORKDIR instruction sets the current working directory for any RUN, CMD, ENTRYPOINT, COPY and ADD instructions. If the WORKDIR doesn’t exist, it will be created automatically. In simple words, It runs a mkdir ... DockerDevops
schedule Jul 8, 2021 · 2 min read 3 step framework to write better code Often we spend too much time to write better code. Though the intention is good, It doesn't produce any result in most cases. Here's how we can approach writing better code, Make it work You're writing code, first step is focus on the basic requirem... software developmentProgramming Tips
schedule Jul 7, 2021 · 2 min read Flask decorator to measure time taken for a request In the previous articles on the Python decorator series, we have learnt decorators, how they work and to implement a simple function based decorator and a class based decorator and decorator that supports parameters. In this article, we will use flas... PythonTutorialFlask FrameworkPython 3