content
stringlengths
5
1.05M
-- -- Project: Loowy -- User: kostik -- Date: 09.02.17 -- package.path = "../src/?.lua;" .. package.path local config = {} local wsServer for line in io.lines('config.ini') do local key, value = line:match("^(%w+)%s*=%s*(.+)$") if key and value then if tonumber(value) then value = tonumber(value) end...
-- Used to provide cooldown time for teleport. RecallCooldownDataProvider = Up_DataProvider:new { Cooldown = 0 -- Actual cooldown time. } -- Overriden method Up_DataProvider:initialize(). function RecallCooldownDataProvider:initialize() self.Cooldown = GetRecallCooldown() local function updateCooldownTime(...
local module = {} local pin_scl = 5 --yellow local pin_sda = 4 --green local mqtt_id = 6666 local mqtt_topic_co2 = "/your_mqtt_topic/co2" local mqtt_topic_temp = "/your_mqtt_topic/temp" local mqtt_topic_rh = "/your_mqtt_topic/rh" -- CO2 measurement callback local function callback_co2(co2,temp,rh) --prin...
--[[-- @package MoonZaphire @filename window.lua @version 1.0 @author Díaz Urbaneja Víctor Eduardo Diex <victor.vector008@gmail.com> @date 05.02.2021 01:10:40 -04 ]] --- I create the AuthHost subclass of MoonZaphire MoonZaphire:class('AuthHost', Gtk.Box) --- At the beginning of the class function Mo...
-- --The MIT License (MIT) --Copyright (c) 2014 CoolDark -- --See LICENSE file -- addEventHandler ("onPlayerLogin", root, function ( ) fadeCamera( source, true ) setCameraTarget( source, source ) iRandom = math.random ( #g_Positions ) spawnPlayer ( source, g_Positions[iRandom][1],g_Positions[iRa...
local identifiers = {} function ShowInfo(text) SetNotificationTextEntry("STRING") AddTextComponentSubstringPlayerName(text) DrawNotification(false, false) end Citizen.CreateThread(function() local myIdss = getIdentifiers() print(myIdss) while true do Citizen.Wait(10000) ...
--------------------------------------------------------------------------------------------------- -- User story: https://github.com/smartdevicelink/sdl_requirements/issues/10 -- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/resource_allocation.md -- Item: Use Case 3: Excpetio...
require 'nn'; require 'nngraph'; local nBatch = 2 local nCh = 3 local nHt = 4 local nWd = 5 xx = torch.Tensor(nBatch,nCh, nHt, nWd) --========== First batch xx[{1,1,{},{}}] = 1*torch.ones(nHt, nWd) -- bluCh xx[{1,2,{},{}}] = 2*torch.ones(nHt, nWd) -- grnCh xx[{1,3,{},{}}] = 3*torch.ones(nHt, nWd) -...
--[[ Data Preparation functions. ]] local function vecToTensor(vec) local t = torch.Tensor(#vec) for i = 1, #vec do t[i] = vec[i] end return t end local Preprocessor = torch.class('Preprocessor') local paths = require 'paths' local tokenizer = require('tools.utils.tokenizer') local tds local threads loc...
data = '{"entity_id": "switch.macbook_power"}' headers = {} headers["x-ha-access"] = "your_password" local sleepWatcher = hs.caffeinate.watcher.new(function (eventType) if (eventType == hs.caffeinate.watcher.systemDidWake) then hs.notify.show("Wake sequence initiated!", "", "") hs.http.post(...
--[[ Name: "sv_hooks.lua". Product: "HL2 RP". --]] local MOUNT = MOUNT; -- Called just after a player spawns. function MOUNT:PostPlayerSpawn(player, lightSpawn, changeVocation, firstSpawn) if (!lightSpawn) then self:MakePlayerExitStance(player, true); end; end; -- Called when a player spawns lightly. function M...
depends_on("Non_existant")
function onCreate() setProperty('health', getProperty('health') + 1); debugPrint("Welcome to hell") end function opponentNoteHit() cameraShake(game, 0.05, 0.1); end
local _={} _.name="BirchTree" _.new=function(options) local result=BaseEntity.new() Entity.setSprite(result,"birch_tree_1") result.isDrawable=true result.growPhase=1 result.isActive=false result.originX=8 result.originY=15 Taggable.addTag(result,"tree") Entity.afterCreated(result,_,options) retur...
local data = [[ compat/( accessx basic caps complete iso9995 japan ledcaps ledcompose lednum ledscroll level5 misc mousekeys olpc pc pc98 xfree86 xtest README ) geometry/( digital_vndr/(lk pc unix) sgi_vndr/(indigo indy O2) amiga ataritt chicony dell everex fujitsu hhk hp keytronic kinesis ...
function leye (N) local C = torch.zeros(1,N) for i=1,N do C[{1,i}]=i end return newlm(C,N) end
luaarrys = {} function luaarrys.solve(arr) if #arr < 3 then return 0 end local tops = { arr[1], arr[2] } -- array to hold the largest 2 elements table.sort(tops) for i = 3,#arr do local it = arr[i] if it > tops[2] then tops[1] = tops[2] tops[2] = it elseif it > tops[1] then t...
object_building_mustafar_structures_must_uplink_bunker_entrance_door = object_building_mustafar_structures_shared_must_uplink_bunker_entrance_door:new { } ObjectTemplates:addTemplate(object_building_mustafar_structures_must_uplink_bunker_entrance_door, "object/building/mustafar/structures/must_uplink_bunker_entrance_do...
_G.requireInjector() local Config = require('config') local Event = require('event') local itemDB = require('itemDB') local Socket = require('socket') local Terminal = require('terminal') local UI = require('ui') local Util = require('util') local colors = _G.colors local fs = _G.fs loc...
TetrisConf = { Left = 0, Right = 36, Top = 36, Interval = 3, Buffer = 3, Direction = Vector3(0, 0, -1), MovementRate = 1, SpawnDelay = 20, Blocks = { "Objects/CornerRoomBlock.xml", "Objects/CornerRoomBlock2.xml", "Objects/CornerRoomBlock3.xml", "Objects/CornerRoomBlock4.xml", "Objects/CornerRoomBlock...
{["rednet"]=true,["userAuth"]="125}_/%22222222222",["user"]="Carg",["version"]="v0.1",}
local config = { [10001] = { id = 10001, name = "内网服务器", desc = "测试用", }, [10002] = { id = 10002, name = "外网服务器", desc = "测试用", }, [10003] = { id = 10003, name = "测试服务器1", desc = "测试用", }, [10004] = { id = 10004, name = "测试服务器2", desc = "测试用", }, [10005] = { id = 10005, name = "测试服务器3", desc = "测试用", }, [10006] = { id ...
CcsScrollView = class("CcsScrollView", function () return ccui.Layout:create() end) CcsScrollView.SCROLL_V = 1 CcsScrollView.SCROLL_H = 2 CcsScrollView.SCROLL_BOTH = 3 CcsScrollView.CAN_ALL_SCROLL = true CcsScrollView.isScreenOrientationRotated = false DISTANCE_2_TRIGGER_MOVE_H = 3 DISTANCE_2_TRIGGER_MOVE_V = 5 CcsSc...
-- file encode must be UTF8 -- qq号码登录监视脚本(不支持手机号码登录,不支持webqq,只在pc上用qq2015测试通过) -- 2015.9.14 require "base64" require "tcp_ip" function init() trace("plugin init: ".._VERSION.."\n") trace("package path: "..package.path.."\n") trace("package path: "..package.cpath.."\n") --for k,v in pairs(_G) do -- tra...
local helper = require 'app.conf.helper' return helper
-- 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_timbersaw...
-- Format taken from y0ast: https://github.com/y0ast/VAE-Torch.git require 'hdf5' require 'torch' function loadmnist() -- This loads an hdf5 version of the MNIST dataset used here: -- http://deeplearning.net/tutorial/gettingstarted.html -- Direct link: http://deeplearning.net/data/mnist/mnist.pkl.gz local ...
Simulation { name = 'D1', description = 'Three-point Bending - D1 specimen - Omar et al. (2009)' } dofile('$SIMULATIONDIR/$SIMULATIONNAME_model.lua') dofile('$SIMULATIONDIR/$SIMULATIONNAME_solution.lua')
function Ability_Uber(player) local playersChar = player:GetControlledCharacter() if playersChar ~= nil then playersChar:SetInvulnerable(true) playersChar:SetDefaultMaterial(MaterialType.Masked) playersChar:SetMaterialColorParameter("Tint", Color(0, 0, 1)) Timer.SetTimeout(functi...
-- -- simplified version of the menu system used in durden: -- -- table of tables with: -- handler = function called on menu selection, -- label = static string or function returning dynamic string -- name = binding path keybindings -- hidden = don't show in UI menus -- local system = { { label = "Exit", name = "exi...
--[[ LUA MODULE complex v$(_VERSION) - complex numbers implemented as Lua tables SYNOPSIS local complex = require 'complex' local cx1 = complex "2+3i" -- or complex.new(2, 3) local cx2 = complex "3+2i" assert( complex.add(cx1,cx2) == complex "5+5i" ) assert( tostring(cx1) == "2+3i" ) DESCRIPTION ...
return { name="Fill Basins With Water", description="Fill basins on heightmap with water", options= { {name="Max delta", type="value", value=0.0005}, {name="Offset Water Surface", type="value", value=0.002}, {name="Use Mask 0?", type="flag", value=false}, {name="Invert Mask 0?", type="flag", value=false}, ...
local ESX = nil local lastJob = nil local lastGrade = nil local spawnedVeh = {} local lastarmor = 0 local lastskin = nil local pos_before_assist,assisting,assist_target,last_assist = nil, false, nil, nil RegisterNetEvent('esx_adminmode:onCommand') AddEventHandler('esx_adminmode:onCommand', function() local xPlayer = ...
local settings = require "settings" local unit = settings.gridwidth --todo make Grid inherit from Array2d --Singleton --the interface table --singleton class local Grid = {} --the value table local grid = {} function Grid:reset() grid = {} end function Grid:set(x, y) if grid[x] == nil then grid[x] ...
JOBID = { JT_NOVICE = 0, JT_SWORDMAN = 1, JT_MAGICIAN = 2, JT_ARCHER = 3, JT_ACOLYTE = 4, JT_MERCHANT = 5, JT_THIEF = 6, JT_KNIGHT = 7, JT_PRIEST = 8, JT_WIZARD = 9, JT_BLACKSMITH = 10, JT_HUNTER = 11, JT_ASSASSIN = 12, JT_CHICKEN = 13, JT_CRUSADER = 14, JT_MONK = 15, JT_SAGE = 16, JT_ROGUE = 17, JT_...
--[[ Simple paint program to demonstrate display & touch on ILI9341 based displays Author: LoBo, loboris@gmail.com (https://github.com/loboris) To load the program execute 'dofile("paint.lua")' or 'require("paint")' To run the program: set the display orientation (optional), 'paint.orient=tft.LANDSCAPE_FLIP'...
require "luaClass.init" _ENV=namespace "test" using_namespace "luaClass" class ("PublicTest"){ public{ FUNCTION.PublicTest(function(self) --thorw error --self.FIRST=996; self.SECOND=997; end); CONST.FIRST(3333); CONST.SECOND(); S...
local setup = require('plugins.setup') setup(function(import) -- Surround text. import('tpope/vim-surround') -- comment/uncomment binding import('tpope/vim-commentary') -- Treesitter ast / higlighting import('nvim-treesitter/nvim-treesitter', { 'nvim-treesitter/nvim-treesitter-textobjects', { ['d...
-- @description Find and Replace in Marker Region Names -- @author Aaron Cendan -- @version 1.2 -- @changelog -- Added field for toggling search case-sensitivity. -- Fixed replacement with /blank; only affects part of matching name(s). -- Added replacement with /clear; erases entire name of matching markers/regio...
object_tangible_loot_creature_loot_collections_statuette_piece_002 = object_tangible_loot_creature_loot_collections_shared_statuette_piece_002:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_statuette_piece_002, "object/tangible/loot/creature/loot/collections/statuette_piece_002.iff...
q3d = require "quinta" local renderer = nil local mill = nil local mill_wheel = nil local tetrahedron = nil local tetrahedron_copies = {} local use_mouse = true love.window.setMode(640,480,{resizable=true}) love.window.setTitle('Quinta 3D - The World Worst 3D Engine!!!') function love.load() renderer = q3d.Ren...
local Players = game:GetService("Players") local Lighting = game:GetService("Lighting") local RunService = game:GetService("RunService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local ViewportWindow = require(ReplicatedStorage:WaitForChild("ViewportWindow")) local Maid = require(ReplicatedStorage...
local noremap = wincent.vim.noremap noremap('{', ':keeppatterns ?^\\d<CR>', {buffer = true, silent = true}) noremap('}', ':keeppatterns /^\\d<CR>', {buffer = true, silent = true})
------------------------------------------------------ -- template.lua -- -- Match results to names in template. -- -- Possible options: -- safe - Do not die if key in template not found in db. -- syntax - { start = x, end = y } -- execute - Disable / enable execution within template ----------------------------------...
local chain = require"luaossl.x509.chain" return chain
gameNpcs.removeTextAreas = function(id, player) local ID = -89000+(id*6) for i = 0, 5 do removeTextArea(ID+i, player) end end
--====================================================================-- -- Example: Trajectory Direction -- -- Shows example of how to setup dmc_trajectory with objects -- that face either left or right. -- -- by David McCuskey -- -- Sample code is MIT licensed, the same license which covers Lua itself -- http://en.w...
AddCSLuaFile() -- The following is for the server's eyes only local GravityDuplicator if ( SERVER ) then function GravityDuplicator( ply, ent, data ) if ( !data || !data.enabled ) then duplicator.ClearEntityModifier( ent, "gravity_property" ) return end -- Simply restore the value whenever we are dup...
sampleInfo = { CodeName="Regular", ShortName="Regular", LongName="Regular Sampling", Description="Uniformly spaced samples", Functions= { { name = "Regular", progressive = false, randomized = false, cache = false }, { name = "RegularCentered", progressive = false, randomized = false,...
--[[ This file contains the ArenaState class. The ArenaState manages everything that happens in an arena. ]] local g_ArenaStates = {} function cArenaState(a_ArenaName, a_WorldName) local m_ArenaName = a_ArenaName local m_World = a_WorldName local m_HasStarted = false local m_CountDownLeft = Config.Cou...
function model.enableSimulatedCamera() --[[ local data={} data.id=model.handle data.imageProcessingParameters=imgProcessingParams simBWF.query('ragnarVision_connectSimulated',data)--]] end function model.disableSimulatedCamera() --[[ local data={} data.id=model.handle ...
object_tangible_loot_npc_loot_spice_yarrock_generic = object_tangible_loot_npc_loot_shared_spice_yarrock_generic:new { } ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_spice_yarrock_generic, "object/tangible/loot/npc/loot/spice_yarrock_generic.iff")
--[[ Project TkJson-Lua Author T1nKeR File TkBench.lua Decription A benchmark library. --]] local TkBench = {} TkBench.LibraryQueue = {} function TkBench.Reset() TkBench.LibraryQueue = {} end function TkBench.RegisterLibrary(library_name, decoder, encoder) local library = {} library.name...
-- utility functions and variables -- dump object, see https://stackoverflow.com/a/27028488/707516 function dump_object(o) if type(o) == "table" then local s = "{ " for k, v in pairs(o) do if type(k) ~= "number" then k = '"' .. k .. '"' end s = s .. "[" .. k .. "] = " .. dump_object(v) .. "," end ...
function sendChatMessage(templateID, arguments) TriggerEvent('chat:addMessage', { templateId = templateID, multiline = true, args = arguments } ) end --[[ drawNotification(message) Displayes a message above the map @message - The message to ...
--[[ Static class to display menu at start of game, or after lives lost ]] local Shared = require "shared" local Menu = {} function Menu.update(keyboard) --[[ love.keypressed(key) in main.lua takes priority, so not required in Menu.lua ]] end function Menu.draw(gameTitle) --[[ show start menu screen ...
-- Load Extensions local application = require "mjolnir.application" local window = require "mjolnir.window" local hotkey = require "mjolnir.hotkey" local keycodes = require "mjolnir.keycodes" local fnutils = require "mjolnir.fnutils" local alert = require "mjolnir.alert" local screen = require "mjolnir.screen" -- User...
--- This file is generated by ava-x2l.exe, --- Don't change it manaully. --- @copyright Lilith Games, Project Da Vinci(Avatar Team) --- @see Official Website: https://www.projectdavinci.com/ --- @see Dev Framework: https://github.com/lilith-avatar/avatar-ava --- @see X2L Tool: https://github.com/lilith-avatar/avatar-av...
AddCSLuaFile(); CreateClientConVar("discord_show_icons", 1, true, false, "Should show the mute/deafen icons."); local imgSize = 64 local imgSpace = imgSize / 8; local img1 = { x = imgSpace, y = imgSpace, w = imgSize, h = imgSize }; local img2 = { x = (imgSpace * 2) + imgSize, y = imgSpace, w = imgSize,...
--[[ Copyright (c) 2020 Martin Hassman Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute...
include("shared.lua") function ENT:Draw() self:DrawModel() if self.alpha == nil then self.alpha = 0 end if LocalPlayer():GetPos():Distance(self:GetPos()) < 100 then self.alpha = Lerp(10 * FrameTime() , self.alpha , 255) else self.alpha = Lerp(10 * FrameTime() , self.alpha , 0) end local ang = self:GetAng...
require "Server" require "Binary" require "ai" love = {} love.timer = {} function love.timer.getDelta() return 0.02 end server:Init(8118) server:setPing(true, 2, "PING!") server:setHandshake("Hi! I want to play pong!") server:setCallback(updatedata) ai:init() while true do server:update() end
local module = {} function module.init(Modules) local network = Modules.network local events = Modules.events network:connect("fireEvent", "OnClientEvent", function(...) events:fireEventLocal(...) end) end return module
local add_command = require("nebula.helpers.nvim").add_user_command add_command("ReloadPlugins", Nebula.load_plugins)
function create_table_element(filename) --[[ Reads in the file given by the path filename and outputs a new pandoc table element filename: string new_section: pandoc.Table or nil ]] local f = io.open(filename, "r") if f ~= nil then local csv = f:read("*all") f:close() local new_se...
local function getLayoutTable() local t = {}; for k, v in pairs(sArenaMixin.layouts) do t[k] = sArenaMixin.layouts[k].name and sArenaMixin.layouts[k].name or k; end return t; end local function validateCombat() if ( InCombatLockdown() ) then return "Must leave combat first."; ...
-- level3.lua Lvl3 = Gamestate.new() -- LV. 03 (first "bigger" Lv with two ways of choice) function Lvl3:init() atlMap = atl.Loader.load('level3.tmx') player = entity.new(150,675,55,79,atlMap,select(2,next(atlMap.layers))) -- coins and enemies -> all in groups on map coin1 = createNewCoin(845 ,165 , width, heig...
local header = [[ /* auto generated by structs_vk.lua */ /* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must ...
--深海姫プリマドーナ --Scripted by nekrozar function c101012042.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1) c:EnableReviveLimit() --to hand local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(101012042,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_SPECIA...
-- Should be in cl_player_menu.lua but i decided to split the files function FriendsListUI(Online_friends, friends, friends_settings, friends_requests) local ScreenX, ScreenY = GetScreenSize() local dialogPosition = UICSS() dialogPosition.top = math.floor((ScreenY - 325) / 2) .. "px" dialogPosition.l...
--[[ Awesome WM configuration by phantom (Tyler Oalman) --]] -- {{{ Libraries --luacheck: push ignore local awesome, client, mouse, screen, tag = awesome, client, mouse, screen, tag local pairs, ipairs, string, os, table, math, tostring, tonumber, type = pairs, ipairs, string, os, table, math, tostring, ...
--Paint Program-- if false then color(8) print("Work in progress ....") return end local args = {...} if #args < 1 or args[1] == "-?" then printUsage("paint <filename>", "Creates or edits an existing image.") return end local tar = table.concat(args," ") --The path may include whitespaces if tar:sub(-5,-1) ~= ".l...
local fun = require 'fun' local lfs = require 'lfs' local skooma = require 'skooma' local warn = require 'warn.compatible' local yaml = require 'lyaml' local env = setmetatable({}, {__index=function(self, key) return _G[key] or skooma.env[key] end}) local function foreachfile(fn, pattern, dir) for name in lfs.dir(d...
local M = {} local fn = vim.fn local api = vim.api local cmd = vim.cmd local utils = require('hlslens.utils') local config = require('hlslens.config') local winhl = require('hlslens.render.winhl') local extmark = require('hlslens.render.extmark') local floatwin = require('hlslens.render.floatwin') local virt_priorit...
#!/usr/bin/env lua -- https://www.lua.org/pil/16.1.html Coords3 = {} function Coords3:new(x, y, z) cx = { x = x, y = y, z = z, } setmetatable(cx, self) self.__index = self return cx end function Coords3:energy() return math.abs(self.x) + math.abs(self.y) + math.abs(self.z) end Moon = {} f...
local config = require "config" local vector = require "lib.vector" local sensor = require "lib.sensor" local _entity_ = {} ; _entity_.__index = _entity_ function _entity_.create (env, args) -- initialize entity local instance = setmetatable({ position = assert(args.position, 'missing position')...
data:extend({ -- Ghost tint { type = "double-setting", name = "blue-ghosts-r", setting_type = "startup", minimum_value = 0, maximum_value = 1, default_value = 0.0, order = "a" }, { type = "double-setting", name = "b...
local error_handling = require("gimpy/error_handling") error_handling.handle_awesome_errors() local initialize = require("gimpy/initialize") initialize.initialize() -- vim: ft=lua sts=2 sw=2
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( 'shared.lua' ) function ENT:Initialize() self.Entity:SetMoveType( MOVETYPE_NONE ) self.Entity:SetSolid( SOLID_OBB ) self.BuildingSound = CreateSound( self.Entity, "ambient/levels/citadel/portal_beam_loop1.wav" ) self.BuildingSound:Play() ...
function SaveDataToFile(fileName, data) local file = io.open(fileName, "a") file:write(data) file:close() end function err(msg) MsgBox(msg) end function IsFullPath(filePath) local ret = string.match(filePath, "(%a):.*") if ret and ret ~= "" then return true else return false end end function ReadFile(fil...
-------------------------------- -- @module Helper -------------------------------- -- @function [parent=#Helper] seekWidgetByTag -- @param self -- @param #ccui.Widget widget -- @param #int int -- @return Widget#Widget ret (return value: ccui.Widget) -------------------------------- -- @function [parent=#He...
local utils = require('metrics.utils') local collectors_list = {} local function update() if not utils.box_is_configured() then return end local vinyl_stat = box.stat.vinyl() collectors_list.vinyl_disk_data_size = utils.set_gauge('vinyl_disk_data_size', 'Amount of data stored in files...
-- Copyright (c) 2016 John Schember <john@nachtimwald.com> -- -- 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, ...
-- Creating Early Variables. local Player = game.Players.LocalPlayer local Character = Player.Character local PlayerName = Player.Name local Physics = settings().Physics local Head = Character:FindFirstChild("Head") local Torso = Character:FindFirstChild("Torso") local HumanoidRootPart = Character:FindFirstChild("Huma...
--- -- @author wesen -- @copyright 2020 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local BaseInjector = require "ArgumentListWrapper.Injector.BaseInjector" local ValueAtPositionInjector = BaseInjector:extend() ValueAtPositionInjector.appendValues = nil function ValueAtPositionInjector:new(_injectVal...
local lpeg = require("lpeg") local R = lpeg.R local S = lpeg.S local P = lpeg.P local C = lpeg.C -- local V = lpeg.V local Cg = lpeg.Cg local Ct = lpeg.Ct local number = {} local digit = R("09") number.integer = (S("+-") ^ -1) * (digit ^ 1) number.fractional = (P(".") ) * (digit ^ 1) number.decimal = (number.i...
local dbConn addEventHandler('onResourceStart', resourceRoot, function() dbConn = dbConnect('sqlite', ':/global.db') end) getConn = function() return dbConn end
local rdebug = require 'remotedebug.visitor' local fs = require 'backend.worker.filesystem' local source = require 'backend.worker.source' local evaluate = require 'backend.worker.evaluate' local ev = require 'common.event' local hookmgr = require 'remotedebug.hookmgr' local breakpoints = {} local waitverify = {} loca...
local Config = require("AdituV.DetectTrap.Config"); local Utility = require("AdituV.DetectTrap.Utility"); -- Proxy for tes3.mobileplayer with extended functionality local MobilePlayer = { -- (Float) the additional chance (from 0 to 1) applied to trap detection. -- Intended to be modified by a spell/enchantment, et...
require("games/common2/match/module/matchLayerBase"); local MatchReviveLayer = class(MatchLayerBase); MatchReviveLayer.parseViewConfig = function(self) local viewConfig = { ["onlooker"] = {}; }; return viewConfig; end -- 初始化layer的配置 MatchReviveLayer.initViewConfig = function(self) ...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' 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...
--[==[ luawinapi - winapi wrapper for Lua Copyright (C) 2011 Klaus Oberhofer. See copyright notice in LICENSE file Simple test application for luawinapi --]==] winapi = require("luawinapi") -- control IDs ID_EDIT = 1 ID_BUTTON = 2 -- start print("-----------------GetModuleHandleW") hInstance = winap...
local inspect = require("inspect") local pp = {} function pp.p(root, options) print(pp.format(root, options)) end function pp.format(root, options) return inspect.inspect(root, options) end function pp.traceback(prefix, offset) print(prefix .. "Traceback") if not offset then offset = 2 end local dee...
local redis = { protocol = require'redis-client.protocol', response = require'redis-client.response', } describe('redis-client.protocol sending commands', function() it('rejects a missing argument array', function() assert(redis.protocol.send_command(true) == nil) end) it('rejects an empty argument array...
require 'nn' require 'image' require 'xlua' local DataSet = torch.class 'DataSet' function DataSet:__init(full) local source = '/home/caoqingxing/crawler/cloth_test/female_images/female_formatted_attributes_part_random_index.txt' local impath = {} local attri = {} local sampleCount = 0 local attriCount = -1...
DefineClass.OverviewMapCurtains = { __parents = { "XDialog" }, curtains_width = -1, curtains_height = -1, ZOrder = -1000, FadeInTime = const.InterfaceAnimDuration, FadeOutTime = const.InterfaceAnimDuration, } function OverviewMapCurtains:Open() XDialog.Open(self) self:SetOverviewCurtains() end function Overv...
----------------------------------- -- Area: Newton Movalpolos -- NPC: Moblin Showman - Bugbear Matman -- !pos 124.544 19.988 -60.670 12 ----------------------------------- local ID = require("scripts/zones/Newton_Movalpolos/IDs") require("scripts/globals/npc_util") ----------------------------------- function onTrad...
local completion = {} local conf = require('modules.completion.config') -- Plug 'neovim/nvim-lspconfig' -- opt true completion['neovim/nvim-lspconfig'] = { -- event trigger what? event = 'BufReadPre', config = conf.nvim_lsp, } -- ? -- -- opt true completion['tami5/lspsaga.nvim'] = { -- branch = 'main', -- bra...
Apartments = {} Apartments.SpawnOffset = 30 Apartments.Locations = { ["apartment1"] = { name = "apartment1", label = "South Rockford Drive", coords = { enter = vector4(-667.372, -1106.034, 14.629, 65.033), doorbell = vector4(-667.372, -1106.034, 15, 65.033), ...
function onUpdate(elapsed) if boyfriendName == 'bf' then --replace the name for your character name for i=0,4,1 do setPropertyFromGroup('playerStrums', i, 'texture', 'NOTE_assets') end for i = 0, getProperty('unspawnNotes.length')-1 do if getPropertyFromGroup('unspawnNotes', i, 'mustPress') then ...