I'm now initializing studies of the Lua programming language, but I'm having a hard time, when I make a program in c to compile the algorithm in the terminal I write:
**gcc nome-do-programa.c** and then put **./a.out**...
I have the following code that passes a php array to JS:
var js_array_date1 = [<?php echo '"'.implode('","', $newarray_date1).'"' ?>];
My problem is how can I do this in LUA. Passing an LUA array to JS, I know I have to use table.c...
I'm watching this tutorial about creating a game and I came across something I did not understand about it of the language Lua.
There is an excerpt of the code where the following expression exists:
ents.objects[#ents.objects]
What doe...
I have this code that calculates in 1 second in 1 second between a certain time and then insert into a table. Instead of calculating every 1 second, how can I calculate, for example, every 5 seconds?
for y = horaInicial, horaFinal-1 do
hor...
I have a table in Lua like this:
myTable={
one = {a=1, b=2, c=3},
two = {a=4, b=2, c=1}
}
The file has already been loaded, how do I read the table data through C ++?
I'm trying to replace within a tag?
EX:
mystr = '<html><head></head><body><p>Aqui meu texto</p></body></html>'
mystr = mystr:gsub('<.+>', '')
print(mystr)
I would like it to return:
Aq...
I have a file that I want to read only a few lines, not all lines. I get by GET the lines I want to read, which are numbers. I can only read the entire file.
local inicio = GET["inicio"]
local fim = GET["fim"]
local f = io.open(ficheiro, "r" )...