Skip to content

Instantly share code, notes, and snippets.

View mallowigi's full-sized avatar
🌴
Salut tout le monde les gens!

Elior Boukhobza mallowigi

🌴
Salut tout le monde les gens!
View GitHub Profile
@mallowigi
mallowigi / git-clearHistory
Created April 9, 2020 12:01 — 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
@mallowigi
mallowigi / 0_reuse_code.js
Created August 31, 2014 06:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

A Working configuration to setup HTML5 push-state routing in your AngularJS app with Nginx as your web server.

beforeEach(function() {
this.addMatchers({
toBeInstanceOf: function(expectedInstance) {
var actual = this.actual;
var notText = this.isNot ? " not" : "";
this.message = function() {
return "Expected " + actual.constructor.name + notText + " is instance of " + expectedInstance.name;
};
return actual instanceof expectedInstance;
}
@mallowigi
mallowigi / .bowerrc
Created September 16, 2013 15:04 — forked from facultymatt/.bowerrc
{
"directory": "components"
}