この記事はVim Advent Calendar 2012の52日目の記事です。 前回の記事はasion_mさんのフロントエンジニアがちょっと幸せになるかもしれないプラグイン作ってます。でした。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/.gitignore b/.gitignore | |
index ca35be0..a10754b 100644 | |
--- a/.gitignore | |
+++ b/.gitignore | |
@@ -1 +1,2 @@ | |
_site | |
+node_modules/ | |
diff --git a/README.md b/README.md | |
index f77a570..b8b975b 100644 | |
--- a/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ack | |
autoconf | |
bdw-gc | |
cloc | |
cmake | |
ctags | |
gdbm | |
gettext | |
gist | |
git |
JSON.stringifyから呼び出され、モデルのattributes属性のコピーを返します。このメソッドはViewに渡す前に属性値を永続化/シリアライズするために使用されます。実際にはJSON文字列を返すわけではないので、メソッド名はいささか混乱を招くかもしれませんが、JavaScriptのtoJSONとJSON.stringifyもそのように動作します。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"globals": { | |
"jasmine" : false, | |
"spyOn" : false, | |
"it" : false, | |
"describe" : false, | |
"expect" : false, | |
"beforeEach" : false, | |
"waits" : false, | |
"waitsFor" : false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### define function variable before block to avoid code being appended to closing part of JSDoc comment ### | |
cube = '' | |
###* | |
* Funtion to calculate cube of input | |
* @param {number} Number to operate on | |
* @return {number} Cube of input | |
### | |
cube = (x) -> x*x*x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd ~/Library/Application\ Support/Sublime\ Text\ 2/ | |
ln -s ~/Dropbox/Sublime\ Text\ 2/Installed\ Packages ./Installed\ Packages | |
ln -s ~/Dropbox/Sublime\ Text\ 2/Packages ./Packages | |
ln -s ~/Dropbox/Sublime\ Text\ 2/Pristine\ Packages ./Pristine\ Packages | |
# for "Vintage" mode because of no key repeat. | |
defaults write com.sublimetext.2 ApplePressAndHoldEnabled -bool false | |
# for CUI symlink | |
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl |