Git delete branch
Delete local branch $ git branch -d BRANCHNAME ## list branches $ git branch
Git create branch
Create branch without switching $ git branch NEWBRANCHNAME ## list branches $ git branch Create branch and switch to it $ git checkout -b NEWBRANCHNAME read more
Linux find – ignore case in name
When using linux find, -iname can be used to match name pattern and ignore case (case insensitive). $ fine . -iname “pattern” Example Find all read more
find – exclude directory or file pattern
To exclude directory or file pattern when using find on command line one can use ! -name “pattern_to_exclude” Example To exclude a directory using its read more
Mac – hide and unhide a file or directory
Mac command line utility chflags can be used t unhide or hide a hidden folder or file on Mac. A hidden folder will start appearing read more
jQuery – add text to existing div
jQuery .append() can be used to add text to an div. The text can contains tags inside it.
jQuery sliding effect – slideUp, slideDown, slideToggle
jQuery slideDown, slideUp, slideToggle can be used to display, hide or toggle and element in sliding motion. .slideDown( [duration ] [, complete_callback ] ) .slideDown( read more
Javascript – textarea and text input select all
Javascript object.select() can bse used to select full text in textarea and text put fields in HTML. Example – select all in textarea Example – read more
CSS bottom
CSS bottom property decides the bottom offset (bottom edge of element offset from bottom edge of container) for positioned elements. An element is considered positioned read more