This file contains 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
// No Security | |
{ | |
"rules": { | |
".read": true, | |
".write": true | |
} | |
} |
This file contains 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
local function getOS() | |
local raw_os_name, raw_arch_name = '', '' | |
-- LuaJIT shortcut | |
if jit and jit.os and jit.arch then | |
raw_os_name = jit.os | |
raw_arch_name = jit.arch | |
else | |
-- is popen supported? | |
local popen_status, popen_result = pcall(io.popen, "") |
This file contains 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
// Custom Helper function for ExtendScript (Adobe CEP) created as an alternative since JavaScript Object(keys) method does not work | |
var getKeysWithoutObjectKeysSupport = function(associativeArrayObject) { | |
var arrayWithKeys=[], associativeArrayObject; | |
for (key in associativeArrayObject) { | |
// Avoid returning these keys from the Associative Array that are stored in it for some reason | |
if (key !== undefined && key !== "toJSONString" && key !== "parseJSON" ) { | |
arrayWithKeys.push(key); | |
} | |
} |