Skip to content

Instantly share code, notes, and snippets.

View PalashBansal's full-sized avatar
:octocat:
Open for Freelance projects. Drop me an email.

PalashBansal

:octocat:
Open for Freelance projects. Drop me an email.
View GitHub Profile
@PalashBansal
PalashBansal / CPtemplate.cpp
Last active May 27, 2020 06:18
competitive programming cpp template
#include <bits/stdc++.h> // precompiled header (may not be supported by execution environment)
#include <iostream>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <cctype>
#include <string>
#include <vector>
#include <list>
@PalashBansal
PalashBansal / git_help.sh
Last active December 19, 2016 17:04
git help
#1
# http://stackoverflow.com/questions/134882/undoing-a-git-rebase
--------------------------------------------------------------------------------------------------------------------
#2
# after squashing multiple commits into 1 commit, using interactive rebase tool
# have to force push them to override previous commits synced in PR (simple push doesn't work)
# don't use command- "git push origin master --force" (it is risky / for advanced user / doesn't work in this context)