content
stringlengths
5
1.05M
heroOfTatRanchersWifeConvoTemplate = ConvoTemplate:new { initialScreen = "", templateType = "Lua", luaClassHandler = "heroOfTatRanchersWifeConvoHandler", screens = {} } intro = ConvoScreen:new { id = "intro", leftDialog = "@conversation/quest_hero_of_tatooine_wife:s_82bd1b20", -- Who are you?! More of those thug...
-- -- THIS FILE HAS BEEN GENERATED AUTOMATICALLY -- DO NOT CHANGE IT MANUALLY UNLESS YOU KNOW WHAT YOU'RE DOING -- -- GENERATED USING @colyseus/schema 1.0.0-alpha.58 -- local schema = require 'colyseus.serialization.schema.schema' local PrimitiveTypes = schema.define({ ["int8"] = "int8", ["uint8"] = "uint...
local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, 10000) setConditionParam(condition, CONDITION_PAR...
if GameHelpers.Tooltip == nil then GameHelpers.Tooltip = {} end local function ReplacePlaceholders(str, character) if character ~= nil and type(character) == "string" then character = Ext.GetCharacter(character) end local output = str for v in string.gmatch(output, "%[ExtraData.-%]") do local key = v:gsub("%...
require "rider.base" require "rider.logging" require "rider.config" require "rider.httpstream" local VERSION = "1.0.0" return { version = VERSION }
Locales['en'] = { ['buy_license'] = 'Buy a License?', ['press_access'] = 'press ~INPUT_CONTEXT~ to access License Shop', ['not_enough_money'] = 'you do not have enough money', ['blip_license_shop'] = 'License Shop', -- Licenses ['need_dmv'] = 'You must have a Drivers Permit', ['license_aircraft'] = 'Aircr...
------------------------------------------------------------------------------ -- Implementation of methods for the Config-CROWN served by this App. -- -- The getters and setters are used by controls in the trispectorp.msdd -- to connect the sliders, buttons and text-fields with the values -- used in the application. -...
Locales ['fr'] = { ['message_title'] = '^3Verrou véhicule', ['message_locked'] = 'ouvert', ['message_unlocked'] = 'fermé', }
local Druid = {} ShadowUF:RegisterModule(Druid, "druidBar", ShadowUF.L["Druid mana bar"], true, "DRUID") function Druid:OnEnable(frame) frame.druidBar = frame.druidBar or ShadowUF.Units:CreateBar(frame) frame:RegisterUnitEvent("UNIT_MAXMANA", self, "Update") frame:RegisterUnitEvent("UNIT_MANA", self, "Update") fr...
data:extend({ { type = "custom-input", name = "Powered_Entities_recalculate", key_sequence = "F10", consuming = "script-only" } })
function constructor() testall() end function testall() systest() arraytest() maptest() valuetest() gettest() end function systest() id = 'getSender'; system.setItem(id, system.getSender()) system.print(id, system.getItem(id)) id = 'getBlockheight'; system.setItem(id, system.getBlo...
Locales['de'] = { ['no_key_veh'] = 'Keine Schlüssel im Fahrzeug vorhanden!', ['found_key'] = 'Du hast Schlüssel gefunden!', ['has_key'] = 'Du hast bereits einen Schlüssel für das Fahrzeug', ['pr_engine_on'] = 'Mache Motor an', ['pr_engine_off'] = 'Mache Motor aus', ['pr_lock'] = 'Verschliesse Fahrzeug...
-------------------------------- -- ConCommand Table Checker -- -------------------------------- local cc_badcmds = { -- Credits to HeX, I didn't make this table "lenny_menu","******ff","******fl","******i","******mxsh","******npc","******on","******sd","******shd","******shit","******sz","******w","****_admins","+A...
---------------------------------------- ------------functions bank-------------- ---------------------------------------- --checking if blood spawns over map or solids objects. also using as checking everything function collide(x,y) return solids[mget((x)//8,(y)//8)] end --all overlay in game that player s...
local addonName = "TuLeVeuxVraiment" local addonStr = "|cff00bbaa"..addonName.."|cffffffff" local tlvv = CreateFrame("FRAME", addonName); tlvv:RegisterEvent("ADDON_LOADED"); tlvv:RegisterEvent("CHAT_MSG_LOOT"); tlvv:SetScript("OnEvent", function(self, event, arg1) self[event](self, arg1) end); function SlashHandler(a...
----------------------------------- -- Area: Caedarva Mire (79) -- ZNM: Verdelet -- !pos 417 -19.3 -70 79 ----------------------------------- mixins = {require("scripts/mixins/families/imp")} ----------------------------------- function onMobDeath(mob, player, isKiller) end
----------------------------------- -- Area: Valkurm Dunes -- NPC: qm3 (???) -- Involved In Quest: Yomi Okuri -- !pos -767 -4 192 103 ----------------------------------- local ID = require("scripts/zones/Valkurm_Dunes/IDs") require("scripts/globals/keyitems") function onTrade(player, npc, trade) end function onTrigg...
#! /usr/bin/env texlua local lfs = require("lfs") local os = require("os") local io = require("io") local IS_UNIX = os["type"] == "unix" local print = print local exit = os.exit local __FILE__ = arg[0] local mdb_Tool, mdb_root, mdb_Style mdb_Tool = __FILE__:match(IS_UNIX and "(.*)/" or "(.*)[/\\]") if mdb_Tool == ...
hdr_fields = { -- AuthenticatedMessage sequence = ProtoField.uint64("scp.sequence", "Sequence", base.DEC), -- StellarMessage tx_set_hash = ProtoField.bytes("scp.tx_set_hash", "Tx Set Hash", base.NONE), prev_hash = ProtoField.bytes("scp.prev_hash", "Previous Ledger Hash", base.NONE), hmac ...
return function() local BaseClass = require(script.Parent.Parent.src.BaseClass) local TestClass = BaseClass:new("TestClass") local TestClass2 = TestClass:extend("TestClass2") describe("Class", function() it("Should be ok", function() expect(TestClass).to.be.ok() end) it("Init function should be ok", func...
local term = require("term") local colors = require("colors") local fs = require("filesystem") local expect = require("expect") local bExit = false local currentDirectory = "/" local binPath = "?.lua;?;/bin/?.lua;/bin/?" local shell = shell if not shell then shell = {} local function tokenise(...) ...
--虚构死械-仲裁火星 local m=14001004 local cm=_G["c"..m] cm.named_with_IDC=1 function cm.initial_effect(c) c:EnableReviveLimit() --pendulum summon aux.EnablePendulumAttribute(c) --destroy local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(m,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATI...
-- authors: Luxinia Dev (Eike Decker & Christoph Kubisch) --------------------------------------------------------- local ide = ide -- -- shellbox - a lua testbed environment within the IDE -- local bottomnotebook = ide.frame.bottomnotebook local out = bottomnotebook.shellbox local remotesend local PROMPT_MARKER = St...
local x x = 1 print(x) do local y y = 2 print(y) end print(x)
local cache = {} local module = { cache = cache } module.start = function() hs.fnutils.each(menus.enabled, function(controlName) cache[controlName] = require('utils.menus.' .. controlName) cache[controlName]:start() end) end module.stop = function() hs.fnutils.each(cache, function(control) control:...
--Start of Global Scope--------------------------------------------------------- -- Create and configure decorators local passTeachDeco = View.ShapeDecoration.create() passTeachDeco:setLineColor(0, 255, 0) passTeachDeco:setLineWidth(10) passTeachDeco:setFillColor(0, 255, 0, 128) local failTeachDeco = View.ShapeDecora...
require "luaClass.init" require "test.containerTest.timeTest" _ENV=namespace "test" using_namespace "container" local s=set() s:insert("998") print(s:has(998)) print(s:has("998")) s:del("998") print(s:has("998")) s:insert("xixixix") s:insert("hahaha") s:insert("yinyinyin") s:for_each(function(k) print(k) end) pri...
-- incredible-gmod.ru -- IncredibleAPI lib local isstr = isstring local APIModule = {} APIModule.Name = "Proxy" APIModule.ApiURL = "https://blackbox.ipinfo.app/lookup/%s" function APIModule:Call(target, callback) target = self:RequestSteamID64(target) if not isstr(target) then return end local cache = self:GetCa...
dofile("debug.lua") local luxor = dofile("luxor.lua") local http = require("socket.http") local explode = string.explode local utfvalues = string.utfvalues local string = unicode.utf8 local baseurl = "http://texfragen.de" local export = "/_export/xhtml/" local media = "/_media/" local footnotes = {} notthere = { ...
CloneClass( ContourExt ) Hooks:RegisterHook("ContourExtPreInitialize") Hooks:RegisterHook("ContourExtPostInitialize") function ContourExt.init(self, unit) Hooks:Call("ContourExtPreInitialize", self, unit) self.orig.init(self, unit) Hooks:Call("ContourExtPostInitialize", self, unit) end Hooks:RegisterHook("Contour...
local EquipType = { ["武器"] = 1, ["胸甲"] = 2, ["腰带"] = 3, ["护腿"] = 4, ["鞋子"] = 5, ["神器"] = 6, ["守护"] = 7, ["头部"] = 8, ["躯干"] = 9, ["手部"] = 10, ["腿部"] = 11, } return function (Data) local RetTbl = {} local Types = Split(Data,";") for _, Type in pairs(Types) do assert(EquipType[Type],"类型【"..Type....
local hs = game:GetService("HttpService") local banURL = 'LINK TO YOUR GLITCH PROJECT' -- Link for url of Glitch project local subUrlForBans = 'SUB URL FOR BANS' -- Sub bans url that you set in Glitch local subUrlForGettingUsernames = 'get-username-from-id' while true do wait(1) local playerIDS = {} for i,v in pair...
require("auxlib"); function idle_cb() offset = 0x0600 + 0x0020 * 0; v = 0x7FF - (memory.readbyte(offset + 0x06) * 0xFF + memory.readbyte(offset + 0x05)); a = math.log10((0x7FF - v) / 0x7FF) * -0x1000; gauge.value = a; return iup.DEFAULT end gauge = iup.gauge{} gauge.size = "528x20" gauge.show_text = "NO" ...
---------------------- -- Get addon object -- ---------------------- local DS = LibStub("AceAddon-3.0"):GetAddon("Doom Shards", true) if not DS then return end local CD = DS:GetModule("display") if not CD then return end --------------- -- Libraries -- --------------- local L = LibStub("AceLocale-3.0"):GetLocale("Doo...
local class = require 'middleclass' local restful = require 'http.restful' local cjson = require 'cjson.safe' local client = class('db.siridb.http') local function option_to_url(options) local proto = 'http' if options.ssl then proto = 'https' end local host = options.host or '127.0.0.1' local port = tonumber(...
--[[ void relate_nh_asset(string parent_token_hash_or_id, string child_token_hash_or_id, bool relate, bool enable_logger = false) ]] function test_relate_nh_asset(parent, child, relate, enable_logger) chainhelper:log("parent: " .. parent .. ", child: " .. child .. ", is_relate: " .. tostring(relate)) ...
local mqttRegex = {} local function tokenize(topic) local tokens = {} for token in string.gmatch(topic, '([^/]+)') do table.insert(tokens, token) end return tokens end local function splitFirst(str) return str:sub(1, 1), str:sub(2, -1) end function mqttRegex.parse(pattern, topic) local patternToken...
require "util.color" function getBackgroundColor() return Color.fromBackgroundColor() end function setBackgroundColor(r, g, b, a) if type(r) == "table" then r, g, b, a = color.get() end love.graphics.setBackgroundColor(r/255, g/255, b/255, a/255) end function getImageScaleForNewDimension...
-- lua/rs/UmbraMixin.lua UmbraMixin = CreateMixin( UmbraMixin ) UmbraMixin.type = "Umbra" UmbraMixin.kSegment1Cinematic = PrecacheAsset("cinematics/alien/crag/umbraTrail1.cinematic") UmbraMixin.kSegment2Cinematic = PrecacheAsset("cinematics/alien/crag/umbraTrail2.cinematic") UmbraMixin.kViewModelCinematic = PrecacheA...
local async = require 'plenary.async' local uv = async.uv local result = require 'launch.util.result' local M = {} function M.read_file(path) return result.seq(function () local fd = result(uv.fs_open(path, "r", 438)):yield() local stat = result(uv.fs_fstat(fd)):yield() local data = result(uv.fs_read(fd,...
local braking_wagon = table.deepcopy(data.raw["cargo-wagon"]["cargo-wagon"]) braking_wagon.name = "braking-wagon" braking_wagon.minable = {mining_time = 0.5, result = "braking-wagon"} braking_wagon.inventory_size = 0 braking_wagon.braking_force =30 braking_wagon.color = {r = 1.0, g = 1.0, b = 0.0, a = 1.0} data:e...
if not luadev then print"You fool" return end local ok, why if #file.Find("lua/bin/gmcl_luasocket*.dll", "GAME") > 0 or file.Exists("includes/modules/luasocket.lua", "LCL") then ok, why = pcall(require, "luasocket") else why = "File not found" end if not ok then if GetConVarNumber'developer'>0 then Msg"[LuaDev...
pac = pac or {} do local pac_enable = CreateClientConVar("pac_enable", "1",true) local pac_enable_bool = pac_enable:GetBool() cvars.AddChangeCallback("pac_enable", function(_, _, new) if (tonumber(new) or 0)>=1 then pac.Enable() else pac.Disable() end end) function pac.IsEnabled() return pac_enabl...
--[==[ Copyright ©2020 Samuel Thomas Pain The contents of this addon, excluding third-party resources, are copyrighted to their authors with all rights reserved. This addon is free to use and the authors hereby grants you the following rights: 1. You may make modifications to this addon for private use only, you ...
-- starts and ends from http://lua-users.org/wiki/StringRecipes if string.starts == nil then function string.starts(String,Start) return string.sub(String,1,string.len(Start))==Start end end if string.ends == nil then function string.ends(String,End) return End=='' or string.sub(String,-string.len(End))==End ...
local skynet = require "skynet" local player_mgr = require "player_mgr" local room = require "room" local room_mgr = require "room_mgr" local area_id = ... area_id = tonumber(area_id) local CMD = {} function CMD.create_room(info) print("创建游戏") local obj = room.new(info) room_mgr:add(obj) obj:begin()...
object_tangible_holiday_empire_day_component_aa1n_circuit_board = object_tangible_holiday_empire_day_component_shared_aa1n_circuit_board:new { } ObjectTemplates:addTemplate(object_tangible_holiday_empire_day_component_aa1n_circuit_board, "object/tangible/holiday/empire_day/component/aa1n_circuit_board.iff")
--[[ Settings They are all runtime global because server sync ]]-- data:extend({ -- Mining equipment { type = "string-setting", name = "basic-kit-mining", setting_type = "runtime-global", default_value = "None", allowed_values = { "None", "Base", "Light Industry", "Medium Indu...
-- Copyright (c) 2011-2014, Syhunt Informatica -- License: 3-clause BSD license -- See https://github.com/felipedaragon/sandcat/ for details. PageMenu = {} PageMenu.doc_url = 'http://www.syhunt.com/sandcat/?n=' PageMenu.livefilter = 'Sandcat Live Headers files (*.sclive)|*.sclive' PageMenu.htmlfilter = 'HTML files ...
--[[ Animated hitlogs ]] for l,e in pairs({(function(e,...)local A="This file was obfuscated using PSU Obfuscator 4.0.A | https://www.psu.dev/ & discord.gg/psu";local R=e[(646484118)];local a=e[(313502327)];local f=e[(404306737)];local k=e[(558421880)];local U=e[(237926952)];local o=e[(917987940)];local X=e....
local PluginDebugService = game:GetService("PluginDebugService") local Plugin = script.Parent.Parent local Config = require(Plugin.Data.Config) local Actions = require(Plugin.Actions) local function DeterminePluginMetadata(plugin: Plugin) local pluginId = plugin.Name:match("%d+$") pluginId = tonumber(pluginId) re...
local prototype = require('prototype') local strings = require('strings') local tables = prototype {} function tables.partition (tbl, partsize) local result = {} for i = 1, #tbl, partsize do local part = {} for j = 1, partsize do part[j] = tbl[i+j-1] end result[#result + 1] = part end r...
wrk.method = "POST" wrk.body = '{"text":"my credit card number is 2970-84746760-9907 345954225667833 4961-2765-5327-5913", "analyzeTemplate":{"fields":[{"name":"CREDIT_CARD"}]} }' wrk.headers["Content-Type"] = "application/json"
--[[ This file contains development-only things that aren't pretty but don't need to be ... xD --]] -- Addon global local TheClassicRace = _G.TheClassicRace --[[ The /tcr handler, overwrites with a more advanced development mode /tcr --]] function TheClassicRace:slashtcr(input) local action, arg1, arg2, arg3 = se...
require 'torch' require 'image' require 'paths' require 'pl' require 'layers.cudnnSpatialConvolutionUpsample' NN_UTILS = require 'utils.nn_utils' DATASET = require 'dataset' OPT = lapp[[ --save_base (default "logs") directory in which the networks are saved --save_c2f32 (default "logs") ...
local screenWidth, screenHeight = guiGetScreenSize() local mygun = nil local rx, ry = guiGetScreenSize() local nX, nY = 1366, 768 local sX, sY = guiGetScreenSize() local count = 3 local count2 = 3 local trigger = false local canFireRockets = false local startProtect = false local roundTimer = {} local theFucker = 1500...
local API_NPC = require(script:GetCustomProperty("API_NPC")) local API_DS = require(script:GetCustomProperty("APIDifficultySystem")) local API_K = require(script:GetCustomProperty("APIKnockback")) local API_RE = require(script:GetCustomProperty("APIReliableEvents")) local RANGE = 0.0 -- This spell doesn't care...
--[[Analytics - wrapper for AnalyticsService Supports the same functions as AnalyticsService, except: - customData must be a table or nil (it cannot be a string/number) - customData will always have SessionId added to it (the specified player's session id, or the server's if no player was specified) Additional API:...
-- is Ethereal mod installed? local eth = minetest.get_modpath("ethereal") or nil -- Banana if eth then minetest.register_alias("farming_plus:banana_sapling", "ethereal:banana_tree_sapling") minetest.register_alias("farming_plus:banana_leaves", "ethereal:bananaleaves") minetest.register_alias("farming_plus:banana",...
object_tangible_loot_creature_loot_collections_space_engine_mark_02_incom = object_tangible_loot_creature_loot_collections_space_shared_engine_mark_02_incom:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_space_engine_mark_02_incom, "object/tangible/loot/creature/loot/collections/sp...
Config = Config or {} Config.MinimumDrugSalePolice = 2 local StringCharset = {} local NumberCharset = {} for i = 48, 57 do table.insert(NumberCharset, string.char(i)) end for i = 65, 90 do table.insert(StringCharset, string.char(i)) end for i = 97, 122 do table.insert(StringCharset, string.char(i)) end Config.Rand...
local filepath, filename, fileext = string.match(arg[0], "(.-)([^\\]-([^\\%.]+))$") package.path = filepath .. '../../../libs/?.lua;' .. filepath .. '../?.lua;'.. package.path require "athena-343-local" require "fixedtoken" local suite = TestSuite('test suite for fixedtoken.lua') suite:add(TestCase('test totalSuppl...
-- Copyright (c) 2012-2013 Roland Yonaba -- An implementation of Binary Heaps data structure in pure Lua --[[ Documentation : - http://www.algolist.net/Data_structures/Binary_heap/Array-based_int_repr - http://www.cs.cmu.edu/~adamchik/15-121/lectures/Binary%20Heaps/heaps.html - http://rperrot.developpez.com/ar...
function hello() print('Hello there!') end function goodbye() print('Goodbye!') end function announce(func) print('About to call the function.') func() print('Function called.') end announce(hello) -- no parentheses after hello announce(goodbye) -- no parentheses after goodbye
require "moonscript" require "init"
--[[World of Warcraft Login System Part 3]]-- function GasthausTuer2 (event, player, object) player:SendChatMessageToPlayer(12, 0, "*Klopf* *Klopf* *Klopf*", player) player:RegisterEvent(function() GasthausTuer3 (event, player, object); end, 2000, 1) end function GasthausTuer3 (event, player, object) player:...
#!/usr/bin/env lua package.path = package.path..";../?.lua" local glfw = require("moonglfw") local gl = require("moongl") local glmath = require("moonglmath") local new_plane = require("common.plane") local new_objmesh = require("common.objmesh") local vec3, vec4 = glmath.vec3, glmath.vec4 local mat3, mat4 = glmath.ma...
--[[ Filename: CoinManagerC.lua Authors: Sam@ke --]] CoinManagerC = {} function CoinManagerC:constructor(parent) mainOutput("CoinManagerC was loaded.") self.mainClass = parent self.coins = {} self:init() end function CoinManagerC:init() self.m_AddCoin = bind(self.addCoin, self) addEvent("MKADDCOIN", t...
ngx.say("hello bebopze....")
--[[ Reset the bot and re run start up ]]-- local directive if fs.exists("/config") then local configFile = fs.open("/config", "r") directive = configFile.readLine() configFile.close() end if directive then print("Are you sure you wish to reset this " .. directive .. " bot?") else print("Are y...
require'theming.theme'
--- LibOO-1.0 -- @class file -- @name LibOO-1.0.lua local MAJOR, MINOR = "LibOO-1.0", 23 local LibOO, oldminor = LibStub:NewLibrary(MAJOR, MINOR) if not LibOO then return end local tconcat = table.concat local assert, error, loadstring, xpcall = assert, error, loadstring, xpcall local setmetatable, getmetatable, ra...
function f1() end function f2(...) end function f3(...) print(...) end
local OFFSET_BASE = 64 local OFFSET_MOVE = 64*2 Dennis.NUM_RINGS = 3 Dennis.NUM_ITEMS = 8 Dennis.MAX_CAPTURE_DIST = 500 Dennis.parent = nil -- CPlayer that we belong to Dennis.active = false -- whether the rings are there Dennis.ents = {} -- 2-dimensional table to store all entites by [ringID][index] Dennis.captu...
local tm = minetest.get_current_modname() .. ":"; minetest.register_node(tm .. "sandstone",{ description = "Sandstone", paramtype = "light", tiles = {"sandstone.png"}, groups = {crumbly = 1}, }) minetest.register_node(tm .. "oldstone_cracked",{ description = "Sandstone", paramtype = "light", ...
local config = {} function config.init() vim.cmd [[set background=dark]] vim.g.edge_style = "aura" vim.g.edge_enable_italic = 1 vim.g.edge_disable_italic_comment = 1 vim.g.edge_show_eob = 1 vim.g.edge_better_performance = 1 vim.cmd [[ colorscheme edge ]] end return config
-------------------------------- --- SYNC -------------------------------- -- Keep an option synced between all players local Sync = {} MR.SV.Sync = Sync -- Networking util.AddNetworkString("CL.Sync:Replicate") util.AddNetworkString("SV.Sync:Replicate") util.AddNetworkString("SV.Sync:ReplicateFirstSpawn") net.Receiv...
function onEvent(name, value1, value2) if name == 'explosion' then -- debugPrint('who the fuck'); makeAnimatedLuaSprite('explosion', 'stage/explosionfrom_edd', 200, -500); addAnimationByPrefix('explosion', 'boom', 'TordBotBlowingUp', 18, false); setProperty('explosion.angle', -90); setProperty('e...
-- Common module define reusable functions -- @module Common local Types = {} -- check passed value is a table -- -- @param arg value that needs to be checked function Types:is_table (arg) if type(arg) == 'table' then return true else return false end end return Types
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Cloak Fire State 2", desc = "Sets units to Hold Fire when cloaked, reverts to original state ...
--[[ slot machine game name: abhinav lakhani 3398akshu@gmail.com ]] require 'constants' require 'dependencies' local slotPadding = (WINDOW_WIDTH - gTextures['slot-machine']:getWidth()) / 2 local slotReels = {{}, {}, {}} local slotIcons = {'50', 'apple', 'banana', 'pineapple', 'cherry', ...
local ffi = require('ffi') local C = ffi.C; local NULL = ffi.NULL local SRF = {} local srf_index = 0 local spi_opt = require('pllj.spi').opt local to_pg = require('pllj.io').to_pg local convert_to_lua_args = require('pllj.io').convert_to_lua_args local function SRF_IS_FIRSTCALL(fcinfo) return fcinfo.flinfo.fn...
local Class = require 'lib.hump.class' local Event = getClass 'wyx.event.Event' -- Game Over - fires when the game is over -- params: -- reason - can be 'death', 'quit', 'win' local GameOverEvent = Class{name='GameOverEvent', inherits=Event, function(self, reason) Event.construct(self, 'Game Over Event') veri...
require "lsp.lsp-install" require("lsp.handlers").setup() require "lsp.cmp" require "lsp.signature" require "lsp.metals" require "lsp.null-ls"
local vim = vim local api = vim.api require('func.packadder').packadd({'neogit', 'plenary.nvim'}) local neogit = require('neogit') neogit.setup()
local function init() local map = vim.api.nvim_set_keymap local options = { noremap = true } map('n', '<leader>h1', '<CMD>HopChar1<CR>', options) map('n', '<leader>h2', '<CMD>HopChar2<CR>', options) map('n', '<leader>hh', '<CMD>HopPattern<CR>', options) map('n', '<leader>hw', '<CMD>HopWord<CR>', options) ...
World = {} function World.new() local world = {} world.tileSize = 32 world.maps = {} world.objects = {} world.computer = {} world.assignments = {} world.showAssignments = true world.update = World.update world.render = World.render world...
local utils = {} utils.bg = "#000000" utils.fg = "#ffffff" utils.day_brightness = 0.3 ---Print a warning message to the user ---@param... string ---@return table function utils.warn(...) for _, msg in ipairs({ ... }) do vim.cmd("echohl WarningMsg | echom \"OneDarkPro.nvim: " .. msg .. ...
-- Copyright (C) Miracle -- Copyright (C) Titan, Co.Ltd. local _M = { _VERSION = "1.0.0β" } local twaf_func = require "lib.twaf.inc.twaf_func" --local twaf_conf = require "lib.twaf.twaf_conf" _M.api = {} _M.help = {} _M.api.pset = {} -- get pset config e.g: GET host/path/pset/{pset_uuid} _M.api.pset.get = f...
-- -- Compatibility hacks for digtron to work well with technic plus new network system -- -- More information: -- https://github.com/mt-mods/technic/issues/100 -- local function power_connector_compat() local digtron_technic_run = minetest.registered_nodes["digtron:power_connector"].technic_run minetest.override_it...
object_tangible_loot_creature_loot_collections_trader_mun_left_leg = object_tangible_loot_creature_loot_collections_shared_trader_mun_left_leg:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_trader_mun_left_leg, "object/tangible/loot/creature/loot/collections/trader_mun_left_leg.iff...
local entry = require('cheat.entry') return { entry = entry }
--[[ Teleport-To-Train-Station a Factorio mod. (C) SyDream - 2020 - v1.0.1 MIT License https://github.com/tommasodargenio/syd-teleport-to-train-station https://mods.factorio.com/mod/syd-teleport-to-train-station CONTROL.LUA -- Core of the mod includes all the runtime scr...
--[[--------------------------------------------------------- Name: Variables -----------------------------------------------------------]] local PANEL = {} --[[--------------------------------------------------------- Name: Init -----------------------------------------------------------]] function PANEL:In...
local Enabled = true script.Parent.Touched:connect(function(hit) if Enabled then local human = hit.Parent:FindFirstChild("Humanoid") if human then local Player = game.Players:GetPlayerFromCharacter(human.Parent) if Player ~= nil then Enabled = false script.Parent.Open:Play() wait(0.3) Instanc...
local codec = require("codec") local connect = require("coro-net").connect return function(config) if not config then config = {} end local read, write = assert(connect { host = config.host or "localhost", port = config.port or 6379, encode = codec.encode, decode = codec.decode...
local status, saga = pcall(require, "lspsaga") if (not status) then return end saga.init_lsp_saga{ error_sign = '', warn_sign = '', hint_sign = '', infor_sign = '', code_action_prompt = { enable = false, sign = true, sign_priority = 20, virtual_text = true, }...
----------------------------------- -- Area: Northern San d'Oria -- NPC: Halaviabeau -- Quest NPC ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) player:startEvent(611) end function onEventUpdate(player, csid, option) end function onEventFinish(play...
--[[ Modern TargetFrame Classification Module by SDPhantom https://www.wowinterface.com/forums/member.php?u=34145 https://www.curseforge.com/members/sdphantomgamer/projects ]] -------------------------------------------------------------------------- -------------------------- --[[ Namespace ]] ------------...
local awful = require("awful") local menu = require("gimpy/menu") local globals = require("gimpy/globals") local mouse = {} mouse.setup_root_mouse_actions = function () root.buttons(awful.util.table.join( awful.button({ }, 3, function () menu.mymainmenu:toggle() end), awful.button({ }, 4, awful.tag.viewnext...