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
CSS right
CSS right property decides the right offset (right edge of element offset from right edge of container) for positioned elements. An element is considered positioned read more
CSS top
CSS top property decides the top offset for positioned elements. An element is considered positioned if its position property has value other than static. Few read more
CSS left
CSS left property decides the left offset for positioned elements. An element is considered positioned if its position property has value other than static. Few read more
CSS – place a div in bottom right corner of browser
To place a div in bottom right corner of browser or iframe, we can use position:fixed along with right and bottom property value assigned to read more
Javascript – declare and invoke anonymous function at the same time
Javascript can declare anonymous function and call it at the same time using the following syntax: (function (arg1, arg2, …) { }) (arg1, arg2, …); read more