Skip to content

Instantly share code, notes, and snippets.

View sudhamjayanthi's full-sized avatar
🛠️
TIME TO BUILD

sudham sudhamjayanthi

🛠️
TIME TO BUILD
View GitHub Profile
@sudhamjayanthi
sudhamjayanthi / multipull.md
Last active April 30, 2022 08:04
pulls master from all the sub-directories in the current monofolder

multipull

what is it?

a one liner bash command to pull the default branch (automatically checks) of git repo in all the subdirectories of a mono folder

how to use

one-time run

curl -s https://gist.githubusercontent.com/sudhamjayanthi/1d40c64dc59d0dbf3f4af39b6004f2cd/raw/67a8871cbd5cc53e9c0364089c6d6292ac4ccc36/multi-pull | sh
@sudhamjayanthi
sudhamjayanthi / one-liner-if-else.py
Last active September 25, 2020 14:54
[PYTHON] One liner IF-ELSE statements
'''
-----------------------------------------------------
REQUIRED KNOWLEDGE TO UNDERSTAND:
1. Python Lists & indexing
2. Python if-else statements
3. In python when we cast a boolean to int
1. TRUE changes to 1 i.e int(True) --> 1
2. FALSE changes to 0 i.e int(False) --> 0
------------------------------------------------------
''' '''