content
stringlengths
5
1.05M
----------------------------------------- -- ID: 4755 -- Scroll of Fire IV -- Teaches the black magic Fire IV ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(147) end function onItemUse(target) target:addSpell(147) end
-- LÖVE lovecase demo script. local lovecase = require "lovecase" function love.load() local report = lovecase.runAllTestFiles("demo", true) print(report:printResults()) end
-- EDU Bot NodeMCU Lua firmware, 2016 sw@kaltpost.de -- MIT License (MIT) -- See LICENSE file for details require("router") print("Started telnetd") s=net.createServer(net.TCP, 180) s:listen(23, function(c) function s_output(str) if(c~=nil) then c:send(str .. "\n") end end c:on("receive...
local lspconfig = require("lspconfig") -- local lspinstall = require("polarmutex.lsp.install") -- require('vim.lsp.log').set_level("trace") -- require('vim.lsp.log').set_level("debug") require("polarmutex.lsp.handlers") -- require("polarmutex.lsp.servers.prosemd").setup() require("polarmutex.lsp.servers.beancount")...
--- Animate variables -- @submodule Actions local ActionInstance = require("adam.system.action_instance") local M = {} -- @treturn ActionInstance function M.animate_value(source, target, time, delay, finish_event, ease_function) local action = ActionInstance(function(self) -- how can i animate table property? ...
local module = {} local actions = game:GetService('ContextActionService') local setCore = require(game:GetService('ReplicatedStorage').Common.SetCore) local action_name = 'TogglePhotoMode' local title_format = 'Press %s to %s' local attribute_name = 'Invisible' local toggle = false local hud local enable = { [Enu...
local function isSnowflake(id) return type(id) == 'string' and #id >= 17 and #id <= 64 and not id:match('%D') end env.isSnowflake = isSnowflake env.tobool = function(v) v = tostring(v:lower()) return (v == '1' or v == 'on' or v:find('t')) and true or false end env.toMember = function(v, g) if not v or ...
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- skywrath_mage_myst...
--[[ Original textures from GeMinecraft http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/wip-mods/1440575-1-2-5-generation-minecraft-beta-1-2-farming-and ]] local S = farming.intllib -- corn seeds minetest.register_node("hades_extrafarming:seed_corn", { description = S("Corn Seeds"), tiles...
local MP = minetest.get_modpath(minetest.get_current_modname()) local Channel = dofile(MP .. "/util/channel.lua") local channel -- auth request from webmail local function auth_handler(auth) local handler = minetest.get_auth_handler() minetest.log("action", "[webmail] auth: " .. auth.name) local success = false l...
#!/usr/local/bin/lua local aux = require'ferre.aux' local lpr = require'ferre.bixolon' local tkt = require'ferre.ticket' local ex = require'ferre.extras' local precio = require'ferre.precio' local fd = require'carlos.fold' --[[ NEED TO BE REWRITTEN XXX local ventas = {VENTA=true, FACTURA=true, CREDITO=true} local f...
local util = require("terrautil") local T = terralib.irtypes T:Define [[ TerraData = (Type type) unique ]] function T.TerraData:init() function self.__tostring() return ("terradata<%s>"):format(tostring(self.type)) end end -- equivalent to ffi.typeof, takes a cdata object and returns associated t...
local player = ... local mods = SL[ToEnumShortString(player)].ActiveModifiers -- No judgement in DoNotJudgeMe mode. if mods.DoNotJudgeMe then return Def.ActorFrame{ Name="Pane1", InitCommand=cmd(xy, 0, 250), LoadActor("otter.png")..{ OnCommand=function(self) self:zoomto(210,130) end } } end return Def.ActorFr...
----------------------------------------------------- ---! @file ---! @brief ------------------------------------------------------ local const = {} setmetatable(const, { __index = function (t, k) return function() print("unknown field from const: ", k, t) end end }) ...
seCDhelperAnchor = { bDragable = false, Anchor = {s = "CENTER", r = "CENTER", x = 0, y = 0}, } RegisterCustomData("seCDhelperAnchor.Anchor") RegisterCustomData("seCDhelperAnchor.bDragable") function seCDhelperAnchor.OnFrameCreate() this:RegisterEvent("UI_SCALED") end function seCDhelperAnchor.OnEvent(event) if ...
ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.PrintName = "Wood (Crafting Ingredient)" ENT.Author = "Lambda Gaming" ENT.Spawnable = true ENT.Category = "Crafting Table"
--TerrainsInit.lua --Author: Jack Matters --Date: 23/05/2018 --Brief: Load in all heightmaps data --Note: Make filePath relative to CarreGameEngine.vcxproj --Note: Use this file to load all heightmap data --Note: "player" MUST BE present and MUST BE spelt correctly --Note: Needs improvements AllHeightmaps= { terrain= ...
_Parkings = { --[[{ name = string - REQUIRED, blipName = string - OPTIONAL, blipColor = number - OPTIONAL, zone = PolyZoneObject - REQUIRED, fee = number - REQUIRED, entrances = { vector3(-279.25, -890.39, 30.08) }, hideEntrance = boolean, maxcar = number, ...
include("autolua.lua") AddLuaCSFolder("cl_various") AddLuaCSFolder("cl_hud/vgui") AddLuaCSFolder("cl_hud/menus") AddLuaCSFolder("cl_hud") AddLuaSHFolder("sh_various") AddLuaSHFolder("sh_java") AddLuaSVFolder("sv_various") GM.Name = "Gearfox" GM.Author = "The Maw" GM.Email = "cjbremer@gmail.com" GM.Website ...
--[[ File name : autoaim_fpscamera.lua PostRequireScripts: - [lib/units/cameras/fpcameraplayerbase, aim/autoaim_fpscamera.lua] Current v1.6.1 Change log : v1.6.1 Fix a bug that it suddenly stop aiming while in steelsight, but it seems to be normal after re-entering steelsight again. v1.6 Add aim support wh...
local name, _GatherLite = ...; local HBD = LibStub("HereBeDragons-2.0"); local Pins = LibStub("HereBeDragons-Pins-2.0"); local AceGUI = LibStub("AceGUI-3.0") local L = LibStub("AceLocale-3.0"):GetLocale("GatherLite", true) local Semver = LibStub("Semver"); --options interface GatherLite.OptionsPanel = AceGUI:Create("F...
local spell = Spell("instant") function spell.onCastSpell(creature, variant) return creature:conjureItem(0, 25760, 1, CONST_ME_MAGIC_BLUE) end spell:group("support") spell:id(92) spell:name("Conjure Wand of Darkness") spell:words("exevo gran mort") spell:cooldown(90 * 1000) spell:groupCooldown(2 * 1000) spell:level(...
local ffi = require 'ffi' local bit = require 'bit' local luagit = {} local function class(gitType) local Class = {} Class.__index = function(t, k) if Class[k] then return Class[k] elseif gitType ~= nil then local hasfn, gitfn = pcall(function() return luagit.C['git_'..gitType..'_'..k...
local _, Addon = ... local DDBL = Addon.DethsDBLib if DDBL.__loaded then return end local consts = DDBL.consts local utils = DDBL.utils local db_cache = { -- ["AddonName"] = db table } -- Creates and returns a new database table. -- @param {string} addonName - the name of the addon -- @param {table} defaults - a t...
local M = {} local ccomp = require 'complementree.comparators' local filter = require 'complementree.filters' local utils = require 'complementree.utils' local function complete(col, matches) if matches and #matches > 0 then vim.fn.complete(col, matches) return true else return false end end functi...
Hooks:PostHook(PlayerManager, "check_skills", "Addon_Perks_PlayerManager_check_skills", function(self) if self:has_category_upgrade("melee", "stacking_hit_damage_multiplier") then -- Fix here to avoid skill being triggered by other perkdecks local function speed_up_on_melee_kill(weapon_unit, variant) if variant =...
--Saber local plr = game:service'Players'.LocalPlayer local char = plr.Character local mouse = plr:GetMouse() local torso = char:findFirstChild("Torso") local head = char.Head local ra = char:findFirstChild("Right Arm") local la = char:findFirstChild("Left Arm") local rl = char:findFirstChild("Right Leg") local ll = ch...
util.keep_running() require("natives-1640181023") -- Yoinked From MoistScript, hope moist won't mind :) SoundAnnoy = { {"CHARACTER_SELECT", "HUD_FRONTEND_DEFAULT_SOUNDSET"}, {"Air_Defenses_Disabled", "DLC_sum20_Business_Battle_AC_Sounds"}, {"Air_Defences_Activated", "DLC_sum20_Business_Battle_AC_Sou...
--- -- Sink a signal to a file, serialized in JSON. Samples are serialized -- individually and newline delimited. This sink accepts any data type that -- implements `to_json()`. -- -- @category Sinks -- @block JSONSink -- @tparam[opt=io.stdout] string|file|int file Filename, file object, or file descriptor -- -- @signa...
return {'cdtje'}
--==================-- local libUnitMove = {} --==================-- -- < Modules > -- local math2 = require "math2" local table2 = require "table2" --========================================================-- -- class unitMove2D -- -- ...
return { no_consumer = true, fields = { client_id = { type = "string", required = true }, client_secret = { type = "string", required = true }, discovery = { type = "string", required = true, default = "https://.well-known/openid-configuration" }, introspection_endpoint = { type = "string", required...
local stringutils = {} --[[ @param str 待分割字符串 @param delimiter 分割字符 --]] function stringutils.split(str,delimiter) if str == nil or str == "" or delimiter == nil then return nil end local result = {} for match in (str .. delimiter):gmatch("(.-)" .. delimiter) do table.insert(result,match) end retur...
--######################################################### Camera def --#{ --/** \brief Creates a basic thirdperson camera. -- --\param name char Name of the new camera [optional] --\return chilCameraObject newCamera Returns a camera object --\ingroup Lua_Camera -- -- */ --void chilCreateThirdPersonCamera(char name) ...
return Def.ActorFrame{ InitCommand=function(self) self:Center() end, LoadActor("usbicon.png")..{ InitCommand=function(self) self:shadowlength(1) end, OnCommand=function(self) self:zoom(0.6):glow(1,1,1,1):glowshift():diffusealpha(0):sleep(1):decelerate(2):diffusealpha(1):sleep(6):linear(0.75):diffusealpha(0) end,...
-------------------------------------------------------------------------------- -- Generic relay with configureable parameters -------------------------------------------------------------------------------- -- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o. -- Contains proprietary code. See licens...
-- handler.lua -- https://docs.konghq.com/gateway-oss/2.4.x/plugin-development/custom-logic/ local BasePlugin = require "kong.plugins.base_plugin" local redis = require "resty.redis" local kong = kong local function retrieve_credentials() -- get val from redis local red = redis:new() red:set_timeouts(1000, 1000,...
require 'laia.ClassWithOptions' require 'laia.SignalHandler' require 'warp_ctc' local xlua = wrequire 'xlua' local CTCTrainer, Parent = torch.class('laia.CTCTrainer', 'laia.ClassWithOptions') -- Basic usage example: -- trainer = CTCTrainer(model, train_batcher, valid_batcher, optim.rmsprop) -- trainer:star...
return { { name = "2018-1219-151200_init_routebyselector", up = [[ CREATE TABLE IF NOT EXISTS route_by_selector( id uuid, selector_name text UNIQUE, service_id uuid REFERENCES services(id) ON DELETE CASCADE, service_name text, value text, ...
-- used as a resource manager to load only used images, sounds, fonts Resource=class:new() function Resource:init() self.images={} self.sounds={} self.musics={} self.fonts={} self.lastPlayedSound=nil end function Resource:exists(fileName) local file=File:new() if file:exists(fileName)==false then dbg("File ...
----------------------------------- -- Area: Selbina -- NPC: Lucia -- !pos 30.552 -2.558 -30.023 248 ----------------------------------- function onTrade(player,npc,trade) end function onTrigger(player,npc) if player:getZPos() > -28.750 then player:startEvent(221, player:getGil(), 100) else p...
eventMgr.subscribe("on_load_done", function(e) local v1 = versionNumber.new("1.0.0") local v2 = versionNumber.new("1.0.1") local v3 = versionNumber.new("0.1.9") assert(v1 == v1, "versionNumber eq fail") assert(v1 < v2, "versionNumber lt fail") assert(v1 > v3, "versionNumber gt fail") assert...
object_tangible_loot_generic_usable_handheld_viewscreen_2_generic = object_tangible_loot_generic_usable_shared_handheld_viewscreen_2_generic:new { } ObjectTemplates:addTemplate(object_tangible_loot_generic_usable_handheld_viewscreen_2_generic, "object/tangible/loot/generic/usable/handheld_viewscreen_2_generic.iff")
local util = require('vim.lsp.util') local api = vim.api local M = {} --- bufnr → true|nil --- to throttle refreshes to at most one at a time local active_refreshes = {} --- bufnr -> client_id -> lenses local lens_cache_by_buf = setmetatable({}, { __index = function(t, b) local key = b > 0 and b or api.nvim_get...
object_mobile_npc_dressed_collection_npc_female_human_02 = object_mobile_shared_npc_dressed_collection_npc_female_human_02:new { } ObjectTemplates:addTemplate(object_mobile_npc_dressed_collection_npc_female_human_02, "object/mobile/npc_dressed_collection_npc_female_human_02.iff")
local filepath = require "util/filepath" local result = {} for k, filepath in ipairs( filepath.list_files( "ChallengeFight:fight_data", "*.lua", true )) do local name = filepath:match( "(.+)[.]lua$" ) if name then local temp = require(name) table.insert(result, temp) end end function Ad...
------------------------------------------------------------------------------- --- AUTHOR: Nostrademous ------------------------------------------------------------------------------- local Chat = {} Chat.Name = "Chat" Chat.NumArgs = 3 ------------------------------------------------- function Chat:Call( hHero, sM...
return cubictest.formatter:new { ["Suite Start"] = function(self, run, event) end, ["Specification Start"] = function(self, run, event) self:write_ln("#### %s", run.target.description) end, ["TestCase Start"] = function(self, run, event) self.step_index = 0 self:write_ln("###### … %s", run.target.descripti...
--===========================================================================-- -- -- -- System.Serialization -- -- -- ...
-- example local loader = require "ase-loader" local sprite = {} function sprite:load(dir) local file = loader(dir) -- size self.width = file.header.width self.height = file.header.height self.frames = {} self.tags = {} self.active = "" -- active tag self.index = 1 -- actual frame self.time = 0...
local c = reflection:getClass("net.minecraft.network.packet.c2s.play.ClientCommandC2SPacket") local mode = c.Mode.START_FALL_FLYING local p = player:getPlayer() local rawP = p:getRaw() p:getAbilities():setFlying(true) function fuck() rawP.networkHandler:sendPacket(luajava.new(c, rawP, mode)) end fuck()
--- The client implemented by socketchannel of skynet local base = require 'enip.ab.client.unconnected' local command = require 'enip.command.base' local reply_parser = require 'enip.reply.parser' local socketchannel = require 'socketchannel' local client = base:subclass('FREEIOE_APP_PLC_ENIP_CIP_CLIENT') local func...
--[[ The MIT License (MIT) Copyright (c) 2016 Subhojit Basu 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, merg...
require "outerInterpreter" tinyLuaForth=function(inDictFilePath) print "--- tiny LuaForth 1.2 ---"; dofile(inDictFilePath) while true do io.write("-> ") local line=io.read(); if line=="" then print("bye."); break end local result=outerInterpreter(line) print(result==nil and " ok." or "unknown word '"..result.....
--------------------------------------------------------------------------- -- SoarETX widget -- -- -- -- Author: Jesper Frickmann -- -- Date: ...
-- Access the Lightroom SDK namespaces. local LrDialogs = import "LrDialogs" local LrLogger = import "LrLogger" local LrApplication = import "LrApplication" local LrTasks = import "LrTasks" local LrErrors = import "LrErrors" -- Create the logger and enable the print function. local myLogger = LrLogger("nosleepLogger"...
export['cel.sequence'] { [[Defines the factories for the sequence.x and sequence.y metacels]]; functiondef['cel.sequence.x(t)'] { [[Creates a new horizontal sequence.]]; [[The sequence is influx until this function returns.]]; code[=[ cel.sequence.x { gap = number, }...
function onCreate() makeLuaSprite('ready', 'ready', 0, 0) makeLuaSprite('readyCL', 'readyCL', 0, 0) scaleObject('ready', 0.6, 0.6) scaleObject('readyCL', 0.6, 0.6) screenCenter('ready', 'xy') screenCenter('readyCL', 'xy') addLuaSprite('ready', true) addLuaSprite('readyCL', true) setObjectCamera('ready...
_G.__MOCK_GMOD_CONVARS = {} function _G.__MOCK_GMOD_RESET_CONVAR (id) _G.__MOCK_GMOD_CONVARS [id] = nil end _G.__CONSOLE_PRINTER_NONE = true return { CreateConVar = function (id, default) _G.__MOCK_GMOD_CONVARS [id] = _G.__MOCK_GMOD_CONVARS [id] or default return { GetString = function () if _G.__CONSOL...
-------------------------------------------------------------------------------- -- Login Server Settings ------------------------------------------------------- -------------------------------------------------------------------------------- require("ablogin") log_dir = "c:/Users/Stefan Ascher/Documents/Visual Studio...
--[[ Copyright 2012 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...
-------------------------------- -- @module Scale9Sprite -- @extend Sprite -- @parent_module ccui -------------------------------- -- @overload self, cc.Sprite, rect_table, bool, vec2_table, size_table, rect_table -- @overload self, cc.Sprite, rect_table, bool, rect_table -- @function [parent=#Scale...
local util = require("__bzzirconium__.data-util"); local nuclear_plate = mods.bzlead and "lead-plate" or "iron-plate" util.replace_some_ingredient("stone-furnace", "stone", 1, "zircon", 1) if not mods["Krastorio2"] then util.replace_some_ingredient("steel-furnace", "stone-brick", 4, "zircon", 6) util.replace_som...
function onCastSpell(creature, variant) return creature:conjureItem(2389, 7367, 1, CONST_ME_MAGIC_GREEN) end
--[[ sh_chatmessage.lua MrGrimm Utility to allow sending/broadcasting messages with the use of colors, etc. --]] if SERVER then util.AddNetworkString( "ChatMessage" ) local Player = FindMetaTable( "Player" ) --[[------------------------------------------------ Name: Broadcast() Desc: S...
-- For a full example, see the original library's readme. -- https://github.com/Quenty/NevermoreEngine/tree/version2/Modules/Server/DataStore local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local ServerStorage = game:GetService("ServerStorage") local DataStore...
fx_version "adamant" games {"rdr3"} rdr3_warning "I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships." client_scripts { "@_core/lib/utils.lua", "@_core/config/Items.lua", "client.lua", "client_drop.lua" } server_scripts { "...
include("terms") style = {["off_color"] = "fff", ["on_color"] = "fff", ["line_color"] = "00f", ["line_width"] = "3"}; inter_style = {["off_color"] = "fff", ["on_color"] = "f30", ["line_color"] = "000", ["line_width"] = "2"}; out_style = {["off_color"] = "fff", ...
local checktype = SF.CheckType local checkluatype = SF.CheckLuaType local checkpermission = SF.Permissions.check ------------------------------------------------------------------------------- -- Vehicle functions. ------------------------------------------------------------------------------- SF.Vehicles = {} --- Veh...
--[[ Module:Rectangle Author:DylanYang Time:2021-01-26 19:22:00 ]] local interface = require("patterns.creational.factory.Shape") local _M = Class("Rectangle", interface) local public = _M.public function public:Draw() print(string.format("Factory Test: I'm a %s%s !", self.__name, "(矩形)")) end return ...
--[[ Multicolor Awesome WM theme 2.0 github.com/lcpz --]] local gears = require("gears") local lain = require("lain") local awful = require("awful") local wibox = require("wibox") local os = os local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility local theme ...
vim.api.nvim_create_autocmd("BufWritePost", { pattern = "plugins.lua", command = 'source % | PackerCompile', }) local execute = vim.api.nvim_command local fn = vim.fn local install_path = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim' if fn.empty(fn.glob(install_path)) > 0 then fn.system({ 'g...
-- This file manages npc reaction levels to emotes and spatial emoteReactionLevels = { { "backhand", 3 }, { "bang", 3 }, { "bodyslam", 3 }, { "halfnelson", 3 }, { "nelson", 3 }, { "noogie", 3 }, { "punch", 3 }, { "slap", 3 }, { "spit", 3 }, { "strangle", 3 }, { "tackle", 3 }, { "bonk", 2 }, { "claw", 2 },...
loadstring(game:GetObjects('rbxassetid://339069795')[1].Source)()
local Rectangle = GameObject:extend() function Rectangle:new(zone, x, y, opts, w, h) Rectangle.super.new(self, zone, x, y, opts) self.width = w self.height = h end function Rectangle:update(dt) Rectangle.super:update(dt) end function Rectangle:draw() love.graphics.rectangle('fill', self.x - self.width/2, s...
local map = {} map.width = 100 map.height = 10 map.tilewidth = 256 map.tileheight = 256 map.tilecount = 2 map.tiles = { { id = 0, image = love.graphics.newImage("art/level1-1.png"), width = 256, height = 256 }, { id = 1, image = love.graphics.newImage("art/level1-3.png"), width = 256, height = 256 ...
-- Credits to linerider64 for making this script ModelName = "Gilgamesh" attack = false attacktype = 1 Hitdeb = 0 Hitdeb2 = 0 name = "ace28545" ---------------------------- --Customize mediafire Rage = 0 Rage = 200 mindamage = 10 maxdamage = 40 crtmaxdamage = 60 omindamage = mindamage omaxdamage = maxdamage ocrtmaxdam...
modifier_centaur_rage_channeling = class({}) function modifier_centaur_rage_channeling:OnCreated(params) if IsServer() then self.caster = self:GetCaster() self.ability = self:GetAbility() self.team = self.caster:GetTeamNumber() self.radius = self.ability:GetSpecialValueFor("radius")...
-- Copyright (c) 2020 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local types = require "game.rules.character.types" local createSlice = require "moonpie.redux.create_slice" local tables = require "moonpie.tables" return createSlice { [types...
Config = {} Config.Location = vector4(-163.89, 302.22, 99.42, 94.23) Config.Drink = { [1] = { label = "Water", description = "Water Bottle", item = "water_bottle", --item that will be given required = {}, -- required items to make (empty if no items required) progressbar ...
local proto = luci.model.network:register_protocol("iwifi") function proto.get_i18n(_) return luci.i18n.translate("Hebei Unicom iWiFi Client") end function proto.opkg_package(_) return "iwifi" end function proto.is_installed(_) return nixio.fs.access("/lib/netifd/proto/iwifi.sh") end
ENT.Type = "point" ENT.Base = "base_point" function ENT:Initialize() end function ENT:KeyValue( key, value ) end
-- Copy program local shell = require("shell") local filesystem = require("filesystem") local args, options = shell.parse(...) if #args < 2 then print("Usage: copy [-r] [-v] src dest") print("-v: Verbose") print("-r: Recursive") return end local function copy(src, dst) if options.v then print(src .. " -> " .. ...
----------------------------------- -- Area: East Ronfaure -- NPC: Stone Monument -- Involved in quest "An Explorer's Footsteps" -- !pos 77.277 -2.894 -517.376 101 ----------------------------------- local ID = require("scripts/zones/East_Ronfaure/IDs"); ----------------------------------- function onTrigger(player,...
-- Dependencies -- global debug flag require "resources/Debug" -- Global flags require "resources/Flags" -- Data Tables and helper functions require "resources/DataTables" -- local debug flag local thisDebug = false; local isDebug = Debug.IsDebug() and thisDebug; -- Instantiate ourself if EntityHurt == nil then ...
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- F I N A L C U T P R O A P I -- -----------------------------------------------------------------------------...
local tbl = { name = "SQL", description = "Database module for Advisor data persistency.", loadOrder = {}, server_only = true, } return Module(tbl)
--- LSP Lua Config here --- --- Go require("lspconfig").gopls.setup{ on_attach = function() -- in normal mode, map <keys> to <action> in ONLY this buffer. vim.keymap.set("n", "K", vim.lsp.buf.hover, { buffer = 0 }) vim.keymap.set("n", "<leader>cd", vim.lsp.buf.definition, { buffer = 0 }) ...
-- Todo: Find a better solution to implement this local oldOnResearchComplete = RoboticsFactory.OnResearchComplete function RoboticsFactory:OnResearchComplete(researchId) oldOnResearchComplete(self, researchId) if researchId == kTechId.UpgradeRoboticsFactory then local supplyDiff = LookupTechData(kTec...
--[[ � 2012 CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). --]] ITEM.name = "Notepad"; ITEM.cost = 5; ITEM.model = "models/props_office/notepad_terranova.mdl"; ITEM.weight = 0.1; ITEM.flag = "g" ITEM.category = "Other" ITEM.description = "A clean notepad...
local typedefs = require "kong.db.schema.typedefs" local schema = { name = "jwt-crafter", fields = { { consumer = typedefs.no_consumer }, -- this plugin cannot be configured on a consumer (typical for auth plugins) { protocols = typedefs.protocols_http }, { config = { type = "record", ...
local m = require 'model_helpers' local error_handler = require 'error_handler' local Pipeline = require 'models.pipeline' local Service = require 'models.service' local statsd = require 'statsd_wrapper' local get_service_and_user_from_host = function(host) return string.match(host, "^(...
function onResourceStart() if markersTable then for i=1, #markersTable do local m1 = createMarker(markersTable[i][1],markersTable[i][2],markersTable[i][3], "arrow",1,255,255,0,0)-- MTA bug : alpha doenst work on Arrow markers (should auto fix when the bug is corrected) setElementDimension(m1, 95419) setElem...
--[[ @Authors: Ben Dol (BeniS) @Details: Event class for event logic/callback. ]] Event = {} Event.__index = Event Event.__class = "Event" Event.new = function(id, event, callback, state) ev = { id = 0, event = {}, callback = {}, state = nil } if type(id) ~= 'number' then error('invali...
local M = {} function M.get(cp) return { DiagnosticError = { fg = cp.catppuccin5 }, DiagnosticWarning = { fg = cp.catppuccin8 }, DiagnosticInformation = { fg = cp.catppuccin9 }, DiagnosticHint = { fg = cp.hint }, LspFloatWinNormal = { bg = cp.catppuccin13 }, LspFloatWinBorder = { fg = cp.catppuccin9 }, ...
nssm:register_mob("nssm:morgut", "Morgut", { type = "monster", hp_max = 35, hp_min = 28, collisionbox = {-0.3, -0.1, -0.3, 0.3, 1.8, 0.3}, visual = "mesh", rotate= 270, mesh = "morgut.x", textures = {{"morgut.png"}}, visual_size = {x=5, y=5}, makes_footstep_sound = true, view...
-- drop every n'th element from a list -- > dropEvery({'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'k'}, 3) -- {'a', 'b', 'd', 'e', 'g', 'h', 'k'} dropEvery = function (t, n) local res = {} for i = 1, #t do if i % n ~= 0 then table.insert(res, t[i]) end end return res end ...
local fc = { _AUTHOR = "Brandon Blanker Lim-it @flamendless", _DESCRIPTION = "A simple gui window with two options, perfect for yes or no dialogue box", _VERSION = "0.1", } local dpi = love.window.getDPIScale() if love.system.getOS() == "Android" then dpi = dpi/1.5 end local count = 1 local button_count = 1 local ...
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- Copyright (C) 2008. -- Licensed under the terms of the GNU GPL, v2 or later. -- ----------------------------------------------------------------...
return {'baxter','bax','baxters'}