Skip to content

Instantly share code, notes, and snippets.

View teppeis's full-sized avatar

Teppei Sato teppeis

View GitHub Profile
@teppeis
teppeis / improve-underscore-object.md
Created May 12, 2014 01:30
Improvement of underscore.object()
@teppeis
teppeis / gist:70ab23698929b8891d09
Last active August 29, 2015 14:01
closure-tsタスクリスト
  • closure-libraryのリポジトリからd.tsを分離
  • 出力先を別ディレクトリに指定できるように
  • typescript-spec-md
  • exportはずす
    • exportの意味を調べる
    • 実際にはずす
  • UnionType
  • 中間JSONの分離
  • 整形ば別のpretty系にまかせる?
  • 依存処理
@teppeis
teppeis / install-pymigemo.sh
Created June 4, 2014 10:18
Install cmigemo and pymigemo for Mac OS Marvericks
#!/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
@teppeis
teppeis / rc.py
Created June 4, 2014 10:21
config for percol with migemo
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:
@teppeis
teppeis / InferConsts.md
Last active August 29, 2015 14:02
What's InferConsts of Closure Compiler

InferConstsとは

このコミットで、実質的な定数をうまく推論できるようになった。(現在のmasterではデフォルト有効になっている)

以下のいずれかの条件を満たしたとき、その変数を定数とみなす。

  1. "well-defined"かつ一度しか代入されていない
  2. @const アノテーションが付いている
  3. const キーワードで宣言されている
  4. 命名規約によって定数であることがわかる
@teppeis
teppeis / gist.css
Created September 1, 2014 15:22
gist.github.comとgist@github:enteriseを区別するCSS
.header-logo-wordmark {
color: red;
}
.form-actions button {
color: red;
}
#gists:before {
content: "This is github.com!";
@teppeis
teppeis / google-javascriptguide.xml.diff
Last active August 29, 2015 14:06
Google JavaScript Style GuideのRev. 2.11:2.93 (svn r65:r112) のdiff http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml
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
@teppeis
teppeis / gist:16fcd61d30ee1df65944
Last active August 29, 2015 14:08
効率的なAST tool chainのご提案
@teppeis
teppeis / gist:dac50aa483b5a3b61599
Last active August 29, 2015 14:09
Closure Compiler failure list for es6-table

based on v20141023 result

arrow functions: no line break between params and =>

input

module.exports = function() {
    var f = x
        => 2;
    return f();
};
@teppeis
teppeis / gist:5c6a5ab42dd7d5a9930a
Created November 25, 2014 08:10
BrowserStack browsers
[
{
"browser_version": "11.1",
"device": null,
"browser": "opera",
"os_version": "Mavericks",
"os": "OS X"
},
{
"browser_version": "11.6",