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
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
%my-placeholder { | |
background:black; | |
padding:20px; | |
position:relative; | |
color:red; |
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
if ( version_compare( WOOCOMMERCE_VERSION, "2.1" ) >= 0 ) { | |
add_filter( 'woocommerce_enqueue_styles', '__return_false' ); | |
} else { | |
define( 'WOOCOMMERCE_USE_CSS', 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
// How about we try some FOUT fixing with SASS... | |
// a fallback if people forget to set the stack. | |
$default-font-stack: "Museo-sans", "Helvetica Neue", Arial, Helvetica, sans-serif !default; | |
// we'll extend these in some sort of attempt to chain selectors without needing to worry about it. | |
.visible-hidden { | |
visibility:hidden; | |
} |
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
#!/bin/bash | |
## Email Variables | |
EMAILDATE=`date --date="today" +%y-%m-%d` | |
EMAIL="you@yourdomain.com" | |
SUBJECT="[servername] Backup Script Started! - "$EMAILDATE | |
EMAILMESSAGE="/tmp/emailmessage1.txt" | |
echo "Just to let you know that the backup script has started."> $EMAILMESSAGE | |
/bin/mail -s "$SUBJECT" "$EMAIL" < $EMAILMESSAGE |
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
--- | |
products: | |
- {prix: 17, name: mon-cahier-3, description: "<a href='mailto:someone@morlhon.net?subject=test%20test'>jl</a>"} | |
- {prix: 18, name: mon-cahier-7, description: "<h1>TEST</h1>"} | |
--- | |
<html> | |
<head> | |
<title>Jekyll test</title> | |
</head> | |
<body> |
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
add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 ); | |
function woo_reorder_tabs( $tabs ) { | |
$tabs['reviews']['priority'] = 5; // Reviews first | |
$tabs['description']['priority'] = 10; // Description second | |
$tabs['additional_information']['priority'] = 15; // Additional information third | |
return $tabs; | |
} |
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
jQuery.fn.shake = function(intShakes, intDistance, intDuration) { | |
this.each(function() { | |
$(this).css({ | |
position: "relative" | |
}); | |
for (var x = 1; x <= intShakes; x++) { | |
$(this).animate({ | |
left: (intDistance * -1) | |
}, (((intDuration / intShakes) / 4))).animate({ | |
left: intDistance |
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
// github gist Shortcode Usage: [gist un="" id=""] | |
function gist_shortcode( $atts ) { | |
extract(shortcode_atts(array( | |
'un' => '', | |
'id' => '' | |
), $atts)); | |
return '<script src="https://gist.github.com/' . $username . '/' . $id.'.js"></script>'; | |
} | |
add_shortcode('gist', 'gist_shortcode'); |
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
Tutorial for compiling the Compass.app (http://compass.handlino.com/) | |
===================================================================== | |
Java installed? | |
java -version | |
Load jRuby (for example JRuby 1.6.5.1 Binary .zip) | |
http://jruby.org/download | |
Unzip jRuby to `/usr/local/` |