content
stringlengths
5
1.05M
-- Copyright (C) 2017-2020 DBotThePony -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, publis...
local tokens_key = KEYS[1] local timestamp_key = KEYS[2] local rate = tonumber(ARGV[1]) local capacity = tonumber(ARGV[2]) local now = tonumber(ARGV[3]) -- 填满需要的时间 local fill_time = capacity / rate -- 过期时间 local ttl = math.max(math.floor(fill_time * 2),1) -- 上一次获取token后剩余数量 local last_tokens = tonumber(redis.call("g...
----------------------------------- -- Area: Quicksand Caves -- NPC: Ornate Door -- Door blocked by Weight system -- !pos -21 0 -60 208 ----------------------------------- local ID = require("scripts/zones/Quicksand_Caves/IDs"); ----------------------------------- function onTrade(player,npc,trade) end; function onT...
workspace "CWStarter" architecture "x64" startproject "CWStarter" configurations { "Debug", "Release" } project "CWStarter" location "%{prj.name}" kind "ConsoleApp" language "C++" staticruntime "off" targetdir ("bin/") objdir ("build/") files { "%{prj.name}/**.h", "%{prj.name}/**.cpp", } i...
local function quote_arg(s) if #s == 0 then return '""' end if not s:find(' \t\"', 1, true) then return s end if not s:find('\"\\', 1, true) then return '"'..s..'"' end local quote_hit = true local t = {} t[#t+1] = '"' for i = #s, 1, -1 do local c ...
if GetObjectName(GetMyHero()) ~= "Cassiopeia" then return end require('Inspired') require('DeftLib') require('DamageLib') local CassiopeiaMenu = MenuConfig("Cassiopeia", "Cassiopeia") CassiopeiaMenu:Menu("Combo", "Combo") CassiopeiaMenu.Combo:Boolean("Q", "Use Q", true) CassiopeiaMenu.Combo:Boolean("W", "Use...
---@class Emoji ---@field client Client ---@field parent Container|Client ---@field createdAt number ---@field id SnowflakeId ---@field timestamp string ---@field animated boolean ---@field guild Guild ---@field hash string ---@field managed boolean ---@field mentionString string ---@field name string ---@field require...
require 'class' api = require('api') ChildScriptBase = require('ChildScriptBase') local Vehicle = class(ChildScriptBase, function(self,scriptHandle) -- simAddStatusbarMessage("Vehicle ctor") ChildScriptBase.init(self,scriptHandle) -- ============================================================== -- C...
local namespace = ARGV[1] local pattern = string.format("%s/*", namespace) for _, key in ipairs(redis.call('keys', pattern)) do redis.call('del', key) end
TOOL.Category = wac.menu.category TOOL.Name = "Entity Linker" TOOL.Command = nil TOOL.ConfigName = "" if CLIENT then language.Add("tool.wac_linker.name", "Entity Linker") language.Add("tool.wac_linker.desc", "Link WAC entities") language.Add("tool.wac_linker.0", "Click on the entity you want to link") l...
require "xlog" require "xclass" local log = xlog("xparser") xparser = xclass { __create = function (self, key, value) self.key = assert(key, "no key") self.value = assert(value, "no value") return self end, count = function (self) return #self end, pairs = function (self) return ipairs(self) end, ...
level_max_x = 9999 data.prev_lives = 3 data.initial_energy = 52 data.offset_x = nil end_x = nil data.prev_progress = 0 data.xpos_last_x = nil energy_multiplier = 5 score_multiplier = 10 data.last_score = 0 data.last_energy = nil function clip(original_value, min, max) if original_value < min then return ...
local util = require 'lspconfig.util' local language_id_of = { menhir = 'ocaml.menhir', ocaml = 'ocaml', ocamlinterface = 'ocaml.interface', ocamllex = 'ocaml.ocamllex', reason = 'reason', dune = 'dune', } local get_language_id = function(_, ftype) return language_id_of[ftype] end return { default_co...
--------------------------------------------------------------------------------------------------- -- real_names_redo mod by A S Lewis, based on real_names by Extex101 --------------------------------------------------------------------------------------------------- -- commands.lua -- Defines chat commands -----...
local nineSliceSolidEntity = require("mods").requireFromPlugin("libraries.nineSliceSolidEntity") local solidTexturePath = "objects/FrostHelper/badelineChaserBlock/activator" local nonsolidTexturePath = "objects/FrostHelper/badelineChaserBlock/activatorfield" local nonsolidEmblemTexturePath = "objects/FrostHelper/badel...
local _, XB = ... XB.Area = {} local C_Timer = C_Timer local wipe = wipe local UnitHealth = UnitHealth local UnitExists = ObjectExists or UnitExists local Cache = {} C_Timer.NewTicker(1, (function() wi...
local name = "git-remote-codecommit" local version = "1.0.0" local release = "v" .. version food = { name = name, description = "A git remote helper that removes the need for dedicated CodeCommit user credentials", license = "MIT", homepage = "https://github.com/gembaadvantage/git-remote-codecommit", ...
------------------------------------------------------------ ------------------------------------------------------------ ---- Author: Dylan 'Itokoyamato' Thuillier ---- ---- ---- ---- Email: itokoyamato@hotmail.fr ---- ---- ...
-- build support utils project "ndate" kind "ConsoleApp" targetdir(".") files {"ndate.c"} links {"9"}
local N = 624 local M = 397 local MATRIX_A = 0x9908b0df local UPPER_MASK = 0x80000000 local LOWER_MASK = 0x7fffffff -- initializes mt[N] with a seed local function init_genrand(o, s) o.mt[0] = s & 0xffffffff for i = 1, N - 1 do o.mt[i] = (1812433253 * (o.mt[i - 1] ~ (o.mt[i - 1] >> 30))) + i --...
-- Copyright (C) 2018 DBot -- 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,...
local RunService = game:GetService("RunService") local packages = script.Parent.Parent.Parent local Maid = require(packages:WaitForChild("maid")) local math = require(packages:WaitForChild("math")) return function(coreGui) local maid = Maid.new() local Synthetic = require(script.Parent.Parent) task.spawn(function...
-------------------------------------------------------------------------------- -- MAX7229 module for NodeMCU -- SOURCE: https://github.com/marcelstoer/nodemcu-max7219 -- AUTHOR: marcel at frightanic dot com -- LICENSE: http://opensource.org/licenses/MIT ----------------------------------------------------------------...
--[[-- h1. Shading functions --]]-- require 'lubyk' local lib = {} local Effect = four.Effect lib.smoothcut = Effect.Shader [[ float smoothcut(float e0, float e1, float v) { if (v > e1) { float d = 1.0 - (v - e1) / (1.0 - e1); // distance to e1 in [0, 1] return v * d * d * d; ...
CRAFT_DESC_ORANGE_GEM = "Orange you glad this is craftable now?" CRAFT_DESC_GREEN_GEM = "Less hope, more magic!" _G = GLOBAL local function IsDST() return GLOBAL.TheSim:GetGameID() == "DST" end local function _GetRecipe(prefab) if IsDST() then return GLOBAL.AllRecipes[prefab] else --return GLOBAL.GetRec...
local lspconfig = require("lspconfig") local setup_ls = function(ls, config, ...) for _, disabled_feature in ipairs({ ... }) do if vim.fn.has(disabled_feature) == 1 then return end end config = config or {} config.flags = config.flags or {} config.flags.debounce_text_changes = config.flags.debo...
-- Copyright 2006-2022 Mitchell. See LICENSE. -- Go LPeg lexer. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, S = lpeg.P, lpeg.S local lex = lexer.new('go') -- Whitespace. lex:add_rule('whitespace', token(lexer.WHITESPACE, lexer.space^1)) -- Keywords. lex:add_rule('...
object_tangible_loot_creature_loot_collections_fish_rare_striped = object_tangible_loot_creature_loot_collections_shared_fish_rare_striped:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_fish_rare_striped, "object/tangible/loot/creature/loot/collections/fish_rare_striped.iff")
--!strict local lexer = require(script.lexer) local escapeFullName = require(script.escapeFullName) local selectInstance = require(script.selectInstance) return { select = selectInstance, escapeFullName = escapeFullName, lexer = lexer }
util.AddNetworkString("ixSquadSync") util.AddNetworkString("ixSquadKick") util.AddNetworkString("ixSquadSettings") util.AddNetworkString("ixSquadCreate") util.AddNetworkString("ixSquadInvite") util.AddNetworkString("ixSquadKickMember") util.AddNetworkString("ixSquadDisband") util.AddNetworkString("ixSquadRankChange") u...
local a = ... return { include = function() includedirs { "../vendor/minizip/" } if not a then add_dependencies 'vendor:zlib' else add_dependencies 'vendor:zlib-crt' end end, run = function() language "C" kind "StaticLib" defines { "HAVE_ZLIB" } flags "NoRuntimeChecks" if a then ...
function DisableVision(event) local unit = event.target unit.originalDayVision = unit:GetDayTimeVisionRange() unit.originalNightVision = unit:GetDayTimeVisionRange() unit:SetDayTimeVisionRange(0) unit:SetNightTimeVisionRange(0) end function RecoverVision(event) local unit = event.target uni...
local path = "hall/ranklist_pin.png" local ranklist_pin_map = { ["rank_bottom.png"] = { file=path, x=2,y=2, width=135,height=99, rotated=true }, ["rank_bg.png"] = { file=path, x=139,y=2, width=102,height=102, rotated=false }, ["rank_1.png"] = { file=path, x=2,y=103, width=96,height=89, ...
-- Methology is largely copied from LuaJIT's source code. -- https://github.com/LuaJIT/LuaJIT/blob/master/src/lj_char.h -- -- Used to determine character types, useful in text parsing. -- local char = {} -- Slightly ripped bitmasks from lj_char.h CHAR_CNTRL = 0x01 CHAR_SPACE = 0x02 CHAR_PUNCT = 0x04 CHAR_DIGIT = 0x08...
local player_meta = FindMetaTable('Player') function player_meta:SetUserGroup(group) group = group or 'user' local group_obj = Bolt:find_group(group) local old_group_obj = Bolt:find_group(self:GetUserGroup()) self:set_nv('role', group) if old_group_obj and group_obj and old_group_obj:on_role_taken(self, g...
--Zombine SWEP by Mka0207 : http://steamcommunity.com/id/mka0207/ -- Viewmodel for Zombine by LuaKnight (Cpt.Hazama). --Based off the Zombie SWEP Base by JetBoom. AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") SWEP.MoanDelay = 1 SWEP.SpawnUseDelay = 5 function SWEP:Equip() self:SetSp...
local PLSpeedTable = {} local PLAYERSTATS = "slb_players_v3" -- new table, again! local IDX_PLAYERSTATS = "IDX_SLBSTATS3" if ( !sql.TableExists( PLAYERSTATS ) ) then sql.Query( "CREATE TABLE IF NOT EXISTS "..PLAYERSTATS.." ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, steamid INTEGER, won, lost INTEGER, topspee...
local siteinfo = assert(io.open("siteinfo-namespaces.json", "rb")):read "a" siteinfo = require "cjson".decode(siteinfo) local namespace_number_to_text = {} for _, namespace in pairs(siteinfo.query.namespaces) do namespace_number_to_text[namespace.id] = namespace["*"] end return namespace_number_to_text
#!/usr/bin/env tarantool test = require("sqltester") test:plan(38) --!./tcltestrunner.lua -- 2001 September 15 -- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive oth...
local ip_address = KAKOGE.IPAdress --commands concommand.Add("kakoge", function(ply, commands, arguments, arguments_string) local home = vgui.Create("KakogeHome") home:SetSize(ScrW() * 0.9, ScrH() * 0.9) home:Center() home:MakePopup() home:SetSkin("Pecan") end, nil, "Opens a full-screen Kakoge menu.") conc...
-- Exit if can't load module local status_ok, telescope = pcall(require, "telescope") if not status_ok then return end local M = {} --[[ Opens a file picker with Neovim configuration files to make a quick edit, useful to make quick changes to Neovim's configuration without having to CDW ]] function M.neovim_config(...
local persist = {} local require = nil -------------------------------------------------------------------------------- --- Load and run a Lua file in an environment. -- @param filename string: the name of the file. -- @param env table: the environment table. -- @return (true, any) or (nil, string, string): true and...
local fs = require "luci.fs" local http = require "luci.http" local DISP = require "luci.dispatcher" local m, mlog --SimpleForm for nil m = SimpleForm("", "", nil) m.reset = false m.submit = false --SimpleForm for Server Logs mlog = SimpleForm("amlogic_log", translate("Server Logs"), nil) mlog.reset = false mlog.subm...
-- -- Implementation of queueing API. -- -- A task in a queue can be in one of the following states: -- READY initial state, the task is ready for execution -- DELAYED initial state, the task will become ready -- for execution when a timeout expires -- TAKEN the task is being worked on -- BURI...
local function kick(ply, args) if (!ply:hasPerm("Kick")) then return am.broadcast(ply, "You aren't staff! You can't do this!"); end local user = am.finduser(args[1]); args[1] = nil local reason = am.tostring(args) if (!user) then return am.broadcast(ply, "No user could be found!"); end if (!reason) then return...
--[[-------------------------------------------------------------------]]--[[ Copyright wiltOS Technologies LLC, 2020 Contact: www.wiltostech.com ----------------------------------------]]-- wOS = wOS or {} wOS.ALCS = wOS.ALCS or {}...
local require = require local cjson = require("cjson") local tools = require("wtf.core.tools") local Action = require("wtf.core.classes.action") local _M = Action:extend() _M.name = "store" function _M:init( ... ) local select = select local instance = select(1, ...) self.instance = instance end function _M:ac...
--[[ Copyright 2019 Manticore Games, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d...
-- Copyright (C) 2019-2020 Igara Studio S.A. -- Copyright (C) 2018 David Capello -- -- This file is released under the terms of the MIT license. -- Read LICENSE.txt for more information. dofile('./test_utils.lua') local rgba = app.pixelColor.rgba local rgbaR = app.pixelColor.rgbaR local rgbaG = app.pixelColor.rgbaG...
return function(tmpl) local wgt local name = tmpl:match('<NAME>([^<>]+)') local mask = tmpl:match('<MASK>([^<>]+)') or "" --print(name, mask) wgt = ui.Group:new { Legend = name or "Select a file:", int_type = tmpl, --"<FILE>", control_param = "", Children = { ...
include("shared.lua") ENT.RenderGroup = RENDERGROUP_TRANSLUCENT surface.CreateFont("ss.leaderboard", {font = "Arvil Sans", size = 152, weight = 400, blursize = 1}) surface.CreateFont("ss.leaderboard.shadow", {font = "Arvil Sans", size = 152, weight = 400, blursize = 4, antialias = false}) ---------------------------...
--Slash Command Handler function bwSlashCommandHandler(msg, editbox) local command, args = msg:match("^(%S*)%s*(.-)$") -- parse out the command and arguments. "/blindwow help bagscan" help->command, bagscan->args local args, args2 = args:match("^(%S*)%s*(.-)$") -- this is to parse out any sub arguments for co...
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA --Keemstar entity for Swamp Cinema boss battle AddCSLuaFile() DEFINE_BASECLASS("base_gmodentity") local MODEL = Model("models/gnome/gardengnome.mdl") function ENT:Initialize() self.lives = 3 self:Emi...
--[[ Name: init.lua For: SantosRP By: TalosLife ]]-- AddCSLuaFile "cl_init.lua" AddCSLuaFile "shared.lua" include "shared.lua" local baseModel = "models/props_wasteland/laundry_washer001a.mdl" local powerBtnData = { mdl = 'models/maxofs2d/button_03.mdl', pos = Vector('80.839577 -28.981621 4.908806'), ang = Angl...
-- 'dragframes': Sets up the default frame configuration to create -- frames that can be moved about (but not resized), -- and forces a reasonable margin size. local precreated = {} local createdframes = {} return function(evtype, evdata, evsent) if evtype == "framer.precreate" then pr...
local meta = require("dpkt.meta") local utils = require("dpkt.utils") local EAPOL = {} setmetatable(EAPOL, meta) function EAPOL:init(buf) local o = {__buf = buf} setmetatable(o, {__index = self, __name = 'EAPOL'}) o:unpack() return o end function EAPOL:unpack() local version, type, len = string.un...
-- A global variable for the Hyper Mode hyper = hs.hotkey.modal.new({}, "F17") -- HYPER+L: Open news.google.com in the default browser lfun = function() news = "app = Application.currentApplication(); app.includeStandardAdditions = true; app.doShellScript('open http://news.google.com')" hs.osascript.javascript(ne...
objectplayer = {} objectplayer_mt = { __index = objectplayer } function objectplayer:new(name, tex, x, y, w, h, u, v, nFrames, ang, rad) local entity = {} setmetatable(entity, objectplayer_mt) entity.name = name entity.texture = tex entity.posx = x entity.posy = y entity.w...
-- Copyright (c) 2013-18 rubenwardy. MIT. local S, NS = awards.gettext, awards.ngettext awards.registered_awards = {} awards.on = {} awards.on_unlock = {} local storage = minetest.get_mod_storage() -- Table Save Load Functions function awards.save() storage:set_string("player_data", minetest.write_json(awards.play...
lshift, rshift, tohex, arshift, band, bxor, bor, bnot, bror, brol = bit.lshift, bit.rshift, bit.tohex, bit.arshift, bit.band, bit.bxor, bit.bor, bit.bnot, bit.ror, bit.rol function bnor(a,b) return bnot(bor(a,b)) end function bnand(a,b) return bnot(band(a,b)) end function toInt32(byte4, byte3, byte2, byte1) ...
local table = require("__flib__.table") local util = require("scripts.util") local equipment_proc = {} function equipment_proc.build(recipe_book, dictionaries) for name, prototype in pairs(global.prototypes.equipment) do local fuel_categories local burner = prototype.burner_prototype if burner then ...
-- Default modkey. -- Usually, Mod4 is the key with a logo between Control and Alt. -- If you do not like this or do not have such a key, -- I suggest you to remap Mod4 to another key using xmodmap or other tools. -- However, you can use another modifier like Mod1, but it may interact with others. -- modkey = "Mod4" mo...
local GroupStruct = {} -- 用户信息 function GroupStruct.userInfo(playerId, nickname, uid, avatar) return { playerId = playerId or 000000, nickname = nickname or "", uid = uid or "", avatar = avatar or "", } end function GroupStruct.userInfo_user(user) user = user or {} retu...
local ItemName2Type= GetFileConfig(OUTPUTBASE.."server/setting/item/Type2OutFile.lua") return function (Data) local Tbl = Split(Data,",") local ItemType = tonumber(Tbl[1]) local Item = ItemName2Type[ItemType] assert(Item,"ItemType =【"..ItemType.."】的物品不存在") Tbl[1] = tonumber(Tbl[1]) assert(Tbl[2], "没有填写数量") Tbl...
local Chunk = BaseClass() ECS.Chunk = Chunk ECS.Chunk.kChunkSize = 16 * 1024 function Chunk:Constructor( ) self.Buffer = ECSCore.CreateChunk(ECS.Chunk.kChunkSize) self.Count = 0--当前Entity的数量 self.Capacity = 0--能存放Entity的容量 self.SharedComponentValueArray = {} self.Archetype = nil self.ChunkListNode = nil self.C...
local value_table ={ ['A'] =1, ['B'] =3, ['C'] =3, ['D'] =2, ['E'] =1, ['F'] =4, ['G'] =2, ['H'] =4, ['I'] =1, ['J'] =8, ['K'] =5, ['L'] =1, ['M'] =3, ['N'] =1, ['O'] =1, ['P'] =3, ['Q'] =10, ['R'] =1, ['S'] =1, ['T'] =1, ['U'] =1, ['V'] =4, ['W'] =4, ['X'] =8, ['Y'] =4, ['Z'] =10, } local f...
local args = ... require 'utility' local fs = require 'bee.filesystem' local glob = require 'glob' local function scan(mode, root, pattern, options) OUT:push('log', 'Scanning:', root:string()) OUT:push('log', 'Scan pattern:', table.dump(pattern)) OUT:push('log', 'Scan options:', table.dump(option...
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] local COMMAND = Clockwork.command:New("ContFill"); COMMAND.tip = "Fill a containe...
local lang = { repair = "repair {1}.", reward = "reward: {1} $.", bankdriver = "Given Money {1}.", reward = "Reward: {1} $.", delivery = { title = "قم بشراء العناصر من الاسواق ( انظر الى الخريطة ) ومن ثم إحضارهم إلي!", item = "- {2} {1}" }, drugseller = { title = "قم بالعثور على المخبر غير القان...
local Keys = { ["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57, ["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["B...
-- GoTo code navigation. Keybind.g({ { 'n', '<Leader>gd', [[<Plug>(coc-definition)]], { noremap = false, silent = true } }, { 'n', '<Leader>gy', [[<Plug>(coc-type-definition)]], { noremap = false, silent = true } }, { 'n', '<Leader>gi', [[<Plug>(coc-implementation)]], { noremap = false, silent = true } }, { 'n', '<...
local Enemy = { x = 0, y = 0, health = 100, loot = {} } local monW, monH = term.getSize() local mapW, mapH; local widthRadius = math.ceil(monW/2) local heightRadius = math.ceil(monH/2) enemies = {} function initialize(Map) mapW, mapH = Map.data.width, Map.data.height end function Enemy:new(t) l...
data.raw["recipe"]["landfill-2"].ingredients = { { "sand", 50 }, { "wood", 15 }, { type = "fluid", name = "water", amount = 50 } } data.raw["recipe"]["landfill-2"].localized_description = {"More efficient landfill made from mulch"}
local skynet = require "skynet" local filelog = require "filelog" local base = require "base" local PBC = {} function PBC.init() local result, P = base.pcall(skynet.call, ".pbcservice", "lua", "get_protobuf_env") if not result then filelog.sys_error("PBC.init "..P) else debug.getregistry().PROTOBUF_ENV = P en...
require("mod.base.data.language") require("mod.base.data.keybind") require("mod.base.data.asset") require("mod.base.data.auto_turn_anim") require("mod.base.data.talk")
pac4 = pac4 or {} local pac4 = pac4 pac4.parts = pac4.parts or {} for i,v in pairs(pac4.parts) do if v.Entity:IsValid() then v.Entity:Remove() end end table.Empty(pac4.parts) for k, v in pairs(hook.GetTable()) do for k2,v2 in pairs(v) do if k2 == "pac4" then hook.Remove(k, k2) end end end pac4.hooked_entiti...
---@class ISM local ISM = {} ---* Give an item to a Player ---@param playerId entityId ---@param item string ---@param tryToEquip boolean function ISM.GiveItem(playerId, class, tryToEquip) end ---* Spawn an item at the Given WorldPos ---@param class string Item ---@param vSpawnPos vector WorldPos function ISM.SpawnIt...
--[[ Server has control over creation of all instances Client has authority over ball physics, brick destruction, paddle position Server keeps track of game state by simulating in parallel and receiving updates from the client ]] local utils = require(script:GetCustomProperty("utils")) local Ball = require(script:G...
-- mymod.lua local mod={} -- the module local vartypes={ -- types for variables anumber='number', astring='string', afunctionvalue='function', } local argtypes={ -- types for function/method arguments afunction={'number','string'} } for fn,args in pairs(argtypes) do args.wrapper=function(...) for i=1,mat...
local mod = DBM:NewMod(2334, "DBM-ZuldazarRaid", 3, 1176) local L = mod:GetLocalizedStrings() mod:SetRevision("2019060525037") mod:SetCreatureID(144796) mod:SetEncounterID(2276) --mod:DisableESCombatDetection() mod:SetZone() --mod:SetBossHPInfoToHighest() mod:SetUsedIcons(8, 7, 6, 5, 4, 3, 2, 1) mod:SetHotfixNoticeRe...
-- Vehicle Data local VD = ts_vehicles.get local function E(text) return text:gsub("%^", "\\%^"):gsub(":", "\\:") end ts_vehicles.register_vehicle_base("ts_vehicles_cars:car", { inventory_image = "ts_vehicles_cars_construction_stand_inv.png", description = "Car", item_description = "Car Construction S...
if not pl then pl = {} end pl.colors = { white = '255255255', pl = { [1] = '222019019', [2] = '037059220', [3] = '017017128', [4] = '225033182', [5] = '191015015', [6] = '083019215', [7] = '179220037' } } function pl.table_count(t, item) local ret = {} f...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' 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...
local slot = player:spellSlot(0) local input = { delay = 0.25, range = 950, radius = 180, speed = 2000, damage = function(obj) return 40 + (40 * slot.level) + (0.6 * player.totalAP) end } local invoke_action = function() local pos = vec3(res.pos.x, res.obj.y, res.pos.y) player:castSp...
object_tangible_tcg_series5_combine_object_atat_statuette = object_tangible_tcg_series5_shared_combine_object_atat_statuette:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series5_combine_object_atat_statuette, "object/tangible/tcg/series5/combine_object_atat_statuette.iff")
local modules = {p = "tangerine.utils.path", fs = "tangerine.utils.fs", df = "tangerine.utils.diff", env = "tangerine.utils.env", log = "tangerine.utils.logger", win = "tangerine.utils.window"} local function _1_(_241, _242) return require(modules[_242]) end return setmetatable({}, {__index = _1_})
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) RegisterNetEvent('esx:setJob') AddEventHandler('esx:setJob', function(job) ESX.PlayerData.job = job end) RegisterNetEvent('esx:playerLoaded') AddEventHandler('esx:playerLoaded', function(xPlayer) ESX.PlayerData = xPlayer end) ...
-- vim: set foldmethod=marker foldlevel=0: local M = {} local status_ok, _ = pcall(require, "lspconfig") if not status_ok then return { setup = function () end } end local utils = require("user.utils") local lsp_installer = require("nvim-lsp-installer") local cmp_nvim_lsp = require("cmp_nvim_lsp") -- List o...
require 'torch' require 'nn' require 'nngraph' require 'csvigo' require 'misc.DataLoader' require 'misc.DataLoaderVal' require 'misc.optim_updates' require 'misc.ProcNets_bilstm_seq_guide' local utils = require 'misc.utils' local net_utils = require 'misc.net_utils' ---------------------------------------------------...
--[[ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies o...
-- fontspec-4ht.lua (2019-06-18-15:43), generated from tex4ht-4ht.tex -- Copyright 2016-2019 TeX Users Group --[[ % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either % version 1.3c of this license or (at your option) any % later version. The latest version...
function onGameLoad(gameId) loadTerrain(gameId); loadHydrax(); loadCaelum(); setCaelumCloudSpeed(0.001, 0.001); setCaelumTimeScale(256); enableCaelumLighting(); --caelum starts run at 2000-1-2 16:6:13 setCaelumDateTime(2000, 1, 2, 16, 6, 13); end function onGameUnload(gameId) unloadCaelum(); unloadHydrax(); ...
local internalsSymbol = require(script.Parent.Parent.internal.internalsSymbol) local isFakedTable = require(script.Parent.Parent.internal.isFakedTable) return function (fakedTable, key) assert(isFakedTable(fakedTable), "Can only clear write history on a faked table") if key == nil then fakedTable[internalsSymbol]...
local interpreter = require('src.interpreter') local internalsOverlay = require('src.internals-overlay') local BEEP_FILE = 'beep.ogg' local KEY_MAP = { ['1'] = 0x1, ['2'] = 0x2, ['3'] = 0x3, ['4'] = 0xc, ['q'] = 0x4, ['w'] = 0x5, ['e'] = 0x6, ['r'] = 0xd, ['a'] = 0x7, ['s'] = 0x8, ['d'] = 0x9, ['f'] = 0xe...
local me = { strings = { ICE = {"WY_STRING_Z163_BLUERAY", true}, --/run ev.register.CryptOfEternity.IsActive=function() return true end SendSystemMsg(GetReplaceSystemKeyword(TEXT("WY_STRING_Z163_BLUERAY"))) FIRE = {"WY_STRING_Z163_REDRAY", true}, -- ice = {"Sys851363_name", true}, -- fire = {"Sys851361_nam...
--[[ 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...
local lsp_ok, _ = pcall(require, "lspconfig") if not lsp_ok then return end -- List of language servers to be installed and configured local language_servers = { "sumneko_lua", "tsserver", "jsonls", "rust_analyzer", "gopls", "pyright", "bashls" } -- Core configurations require("vinevi...
--[[ EXPLORER KURA VERSION DEV Thank you for choosing to install Explorer Kura. To install, please parent this script to Workspace, select the contents of this script (Ctrl+A), copy into the Command Bar (bar at the bottom of your screen) and hit Enter to run the script. To uninstall, delete all inst...
local Prop = {} Prop.Name = "Kappel Clothing" Prop.Government = true Prop.Doors = { Vector( 4996, -3432, 190 ), Vector( 4996, -3314, 190 ), } GM.Property:Register( Prop )
--[[ Copyright (c) 2019 robot256 (MIT License) * Project: Smart Artillery Wagons * File: data.lua * Description: Add signals, technology, and styles --]] require ("prototypes.signals") require ("prototypes.technology") require ("prototypes.style")