New clearfix
Posted: April 22nd, 2011 | Author: Vincent | Filed under: CSS | No Comments »
/* For modern browsers */
.clear:before,
.clear:after {
content: "";
display: block;
overflow: hidden;
}
.clear:after {
clear: both;
}
/* For IE 6/7 (trigger hasLayout) */
.clear {
zoom: 1;
}
Source: http://nicolasgallagher.com/micro-clearfix-hack/
Smallest possible 1×1 transparent gif and png
Posted: April 19th, 2011 | Author: Vincent | Filed under: Development | 1 Comment »Smallest possible 1×1 transparent gif and png
PNG 67 bytes
GIF 42 bytes
Remove a line from multiple files
Posted: April 8th, 2011 | Author: Vincent | Filed under: Development, System | No Comments »
find . -type f -exec sed -i '/LINETHATCONTAINTHIS/d' {} \;
