#author("2024-11-09T07:24:34+00:00","default:yoya","yoya")
#author("2024-11-09T08:22:48+00:00","default:yoya","yoya")
- [[LuaJIT]]

* 入門 [#d79a014a]

- Lua(ルア)でHello World!
--  http://simplesandsamples.com/hello.lua.html


* sleep [#i5f9839a]

- How to add a "sleep" or "wait" to my Lua Script?
--  https://stackoverflow.com/questions/17987618/how-to-add-a-sleep-or-wait-to-my-lua-script
 local socket = require('socket')
 socket.sleep(0.2)


 coroutine.sleep(0.2)


* module [#k6dd5431]

- (Nvim) Lua for Javascripters: Module Exports
--  https://teukka.tech/posts/js-to-lua-modules/

 local M = {} -
 function M.deleteDataFile(name)
    ...
 end
 return M

* coroutine [#d3203ae1]

- luaのcoroutine
--  https://qiita.com/umisama/items/59f0cb706ea1ca7bb3ac


* class [#l92567ce]

Lua に class は存在しないので、それっぽいラッパー。

- Tylas11 / XivParty
--  https://github.com/Tylas11/XivParty/blob/master/classes.lua
--  https://github.com/Tylas11/XivParty/blob/master/player.lua
>
local player = classes.class()
>
function player:init(name, id, model)
>
self.name = name

* 配列 [#v29cef89]

- [https://ja.wikibooks.org/wiki/Lua/%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB https://ja.wikibooks.org/wiki/Lua/テーブル]

*. [#fd4a2eed]

- 論理演算子を用いたLuaの慣用表現
--  https://qiita.com/hevo2/items/89d484c067466b24308c

--  Lua > 乱数を使う
---   http://simplesandsamples.com/rand.lua.html

- [[Windower/Lua]] ([[FF11]])