Skip to content

Instantly share code, notes, and snippets.

@rolka
rolka / gist:92f05d62c5d24a15bc00
Created August 18, 2014 11:27
Removing CSS animations/ transitions/transforms
/*CSS transitions*/
-o-transition-property: none !important;
-moz-transition-property: none !important;
-ms-transition-property: none !important;
-webkit-transition-property: none !important;
transition-property: none !important;
/*CSS transforms*/
-o-transform: none !important;
-moz-transform: none !important;
app/etc/local.xml
downloader/.cache
downloader/cache.cfg
downloader/connect.cfg
var/cache
var/session
var/locks
var/package
var/importexport
var/log
@rolka
rolka / gist:bda188da5b8692c8fc18
Created June 9, 2014 10:39
CSS: target IE10 & IE11
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
/* IE10+ specific styles go here */
}
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory
@rolka
rolka / gist:2b92e497737422f3f739
Created May 7, 2014 07:44
jQuery: setTimeout
setTimeout( function() { jQuery("#win").hide(1000); }, 3000);
<? if ($condition): ?>
<p>Content</p>
<? elseif ($other_condition): ?>
<p>Other Content</p>
<? else: ?>
<p>Default Content</p>
<? endif; ?>
$coupon_code = 'UNIQUECODE'; // Code
$amount = '10'; // Amount
$discount_type = 'fixed_cart'; // Type: fixed_cart, percent, fixed_product, percent_product
$coupon = array(
'post_title' => $coupon_code,
'post_content' => '',
'post_status' => 'publish',
'post_author' => 1,
'post_type' => 'shop_coupon'
<?php
/**
* Change text strings
*
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
*/
function my_text_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Sale!' :
$translated_text = __( 'Clearance!', 'woocommerce' );
@rolka
rolka / index.html
Created April 15, 2014 23:18 — forked from anonymous/index.html
centering css
<div class="container">
<div class="box">
</div>
</div>
@rolka
rolka / gist:9595980
Created March 17, 2014 08:55
jQuery: resize
$(window).resize(function() {
alert("ola");
});