content
stringlengths
5
1.05M
-- localised functions local format = string.format local match = string.match local gsub = string.gsub local serialize = serpent.line local debug_getupvalue = debug.getupvalue -- this local Debug = {} ---@return number next index local function increment() global.debug_message_count = global.debug_message_count ...
-- REPAIR AI -- Offset from repair target's center of mass. -- Note the Y value is ignored. RepairTargetOffset = Vector3(0, 0, 25) -- When considering other repair targets, they must -- be within this distance and within this altitude range RepairTargetMaxDistance = 1000 RepairTargetMaxParentDistance = 1000 RepairTar...
local Module = require('core/support/Module') local Cron = require('core/services/Cron') local GameLocale = require('core/services/GameLocale') local PlayerDevData = require('game/systems/PlayerDevData') local inkTooltipHelper = require('game/ui/ink/inkTooltipHelper') ---@class CharacterMainMenu : Module ---@field upg...
--- -- A canvas element for drawing canvases to Silicone menus -- @classmod Canvas local class = require("middleclass") local Base = require("silicone.elements.Base") local Canvas = class("silicone.Canvas", Base) --- -- Internal. -- Internal methods -- @section Internal --- -- Initializes a Canvas element -- @tpara...
-- holostorage nodes -- Common registrations dofile(holostorage.modpath.."/nodes/common.lua") -- Controller dofile(holostorage.modpath.."/nodes/controller.lua") -- Cabling dofile(holostorage.modpath.."/nodes/cable.lua") -- Disk drives dofile(holostorage.modpath.."/nodes/disk_drive.lua") -- Grids dofile(holostorage...
-------------------------------- -- Body abstraction for THOR-OP -- (c) 2013,2014 Stephen McGill, Seung-Joon Yi -------------------------------- --assert(ffi, 'Need LuaJIT to run. Lua support in the future') -- Utilities local vector = require'vector' local util = require'util' local si = require'simple_ipc' local Kin...
-- Copyright 2017-2022 Jason Tackaberry -- -- 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 agr...
function seqOpt(t,a) local e="<option" if(t=="-")then e=e.." selected" end e=e..">-</option>" for a,o in pairs(a)do e=e.."<option" if(t==a)then e=e.." selected" end e=e..">" e=e..a e=e.."</option>" end return e end function nextSeqStep(i,o,n,e) local t=file.open(i) if(t==true)then e=e+1 for e=0,e,1 do line=file.readlin...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = { PlaceObj('ResetBuildingExtraCost', { 'Resource', "Metals", 'BuildingClass', "MOXIE", }), PlaceObj('ModifyLabel', { 'Label', "MOXIE", 'Prop', "maintenance_threshold_base", 'ModifyId', "Ba...
----------------------------------- -- Omniscience -- Staff weapon skill -- Skill Level: N/A -- Lowers target's magic attack. Duration of effect varies with TP. Tupsimati: Aftermath effect varies with TP. -- Reduces enemy's magic attack by -10. -- Available only after completing the Unlocking a Myth (Scholar) quest. --...
local module = {} local runService = game:GetService("RunService") local replicatedStorage = game:GetService("ReplicatedStorage") local modules = require(replicatedStorage.modules) local network = modules.load("network") local itemLookup = require(game.ReplicatedStorage:WaitForChild("itemData")) module.tierColo...
-- ... init.lua require("neoscroll").setup({ hide_cursor = false, })
local configs = require "lspconfig/configs" local util = require "lspconfig/util" local root_files = { ".git", } configs.racket_langserver = { default_config = { cmd = { "racket", "--lib", "racket-langserver" }, filetypes = { "racket", "scheme" }, root_dir = function(filename) return util.root_p...
-- Game, by Tom Millichamp 2022 --The following few lines are just for using the debugger --remove once game is complete! if os.getenv("LOCAL_LUA_DEBUGGER_VSCODE") == "1" then require("lldebugger").start() end --Screen properties set in conf.lua STATE = {gameStart=false, gameOver=false, gamePaused=false, gameLev...
--[[--------------------------------------------------------- Name: string.ToTable( string ) -----------------------------------------------------------]] function string.ToTable ( str ) local tbl = {} for i = 1, string.len( str ) do tbl[i] = string.sub( str, i, i ) end return tbl end function string.Jav...
--[[ slimefriend! (c)2018 fluffy @ beesbuzz.biz. Please see the LICENSE file for license information. Useful utility functions ]] local util = {} -- Create an enum function util.enum(...) local enum = {} local meta = { __eq = function(o1, o2) return o1.val == o2.val end, ...
ChatCommands["!base_dump"] = function(playerId, command) Log(">> !base_dump - %s", command); local player = System.GetEntity(playerId); local plotSignId = player.player:GetActivePlotSignId() if plotSignId then local b = BaseBuildingSystem.GetPlotSign(plotSignId) if b then local numParts = b.plotsign:G...
local actions = require("telescope.actions") -- Set the leader. lvim.leader = "space" -- Prevent the cursor from jumping when joining lines lvim.keys.normal_mode["J"] = "mzJ`z" -- Make Y's behavior match D and C lvim.keys.normal_mode["Y"] = "y$" -- Make the default navigation keys respect wrapped lines. lvim.keys.n...
-- The Head Section -- description = [[Cisco ASA Version and Vulnerability Scan as an nmap NSE plugin. Attempt to grab the Cisco ASA version from the Cisco ASA. Checks for CVE-2014-2128 vulnerability and report exploitable status.]] --- -- @usage -- nmap --script cisco-asa-scan.nse -p 443 <target> -- @output -- PORT ...
--[[ MIT License Copyright (c) 2019 Michael Wiesendanger 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, mod...
return function() if hs.application.find("com.googlecode.iterm2") then hs.osascript.applescript([[ tell application "iTerm" create window with profile "With TMUX" activate end tell ]]) else hs.application.launchOrFocusByBundleID("com.googlecode.iterm2") end end
--- The main BSRocks extension bootstrapper -- @module howl.external.bsrocks local root = ... local fs = require "howl.platform".fs local BSRocksPackage = require(root .. ".BSRocksPackage") local BustedTask = require(root .. ".BustedTask") local LDocTask = require(root .. ".LDocTask") local Manager = require "howl.p...
AddCSLuaFile() ENT.Base = "nixbot_base" ENT.Spawnable = true ENT.Model = Model( "models/humans/group03/male_05.mdl" ) ENT.Options = { Weapon = { Class = "weapon_m4a1", Attachement = "anim_attachment_RH", BannedHoldtypes = { ["pistol"] = true } }, Combat = { BaseAccuracy = 0.32 }, ...
ITEM.name = "Kantrael MG Defender Pattern Service Laspistol" ITEM.description = "Despite its lack of killing power compared to the more potent weapons of the Imperial arsenal, the Laspistol remains the favorite sidearm of many an Imperial soldier." ITEM.model = "models/weapons/laspistol.mdl" ITEM.class = "weapon_laspis...
local ReactFiberUnwindWork = require "ReactFiberUnwindWork" local pi = require "pi" pi(ReactFiberUnwindWork)
-- Apply defaults local setting_defaults = { noise_spread = 1, terrain_scale = 1, tree_chance = 14*14 } for k, v in pairs(setting_defaults) do lualandmg[k] = tonumber(minetest.settings:get("lualandmg."..k)) or v end assert(lualandmg.noise_spread > 0, "LuaLandMG: Setting noise_spread must be > 0") assert(lual...
local summary = require "gateway.module.summary" local status = require "gateway.module.status" local common = require "gateway.module.common" local function start() summary.log() status.log() end xpcall(start, common.err_handle)
local FindRoact = require(script.Parent.findRoact) local Roact = FindRoact() local e = Roact.createElement local function boxContainsPoint(x, y, width, height, point) local a = point.X >= x and point.X <= x + width local b = point.Y >= y and point.Y <= y + height return a and b end local Checkbox = Roact...
local GameConst = require 'scripts.game-const' local Codes = {} local codes = {} local function normalize(s) return s:gsub("[-_]", ""):lower() end local function normalize_keys(t) local normalized = {} for k, v in pairs(t) do normalized[normalize(k)] = v end return normalized end for k, t in pairs(G...
-- Objects local FDTGui = Instance.new("ScreenGui") local GUI = Instance.new("Frame") local Welcome = Instance.new("TextLabel") local VanGUI = Instance.new("TextButton") local Bomber = Instance.new("TextButton") local Toadroast = Instance.new("TextButton") local WildRevolvers = Instance.new("TextButton") local Remove ...
Objects = { createObject (12990,987.59998,-2307.5,16.6,340,0,287.5), createObject (12990,961.09998,-2315.8,26.9,339.999,0,287.496), createObject (12990,935.5,-2323.8,37.1,339.999,0,287.496), createObject (3458,917.09998,-2329.6001,43.6,0,0,286), createObject (3458,908.29999,-2333.1001,45.7,0,0,286), createObject (3458...
-- hide the test button -- ShowTestButton(false); --USui_Event("ShowTestButton", false) USui_Event("ShowTestButton", true)
settings = NewSettings() src = CollectRecursive("*.cpp") objs = Compile(settings, src) exe = Link(settings, "output/creation/gc_app", objs)
#!/usr/bin/env bee -- require('console').listen('127.0.0.1:33333') local listen = require('os').getenv('TNT_LISTEN_URI') box.cfg { listen = listen == '' and 3301 or listen, log_level = 6, wal_mode = 'none', snap_dir = '/tmp', slab_alloc_arena = .1, } local function create_user(username, password...
dofile("common.inc"); function doit() askForWindow( "Pin Deep Well window(s)\n\n".. "Will auto repair if leather/oil in inventory\n\n" .. "Start the macro." ); while true do checkBreak(); waitForEnd(); local wells = findAllText("This is [a-z]+ Deep Well", nil, REGION + REGE...
function boiling_blood(keys) local caster = keys.caster local target = keys.target local ability = keys.ability local damage_caster = caster:GetHealth() * ability:GetSpecialValueFor("hp_percent_caster") / 100 local damage_target = caster:GetHealth() * ability:GetSpecialValueFor("hp_percent_target") ...
--------------------------------------------------------------------------- -- @author Uli Schlachter -- @copyright 2010 Uli Schlachter -- @module gears --------------------------------------------------------------------------- return { color = require("gears.color"); debug = require("gears.debug"); obje...
object_tangible_component_armor_armor_core_assault_advanced = object_tangible_component_armor_shared_armor_core_assault_advanced:new { } ObjectTemplates:addTemplate(object_tangible_component_armor_armor_core_assault_advanced, "object/tangible/component/armor/armor_core_assault_advanced.iff")
local zmq = require"zmq" zmq.poller = require'zmq.poller' local serialize = require'tango.utils.serialization'.serialize local unserialize = require'tango.utils.serialization'.unserialize local dispatcher = require'tango.dispatcher' local default = require'tango.config'.server_default local print = print module('tango...
local fmt = string.format local ERR_INVALID_TYPE = "getLuminance(...): The `%s` argument must be a %s, but you passed %q (%s)" local function transformValue(value: number): number return value <= .03928 and value / 12.92 or ((value + .055) / 1.055) ^ 2.4 end return function(colour: Color3): number assert(typ...
local function get_buffer_width(buffer_number) local buffer_lines = vim.api.nvim_buf_get_lines(buffer_number, 0, -1, false) local longest_line = '' for _, line in ipairs(buffer_lines) do if #line > #longest_line then longest_line = line end end return #longest_line end local function get_buff...
--- Converts ANSI colour sequences in <code>text</code> to colour tags that can be processed by the decho() function. Italics and underline not currently supported since decho doesn't support them. --- See also: --- see: decho() --- ANSI bold is available since Mudlet 3.7.1+. --- R --- ## Parameters --- * `text:` ---...
-- fix angel's backwards bonuses if data.raw.module["angels-bio-yield-module"] and data.raw.module["angels-bio-yield-module"].effect["pollution"].bonus > 0 then data.raw.module["angels-bio-yield-module"].effect["pollution"].bonus = -data.raw.module["angels-bio-yield-module"].effect["pollution"].bonus data.raw.module[...
ITEM.name = "Bloodsucker Meat" ITEM.description = "Uncooked meat from a Bloodsucker." ITEM.longdesc = "Bloodsucker meat is stringy and thus not suited for eating. Although bloodsuckers are fearsome beasts, the price of the meat is not very high due to its limited use. Can be sold to the scientists. Moreover, it can als...
local true_zen = require("true-zen") true_zen.setup({ ui = { bottom = { laststatus = 0, ruler = false, showmode = false, showcmd = false, cmdheight = 1, }, top = { showtabline = 0, }, left = { ...
return { "000_base_hmac_auth", "001_14_to_15", }
--[[ This examples illustrates the semantics of mixed unicast and broadcast primitives on a shared channel ]] require "pithreads" NBRECEIVERS = tonumber(arg and arg[1]) or 10 NBMSG = tonumber(arg and arg[2]) or 100 function Receiver(proc,id,chan) while true do local m = proc:receive(chan) print("Receiver# ...
local wibox = require('wibox') local theme = require('theme.theme') local updates_widget = wibox.widget { text = "", background_color = theme.bg_focus, widget = wibox.widget.textbox } awesome.connect_signal("package::updates", function(nb_updates) updates_widget.text = "📦 "..nb_updates end) return ...
local imp_4 = import("hover4_import.lua") print(imp_4.aaa) print(imp_4.ddd) print(imp_4.bbb) print(imp_4.ccc)
local _, private = ... --[[ Lua Globals ]] -- luacheck: globals --[[ Core ]] local Aurora = private.Aurora local Hook, Skin = Aurora.Hook, Aurora.Skin local Color, Util = Aurora.Color, Aurora.Util do --[[ SharedXML\AddonList.lua ]] function Hook.TriStateCheckbox_SetState(checked, checkButton) local check...
Config = {} Config.EnableCutscene = true --// ENABLE IF YOU CAN WAGON CUTSCENE Config.FirstSpawnCoords = vector3(2541.934,-363.564,41.574) -- // COORDINATES TO SPAWN PLAYER IF CUTSCENE IS DISABLED
-- 23.6 析构器 local finalizer = function (object) if object.last_words then print(string.format("\"%s\" from %s", object.last_words, object.name)) end end local mt = {__gc = finalizer} local ed = { last_words = "bye", name = "edwardchen"} local tom = { last_words = "wtf?", name = "tom"} setmetatable(ed...
local mysql = exports.mrp_mysql local bone = exports.mrp_bone_attach local playerWearables = {}; addEventHandler("onResourceStart", resourceRoot, function() for index, player in ipairs(getElementsByType("player")) do playerWearables[player] = {} player:setData("usingArtifacts", {}) ...
local object = require "es.object" local utils = require "es.utils.utils" local delete_response = object:extend() function delete_response:new(response_data) delete_response.super.new(self, "delete_response") if "string" == type(response_data) then self._response_data = response_data self._res...
------------------------------------------------ -- Copyright © 2013-2020 Hugula: Arpg game Engine -- discription -- author -- data ------------------------------------------------ local View = View local VMState = VMState local VMGroup = VMGroup --lua local DIS_TYPE = DIS_TYPE local lua_binding = lua_binding loc...
-- -- Generated from solve.lt -- local ty = require("lt.type") local Tag = require("lt.tag") local TType = Tag.Type return function() local subs = {} local Subst = {} local subst = function(node, tvar, texp) assert(tvar.tag == TType.New) local rule = Subst[node.tag] if rule then ...
-- lm_trans.lua: Between-vault transporter markers. See the syntax guide for -- details on usage. require('dlua/util.lua') -- A subclass of PortalDescriptor that sets the _transporter_name property with -- a unique name. Transporter = util.subclass(PortalDescriptor) Transporter.CLASS = "Transporter" function Transpo...
local target = "" -- put your leader name there local ValidMonsters = {"Wyvern", "Bonebeast", "Necromancer", "Vicious Squire", "Blood Priest", "Lich", "Hero", "Renegade Knight", "Vile Grandmaster", "Undead Gladiator"} local MonsterCheck = {} local MonsterAmount = 0 function setMonsters() for _, mname in pairs...
BehTree={} require 'Enum' require 'StackList' require 'TaskRoot' require 'ITask' require 'IParent' require 'IAction' require 'IComposite' require 'IConditional' require 'IDecorator' --复合节点() require 'Selector' require 'Sequence' --修饰节点 require 'Repeater' require 'ReturnFailure' require 'ReturnSuccess' require 'UntilFai...
restrictedWeapons = {} for i=0, 15 do restrictedWeapons[i] = true end mysql = exports.mrp_mysql function elKoy(plr, commandName, targetName, weaponSerial) if getElementData(plr, "faction") == 1 or getElementData(plr, "faction") == 78 then if not (targetName) or (not weaponSerial) then return outputChatBox("||...
local lsp_status = require 'plugins.lsp-status' local home = os.getenv 'HOME' local omnisharp_bin = home .. '/Repositories/language-servers/omnisharp-osx/run' local pid = vim.fn.getpid() -- The nvim-cmp almost supports LSP's capabilities so You should advertise it to LSP servers.. local capabilities = vim.lsp.protoco...
local Enemy = require 'nodes/enemy' local gamestate = require 'vendor/gamestate' local sound = require 'vendor/TEsound' local Timer = require 'vendor/timer' local Projectile = require 'nodes/projectile' local sound = require 'vendor/TEsound' local utils = require 'utils' local app = require 'app' local window = requir...
---------------------------------------------------------------------------------------------------- -- Client Lua Script for RaidCore Addon on WildStar Game. -- -- Copyright (C) 2015 RaidCore ---------------------------------------------------------------------------------------------------- --------------------------...
local parser = require("parser.main") local lua = require("parser.lua") local lrtable = parser.loadLanguage(lua) parser.saveLRTable(lrtable, "parser/lualr.lua")
function Drifter:SetIncludeRelevancyMask(includeMask) if self:GetTeamNumber() == kTeam1Index then includeMask = bit.bor(includeMask, kRelevantToTeam1Commander) elseif self:GetTeamNumber() == kTeam2Index then includeMask = bit.bor(includeMask, kRelevantToTeam2Commander) end ScriptActor....
if not modules then modules = { } end modules ['data-lst'] = { version = 1.001, comment = "companion to luat-lib.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } -- used in mtxrun, can ...
ALLEGRO_LIBS = { "UnitTest", "Renderer-Allegro", "GWEN-Static", "allegro-5.0.4-monolith-mt" } ALLEGRO_LIBS_D = { "UnitTest", "Renderer-Allegro", "GWEN-Static", "allegro-5.0.4-monolith-mt-debug" } SFML_LIBS = { "UnitTest", "Renderer-SFML", "GWEN-Static", "sfml-main", "sfml-graphics-s", "sfml-window-s", "sfml-sy...
local heart = require("heart") local M = heart.class.newClass() function M:init(game, config) self.game = assert(game) self.inputDomain = assert(self.game.domains.input) end function M:handleEvent(x, y, dx, dy, istouch) self.inputDomain.accumulatedMouseDx = self.inputDomain.accumulatedMouseDx + dx self.input...
local js = require "js" local electron = require "electron" -- Helper to copy lua table to a new JavaScript Object -- e.g. Object{mykey="myvalue"} local function Object(t) local o = js.new(js.global.Object) for k, v in pairs(t) do assert(type(k) == "string" or js.typeof(k) == "symbol", "JavaScript only has string ...
-- Phoenix Project © 2016 SWEP.VElements = { ["saiga"] = { type = "Model", model = "models/arxweapon/saiga.mdl", bone = "v_weapon.AK47_Parent", rel = "", pos = Vector(-0, 3.5, 2.596), angle = Angle(90, 90, 0), size = Vector(0.8, 0.8, 0.8), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", ...
--##################################################################################################################### --# ServerSync Main Config Options # --##############################################################################...
-- Schema info Schema.name = "STALKER: Call of the Zone" Schema.author = "gumlefar, verne, the cotz community" Schema.description = "A multiplayer STALKER gamemode" --Schema.logo = "vgui/background/wallpaper.jpg" ix.util.Include("libs/thirdparty/sh_netstream2.lua") -- Additional files that aren't auto-included should...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. rancor_common = { description = "", minimumLevel = 0, maximumLevel = 0, lootItems = { {itemTemplate = "rancor_bile", weight = 2500000}, {itemTemplate = "rancor_hides", weight = 2500000}, {itemTemplate = "rancor_padded_armor_segment", weight = ...
-- getlines.lua -- getlines iterator - iterates over a string and returns one item per line function getlines (str) local pos = 0 -- the for loop calls this for every iteration -- returning nil terminates the loop local function iterator (s) if not pos then return nil end -- end of string,...
#!/usr/bin/env lua Lib = { foo = function (x, y) return x + y end, goo = function (x, y) return x - y end } -- or Lib1 = {} Lib1.foo = function (x,y) return x + y end Lib1.goo = function (x,y) return x - y end -- or Lib = {} function Lib.foo (x,y) return x + y end function Lib.goo (x,y) return x - y end ...
local helpers = require('test.functional.helpers')(after_each) local clear = helpers.clear local exec_lua = helpers.exec_lua local eq = helpers.eq local nvim = helpers.nvim describe('vim.lsp.diagnostic', function() local fake_uri before_each(function() clear() exec_lua [[ require('vim.lsp') ...
--[[ # Element: Alternative Power Bar Handles the visibility and updating of a status bar that displays encounter- or quest-related power information, such as the number of hour glass charges during the Murozond encounter in the dungeon End Time. ## Widget AlternativePower - A `StatusBar` used to represent the unit'...
--- @classmod core.graphics.RenderTarget --- (aka framebuffer) local engine = require 'engine' local class = require 'middleclass' local Object = class.Object local Scheduler = require 'core/Scheduler' local Camera = require 'core/graphics/Camera' local ShaderProgramSet = require 'core/graphics/ShaderProgramSet' l...
-- frosttrees and associated nodes lifted directly from ethereal local _ = {name = "air", prob = 0} local l = {name = "realms:frost_leaves", prob = 255} local t = {name = "realms:frost_tree", prob = 255} bd_odd_biomes.frost_tree = { size = {x = 8, y = 19, z = 8}, yslice_prob = { {ypos = 0, prob = 127}, -- trunk ...
local drv = require("driver") local args, ops = require("shell").parse(...) local t = args[1] if not t then print("Usage: driverinfo [driver type]") return end local driver = drv[t] if driver == nil then io.stderr:write("No driver recognized with type \"" .. tostring(t) .. "\"\n") return end local function pret...
local event = require("event") local luatexts = require("luatexts") local room = require("room") local staff = require("staff") local transform = require("transform") local vars local M = {} M.delete = function () if love.filesystem.getInfo(FILE_SAVE) ~= nil then love.filesystem.remove(FILE_SAVE) end end M...
--[[------------------------- --{{----------------- Colour Tables -----------------}}-- -------------------------]]-- -- CLUT VALUES CLUT = { { r = 1.0, g = 1.0, b = 1.0, a = 1.0 }, -- white { r = 1.0, g = 0.5, b = 0.0 }, -- orange { r = 1.0, g = 1.0, b = 0.0 }, -- yellow { r = ...
minetest.register_craftitem("rangedweapons:thrown_javelin", { wield_scale = {x=2.0,y=2.0,z=1.0}, inventory_image = "rangedweapons_thrown_javelin.png", }) minetest.register_craftitem("rangedweapons:javelin", { description = "" ..core.colorize("#35cdff","Javelin\n") ..core.colorize("#FFFFFF", "Mele damage: 9\n") ...
bc.admin = {} function bc.admin.sendAdmin( ply, text ) if not bc.manager.canMessage( ply ) then return end bc.logs.sendLogConsole( bc.defines.channelTypes.ADMIN, "Admin", ply, ": ", text ) local plys = {} for k, p in pairs( player.GetAll() ) do if bc.settings.isAllowed( p, "seeasay" ) then ...
-- -- Override “Fast Travel to Base“ taxi amCoins requirement. -- local performAction = Miscreated.PerformAction Miscreated.PerformAction = function(self, srcId, objId, name) --Log(">> Miscreated.PerformAction") if name == "@teleport_to_base" then local player = System.GetEntity(srcId) if (player and player.I...
-- -- gh-2937: allow to specify collation in field definition. -- format = {} format[1] = {name = 'field1', type = 'string', collation = 'unicode'} format[2] = {'field2', 'any', collation = 'unicode_ci'} format[3] = {type = 'scalar', name = 'field3', collation = 'unicode'} s = box.schema.create_space('test', {format = ...
local addonName, addon = ... addon = LibStub("AceAddon-3.0"):NewAddon(addon, addonName, "AceEvent-3.0", "AceConsole-3.0") local L = LibStub("AceLocale-3.0"):GetLocale(addonName) local AceConfigRegistry = LibStub("AceConfigRegistry-3.0") local AceConfigDialog = LibStub("AceConfigDialog-3.0") local AceDB = LibStub("...
-- Copyright (c) 2020 David Vogel -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT D3stats = D3stats or {} -- Includes include("sh_settings.lua") include("sh_level.lua") include("sh_concommand.lua") include("cl_network.lua") include("cl_hud.lua") include("vgui/overlay.l...
bt.register_action("Destroy", { tick = function(node, data) print("Destroying target") if data.targetPos == nil then return "failed" end -- too far away if distance(data.targetPos, data.pos) > data.mob.reach then return "failed" end minetest.set_node(data.targetPos, {name="air"}) r...
-- Stand User Kujo Jotaro local s, id = GetID() function s.initial_effect( c ) local e2 = Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_CONTINUOUS) e2:SetCode(EVENT_BATTLE_DESTROYING) e2:SetCondition(s.condition) e2:SetOperation(s.operation) c:RegisterEffect(e2) end function s.conditio...
//________________________________ // // NS2 Single-Player Mod // Made by JimWest, 2012 // //________________________________ Script.Load("lua/FunctionContracts.lua") Script.Load("lua/PathingUtility.lua") NpcOnosMixin = CreateMixin( NpcOnos ) NpcOnosMixin.type = "NpcMarine" NpcOnosMixin.expectedMixins = { ...
-- angrybino -- Signal -- October 09, 2021 --[[ -- Static methods: Signal.new() --> Signal [] Signal.IsSignal(self : any) --> boolean [IsSignal] -- Instance members: Signal.ConnectedConnectionCount : number -- Instance methods: Signal:Connect(callback : function) --> Connection [] Signal:Fire(tuple : a...
require("lib.lclass") require("lib.ecs.Component") class "RotationComponent" ("Component") function RotationComponent:RotationComponent(speed, value) self.typeName = "RotationComponent" self.speed = speed or 0 self.value = value or 0 end
#!/usr/local/openresty/bin/resty ngx.say(ngx.config.debug) -- 是否是 debug 版本 ngx.say(ngx.config.prefix()) -- 安装目录 ngx.say(ngx.config.nginx_version) -- nginx 版本, 如 1015008 -> 1.015.008 -> 1.15.8 ngx.say(ngx.config.nginx_configure()) -- 编译选项 ngx.say(ngx.config.subsystem) -- 所在子系统名称 ngx.say(n...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' 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...
-- mirror (by raja) - a softcut-based looper local mirror = {}; mirror.sq = include('lib/stolensequins') mirror.countr = 0; mirror.countrend = 0; mirror.countp = 0; mirror.vox_num = 1 mirror.loop_end = 1; mirror.length = 1; mirror.rec_len = 1; mirror.rec_track = 0 mirror.clink = 0; mirror.strt = 0; mirror.rec_noff = 0;...
--WAF config file,enable = "on",disable = "off" --waf status config_waf_enable = "on" --log dir config_log_dir = "/usr/local/nginx/logs/waf" --rule setting config_rule_dir = "/usr/local/nginx/conf/waf/wafconf" --enable/disable white url config_white_url_check = "on" --enable/disable white ip config_white_ip_check = "o...
-- Application example gpio.mode(3, gpio.OUTPUT) --green gpio.mode(4, gpio.OUTPUT) --blue gpio.mode(7, gpio.OUTPUT) --white gpio.mode(8, gpio.OUTPUT) --yellow function run() mq:subscribe('rc/track/move',0, function(msg) print('move ' .. msg) if msg == 'f' then gpio.write(3, gpio.HIGH) ...
---@class ItemInfoWindow_NodeDetail ---@field itemData Bag_ItemData local ItemInfoWindow_NodeDetail = DClass("ItemInfoWindow_NodeDetail", BaseComponent) _G.ItemInfoWindow_NodeDetail = ItemInfoWindow_NodeDetail function ItemInfoWindow_NodeDetail:ctor(data) end function ItemInfoWindow_NodeDetail:onInit() end ---@param...
local ar = include("activerecord.lua"); --[[ This should be set to something short and unique to your project. Default is "ar". ]]-- ar:SetPrefix("test"); --[[ Here we set up the model for our object. In this case, the object represents a generic user. ]]-- ar:SetupModel("User", function(schema, replication) ...