content
stringlengths
5
1.05M
--[[ This file is part of 'Masque', an add-on for World of Warcraft. For license information, please see the included License.txt file or visit https://github.com/StormFX/Masque. * File...: Options\LDB.lua * Author.: StormFX LDB Launcher ]] -- GLOBALS: LibStub local MASQUE, Core = ... ----------------------...
--[[ Copyright (c) 2010-2013 Matthias Richter 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, dist...
SkinningPerHour = { } SkinningPerHourGold = {} -- skinning items _items = {"172097", "172092", "172089", "172096", "172094", "172232"} BAGS = {0, 1, 2, 3, 4} items = {} quantity = {} local auctions = {} local function has_value (tab, val) for index, value in ipairs(tab) do if value == val then ...
return { journal = { menu = { title = "Journal", }, _ = { elona = { news = { title = "News" }, quest = { title = "Quest" }, quest_item = { title = "Quest Item" }, ...
--[[--------------------------------------------------------- Variables -----------------------------------------------------------]] local PANEL = {} --[[--------------------------------------------------------- Function: Init -----------------------------------------------------------]] function PANEL:Init...
-- Useful "smart" action subroutines that can check state info before trying -- to act, and possibly perform more complex decision-making. -- Will return a flag for whether or not the action was successful or not. -- -- All public actions have a verbose flag as a final optional parameter -- (default false). require 'c...
local gumbo = require "gumbo" local parse = gumbo.parse local assert = assert local _ENV = nil do local input = "<body><WhatAcrazyNAME></WhatAcrazyNAME>" local document = assert(parse(input)) local body = assert(document.body) assert(body.childNodes.length == 1) local node = assert(body.childNodes[...
{{/* Views the value of a given DB entry. Usage: `-entry <id> <key>`. Recommended trigger: Command trigger with trigger `entry`. */}} {{ $args := parseArgs 2 "**Syntax:** `-entry <id> <key>`" (carg "int" "id") (carg "string" "key") }} {{ with dbGet ($args.Get 0) ($args.Get 1) }} {{ $value := json .Value }} ...
return (function(self) u(self).enabled = true end)(...)
local util = require 'lspconfig.util' return { default_config = { cmd = { 'prosemd-lsp', '--stdio' }, filetypes = { 'markdown' }, root_dir = util.find_git_ancestor, single_file_support = true, }, docs = { description = [[ https://github.com/kitten/prosemd-lsp An experimental LSP for Markdown...
-- SPDX-License-Identifier: MIT -- Copyright (c) 2014-2020 Iruatã Martins dos Santos Souza local data = require'data' local np = require'9p' local conn = np.newconn(io.read, function (buf) io.write(buf) io.output():flush() end) conn:attach("iru", "") local f, g = conn:newfid(), conn:newfid() conn:walk(...
local present, lsp_install = pcall(require, 'nvim-lsp-installer.servers') local present_2, lsp_installer = pcall(require, 'nvim-lsp-installer') if not present or not present_2 then return end -- LSP require("lsp") local function install_server(server) local ok, server_cmd = lsp_install.get_server(server) if ok the...
local __exports = LibStub:NewLibrary("ovale/simulationcraft/splitter", 80300) if not __exports then return end local __class = LibStub:GetLibrary("tslib").newClass local ipairs = ipairs local wipe = wipe local __AST = LibStub:GetLibrary("ovale/AST") local isNodeType = __AST.isNodeType local __definitions = LibStub:GetL...
--[[ A problem with table.sort is that the sort is not stable, that is, elements that the comparison function considers equal may not keep their original order in the array after the sort. How can you do a stable sort in Lua? ]] -- Bubble sort is crappy, but at least it's stable function stablesort(a, comparator) c...
local role_mgr = {} function role_mgr:init( scene ) self.scene_mgr = scene self.entity_mgr = scene.entity_mgr self.aoi = scene.aoi self:init_archetype() end function role_mgr:init_archetype( ) self.role_archetype = self.entity_mgr:CreateArchetype({ "umo.position", "umo.target_pos", "umo.uid", "umo.type_id", ...
local PlayerData = require(script.Parent.PlayerData) local DanceManager = require(script.Parent.Parent.DanceManager) -- userid > PlayerData local playerList = {} game.Players.PlayerAdded:Connect(function (player: Player) playerList[player.UserId] = PlayerData.new(player) end) game.Players.PlayerRemoving:Connect(fu...
--[[ FastText - Code for testing a trained model ]]-- require 'torch' require 'io' require 'nn' require 'os' require 'xlua' require 'pl.stringx' require 'pl.file' tds = require('tds') utils = require('utils') cmd = torch.CmdLine() cmd:option('-model', 'ag_news.t7', 'trained model file path') cmd:option('-test', 'da...
function createSprintorioPlayerIfNotExists(player) if not global.sprintorio[player.index] then global.sprintorio[player.index] = { ["sprinting"] = false, ["oxygen"] = 100 } end end function regenSprintGUI(player) local guiLeft = player.gui.left if guiLeft["...
sinastra_cold_presence_modifier = class({}) function sinastra_cold_presence_modifier:OnCreated( kv ) self.damage = self:GetAbility():GetSpecialValueFor("damage") self.move_speed_percentage = self:GetAbility():GetSpecialValueFor("move_speed_percentage") self.no_movement_duration ...
--The Nameless Soul --by EdwardDarksong --[[ The Nameless Soul is a Soul that's forgotten it's name and so it hunts for another's name, and will take it by any means... --]] settings = { Particles = true } wait() plr = game:GetService("Players").LocalPlayer char = plr.Character mouse = plr:GetMouse() cam = gam...
-------------------------------------------------------------------------------- -- @module Simple Image Textures -- @author Timothy Torres -- @license MIT -- @copyright Timothy Torres, March-2019 -- -------------------------------------------------------------------------- -- -- MODUL...
print("\n==============================") print("[dimensions] starting...") print("==============================\n") -- awesome_mode: api-level=4:screen=on -- If LuaRocks is installed, make sure that packages installed through it are -- found (e.g. lgi). If LuaRocks is not installed, do nothing. pcall(require, "luaro...
db = require "tek.lib.debug" --db.level = db.INFO Log = require "conf.log" --rs232 = require('periphery').Serial --PORT = nil --require "ed" MK = require "conf.controllers" --ui = require "tek.ui" --Visual = require "tek.lib.visual" --ui.loadLibrary("visual", 4) --print ("Visual", Visual) --Sender = require(...
-------------------------------------------------------------------------------- -- Панели с реле и контакторами (ПР-143, ПР-144) -------------------------------------------------------------------------------- Metrostroi.DefineSystem("PR_14X_Panels") function TRAIN_SYSTEM:Initialize() ------------------------...
-- ULX LeySQL main lua -- Sadly, I have lost the non obfucusated version of the code because the cloud service that was used to host this went down. -- However, I've deobfucusated this a little bit. If you want, it'd be cool if you could help by renaming variables to their proper representations local a = function() ...
newInstance = function(textPrinter, formatter, options, mapVersion) local WELCOME_MESSAGE_DURATION = 23 local headerOptions = { color = "ff5599ff", duration = WELCOME_MESSAGE_DURATION, location = "leftcenter" } local titleOptions = { color = "ff5599ff", duration = WELCOME_MESSAGE_DURATION, location = "leftc...
--Change id local monitorid = 0 local reactorid = 0 local cell1id = 1 local cell2id = 2 local w1 = 18 local w2 = 10 local units = {" ","RF","%","C","mB","RF/t"} function wrapup() mon = peripheral.wrap("monitor_"..monitorid) reactor = peripheral.wrap("BigReactors-Reactor_"..reactorid) cell1 = peripheral.wrap("cofh_ther...
attachedPropPerm = 0 function removeAttachedPropPerm() if DoesEntityExist(attachedPropPerm) then DeleteEntity(attachedPropPerm) attachedPropPerm = 0 end end RegisterNetEvent('destroyPropPerm') AddEventHandler('destroyPropPerm', function() removeAttachedPropPerm() end) local APPbone = 0 local APPx = 0.0 local A...
--# selene: allow(unused_variable) ---@diagnostic disable: unused-local -- A sub module to `hs.canvas` which provides support for basic matrix manipulations which can be used as the values for `transformation` attributes in the `hs.canvas` module. -- -- For mathematical reasons that are beyond the scope of this docume...
-- Collision boxes defined as box = {xleft, xright, yup, ydown} -- yup -- ------------------ -- - - -- xleft - - xright -- - - -- ---------------...
rot = 0.0 vehicle = false effect = false function realisticDamage(attacker, weapon, bodypart) if (source==getLocalPlayer()) then -- Only AK47, M4 and Sniper can penetrate armor local armor = getPedArmor(source) if (weapon>0) and (attacker) then local armorType = getElementData(attacker, "arm...
--穹顶煌刃 军需官 local m=14000353 local cm=_G["c"..m] cm.named_with_Skayarder=1 function cm.initial_effect(c) c:SetSPSummonOnce(m) --special summon proc local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(m,0)) e1:SetType(EFFECT_TYPE_FIELD) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetCode(EFFECT...
local set1 = {10, 20, 30} local set2 = {20, 40, 50} local union = function(self, another) local set = {} local result = {} -- 利用数组确保集合互异性 for i, j in pairs(self) do set[j] = true end for i, j in pairs(another) do set[j] = true end -- 加入结果集合 for i, j in pairs(set) do table.insert(result, ...
local Utils = require('golem.utils') local Entity = require('golem.entity') local Object = { RectTypes = { FILL = 'fill', LINE = 'line' } } -- Image object -- @param string source -- @param table props function Object:image(source, width, height, props) Utils:assertType(source, 'Image source', 'string')...
--[[ @description Arm all tracks within folders @author Ben Smith @link Author https://www.bensmithsound.uk Repository https://github.com/bsmith96/Reaper-Scripts @version 1.4 @changelog # Added user identifier to provided file names @metapackage @provides [main] . > bsmith96_Rec arm al...
---获取角色 --@author sundream --@release 2018/12/25 10:30:00 --@usage --api: /api/account/role/get --protocol: http/https --method: post --params: -- type=table encode=json -- { -- sign [required] type=string help=签名 -- appid [required] type=string help=appid -- roleid [required] type=number help=角色ID -- } --return...
-- RESOURCES COLLECTOR TABLE -- RCL = {} -- Constructor -- function RCL.new(ent) -- Check the Entity -- if ent == nil then return end if ent.last_user == nil then return end -- Create the Table -- local t = {} t.meta = "RCL" t.ent = ent t.player = ent.last_user.name t.MF = getMF(t.player) t.entID = ent.un...
require("sources/patterns/observer") ScreenWidth = 1920 ScreenHeigth = 1080 Enemy = {} Enemy.__index = Enemy setmetatable(Enemy, Observer) function Enemy:new(size, speed, player_pos, asteroid, x, y) local enemy = {} setmetatable(enemy, Enemy) local half = size / 2 if x == nil or y == nil then ...
local discordia = require('discordia') local client = discordia.Client() client:on('ready', function() print('Logged in as '.. client.user.username) end) client:on('messageCreate', function(message) if message.content == '!ping' then message.channel:send('Pong!') end end) client:run('Bot INSERT_TOKEN_HERE')
--[[ Sequence to sequence model with attention. ]] local Seq2Seq, parent = torch.class('Seq2Seq', 'Model') local options = { { '-word_vec_size', 0, [[Shared word embedding size. If set, this overrides `-src_word_vec_size` and `-tgt_word_vec_size`.]], { valid = onmt.utils.ExtendedCmdLine.isUInt(), ...
--------------------------------------------------------------------------------------------------- -- -= Map =- --------------------------------------------------------------------------------------------------- -- Import the other classes TILED_LOADER_PATH = TILED_LOADER_PATH or ({...})[1]:gsub("[%.\\/][Mm]ap$", "")...
object_tangible_quest_talus_selonian_food_container_03 = object_tangible_quest_shared_talus_selonian_food_container_03:new { } ObjectTemplates:addTemplate(object_tangible_quest_talus_selonian_food_container_03, "object/tangible/quest/talus_selonian_food_container_03.iff")
return {'litouwen','litouwer','litouws','litouwse','litanie','liter','literaat','literair','literarisch','literator','literatuur','literatuurbeschouwing','literatuurcriticus','literatuurfestival','literatuurgeschiedenis','literatuurhistoricus','literatuurkritiek','literatuurliefhebber','literatuurlijst','literatuurmap'...
return { [1] = {level=1,need_exp=0,clothes_attrs={0,0,0,0,0,0,0,0,0,0,},}, [2] = {level=2,need_exp=100,clothes_attrs={1,1,1,1,1,0,0,0,0,0,},}, [3] = {level=3,need_exp=200,clothes_attrs={0,0,0,0,0,1,1,1,1,1,},}, [4] = {level=4,need_exp=300,clothes_attrs={1,1,1,1,1,0,0,0,0,0,},}, [5] = {level=5,need_exp=400,clothes_attrs...
local PLUGIN = PLUGIN PLUGIN.name = "Item Hotkeys" PLUGIN.author = "verne" PLUGIN.desc = "Allows for use of hotkeys to be used for pre-defined item usage." ix.util.Include("cl_plugin.lua") ix.util.Include("sh_hotkeyitems.lua") local playerMeta = FindMetaTable("Player") local charMeta = ix.meta.character or {} ix.cha...
VH_HookLib = {} -- Custom hook system -- VH_HookLib.HookPriority = { -- Lowest is first, Highest is last -- If you are planning on disabling the hook, use lowest Lowest = 1, Low = 2, Normal = 3, High = 4, Highest = 5 } VH_HookLib.Hooks = {} function VH_HookLib.runHook(HookType, CanDisable, ...) if not VH_Hoo...
require("moonsc").import_tags() -- Test that states are exited in exit order (children before parents with -- reverse doc order used to break ties before the executable content in the -- transitions. event1, event2, event3, event4 should be raised in that -- order when s01p is exited return _scxml{ initial="s0", ...
return {'urologie','urologisch','uroloog','uroscopie','urologen','urologische'}
-- require('mobdebug').start() io.stdout:setvbuf('no') local path = require 'pl.path' package.path = package.path .. ';' .. path.normpath(path.join(arg[0], '../?.lua')) local emu = require 'emu' local args = {...} local dir = table.remove(args, 1) -- local dir = '/home/cpup/code/lua/cc-emu/dev' dir = path.normpath...
local tester = torch.Tester() local function aliasMultinomial() local n_class = 10000 local probs = torch.Tensor(n_class):uniform(0,1) -- uniform: 均匀抽样 --print("probs: ", probs) probs:div(probs:sum()) local a = torch.Timer() local state = torch.multinomialAliasSetup(probs) print("AliasMultinomial...
--init.lua --tools mod for BFD. --dofile(minetest.get_modpath("tools").."/custom_tools.lua") minetest.register_craft({ type = "toolrepair", additional_wear = -0.02, }) --tool rod defs minetest.register_craftitem("tools:stick", { description = "Wooden Stick", inventory_image = "tool_stick.png", }) -- chisel, fo...
local opts = { noremap = true, silent = true } -- Shorten function name local keymap = vim.api.nvim_set_keymap -- Set <Leader> key --vim.g.mapleader = "," --Remap space as leader key keymap("", "<Space>", "<Nop>", opts) vim.g.mapleader = " " vim.g.maplocalleader = " " keymap("", ",", "<leader>", { silent = true }) -...
local call = {} local mt = {} function mt.__call(self, bus) if not self.timeout then self.timeout = -1 end return bus:call(self.name, self.path, self.interface, self.member, self.timeout, self.args) end mt.__index = { set = function(self, name, path, interface, member, timeout, args) ...
local util = require("prosesitter/util") local log = require("prosesitter/log") local state = require("prosesitter/state") local defaults = require("prosesitter/config/defaults") local Issue = require("prosesitter/linter/issues").Issue local M = {} M.url = "set in start_server function" function M.setup_binairy() vi...
local nodeStruct = {} function nodeStruct.decodeNodes(children) local res = {} for i, data in ipairs(children or {}) do local node = nodeStruct.decode(data) if node then table.insert(res, node) end end return res end function nodeStruct.decode(data) if data._...
local basePath = (...):gsub('[^%.]+$', '') local Button = require(basePath .. "Button") local ToggleButton = Button:extend() function ToggleButton.release(self, dontFire, mx, my, isKeyboard) self.isPressed = false if not dontFire then self.isChecked = not self.isChecked if self.releaseFunc then self...
--local ipairs = ipairs local util = { } function util.find_on_screen(s, n) for _, c in ipairs(s.clients) do if string.match(c.class, n) then return c end end return nil end return util
object_building_kashyyyk_frn_medal_display_case = object_building_kashyyyk_shared_frn_medal_display_case:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_frn_medal_display_case, "object/building/kashyyyk/frn_medal_display_case.iff")
-- MUD container local json = require("cjson") local yang = require("mud.yang") local _M = {} local ietf_mud_type = yang.util.subClass("ietf_mud_type", yang.basic_types.container) ietf_mud_type_mt = { __index = ietf_mud_type } function ietf_mud_type:create(nodeName, mandatory) local new_inst = yang.basic_types.con...
NUM_VALUES_OUT = 1024 * 41 function receive(message) if(message.type == "fake_sensor_value") then --- print highest delay from publication to this stage processing_delay = calculate_time_diff(message.time_sec, message.time_nsec) --testbed_log_integer("processing_delay", processing_delay) store[#s...
---------------------------------------- -- Campaign global ---------------------------------------- require("scripts/globals/teleports") ---------------------------------------- -- ------------------------------------------------------------------- -- getMedalRank() -- Returns the numerical Campaign Medal of the play...
local cmdheight = 2 local indent = 2 local vScrolloff = 4 local hScrolloff = 10 vim.cmd('syntax enable') vim.cmd('syntax on') vim.cmd('filetype plugin indent on') vim.o.updatetime = 250 vim.o.cmdheight = cmdheight vim.o.winheight = cmdheight vim.o.winminheight = cmdheight vim.o.winminwidth = cmdheight * 2 vim.o.autow...
Locales['de'] = { ['storm_leave'] = "Du bist aus dem Sturm herausgekommen", ['storm_inside'] = "Du bist in den Sturm eingetreten", ['storm_created'] = "Der Sturm mit dem Namen von wurde erfolgreich erstellt", ['storm_notcreated'] = "Der Sturm wurde nicht erstellt, stellen Sie sicher, dass Sie den Befehl...
--[[ MTA Role Play (mta-rp.pl) Autorzy poniższego kodu: - Patryk Adamowicz <patrykadam.dev@gmail.com> Discord: PatrykAdam#1293 Link do githuba: https://github.com/PatrykAdam/mtarp --]] local screenX, screenY = guiGetScreenSize() local scaleX, scaleY = math.max(0.6, (screenX / 1920)), math.max(0.6...
pawns = {}; pawns.settings = {}; pawns.settings["update_flags"]= {}; pawns.settings["attack_anything"] = false; pawns.settings["max_party_icons"] = 7; pawns.settings["party_icons_size"] = 12; pawns.settings["max_number_buff"] = 50; pawns.settings["shorten_number_of_buffs"] = 4; pawns.settings["update_flags"]["update...
--[[ module: BusinessLookUp author: DylanYang time: 2021-02-24 16:17:57 idea: advance: ]] local EJBService = require("patterns.j2ee.businessDelegate.EJBService") local JMSService = require("patterns.j2ee.businessDelegate.JMSService") local _M = Class("BusinessLookUp") local public = _M.public ...
local next, assert, pairs, type, tostring, setmetatable, baseMt, _instances, _classes, _class = next, assert, pairs, type, tostring, setmetatable, {}, setmetatable({},{__mode = 'k'}), setmetatable({},{__mode = 'k'}) local function assert_call_from_class(class, method) assert(_classes[class], ('Wrong method call. Expec...
local config = require("config") local servers = require("servers") local json = require("json") local strategyPA = require("strategyPA") local status = { config = config.get_runtime(), strategyPA = strategyPA.get_data() } local statusJson = json.encode( status ) ngx.say( status...
local function init() local plugins = { -- packer 'packer', -- lsp 'lsp', 'treesitter', 'compe', 'compe_tabnine', -- telescope 'telescope', -- git 'gitsigns', 'git_worktree', -- theme 'tokyonight', -- window 'lualine', -- utils 'floaterm', 'h...
-- init mqtt client with keepalive timer 120sec m = mqtt.Client("foo", 120, "", "") m:on("connect", function(con) print ("connected") end) m:on("offline", function(con) print ("offline") end) -- on publish message receive event m:on("message", function(conn, topic, data) print(topic .. ":" .. data) ledmate.pu...
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** require "ISUI/ISModalRichText" ---@class ISModsNagPanel : ISPanelJoypad ISModsNagPanel = ISPanelJoypad:derive("ISModsNagPanel") loc...
data:extend({ { type = "container", name = "nuclear-fission-reactor-chest-15", icon = "__UraniumPowerRemastered__/graphics/icons/reactor-port-icon.png", flags = {"placeable-neutral", "placeable-player", "not-blueprintable", "not-deconstructable"}, max_health = 200, corpse = "small-remnants", ...
SWEP.PrintName = "Handcuffs" SWEP.Author = "TheAsian EggrollMaker" SWEP.Contact = "theasianeggrollmaker@gmail.com" SWEP.Purpose = "To handcuff suspects." SWEP.Instructions = "Left Click: Handcuff suspect.\nRight Click: Release handcuffed suspect." SWEP.Base = "weapon_base" SWEP.UseHands = true SWEP.Category = "Eggro...
-- vim: st=4 sts=4 sw=4 et: local cjson = require "cjson.safe" local new_tab = require "table.new" local lrucache = require "resty.lrucache" local resty_lock = require "resty.lock" local tablepool do local pok pok, tablepool = pcall(require, "tablepool") if not pok then -- fallback for Op...
function serialize_islist (t) local itemcount = 0 local last_type = nil for k,v in pairs(t) do itemcount = itemcount + 1 if last_type == nil then last_type = type(v) end if type(v) ~= last_type or (type(v) ~= "string" and type(v) ~= "number" and type(v) ~= "boolean") then return false end last_t...
IncludeDirs = {} IncludeDirs["SFML"] = g_WorkspaceFolder .. "/../Third/SFML-2.5.1/include" project "SFML" kind "ConsoleApp" language "C++" cppdialect "C++17" -- Place where build files will be generated location (g_BuildFolder .. "/%{prj.name}") -- Place where compiled binary target targetdi...
HALO = HALO or {} HALO.VehicleSettings = HALO.VehicleSettings or {} HALO.VehicleSettings["h3scorpionsnow"] = { TrackID = "h3scorpionsnow", TrackTexture = "snowysnowtime/2k/h3sf/s/tread", TrackNormal = "snowysnowtime/2k/h3sf/s/tread_n", TrackPhongTint = "snowysnowtime/2k/phongexp255", TrackDiv = 100, TrackMult =...
PathFinding = class("PathFinding") PathFinding.PrioNormal = 1 PathFinding.PrioObstacle = 1000 PathFinding.PrioForbidden = 1000000 PathFinding.Ctor = function (slot0, slot1, slot2, slot3) slot0.cells = slot1 slot0.rows = slot2 slot0.columns = slot3 end PathFinding.Find = function (slot0, slot1, slot2) slot2 = { ...
local player_langs = {} local translatedChatMessage do local chatMessage = tfm.exec.chatMessage function translatedChatMessage(what, who, ...) if not who then for player in next, player_langs do translatedChatMessage(what, player, ...) end return end local text = player_langs[who][what] if not t...
ESX = nil TriggerEvent( "esx:getSharedObject", function(obj) ESX = obj end ) RegisterServerEvent("sellOxy") AddEventHandler( "sellOxy", function(itemName) local xPlayer = ESX.GetPlayerFromId(source) local price = 500 local amount = math.random(1, 3) local xItem = xPlayer.getInventoryItem(itemName) -...
return {'ome','omega','omelet','omen','omerta','omer','omeg','omeletten','omes','omegas','omers'}
insulate("documentation on Merchant", function() require "init" require "spec.mocks" require "spec.asserts" require "spec.universe" it("new", function() local printedLines = {} local print = function(string) table.insert(printedLines, string) end local ...
--=========== Copyright © 2019, Planimeter, All rights reserved. ===========-- -- -- Purpose: Voice HUD -- --==========================================================================-- class "gui.hudvoice" ( "gui.box" ) local hudvoice = gui.hudvoice function hudvoice:hudvoice( parent, name ) gui.box.box( self, par...
minetest.register_on_newplayer(function(player) print("Un nouveau joueur vient de nous rejoindre !") if minetest.setting_getbool("give_initial_stuff") then local pinv = player:get_inventory() minetest.log("action", "Giving initial stuff to player "..player:get_player_name()) pinv:add_item('main', 'default:cobbl...
include "premake5_workspace_files.lua" workspace "udsc2" startproject "tests" workspace_files { ".gitignore", "premake5.lua", "premake5_workspace_files.lua", "tests.runsettings", } configurations { "Debug-Static", "Debug-Shared", "Release-Static", ...
----------------------------------- -- Area: Northern San d'Oria -- NPC: Vamorcote -- Starts and Finishes Quest: The Setting Sun -- !pos -137.070 10.999 161.855 231 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- require("scripts/globals/quests") require("scripts/glo...
local t = setmetatable({}, { __add = function(a, b) if b > 200 then for j=1,10 do end return b+3 elseif b > 100 then return b+2 else return b+1 end end }) local function f(t, i) do return t+i end -- Force large frame with unassigned slots below mm. do local a,b,c,d,e,f,g,h,i,j,k end end ...
-- Notas disponíveis de R$ 100,00; R$ 50,00; R$ 20,00 e R$ 10,00 -- Entregar o menor número de notas cedulas = {100, 50, 20, 10} function saque(valor) local result = {} result[100] = math.floor(valor/cedulas[1]) -- valor restante para ser dividido pelas notas seguintes na tabela valor = valor%cedulas[1] result[...
local utils = require("utils") -- Patterns of root folder local root_markers = { '.git', 'mvnw', 'gradlew', 'Config', -- Amazon } local root_dir = require('jdtls.setup').find_root(root_markers) -- Project root directory local jdtls_home = '$XDG_DATA_HOME/nvim/lsp_servers/jdtls' local jdtls_workspace = utils.p...
-- a crude constriction escape simulator local niters = 10000 local mons = { [1]="ball python", [5]="naga", [10]="naga_warrior", [15]="greater_naga", [23]="tentacled_monstrosity" } for hd,mon in pairs(mons) do crawl.stderr(string.format(...
--[[------------------------------------------------------------------------- You are free to use, distribute and change this module, as long as you keep this text here - and/or credit me: Made by Fillipuster :D ---------------------------------------------------------------------------]] CLASSICADVERT = CLASSICADVER...
object_tangible_storyteller_event_props_pr_ommni_box_nosnap = object_tangible_storyteller_event_props_shared_pr_ommni_box_nosnap:new { } ObjectTemplates:addTemplate(object_tangible_storyteller_event_props_pr_ommni_box_nosnap, "object/tangible/storyteller/event_props/pr_ommni_box_nosnap.iff")
INVALID_RP_NAMES = {}; function GM.GatherInvalidNames ( ) /* http.Get(URL_INVALID_RP_NAMES, "", function ( results ) for k, v in pairs(string.Explode("\n", string.lower(results))) do table.insert(INVALID_RP_NAMES, string.Explode(" ", string.Trim(v))); end end); */ end function GM.IsValidPartialName ( na...
att.PrintName = "Extended Barrel" att.Icon = Material("snowysnowtime/2k/ico/h3/smg_sil.png") att.Description = "Suppressor attachment often used by special forces." att.Desc_Pros = { } att.Desc_Cons = { } att.SortOrder = 997 att.Slot = "barrel_smgho" att.Override_MuzzleEffect = "astw2_halo_spv3_muzzle_DMR" att.Override...
function range(i, j) local t = {} for n = i, j, i<j and 1 or -1 do t[#t+1] = n end return t end function expand_ranges(rspec) local ptn = "([-+]?%d+)%s?-%s?([-+]?%d+)" local t = {} for v in string.gmatch(rspec, '[^,]+') do local s, e = v:match(ptn) if s == nil then...
local fiber = require('fiber') local config = require('config') local client = require('http.client').new() local json = require('json') local logger = require('log') local M = {} M.queue = require('queue') M.transport = { finder = { sid = nil, fb = nil }, sender = { sid = nil, fb = nil }, tunnel ...
local insert = table.insert if mods['aai-industry'] then insert(data.raw.locomotive['locomotive-mk2'].burner.fuel_categories, 'processed-chemical') insert(data.raw.locomotive['locomotive-mk3'].burner.fuel_categories, 'processed-chemical') insert(data.raw.locomotive['locomotive-mk4'].burner.fuel_categories, 'proc...
-------------------- -- For Detoxed <3 -- -------------------- local Detoxed = LibStub("AceAddon-3.0"):NewAddon("Detoxed", "AceEvent-3.0", "AceConsole-3.0", "AceTimer-3.0") local InCombatLockdown = _G["InCombatLockdown"] local PlaySoundFile = _G["PlaySoundFile"] local random = math.random local pictures = { [[Interf...
local reload = require("nvim-reload") reload.pre_reload_hook = function() end
-- FormattedCountdown v1.0 obs = obslua source_name = "" total_seconds = 0 cur_seconds = 0 format_text = "" last_text = "" stop_text = "" activated = false hotkey_id = obs.OBS_INVALID_HOTKEY_ID -- Function to set the time text function set_time_text() local seconds = math.floo...