You are here: Home // ライフスタイル // Code – Lua Script Editor – han shengming

Code – Lua Script Editor – han shengming

3月 07, 2023 | コメントは受け付けていません。

han shengming - Code - Lua Script Editor アートワーク Code - Lua Script Editor
han shengming
ジャンル: ライフスタイル
価格: ¥160
リリース日: 2021年1月19日

Code is Lua Editor for iOS. This app is very usefull to edit lua script, and run lua code immediately.

Feature
√ Support Lua code highlight
√ Support run lua code immediately
√ It is very usefull to run some code on mobile phone

Lua Config:
lua 5.4.4
luasocket 3.1.0
LuaSec 1.2.0
json-lua 0.1-4
Lua-cURLv3

Lua-cURLv3 example

local curl = require("cURL")
local json = require("JSON")

local PATH = PATH or ".."
local SSL_CERT_FILE = SSL_CERT_FILE or "/usr/local/share/cacert.pem"

-- HTTP Post
curl.easy()
:setopt_url('https://httpbin.org/post')
:setopt_writefunction(
function(str)
print(str)
local decode = json:decode(str )
print(decode)
end
)
:setopt_httppost(curl.form() -- Lua-cURL guarantee that form will be alive
:add_content("test_content", "some data", {
"MyHeader: SomeValue"
})
)
:setopt{
use_ssl = curl.USESSL_ALL,
cainfo = SSL_CERT_FILE,
}
:perform()
:close()

© © 2023 Code 2

Tags: