Forked from here
A complete cookies reader/writer framework with full unicode support.
This framework is released under the GNU Public License, version 3 or later.
A complete cookies reader/writer framework with full unicode support.
This framework is released under the GNU Public License, version 3 or later.
Filename without spaces: | |
svn st | sed -n 's/^M//p' | xargs svn commit -m "modified" | |
Filename with spaces: | |
svn st | sed -n 's/$/"/; s/^M */"/p' | xargs svn commit -m "modified" |
<?php | |
function paginationFunc() { | |
$paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; // setup pagination | |
$the_query = new WP_Query( array( | |
'post_type' => 'name_of_post_type', // post type custom or native | |
'orderby' => 'date', // how to order | |
'order' => 'DESC', // order ASC or DESC | |
'paged' => $paged, | |
'posts_per_page' => 2) //pages to show | |
); |
// use for patterns: | |
// *gmail.com* | |
// *mail.google.com* | |
// *google.com*mail* | |
window.fluid.dockBadge = ''; | |
setTimeout(updateDockBadge, 3000); | |
setInterval(updateDockBadge, 15000); | |
function updateDockBadge() { |
<?php | |
//get page id's by their slug | |
function id_by_slug($page_slug) { | |
$page = get_page_by_path($page_slug); | |
if ($page): | |
return $page->ID; | |
else: | |
return null; | |
endif; | |
} |
/* CSS Reset, Wordpress Required & Float Clear */ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, | |
dl, dt, dd, ol, ul, li, | |
fieldset, form, label, legend, | |
table, caption, tbody, tfoot, thead, tr, th, td, |
$("a").filter(function () { | |
return this.hostname && this.hostname.replace(/^www\./, '') !== location.hostname.replace(/^www\./, ''); | |
}).each(function () { | |
$(this).attr({ | |
target: "_blank", | |
title: "Visit " + this.href + " (click to open in a new window)" | |
}); | |
}); |
/*Cleafix | |
Use group for semantic purposes | |
*/ | |
.group:before, | |
.group:after { | |
content:""; | |
display:table; | |
} |