This file contains 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 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 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 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 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
({ | |
'window' : this, | |
'position' : 'UI Engineer', | |
'location' : 'SmugMug', | |
'website' : 'http://smugmug.com/jobs', | |
'skills' : [ 'javascript', 'css', 'web standards', 'object oriented programming', 'php' ], | |
'benefits' : { | |
'awesomeTeam' : true, | |
'technicalCEO' : true, | |
'microManagement' : false, |
This file contains 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
javascript:(function(w,d){var a=d.getElementById('hplogo'),b=w.setInterval(function(){if(a.childNodes.length>2){a.removeChild(a.childNodes[a.childNodes.length-1]);}else{w.clearInterval(b);}},83);}(this,this.document)); |
This file contains 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
javascript:(function(){var x=encodeURIComponent('\'\';!--"<XSS>=&{()}'),u=[],n={},i=0,a=[].concat([].slice.call(document.getElementsByTagName('input')),[].slice.call(document.getElementsByTagName('select')),[].slice.call(document.getElementsByTagName('textarea'))),l=a.length;for(;i<l;++i){if(a[i].name&&!n[a[i].name]){n[a[i].name]=1;u.push(a[i].name);}}if(u.length){window.location.href+=(!~~window.location.href.indexOf('?')?'&':'?')+u.join('='+x+'&')+'='+x;}else{alert('No inputs!');}}()); |
This file contains 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
javascript:(function(i){while(++i<70){localStorage['level_star_'+i]=3;}}(-1)); |
This file contains 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
# find the root of the local svn checkout | |
svnroot() { | |
[ -d $1/.svn ] && svnroot $1/../ $1 || ( cd ${2:-$1} && echo $PWD ); | |
} |
This file contains 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
<IfModule mod_rewrite.c> | |
RewriteCond %{REQUEST_FILENAME} \.(?:list|of|file|types)$ | |
RewriteCond %{HTTP_REFERER} !^https?://(?:(?:sub|doms|go|here)\.sites|go|here) [NC] | |
RewriteRule \.(?:list|of|file|types)$ - [F,L] | |
</IfModule> |