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
SELECT `posts`.`ID`, `posts`.`post_title`, COUNT(`posts`.`post_title`) AS `connections` | |
FROM `wp_posts` AS `posts` | |
INNER JOIN `wp_term_relationships` AS `term_rel` ON (`term_rel`.`object_id` = `posts`.`ID`) | |
INNER JOIN `wp_term_taxonomy` AS `term_tax` ON (`term_tax`.`term_taxonomy_id` = `term_rel`.`term_taxonomy_id`) | |
WHERE `term_rel`.`term_taxonomy_id` IN ( | |
SELECT `term_rel`.`term_taxonomy_id` | |
FROM `wp_term_relationships` AS `term_rel` | |
WHERE `term_rel`.`object_id` = {POST_ID} | |
) | |
AND `term_tax`.`taxonomy` = '{TAXONOMY_NAME}' |
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 Slider() { | |
// private variables | |
var container = slider.addClass('js'); | |
var ul = container.find('ul'); | |
var lis = ul.find('li'); | |
var btnNext = null; | |
var btnPrev = null; | |
var currentSlide = 0; | |
// public variables |
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(function ($) { | |
var $win = $(window); | |
var $scrollPanel = $('#scrollPanel'); | |
var windowTop = 0; | |
var lastDelta = 0; | |
var fixed = false; | |
$win.scroll(function (e) { | |
var newTop = $win.scrollTop(); | |
var delta = newTop - windowTop; |
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
current_branch="$(git rev-parse --abbrev-ref HEAD)"; | |
if [[ $current_branch == 'production' ]]; then | |
find js -name *.js | xargs cat > js/combined.js | |
curl -X POST -s --data-urlencode 'input@js/combined.js' http://javascript-minifier.com/raw > js/combined.min.js | |
rm js/combined.js | |
git commit -a -m "[automated] combined and minified JS" |
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
diff --git a/markdownify/markdownify.php b/markdownify/markdownify.php | |
index e9b43bd..24ddac3 100644 | |
--- a/markdownify/markdownify.php | |
+++ b/markdownify/markdownify.php | |
@@ -816,15 +816,39 @@ class Markdownify { | |
*/ | |
public function handleTag_pre() { | |
if ($this->keepHTML && $this->parser->isStartTag) { | |
- # check if a simple <code> follows | |
- if (!preg_match('#^\s*<code\s*>#Us', $this->parser->html)) { |
OlderNewer