Skip to content

Instantly share code, notes, and snippets.

View lalitrhombus's full-sized avatar

Lalit Chaturvedi lalitrhombus

View GitHub Profile
@lalitrhombus
lalitrhombus / gitHistoryReset.txt
Created August 10, 2020 09:13
Reset git history and create a fresh start for a application
git checkout --orphan newBranch
git add -A # Add all files and commit them
git commit
git branch -D master # Deletes the master branch
git branch -m master # Rename the current branch to master
// have to confrim below command
git remote rm origin
// Push is optional
@lalitrhombus
lalitrhombus / coding.js
Created September 7, 2017 06:43
Travel Triangle Interview Round
// Create an event bus
function Bus() {
let eventFuncObject={};
function on(eventName, eventFunc){
if(!eventFuncObject[eventName]){
eventFuncObject[eventName]=[];
}
eventFuncObject[eventName].push(eventFunc);
@lalitrhombus
lalitrhombus / frontendDevlopmentBookmarks.md
Created October 21, 2015 15:43 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.