Skip to content

Instantly share code, notes, and snippets.

View xpressabhi's full-sized avatar
🏠
Working from home

abhishek kumar maurya xpressabhi

🏠
Working from home
View GitHub Profile
@Geoff-Ford
Geoff-Ford / master-javascript-interview.md
Last active July 18, 2024 08:32
Eric Elliott's Master the JavaScript Interview Series
@heiswayi
heiswayi / repo-reset.md
Created February 5, 2017 01:32
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A
@tkon99
tkon99 / name.js
Last active September 16, 2024 20:38
Random Name Generator for Javascript
/*
(c) by Thomas Konings
Random Name Generator for Javascript
*/
function capFirst(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
function getRandomInt(min, max) {
@ericelliott
ericelliott / essential-javascript-links.md
Last active September 9, 2024 15:49
Essential JavaScript Links