Skip to content

Instantly share code, notes, and snippets.

View coldfog's full-sized avatar

Yuyao Feng coldfog

View GitHub Profile
@coldfog
coldfog / MixTouchAdapter.lua
Last active August 29, 2015 14:16
MixTouchAdapter for quick-cocos2d-x touch system and cocos2d-x touch system
--[[
This is an adapter for quick-cocos2d-x touch system and cocos2d-x touch system
Usage: invoke adapt method
adapt(target, withModal)
target: Mixed. the quick obj to adjust
withModal: boolean. If swallow all touch event
@onlytiancai
onlytiancai / python_infrastructure.md
Created October 12, 2012 08:55
python 基础设施讨论贴

python项目通用组件和基础服务

很多公司都大量使用了python,其中有一些开发规范,code guidline, 通用组件,基础框架是可以共用的。

每个公司都自己搞一套, 太浪费人力,我想开一帖和大家讨论一下这些python基础设施的搭建。

原则是我们尽量不重新发明轮子,但开源组件这么多,也要有个挑选的过程和组合使用的过程,在这里讨论一下。

另一方面,有些开源组件虽然强大,但我们不能完全的驾驭它,或只使用其中很少的一部分,我们就可以考虑用python实现一个简单的轮子,可控性更强,最好不要超过300行代码。