content
stringlengths
5
1.05M
------------------------------------------------- Momentary Button ---------------------------------------------------------- panelWidget["button"] = { name = "button", realName = "Button", wireType = 2, paramTable = { label = {index = 1, default = "", realName = "Label:", stool = {stype = 2}}, fontSize...
C_Mail = {} ---@return boolean canCheckInbox ---@return number secondsUntilAllowed ---[Documentation](https://wow.gamepedia.com/API_C_Mail.CanCheckInbox) function C_Mail.CanCheckInbox() end ---@param inboxIndex number ---@return boolean inboxItemHasMoneyAttached ---[Documentation](https://wow.gamepedia.com/API_C_Mail...
local function sendAttr(connection, attr, val) connection:send("<li><b>".. attr .. ":</b> " .. val .. "<br></li>\n") end return function (connection, req, args) dofile("httpserver-header.lc")(connection, 200, 'html') connection:send('<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>A Lua scri...
require "/scripts/util.lua" require "/items/buildscripts/abilities.lua" function build(directory, config, parameters, level, seed) local configParameter = function(keyName, defaultValue) if parameters[keyName] ~= nil then return parameters[keyName] elseif config[keyName] ~= nil then return config...
CodexDB["items"]["esMX-tbc"]={ [119]="Deprecated Rogue\'s Vest", [143]="Monster - Shield, Stormwind Guard", [886]="Espada corta de metal negro", [997]="_", [1024]="_", [1027]="_", [1117]="Monster - Item, Fishing Pole", [1166]="_", [1167]="_", [1189]="_", [1193]="_", [1217]="Recompensa desconocida", [1254]="Piedra de fu...
local lspconfig = require "lspconfig" lspconfig.tsserver.setup { init_options = require("nvim-lsp-ts-utils").init_options, on_attach = function(client, bufnr) -- disable tsserver formatting if you plan on formatting via null-ls client.resolved_capabilities.document_formatting = false client.resolved_ca...
-- Decompiled using luadec 2.2 rev: for Lua 5.2 from https://github.com/viruscamp/luadec -- Command line: A:\Steam\twd-definitive\scripteditor-10-31-20\s1_lighting_improvements\WDC_pc_WalkingDead101_data\env_drugstoreInterior_temp.lua -- params : ... -- function num : 0 , upvalues : _ENV require("Relighting.lua") ...
TOOL.Tab = "Aperture Science" TOOL.Category = "Construction" TOOL.Name = "#tool.aperture_ball_catcher.name" TOOL.ClientConVar["keygroup"] = "45" local CATCHER_MODEL = "models/aperture/combine_ball_catcher.mdl" if CLIENT then language.Add("tool.aperture_ball_catcher.name", "High Energy Pellet Catcher") languag...
return {[[ score:0 score: 9 game.speed : 19 a.b.c: 2 fun : {} pos: [2,9] bitmap: ### #-# ### bricks: [ ### ###, # ] bricks: [ -# ## #- , --- ] hiscore : game.score ]], { {"assign", {"var", "score"}, {"get", {"num", "0"}}}, {"assign", {"var", "score"}, {"get", {"num", "9"}}}, {"assign", {"var", {"call...
require("@vue/compiler-core") require("compiler-dom/src/transforms/vText") require("compiler-core/src/transforms/transformElement") require("compiler-core/__tests__/testUtils") require("@vue/shared/PatchFlags") require("compiler-dom/src/errors/DOMErrorCodes") local parse = baseParse function transformWithVText(templat...
--[[ author:{JanRoid} time:2019-1-30 Description: 数据类 功能: 1、自动创建数据类 2、存数据(字段,数据类,表) 3、取数据(字段,对象) 4、数据绑定(主动,自动释放)使用消息机制 5、属性绑定(主动,自动释放)使用消息机制 6、清空数据 使用场景:1、纯数据保存,不存在逻辑类 ]] local Model = class("Model") Model.s_dataPools = {} Model.s_watcherPools = {}...
--[[ © 2015 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 --]] CW_SPANISH = Clockwork.lang:GetTable("Spanish"); CW_SPANISH["DisplayTypingWhi...
local Sword = script:GetCustomProperty("Sword"):WaitForObject() local Magic = script:GetCustomProperty("Magic"):WaitForObject() local Flower = script:GetCustomProperty("Flower"):WaitForObject() local Equipment = script.parent.parent function SCast(ability) end function MCast(ability) end function FCast(ability) end ...
----------------------------------- -- Ability: Building Flourish -- Enhances potency of your next weapon skill. Requires at least one Finishing Move. -- Obtained: Dancer Level 50 -- Finishing Moves Used: 1-3 -- Recast Time: 00:10 -- Duration: 01:00 -- -- Using one Finishing Move boosts the Accuracy of your next weapon...
ITEM.name = "ВАЗ-2121" ITEM.physDesc = "" ITEM.maxGas = 1000 ITEM.price = 219080 ITEM.weight = 0.05 ITEM.exRender = false ITEM.vehicleData = { type = TYPE_GENERIC, model = "models/kek1ch/niva/niva_fixed.mdl", script = "scripts/vehicles/lada/vaz/niva_fixed.txt", name = ITEM.name, physDesc = ITEM.physD...
WireToolSetup.setCategory("Other") WireToolSetup.open("user", "User", "gmod_wire_user", nil, "Users") if CLIENT then language.Add("Tool.wire_user.name", "User Tool (Wire)") language.Add("Tool.wire_user.desc", "Spawns a constant user prop for use with the wire system.") language.Add("Tool.wire_user.range",...
function date_translator(input, seg) if (input == "date") then --- Candidate(type, start, end, text, comment) yield(Candidate("date", seg.start, seg._end, os.date("%Y-%m-%d"), "")) yield(Candidate("date", seg.start, seg._end, os.date("%Y年%m月%d日"), "")) yield(Candidate("date", seg.sta...
local _events = {} local _eventId = 0 local _allEvents = {} local Event = {} function Event.addEvent(eventNames) if type(eventNames)~="table" then eventNames = {eventNames} end for _, eventName in ipairs(eventNames) do if not Event[eventName] then _eventId = _eventId+1 ...
-- just executing the command os.execute("ls") -- to execute and capture the output, use io.popen local f = io.popen("ls") -- store the output in a "file" print( f:read("*a") ) -- print out the "file"'s content
local internal = require "fakefs.internal" internal.init() -- create the rootdir for _, modname in ipairs{ "io", "fakefs.internal" } do local io = require(modname) print("- try with "..modname..":") local fd = io.open("a", "w") fd:write("hello") fd:write(" world") fd:close() local fd = io.open("a", "r") if ...
local util = require "util" local serpent = require "serpent" local fmt_file_header = [[ -- Code generated by sprotodump -- DO NOT EDIT! return ]] local stream = {} stream.__index = stream function stream:write(str) table.insert(self.lines, str) end function stream:dump() return table.concat(self.lines, "\n...
----------------------------------------------------------------------- -- Upvalued Lua API. ----------------------------------------------------------------------- local _G = getfenv(0) -- WoW local GetAchievementInfo = _G.GetAchievementInfo -- --------------------------------------------------------------------------...
-- Copyright (C) 2018 Jérôme Leclercq -- This file is part of the "Not a Bot" application -- For conditions of distribution and use, see copyright notice in LICENSE local client = Client local config = Config local discordia = Discordia local bot = Bot local enums = discordia.enums local wrap = coroutine.wrap Module....
local M = {} function M.setup(config) config = config or {} require('editor').setup(config.editor) vim.g.mapleader = ";" require('keymap') vim.cmd [[packadd packer.nvim]] require('packer').startup(function() use 'wbthomason/packer.nvim' use { 'kyazdani42/nvim-tree.lua', r...
local function num_to_num36(num) local num36 = "" while num > 0 do local remainder = num%36 if remainder>9 then num36 = string.char(remainder-10+97) .. num36 else num36 = string.char(remainder+48) .. num36 end num = math.floor(num/36) end ...
local Logger = require('user.smartshack-logger') local Check = require('user.smartshack-check') local Cbus = require('user.smartshack-cbus') local Channel = require('user.smartshack-channel') local Prt3 = { serialPort = nil, currentRead = '', LINE_TERMINATOR = '\r', readLines = {}, writeLineDatas = {} } loc...
local ffi = require('ffi') ffi.cdef([[ void free(void*); typedef struct Point { double x; double y; } Point; double point_distance(const Point* a, const Point* b); Point* point_unit(const Point* p); void point_polar(const Point* p, double* size, double* angle); ]]) local C = ffi.C local Point = {} Point...
package("geant4") set_homepage("https://geant4.web.cern.ch/") set_description("Geant4 is a toolkit for the simulation of the passage of particles through matter.") add_urls("https://geant4-data.web.cern.ch/releases/geant4_$(version).zip", {version = function (version) return format("%02d_%02d_p%02...
AddCSLuaFile() ENT.Base = "bw_base_moneyprinter" ENT.Model = "models/props_lab/reciever01a.mdl" ENT.Skin = 0 ENT.Capacity = 28000000 ENT.PrintInterval = 1 ENT.PrintAmount = 15000 ENT.PrintName = "Tanzanite Printer" ENT.FontColor = Color(51, 102, 255) ENT.BackColor = color_black ENT.IsValidRaidable = true ENT....
local L = NugRunning.L if GetLocale() ~= "ruRU" then return end -- L["NugRunning Spell List"] = "NugRunning Список Способностей" L["NugRunning Settings"] = "NugRunning Настройки" L["Anchors"] = "Позиция" L["Unlock"] = "Открепить" L["Lock"] = "Закрепить" L["Reset"] = "Сброс" L["Texture"] = "Текстура" L["Width"] = "Шир...
----------------------- frame -------------------------- local frame = CreateFrame("Frame") ----------------------- callbacks -------------------------- local callback = {} callback.__index = callback function callback:match(func, spec) return ((self.id == tostring(func)) and (self.spec == spec)) end function ca...
if GameMode == nil then _G.GameMode = class({}) end -- clientside KV loading require('addon_init') require('components/api/init') if IsInToolsMode() then -- might lag a bit and backend to get errors not working yet require('internal/eventtest') end require('libraries/adv_log') -- be careful! this library can hide ...
return { summary = 'Set the total mass of the Collider.', description = 'Sets the total mass of the Collider.', arguments = { { name = 'mass', type = 'number', description = 'The new mass for the Collider, in kilograms.' } }, returns = {}, related = { 'Collider:getMassData', ...
content("application/javascript") setheader("Cache-Control", "no-cache") -- Use a Redis list for the comments comments = List("comments") if method() == "POST" then -- Add the form data to the comment list, as JSON (NOTE: unsantizied) comments:add(json(formdata())) else -- Combine all the JSON comments to a JSO...
return Command 'harrypotter' :setCategory 'Fun' :setDesc 'Returns what house youre in.' :setAliases {'harry', 'potter','sortinghat', 'sort', 'house'} :run(function(msg, args, util) util.request { url = 'https://www.potterapi.com/v1/sortingHat'; parser = { ...
local systemTime = hs and hs.timer.secondsSinceEpoch or os.time local t = systemTime() -- ok, it's not optimized and repeats a lot of calculations, but it's still very fast local matrix = { { 08, 02, 22, 97, 38, 15, 00, 40, 00, 75, 04, 05, 07, 78, 52, 12, 50, 77, 91, 08, }, { 49, 49, 99, 40, 17, 81, 18, 57, 6...
local ffi = require 'ffi' local THNN = require 'nn.THNN' local THCUNN = {} -- load libTHCUNN THCUNN.C = ffi.load(package.searchpath('libTHCUNN', package.cpath)) -- load THC local THC = ffi.os == 'Windows' and ffi.load('THC') or ffi.C local THCState_ptr = ffi.typeof('THCState*') function THCUNN.getState() return...
event_exchange_dealer_template = ConvoTemplate:new { initialScreen = "first_screen", templateType = "Lua", luaClassHandler = "event_exchange_dealer_convo_handler", screens = {} } event_exchange_dealer_items_screen = ConvoScreen:new { id = "items_screen", leftDialog = "", customDialogText = "Plea...
local __exports = LibStub:NewLibrary("ovale/BaseState", 80000) if not __exports then return end local __class = LibStub:GetLibrary("tslib").newClass local __State = LibStub:GetLibrary("ovale/State") local OvaleState = __State.OvaleState local __Ovale = LibStub:GetLibrary("ovale/Ovale") local Ovale = __Ovale.Ovale local...
local constants = require "kong.constants" local BasePlugin = require "kong.plugins.base_plugin" local responses = require "kong.tools.responses" local EscherWrapper = require "kong.plugins.escher.escher_wrapper" local ConsumerDb = require "kong.plugins.escher.consumer_db" local KeyDb = require "kong.plugins.escher.key...
local _, private = ... --[[ Lua Globals ]] -- luacheck: globals --[[ Core ]] local Aurora = private.Aurora local Skin = Aurora.Skin local Util = Aurora.Util --do --[[ FrameXML\VideoOptionsFrame.lua ]] --end --do --[[ FrameXML\VideoOptionsFrame.xml ]] --end function private.FrameXML.VideoOptionsFrame() Skin.Opt...
response = "" sv=net.createServer(net.TCP, 30) sv:listen(9898,function(c) c:on("receive", function(c, pl) t = cjson.decode(pl) for k,v in pairs(t) do if( k == "help_get") and ( v == 1) then response = getHelp() end if( k == "power_get") and ( v == 1) then respon...
local composer = require( "composer" ) comms = require "communication" json = require ("json") playerid = "" availablecolours = {} otherPlayers = {} serverAddress = "" -- Hide status bar display.setStatusBar( display.HiddenStatusBar ) -- Seed the random number generator math.randomseed( os.time() ) -- Go to the m...
----------------------------------- -- Area: Pso'Xja -- NPC: _094 (Stone Gate) -- Notes: Spawns Gargoyle when triggered -- !pos 310.000 -1.925 -101.600 9 ----------------------------------- require("scripts/zones/PsoXja/globals") require("scripts/globals/status") ----------------------------------- function onTrade(p...
function Update_kpr_FakeBalcoragate(CustomGroup, playerIndex, shipID) if Universe_GameTime() < 0.5 then SobGroup_SetMadState(CustomGroup,"ResourceDo") if playerIndex == Universe_CurrentPlayer() then Camera_FocusSobGroupWithBuffer(CustomGroup, 50000, 1000, 0) end end if Universe_GameTime() >= 13 th...
local SpeedLimitEnabled = false local UIOpen = false -- TEST COMMAND --[[ RegisterCommand('speedlimit', function(source, args) SpeedLimitEnabled = not SpeedLimitEnabled end) ]] RegisterNetEvent("919-speedlimit:client:ToggleSpeedLimit", function(toggle) if toggle then SendNUIMessage({action = "show"}) ...
local command = Command:new("getinv") function command:execute(player, args) local inv = tonumber(args[1]) if inv == nil then player:send_game_message("Argument specified was not an integer") return end local found_inv = player:get_inventory_size(inv) if found_inv ~= nil then ...
dofile( "./wago.lua" ) local JSON = (loadfile "./json.lua")() local t if string.find(arg[1], "/tmp/") == nil then t = StringToTable(arg[1], false) else local f = io.open(arg[1], "r") t = f:read("*all") f:close() end collectgarbage=nil WeakAurasSaved=nil time=os.time;_G={};coroutine=nil...
base_build = nil base_build = { -- omitted by Relic -- { -- Type = Ship, -- ThingToBuild = "Hgn_SupportFrigate", -- RequiredResearch = "", -- RequiredShipSubSystems = "FrigateProduction", -- DisplayPriority = 60, -- DisplayedName = "Support Frigate", -- Description = " (Repair) (400 RUs)" -- }, }...
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local Component = require("moonpie.ui.components.component") require("moonpie.ui.components.body") require("moonpie.ui.components.buttons") require("moonpie.ui...
----------------------------------- -- Area: Inner Horutoto Ruins -- NM: Maltha ----------------------------------- require("scripts/globals/hunts") function onMobDeath(mob, player, isKiller) tpz.hunts.checkHunt(mob, player, 288) end function onMobDespawn(mob) mob:setRespawnTime(math.random(3600, 7200)) -- ...
dofile "genie/common.lua" solution "all" configurations { "Debug", "Release" } platforms { "x64" } language "C++" location ("../.build/projects/all/" .. _ACTION) flags { "CppLatest" } includedirs { "../ext/inc" } defines { "FMT_HEADER_ONLY" } configuration "Debug" targetdir (path.join("../.build/...
return { summary = 'Write to a file.', description = 'Write to a file.', arguments = { filename = { type = 'string', description = 'The file to write to.' }, content = { type = 'string', description = 'A string to write to the file.' }, blob = { type = 'Blob', ...
os.loadAPI('/lib/debug') local deviceTypes = {"ic2:mfsu", "ic2:mfe", "ic2:batbox"} allDevices = {} for _, deviceType in pairs(deviceTypes) do for __, device in pairs({peripheral.find(deviceType)}) do table.insert(allDevices, device) end end function getAllDevices() return allDevices end function getDevic...
Me = game.Players.LocalPlayer Char = Me.Character Selected = false Modelname = "Earth" CA = CFrame.Angles CN = CFrame.new MR = math.rad MP = math.pi MD = math.deg MH = math.huge MRA = math.random Sounds = { Equip = {"rbxasset://sounds//unsheath.wav", 0.7, 0.6}, Hit = {"http://www.roblox.com/asset/?id=2801263", 0.9,...
local GFontIconPage = require("GFontIconPage") function app() local size = GFontIconPage:getPreferredSize() print("SIZE: ", size.width) local params = { frame = { x =0; y =0; width = size.width; height = 768 } } local win1 = WMCreateWindow(params) local fi...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> 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://w...
--[[ Previews.lua Interface object housing utility methods for accessing Lr previews. Includes methods for lib previews and smart previews. If not explicitly specified, assume lib (not smart) previews. --]] local Previews, dbg, dbgf = Object:newClass{ classNa...
lu = require('luaunit') string = "Lua" int = 121 boolean = false list1 = {0, 1, 2, 3, 4, 5} list2 = {1, 2, 3, 4, 5} function return121() return 121 end function get_values(a, b, c, d) lu.assertEquals(a, 121) lu.assertEquals(b, 1.5) lu.assertEquals(c, false) lu.assertEquals(d, "Python") end Rec...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local t = require(ReplicatedStorage.Modules.t) local Action = require(script.Parent.Action) local validateInput = require(script.Parent.validateInput) local function args(...) local numArguments = select("#", ...) local arguments = {...} return funct...
local ffi = require 'ffi' local cmem = require 'libcmem' local get_ptr = require 'Q/UTILS/lua/get_ptr' local cmem_file_offset local cmem_num_rows_read local cmem_is_load local cmem_has_nulls local cmem_is_trim local cmem_width local cmem_fldtypes local F = {} F.malloc_aux = function (nC) -- pri...
local packageName = "vpn-policy-routing" local readmeURL = "https://docs.openwrt.melmac.net/" .. packageName .. "/" local uci = require "luci.model.uci".cursor() local sys = require "luci.sys" local util = require "luci.util" local ip = require "luci.ip" local fs = require "nixio.fs" local jsonc = require "luci.jsonc" ...
local h = require("null-ls.helpers") local methods = require("null-ls.methods") local DIAGNOSTICS = methods.internal.DIAGNOSTICS return h.make_builtin({ method = DIAGNOSTICS, filetypes = { "vim" }, generator_opts = { command = "vint", format = "json", args = { "--style-problem", "-...
local title = ... local version = GetAddOnMetadata(title, "Version") -- sbd:set_debug() -- local debug variable: local DEBUG = sbd:get_debug() local debugUnitCount = 10 -- local variables: local screenWidth, screenHeight local playerRole local threatPercentDivisor = 100 local classNameLocalized, class, classIndex lo...
return {'tifosi','tiffany','tiffanys'}
return {'buzzer','buza','buzzers'}
local log = {} --Printing extra information that developers may find useful. function log.verbose(msg) if config.verbose then io.write(msg) end end local oprint = print function log.print(...) return oprint(...) end function log.warn(msg) oprint("[Warning] "..tostring(msg)) end function log.serror(msg) oprint...
local library = '毛泽东|周恩来|刘少奇|朱德|彭德怀|林彪|刘伯承|陈毅|贺龙|聂荣臻|徐向前|罗荣桓|叶剑英|李大钊|陈独秀|孙中山|孙文|孙逸仙|邓小平|陈云|江泽民|李鹏|朱镕基|李瑞环|尉健行|李岚清|胡锦涛|罗干|温家宝|吴邦国|曾庆红|贾庆林|黄菊|吴官正|李长春|吴仪|回良玉|曾培炎|曹刚川|唐家璇|华建敏|陈至立|张德江|俞正声|王乐泉|刘云山|王刚|王兆国|刘淇|贺国强|郭伯雄|胡耀邦|王乐泉|王兆国|习近平|李克强|张高丽|刘延东|彭丽媛|王岐山|华国锋|胡耀邦|王兆国|习近平|李克强|张高丽|刘延东|彭丽媛|王岐山|华国锋|习大大|吴帮国|无帮国|无邦国|无帮过|瘟家宝|假庆林|甲庆林|假青...
-- Copyright (C) 2014 Anton Jouline (juce) local format = string.format local match = string.match local find = string.find local tcp = ngx.socket.tcp local tonumber = tonumber local shell = { _VERSION = '0.02' } local default_socket = "unix:/tmp/shell.sock" function shell.execute(cmd, args) local timeou...
-- Copyright 2018-2019, Firaxis Games. include("DiplomacyRibbon_Expansion2.lua"); include("GameCapabilities"); include("CongressButton"); UIEvents = ExposedMembers.LuaEvents; print("Diplomacy Ribbon for Better Spectator Mod") local b_hide = false local b_hide_2 = true local b_score = false local b_trees = false local...
QuestieNameplate = {}; local activeGUIDs = {}; local npFrames = {}; local npUnusedFrames = {}; local npFramesCount = 0; QuestieNameplate.GlobalFrame = nil; -- Initializer function QuestieNameplate:Initialize() if QuestieNameplate.GlobalFrame == nil then QuestieNameplate.GlobalFrame = CreateFrame("Frame")...
local local0 = 0.5 function OnIf_513000(arg0, arg1, arg2) if arg2 == 0 then Professor513000_ActAfter_RealTime(arg0, arg1) end return end function Professor513000Battle_Activate(arg0, arg1) local local0 = {} local local1 = {} local local2 = {} Common_Clear_Param(local0, local1, loca...
local class = require("heart.class") local M = class.newClass() function M:init(engine, config) self.engine = assert(engine) self.particleSystemComponents = assert(self.engine.componentManagers.particleSystem) end function M:handleEvent(dt) local particleSystems = self.particleSystemComponents.particleSys...
vim.cmd([[ augroup FormatOnSave autocmd! autocmd BufWritePre * lua vim.lsp.buf.formatting_sync() augroup END ]])
[ { "Settings": { "RoundSounds": "classic", "StartPoints": 500.0, "StartWeapon": "tfa_mwr_m1911", "StartGrenade": "nzu_grenade_mk3a2", "HUD": "unlimited", "StartKnife": "nzu_knife_crowbar" }, "ID": "core" } ]
ITEM.name = ".45 ACP Ammo" ITEM.model = "models/items/boxsrounds.mdl" ITEM.material = "models/props_canal/canal_bridge_railing_01a" ITEM.ammo = "45" ITEM.ammoAmount = 1--30 ITEM.desc = "A box that contains %s .45 ACP rounds." ITEM.category = "Ammunition" ITEM.flag = "v" ITEM.price = 0 ITEM.uniqueID = "ammo_45" ITEM.m...
T('memoize', function (T) local memoize = require 'knife.memoize' local counter = 0 local function count(...) counter = counter + 1 return counter end local memoized_count = memoize(count) local function switch(x,y) counter = counter + 1 return y,x end local memoized_switch = ...
build = { -- #1.0, capital_build.lua { Description = "$11041", DisplayPriority = 70, DisplayedName = "$11040", RequiredResearch = "Tai_SuperCapitalShipDrive_res0_hyp0", RequiredShipSubSystems = "", ThingToBuild = "Tai_Carrier_res0_hyp0", Type = Ship, }, -- #2.0, capital_build.lua { Description = "$...
-- Generated by CSharp.lua Compiler local System = System System.namespace("Slipe.Shared.Rpc", function (namespace) namespace.class("EmptyRpc", function (namespace) local Parse Parse = function (this, value) end return { __inherits__ = function (out) return { out.Slipe.Shared.R...
local TestService = game:GetService("TestService") local modules = script.Parent local testRunnerScript = TestService:FindFirstChild("TestRunner") local function checkScriptInjectionError(msg) if not msg:find("script injection") then error(msg, 3) end end local function isInstalled() return testRunnerScript and ...
local _0_0 = nil do local name_0_ = "conjure.dynamic" local loaded_0_ = package.loaded[name_0_] local module_0_ = nil if ("table" == type(loaded_0_)) then module_0_ = loaded_0_ else module_0_ = {} end module_0_["aniseed/module"] = name_0_ module_0_["aniseed/locals"] = (module_0_["aniseed/locals"...
-- Big Furnace prototype and item definition local create_bigfurnace = require("__WhistleStopFactories__.prototypes.bigfurnace") -- name, energy_consumption, crafting_speed create_bigfurnace("wsf-big-furnace", "8000kW", 100) -- Big Assembly prototype and item definition local create_bigassembly = require("__WhistleSto...
--[[ AFK Resource - Server by: standardcombo v1.0 --]] local RESOURCE_NAME = script:GetCustomProperty("ResourceName") local START_VALUE = script:GetCustomProperty("StartValue") local SECONDS_TO_WAIT = script:GetCustomProperty("SecondsToWait") local GAIN_AMOUNT = script:GetCustomProperty("GainAmount") function Set...
local spy = require "luassert.spy" describe("[handle]", function() local handle before_each(function() handle = require "resty.dns.balancer.handle" end) it("returning doesn't trigger __gc", function() local s = spy.new(function() end) local h = handle.get(s) handle.release(h) h = nil...
local WIDGET, VERSION = 'AlphaFlash', 3 local GUI = LibStub('NetEaseGUI-2.0') local AlphaFlash = GUI:NewClass(WIDGET, 'Frame', VERSION) if not AlphaFlash then return end local function AnimParentOnShow(self) self.Anim:Play() end local function AnimParentOnHide(self) self.Anim:Stop() end function Alp...
local skynet = require "skynet" local proxy = require "socket_proxy" local sprotoloader = require "sprotoloader" local log = require "log" local client = {} local host local sender local handler = {} function client.handler() return handler end function client.dispatch( c ) local fd = c.fd proxy.subscribe(fd) lo...
-- load this with file :nmap <localleader>r :luafile debug.lua<CR> local q = require"vim.treesitter.query" local scripts = { iex = "iex -S mix" } local function i(value) print(vim.inspect(value)) end local function get_cursor_position() local s = require'nvim-treesitter'.statusline({ indicator_size = 100,...
TestMultipleInheritance = { setupClass = function () class 'ExampleA' {a = function () return 'a' end} class 'ExampleB' {b = function () return 'b' end} class 'ExampleC' extends (ExampleA, ExampleB) {c = function () return 'c' end} class 'ExampleC0' extends (ExampleA, ExampleB) {b = function () return 'B' end...
--Author Pasky13 local px = 0x38C local py = 0x354 local pl = 0x45 local ex = 0x38C local ey = 0x354 memory.usememorydomain("PRG ROM") local function whip() local box = {0,0,0} -- xoff/yoff/xrad/yrad local wtype = mainmemory.read_u8(0x70) local pos = bit.band(mainmemory.read_u8(0x434),0x7F) -- Simon...
local json = require("rapidjson") local search_baidu_place = require("./lua/geo/searcher/baidu").search_baidu_place local solr = require("./lua/geo/searcher/solr") local LOCATION_SEARCH_TYPE = { BY_CITY, BY_COORDINATES, } -- input parameters processing -- local GET = ngx.req.get_uri_args() local downstream ...
local tar = require('compress.tar') local Util = require('opus.util') local fs = _G.fs local files = { 'test-ramfs.lua', 'test-tar.lua', } fs.mount('packages/tests/test.tar', 'ramfs', 'file') tar.tar('packages/tests/test.tar', 'packages/tests', files) fs.mount('packages/tests/untar', 'ramfs', 'directory') t...
-- CHADTree configuration - file system browser local utils = require('utils') utils.debug('S CHADTree configuration sequence started') utils.map('n', '<C-n>', ':CHADopen<CR>') utils.debug('S CHADTree configuration sequence finished')
--[[-- This module allows loading up entire scenes with many objects. @module horse3d.scene ]] if horse3d.scene == nil then horse3d.scene = {} end --[[-- Parse a scene file, e.g. a GLTF file, or a quake style .map file), and add in the level geometry, @{horse3d.world.light|lights} and @{horse3d.worl...
----------------------------------- -- Area: Ifrit's Cauldron -- Mob: Volcanic Bomb ----------------------------------- require("scripts/globals/regimes") ----------------------------------- function onMobDeath(mob, player, isKiller) tpz.regime.checkRegime(player, mob, 760, 2, tpz.regime.type.GROUNDS) tpz.reg...
-- UI button for layout Button=class:new() function Button:init(gridX,gridY,spanX,spanY,text,icon,align) self:setText(text) -- text for button self:setIcon(icon) -- icon for button 16x16 self:setImage() -- image on button that can be bigger than icon self.gridX=gridX -- position of button in cells sel...
local ScrWidth = 600 local ScrHeight = 600 local ScoreBoardManager = {CompPosX = 20, CompPosY = 20, UpdateComponents = {}} function ScoreBoardManager:CreateScoreboard() self.CompPosX = 20 self.CompPosY = 20 local BorderColor = Color(0, 0, 0, 0) local BackGroundColor = Color(0, 0, 0, 250) local...
package.path = './model/?.lua;./ometa/?.lua;./lib/?.lua;./?.lua;' .. package.path local tostring, tonumber, select, type, getmetatable, setmetatable, rawget = tostring, tonumber, select, type, getmetatable, setmetatable, rawget local Types = require 'types' local dataType, class = Types.dataType, Types.class loca...
-- snippets local ls = require("luasnip") local types = require "luasnip.util.types" require("luasnip/loaders/from_vscode").lazy_load() require("luasnip.loaders.from_lua").lazy_load({ paths = "~/.config/nvim/lua/snippets"}) -- Every unspecified option will be set to the default. ls.config.set_config({ history = true,...
local K = unpack(select(2, ...)) if K.CheckAddOnState("OneClickEnchantScroll") or (not C_TradeSkillUI) then return end local Module = K:NewModule("EnchantScroll", "AceEvent-3.0", "AceHook-3.0") local _G = _G local CraftRecipe = _G.C_TradeSkillUI.CraftRecipe local GetItemCount = _G.GetItemCount local GetLocale = _G....
require "lunit" module( "simple", package.seeall, lunit.testcase ) function test_success() assert_true( true, "This test never fails.") end function test_failure() assert_true( false, "This test always fails!") end module( "enhanced", package.seeall, lunit.testcase ) local foobar = nil function setup() ...