Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
define [ | |
'jquery' | |
'underscore' | |
'backbone' | |
'lib/gui' | |
'models/notification' | |
'views/notification' | |
'vendor/tween' | |
'jquery-ui' |
var body, listener; | |
listener = { | |
handleEvent: function (evt) { | |
return console.log(evt.type); | |
} | |
}; | |
body = document.body; | |
body.addEventListener("click", listener); | |
body.addEventListener("keyup", listener); |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
The following instructions will install Vim with the Ruby interpreter and Command-T. I keep my vim settings under revision control, thus I have chosen to use Git's submodules and Pathogen to manage Command-T. Depending on your preferences, you may want to setup Command-T differently. I recommend reading through the Command-T Readme
sudo apt-get install ruby ruby-dev libncurses5-dev mercurial clone build-essential rake
I chose to compile vim with my system Ruby, 1.8.7. It is important that you use the same version to compile both Vim and Command-T. If your using RVM and you want to do the same, before proceeding you will want to:
rvm use system
This is a Chinese version of https://gist.github.com/1207002/86f48cd3b3b72c85e6293926cf7c730de03b2f08 from lucasfais
⌘T | 前往文件 |
⌘⌃P | 前往项目 |
⌘R | 前往 method |
⌘⇧P | 命令提示 |
/* | |
* matchMedia() polyfill - test whether a CSS media type or media query applies | |
* authors: Scott Jehl, Paul Irish, Nicholas Zakas | |
* Copyright (c) 2010 Filament Group, Inc | |
* MIT license | |
* dev.w3.org/csswg/cssom-view/#dom-window-matchmedia | |
* in Chrome since m10: http://trac.webkit.org/changeset/72552 | |
*/ |