content
stringlengths
5
1.05M
--3L·MyonMyonMyonMyon local m=37564807 local cm=_G["c"..m] if not pcall(function() require("expansions/script/c37564765") end) then require("script/c37564765") end cm.named_with_myon=4 function cm.initial_effect(c) senya.lfusm(c,nil,2,2) senya.leff(c,m) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE)...
vim.cmd [[ augroup TermDetect autocmd! autocmd TermOpen term://* set ft=term augroup END ]]
pipe = class:new() function pipe:init(t, x, y, r) self.cox = x self.coy = y self.x = x-1 self.y = y-1 self.width = 28/16 --smb: 22/16 self.height = 26/16 self.active = false self.static = true self.r = {unpack(r)} table.remove(self.r, 1) table.remove(self.r, 1) self.world = 1 self.level = 1 self.sub ...
local M = {} --- Taken from <https://github.com/lukas-reineke/indent-blankline.nvim/blob/0a98fa8dacafe22df0c44658f9de3968dc284d20/lua/indent_blankline/utils.lua#L231-L235>. function M.first_non_nil(...) for i = 1, select('#', ...) do local val = select(i, ...) if val ~= nil then return val end e...
return { summary = 'Get the Collider the Shape is attached to.', description = 'Returns the Collider the Shape is attached to.', arguments = {}, returns = { { name = 'collider', type = 'Collider', description = 'The Collider the Shape is attached to.' } }, notes = 'A Shape can only...
local moon = require("moon") local json = require("json") local socket = require("moon.socket") local test_assert = require("test_assert") local large_data = {} for i=1,100000 do large_data[i]="HelloWorld"..tostring(i) end local data = json.encode(large_data) local listenfd = socket.listen("127.0.0.1", 30002, moon....
--[[ /******************************************************* * Copyright (c) 2015, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause ************************************************...
require "sys.serialize" local core = require "sys.core" local RpcDef = {} local TypeMap = { I = "number", T = "table", S = "string", } function RpcDef:GetRealType(simpleType) return TypeMap[simpleType] end function RpcDef:InitRpcHandle(rpcHandleDef, precheckfunc) local handle = rpcHandleDef[1] local funcDef ...
local g = vim.g local api = vim.api g.mapleader = "," api.nvim_set_keymap("x", "<C-c>", '"+y', { noremap = true }) api.nvim_set_keymap("n", "<C-h>", "<C-W>h", { noremap = true }) api.nvim_set_keymap("n", "<C-j>", "<C-W>j", { noremap = true }) api.nvim_set_keymap("n", "<C-k>", "<C-W>k", { noremap = true }) api.nvim_set_...
--scripts/modtools/attack-trigger.lua --author expwnent --based on itemsyndrome by Putnam --triggers scripts when a unit attacks another with a weapon type, a weapon of a particular material, or a weapon contaminated with a particular material, or when a unit equips/unequips a particular item type, an item of a particu...
if game.PlaceId == 155615604 then local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Attrixx/Scandia/main/KavoUiLib.lua"))() local Window = Library.CreateLib("Scandia Hub - Prison Life", "Ocean") local Main = Window:NewTab("Main") local Player = Window:NewTab("Player") ...
lotj.chat.routeMessage("commnet") -- Track commnet messages to potentially squash a redundant translation -- message on the next line lotj.chat.commnetLastChannel = matches[2] lotj.chat.commnetLastMessage = matches[3]
local plpretty = require "pl.pretty" local class = require("pl.class") local syslog = require("syslog") local socket = require("socket") local OutputFile = class() function OutputFile:_init(config) self.config = config assert(type(config.filePattern) == "string") assert(type(config.lineFormat)...
-- Data processing based on openmaptiles.org schema -- https://openmaptiles.org/schema/ -- Copyright (c) 2016, KlokanTech.com & OpenMapTiles contributors. -- Used under CC-BY 4.0 -- Nodes will only be processed if one of these keys is present node_keys = { "amenity", "shop", "sport", "tourism", "place", "office", "na...
local lust = require 'test.lust' local describe, it, expect = lust.describe, lust.it, lust.expect local EquipmentModifier = require 'valueobjects.EquipmentModifier' describe('EquipmentModifier', function () it('instantiate', function () expect(EquipmentModifier()).to.be.a('table') end) local data...
local app = app local libcore = require "core.libcore" local Class = require "Base.Class" local Unit = require "Unit" local GainBias = require "Unit.ViewControl.GainBias" local Encoder = require "Encoder" local BumpMap = Class {} BumpMap:include(Unit) function BumpMap:init(args) args.title = "Bump Scanne...
--[[ State switcher class: stateswitcher.lua Author: Daniel Duris, 2014+ dusoft[at]staznosti.sk http://www.ambience.sk License: MIT ]]-- passvar={} state={} function state.switch(state) passvar={} local matches={} for match in string.gmatch(state,"[^;]+") do matches[#matches+1]=match end state=m...
local pthread = require'pthread' local lua = require'luastate' local ffi = require'ffi' local glue = require'glue' local pp = require'pp' io.stdout:setvbuf'no' --helpers local function addr(cdata) return tonumber(ffi.cast('intptr_t', ffi.cast('void*', cdata))) end local function ptr(ctype, p) return ffi.cast(ctype...
local clock = require "clock" local fiber = require "fiber" local log = require "log" local ffi = require "ffi" local json = require "json".new() json.cfg {encode_invalid_as_nil = true} --================================================================================== -- Embedded indexpiration with some adjustments...
-- The cake is a lie local portal = {} portal.__index = portal -------------------- -- MAIN CALLBACKS -- -------------------- function portal.new(x, y, color) local self = setmetatable({}, portal) self.x = x self.y = y self.color = color self.collisionRadius = 15 self.xradius = 20 self.yradius = 32 self.SU...
include( "Civ6Common.lua" ); -- GetCivilizationUniqueTraits, GetLeaderUniqueTraits include( "SupportFunctions" ); -- Split CITY_WORK_RANGE = 3 function plotWithinWorkingRange(playerID, plotIndex) local localPlayerCities = Players[playerID]:GetCities() local pPlot = Map.GetPlotByIndex(plotIndex) local plotX = pP...
local mod = DBM:NewMod(853, "DBM-SiegeOfOrgrimmarV2", nil, 369) local L = mod:GetLocalizedStrings() local sndWOP = mod:SoundMM("SoundWOP") mod:SetRevision(("$Revision: 11372 $"):sub(12, -3)) mod:SetCreatureID(71152, 71153, 71154, 71155, 71156, 71157, 71158, 71160, 71161) mod:SetEncounterID(1593) mod:SetMinSyncRevisi...
return { print = macos.print }
registerMonsterType = {} setmetatable(registerMonsterType, { __call = function(self, mtype, mask) for _,parse in pairs(self) do parse(mtype, mask) end end }) MonsterType.register = function(self, mask) return registerMonsterType(self, mask) end registerMonsterType.name = function(mtype, mask) if mask.name...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by llll. --- DateTime: 2019/8/28 23:28 --- local fmt = require("fmt.fmt") local View = {} print("start scripts") function View:Start() print("start scripts") print(self) end return View
class_C("EffectMoney", ClassLoader:aquireClass("Effect")).execute = function (slot0) return 0 end return class_C("EffectMoney", ClassLoader.aquireClass("Effect"))
local ls = require("luasnip") local s = ls.s local t = ls.t local i = ls.i local c = ls.c local sn = ls.sn local parse = require("plugins.luasnip.util").parse ls.snippets.markdown = { parse({ trig = "oritatami" }, { "<details><summary>${1}</summary><div>", "", "${0}", "", "</div></details>", }...
function main(splash) local snapshots = {} local timer = splash:call_later(function() snapshots["a"] = splash:html() splash:wait(1.0) snapshots["b"] = splash:html() end, 1.5) assert(splash:go(splash.args.url)) splash:wait(3.0) timer:reraise() return snapshots end
---------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------- -- -- em_mapIconBase -- -- -------------------------------------------------------------------------------------------...
local volume = {} local audio = hs.audiodevice function volume.mute() local dev = audio.defaultOutputDevice() return dev and dev:setMuted(true) end function volume.unmute() local dev = audio.defaultOutputDevice() return dev and dev:setMuted(false) end function volume.muted() local dev = audio.def...
object_mobile_nova_orion_employee_08 = object_mobile_shared_nova_orion_employee_08:new { } ObjectTemplates:addTemplate(object_mobile_nova_orion_employee_08, "object/mobile/nova_orion_employee_08.iff")
require "luarocks.loader" local Sh = require('minilib.shell') local Pr = require('minilib.process') local Util = require('minilib.util') local Cfg = require('mxctl.config') local Cmds = require('mxctl.control_cmds') local pop_term = string.format("%s %s", Cfg.pop_term, Cfg.pop_termopts[Cfg.pop_term]) function pa_sin...
slot0 = class_C("TransformSwing", ClassLoader:aquireClass("TransformAction")) slot0.onCreate = function (slot0) slot0.super.onCreate(slot0) slot0:addProperty("targetAction") slot0:addProperty("count") end slot0.onCreateFinish = function (slot0) slot0.super.onCreateFinish(slot0) slot0:setValue("count", 1) end sl...
#include "scripts/utils.lua" #include "scripts/savedata.lua" #include "scripts/menu.lua" #include "scripts/varhandlers.lua" #include "datascripts/keybinds.lua" #include "datascripts/inputList.lua" #include "datascripts/color4.lua" toolName = "drivableplane" toolReadableName = "Drivable Plane" --TODO: Fix offset weird...
local rspamd_logger = require "rspamd_logger" local argparse = require "argparse" local lua_util = require "lua_util" local ucl = require "ucl" local parser = argparse() :name "rspamadm neural_test" :description "Test the neural network with labelled dataset" :help_description_margin(32) parser:option "-c --con...
BRACKET_PRECEDENCE = 20 DEEP_PRECEDENCE = BRACKET_PRECEDENCE * 1000 function IS_LEFT_TO_RIGHT(p) return (p ~= 2) and (p ~= 14) end -- enum OperatorOrder OperatorOrder = { OrderNone = 1, OrderPrefix = 2, OrderInfix = 3, OrderPostfix = 4 } OperatorPrecedence = { -- TokenNone { Prefi...
local defaultSettings = { AddSetEquipScreenOrder = true, AllowSyncEquip = true, AllowAddSet = false, AddSetBackups = true, Debug = false, EquipBags = { 8, 10, 11, 12, 0 }; EnableNomadStorage = false, ForceDisableBags = { }, ForceEnableBags = { }, RemoveEquipmentForPacker = true, ...
local K, C = unpack(select(2, ...)) local Module = K:NewModule("VehicleSeat", "AceEvent-3.0") if C["ActionBar"].Enable ~= true then return end -- Wow Lua local _G = _G -- Wow API local UIParent = _G.UIParent local hooksecurefunc = _G.hooksecurefunc function Module:PositionVehicleFrame() local VehicleSeatMover = Cr...
local moon = require("moon") moon.start(function() local mysql = require("moon.db.mysql") moon.async(function() local db, err = mysql.connect({ host="192.168.81.129", port=3306, database="game", user="root", password="4321", t...
local GSE = GSE local L = GSE.L local Statics = GSE.Static local libS = LibStub:GetLibrary("AceSerializer-3.0") local libC = LibStub:GetLibrary("LibCompress") local libCE = libC:GetAddonEncodeTable() local bytetoB64 = { [0] = "a", "b", "c", "d", "e", "f", "g", "h", "...
print("-- test "..os.date())
--copy local m=14400002 local cm=_G["c"..m] xpcall(function() require("expansions/script/c37564765") end,function() require("script/c37564765") end) function cm.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) ...
--https://devforum.roblox.com/t/a-guide-to-a-better-looking-and-more-realistic-day-night-cycle/392643 --time changer local mam --minutes after midnight local timeShift = 1 --how many minutes you shift every "tick" local waitTime = 15/30 --length of the tick local pi = math.pi --brightness local amplitudeB = 1 local of...
-- The Shell of the Missile, this is just the body of the missile -- Individual warheads have to be attached minetest.register_craftitem("yatm_armoury_icbm:icbm_shell", { description = "ICBM Shell", groups = { icbm_shell = 1, }, inventory_image = "yatm_icbm_shell.png", })
local EventBus = require("eventbus") local vatsimbriefHelperStub = { frequencyToAtcInfosMap = {} } vatsimbriefHelperStub.frequencyToAtcInfosMap["129.200"] = { {id = "TPA_GND", description = "Just testing"}, {id = "SEA_GND", description = "Online until appx 2300z / How am I doing?"}, {id = "CYVR_GND", ...
local audioEngine = require('audioEngine') local colors = require('colors') local cupcakeScreen = require('cupcakeScreen') local introScreen = require('introScreen') local particleEngine = require('particleEngine') local proto = require('proto') local rainbowStripes = require('rainbowStripes') local rectangleEngine = r...
local srp = require("wow/srp") local _M = {} local logon_proof = function(self, M) self.M2 = srp.M2(self.A, self.M1, self.K) local M2, M2_l = self.M2:get_digest() local M, M_l = M:get_digest() for i = 1, M2_l do if M2:sub(i, i) ~= M:sub(i, i) then return nil end end return true end -- # a...
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild -- -- This file is compatible with Lua 5.3 local class = require("class") require("kaitaistruct") local enum = require("enum") -- -- The entries are used to synchronize the state of services instances and the -- Publi...
testResultHandler = require('yunit.test_result_handlers').MsvcTextTestProgressHandler:new()
local language = "korean"; local PLUGIN = PLUGIN; PLUGIN:AddPluginLanguage("plugin_pc_setrank", "%s 님이 %s 님의 랭크를 %s 로 설정하였습니다.", language); PLUGIN:AddPluginLanguage("plugin_pc_spawn", "%s 님이 %s 님을 스폰 하였습니다.", language); PLUGIN:AddPluginLanguage("plugin_pc_kick", "%s 님이 %s 님을 킥하였습니다.", language); PLUGIN:AddPluginLangu...
if UseItem(124) == true then goto label0 end; do return end; ::label0:: AddItem(124, -1); Talk(0, "老前辈,我看这蜜蜂很难驯养哦!", "talkname0", 1); Talk(64, "没什么的,再过一阵子我就会让这百花谷中到处都是蜜蜂飞舞.", "talkname64", 0); Talk(0, "我这有罐玉蜂浆,你拿去试看看,会不会比较好用.", "talkname0", 1); ModifyEvent(-2, -2, -2, -2, -2, -1, -1, -2, -2, -2,...
methods = { 'CanUpgrade', 'UpgradeRequire', 'Upgrade', } local ExpCost = { 200, 1000, 5000 } local GoldCost = { 20, 100, 500 } function CanUpgrade(follower) if follower.CurLevel < 30 then return false end if follower.MaxStar == follower.CurStar then return false end if PlayerObject.Instance.Self.Exp < Ex...
ccs = ccs or {} ---ArmatureDisplayData object ---@class ArmatureDisplayData : DisplayData local ArmatureDisplayData = {} ccs.ArmatureDisplayData = ArmatureDisplayData -------------------------------- -- ---@return ArmatureDisplayData function ArmatureDisplayData:create() end -------------------------------- ---js cto...
--[[ Mob -- Fel Crystal.lua This script was written and is protected by the GPL v2. This script was released by BrantX of the Blua Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation community. ~~End of License Agreement -- BrantX, February 01, 20...
-- 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 ]] -------------------------------------------------------------------------------- modifier_enigma_mi...
-- language specific higlights local lush = require("lush") local base = require("apprentice.base") local M = {} M = lush(function() return { moonSpecialOp {base.ApprenticeFg3}, moonExtendedOp {base.ApprenticeFg3}, moonFunction {base.ApprenticeFg3}, moonObject {base.ApprenticeYellow}, } end) retu...
local item = { id = 3, title = "Big potion", type = "potion", health = 100, mana = 100 } function item:use(character) character.health = character.health + item.health if character.health > character:getMaxHealth() then character.health = character:getMaxHealth() end charac...
Locales['pl'] = { -- Inventory ['inventory'] = 'ekwipunek %s / %s', ['use'] = 'użyj', ['give'] = 'daj', ['remove'] = 'usuń', ['return'] = 'wróć', ['give_to'] = 'daj dla', ['amount'] = 'ilość', ['giveammo'] = 'daj amunicje', ['amountammo'] = 'ilość amunicji', ['noammo'] = 'nie posiadasz wystarczają...
return {'irenisch','irene','irene','ireen','irena','ireland','irenische','ireens','irenas','irenes'}
--[[ ================================================================================ ProjectNukeEmergencyService Provides a listener and action response to an emergency alarm. Three emergency states: ALERT CLEAR NONE ==================================================================...
function SAME (me, sub) local sub = sub or me[#me] me.aw.n = sub.aw.n me.aw.t = sub.aw.t me.aw.forever_ = sub.aw.forever_ end function U (s1, s2) for i, v in ipairs(s2) do s1[#s1+1] = v end for k,v in pairs(s2) do if type(k) ~= 'number' then s1[k] = v end...
-- This program checks the weather and turns off rain. -- -- If the signal is on, then the program runs the command to stop the rain. -- Note: You'll need the Debug Card from creative mode. -- OpenComputer stack is set up as follows: -- [Computer][Debug Card] -- [Screen] -- [Disk Drive] -- [Floor] local keyboard = re...
local CONST = require(script:GetCustomProperty("MetaAbilityProgressionConstants_API")) local Equipment = script:GetCustomProperty("Equipment"):WaitForObject() local function META_CP() return _G["Class.Progression"] end ------------------------------------------------------------------------------- -- Local Variab...
-- Copyright 2016-2021 Gabriel Dubatti. See LICENSE. --functions to define common controls like buttons, combo-boxes, etc in the toolbars local events, events_connect = events, events.connect --buttons callback functions toolbar.cmds={} --functions with the name of the clicked button as an argument toolbar.cmds_d=...
AddCSLuaFile() local DbgPrint = GetLogging("MapScript") local MAPSCRIPT = {} MAPSCRIPT.PlayersLocked = false MAPSCRIPT.DefaultLoadout = { Weapons = { }, Ammo = { }, Armor = 0, HEV = true, } MAPSCRIPT.InputFilters = { } MAPSCRIPT.EntityFilterByClass = { --["env_global"] = true, ...
-- conveyors push entities with forcerecievers return {}
local BulletChar = require "bosses/lekkerchat/projectiles/bulletchar" local BulletCharW = BulletChar:extend("BulletCharW") function BulletCharW:new(...) BulletCharW.super.new(self, ...) self:setImage("bosses/lekkerchat/char_w") self.velocity.x = -BulletChar.xSpeed self.startY = self.y self.timer = 0 self.dir = ...
local rotate if minetest.global_exists("screwdriver") then rotate = screwdriver.rotate_simple end local doublecorner_selectionbox = { type = "fixed", fixed = { -8/16, -8/16, -8/16, 8/16, -6/16, 8/16 }, } local rules = { { { x = 1, y = 0, z = 0 }, { x = 0, y = 0, z = 1 }, }, { { x = -1, y = 0, z = 0 }, { ...
--[[ © 2018 Thriving Ventures AB do not share, re-distribute or modify without permission of its author (gustaf@thrivingventures.com). ]] local plugin = plugin plugin.disconnects = plugin.disconnects or {} plugin:IncludeFile("shared.lua", SERVERGUARD.STATE.SHARED) plugin:IncludeFile("cl_panel.lua", SERVERGUARD.STAT...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) RegisterServerEvent('force_drugsGiveReward') AddEventHandler('force_drugsGiveReward', function(rewardItem, randomAmount) local player = ESX.GetPlayerFromId(source) player.addInventoryItem(rewardItem, math.random(5, randomAmount)) end)...
object_static_item_lair_rock_shelter_small = object_static_item_shared_lair_rock_shelter_small:new { } ObjectTemplates:addTemplate(object_static_item_lair_rock_shelter_small, "object/static/item/lair_rock_shelter_small.iff")
-------------------------------------------------------------------------------- --[[ The Runtest file for the Dusk benchmarks. --]] -------------------------------------------------------------------------------- local dusk = require("Dusk.Dusk") local table_insert = table.insert local table_concat = table.concat lo...
-- Copyright (c) 2013-2015: G-CSC, Goethe University Frankfurt -- Author: Andreas Vogel -- -- This file is part of UG4. -- -- UG4 is free software: you can redistribute it and/or modify it under the -- terms of the GNU Lesser General Public License version 3 (as published by the -- Free Software Foundation) with the f...
ITEM.name = "Euro Notes" ITEM.description = "A bundle of European currency." ITEM.longdesc = "While this currency is not the primary way of trading in the zone, it does still retain value to people residing in european countries, and other financially interested people. Aside from a trading perspective, foreign currenc...
--redis-cli --eval /Users/laukikragji/Documents/Git/Local/partition-pg/lua/identity.lua T1 Inventory , 50 local requested_type_key = KEYS[1] local inventory_key = KEYS[2] local requested_range = tonumber(ARGV[1]) local result = {} local parseResourceDefinition = function (inputstr) local sep="," local t={} ...
local SentientAxe = Class(function(self, inst) self.inst = inst self.time_to_convo = 10 self.inst:ListenForEvent("ondropped", function() self:OnDropped() end) self.inst:ListenForEvent("equipped", function(_, data) self:OnEquipped(data.owner) end) self.inst:ListenForEvent("finishedwork", function(...
local GameTime = CurTime() local GameOver = false local InvasionTime = 90 local SurviveTime = 900 if (SERVER) then util.AddNetworkString("Gameover") util.AddNetworkString("GameTime") hook.Add("Tick","ZSTime",function() if (!GameOver) then if (!HasEnoughPlayers()) then GameTime = CurTime() Zo...
-- Copyright (C) 2017 yushi studio <ywb94@qq.com> -- Licensed to the public under the GNU General Public License v3. local IPK_Version="20200406.1.36" local m, s, o local redir_run=0 local reudp_run=0 local sock5_run=0 local ssock5_run=0 local v2sock5_run=0 local server_run=0 local sserver_run=0 local v2server_run=0 l...
PLUGIN.name = "Flashlight item" PLUGIN.author = "SleepyMode" PLUGIN.description = "Adds an item allowing players to toggle their flashlight." function PLUGIN:PlayerSwitchFlashlight(client, bEnabled) local character = client:GetCharacter() if (character and character:GetData("headlamp", false) == true) then retur...
----------------------------------- -- -- Zone: Promyvion-Vahzl (22) -- ----------------------------------- local ID = require("scripts/zones/Promyvion-Vahzl/IDs") require("scripts/globals/promyvion") require("scripts/globals/missions") require("scripts/globals/settings") require("scripts/globals/status") -------------...
local function brew() local present, toggleterm = pcall(require, "toggleterm") if not present then return end toggleterm.setup{ -- size can be a number or function which is passed the current terminal size = 10, -- size = function(term) -- if term.direction == "horizontal" then -- ...
--[[ Licensed under GNU General Public License v2 * (c) 2013, Luca CPZ * (c) 2010-2012, Peter Hofmann --]] local helpers = require("lain.helpers") local wibox = require("wibox") local math = { ceil = math.ceil } local string = { format = string.format, gmatch = st...
-- Copyright (C) by Kwanhur Huang describe("ImageAttr", function() local info = debug.getinfo(1, "S") local path = info.source path = string.sub(path, 2, -1) image_dir = string.match(path, "^.*/") image_name = "test_image.png" image_filename = image_dir .. image_name local imagick = ...
require 'torch'; require 'nn'; -- train the image set on the CNN -- [input: dataset] the training dataset. Must comply with Torch NN classes -- dataset must have 3 functions implemented: -- nChannels(): number of color channels -- w(): width of the images -- h(): height of the images -- the CNN parameters...
local gui = require("__flib__.gui-beta") --Buttons: Entities / Recipes / ... -- On-click, change subsection --Subsection: Depending on button active -- Entities: belts, pipes, decider combinator, arithmetic combinator local loop_plugins = require("v2/plugins/loops/loops") local filter_plugins = require("v2/plugins/...
object_static_item_item_hoth_crate_03 = object_static_item_shared_item_hoth_crate_03:new { } ObjectTemplates:addTemplate(object_static_item_item_hoth_crate_03, "object/static/item/item_hoth_crate_03.iff")
-- Creator: -- AltiV, April 26th, 2019 LinkLuaModifier("modifier_imba_rattletrap_battery_assault", "components/abilities/heroes/hero_rattletrap", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_imba_rattletrap_battery_assault_fragmentation_rend", "components/abilities/heroes/hero_rattletrap", LUA_MODIFIER_MOTIO...
-- Copyright 2016-2021 Gabriel Dubatti. See LICENSE. if toolbar then local Util = Util require('toolbar.constants') if actions then require('toolbar.actions') end require('toolbar.minimap') require('toolbar.controls') require('toolbar.configtb') --config panel on toolbar #3 require('toolbar.dialogs') l...
local request = require('lib.request') local validator = require('lib.validator') local response = require('lib.response') local sms_service = require("services.sms_service") local _M = {} function _M:handle() local args = request:all() local ok, msg = validator:check(args,{'sms_code', 'phone'}) if not ok...
------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------- local generalLoaded = false local PlayingAnim = false --------------------------------------------------------------------...
local K, C = unpack(select(2, ...)) if C["Inventory"].Enable ~= true then return end if IsAddOnLoaded("AdiBags") or IsAddOnLoaded("ArkInventory") or IsAddOnLoaded("cargBags_Nivaya") or IsAddOnLoaded("cargBags") or IsAddOnLoaded("Bagnon") or IsAddOnLoaded("Combuctor") or IsAddOnLoaded("TBag") or IsAddOn...
#!/usr/bin/env tarantool local fio = require('fio') -- require in-repo version of graphql/ sources despite current working directory package.path = fio.abspath(debug.getinfo(1).source:match("@?(.*/)") :gsub('/./', '/'):gsub('/+$', '')) .. '/../../?.lua' .. ';' .. package.path local tap = require('tap') local tes...
-- Copyright 2015 Boundary, Inc. -- -- 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 i...
prime_list = {2} for x = 3, 100, 2 do a = true for y = 1, #prime_list do z = prime_list[y] if x % z == 0 then a = false break end end if a then table.insert(prime_list, x) end end for x = 1, #prime_list do io.write(prime_list[x]) io.write(" ") end print()
require("lualine").setup({ options = { theme = "onedark", }, --[[ sections = { lualine_c = { "os.date('%a')", "data", "require'lsp-status'.status()" }, }, ]] })
local M = {}; local mod = require "mod"; local tex = require "tex"; local font = require "font"; local spr = require "spr"; local mus = require "mus"; local snd = require "snd"; local function LoadAll() spr.font_00 = SpriteLoad(mod.dir .. "textures/mbf_big_00.png", 10, 12, 16, 16, 256, 0, 0); spr.font...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
local included = pcall(debug.getlocal, 5, 1) local bimap = require("bimap") local T = require("u-test") local expect = T.expect local func = T.is_function local tbl = T.is_table --# = bimap --# :toc: --# :toc-placement!: --# --# Bidirectional map implementation. --# --# toc::[] --# --# == *bimap.new*() -> _Table_, _Tab...
--- -- An image element. -- @classmod Image -- @alias Image local class = require("middleclass") local AnAL = require("AnAL") local Base = require("silicone.elements.Base") local Image = class("silicone.Image", Base) --- -- Internal. -- Internal methods -- @section Internal --- -- Initializes an Image element -- @t...
log = require "log" file = io.open("test.lua", "r") x = 300 log.trace("linghibin"..x) log.debug("12") log.info(...) log.warn(...) log.error(...) log.fatal(...) a={"Hello","World";a=1,b=2,z=3,x=10,y=20;"Good","Bye"} for i, v in ipairs(a) do log.error(v..i.."---linghaibin") end