Skip to content

Instantly share code, notes, and snippets.

View dziudek's full-sized avatar

Tomasz Dziuda dziudek

View GitHub Profile
@dziudek
dziudek / gist:05340a5afa3a94ef2291279573652549
Created April 5, 2016 08:10
Get Bitbucket issues list without any unnecessary content
$('.iterable-item').each(function(i, row) {
row = $(row);
row.find('td').each(function(j, cell) {
cell = $(cell);
if(j > 0) {
cell.css('display', 'none');
}
});
});
@dziudek
dziudek / joomla-wrong-timezone-detector
Created December 15, 2014 22:40
SQL query useful when we need to detect users with wrong timezone format (number instead of name or blank string)
SELECT * FROM `#__users` WHERE
(
`params` LIKE('%timezone":"_"%') OR
`params` LIKE('%timezone":"__"%') OR
`params` LIKE('%timezone":"___"%') OR
`params` LIKE('%timezone":"____"%') OR
`params` LIKE('%timezone":"_____"%')
)
AND
`params` NOT LIKE('%timezone":"UTC"%')
@dziudek
dziudek / dabblet.css
Created March 27, 2014 18:37
3D tests
/**
* 3D tests
*/
body {
perspective: 1000;
}
#drawarea {
backface-visibility: visible;
@dziudek
dziudek / dabblet.css
Created January 29, 2014 14:39
Gradient :hover
/**
* Gradient :hover
*/
#test {
position: relative;
width: 640px;
height: 240px;
overflow: hidden;
}
@dziudek
dziudek / .txt
Created January 29, 2014 10:22
HTACCESS - redirect subdomain to subdirectory
RewriteEngine on
RewriteCond %{HTTP_HOST} ^subdomain\.yourdomain\.com
RewriteRule ^(.*)$ http://www\.yourdomain\.com/subdomain/$1 [L]
@dziudek
dziudek / gist:7356737
Created November 7, 2013 15:44
GK News Show Pro .testimonials style
/*
* GK News Show Pro Testimonials style
*/
.testimonials.gk-nsp {
padding: 20px 0;
position: relative;
}
.testimonials .gk-nsp-arts-nav {
bottom: 5px;
position: absolute!important;
@dziudek
dziudek / gist:7344172
Last active December 27, 2015 14:59
GK News Show Pro .news-list style for the Twenty Twelve theme
/*
GK NSP .news-list styl for Twenty Twelve theme
*/
.news-list .gk-nsp-art > span {
background: #333;
color: #fff;
float: left;
font-size: 14px;
margin: 0 18px 0 0;
padding: 10px;
@dziudek
dziudek / dabblet.css
Created October 21, 2013 18:26
Curvy background
/**
* Curvy background
*/
#main {
transform: skewY(10deg);
overflow: hidden
}
#main:hover #bg {
@dziudek
dziudek / dabblet.css
Created October 21, 2013 18:26
Curvy background
/**
* Curvy background
*/
#main {
transform: skewY(10deg);
overflow: hidden
}
#main:hover #bg {
@dziudek
dziudek / dabblet.css
Created October 19, 2013 15:19
Animated dotted lines
/**
* Animated dotted lines
*/
#dotted {
border-top: 3px dotted #aaa;
height: 200px;
transition: all .3s ease-out;
width: 15px;
}