content
stringlengths
5
1.05M
#!/usr/bin/env tarantool require('console').listen(os.getenv('ADMIN')) box.cfg({ listen = os.getenv('LISTEN'), iproto_threads = tonumber(arg[1]), })
local typedFunction = require(game:GetService("ReplicatedStorage"):WaitForChild("typedFunction")) return typedFunction({ "Sunshine", "function", "number" }, function(Sunshine, system, index) Sunshine.systems[index] = system end)
local MAJOR, MINOR = "Holdem:Card", 2 -- Get a reference to the package information if any local APkg = Apollo.GetPackage(MAJOR) -- If there was an older version loaded we need to see if this is newer if APkg and (APkg.nVersion or 0) >= MINOR then return -- no upgrade needed end -- Set a reference to the actual packa...
-- Path of Building -- -- Class: Item Slot -- Item Slot control, extends the basic dropdown control. -- --local launch, main = ... local pairs = pairs local t_insert = table.insert local m_min = math.min local typeLabel = { { label = "主手", slotName = "Weapon 1" }, { label = "副手", slotName = "Weapon 2" }, { label = ...
the_curse_of_agony_everlasting_curse = class({}) LinkLuaModifier( 'the_curse_of_agony_everlasting_curse_modifier', 'encounters/the_curse_of_agony/the_curse_of_agony_everlasting_curse_modifier', LUA_MODIFIER_MOTION_NONE ) function the_curse_of_agony_everlasting_curse:OnSpellStart() local victim = GetRandomHeroEntit...
-- Do not edit! This file was generated by blocks/signal/singlepolelowpassfilter_spec.py local radio = require('radio') local jigs = require('tests.jigs') jigs.TestBlock(radio.SinglepoleLowpassFilterBlock, { { desc = "1e-2 cutoff, 256 Float32 input, 256 Float32 output", args = {0.01}, inpu...
bt_sounds = {} bt_sounds.wood_sounds = {} bt_sounds.wood_sounds.footstep = {name = "wood_footstep", gain = 0.75} bt_sounds.wood_sounds.dug = {name = "wood_dug", gain = 0.25} bt_sounds.wood_sounds.dig = {name = "wood_dig", gain = 0.5} bt_sounds.wood_sounds.place = {name = "wood_place", gain = 1.0} bt_sounds.stone_soun...
Item.new("poison", "Poison", "")
local _, ns = ... local B, C, L, DB, P = unpack(ns) local S = P:GetModule("Skins") -------------------------- -- Credit: ElvUI_WindTools -------------------------- function S:Myslot() local Myslot = LibStub("Myslot-5.0", true) if not Myslot then return end local frame = Myslot.MainFrame B.StripTextures(frame) B.S...
ped = PlayerPedID() Citizen.CreateThread(function() SetPlayerHealthRechargeMultiplier(ped, 0.0) SetPedSuffersCriticalHits(ped, true) if IsControlPressed(0, 25) then DisableControlAction(0, 22, true) -- Combat Rolling end local isGunASniper = false while true do Citizen.Wait(0) local selectedGu...
local ScrollViewCell = import("..ui.ScrollViewCell"); local ChapterListCell = class("ChapterListCell", ScrollViewCell); function ChapterListCell:ctor(size, begin_index, end_index, datatable) local bgImage = "#button_background.png"; local start_pos_x = display.cx - 290; -- iPhone -- local start_pos_y = 80; ...
#! /usr/bin/luajit --[[ run.lua usage - Run with no arguments to run unit tests and generate coverage reports. - Run with one argument to only test and generate coverage reports for files where the argument is a substring of the file name. ]] local STATS_FILE_NAME = "luacov.stats.out" local REPORT_FILE_NAME = "l...
--[[ docs.lua Generates markdown documentation from the Carbon sources. Requires LuaFileSystem! Built specifically for Carbon and Carbon-like inline documentation. ]] local ok, lfs = pcall(require, "lfs") if (not ok) then error("LFS is required to use docs.lua!") end local template_typical_constructor = [[ cla...
require "IrrLua" --[[ This Tutorial shows how to do 2d graphics with the Irrlicht Engine. It shows how to draw images, keycolor based sprites, transparent rectangles and different fonts. You will may consider this useful if you want to make a 2d game with the engine, or if you want to draw a cool interface or head u...
--[[ Copyright 2014 Rackspace 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, software dis...
-- updated for HWCE by Mikali dofilepath("data:scripts/techfunc.lua") dofilepath("data:scripts/rules/lib/objectlist_techvariants.lua") dofilepath("data:scripts/playerspatch_ships_util.lua") function Create_Vgr_Carrier(CustomGroup, playerIndex, shipID) if Player_GetNumberOfVariantSquadronsOfTypeAwakeOrSleeping(playe...
-- class function Pattern(path) -- private members local _path = path -- public members return { type = "Pattern", similar = function(self, similarity) -- TODO: set min similarity return self end, getFilename = function(self) return ...
-- -- blockdiagram: DSL for specifying and launching microblx system -- compositions -- -- Copyright (C) 2013 Markus Klotzbuecher <markus.klotzbuecher@mech.kuleuven.be> -- Copyright (C) 2014-2020 Markus Klotzbuecher <mk@mkio.de> -- -- SPDX-License-Identifier: BSD-3-Clause -- local ubx = require "ubx" local umf = requi...
----------------------------------- -- Area: Toraimarai Canal (169) ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[tpz.zone.TORAIMARAI_CANAL] = { text = { SEALED_SHUT = 3, -- It's sealed shut with incre...
sqlite = {} function sqlite.statement:new(query) self.__index = self self.source = query self._binds = {} self._state = nil return self end function sqlite.statement:pluck(bool) if bool == false then self._state = nil else self._state = 'pluck' end return self end function sqlite.statement:...
local Types = require(script.Parent.Types) local TYPE_MISMATCH_ERROR = "Type mistmatch between initialValue (%s) and targetValue(%s)" local Linear = {} Linear.__index = Linear function Linear.new(targetValue: Types.MotorValue, options: Types.LinearOptions?) assert(targetValue, "Missing argument #1: targetValue") ...
-- cmd([[colorscheme everforest]]) -- Put your favorite colorscheme here -- Nightfox config local nightfox = require("nightfox") nightfox.setup({ fox = "duskfox", alt_nc = true, styles = { comments = "italic", keywords = "bold", functions = "italic,bold", }, inverse = { visual = true, sea...
local RD = {} local nettable = {}; local ent_table = {}; local resourcenames = {} local resources = {} local status = false local rd_cache = cache.create(1, true) --Store data for 1 second --Local functions/variables --Precache some sounds for snapping for i=1,3 do util.PrecacheSound( "physics/metal/metal_computer...
vim.opt.expandtab = true
-------------------------------- -- @module BillBoard -- @extend Sprite -- @parent_module cc -------------------------------- -- Get the billboard rotation mode. -- @function [parent=#BillBoard] getMode -- @param self -- @return int#int ret (return value: int) -------------------------------- -- Set the ...
return { tag = 'graphicsTransforms', summary = 'Reset the coordinate system.', description = 'Resets the transformation to the origin.', arguments = {}, returns = {}, notes = 'This is called at the beginning of every frame to reset the coordinate space.' }
do local function It(a) return { __tag = "It", a } end local function Mk(a) return { __tag = "Mk", a } end local function Foo(tmp) return tmp end (nil)(Foo); (nil)(function(tmp) return tmp end); (nil)(It); (nil)(Mk) end
include("shared.lua") ENT.RenderGroup = RENDERGROUP_BOTH surface.CreateFont( "CivDrinkFont", { font = "Nexa Light", -- Use the font-name which is shown to you by your operating system Font Viewer, not the file name size = 75, weight = 500, blursize = 0, scanlines = 0, antialias = true, underline = false, ital...
local t = Def.ActorFrame{}; -- a row t[#t+1] = Def.Quad { OnCommand=function(self) self:zoomto(_screen.w*0.85,_screen.h*0.0625) end; }; return t;
-- Misc. Constants WQ_MOD_NAME = "WoWQuote"; WQ_VERSION = "0.8.5"; WQ_MEDIA_PATH = "Interface\\AddOns\\"..WQ_MOD_NAME.."\\media\\"; WQ_DEFAULT_MEDIA_TYPE = ".mp3"; WQ_MIN_SOUND_DELAY = 3; WQ_MAX_ALIAS_LEN = 20; WQ_MIN_SEARCH_LEN = 3; -- Private Vars local playerName = UnitName("player"); -- Public Vars WQSoundTimer =...
local abs = math.abs local format = string.format local insert = table.insert local path = string.gsub(..., "[^.]+$", "") local Base = require(path.."Base") local Expression = require(path.."Expression") local util = require(path.."util") local signs = util.signs local Preproc = Base:extend() function Preproc:init(o...
function Auctionator.Utilities.StringJoin(array, delimiter) local result = "" for index, item in ipairs(array) do if index == #array then result = result .. item else result = result .. item .. delimiter end end return result end
object_tangible_gcw_crafting_quest_gcw_heat_resistant_wiring = object_tangible_gcw_crafting_quest_shared_gcw_heat_resistant_wiring:new { } ObjectTemplates:addTemplate(object_tangible_gcw_crafting_quest_gcw_heat_resistant_wiring, "object/tangible/gcw/crafting_quest/gcw_heat_resistant_wiring.iff")
--爱莎-窒息的痛楚 function c60150817.initial_effect(c) --special summon local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetCode(EFFECT_SPSUMMON_PROC) e2:SetProperty(EFFECT_FLAG_UNCOPYABLE) e2:SetRange(LOCATION_HAND) e2:SetCountLimit(1,60150817) e2:SetCondition(c60150817.spcon) e2:SetOperation(c601508...
-- -- Please see the license.html file included with this distribution for -- attribution and copyright information. -- function onInit() ActionsManager.registerModHandler("ability", modRoll); ActionsManager.registerResultHandler("ability", onRoll); end function performPartySheetRoll(draginfo, rActor, s...
-- Quick and dirty test require 'Q/UTILS/lua/strict' local Scalar = require 'libsclr' local qmem = require 'Q/UTILS/lua/qmem' local Q = require 'Q' local chunk_size = qmem.chunk_size local x, y, z, n1, n2 --===================================== local T = {} for i = 1, 3 do T[#T+1] = i end x = Q.mk_col(T, "I4"...
------------------------------------------------------------------------------ -- kong-plugin-soap2rest 1.0.2-1 ------------------------------------------------------------------------------ -- Copyright 2021 adesso SE -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file ex...
module("luci.controller.qbittorrent",package.seeall) function index() if not nixio.fs.access("/etc/config/qbittorrent") then return end entry({"admin", "nas", "qBittorrent"}, cbi("qbittorrent"), _("qBittorrent")) entry({"admin", "nas", "qBittorrent", "status"}, call("act_status")).leaf = true end function act...
local luaunit = require("luaunit") require("optional_id") TestOptionalId = {} function TestOptionalId:test_optional_id() local r = OptionalId:from_file("src/fixed_struct.bin") luaunit.assertEquals(r._unnamed0, 0x50) luaunit.assertEquals(r._unnamed1, 0x41) luaunit.assertEquals(r._unnamed2, "\x43\x4b\...
-- load app code local App = dofile("../code/sts-diffusion.lua") diffusion = App { polyOrder = 1, lower = {0.0, 0.0}, upper = {2*math.pi, 2*math.pi}, cells = {8, 8}, errEps = 1e-8, factor = 10, extraStages = 1, stepper = 'RKL1', -- initial conditions init = function (t, xn) loca...
cmdBaseWhiteList = {} eventHandlers = {} function dgsCreateCmd(x,y,w,h,relative,parent) if not(type(x) == "number") then error(dgsGenAsrt(x,"dgsCreateCmd",1,"number")) end if not(type(y) == "number") then error(dgsGenAsrt(y,"dgsCreateCmd",2,"number")) end if not(type(w) == "number") then error(dgsGenAsrt(w,"dgsCre...
-- Do You Believe in Gravity? local s, id = GetID() function s.initial_effect( c ) -- search local e1 = Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_PHASE + PHASE_STANDBY) e1:SetRange(LOCATION_SZONE) e1:SetCountLimit(1, id) ...
cc = cc or {} ---Image object ---@class Image : Ref local Image = {} cc.Image = Image -------------------------------- -- ---@return bool function Image:hasPremultipliedAlpha() end -------------------------------- ---brief Save Image data to the specified file, with specified format.<br> ---param filePath ...
--* This Document is AutoGenerate by OrangeFilter, Don't Change it! * ---@meta --- ---[3.6]camera clear mode --- ---@class OF_CameraClearFlags --- ---[3.6]clear color and depth --- ---@field OF_CameraClearFlags_ColorAndDepth --- ---[3.6]clear depth only --- ---@field OF_CameraClearFlags_DepthOnly --- ---[3.6]don't cl...
local lspconfig = require("lspconfig/util") local o = require("nvim-lsp-ts-utils.options") local format = string.format local uv = vim.loop local api = vim.api local exec = api.nvim_exec local tsserver_fts = { "javascript", "javascriptreact", "typescript", "typescriptreact" } local tsserver_extensions = {"js", "...
-- coding: utf-8 local Shared = ... local Msg, ErrMsg = Shared.Msg, Shared.ErrMsg local MacroInit, MacroStep = Shared.MacroInit, Shared.MacroStep local pack, loadmacro, utils = Shared.pack, Shared.loadmacro, Shared.utils local MacroCallFar = Shared.MacroCallFar local FarMacroCallToLua = Shared.FarMacroCallToLua local ...
-- dofile("TCPLEDTest.lua"); --dofile("dht_test.lua"); dofile("TCPLEDTest.lua");
-- Locks all wands for given amount of ticks. LOCKED = "locked" function Lock(Player, Ticks) if g_PlayersEnabled[Player:GetUUID()] then g_PlayersEnabled[Player:GetUUID()] = LOCKED Player:GetWorld():ScheduleTask(Ticks, function (World) g_PlayersEnabled[Player:GetUUID()] = true end) end en...
--[[ _______ ______ ______ _____ _ _ _______ ______ ______ _____ _ _ | |______ |_____] |_____/ | |____/ |_____| |_____] |_____/ | | |____/ |_____ |______ |_____] | \_ __|__ | \_ | | |_____] | \_ |_____| | \_ ...
--[[ Copyright 2012-2015 The Luvit Authors. All Rights Reserved. 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...
local Milo = require('milo') local UI = require('opus.ui') local itemDB = require('core.itemDB') local colors = _G.colors local device = _G.device local wizardPage = UI.WizardPage { title = 'Level Emitter', index = 2, [1] = UI.TextArea { x = 2, y = 1, height = 2, textColor = colors.yellow, val...
local _=require 'leda' return _.stage{ handler=function (...) print(...) leda.push(...) end, serial=true, name="Console print", }
local self = {} GLib.Lua.LoadStore = GLib.MakeConstructor (self) function self:ctor (frameVariable) self.FrameVariable = frameVariable self.Index = 0 end function self:Clone (clone) clone = clone or self.__ictor () clone:Copy (self) return clone end function self:Copy (source) self:SetFrameVariable (sour...
--------------------------------------------------------------------------------------------- -- Requirement summary: -- SDL must re-assign "default" policies to app in case "default" policies was updated via PolicyTable update -- -- Description: -- PoliciesManager must: re-assign updated "default" policies to this app...
return require 'async.async'
--[[ Copyright (c) 2019 igor725, scaledteam released under The MIT license http://opensource.org/licenses/MIT ]] SURV_MAX_HEALTH = 10 SURV_MAX_OXYGEN = 10 SURV_INV_SIZE = 255 SURV_DEF_SPAWNRAD = 32 gmLoad('lng') gmLoad('names') gmLoad('gui') gmLoad('blocks') gmLoad('timers') gmLoad('craft') gmLoad('items') gmLoad('...
object_ship_nova_orion_pirate_heavy_tier6 = object_ship_shared_nova_orion_pirate_heavy_tier6:new { } ObjectTemplates:addTemplate(object_ship_nova_orion_pirate_heavy_tier6, "object/ship/nova_orion_pirate_heavy_tier6.iff")
do SkynetIADSSAMTrackingRadar = {} SkynetIADSSAMTrackingRadar = inheritsFrom(SkynetIADSSAMSearchRadar) function SkynetIADSSAMTrackingRadar:create(unit) local instance = self:superClass():create(unit) setmetatable(instance, self) self.__index = self return instance end end
local K, C, L = unpack(select(2, ...)) if C.Unitframe.Enable ~= true and C.Raidframe.Enable ~= true and C.Nameplates.Enable ~= true then return end local _, ns = ... local oUF = ns.oUF or oUF assert(oUF, "KkthnxUI was unable to locate oUF.") -- Lua API local _G = _G local format = format local math_floor = math.floor...
local CorePackages = game:GetService("CorePackages") local Roact = require(CorePackages.Roact) local RoactRodux = require(CorePackages.RoactRodux) local Components = script.Parent.Parent.Parent.Components local ActionBindingsChart = require(Components.ActionBindings.ActionBindingsChart) local UtilAndTab = require(Comp...
local B = require("core.Broadcast") return { listeners = { questStart = function(state) return function(self, quest) B.sayAt(self, "<blue>questStart") B.sayAt(self, "<red>Quest Started: !<red>"); if quest.config.description then B.sayAt(self, B.line(80)); B...
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] ITEM.name = "Approved Coffee"; ITEM.model = "models/props_nunk/popcan01a.mdl"; ITEM.width = 1; ITEM.height = 1; ITEM.description = "Poorly manufactured coffee poured into an old, unmarked can. It has caffeine."; ITEM.c...
-- Author: philh30 -- -- 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, so...
local HDC1000 = require("HDC1000") local sda, scl = 1, 2 local drdyn = false do i2c.setup(0, sda, scl, i2c.SLOW) -- call i2c.setup() only once HDC1000.setup(drdyn) -- prototype is config(address, resolution, heater) HDC1000.config() -- default values are used if called with no arguments. print(string.form...
local _={} _[5]={} _[4]={tags=_[5],text="ok"} _[3]={_[4]} _[2]={"return"} _[1]={"text",_[3]} return {_[1],_[2]} --[[ { "text", { { tags = {}, text = "ok" } } } { "return" } ]]--
--[[ Data module for evolutionary families. The structure of the module is as following: there's a table for each Pokémon, containing the "ndex" and possibly other infos. The field "notes" contains a string that is put above the sprite. The field "evos", if any, should contain an array of tables of Pokémons that evol...
require("luacom") local obj = luacom.CreateObject("testlua.Teste") print(obj:Sum(2,3)) print(type(obj:I2A(3))) print(obj:IntDivide(5,2)) print("Finishing...")
vim.opt.completeopt = { "menuone", "noselect" } vim.opt.shortmess:append "c" local cmp = require "cmp" cmp.setup { snippet = { expand = function(args) require("luasnip").lsp_expand(args.body) end }, sources = { { name = "buffer" }, { name = "path" }, { name = "nvim_lua" }, { name = "nvim_lsp" }, {...
-- -- Tests for the system module -- local system = require 'system' local tasty = require 'tasty' local group = tasty.test_group local test = tasty.test_case local assert = tasty.assert --- helper function, combining with_wd and with_tmpdir function in_tmpdir (callback) return function () system.with_tmpdir('t...
if not globals then globals = {} end function globals.init() global = global or {} global["preset-data"] = global["preset-data"] or {} global["preset-names"] = global["preset-names"] or {} global["presets-selected"] = global["presets-selected"] or {} global["inventories-open"] = global["inventories-open"] or {} ...
function hello() return "hello world" end
object_static_particle_pt_water_drop_base = object_static_particle_shared_pt_water_drop_base:new { } ObjectTemplates:addTemplate(object_static_particle_pt_water_drop_base, "object/static/particle/pt_water_drop_base.iff")
-- * Metronome IM * -- -- This file is part of the Metronome XMPP server and is released under the -- ISC License, please see the LICENSE file in this source package for more -- information about copyright and licensing. -- -- As per the sublicensing clause, this file is also MIT/X11 Licensed. -- ** Copyright (c) 2009-...
----------------------------------- -- Area: Gustav tunnel (212) -- NPC: qm1 (???) -- Quests: Cloak and Dagger (Evisceration WSNM "Baronial Bat") -- !pos 52.8, -1, 19.9 212 ----------------------------------- require("scripts/globals/wsquest") local ID = require("scripts/zones/Gustav_Tunnel/IDs") function onTrigger(p...
object_mobile_col_forage_hungry_worm = object_mobile_shared_col_forage_hungry_worm:new { } ObjectTemplates:addTemplate(object_mobile_col_forage_hungry_worm, "object/mobile/col_forage_hungry_worm.iff")
--Returns a sine wave based on game time. Mod will modify the period of the wave and abs is wether or not you want -- the abs value of the wave function GetSineVal(mod, abs, inst) local time = (inst and inst:GetTimeAlive() or GetTime()) * (mod or 1) local val = math.sin(PI * time) if abs then retur...
--[=[ multi-sync-config.lua v3.2 2021-01-03 Each rule must define: src - a directory or a file dest - a directory And optionally: name - rule name, does not need to be unique expression - evaluated as a boolean, so anything other than false and nil is true. If false, the rule will be skipped syncCmd l...
local CoreGui = game:GetService("CoreGui") local CorePackages = game:GetService("CorePackages") local AppTempCommon = CorePackages.AppTempCommon local Modules = CoreGui.RobloxGui.Modules local ShareGame = Modules.Settings.Pages.ShareGame local Immutable = require(AppTempCommon.Common.Immutable) local SetSearchAreaAct...
local ruleHelp = {} local R = {} local ruleMake = {} function ruleHelp:setR(r) R=r end --根据散牌整理出规则牌 function ruleHelp:tidyHandCards(handcards) table.sort(handcards,function(v1,v2) return v1:values() < v2:values() end) local ruleCards = {} ruleCards[R.rule.Ti_zimo] = {}--提 ruleCards[...
local msg = require('mp.msg') local log = { debug = function(format, ...) return msg.debug(format:format(...)) end, info = function(format, ...) return msg.info(format:format(...)) end, warn = function(format, ...) return msg.warn(format:format(...)) end, dump = function(item, ignore) loca...
require "core/gamestate" require "states/gameplaystate" require "core/color" require "core/label" require "core/math" TitleState = GameState:new() function TitleState:load() self.title = Label:new() self.title.font = Content["Fonts"]["Title"] self.title.text = "Snake" local x, y = love.graphics.getDim...
-- EP1 CM Wave Reader Configuration -- Configuration window for the addon local function ConfigurationWindow(configuration, addonName) local this = { title = addonName .. " - Configuration", open = false, changed = false, } local _configuration = configuration local _show...
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( 'shared.lua' ) ENT.Damage = 4 ENT.Blast = Sound( "hgn/stalker/anom/burner_blow.mp3" ) ENT.Death = Sound( "ambient/fire/mtov_flame2.wav" ) ENT.Burn = Sound( "Fire.Plasma" ) local anomalyID = tostring(math.Rand(1,2)) --Wake variables ENT.WakeRange = 600...
local PLUGIN = PLUGIN PLUGIN.biosignalLocations = PLUGIN.biosignalLocations or {} PLUGIN.requestLocations = PLUGIN.requestLocations or {} PLUGIN.cameraData = PLUGIN.cameraData or {} PLUGIN.hudObjectives = PLUGIN.hudObjectives or {} PLUGIN.socioStatus = PLUGIN.socioStatus or "GREEN" PLUGIN.terminalMaterialIdx = PLUG...
--;=========================================================== --; DEBUG HOTKEYS --;=========================================================== --key, ctrl, alt, shift, pause, debug key, function addHotkey('c', true, false, false, true, false, 'toggleClsnDraw()') addHotkey('d', true, false, false, true, false, 'toggleD...
local playsession = { {"datadrian", {2221}}, {"toddrofls", {425045}}, {"mewmew", {87066}}, {"wellczech", {26914}}, {"tykak", {190831}}, {"autopss", {325227}}, {"rikkert", {83918}}, {"KIRkomMAX", {120351}}, {"beranabus", {1991}}, {"Kirari", {1467}}, {"Alexfeed23", {8953}}, {"Cloudtv", {3161}}, {"Fexx", {163...
-- scaffolding entry point for libiconv-genie-buildable return dofile("libiconv-genie-buildable.lua")
-- This needs to be pushed from the C++ modules = {} globals = {} function Bind() --This is not necessary and even adds a little overhead, but makes LUA API --more consistent and clean. globals._transform:XXX() can be use directly. --Havent found any better way of doing this globals.Transform = {} function c...
-- // Services local Players = game:GetService("Players") -- // Vars local LocalPlayer = Players.LocalPlayer local Vortex = LocalPlayer.PlayerScripts.Vortex local sVortex = getsenv(Vortex) -- // Set reserve ammo as infinite debug.setupvalue(sVortex.GetAmmoData, 2, 1/0)
return { PlaceObj("ModItemOptionToggle", { "name", "ClearOnLaunch", "DisplayName", T(302535920011469, "Clear On Launch"), "Help", T(302535920011536, "Clear cargo for rocket/pod/elevator when launched (not all cargo, just for the same type)."), "DefaultValue", false, }), }
local HttpEnv = require "charon.net.HttpEnv" local test = {} test['deve retornar path /pedido/varejo'] = function() local header = os.read(CHARON_PATH .. '/tests/charon/net/HttpEnv/example-1.txt') local parser = HttpEnv.new(header) assert(parser:requestUri() == '/pedido/varejo?id=1234&descricao=teste') end ret...
local Spell = { } Spell.LearnTime = 120 Spell.ApplyFireDelay = 0.3 Spell.Description = [[ Makes your opponent hear white noise. Works only on players. ]] Spell.NodeOffset = Vector(-1219, -922, 0) Spell.AccuracyDecreaseVal = 0.3 function Spell:OnFire(wand) local ent, tr = wand:HPWGetAimEntity(800) if IsValid(en...
local core = require("resty.rocketmq.core") local client = require("resty.rocketmq.client") local utils = require("resty.rocketmq.utils") local trace = require("resty.rocketmq.trace") local RESPONSE_CODE = core.RESPONSE_CODE local cjson_safe = require("cjson.safe") local ngx = ngx local ngx_timer_at = ngx.timer.at ---...
--[[ desc: TOUCH, a lib that encapsulate touch function. author: Musoucrow since: 2018-5-27 alter: 2019-8-19 ]]-- local _INPUT = require("lib.input") local _Caller = require("core.caller") local _pointMap = {} ---@type table<id, Lib.TOUCH.Point> ---@type table<string, Core.Caller> local _callerMap = { onPresse...
object_static_worldbuilding_terminal_floor_banking_01 = object_static_worldbuilding_terminal_shared_floor_banking_01:new { } ObjectTemplates:addTemplate(object_static_worldbuilding_terminal_floor_banking_01, "object/static/worldbuilding/terminal/floor_banking_01.iff")
IMBA_MUTATION_TIMER = nil IMBA_MUTATION_PERIODIC_SPELLS = {} IMBA_MUTATION_PERIODIC_SPELLS[1] = {"sun_strike", "Sunstrike", "Red", -1} IMBA_MUTATION_PERIODIC_SPELLS[2] = {"thundergods_wrath", "Thundergod's Wrath", "Red", 3.5} IMBA_MUTATION_PERIODIC_SPELLS[3] = {"rupture", "Rupture", "Red", 10.0} IMBA_MUTATION_PERIODIC...
function onCreate() -- background shit makeLuaSprite('bg', 'entry', -300, -200); setScrollFactor('bg', 0.9, 0.9); makeLuaSprite('warning', 'entryWarning', -3, -5); setObjectCamera('warning', 'camHUD') setProperty('warning.visible', false) addLuaSprite('bg', false); addLuaSprite('warning', true); ...
---[===[ local oldpr=print require("wx") print=oldpr os.setlocale("C") --to let serialize work for numbers local ID_IDCOUNTER = wx.wxID_HIGHEST + 1 function NewID() ID_IDCOUNTER = ID_IDCOUNTER + 1 return ID_IDCOUNTER end Config = require"ide.config" Config:init("Lua2SCIDE", "sonoro") config = Config.confi...
--- Module implementing the LuaRocks "purge" command. -- Remove all rocks from a given tree. module("luarocks.purge", package.seeall) local util = require("luarocks.util") local fs = require("luarocks.fs") local path = require("luarocks.path") local search = require("luarocks.search") local deps = require("luarocks.d...
if not CREDENTIALS.sentry then return end require("xlib_sentry") if not sentry then XLIB.Warn("Sentry did not require() correctly") return end local options = {} -- Make a copy so we can modify it for k, v in pairs(CREDENTIALS.sentry.options or {}) do options[k] = v end if options.auto and (options.auto:lower() ~...