Skip to content

Instantly share code, notes, and snippets.

View akankshach29's full-sized avatar

Akanksha Choudhary akankshach29

View GitHub Profile
@akankshach29
akankshach29 / git-clearHistory
Created April 10, 2020 09:56 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
The JavaScript Round:
Closure
Call, Bind, Apply
Map, reduce, filter, splice, slice
Prototypical Inheritance
Scope: The ‘this’ keyword
The ‘new’ keyword
New ES6 Features
Why Arrow Functions?
let, const, var
@akankshach29
akankshach29 / mongodbcommands.txt
Created August 21, 2017 06:29
Mongo DB commands frequently used
Mongo DB unlike relational database, is a JSON-like document oriented database. The mongo shell is an interface used to add, query, update, etc data.
Here’s a cheat sheet of Mongo Shell commands often used:
1 Login to the server
2 Type `mongo` to get the mongo terminal
To create a new database:
use database_name
To See the list of all database present: