content
stringlengths
5
1.05M
-------------------------------- -- @module EventFrame -- @extend Frame -- @parent_module ccs -------------------------------- -- -- @function [parent=#EventFrame] setEvent -- @param self -- @param #string event -------------------------------- -- -- @function [parent=#EventFrame] init -- ...
------------------------------------------------------------------------------ -- RTCOA WiFi API module for NODEMCU -- -- LICENCE: http://opensource.org/licenses/MIT -- Albert Lee <trisk@forkgnu.org> ------------------------------------------------------------------------------ -- Set module name as parameter of requi...
-------------------------------------------------------------------- -- This file was automatically generated by ProjectGenerator -- which is tooling part the build system designed for GUCEF -- (Galaxy Unlimited Framework) -- For the latest info, see http://www.VanvelzenSoftware.com/ -- -- The contents of thi...
function spitterattackanimation(scale, tint1, tint2) return { layers= { { filenames = { "__base__/graphics/entity/spitter/spitter-attack-01.png", "__base__/graphics/entity/spitter/spitter-attack-02.png", "__base__/graphics/entity/spitter/spitter-attack-03...
local class = require "class" local log = require "logging" local Log = log:new{ dump = true, path = "protocol-wsclient"} local tcp = require "internal.TCP" local cf = require "cf" local cf_fork = cf.fork local wbproto = require "protocol.websocket.protocol" local _recv_frame = wbproto.recv_frame local _send_frame ...
local queueLength = tonumber(ARGV[3]) local weight = tonumber(ARGV[4]) local capacity = process_tick(now, false)['capacity'] local settings = redis.call('hmget', settings_key, 'id', 'maxConcurrent', 'highWater', 'nextRequest', 'strategy', 'unblockTime', 'penalty', 'minTime', 'groupTimeout' ) local i...
-- Released under CC0. CityFix = {} function CityFix.Message (text) local htext = CreateHyperLink (L"0", L"[CityFix] "..towstring (text), { 0, 255, 0 }, {}) EA_ChatWindow.Print (htext) end function CityFix.OnInitialize () LibSlash.RegisterSlashCmd ("city", CityFix.OnSlashCmd) EA_ChatWindow.Pri...
-------------------------------- -- @module EventKeyboard -- @extend Event -- @parent_module cc -------------------------------- -- @function [parent=#EventKeyboard] EventKeyboard -- @param self -- @param #int keycode -- @param #bool bool return nil
links{ "d2d1.lib", "d3d10.lib", "d3d10_1.lib", "d3d11.lib", "d3d9.lib", "d3dcompiler.lib", "D3DCSX.lib", "D3DCSXd.lib", "d3dx10.lib", "d3dx10d.lib", "d3dx11.lib", "d3dx11d.lib", "d3dx9.lib", "d3dx9d.lib", "d3dxof.lib", "dinput8.lib", "dsound.lib", "dwrite.lib", "...
-- -------------------- -- 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...
ENT.Type = 'ai' ENT.Base = 'base_ai' ENT.PrintName = 'Quest NPC' ENT.Author = '' ENT.Contact = '' ENT.Purpose = '' ENT.Instructions = '' ENT.Spawnable = true ENT.AdminSpawnable = true
----------------------------------- -- Area: Port Windurst -- NPC: Panja-Nanja -- Type: Fishing Adv. Image Support -- !pos -194.499 -3 58.692 240 ----------------------------------- require("scripts/globals/status") require("scripts/globals/crafting") local ID = require("scripts/zones/Port_Windurst/IDs") -------------...
-- -- src/project/project.lua -- Premake project object API -- Copyright (c) 2011-2012 Jason Perkins and the Premake project -- premake5.project = { } local project = premake5.project -- -- Flattens the configurations of each of the configurations in the project -- and stores the results, which are then returned f...
local ElonaItem = require("mod.elona.api.ElonaItem") local function filter_armor(item) -- >>>>>>>> shade2/item_data.hsp:239 if f=fltEncArmor : if range_fltArmor(a)=false:re ... return ElonaItem.is_armor(item) -- <<<<<<<< shade2/item_data.hsp:239 if f=fltEncArmor : if range_fltArmor(a)=false:re .. end loc...
data:extend( { { type = "item", name = "scruber", icon = "__base__/graphics/icons/assembling-machine-1.png", flags = {"goes-to-quickbar"}, subgroup = "production-machine", order = "a[scruber]", place_result = "scruber", stack_size = 50 }, } )
-- All the net messages defined here util.AddNetworkString("AuctionHouse:UI") util.AddNetworkString("AuctionHouse:UI:Admin") util.AddNetworkString("AuctionHouse:Create") util.AddNetworkString("AuctionHouse:Create:Admin") util.AddNetworkString("AuctionHouse:RequestListings") util.AddNetworkString("AuctionHouse:RequestAc...
--Make new bullet function shootBullet(x, y, direction) y = y - 4 --make the bullet same height as bjornio if direction == 1 then xvel = 1000 x = x + 60 --make it so bullet shoot from right side of bjornio else x = x - 60 xvel = -1000 end local bullet = {image = BULLET, x = x, y = y, velx = xvel, vely ...
package.path = package.path .. ";../data/scripts/?.lua" local scriptingCore = require("scriptingCore") function runAnim() regTable = scriptingCore.getRegisterTable(); for k,v in pairs(regTable["anim"]) do v() end end runAnim();
xSits = {} xSits.Info = {} xSits.Database = {} xSits.Config = {} xSits.Core = {} xSits.Users = {} print("Loading xSits") xSits.Info.Version = "1" xSits.Info.Name = "pol1" xSits.Info.FullName = "PoliceRP 1" local path = "xsits/" if SERVER then local files, folders = file.Find(path .. "*", "LUA") for _, folder in ...
display.setStatusBar( display.HiddenStatusBar ) local json = require( "json" ) local sfx = require("scripts.sfx") local screen = require("scripts.screen") local newRing = require("scripts.newRing") local diggingPath = require("data.paths") local font = "fonts/Amagro-bold.ttf" local isBrowser = (system.getInfo( "envir...
function GM:PlayerDeathThink( ply ) local spectargets = team.GetPlayers( ply:Team() ) if GAMEMODE.GWRound:IsCurrentState(GW_ROUND_SEEK) then if not ply.SpecID then ply:Spectate(OBS_MODE_CHASE) if spectargets ~= nil then for k,v in pairs(spectargets) do ...
return { id = "WorldG192", events = { { alpha = 0.4, style = { text = "信标列表可以查看其他指挥官请求支援的信标列表", mode = 2, posY = -310.7, char = "1", dir = -1, posX = -685.5 }, ui = { path = "UICamera/Canvas/UIMain/WorldBossUI(Clone)/switch_btn", triggerType = { 2, false }, ...
-- version : 1.0.0 - 07/2005 (2008: lua 5.1) -- author : Hans Hagen - PRAGMA ADE - www.pragma-ade.com -- copyright : public domain or whatever suits -- remark : part of the context distribution, my first lua code -- todo: name space for local functions -- todo: the spell checking code is for the built-in lexer...
require("uilibs/userMoneyItem"); local privateRoom_pin_map = require("qnFiles/qnPlist/hall/privateRoom_pin") local PrivateRoomRecordShareItem = class(Node); PrivateRoomRecordShareItem.ctor = function(self, data, key, propType) local privateRoomRecordShareItemLayout = require(ViewPath.."hall/privateRoom/private...
local M = { -- config try_build_if_not_exist = false, try_build_on_error = false, -- mutables inner = false, -- need non nil value retry_count = 0, _build = function() end } local path = require('linearf.path') local utils = require('linearf.utils') local Result = require('linearf.resul...
local filesystem = require("Filesystem") local GUI = require("GUI") local paths = require("Paths") local system = require("System") local workspace, icon, menu = select(1, ...), select(2, ...), select(3, ...) local localization = system.getSystemLocalization() menu:addItem(localization.launch).onTouch = function() ...
DRONES_REWRITE.Weapons["Pistol"] = { Initialize = function(self, pos, ang) local ent = DRONES_REWRITE.Weapons["Template"].Initialize(self, "models/dronesrewrite/pistol/pistol.mdl", pos, ang) DRONES_REWRITE.Weapons["Template"].SpawnSource(ent, Vector(8, 0, -4)) ent.PrimaryAmmo = 120 ent.PrimaryAmmoMax = 120 ...
--========================================================================= -- -- Copyright NumFOCUS -- -- 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.or...
lg = love.graphics function love.load() gameFont = lg.newFont(40) end function love.draw() lg.setFont(gameFont) lg.print("Hello World!", 0, 0) end
pathtest = string.match(test, "(.*/)") if pathtest then dofile(pathtest .. "common.lua") else require("common") end function thread_init(thread_id) set_vars() end function event() local table_name local i local c_val local k_val local pad_val table_name = "SBTEST".. sb_rand_uniform(1, olt...
x = game:GetService("InsertService"):LoadAsset(71037028)x.Parent = game.Workspace x:makeJoints() x:MoveTo(game.Players.peyquinn.Character.Head.Position)
if not redux then redux = {} end if not redux.logistics then redux.logistics = {} end redux.logistics.settings = { highSpeed = settings.startup["redux-high-speed"].value, } require("prototypes.item-groups") require("prototypes.inserter") require("prototypes.recipe") require("prototypes.technology")
local icon = {} local Selection = game:GetService("Selection") local ChangeHistoryService = game:GetService("ChangeHistoryService") local assets = script.Parent.Parent.Parent.assets local modules = script.Parent.Parent local stylesheet = require(modules.util.stylesheet) function icon.new(name, id, parent) local...
Config = {} Config.DrawDistance = 100.0 Config.MarkerType = 1 Config.MarkerSize = {x = 2.0, y = 2.0, z = 1.0} Config.MarkerColor = {r = 204, g = 204, b = 0} Config.ParkingMarkerSize = {x = 3.0, y = 3.0, z = 2.0} Config.ParkingMarkerColor = {r = 102, g = 102...
local M = {} function M.setup() vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { border = "rounded", }) vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, { border = "rounded", }) end return M
-- check mod state script.on_configuration_changed(function(data) -- midgame installation if data.mod_changes ~= nil and data.mod_changes["Soundpack-alerts-and-sirens"] ~= nil and data.mod_changes["Soundpack-alerts-and-sirens"].old_version == nil then -- anounce installation notification({"SPAS-...
local null_ls = require("null-ls") local formatting = null_ls.builtins.formatting local diagnostics = null_ls.builtins.diagnostics local codeactions = null_ls.builtins.code_actions null_ls.setup({ debug = false, sources = { formatting.stylua, formatting.goimports, formatting.shfmt, formatting.yapf, format...
local WorldObjects = {} AddEvent("OnPackageStart", function() if IsPackageStarted('sandbox') then log.warn("Not loading alien invasion world because sandbox package is loaded.") return end log.info("Loading world...") local _table = File_LoadJSONTable("packages/" .. GetPackageName() ....
local dir = os.getenv('HOME') .. '/.config/awesome/theme/icons' return { --tags chrome = dir .. '/google-chrome.svg', code = dir .. '/code-braces.svg', social = dir .. '/forum.svg', folder = dir .. '/folder.svg', music = dir .. '/music.svg', game = dir .. '/google-controller.svg', lab = dir .. '/flask....
-- Una tabella con tutti i valori del modulo Sup, per invocazioni interne local h = {} local sup = require('Sup') -- Not using map + filter to avoid creating a new table, as b is huge. for a, s in pairs(sup) do --[[ By our internal conventions, functions beginning with an _ are not meant to be ca...
function show(player, text, time, color) return triggerClientEvent(player, "pbShowAlert", resourceRoot, text, time, color) end
function game:init() game.stage = 1 game.money = 80 game.towerManager = TowerManager() game.soundAreYouReady = love.audio.newSource("sound/are_you_ready_easteregg.mp3", "static") game.soundAreYouReady:play() music = love.audio.newSource("sound/template_soundtrack.mp3") music:setLooping(true)...
object_static_worldbuilding_furniture_item_statue_sistros = object_static_worldbuilding_furniture_shared_item_statue_sistros:new { } ObjectTemplates:addTemplate(object_static_worldbuilding_furniture_item_statue_sistros, "object/static/worldbuilding/furniture/item_statue_sistros.iff")
local function required_asslvl(ingredient_count) if ingredient_count > 4 then return 1.25 end if ingredient_count > 2 then return 0.75 end return 0.5 end function get_recipe(name, options) local rdata = data.raw.recipe[name] local recipe = {} if not rdata then return rdata end recipe.name = rdata.na...
local core = require('vfiler/libs/core') local fs = require('vfiler/libs/filesystem') local vim = require('vfiler/libs/vim') local Item = {} Item.__index = Item function Item.new(stat) return setmetatable({ gitstatus = nil, level = 0, name = stat.name, parent = nil, path = stat.path, selecte...
--めぐり-Ai- --When A.I. First Met You --Scripted by Kohana Sonogami function c101104060.initial_effect(c) --search local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,101104060+EFFECT_COUNT_CODE_OATH) e1:Se...
local backupTable = GLib.GetSessionVariable ("GLib", "LuaBackup", {}) function GLib.Lua.GetBackup (tableName, key) return GLib.Lua.GetBackupTable (tableName) [key] end function GLib.Lua.GetBackupTable (tableName) backupTable [tableName] = backupTable [tableName] or {} return backupTable [tableName] end function G...
function translate(package, key, ...) if translations == nil then return "i18n_not_ready" end if translations[package] == nil then return "i18n_missing_package" end if translations == nil or translations[package] == nil then return "i18n_missing_package" end if transl...
--=========== Copyright © 2019, Planimeter, All rights reserved. ===========-- -- -- Purpose: Options Item Group class -- --==========================================================================-- class "gui.optionsitemgroup" ( "gui.dropdownlistitemgroup" ) local optionsitemgroup = gui.optionsitemgroup function ...
local tp = require "tprint" local list = { {item = "socks", price=10, qty=5, discount=0.4, note="nice and warm"}, {item = "gloves", price=55, qty=25, discount=nil, note="made of wool"}, {item = "cardigan", price=255, qty=11, discount=0.1, note="a bit pricey"}, {item = "hat's name that is very long", pr...
local content = getUIContent("ui.json") --默认的ui if pos.cw >= 720 then content = getUIContent("ui2.json") --当前设备分辨率为720以上时,输出ui2 end local ret,UI = showUI(content) --显示UI if ret ~= 1 then lua_exit() end if debug_mode then for k,v in pairs(UI) do dlog("UI.",k,"\t= ",v) end end return UI
-- Dependencies local Class = require("engine.Class") local Json = require("engine.Json") local Log = require("engine.Log") local Table = require("engine.Table") -- Profile class local Profile = Class("Profile") -- Constructor function Profile:Profile(fileName) self.fileName = fileName self:clear() if ...
local ok=require("test").ok local csv=require("csv") ok {csv1 = function() for row in csv("../data/weather.csv") do print(table.concat(row,", ")) end end} ok {csv2 = function() for row in csv("../data/weather.csv") do print(table.concat(row,", ")) end end}
--Set statusbar vim.g.lightline = { colorscheme = 'space-vim-dark', active = { left = { { 'mode', 'paste' }, { 'gitbranch', 'readonly', 'filename', 'modified' } } }, component_function = { gitbranch = 'fugitive#head' }, }
--[[ Variables ]] local myContacts = {} --[[ Functions ]] function loadContacts() local contacts = RPC.execute("caue-phone:getContacts") myContacts = contacts SendNUIMessage({ emptyContacts = true, }) for i, v in ipairs(contacts) do SendNUIMessage({ newC...
-- -- callng:kami.lua -- -- The Initial Developer of the Original Code is -- Minh Minh <hnimminh at[@] outlook dot[.] com> -- Portions created by the Initial Developer are Copyright (C) the Initial Developer. -- All Rights Reserved. -- -- ---------------------------------------------------------------------------------...
slot1 = { "#FFFFFF", "#60a9ff", "#966af6", "#fff157", "#EE799F" } class("RecordShipEquipmentCommand", pm.SimpleCommand).execute = function (slot0, slot1) slot2 = slot1:getBody() slot3 = slot2.shipId slot4 = slot2.index if not slot2.type then return end if not slot3 then return end if not slot4 then...
--[[ Background by londonali1010 (2009) This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish. To call this script in Conky, use (assuming you have saved this script to ~/scripts/): lua_load ~/scripts/draw_bg.lua lua_draw_hook_pr...
----------------------------------- -- Area: Al Zahbi -- NPC: Suldiran -- Type: NPC Quest -- !pos 42 -7 -43 48 ----------------------------------- require("scripts/globals/npc_util") require("scripts/globals/quests") require("scripts/globals/titles") function onTrade(player,npc,trade) if player:getQuestStatus(AHT...
-- lua/rs/FireMixin.lua FireMixin = CreateMixin( FireMixin ) FireMixin.type = "Fire" PrecacheAsset("cinematics/vfx_materials/burning.surface_shader") PrecacheAsset("cinematics/vfx_materials/burning_view.surface_shader") local kBurningViewMaterial = PrecacheAsset("cinematics/vfx_materials/burning_view.material") loca...
object_ship_nova_orion_smuggler_medium_tier4 = object_ship_shared_nova_orion_smuggler_medium_tier4:new { } ObjectTemplates:addTemplate(object_ship_nova_orion_smuggler_medium_tier4, "object/ship/nova_orion_smuggler_medium_tier4.iff")
local actions = require "telescope.actions" local M = {} M.project_files = function() local opts = {} -- define here if you want to define something local ok = pcall(require("telescope.builtin").git_files, opts) if not ok then require("telescope.builtin").find_files(opts) end end require("telescope").set...
local model model = { -- array part start, scenario -- #1, client register itself { expect = "/register-site", required_fields = { "scope", "op_host", "authorization_redirect_uri", "client_name", "grant_types", -- "bla-...
SoundsModule = SoundsModule or BeardLib:ModuleClass("Sounds", ModuleBase) SoundsModule.auto_load = false local Managers = BeardLib.Managers function SoundsModule:init(...) if not SoundsModule.super.init(self, ...) then return false end BeardLib.Utils:SetupXAudio() self:ReadSounds(self._config) r...
local simple = LoadV 'vanilla.v.routes.simple' local restful = LoadV 'vanilla.v.routes.restful' local Bootstrap = {} function Bootstrap:initWaf() LoadV('vanilla.sys.waf.acc'):check() end function Bootstrap:initErrorHandle() self.dispatcher:setErrorHandler({controller = 'error', action = 'error'}) end functi...
require "nn" require "cunn" require 'optim' require 'cudnn' -- general parameters storeCounter = 0 -- counts parameter updates -- parameters of end to end training storeInterval = 100 -- storing snapshot after x updates lrInit = 0.000001 -- learning rate lrInterval = 25000 --cutting learning rate in half after x upda...
local t = Def.ActorFrame{ InitCommand = function(self) self:diffusealpha(0) self:diffuse(getMainColor("negative")) end; OffCommand = function(self) self:smooth(1) self:diffusealpha(1) self:sleep(1) end; } t[#t+1] = LoadActor("_background") t[#t+1] = Def.Quad{ InitCommand = function(self) self:diffuse...
--[[ Name: "sh_info.lua". Product: "nexus". --]] local MOUNT = MOUNT; MOUNT.name = "Weapon Select"; MOUNT.author = "kuropixel"; MOUNT.description = "A new weapon selection interface for players.";
local hack = {} function hack.require(name, file, pattern, addons) local content = io.open(file, "r"):read("*a") local hackContent = string.gsub(content, pattern, addons) local init = load(hackContent) local result = init() package.loaded[name] = result return result end return hack
-------------------------------------------------------------------------- -- Lmod License -------------------------------------------------------------------------- -- -- Lmod is licensed under the terms of the MIT license reproduced below. -- This means that Lmod is free software and can be used for both academic -...
local acum = 1 local n1 = 6 for i = 1, 9, 1 do if n1 % 2 == 0 then acum = acum * 2 n1 = n1 / 2 elseif n1 % 3 == 0 then acum = acum * 3 n1 = n1 / 3 elseif n1 % 5 == 0 then acum = acum * 5 n1 = n1 / 5 elseif n1 % 7 == 0 then acum = acum * 7 n1 = n1 / 7 end ...
Config = { ["USE_REDEMRP_FRAMEWORK_HUD"] = true }
--[[ Copyright 2019 Manticore Games, Inc. 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, d...
-- $Id: osgwidgetwindow.lua 50 2008-05-06 05:06:36Z cubicool $ --[[ Table = {} function Table:new() local t = {} setmetatable(t, self) self.__index = self return t end function Table:__concat(other) return tostring(self) .. other end function Table:foo(x) print("foo: " .. self .. x.x) print(self .. x.x) e...
return { debugf="немного debug'а", not_admin = "Ты не админ", clownshadow = "Отрисовывать собственную тень", tatra_one_love = "Включить фикс для татры, ломает томаса" }
local widgetPath = "Interface\\Addons\\TidyPlatesWidgets\\MyWidget\\" local defaultTexture = widgetPath.."art" local WidgetList = {} -- Update Graphics local function UpdateWidgetFrame(frame) -- Custom Code I -------------------------------------- if something then -- Do something else frame:_Hide()...
local P P = require("lpeg").P local short_names = { number = "n", string = "s", url = "u", ident = "u", hash = "h", ["function"] = "f" } local to_type_string to_type_string = function(nodes) local type_chars do local _accum_0 = { } local _len_0 = 1 for _index_0 = 1, #nodes do local nod...
--[[ desc: Attacker, a component for about attack business. author: Musoucrow since: 2018-5-8 alter: 2018-10-1 ]]-- local _Caller = require("core.caller") local _Timer = require("util.gear.timer") ---@class Actor.Component.Attacker ---@field public hitstopTimer Util.Gear.Timer ---@field public hitCaller Core.Call...
local helpers = require('test.functional.helpers')(after_each) local eq, clear = helpers.eq, helpers.clear local missing_provider = helpers.missing_provider local command = helpers.command local write_file = helpers.write_file local eval = helpers.eval local retry = helpers.retry do clear() local reason = missing_...
local pid = vim.fn.getpid() local omnisharp_bin = "omnisharp" local M = {} M.config = { cmd = { omnisharp_bin, "--languageserver" , "--hostPID", tostring(pid) }, filetypes = { 'cs', 'vb' }, } return M
function love.load() font = love.graphics.newFont(48) button = uare.new({ x = WWIDTH*.5-200, y = WHEIGHT*.5-200, width = 400, height = 60, --color color = {200/COLOR_SCALE, 200/COLOR_SCALE, 200/COLOR_SCALE}, hoverColor = {150/COLOR_SCALE, 150/COLOR_SCALE, 150/COLOR...
fx_version 'cerulean' games { 'gta5' } server_script { 'Server/*.lua', 'Config.lua' }
getFreeInstance = function(maps) if (#instances == 0) then for i = 1, maps do table.insert(instances, 60000 + i - 1) end return 60000 else compare = function(a, b) return a < b end table.sort(instances, compare) if (instances[1] ~= 60000 and instances[1] - 60000 > maps) then for i = 1, maps ...
local _, ts = ... local strlen = strlen local strsub = strsub local strfind = strfind local strlower = strlower local tinsert = tinsert local UnitClass = UnitClass local GetTalentInfo = GetTalentInfo local characterIndices = "abcdefghjkmnpqrstvwzxyilou" ts.WowheadTalents = {} local function findLast(haystack, needl...
local bottles = 99 local function plural (bottles) if bottles == 1 then return '' end return 's' end while bottles > 0 do print (bottles..' bottle'..plural(bottles)..' of beer on the wall') print (bottles..' bottle'..plural(bottles)..' of beer') print ('Take one down, pass it around') bottles = bottles...
local MP = minetest.get_modpath("unified_weather") unified_weather = {} dofile(MP.."/api.lua") dofile(MP.."/weather.lua") dofile(MP.."/common.lua") dofile(MP.."/snow.lua") dofile(MP.."/rain.lua") minetest.register_on_joinplayer(function(player) end) minetest.register_on_leaveplayer(function(player) unified_weathe...
object_building_player_hangar_house = object_building_player_shared_hangar_house:new { } ObjectTemplates:addTemplate(object_building_player_hangar_house, "object/building/player/hangar_house.iff")
local API_NPC = require(script:GetCustomProperty("API_NPC")) local API_SE = require(script:GetCustomProperty("APIStatusEffects")) local API_RE = require(script:GetCustomProperty("APIReliableEvents")) local API_ID = require(script:GetCustomProperty("API_ID")) local PILLARS_GROUP = script:GetCustomProperty("Pillars...
---@meta --=== fifo === ---@class FIFO FIFO = {} ---@class fifo local fifo = {} ---Constructor.\ ---fifo = (`require "fifo"`).new() ---@return fifo function FIFO.new() end ---Fetch an element from the fifo and pass it to the function `k`, together with a boolean\ ---indicating whether this is the last element in t...
require_relative 'cl_hooks' require_relative 'sv_plugin' require_relative 'sv_hooks' require_relative 'sh_enums' function PLUGIN:CalcView(player, origin, angles, fov) local view = GAMEMODE.BaseClass:CalcView(player, origin, angles, fov) or {} local entity = player:GetDTEntity(ENT_RAGDOLL) if !player:ShouldDrawL...
return {'sief','siepelen','siepoog','sier','sieraad','sieraadontwerper','sierasperge','sierbestrating','sierbloem','sierduif','sieren','siergewas','siergras','sierheester','sierkers','sierkunst','sierkunstenaar','sierletter','sierlijk','sierlijkheid','sierlijst','sierplant','sierschrift','siersel','sierspeld','sierstee...
-- The world interaction module. -- -- Sets and unsets chests with coins. local com = require("component") local module = require("ut2-serv.modules") local db = module.load("db") local events = module.load("events") local config = module.load("config") local gui = module.load("gui") local cb = com.command_block loca...
require 'torch' require 'sys' local threads = require 'threads' local cmd = torch.CmdLine() cmd:option('-rootPath', 'thchs30/thchs30', 'Path to the thchs30 root') cmd:option('-audioExtension', 'wav', 'The extension of the audio files (wav/mp3/sph/etc)') cmd:option('-move', false, 'Moves the files over rather than copi...
local att = {} att.name = "md_sight_railmount" att.displayName = "Sight Rail Mount" att.displayNameShort = "Rail" att.isSight = false if CLIENT then att.displayIcon = surface.GetTextureID("cw20_extras/icons/upgr_sight_rail_mount") att.description = {[1] = {t = "A rail mount. Allows additional attachments.", c = Cust...
sptbl["gen_gauss"] = { files = { module = "ftbl.c", header = "ftbl.h", example = "ex_gen_gauss.c", }, func = { name = "sp_gen_gauss", }, params = { { name = "scale", type = "SPFLOAT", description = [[The scale of the dist...
local NXFS = require "nixio.fs" local SYS = require "luci.sys" local HTTP = require "luci.http" local DISP = require "luci.dispatcher" local UTIL = require "luci.util" local fs = require "luci.clash" local uci = require "luci.model.uci".cursor() local kr local clash = "clash" local http = luci.http kr = Map(clash) ...
--// File: OpenSimplex3D.lua --// Author: Feedekaiser#8530 --// Credits to " https://github.com/KdotJPG/OpenSimplex2 ", this is merely an implementation in lua. --[[ This is a (possibly garbage and slow and bad) implementation of OpenSimplex noise in lua. The generations of the lookup tables's code can be at th...
return { [100] = { ID = 100, Name = "s100", Platform = "test", Net = {ip = "127.0.0.1", port = 1869,}, }, }
local h = require("null-ls.helpers") local methods = require("null-ls.methods") local FORMATTING = methods.internal.FORMATTING return h.make_builtin({ name = "buf_format", meta = { url = "https://github.com/bufbuild/buf", description = "A new way of working with Protocol Buffers.", }, ...
--[[ *********************************************************** test.lua This particular file has been released in the public domain and is therefore free of any restriction. You are allowed to credit me as the original author, but this is not required. This file was setup/modified in: 2019 If the law of your countr...