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
cd '%p'; git clone https://github.com/paulirish/html5-boilerplate.git |
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
cd '%p'; mkdir project; cd '%p'/project; wget -O boilerplate.zip http://github.com/paulirish/html5-boilerplate/zipball/v2.0stripped; unzip boilerplate.zip; mv paul* root |
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
.csstransforms .box_rotate { | |
/* use modernizr to give these rules only to capable browsers */ | |
-moz-transform: rotate([[%ask1:Grad:90.0]]deg); /* FF3.5+ */ | |
-o-transform: rotate([[%ask1]]deg); /* Opera 10.5 */ | |
-webkit-transform: rotate([[%ask1]]deg); /* Saf3.1+, Chrome */ | |
-ms-transform: rotate([[%ask1]]deg); /* IE9 */ | |
transform: rotate([[%ask1]]deg); | |
-webkit-transform-origin: [[%ask2:left:50%]] [[%ask3:top:50%]]; | |
-moz-transform-origin: [[%ask2]] [[%ask3]]; |
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
.box_lgradient { | |
background-color: #[[%ask1:from:444444]]; | |
background-image: -webkit-gradient(linear, left top, left bottom, from(#[[%ask1]]), to(#[[%ask2:to:999999]])); /* Saf4+, Chrome */ | |
background-image: -webkit-linear-gradient(top, #[[%ask1]], #[[%ask2]]); /* Chrome 10+, Saf5.1+ */ | |
background-image: -moz-linear-gradient(top, #[[%ask1]], #[[%ask2]]); /* FF3.6 */ | |
background-image: -ms-linear-gradient(top, #[[%ask1]], #[[%ask2]]); /* IE10 */ | |
background-image: -o-linear-gradient(top, #[[%ask1]], #[[%ask2]]); /* Opera 11.10+ */ | |
background-image: linear-gradient(top, #[[%ask1]], #[[%ask2]]); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#[[%ask1]]', EndColorStr='#[[%ask2]]'); /* IE6–IE9 */ | |
} |
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
ul.reset, | |
ul.reset li, | |
ul.reset ul li { | |
margin:0; | |
padding: 0; | |
text-indent: 0; | |
list-style-type: 0; | |
} |
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
cd '%p'; mkdir downloads; cd downloads; wget -r -l%(ask2:Depth:1) -k http://%(ask1:URL); |
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
pdfimages -j foo.pdf bar | |
Much easier with a nautilus script (see comments). |
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
Question by: highlander | |
Is there a way to know how many parents any given document has or, how far down the tree structure a document is located? | |
Solution by: opengeek | |
Updated by: pepebe to work with MODX REVO 2.2.0-pl2 | |
Source: http://forums.modx.com/index.php?topic=18747.0;wap2 | |
noOfParents snippet: |
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
Source: http://www.oxid-esales.com/forum/showthread.php?t=10050 | |
[{if $oxcmp_user && $oxcmp_user->inGroup('blub')}] | |
ist in gruppe | |
[{else}] | |
ist nicht in gruppe | |
[{/if}] |
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 textWidth(text){ | |
var calc = '<span style="display:none">' + text + '</span>'; | |
$('body').append(calc); | |
var width = $('body').find('span:last').width(); | |
$('body').find('span:last').remove(); | |
return width; | |
}; |
OlderNewer