Thursday, March 9, 2017

Javascript, How to find object types

In some cases we can't use typeof to find object of Object and object of Array.

You can use Object.prototype.toString to find object types in Javascript


Monday, March 6, 2017

Git frequent usage commands

git create new branch
git checkout -b 'branchName'

git switch to existing branch
git checkout branchName

git Tag with version
git tag -a v0.0.1 90a5435 -m ' Your Message'
git push origin v0.0.1

v0.0.1 - Version that you want to create
90a5435 - Commit id of the branch the you want to tag

git delete Tag
remote
git push --delete origin tagname

local
git tag --delete tagname

Git merge

git checkout master
git pull origin master
git merge test
git push origin master

Git delete branch
git push origin --delete branchname
git branch -d branchname

CSS tricks

Mixed paint in background: background: linear-gradient(to right, #b6e358, #38b143) Grid view: display: grid; grid-template-columns: a...