How to write Git commit message

Apr 1, 2017

Below are The seven rules of a great Git commit message.

  • Separate subject from body with a blank line
  • Limit the subject line to 50 characters
  • Capitalize the subject line
  • Do not end the subject line with a period
  • Use the imperative mood in the subject line
  • Wrap the body at 72 characters
  • Use the body to explain what and why vs. how

  • References

https://chris.beams.io/posts/git-commit/

https://git-scm.com/book/en/v2/Distributed-Git-Contributing-to-a-Project

Categories : Git

How to search bash command history in Emacs multi term

Mar 31, 2017

C-r in Emacs multi term invokes (isearch-backward) command. To search bash command history we can use M-r instead.

  • Reference https://www.emacswiki.org/emacs/MultiTerm
Categories : Emacs

How to configure multi term in Emacs to allow login shell

Mar 30, 2017

To configure multi term in Emacs to allow login shell

(setq multi-term-program-switches "--login")
  • Reference

http://stackoverflow.com/questions/19750218/emacs-multi-term-as-a-login-shell

Categories : Emacs

Responsive vs Adaptive Design

Mar 28, 2017

  • Responsive Design - Responsive websites respond to the browser size at any given point. No matter the browser width, the site adjusts its layout.

  • Adaptive Design - Adaptive websites adapt to the browser size at specific points.

  • Reference - https://css-tricks.com/the-difference-between-responsive-and-adaptive-design/

Categories : CSS   Design

Difference between CSS reset and normalize

Mar 26, 2017

Normalize.css

  • Preserves useful defaults rather than “unstyling” everything.
  • Corrects some common bugs that are out of scope for reset.css.
  • Doesn’t clutter your dev tools.
  • Is more modular.
  • Has better documentation.
  • Reference http://stackoverflow.com/questions/6887336/what-is-the-difference-between-normalize-css-and-reset-css http://nicolasgallagher.com/about-normalize-css/
Categories : CSS