margin-left: 0em; -> margin-left:0;
margin-left: 0ex; -> margin-left:0;
margin-left: 0cm; -> margin-left:0;
margin-left: 0mm; -> margin-left:0;
| # screw with somebody (put in ~/.bashrc or ~/.bash_profile) | |
| function uptime { | |
| /usr/bin/uptime | sed -re 's/up[^,]+/up 99999 days/g'; | |
| } |
| ( cat <<EOT | |
| anonymize () { | |
| [ ! -z \$PS1 ] && export PS2=\$PS1; | |
| export PS1='user@host:~\$ '; | |
| } | |
| unanonymize () { | |
| [ ! -z \$PS2 ] && export PS1=\$PS2; | |
| unset PS2; |
| _______ _______ _ _________ _______ | |
| ( ____ )( ___ )( ( /|\__ __/( ____ \ | |
| | ( )|| ( ) || \ ( | ) ( | ( \/ | |
| | (____)|| (___) || \ | | | | | | | |
| | _____)| ___ || (\ \| | | | | | | |
| | ( | ( ) || | \ | | | | | | |
| | ) | ) ( || ) \ |___) (___| (____/\ | |
| |/ |/ \||/ )_)\_______/(_______/ | |
| YOUR TESTS FAILED |
| // for everybody except IE | |
| function replaceHtml(el, html) { | |
| var oldEl = typeof el === "string" ? document.getElementById(el) : el; | |
| var newEl = oldEl.cloneNode(false); | |
| newEl.innerHTML = html; | |
| oldEl.parentNode.replaceChild(newEl, oldEl); | |
| /* Since we just removed the old element from the DOM, return a reference | |
| to the new element, which can be used to restore variable references. */ | |
| return newEl; | |
| }; |
| (function (b) { | |
| return 1<!--b; | |
| }(1)); // what do I return? |
| undefined === (function () { | |
| return <!-- muhahah! you'll never evaluate me! | |
| }()); // true |
| YUI().use('gallery-ellipsis', function (Y) { | |
| // must wait to append hidden node | |
| Y.on('domready', function () { | |
| // create a hidden node and try to style it | |
| var cloned, | |
| hidden = Y.Node.create('<div style="visibility:hidden;position:absolute;white-space:nowrap;overflow:hidden;"></div>'), | |
| rules = ['textOverflow', 'OTextOverflow']; |
| (function ($) { | |
| // innocent until proven guilty | |
| $.extend({'ellipsis':{'nativeSupport' : false}}); | |
| // do a quick feature test to see if we're natively supported | |
| $(function () { | |
| // a hidden node we're testing and it's soon-to-be clone | |
| var cloned, hidden = $('<div style="visibility:hidden;position:absolute;white-space:nowrap;overflow:hidden;"></div>'), |