content
stringlengths
5
1.05M
require "lang.Signal" require "Logger" require "json" Log.setLevel(LogLevel.Error) local BridgeAdaptor = require("bridge.adaptor.AppleAdaptor") adaptor = {} adaptor.callStaticMethod = function() end describe("BridgeAdaptor", function() local subject local args before_each(function() subject = B...
-- adapted from https://github.com/LunarVim/LunarVim/blob/rolling/lua/lvim/keymappings.lua local M = {} local generic_opts_any = { noremap = true, silent = true } local mode_adapters = { insert_mode = "i", normal_mode = "n", term_mode = "t", visual_mode = "v", visual_block_mode = "x", command_mode = "c", } loca...
--[[ Contains deprecated methods from Reconciler. Broken out so that removing this shim is easy -- just delete this file and remove it from init. ]] local Logging = require(script.Parent.Logging) local reifyMessage = [[ Roact.reify has been renamed to Roact.mount and will be removed in a future release. Check the c...
class "Vector3" function Vector3:__index__(name) if name == "x" then return Polycore.Vector3_get_x(self.__ptr) elseif name == "y" then return Polycore.Vector3_get_y(self.__ptr) elseif name == "z" then return Polycore.Vector3_get_z(self.__ptr) end end function Vector3:__set_callback(name,value) if name =...
-- "Don't you think it looks a little like snow?" local af = Def.ActorFrame{} af.OnCommand=function(self) self:sleep(12):queuecommand("Transition") end af.TransitionCommand=function(self) SCREENMAN:GetTopScreen():StartTransitioningScreen("SM_GoToNextScreen") end af[#af+1] = Def.Sprite{ Texture=THEME:GetPathB("Screen...
local path = require "pl.path" local read_config = require "api-umbrella.cli.read_config" local run_command = require "api-umbrella.utils.run_command" local status = require "api-umbrella.cli.status" local function reopen_perp_logs(perp_base) local _, output, err = run_command("perpls -g -b " .. perp_base) if err ...
zUI:RegisterComponent("zCooldowns", function () --[[ basic.lua A featureless version of OmniCC, Doesn't require saved variables or main.lua to function, but has no options To use it, change the file listings in !OmniCC.toc to only the name of this file. You can also remove the saved variables line. -...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = {}, Effects = { PlaceObj('ModifyConst', { 'Const', "RocketPrice", 'Percent', "<rebate>", 'ModifyId', "Shortsicruit", }), }, Prerequisites = { PlaceObj('IsRocketStatus', nil), }, ScriptDone ...
------------------------------------------------- ------------------------------------------------- -------------------𝙍𝙮𝙖𝙣ᵈᵉᵛ----------------------- --------- https://discord.gg/ArRrGB29 ----------- ------------------------------------------------- ------------------------------------------------- local display =...
---------------------------------------------------------------------------------------------------- -- -- Copyright (c) Contributors to the Open 3D Engine Project. -- For complete copyright and license terms please see the LICENSE at the root of this distribution. -- -- SPDX-License-Identifier: Apache-2.0 OR MIT -- --...
function dump(o, r, indent, n, noprint) local r = r or false local indent = indent or 4 local n = n or 0 local noprint = noprint or false local s = "{\n" for k, v in pairs(o) do local val if type(v) == "table" and ((r and v.__name ~= nil) or k == "__identity") then v...
local PANEL = {} function PANEL:Paint(w, h) Theme.hook('PaintTabInventoryBackground', self, w, h) end function PANEL:get_menu_size() return ScrW() / 1.5, ScrH() / 1.5 end function PANEL:on_close() if IsValid(self.hotbar) then self.hotbar:AlphaTo(0, Theme.get_option('menu_anim_duration'), 0) end if IsV...
local config = {} function config.nvim_tree() vim.g.nvim_tree_ignore = { ".git", "node_modules", ".cache" } vim.g.nvim_tree_highlight_opened_files = 1 vim.api.nvim_set_keymap('n', '<Leader>e', ':NvimTreeToggle<CR>', { noremap = true, silent = true }) require('nvim-tree').setup { update_focused_file = { enabl...
local Native = require('lib.native.native') ---@class MapSetting local MapSetting = { } return MapSetting
-- src/log.lua local limit_conn = require "limit_conn" limit_conn.leaving()
-------------------------------------------------- -- BonusScanner Continued v3.5x -- Originally developed by Crowley <crowley@headshot.de> -- performance improvements by Archarodim -- Updated for WoW 2.0 by jmlsteele -- Updated patterns for WoW 2.0, TBC and improved functionality by Tristanian -- v3.5x (super hacked ...
--[[ MIT License Copyright (c) 2022 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...
function onKill(player, target) if not target:isMonster() or target:getName():lower() ~= "pythius the rotten" then return true end target:say("NICE FIGHTING LITTLE WORM, YOUR VICTORY SHALL BE REWARDED!", TALKTYPE_MONSTER_SAY, false, player, Position(32572, 31405, 15)) player:teleportTo(Position(32577, 31403, 15...
local function msub(line, s, f) return line:sub(s, f) .. vim.fn.strcharpart(line:sub(f + 1), 0, 1) end local function link_scaner(line) local pos = 1 return function() while true do local start, finish = line:find('%[[^%[%]]-%]%([^%(%)]-%)', pos) if not start then break end pos = finish + 1...
-- -- ___ ___ _ _ _ __ _ ___ ___ __ __ -- |_ _|| __| / \ | \_/ | / _| / \ | o \ o \\ V / -- | | | _| | o || \_/ | ( |_n| o || / / \ / -- |_| |___||_n_||_| |_| \__/|_n_||_|\\_|\\ |_| 2009 -- -- include( 'control_presets.lua' ) include( 'RopeMaterial.lua' ) include( 'Ctr...
local skynet = require "skynet" local gateserver = require "snax.gateserver" local netpack = require "skynet.netpack" local handler = {} local CMD = {} -- 当客户端链接进来,gatesever自动处理链接,并且调用该函数 function handler.connect(fd, ipaddr) skynet.error("ipaddr:", ipaddr, "fd:", fd, "connect") gateserver.openclient(fd) end -- 当一个...
local ffi = require("ffi") local common = require("testy.ovctl_command_common") struct cmd_show_table { const struct ovsdb_idl_table_class *table; const struct ovsdb_idl_column *name_column; const struct ovsdb_idl_column *columns[3]; bool recurse; }; static struct cmd_show_table cmd_show_tables[] = ...
local S = homedecor.gettext local function N_(x) return x end local bbq_cbox = { type = "fixed", fixed = { -0.5, -0.5, -0.3125, 0.5, 0.53125, 0.3125 } } homedecor.register("barbecue", { description = S("Barbecue"), mesh = "homedecor_barbecue.obj", tiles = { { name = "homedecor_generic_metal.png" , color = ho...
ESX = nil local HSN = {} HSN.PhoneIsOpened = false HSN.EnableAnonymousCall = false HSN.PlayerIsDead = false HSN.InCall = false HSN.InCallL = false HSN.CancelCall = false HSN.PlayerData = {} HSN.Config = {} Citizen.CreateThread(function() while ESX == nil do TriggerEvent("esx:getSharedObject",fun...
-- Copyright 2017 Dirk Brenken (dev@brenken.org) -- This is free software, licensed under the Apache License, Version 2.0 local fs = require("nixio.fs") local uci = require("luci.model.uci").cursor() local util = require("luci.util") local date = require("luci.http.protocol.date") local res_inpu...
--test file that doesn't have 300k lines of lua table code ;) resources = { { name = "Ababuglu", type = "copper_borocarbitic", classes = { {"Inorganic", "inorganic"}, {"Mineral", "mineral"}, {"Metal", "metal"}, {"Non-Ferrous Metal", "metal_nonferrous"}, {"Copper", "copper"}, {"Conductive...
minetest.register_tool("rangedweapons:scar_r", { stack_max= 1, wield_scale = {x=1.7,y=1.7,z=1.25}, description = "", rw_next_reload = "rangedweapons:scar_rr", load_sound = "rangedweapons_rifle_clip_in", range = 0, groups = {not_in_creative_inventory = 1}, inventory_image = "rangedweapons_scar_rld.png", }) min...
test_run = require('test_run').new() test_run:cmd("create server test with script='sql/vinyl-opts-cfg.lua'") test_run:cmd("start server test") test_run:cmd("switch test") box.execute('pragma sql_default_engine= \'vinyl\'') box.execute('CREATE TABLE v1 (id INT PRIMARY KEY, b INT);') box.space.V1.index[0].options box.e...
ITEM.Name = 'Scannie' ITEM.Price = 1000 ITEM.Model = 'models/combine_scanner.mdl' ITEM.Follower = 'scannie' function ITEM:OnEquip(ply, modifications) ply:Fo_CreateFollower( self.Follower ) end function ITEM:OnHolster(ply) ply:Fo_RemoveFollower( self.Follower ) end
-- // About -- // Base instance functions for the Assembler -- // Variables local Players = game:GetService("Players") local Player = Players.LocalPlayer local PlayerGui = Player:WaitForChild("PlayerGui") local Mouse = Player:GetMouse() local IXObjectClassModule = {} IXObjectClassModule.__index = IXObjectClassModul...
print('clothing_gun_holster.lua') local enabled = Game.GetEnabledContentPackages() local isEnabled = false for key, value in pairs(enabled) do if value.Name == "Security clothing plus" then isEnabled = true break end end if not isEnabled then return end local config = dofile(SecurityClothingPl...
local profiler = require("liblprofile").Profiler() local g local function f(x) if x > 2 then return f(x - 1) + g(x - 1) else return x end end function g(x) if x > 2 then return g(x - 1) + f(x - 1) else return x + 1 end end local result = profiler(function() for i = 1, 10e6, 1 do lo...
local LinkedList = {} -- private functions function LinkedList:_GetNodeAtIndex(index) if index > self._size or index < 1 then return nil end local currNode = self._head for _ = 1, index - 1 do if currNode == nil then UI.PrintToScreen("AHHH") end currNode = currNode.next end return...
local M = {} M.STATE_MENU = 1 M.STATE_CONTROLS = 2 M.STATE_CREDITS = 3 M.STATE_PLAYING = 4 M.STATE_GAMEOVER = 5 M.PIXEL_SIZE = 4 M.TILE_SIZE = 16 M.LEVEL_W = 14 M.LEVEL_H = 14 M.SCR_W = 896 M.SCR_H = 896 M.CAN_W = M.SCR_W / M.PIXEL_SIZE M.CAN_H = M.SCR_H / M.PIXEL_SIZE M.MAX_LEVELS = 9 M.APP_NAME = "app_name" M.S...
------------------------------------------------------------------------------- -- Animal Resources Mod by Sapier -- --! @file weapons.lua --! @brief definition of some weapons used by animals modpack --! @copyright Sapier --! @author Sapier --! @date 2012-08-09 -- --! @defgroup weapons Weapons --! @brief weapon entity...
module("luci.controller.netdata", package.seeall) function index() if not (luci.sys.call("pidof netdata > /dev/null") == 0) then return end local fs = require "nixio.fs" entry({"admin", "status", "netdata"}, template("netdata/netdata"), _("NetData"), 10).leaf = true end
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:29' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
local M = {} local TSRange = {} TSRange.__index = TSRange local api = vim.api local ts_utils = require "nvim-treesitter.ts_utils" local function get_byte_offset(buf, row, col) return api.nvim_buf_get_offset(buf, row) + vim.fn.byteidx(api.nvim_buf_get_lines(buf, row, row + 1, false), col) end function TSRange.new(b...
local Item = require("api.Item") local Assert = require("api.test.Assert") local InstancedMap = require("api.InstancedMap") local Chara = require("api.Chara") local TestUtil = require("api.test.TestUtil") local IItemCargo = require("mod.elona.api.aspect.IItemCargo") function test_IStackableObject_separate__single() ...
local subscription = require("envel.stream.subscription") --- @class Observable local Observable = {} Observable.__index = Observable Observable.__tostring = function() return 'Observable' end function Observable.create(producer, obj) local self = obj or {} self._subscribe = producer self._source = nil ...
-- Copyright (c) 2021 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("game.rules.map.reducer", function() local reducer = require "game.rules.map.reducer" local types = require "game.rules.map.types" local Position = require "game.rul...
local _, CLM = ... local PointInfo = { } function PointInfo:New() local o = {} setmetatable(o, self) self.__index = self -- Points spent on loot o.spent = 0 -- Points received o.received = 0 -- Pointes not received due to caps o.blocked = 0 -- Points lost due to decay o.d...
slot0 = require("protobuf") slot1 = require("common_pb") module("p12_pb") SC_12001 = slot0.Descriptor() CS_12002 = slot0.Descriptor() SC_12003 = slot0.Descriptor() CS_12004 = slot0.Descriptor() SC_12005 = slot0.Descriptor() CS_12006 = slot0.Descriptor() SC_12007 = slot0.Descriptor() CS_12008 = slot0.Descriptor() SC_1...
-- -------------------- -- TellMeWhen -- Originally by Nephthys of Hyjal <lieandswell@yahoo.com> -- Other contributions by: -- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol, -- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune -- Currently maintained by -- Cybeloras...
--[[ "a" reads the whole file "l" reads the next line (dropping the newline) "L" reads the next line (keeping the newline) "n" reads a number num reads num characters as a string --]] --[[ t = io.read("a") -- read the whole file t = string.gsub(t, "bad", "good") -- do the job io.write(t) --]] --[[ t = io.read("all") ...
local table = table local extern_dbgcmd = {} local function init(snownet, export) local internal_info_func function snownet.info_func(func) internal_info_func = func end local dbgcmd local function init_dbgcmd() dbgcmd = {} function dbgcmd.MEM() local kb, bytes = collectgarbage "count" snownet.ret...
-- _ _ __ __ -- (_)__ (_) /_ / /_ _____ _ -- / / _ \/ / __/ / / // / _ `/ -- /_/_//_/_/\__(_)_/\_,_/\_,_/ -- vim.cmd('colorscheme tokyonight') require('plugins') vim.g.python3_host_prog = '~/.venvs/neovim/bin/python' -- Options {{{ local scopes = {o = vim.o, b = vim.bo, w = vim.wo} local function op...
include("terms") index = math.random(2); name = array_operation[index] term1 = math.random(54) + 10; term2 = math.random(65 - term1) + 10; if (index == 1) then if (term1 < term2) then temp = term1 term1 = term2 term2 = temp end result = term1 - term2; else result = term1...
function func_Add(x, y) return x+y; end
local state = false function infernusModel() if not state then state = true infernusTexture = engineLoadTXD ( "files/data/options/carmod/infernus.txd" ) engineImportTXD ( infernusTexture, 411 ) infernusTexture = engineLoadDFF ( "files/data/options/carmod/infernus.dff", 411 ) engineReplaceModel ( infernusT...
if not momoIRTweak then momoIRTweak = {} end if not momoIRTweak.dir then momoIRTweak.dir = {} end if not momoIRTweak.item then momoIRTweak.item = {} end if not momoIRTweak.science then momoIRTweak.science = {} end if not momoIRTweak.electronics then momoIRTweak.electronics = {} end if not momoIRTweak.technology then mo...
return {'met','metaal','metaalachtig','metaalader','metaalarbeider','metaalbedrijf','metaalbewerker','metaalbewerking','metaalbewerkingsbedrijf','metaalbond','metaalbranche','metaalconstructie','metaalconstructiebedrijf','metaaldetector','metaaldraad','metaalfabriek','metaalfolie','metaalgieter','metaalgieterij','metaa...
local util = require("spec.util") describe("-b --build-dir argument", function() it("generates files in the given directory", function() util.run_mock_project(finally, { dir_name = "build_dir_test", dir_structure = { ["tlconfig.lua"] = [[return { build_dir = "build...
--region *.lua --Date --此文件由[BabeLua]插件自动生成 require("Fighter") require("EnemyManager") GameLayer = class("GameLayer", function() return cc.Layer:create() end) function GameLayer:ctor() self.GAMESTATE_PLAYING = 0 self.GAMESTATE_OVER = 1 self.gameState = nil self.gameTime = nil self.lbScore = n...
local _, ns = ... ns.encounterInfo = ns.encounterInfo or {} ns.itemBlacklist = ns.itemBlacklist or {} -- http://www.wowhead.com/spells=0?filter=na=Bonus;cr=84:109:16;crs=1:6:5 for spellID, encounterInfo in next, { -- World [132205] = {691, 322, 3}, -- Sha of Anger [132206] = {725, 322, 3}, -- Salyis' Warband (Galle...
----------------------------------- -- Area: Caedarva Mire -- NPC: Nasheefa -- Type: Alzadaal Undersea Ruins -- !pos -440.998 0.107 -740.015 79 ----------------------------------- require("scripts/globals/keyitems"); ----------------------------------- function onTrade(player,npc,trade) if (trade:getItemCount() ...
-- // Rewrite of: https://raw.githubusercontent.com/wally-rblx/funky-friday-autoplay/main/main.lua -- // Configuration local FunkySettings = { Distance = 95, -- // How close the note has to be until we hit it HitChance = 99 -- // Hit 99% of shots } -- // Services local RunService = game:GetService("RunService...
#!/usr/bin/luajit --[[************************************************************************* ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** Commercial License Usage ** Licensees...
local sounds={'alert','bonus','bonus2','cancel00','cardget','cat00','cat01','ch00','ch01', 'damage00','damage01','enep00','enep01','enep02','extend','graze','gun00', 'hint00','invalid','item00','kira00','kira01','kira02','lazer00','lazer01', 'msl','nep00','ok00','option','pause','pldead00','plst00','power0','powe...
MainManager.initUpdateHelper = function (slot0) slot0._timer2CheckUpdate = nil slot0._isShowingAlert = false if not IS_IOS_VERIFY and isMobile then slot3 = _versionUrl1 if StringUtil.isStringValid(slot2) and CHECK_CLIENT_UPDATE then slot7 = slot0.requestCheckUpdate slot6 = -1 slot0._timer2CheckUpdate ...
// Wildfire Ranked Challenges // File description: Clientside script for handling the ranked challenge GUI // Copyright (c) 2022 KiwifruitDev // Licensed under the MIT License. //********************************************************************************************* // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WA...
-- same as vanilla local function UnlockAbility(forAlien, techId) local mapName = LookupTechData(techId, kTechDataMapName) if mapName and forAlien:GetIsAlive() then local activeWeapon = forAlien:GetActiveWeapon() local tierWeapon = forAlien:GetWeapon(mapName) if not tierWeapon the...
-- // Dependencies local Aiming = loadstring(game:HttpGet("https://raw.githubusercontent.com/Stefanuk12/ROBLOX/master/Universal/Aiming/GamePatches/RushPoint.lua"))() -- // Start loadstring(game:HttpGet("https://raw.githubusercontent.com/Stefanuk12/ROBLOX/master/Universal/Aiming/Examples/AimLock.lua"))()
-- Copyright 2022 philh30 -- -- 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 writ...
local Luna = assert(foundation.com.Luna) local mod = assert(foundation.com.InventorySerializer) local ITERATIONS = 1000000 local case = Luna:new("foundation.com.InventorySerializer benchmark") case:describe("ItemStack/0..1", function (t2) t2:test("creating "..ITERATIONS.." empty item stacks", function (t3) for ...
-- local dbg = require("debugger") -- dbg.auto_where = 2 local find_match = require'tools.fn'.find_match local api = require'nvimapi' local _context = require'context' local context local function get_selection(cols) return context.line:sub(cols.begcol+1, cols.endcol+1) end local function repla...
CaveBot.Extensions.Depositor = {} --local variables local closedContainers = false local reopenedContainers = false local destination = nil local lootTable = nil local function resetCache() closedContainers = false reopenedContainers = false destination = nil lootTable = nil for i, container in ipairs(getContai...
print("hello world!") function main(...) for i = 1, arg.n do print(arg[i]) end print(get_current_dir()) end
local moreGames_pin_map = require("qnFiles/qnPlist/hall/moreGames_pin"); local moreGames= { name="moreGames",type=0,typeName="View",time=0,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft, { name="top_bg",type=1,typeName="Image",time=89260144,report=0,x=0...
local handlers = {}; handlers.accounts = { get = function(self, user) local select = self:query("select password from users where username=?", user); local row = select and select:fetch(); if row then return { password = row[1] }; end end; set = function(self, user, data) if data and data.passwor...
return { name = "doh.opendns.com", label = _("OpenDNS"), resolver_url = "https://doh.opendns.com/dns-query", bootstrap_dns = "208.67.222.222,208.67.220.220", help_link = "https://support.opendns.com/hc/en-us/articles/360038086532-Using-DNS-over-HTTPS-DoH-with-OpenDNS", help_link_text = "OpenDNS.com" }
local DB = require('../db.lua') function DB.GetUserLastDaily(id) return DB.rowexecb("SELECT last_daily FROM users WHERE id = ?", id) end function DB.SetUserDailyStars(id, time) return DB.rowexecb("UPDATE users SET last_daily = ? WHERE id = ?", time, id) end function DB.GetUserStars(id) return DB.rowexecb("SELECT ...
sound.Add({ name = "Weapon_E11D.Single", channel = CHAN_USER_BASE+10, volume = 1, sound = {"weapons/e11d/e11d-1.ogg", "weapons/e11d/e11d-2.ogg", "weapons/e11d/e11d-3.ogg"} })
do function Abs(v) if v < 0 then return -v else return v end end function SelectDiamond(lPoint, selection) local x = lPoint.x for x = x, lPoint.x+30, 2 do y = lPoint.y - 16 + Abs((lPoint.x-x)/2 + 16) h = Abs(Abs(lPoin...
-- Written by Rabia Alhaffar in 19/August/2020 -- TARGET! game scenes! local scenes_timer = 0 -- Timer to switch between some of game scenes local started = 0 local gameover_sound1 = 0 local gameover_sound2 = 0 local selecting = 1 local choices = 4 local textfade = 0.0 local difficulty_menu = false difficult...
return {'iter','iters','item','iteratie','iteratief','iteratiemethode','iteratieproces','iteratiestap','iteratiestappen','itereren','itegem','ite','itempje','itempjes','items','iteraties','iteratieslagen','iteratieve','iteratieven','ites','itegemse'}
--[[ © 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 --]] --Also Credits to Tyler.exe for helping me understanding, writing codes in wea...
-- An event handler; local class = require("./Class") local EventHandler = {} function EventHandler.READY(bot, gateway, prop, http) table.insert(bot, prop) -- full collection. you may obtain this with bot[1] bot.user = prop.user gateway.READY() end function EventHandler.MESS...
--[[ Get a json string that represents what has to be changed in given KEYS array :param KEYS: all the already known keys :param ARGV[1]: the maximum number of live keys that have to be processed :param ARGV[2]: pattern for the new keys :returns json object reply: reply.dropped_keys: arra...
--[[ TheNexusAvenger Displays kills on the client. --]] local KILL_FEED_MESSGAE_DURATION = 5 local MAX_KILLFEED_MESSAGES = 3 local KILL_FEED_START_POSITION = 0.6 local KILL_FEED_MESSAGE_HEIGHT_RELATIVE = 0.05 local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") ...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = { PlaceObj('ModifyObject', { 'Prop', "water_consumption", 'ModifyId', "WaterChip", }), }, Effects = {}, NotificationText = T(10997, --[[StoryBit WaterChip_NormalFix NotificationText]] "<DisplayNam...
local me = { frame="EventHelper_Minimap", } function me.Init() me.Tooltip = nil me.SetRing(false) end function me.SetActive(value) me.SetRing(value) end function me.SetRing(active) local green = _G[me.frame.."_Ring_green"] local red = _G[me.frame.."_Ring_red"] if active then green:Show() red:Hide() else ...
prequire("common.lua"); function OnLoad() end function boot_OnStart() require 'CSProxyLUA'; R = CSProxyLUA.Call("Sample.dll", "ProjectDark.KWSupport.LUASample", "HelloWorld"); font1 = createTextFont("Meiryo", 32) text1 = createBlankGraphic( 640, 64); drawTextToGraphic( text1, font1, 0, 0, R, 255, 255, 255, 255...
-- Library for reading .zip files (and by extension, .love files!) local os = require 'loverocks.os' local unzip_ok, luazip = pcall(require, 'zip') local unzip = {} if unzip_ok then function unzip.read(archive, fname) local zipfile, err = luazip.open(archive) if not zipfile then return nil, err end local rf ...
--[[ UI组件管理器 --]] local THIS_MODULE = ... -- 模块名 local C_MODULE_NAME = "__UIWidget__" -- 注册模块元数据配置 metaMgr:registerModule(C_MODULE_NAME, "src/uiwidgets/", "res/uis/widgets/") local UIWidgetManager = class("UIWidgetManager") -- 获得单例对象 local instance = nil function UIWidgetManager:getInstance() if instance == nil t...
function get() if not app.Shop.Enabled then http:redirect("/") return end if not session:isAdmin() then http:redirect("/") return end local data = {} data.success = session:getFlash("success") data.list = db:query("SELECT id, name, created_at, updated_at FR...
#!/usr/bin/env lua -- Spawn X nodes -- -- Usage: spawn.lua 100 # start 100 nodes require('wh') io.popen('mkdir -p /tmp/spawn') if arg[1] == nil then print(string.format("usage: %s <count of peers to spawn>", arg[0])) print() print( "Spawn N WireHub peers (without WireGuard interface). This is useful...
-- Automatically generated packer.nvim plugin loader code if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"') return end vim.api.nvim_command('packadd packer.nvim') local no_errors, error_msg = pcal...
-- This script tests LNVL's reserved keyword mechanic. Running this -- script should always produce an error because it attempts to -- re-define keywords which LNVL considers reserved. See the comments -- in 'LNVL.lua' regarding the 'LNVL.ReservedKeywords' table for more -- information, along with the checkReservedKe...
local Actor = require "actor" local Tiles = require "tiles" local PlateofPaucity = Actor:extend() PlateofPaucity.char = Tiles["armor"] PlateofPaucity.name = "Plate of Paucity" PlateofPaucity.components = { components.Item(), components.Equipment{ slot = "body", effects = { conditions.Modifystats{ ...
require "SvgWriter" require "vmath" require "Viewport" require "SubImage" require "_utils" module(..., package.seeall); local function AddMembersToClass(theTable, theMembers) for funcName, func in pairs(theMembers) do theTable[funcName] = func; end return theTable; end local ImageMembers = {} function ImageM...
-- ShapeGenerator.lua -- Capable of generating shapes in BlockAreas. Either a predefined shape like a cylinder, or a shape from a mathematical formula. -- Only for a shape made using a mathematical formula the constructor has to be used. For other shapes there are static functions to create the shape in a blockarea. ...
-- These are global, but when running in a tee'd vm they will only -- be global to the game vm. local tcpserve = require("app.dataserver") local url = require("lua.url") local json = require("lua.json") local aes = require("lua.aes") local utils = require("lua.utils") -- User login generate...
damagenumber = class:new() function damagenumber:init(x, y, i) self.i = tostring(i) self.x = x self.y = y self.timer = 0 end function damagenumber:update(dt) self.y = self.y - dt*damagenumberspeed self.timer = self.timer + dt/damagenumberduration return self.timer >= 1 end function damagenumber:draw() love....
local C = {} --------------------------------------------- -- Client Constants and Globals -- -- Written by Daniel R. Koris(aka Davenge) -- --------------------------------------------- ---------------------------------------------- -- Client methods -- -- Written by Daniel R. Ko...
local SpatialAdaptiveMaxPooling, parent = torch.class('nn.SpatialAdaptiveMaxPooling', 'nn.Module') function SpatialAdaptiveMaxPooling:__init(W, H) parent.__init(self) self.W = W self.H = H self.indices = torch.Tensor() end function SpatialAdaptiveMaxPooling:updateOutput(input) input.nn.SpatialAdap...
#!/usr/bin/env lua package.path = package.path..";../?.lua" local glfw = require("moonglfw") local gl = require("moongl") local glmath = require("moonglmath") local texture = require("common.texture") local new_teapot = require("common.teapot") local new_skybox = require("common.skybox") local vec3, vec4 = glmath.vec3...
local AreaSystem = {} local AreaStorage = { { id = 1, name = "Farmland fields", town = false, min_level = 2, max_level = 5, min_ai_level = 1, max_ai_level = 3, min_cregicals = 1, max_cregicals = 2, cregicals = { {1, 1, 1}, ...
-- STOP! Are you about to edit this file? -- If you change ANYTHING, please please PLEASE run the following script: -- https://www.guidgenerator.com/online-guid-generator.aspx -- and put in a new GUID in the "guid" field. -- Author: megmacattack -- Data source: mostly http://datacrystal.romhacking.net/wiki/The_L...
object_tangible_terminal_terminal_mustafar_house_guild = object_tangible_terminal_shared_terminal_mustafar_house_guild:new { } ObjectTemplates:addTemplate(object_tangible_terminal_terminal_mustafar_house_guild, "object/tangible/terminal/terminal_mustafar_house_guild.iff")