content
stringlengths
5
1.05M
test_run = require('test_run').new() engine = test_run:get_cfg('engine') _ = box.space._session_settings:update('sql_default_engine', {{'=', 2, engine}}) -- Verify that constraints on 'view' option are working. -- box.cfg() -- Create space and view. box.execute("CREATE TABLE t1(a INT, b INT, PRIMARY KEY(a, b));"); b...
Menu = {} Menu.GUI = {} Menu.buttonCount = 0 Menu.selection = 0 Menu.hidden = true MenuTitle = "Menu" function Menu.addButton(name, func,args) local yoffset = 0.3 local xoffset = 0 local xmin = 0.0 local xmax = 0.3 local ymin = 0.05 local ymax = 0.05 Menu.GUI[Menu.buttonCount+1] = {} Menu.GUI[...
-- utilities local _r = {} function _r.fileExists(fname) local fi = io.open(fname) if not fi then return end fi:close() return true end return _r
-- sourced from flib local lib = {} local version_pattern = "%d+" local version_format = "%02d" lib.format_version = function(version, format) if version then format = format or version_format local tbl = {} for v in string.gmatch(version, version_pattern) do tbl[#tbl+1] = string.format(format, v) end ...
local skynet = require "skynet" require "skynet.manager" -- import skynet.register local lobbies = {} local WATCHDOG local command = {} function print_table(t) for k,v in pairs(t) do if type(v) == "table" then print("sub table met.",k,#v) print_table(v) else print(k,v) end end end function command....
local ffi = require("ffi") local bit = require("bit") local MMDB_MODE_MMAP = 1 local MMDB_MODE_MASK = 7 local MMDB_SUCCESS = 0 local MMDB_FILE_OPEN_ERROR = 1 local MMDB_CORRUPT_SEARCH_TREE_ERROR = 2 local MMDB_INVALID_METADATA_ERROR = 3 local MMDB_IO_ERROR = 4 local MMDB_OUT_OF_MEMORY_ERROR = 5 local MMDB_UNKNOWN_DATAB...
-- eval.lua --[[ Experiment 2: Baseline model with the inversion decision. The correct Roman numeral is provided as a feature. --]] -- Other libraries require 'nn' require 'hdf5' --- Neural network --- function make_model(max_index, output_size) -- Embedding sequence local embedding = nn.Sequential() embedding:...
--[[ Bindable Object Abstract class denoting that this object can bind its own values to other objects Streamlined interface almost identical to data.binding ]] local lib local bindable bindable = { bindings = {}, rebind = function(self) for key, value in next, self.bindings do local key, target = value[1], v...
#!/usr/bin/lua -- Basic RIP44-LUA Implementation. (Ver: Alpha) -- Does minimal error checking and tries to keep going on failure. -- Does not support RIPv2 any more than required to handle the packets sent by the main AMRPNet gateway. -- If you are not a 44/8 gateway operator, this is useless to you. Use a proper routi...
local helper = require("thetto.lib.testlib.helper") local thetto = helper.require("thetto") describe("vim/execute source", function() before_each(helper.before_each) after_each(helper.after_each) it("can show command execute output", function() thetto.start("vim/execute", {source_opts = {cmd = "version"}, ...
local M = {} function M.setup() print "Setting up typescript debugger" end return M
--- Mobkit Registration -- -- @topic mobkit return function(def) -- TODO: mobb.log("error", "mob registration with mobkit is not currently supported") end
--[[ Simple_Object_Orientation This file creates a model object (m) and adds to a Transform object (xform) We set the orientation of the transform, which by extension, sets the orientation of all of its children (m) Then the "xform" transform object is added to the root node (RelativeTo.World) ]]-- -- 1) Create ...
-- -- table.lua -- Additions to Lua's built-in table functions. -- Copyright (c) 2002-2008 Jason Perkins and the Premake project -- -- -- Returns true if the table contains the specified value. -- function table.contains(t, value) for _,v in pairs(t) do if (v == value) then return true end end retu...
local lm = require 'luamake' local platform = require 'bee.platform' if platform.OS == 'macOS' then if lm.platform == nil then elseif lm.platform == "darwin-arm64" then lm.target = "arm64-apple-macos11" elseif lm.platform == "darwin-x64" then lm.target = "x86_64-apple-macos10.12" ...
local m, s, o local fs = require "nixio.fs" local uci=require"luci.model.uci".cursor() local sys=require"luci.sys" require("string") require("io") require("table") function gen_template_config() local b local d="" for cnt in io.lines("/tmp/resolv.conf.auto") do b=string.match (cnt,"^[^#]*nameserver%s+([^%s]+)$") ...
require 'torch' require 'shortcut' local LM_Dataset = torch.class('RawLM_Dataset') LM_Dataset.SENT_END = {'###eos###'} function LM_Dataset.createVocab(inputFile, freqCut, ignoreCase, keepFreq) local SENT_END = LM_Dataset.SENT_END local fin = io.open(inputFile, 'r') local wordVector = {} local wordFreq = {} ...
return { new = function(self, nodes) return {} end }
local discordia = require("discordia") local resolver = require("client/resolver") local enums = require("enums") local bit = require("bit") local bor = bit.bor local class = discordia.class local classes = class.classes local intrType = enums.interactionType local Snowflake = classes.Snowflake local messageFlag = enu...
-- The mob will regenerate ~regen_rate hp per second. Can be negative. aurum.mobs.initial_data.regen_rate = 1 / 5 gemai.register_action("aurum_mobs:regen", function(self) local object = self.entity.object local hp_max = object:get_properties().hp_max -- Regen is expressed in absolute HP change, convert to damage. ...
testfiledir = "testfiles/08-bib" testsuppdir = testfiledir .. "/support" checkruns = 3 function runtest_tasks(name) return "bibtex -terse " .. name end
local ffi = require "ffi" require "WTypes" require "WinBase" local Kernel32 = require "Kernel32" ffi.cdef[[ struct IODevice { HANDLE Handle; }; ]] local IODevice = ffi.typeof("struct IODevice") local IODevice_mt = { __gc = function(self) end, __index = { CancelIo = function(self) end, Lock = functi...
-- match(.*(clang-tidy).*) ------------------------------------------------------------------------------- -- Copyright (c) 2021 Marcus Geelnard -- -- This software is provided 'as-is', without any express or implied warranty. -- In no event will the authors be held liable for any damages arising from the -- use of th...
require 'cairo' local cpu_rings = require 'lua/rings/cpu' local mem_rings = require 'lua/rings/mem' local io_rings = require 'lua/rings/io' local net_rings = require 'lua/rings/net' local function draw_rings(display) cpu_rings.draw(display) mem_rings.draw(display) io_rings.draw(display) net_rings.draw(display...
-- Grid manager local Grid = { margin = {0,0}, resolution = { ['3008x1692'] = '6x4', ['2560x1440'] = '6x4', ['1920x1200'] = '6x4', ['1440x900'] = '4x2', }, animationDuration = 0, } function Grid:init() for r, g in pairs(self.resolution) do hs.grid.setGrid(g, r) end hs.grid....
-- Copyright (C) by Jianhao Dai (Toruneko) local ffi = require "ffi" local bit = require "bit" local band = bit.band local ffi_new = ffi.new local ffi_str = ffi.string local C = ffi.C local tab_concat = table.concat local _M = { _VERSION = '0.0.1' } ffi.cdef [[ unsigned long ERR_get_error(void); const char *ERR_reas...
------------------------------------------------- -- Spotify Widget for Awesome Window Manager -- Shows currently playing song on Spotify for Linux client -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/spotify-widget -- @author Pavel Makhov -- @copyright 2018 Pav...
-- -- Menu -- local menu = { active = 1, coverimg = false, } function menu.done() end function menu.load() menu.logo = love.graphics.newImage("assets/logo.png") end function menu.update(dt) end function menu.draw(xp) love.graphics.pushColor() love.graphics.draw(menu.logo, 78, 10) love.gra...
width = 960 height = 640 local can_u_find_me = "haha"
return { GLFW = GLFW.const }
test.open('words.txt') local lineno = test.lineno local colno = test.colno local assertEq = test.assertEq test.key('c', 'j', 'x', 'y', 'z', 'escape') assertEq(lineno(), 0) assertEq(colno(), 2) assertEq(buffer:get_line(1), 'xyz\n') assertEq(buffer:get_line(2), 'some miscellaneous text')
local class = require 'lulz.types.class' local fn = require 'lulz.functional' local list = require 'lulz.collections.list' local delegate = class { __name__ = 'delegate', __init__ = function(self, arg1, arg2) self._callable = arg2 == nil and arg1 or fn.bind(arg2, arg1) end, __call = function(self, ...) ...
local iwinfo = require 'iwinfo' local M = {} setmetatable(M, { __index = iwinfo }) M.info = function(device) local iwtype = iwinfo.type(device) if not iwtype then error("Not support") end return setmetatable({}, { __index = function(t, k) return iwinfo[iwtype][k] and...
-- //////////////////////////////////// -- // MYSQL // -- //////////////////////////////////// sqlUsername = exports.mysql:getMySQLUsername() sqlPassword = exports.mysql:getMySQLPassword() sqlDB = exports.mysql:getMySQLDBName() sqlHost = exports.mysql:getMySQLHost() sqlPort = exports.mysql:getMySQLPort()...
-- calls a batch file "__Process Legends Exports" in the DF folder os.execute([[start cmd /c "__Process Legends Exports"]])
#!/usr/bin/env gt --[[ Author: Sascha Steinbiss <ss34@sanger.ac.uk> Copyright (c) 2014-2016 Genome Research Ltd Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in a...
local source, offset, len, errordata, path, file local gproclib = {} _G.gproclib = gproclib local xpcall = xpcall local function initVars(_source) source = _source offset = 1 len = #source errordata = {} end local function char(_offset) if _offset == nil then return source:sub(offset...
-- =========================================================================== -- Civ6 -- Root context for ingame (aka: All-the-things) -- =========================================================================== include("LocalPlayerActionSupport"); include("InputSupport"); -- ======================================...
local ModelOpts = {} function ModelOpts.getOpts() local cmd = torch.CmdLine() cmd:text('====== Encoder-Decoder LSTM ======') cmd:option('--seed', 123, 'random seed') cmd:option('--model', 'EncDec', 'model options: currently only support EncDec and EncDecA') cmd:option('--attention', 'dot', 'attention type: ...
local opcodeCallbacks = {} local extendedCallbacks = {} local extendedJSONCallbacks = {} local extendedJSONData = {} local maxPacketSize = 65000 function ProtocolGame:onOpcode(opcode, msg) for i, callback in pairs(opcodeCallbacks) do if i == opcode then callback(self, msg) return tr...
--- -- Provide ssl function in lua. -- -- @module ssl -- @usage -- hamc = require('openssl').ssl -- do -- define module function --- create ssl_ctx object, which mapping to SSL_CTX in openssl. -- @tparam string protocol support 'SSLv3', 'SSLv23', 'SSLv2', 'TSLv1', 'TSLv1_1','TSLv1_2','DTLSv1', and can be...
ys = ys or {} slot1 = ys.Battle.BattleConst ys.Battle.BattleSkillSummon = class("BattleSkillSummon", ys.Battle.BattleSkillEffect) ys.Battle.BattleSkillSummon.__name = "BattleSkillSummon" ys.Battle.BattleSkillSummon.Ctor = function (slot0, slot1) slot0.super.Ctor(slot0, slot1, lv) slot0._spawnData = slot0._tempData....
local Prop = {} Prop.Name = "Subs Farm Shack" Prop.Cat = "House" Prop.Price = 150 Prop.Doors = { Vector( 11844, -11366, -1664.75 ), } GM.Property:Register( Prop )
-- Start or stop resource by name local function setResourceRunning(resourceName, startOrStop) local resource = Resource.getFromName(resourceName) if not resource then return false, "Resource not found" end if startOrStop then resource:start() if resource.state == "running" then ...
-- Based on https://github.com/MoMEMta/MoMEMta/blob/v1.0.1/examples/WW_fullyleptonic.lua -- Register inputs local electron = declare_input("electron") local muon = declare_input("muon") USE_TF = true parameters = { energy = 13000., W_mass = 80.419002, W_width = 2.047600, } cuba = { relative_accuracy ...
SanieUI = {} SanieUI.sellGreys = true SanieUI.autoRepair = false SanieUI.selfRepairPct = 0.05 -- Only use self-funded repair automatically if it costs less than this pct of total wealth SanieUI.debug = true
local a, b, c = f() b, c = "", nil
-- To test LuaTerminal module -- package.path = package.path..";./src/?.lua" -- For Zerobrane package.path = package.path..";./../src/?.lua" rt = require("LuaTerminalRemote") print("Try Connecting") while(not rt.tryConnect()) do end print("Connected! Please type stuff (empty line to stop):") l = io.read() while l ...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
return {'jozef','jozef','jozias','jozefien','jozeph','jozien','jozina','jozua','joziasse','jozefs','jozefs','jozefiens','jozephs','jozias','joziens','jozinas','jozuas'}
local val = redis.call('get', KEYS[1]) if val == false then redis.call('SETEX', KEYS[1], ARGV[1], ARGV[2]) return true end return false
local class = require 'llae.class' local Bounds = class(nil,'geom.Bounds') function Bounds:_init( ) end function Bounds:copy( ) local r = Bounds.new() r._min_x = self._min_x r._min_y = self._min_y r._max_x = self._max_x r._max_y = self._max_y return r end function Bounds:flip_x( ) self._min_x,self._max_...
local card = { [1] = {ID=1,name="男主",picture="zjJK.png",head="card_1.png",fightingPicture=1,level=1,maxLevel=100,breakthroughNumber=0,breakthroughEffect=0,quality=0,occupation=10,qualifications=0,script=0,athlete=0,club=0,salePrice=0,eatExp=0,eatLevelExp=0,hp=0,atk=0,def=0,magic=0,magicDef=0,atkResistance=0,magicResist...
ts_skins.storage_get = function(key, default) local value = ts_skins.storage:get_string(key) if value and value ~= "" then return value else return default end end function ts_skins.get_skin_tone(name) return ts_skins.storage_get(name.."_skin_tone", "#eeb479") end function ts_skins.set_skin_tone(name, color)...
--[[ backwards-Euler integrator based on GMRES, easily swappable for any other OpenCL krylov solver of your choice (found in solver.cl.*) --]] local ffi = require 'ffi' local ig = require 'ffi.imgui' local class = require 'ext.class' local math = require 'ext.math' local tooltip = require 'tooltip' local Integrator = ...
local sx, sy = guiGetScreenSize() localPlayer = getLocalPlayer() local visible = false local key = "F6" local neonname = { [1] = "Red Neon", [2] = "Blue Neon", [3] = "Green Neon", [4] = "Yellow Neon", [5] = "Pink Neon", [6] = "White Neon", [7] = "Reset" } local idModel = { [1] = 14399, [2] = 14400, [3] = 14401, [4] =...
--- Turbo.lua Unit test -- -- Copyright 2013 John Abrahamsen -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by appl...
local _, T = ... local SpellInfo = T.KnownSpells local band, bor, floor = bit.band, bit.bor, math.floor local f32_ne, f32_perc, f32_pim, f32_fpim do local frexp, lt = math.frexp, { [-80]=-0xcccccd*2^-24, [-60]=-0x99999a*2^-24, [-40]=-0xcccccd*2^-25, [-30]=-0x99999a*2^-25, [-20]=-0xcccccd*2^-26, [-10]=-0xc...
--[[ abc ]] -- --[[a]]--[[ b ]] --[[c]] --
function orient2d(a,b,c) return (b.x-a.x)*(c.z-a.z) - (b.z-a.z)*(c.x-a.x) end function rasterizeFace(v0,v1,v2,img,channel,valmod) local minx=math.min(v0.x,v1.x,v2.x) local maxx=math.max(v0.x,v1.x,v2.x) local minz=math.min(v0.z,v1.z,v2.z) local maxz=math.max(v0.z,v1.z,v2.z) minx=math.floor(math.max(minx,0)) ma...
return {'fez','fezelen','fez','fezzan','fezel','fezelde','fezelden','fezelt','fezzen'}
local M = {} local VoxelData = require(game.ServerStorage.Scripts.VoxelData) function M:New(blockName,isSolid,backTexture,frontTexture,topTexture,bottomTexture,rightTexture,leftTexture) local meta = {} meta.BlockName = blockName meta.backFaceTexture = backTexture meta.frontFaceTexture = frontTexture meta.topFaceT...
registerNpc(211, { walk_speed = 450, run_speed = 750, scale = 360, r_weapon = 0, l_weapon = 0, level = 70, hp = 182, attack = 387, hit = 214, def = 266, res = 191, avoid ...
--- === MountedVolumes === --- --- Displays a list of mounted volumes and a pie chart for each indicating free space on the desktop --- --- Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/MountedVolumes.spoon.zip -- local logger = require("hs.logger") local canvas = require("hs.canvas") local stex...
--- --- ColaFramework --- Copyright © 2018-2049 ColaFramework 马三小伙儿 --- NotifyId 事件声明的总集合 --- local NotifyId = {} NotifyId.Common = require "Modules.Common.NotifyId" NotifyId.UiEventId = require "Modules.Common.EventId" return NotifyId
---------------------------------------------------------------------------------------------------- -- It is the item class ListBox. -- Used from the ListBox. -- -- <h4>Extends:</h4> -- <ul> -- <li><a href="flower.widget.TextBox.html">TextBox</a><l/i> -- </ul> -- -- @author Makoto -- @release V3.0.0 -----...
local ngx = require("ngx") ngx.say('hello')
reclusive_cavern_spider = Creature:new { objectName = "@mob/creature_names:cave_gaping_spider_recluse", socialGroup = "spider_nightsister", faction = "spider_nightsister", level = 46, chanceHit = 0.46, damageMin = 510, damageMax = 730, baseXp = 4552, baseHAM = 11000, baseHAMmax = 12000, armor = 1, resists =...
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] -- ####################################### -- ## Project: HUD...
-- Copyright (c) 2019 teverse.com -- select.lua local selectionController = {} selectionController.selectable = true local propertyEditor = require("tevgit:create/controllers/propertyEditor.lua") local lights = require("tevgit:create/controllers/lights.lua") selectionController.boundingBox = engine.construct("blo...
-- See LICENSE for terms local mod_QuarterPoints -- fired when settings are changed/init local function ModOptions(id) -- id is from ApplyModOptions if id and id ~= CurrentModId then return end mod_QuarterPoints = CurrentModOptions:GetProperty("QuarterPoints") end -- load default/saved settings OnMsg.ModsReloa...
local ui = script.Parent local Client = ui.Parent local Common = game.ReplicatedStorage.Pioneers.Common local Roact = require(game.ReplicatedStorage.Roact) local SoundManager = require(Client.SoundManager) local Label = require(ui.Label) local Unit = require(Common.Unit) local Resource = require(Common.Resourc...
-- Copyright 2019 Xlab -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing...
------------------------------------------------------------------------------- -- Spine Runtimes License Agreement -- Last updated January 1, 2020. Replaces all prior versions. -- -- Copyright (c) 2013-2020, Esoteric Software LLC -- -- Integration of the Spine Runtimes into software or otherwise creating -- derivative...
function getNA3Actions(no) if(no < 0)then return {}; elseif(no == 0)then return {'136','982','193530','19574','34026','120679','131894','53209','120360','201430','193455','2643','34477'}; elseif(no == 1)then return {'131894','19434','120360','136','34477','982'}; elseif(no == 2)then return {'136','9...
local guide = require 'parser.guide' local await = require "await" ---@type vm local vm = require 'vm.vm' local files = require 'files' local util = require 'utility' local config = require 'config' local ws = require 'workspace' local function getGlobalsOfFile(uri) if not files.exists(uri) the...
-- You can define attributes in the attributes/ folder. The unique ID of the attribute will be the same as the name of the file. ATTRIBUTE.name = "Maintenance" ATTRIBUTE.description = "Your ability to repair armors."
-- This file is dedicated to providing typing info using EmmyLua -- and is only used when the types can no be spesified in existing code ---@class ParseResult local ParseResult = { ---@type YAST_Program|nil ast=nil, ---@type number totalParseTime=nil } ---@class YAST_Program local YAST_Program = { type="program...
-- Kong resolver core-plugin -- -- This core-plugin is executed before any other, and allows to map a Host header -- to an API added to Kong. If the API was found, it will set the $backend_url variable -- allowing nginx to proxy the request as defined in the nginx configuration. -- -- Executions: 'access', 'header_filt...
object_tangible_furniture_flooring_tile_frn_flooring_tile_s43 = object_tangible_furniture_flooring_tile_shared_frn_flooring_tile_s43:new { } ObjectTemplates:addTemplate(object_tangible_furniture_flooring_tile_frn_flooring_tile_s43, "object/tangible/furniture/flooring/tile/frn_flooring_tile_s43.iff")
-- ____ ______ -- / __ \____ ____ __ ___ ______ / / __/ -- / /_/ / __ \/ __ \/ / / / | /| / / __ \/ / /_ -- / ____/ /_/ / / / / /_/ /| |/ |/ / /_/ / / __/ --/_/ \____/_/ /_/\__, / |__/|__/\____/_/_/ -- /____/ -- Commented config.lua by...
-- 文件名为 module.lua -- 定义一个名为 module 的模块 module = {} -- 定义一个常量 module.constant = "这是一个常量" -- 定义一个函数 function module.func1() io.write("这是一个公有函数!\n") end local function func2() print("这是一个私有函数!") end function module.func3() func2() end return module
local api = vim.api local cmd = vim.cmd local g = vim.g local opt = vim.opt --- install paq-nvim local install_path = vim.fn.stdpath 'data' .. '/site/pack/paqs/start/paq-nvim' if vim.fn.empty(vim.fn.glob(install_path)) > 0 then vim.fn.execute('!git clone --depth=1 https://github.com/savq/paq-nvim.git ' .. install_pa...
object_tangible_deed_vehicle_deed_walker_at_rt_camo = object_tangible_deed_vehicle_deed_shared_walker_at_rt_camo:new { } ObjectTemplates:addTemplate(object_tangible_deed_vehicle_deed_walker_at_rt_camo, "object/tangible/deed/vehicle_deed/walker_at_rt_camo.iff")
-- luacheck: read_globals hs, globals kit vhs hs.autoLaunch(true) hs.consoleOnTop(true) hs.dockIcon(false) hs.menuIcon(false) kit, vhs = require 'kit', require 'vhs' local alpha = 0.95 hs.console.alpha(alpha) hs.console.behaviorAsLabels { 'moveToActiveSpace' } hs.window.animationDuration = 0 local hyper = { 'ctrl...
-- settings.lua -- Defines configuration settings for SafetyNukeLauncher. data:extend({ -- Minimum range for the safety nuke launcher. { type = "int-setting", name = "safety-nuke-launcher-min-range", setting_type = "startup", -- See README.md for discussion of this value. default_value = 30, ...
-- dbase.lua -- Created by wugd -- 保存数据的基类 -- 创建类模板 DBASE_TDCLS = tdcls(); DBASE_TDCLS.name = "DBASE_TDCLS"; -- 构造函数 function DBASE_TDCLS:create() self.dbase = {}; self.temp_dbase = {}; self.change_list = {}; end -- 定义公共接口,按照字母顺序排序 -- 吸收传入的 dbase 数据 function DBASE_TDCLS:absorb_dbase(data) self.chan...
//________________________________ // // NS2 Single-Player Mod // Made by JimWest, 2012 // //________________________________ Script.Load("lua/Class.lua") Script.Load("lua/Player.lua") // original network variables are not deleted local networkVars = { gravityTrigger = "entityid", // add this to all p...
return { "_preload.lua", "cuda.lua", -- "cuda_nvcc.lua", "cuda_vstudio.lua", }
require("ts3init") -- Required for ts3RegisterModule require("ts3defs") require("ts3errors") require("startaway/events") local MODULE_NAME = "Start Away" local registeredEvents = { onConnectStatusChangeEvent = startaway_events.onConnectStatusChangeEvent } ts3RegisterModule(MODULE_NAME, registeredEvents...
---@meta ---@class cc.Animation3D :cc.Ref local Animation3D={ } cc.Animation3D=Animation3D ---* init Animation3D with file name and animation name ---@param filename string ---@param animationName string ---@return boolean function Animation3D:initWithFile (filename,animationName) end ---* init Animation3D from bu...
--[[ We can delimit literal strings also by matching double square brackets, as we do with long comments. Literals in this bracketed form can run for several lines and do not interpret escape sequences. Moreover, this form ignores the first character of the string when this character is a newline. This form is e...
local meta meta = { __index = function(t,k) return setmetatable({t[1]..'.'..k}, meta) end, __concat = function(t1, t2) return setmetatable({t1[1]..'..'..t2[1]}, meta) end, __div = function(t1, t2) return setmetatable({t1[1]..'/'..t2[1]}, meta) end, __tostring = function(t) return t[1] end, } _ = setmetat...
return function() describe("Enums.new()", function() it("should throw", function() expect(function() return Enums.new( "TestEnum", { [20] = Vector3.new() } ) end).to.th...
local NeededAttempts = 0 local SucceededAttempts = 0 local FailedAttemps = 0 local cokepicking = false local cokeprocess = false local nearDealer = false DrawText3Ds = function(x, y, z, text) SetTextScale(0.35, 0.35) SetTextFont(4) SetTextProportional(1) SetTextColour(255, 255, 255, 215) SetTextEntry(...
local width, height = gpu.width, gpu.height local noiseIm = image.newImage(width + 16, height) for j=1, height do for i=1, width + 16 do noiseIm:drawPixel(i - 1, j - 1, math.floor((i + j)/2) % 7 + 8) end end noiseIm:flush() for i=1, math.huge do gpu.clear() noiseIm:render((math.floor(i / 2) % 14) - 13, 0...
-- function table.map(list, fun) local tmp = {} for i, v in ipairs(list) do tmp[i] = fun(v, i) end return tmp end table.collect = table.map function table.reduce(list, init, fun) fun = fun or init local index = 1 if type(init) == 'function' then init = list[1] inde...
Item { resref = "fab_barb_armor", -- Properties properties = { ArmorClass(10), AbilityScore(ABILITY_STRENGTH, 4), AbilityScore(ABILITY_CONSTITUTION, 6), DamageImmunity(DAMAGE_INDEX_DIVINE, 10), DamageImmunity(DAMAGE_INDEX_MAGICAL, 10), DamageImmunity(DAMAGE_INDEX_NEGATIVE, 10), Damag...
local options = {script.Parent.Minigame1, script.Parent.Minigame2, script.Parent.Minigame3} local currentVote for _, option in ipairs (options) do option.MouseButton1Click:connect(function() if not currentVote and not option.Voted.Value then option.Voted.Value = true game.Workspace["Votes" ..tostring(option...
local io = require "vstruct.io" local function argv2str(argv) local args = {} for i=1,argv.n do args[i] = tostring(argv[i]) end return table.concat(args, ", ") end return function(name, args) local argv = { n = 0 } if args then local args = args.."," loca...