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
/* Critical CSS Finder w/media query support and output to console | |
by Katie Harron - https://github.com/pibby - https://pibby.com | |
forked from james-Ballyhoo (https://gist.github.com/james-Ballyhoo/04761ed2a5778c505527) who forked from PaulKinlan (https://gist.github.com/PaulKinlan/6284142) | |
I don't know why this isn't keeping my 2 space indents :( | |
*/ | |
(function() { | |
function findCriticalCSS(w, d) { | |
// Pseudo classes formatting | |
var formatPseudo = /([^\s,\:\(])\:\:?(?!not)[a-zA-Z\-]{1,}(?:\(.*?\))?/g; |
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
afterResultsChange: function() { | |
$(document).trigger('SearchSpring_AfterResultsChange'); | |
} |
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
<?php | |
/* | |
* TableTransferrer | |
* | |
* Allows you to transfer tables from one db to another with minimal effort. | |
* No file handling necessary, you only need the table names, and a connection from db 1 to db 2. | |
* | |
*/ |
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
RAW DATA | |
2_#10 Can | |
URL ENCODED | |
2_%2310%20Can | |
ESCAPED FOR HTACCESS | |
2_\%2310\%20Can |
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
<mvt:item name="toolkit" param="customimagec|main|l.all_settings:product:code|main|||1" /> | |
<mvt:assign name="l.height" value="178" /> | |
<mvt:assign name="l.width" value="178" /> | |
<mvt:do file="g.Module_Library_DB" name="l.image_loaded" value="Image_Load_File( g.main, l.image )" /> | |
<mvt:if expr="l.image_loaded"> | |
<mvt:do file="g.Module_Library_DB" name="l.generated_image_loaded" value="GeneratedImage_FindOrInsert_Image_Dimensions( l.image, l.width, l.height, l.settings:generated_image )" /> | |
</mvt:if> | |
<!-- Checking --> | |
&mvt:generated_image; |
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
<mvt:if expr="ISNULL g.ab_version AND ISNULL g.ab_flush"> | |
<mvt:item name="customfields" param="Read_Basket('ab_version', g.ab_version)" /> | |
</mvt:if> | |
<mvt:if expr="ISNULL g.ab_version"> | |
<mvt:assign name="g.randomNumber" value="random(100)" /> | |
<mvt:if expr="g.randomNumber GE 50"> | |
<mvt:assign name="g.ab_version" value="'A'"/> | |
<mvt:else> | |
<mvt:assign name="g.ab_version" value="'B'"/> | |
</mvt: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() { | |
var CSSCriticalPath = function(w, d, opts) { | |
var opt = opts || {}; | |
var css = {}; | |
var pushCSS = function(r) { | |
if(!!css[r.selectorText] === false) css[r.selectorText] = {}; | |
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/); | |
for(var i = 0; i < styles.length; i++) { | |
if(!!styles[i] === false) continue; | |
var pair = styles[i].split(": "); |
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> | |
<?php | |
// nggdb::get_gallery( <gallery ID> ) | |
// Get an array of nggImage objects. | |
$slides = nggdb::get_gallery( 1 ); | |
foreach( $slides as $slide ) { | |
// To see all the methods and attributes available, nextgen-gallery/lib/image.php | |
echo '<li><img src="'.($slide->cached_singlepic_file( 872, 331 )).'" alt="'.esc_attr($slide->alttext).'" /></li>'; | |
} | |
?> |