johnhind / winsh.lua Goto Github PK
View Code? Open in Web Editor NEWWindows shell scripting with Lua (was Grunt)
License: MIT License
Windows shell scripting with Lua (was Grunt)
License: MIT License
In Winsh2-0.html, "Side-by-side Execution", for the case of a side-by-side directory, the directory name needs the .lua extension:
C:\test\myapp.exe
C:\test\myapp.lua\start.lua
C:\test\myapp.lua\library1.lua
C:\test\myapp.lua\lib\library2.dll
Then executing myapp.exe will load and run myapp.lua\start.lua ...
The calculation of negative indices for the remove method of the List class is incorrect. The code should be changed to:
function _TID:remove(p1, p2)
T.checkmethod(self, _C)
local t = #self + 1
p1 = T.tonumber(p1 or t-1)
if p1 < 0 then p1 = t + p1 end
if p1 < 1 or p1 >= t then error("Remove: index out of range") end
p2 = T.tonumber(p2 or p1)
if p2 < 0 then p2 = t + p2 end
if p2 < p1 then p2 = p1 end
local d = p2 - p1 + 1
for i=p2+1, t-1 do self[i-d] = self[i] end
for i=t-1, t-d, -1 do self[i] = nil end
end
I found yet another bug in list:insert. This is fixed here:
https://github.com/JohnHind/Winsh.lua/blob/master/Winsh/Libraries/LibClass.lua
Pending the next binary release, you can replace this Lua code in the runtimes using a resource editor without the need to recompile.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.