Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
// ---------------------------------------------------------- | |
// A short snippet for detecting versions of IE in JavaScript | |
// without resorting to user-agent sniffing | |
// ---------------------------------------------------------- | |
// If you're not in IE (or IE version is less than 5) then: | |
// ie === undefined | |
// If you're in IE (>=5) then you can determine which version: | |
// ie === 7; // IE7 | |
// Thus, to detect IE: | |
// if (ie) {} |
<!-- Mobile meta & links --> | |
<!-- Reference | |
Custom Icon and Image Creation Guidelines: | |
http://developer.apple.com/library/safari/#documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html | |
Configuring Web Applications: | |
http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safariwebcontent/configuringwebapplications/configuringwebapplications.html |
### Starting from a fresh CentOS 6 or newer Linode | |
### Enable the native kernel to boot from pvgrub | |
### It will autoconfigure itself with each yum update. | |
### This is adapted from a previous script for CentOS 5.5 found here: | |
### http://www.linode.com/docs/assets/542-centos5-native-kernel-selinux-enforcing.sh | |
### Provided via the linode wiki | |
### https://www.linode.com/docs/tools-reference/custom-kernels-distros/run-a-distributionsupplied-kernel-with-pvgrub#centos-5 | |
### Provided without warranty, although since it should only be run | |
### on first box build if your box gets broken simply rebuild it |
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. |
/* | |
@Name: V2EX reply pusher on HTML5 notification API | |
@URL: http://hzlzh.github.com/project/v2ex-notification/ | |
@Twitter: @hzlzh | |
*/ | |
// notification close delay time | |
var AUTO_CLOSE_DELAY_SECONDS = 6, updated_time = '', | |
refresh_time = 5, | |
V2EX_RSS = $('.sll').val(); |
/** | |
* @import lib/oz.js | |
* @import lib/jquery.js | |
* @import mod/event.js | |
* @import mod/lang.js | |
*/ | |
define("mod/storageclass", ["lib/jquery", "mod/event", "mod/lang"], function($, Event, _){ | |
var fnQueue = _.fnQueue; | |
/** |