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
/* | |
* anchor-include pattern for already-functional links that work as a client-side include | |
* Copyright 2011, Scott Jehl, scottjehl.com | |
* Dual licensed under the MIT | |
* Idea from Scott Gonzalez | |
* to use, place attributes on an already-functional anchor pointing to content | |
* that should either replace, or insert before or after that anchor | |
* after the page has loaded | |
* Replace: <a href="..." data-replace="articles/latest/fragment">Latest Articles</a> | |
* Before: <a href="..." data-before="articles/latest/fragment">Latest Articles</a> |
<?php | |
/** | |
* Implements hook_file_url_alter(). | |
* | |
* Make all URLs be protocol relative. | |
* Note: protocol relatice URLs will cause IE7/8 to download stylesheets twice. | |
* @see http://www.stevesouders.com/blog/2010/02/10/5a-missing-schema-double-download/ | |
*/ | |
function custom_file_url_alter(&$url) { |
<?php | |
namespace li3_omniauth; | |
class Consumer extends \lithium\core\StaticObject { | |
/** | |
* Holds an instance of the oauth service class | |
* | |
* @see \li3_oauth\extensions\services\Oauth |
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES; | |
sudo defaults delete /Library/Preferences/com.apple.windowserver DisplayResolutionDisabled; | |
// by the way, you need to logout and log back in for this to take effect. Or at least that's what | |
// Quartz Debug says. Who knows, maybe it's lying? | |
// P.S. Go to [Apple menu --> System Preferences --> Displays --> Display --> Scaled] after logging | |
// back in, and you'll see a bunch of "HiDPI" resolutions in the list to choose from. |
#Mac OS X
git remote add <name> <url>
git remote add upstream [email protected]:central-github-repo-username/sitename.git
I asked the following on Twitter the other day:
Thoughts, anyone? "Seems like there are a million ways to do retina sprites with Compass. What's the best way? #sass #compass" tweet
Specifically, what I wanted to do was to reference an icon once, like so:
.selector { @include the-sprite('once');
/** | |
* EXAMPLE FEATURE UPDATE | |
* Enable and revert the my_new_feature_name feature. | |
*/ | |
function example_update_7001() { | |
// An array of new or changed features; the array keys are feature names, | |
// values are an array of exportable types as seen in a feature's .info file: | |
// features[field][] = node-page-body | |
$features = array( | |
'my_new_feature_name' => array('field', 'variable'), |