Skip to content

Instantly share code, notes, and snippets.

View PALASH-BAJPAI's full-sized avatar
:electron:
Building some stuffs.

PALASH PALASH-BAJPAI

:electron:
Building some stuffs.
View GitHub Profile
feat: Indicates a new feature or enhancement.
fix: Indicates a bug fix or correction of an issue.
docs: Indicates documentation-related changes, such as adding or updating documentation.
style: Indicates changes that do not affect the code's functionality, such as formatting, indentation, or whitespace changes.
refactor: Indicates code refactoring or restructuring without changing its external behavior.
test: Indicates changes related to testing, such as adding or modifying test cases.
chore: Indicates miscellaneous changes that do not fit into any other category, such as updating dependencies or build configurations.
perf: Indicates performance-related changes, such as optimizations or improvements.
ci: Indicates changes to the continuous integration (CI) pipeline or configurations.
revert: Indicates reverting a previous commit.
git fetch orgin main
git reset --hard origin/main
git pull
@PALASH-BAJPAI
PALASH-BAJPAI / template.py
Created January 13, 2024 10:09
Competitive Coding python template
from collections import defaultdict
import math
ll = lambda : list(map(int,input().split()))
ls = lambda : list(map(str,input().split()))
for _ in range(int(input())):
n = int(input())
@PALASH-BAJPAI
PALASH-BAJPAI / namingConvention.txt
Last active June 4, 2024 05:05
Python naming conventions
Snake case for variable and function name. eg get_customer_name()
constants are uppercase. eg PI
class names are upperCamelCase. eg MyClass
module names are all lowercase. eg mymodule
@PALASH-BAJPAI
PALASH-BAJPAI / responsive.css
Created July 14, 2022 11:36
Make image responsive
<img src="nature.jpg" alt="Nature" class="responsive">
.responsive {
max-width: 100%;
height: auto;
}
@PALASH-BAJPAI
PALASH-BAJPAI / night_mode.css
Created July 14, 2022 06:33
Night Mode for website
body{
background:#000;
filter: invert(1) hue-rotate(360deg);
}
p{
color:pink;
}
//Invert 0 and background #FFF for again normal mode
@PALASH-BAJPAI
PALASH-BAJPAI / autosize.css
Last active June 28, 2022 10:49
Auto-size image according to div
.img{
height:100%;
width:100%;
object.fit:contain;
}