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
sub, sup { | |
/* Specified in % so that the sup/sup is the | |
right size relative to the surrounding text */ | |
font-size: 75%; | |
/* Zero out the line-height so that it doesn't | |
interfere with the positioning that follows */ | |
line-height: 0; | |
/* Where the magic happens: makes all browsers position |
jQuery.extend({ | |
parseQuerystring: function(){ | |
var nvpair = {}; | |
var qs = window.location.search.replace('?', ''); | |
var pairs = decodeURI(qs).split('&'); | |
$.each(pairs, function(i, v){ | |
var pair = v.split('='); | |
var key = pair[0], value = pair[1]; | |
if(key in nvpair){ | |
if(!$.isArray(nvpair[key])){ nvpair[key] = $.makeArray(nvpair[key]);} |
#Mac OS X
if ($_SERVER['REMOTE_ADDR']=='127.0.0.1') { | |
define('WP_ENV', 'local'); | |
} elseif ($_SERVER['HTTP_HOST']=='develop.project.com') { | |
define('WP_ENV', 'develop'); | |
} elseif ($_SERVER['HTTP_HOST']=='master.project.com') { | |
define('WP_ENV', 'develop'); | |
} else { | |
define('WP_ENV', 'production'); | |
} |