# Google chrome
deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Go to - https://developer.mozilla.org/en/css/-moz-transform | |
// Go to timeline view | |
// Copy/pasta into URL bar | |
javascript:(function(){var a=document.getElementsByTagName('pre')[1];a.style.WebkitTransform=a.style.WebkitTransform.replace('rotate(20deg)', 'rotate(90deg)');setTimeout(function(){a.style.position='absolute';},1000);}()); | |
// Start timeline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1) Go to - http://www.mozilla.com/en-US/firefox/fx/ in FF3-4, Chrome | |
// 2) Run this: | |
(function () { | |
var p = document.getElementsByTagName('p')[3]; | |
p.style.boxShadow = '5px 5px red'; | |
p.style.MozBoxShadow = '5px 5px yellow'; | |
p.style.WebkitBoxShadow = '-5px -5px blue'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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>'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
undefined === (function () { | |
return <!-- muhahah! you'll never evaluate me! | |
}()); // true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (b) { | |
return 1<!--b; | |
}(1)); // what do I return? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_______ _______ _ _________ _______ | |
( ____ )( ___ )( ( /|\__ __/( ____ \ | |
| ( )|| ( ) || \ ( | ) ( | ( \/ | |
| (____)|| (___) || \ | | | | | | | |
| _____)| ___ || (\ \| | | | | | | |
| ( | ( ) || | \ | | | | | | |
| ) | ) ( || ) \ |___) (___| (____/\ | |
|/ |/ \||/ )_)\_______/(_______/ | |
YOUR TESTS FAILED |