Stay Hungry,Stay Foolish!

摘要: websocket 2011年技术文档 http://www.ibm.com/developerworks/cn/web/1112_huangxa_websocket/index.html 浏览器端接口: https://developer.mozilla.org/en-US/docs/Web/AP 阅读全文
posted @ 2016-09-17 23:36 lightsong 阅读(2381) 评论(0) 推荐(0) 编辑
摘要: 背景 对于OO思想实现的类, 对于某些场景需要屏蔽某些方法, 不让调用。过了这段场景, 就恢复这些类的方法, 可以调用。 例如: 工厂具有开工方法, 但是在晚上不允许开工, 所有在晚上这段时间, 见开工方法屏蔽掉, 到第二天早上八点将此方法恢复。 实现 LOG: >lua -e "io.stdout 阅读全文
posted @ 2016-09-17 19:39 lightsong 阅读(1294) 评论(0) 推荐(0) 编辑
Life Is Short, We Need Ship To Travel