Skip to content

Instantly share code, notes, and snippets.

View Seminioni's full-sized avatar
🖖
Sup world

Mike Syomin Seminioni

🖖
Sup world
View GitHub Profile
@Seminioni
Seminioni / git-clearHistory
Created March 26, 2018 01:13 — 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 [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git
@Seminioni
Seminioni / cloudSettings
Last active April 28, 2020 16:32
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-04-28T16:32:02.979Z","extensionVersion":"v3.4.3"}
const number = '+7(222)444-55-66'
const arr = Array.from(number)
.filter(el => {
return /\d/.test(el)
})
.reduce((num, acc) => {
return +num + +acc;
}, 0)
console.log(arr)