most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
var bt = {}; // to call the functions outside of the jQuery wrapper because OctoPress is a bit of a JS mess. Hey, that rhymes. | |
(function($){ | |
bt = { | |
checkWinWidth: function() { | |
var width = $(window).width(); | |
if (width <= 500) { | |
if (!$('body').hasClass('mobile')) { | |
$('img').each(function(){ | |
var $this = $(this); |
<?php | |
// Your functions.php content | |
function has_children() { | |
global $post; | |
$pages = get_pages('child_of=' . $post->ID); | |
return count($pages); |