This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scorpio "Test" (function(_ENV) | |
function FillPolygon(points) | |
-- Calc the center point | |
local n = #points | |
if n < 3 then return end | |
local cx, cy = 0, 0 | |
for i = 1, n do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "PLoop" (function(_ENV) | |
-- Declare the namespace | |
_G.Defold = namespace "Defold" | |
-- Register it as global, so can be easily accessed | |
Environment.RegisterGlobalNamespace(Defold) | |
-- Define the base script class | |
__Sealed__() | |
class "Script" (function(_ENV) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pid logs/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
lua_shared_dict plbr_session_storage 10m; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "PLoop" | |
require "PLoop.System.UnitTest" | |
-- Function defintion in _G | |
function UnitName() | |
return "player" | |
end | |
-- Define an interceptor | |
PLoop(function(_ENV) |
OlderNewer