Skip to content

Instantly share code, notes, and snippets.

View palashmon's full-sized avatar
🎯
Focusing

Palash Mondal palashmon

🎯
Focusing
View GitHub Profile
@palashmon
palashmon / create new branch.md
Last active September 7, 2017 17:14
Create a new branch for adding a new feature to master

Usage

# create and switch to new branch, in one line 
git checkout -b new-branch-name

# add new changes to the code, after all done check status
git status

# add new files if needed
@palashmon
palashmon / git synced forked repo.md
Last active September 7, 2017 17:15
Make your forked repo master to be the same as upstream/master

Usage

git fetch upstream
git reset --hard upstream/master
git push origin master --force
@palashmon
palashmon / bling-0.2.0.js
Created July 12, 2017 15:06
bling dot js [updated]
// based on https://gist.github.com/paulirish/12fb951a8b893a454b32
const $ = document.querySelector.bind(document);
const $$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
};
NodeList.prototype.__proto__ = Array.prototype;
@palashmon
palashmon / bling.js
Created July 12, 2017 14:50 — forked from paulirish/bling.js
bling dot js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;