Skicka länk till app

Code - Lua Script Editor


4.4 ( 5824 ratings )
Livsstil Produktivitet
Utvecklare: 胜明 韩
0.99 USD

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()