Skip to content

Instantly share code, notes, and snippets.

View minamorl's full-sized avatar

minamorl minamorl

  • CureApp, Inc
  • Tokyo, Japan
  • 16:31 (UTC +09:00)
View GitHub Profile
@minamorl
minamorl / wtf.py
Last active December 12, 2015 12:51
import inspect
exec("def init{type}: self.__dict__.update(dict((str(x), y) for x, y in zip(inspect.signature(init).parameters.values() , {type})))".format(type=inspect.signature(lambda self, a, b: None)), locals())
types = str(inspect.signature(lambda self, a, b: None))
assert types == "(self, a, b)"
class K: pass
K.__init__ = init
[pytest]
norecursedirs=venv .* _build tmp*
map h previousTab
map l nextTab
map d removeTab
map u restoreTab
map <C-d> scrollPageDown
map <C-u> scrollPageUp