This file contains hidden or 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/bash | |
# | |
# Check package.json and npm install after git checkout. | |
# Put this to .git/hooks/post-checkout | |
# | |
PREVIOUS_HEAD=$1 | |
NEW_HEAD=$2 | |
BRANCH_SWITCH=$3 |
Underscore.js http://underscorejs.org/#object (and lodash.zipObject too)
var arr = ['foo', 'bar', 'baz'];
_.object(arr);
// => {foo: true, bar: true, baz: true}
_.object(arr, 1);
// => {foo: 1, bar: 1, baz: 1}
- closure-libraryのリポジトリからd.tsを分離
- 出力先を別ディレクトリに指定できるように
- typescript-spec-md
- exportはずす
- exportの意味を調べる
- 実際にはずす
- UnionType
- 中間JSONの分離
- 整形ば別のpretty系にまかせる?
- 依存処理
This file contains hidden or 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 | |
# Update MacOSX 10.9.3 and Xcode 5.1.1 | |
# http://stackoverflow.com/questions/22313407/clang-error-unknown-argument-mno-fused-madd-python-package-installation-fa | |
brew install cmigemo | |
curl -O http://www.atzm.org/etc/files/pymigemo/pymigemo-0.4.tar.gz | |
# sudo easy_install pip | |
sudo LDFLAGS="-L/usr/local/Cellar/cmigemo/20110227/lib" CFLAGS="-I/usr/local/Cellar/cmigemo/20110227/include" pip install pymigemo-0.4.tar.gz |
This file contains hidden or 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
import sys, commands | |
from percol.command import SelectorCommand | |
from percol.key import SPECIAL_KEYS | |
from percol.finder import FinderMultiQueryMigemo, FinderMultiQueryRegex | |
## prompt | |
# Case Insensitive / Match Method に応じてプロンプトに表示 | |
def dynamic_prompt(): | |
prompt = ur"" | |
if percol.model.finder.__class__ == FinderMultiQueryMigemo: |
このコミットで、実質的な定数をうまく推論できるようになった。(現在のmasterではデフォルト有効になっている)
以下のいずれかの条件を満たしたとき、その変数を定数とみなす。
- "well-defined"かつ一度しか代入されていない
- @const アノテーションが付いている
- const キーワードで宣言されている
- 命名規約によって定数であることがわかる
This file contains hidden or 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
.header-logo-wordmark { | |
color: red; | |
} | |
.form-actions button { | |
color: red; | |
} | |
#gists:before { | |
content: "This is github.com!"; |
This file contains hidden or 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
Index: javascriptguide.xml | |
=================================================================== | |
--- javascriptguide.xml (リビジョン 65) | |
+++ javascriptguide.xml (リビジョン 138) | |
@@ -3,14 +3,14 @@ | |
<GUIDE title="Google JavaScript Style Guide"> | |
<p class="revision"> | |
- Revision 2.11 | |
+ Revision 2.93 |