
Lua学习
array020
这个作者很懒,什么都没留下…
展开
-
QuickLuaTour翻译流水账(1-10)
-- Example 1 -- First Program.-- Classic hello program.print("hello")-------- Output ------hello-- 例子 1 -- 第一个程序.-- 经典的 hello 程序-- Example 2 -- Comments.-- Single line...原创 2012-06-19 23:27:23 · 109 阅读 · 0 评论 -
QuickLuaTour翻译流水账(11-20)
-- Example 11 -- Numbers.-- Multiple assignment showing different number format.-- Two dots (..) are used to concatenate strings (or a-- string and a number).a,b,c,d,e = 1, 1.123. 1E9, -123...2012-06-20 00:32:33 · 101 阅读 · 0 评论 -
QuickLuaTour翻译流水账(21-30)
-- Example 21 -- repeat until statement.a=0repeat a=a+1 print(a)until a==5------ Output ------12345-- 例子 25 -- repeat until 语句-- Example 22 -- for stateme...2012-06-20 11:02:40 · 121 阅读 · 0 评论 -
QuickLuaTour翻译流水账(31-38)
-- Example 31 --[[ Standard Libraries Lua has standard built-in libraries for common operations in math, string, table, input/output & operating system facilities. External Lib...2012-06-20 12:12:17 · 111 阅读 · 0 评论 -
使用Nginx+Lua进行断点上传的demo
公司有个业务需要优化,场景是手机客户端上传小文件到服务端,需要支持断点上传。现在直接用tomcat直接面对客户端进行网络IO,现在准备把网络IO这块剥离出来,彻底交给Nginx+Lua来处理。理由有如下几点: 1、应用服务器还是乖乖的待在后端做业务就好,底层的网络IO跟具体业务无关,这样使得项目的维护更方便,看起来更清晰。 2、对于底层IO操作,不是java的强项,特别...2012-06-20 21:14:41 · 215 阅读 · 0 评论