mosky的聚會手記
Table of Contents

2011-08-11

來源: 2011-08-11
開始用 vim 的 plugin 也還不滿兩個禮拜,ctags 更是用不到一個禮拜,
只是覺得預設的情況不太好用,所以就做了這個 plugin,真的是野人獻曝了 :P。

http://j.mp/pINvx0

2011-06-30

來源: 2011-06-30
python decorator 的原理

>>> def d(f):
...     def product():
...             return f()*3
...     return product
... 
>>> def f():
...     return 'x'
... 
>>> new_f = d(f)
>>> f()
'x'
>>> new_f()
'xxx'
>>> @d
... def g():
...     return 'y'
... 
>>> g()
'yyy'
>>>
除非特別註明,本頁內容採用以下授權方式: Creative Commons Attribution-ShareAlike 3.0 License