content
stringlengths
5
1.05M
local install_path = vim.fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' local compile_path = install_path..'/plugin/packer_compiled.lua' local bootstrap = vim.fn.empty(vim.fn.glob(install_path)) > 0 -- For new installations, we may not have packer. -- We need to manually clone and install the package manage...
function TabbedPanelButton(tbl) return Button:New(Table.Merge({ width = SB.conf.TOOLBOX_ITEM_WIDTH, height = SB.conf.TOOLBOX_ITEM_HEIGHT, caption = '', padding = {0, 0, 0, 0}, SetPressedState = function(obj, pressed) SB.delay(function() for _, chil...
ITEM.name = "Мешок муки" ITEM.desc = "Увесистый мешок с мукой, будет трудно унести его с собой" ITEM.model = "models/props/tools/humans/flourbag01_noragdoll.mdl" ITEM.Width = 3 ITEM.Height = 4 ITEM.price = 50 ITEM.permit = "mat"
TitleScreenState = Class{__includes = BaseState} function TitleScreenState:enter() self.title = 'FLAPPY!' self.titleX = WINDOW_WIDTH/2 - fonts['retroXL']:getWidth(self.title)/2 self.titleY = WINDOW_HEIGHT/4 - fonts['retroXL']:getHeight(self.title)/2 self.info = 'Press <ENTER> to start game, <ESC> or <Q...
--[[ MailSlurp API MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - ...
-- Generator network structure for ALI. local nn = require 'nn' local Generator = {} local SBatchNorm = cudnn.SpatialBatchNormalization local SConv = cudnn.SpatialConvolution local SFullConv = cudnn.SpatialFullConvolution function Generator.weights_init(m) local name = torch.type(m) if name:find('Convolution')...
--- CC's platform table -- @module howl.platform.cc local default = term.getTextColor and term.getTextColor() or colors.white local function read(file) local handle, err = fs.open(file, "r") if not handle then if not err:find(":") then err = file .. ": " .. tostring(err) end error(err, 2) end local contents ...
local tag = "CPPI" local PLAYER = debug.getregistry().Player local ENTITY = debug.getregistry().Entity if CPPI then return end CPPI = {} CPPI.CPPI_DEFER = 100100 CPPI.CPPI_NOTIMPLEMENTED = 7080 if SERVER then function ENTITY:CPPISetOwner(ply) return CPPI.CPPI_NOTIMPLEMENTED end ...
-- Copyright (C) 2016 OpenWrt-dist -- Copyright (C) 2016 Jian Chang <aa65535@live.com> -- Licensed to the public under the GNU General Public License v3. module("luci.controller.dns-forwarder", package.seeall) function index() if not nixio.fs.access("/etc/config/dns-forwarder") then return end entry({"admin", "...
-- Services local players = game:GetService('Players') -- Collect Dependencies local services = script.Parent local modules = services.Parent local manager = require(modules:WaitForChild('ServiceManager')) local dep = manager.Collect(script.Name) -- Modules local ps = dep.ProfileService local _settings = dep.Settings...
#!/usr/bin/lua require "nixio" require "luci.util" require "luci.sys" local ntm = require "luci.model.network".init() local type = arg[1] local rv = {} local wan, wan6 if not type then os.exit(0) end if pcall(function() local x = ntm:get_all_wan_networks(); local y = ntm:get_all_wan6_networks(); end) then wan = ntm...
local LS = {} --Local Stuff local Display_temperature = CreateClientConVar("LS_Display_Temperature", "K", true, false) local Display_hud = CreateClientConVar("LS_Display_HUD", "1", true, false) --local ls_sb_mode = false surface.CreateFont("LS3HudHeader", { font = "Verdana", size = 18, weight = 500 }) ...
-- © 2008 David Given. -- WordGrinder is licensed under the MIT open source license. See the COPYING -- file in this distribution for the full text. local min = min local max = max local int = math.floor local string_rep = string.rep local table_sort = table.sort local Write = wg.write local GotoXY = wg.gotoxy local S...
function dbPrepareBatchString(connection, query, rowsParams) check("u:element:db-connection,s,t") local rows = #rowsParams if rows == 0 then return false end if rows == 1 then return dbPrepareString(connection, query, table.unpack(rowsParams[1])) end local batchQuery = "" for i, params in ipairs(rowsParams) do...
--[[ <name_list> <expr_list> <statements> ]] return function(self, node) node.names = node[1] node[1] = nil node.expr_list = node[2] node[2] = nil node.body = node[3] node[3] = nil end
AddCSLuaFile() local VehicleName = "Brute Constustion truck" local EMV = {} EMV.Siren = 0 EMV.Skin = 0 EMV.Color = Color(255,255,255) EMV.BodyGroups = { { 0, 0 }, -- { 1, 0 }, -- { 2, 0 }, -- { 3, 1 }, -- crane { 4, 0 }, -- bed } EMV.Auto = { { ID = "Tomar 200S Rear", Scale = .95, Pos = Vector( 0, -...
cc = cc or {} ---Sprite object ---@class Sprite : Node local Sprite = {} cc.Sprite = Sprite -------------------------------- ---@overload fun(SpriteFrame):Sprite ---@overload fun(string):Sprite ---@param spriteFrameName string ---@return Sprite function Sprite:setSpriteFrame(spriteFrameName) end ---------------------...
require('telescope._compat') local _extensions = require('telescope._extensions') local telescope = {} function telescope.setup(opts) opts = opts or {} if opts.default then error("'default' is not a valid value for setup. See 'defaults'") end require('telescope.config').set_defaults(opts.defaults) _e...
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
return { level = 30, need_exp = 12000, clothes_attrs = { 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, }, }
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> --------------------------------------------------- -- {{{ Grab environment local tonumber = tonumber local setmetatable = setmetatable local string = { match = string....
--[[ local Region = require("refactoring.region") local get_input = require("refactoring.get_input") local Query = require("refactoring.query") ]] local ensure_lsp = require("refactoring.tasks.ensure_lsp") local lsp_definition_setup = require("refactoring.tasks.lsp_definition_setup") local Pipeline = require("refactori...
toBreak = 0 breaked = 0 redstone.setOutput("left", false) -- Count obsidian to generate for i = 1, 16 do local slotDetails = turtle.getItemDetail() turtle.select(i) if (slotDetails ~= nil and slotDetails.name == "minecraft:redstone") then toBreak = toBreak + turtle.getItemCount() slotDetails = turtle.get...
return { --- Linker flags needed for linking of LuaJIT on macOS. -- See http://luajit.org/install.html#embed. LUAJIT_MACOS_LDFLAGS = '-pagezero_size 10000 -image_base 100000000', --- Special "marker" prefix set in site_config on Windows to LUAROCKS_PREFIX, -- so it can be later recognized in variables and st...
-- create node ColorMask require "moon.sg" local node = moon.sg.new_node("sg_col_mask") if node then node:set_pos(moon.mouse.get_position()) end
--luacheck: globals DEBUG CC_USE_FRAMEWORK CC_SHOW_FPS CC_DISABLE_GLOBAL CC_DESIGN_RESOLUTION -- 0 - disable debug info, 1 - less debug info, 2 - verbose debug info DEBUG = 1 -- use framework, will disable all deprecated API, false - use legacy API CC_USE_FRAMEWORK = true -- show FPS on screen CC_SHOW_FPS = false -...
-------------------------------------------------------------------------------- -- Let's Raid (c) 2019 by Siarkowy <http://siarkowy.net/letsraid> -- Released under the terms of BSD 3-Clause "New" license (see LICENSE file). -------------------------------------------------------------------------------- local gsub = ...
require("plugins.hlslens.keymap") require("plugins.hlslens.setting")
require "/scripts/util.lua" require "/scripts/vec2.lua" require "/scripts/interp.lua" function init() self.rotationOffset = util.toRadians(config.getParameter("rotationOffset")) self.partAngles = config.getParameter("partAngles") self.attackRotation = util.toRadians(config.getParameter("attackRotation")) self....
local short = MenuMainState.at_enter function MenuMainState:at_enter(old_state) short(self, old_state) --[[ Instructions: You can change locals freely, as long as you keep it consistent focus_button = 1, | I recommend not touching those, it's a retarded feature from OVK that specifies what button is selected at first...
Locales['pl'] = { -- cloakroom ['cloakroom_menu'] = 'szatnia', ['cloakroom_prompt'] = 'naciśnij ~INPUT_CONTEXT~ aby użyć ~y~szatni~s~.', ['wear_citizen'] = 'strój cywilny', ['wear_work'] = 'strój pracownika taxi', -- garage ['spawner_prompt'] = 'naciśnij ~INPUT_CONTEXT~ aby otworzyć ~y~garaż~s~.', ['st...
local mod = DBM:NewMod(2197, "DBM-Azeroth-BfA", nil, 1028) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 17957 $"):sub(12, -3)) mod:SetCreatureID(140252) --mod:SetEncounterID(1880) mod:SetReCombatTime(20) mod:SetZone() --mod:SetMinSyncRevision(11969) mod:RegisterCombat("combat") mod:RegisterEvent...
local _G = _G local NeP = NeP ------------------------------------------------------------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------------------------------------------------------...
-- premake5.lua -- some const project_dir = "./Projects" -- Actions newaction { trigger = "clean", description = "clean up project files", execute = function() os.rmdir(project_dir) os.rmdir("./ZooidEngine.sln") end } -- Options -- Rendering Options newoption { trigger = "with-o...
-- lê 2 linhas a fim de identificar o texto das perguntas e a que "bloco" elas pertencem linha_blocos = io.read('l') linha_perguntas = io.read('l') function split(line) local list = {} line:gsub("([^\t]*)\t?", function (field) table.insert(list, field) end) return list end blocos = split(linha_bloc...
ComputerUI = nil AddEvent("OnPackageStart", function() ComputerUI = CreateWebUI(0.0, 0.0, 0.0, 0.0) SetWebURL(ComputerUI, "http://asset/" .. GetPackageName() .. "/ui/dist/index.html#/computer/") SetWebAlignment(ComputerUI, 0.0, 0.0) SetWebAnchors(ComputerUI, 0.0, 0.0, 1.0, 1.0) SetWebVisibility(Com...
return { x = 1, y = 2, }
Build { Configs = { Config { Name = "macosx-clang", DefaultOnHost = "macosx", Tools = { "clang-osx" }, }, }, SyntaxExtensions = { "tundra.syntax.osx-bundle" }, Units = "units.lua", }
list.Set( "clothing_system", "fg_human_gasmask_2", { Developing = true, Name = "Gas mask 2", Category = "Gas Masks", WireModel = "models/maver1k_xvii/stcop_helm_battle.mdl", FoldedModel = "models/maver1k_xvii/stcop_helm_battle.mdl", GasMask = true, EquipSound = "clothing_system/gasmask_equ...
local XBar = _G.XBar local Sys={["update"]=0} function XBar.Ping_OnUpdate(elapsedTime) Sys["update"]=Sys["update"]+elapsedTime if Sys["update"]>=5 or not Sys["fps"] then Sys["update"]=0 Sys["fps"]=math.floor(GetFramerate()) Sys["ping"]=GetPing() if Sys["fps"]<21 then Sys["fps"]="|cffFF0000"..Sys["fps"].."|r...
NUM_PHILOSOPHERS = 5 NUM_FORKS = NUM_PHILOSOPHERS MAX_FRAME_RATE = 5 / 12 --12 frames per second MAX_SECONDS = 5 STATES = { "Thinking", "Hungry", "Eating", "Full" } PIXEL_SIZE = 32 TABLE_REAL_HEIGHT = 70 TABLE_HEIGHT = 35 TABLE_WIDTH = 70
-- Don't include this file, we should manually include it via -- require("harpoon.dev").reload(); -- -- A quick mapping can be setup using something like: -- :nmap <leader>rr :lua require("harpoon.dev").reload()<CR> local M = {} M.reload = function() require("plenary.reload").reload_module("harpoon"); end return ...
--[[ More Blocks: registrations Copyright © 2011-2020 Hugo Locurcio and contributors. Licensed under the zlib license. See LICENSE.md for more information. --]] local box_slope = { type = "fixed", fixed = { {-0.5, -0.5, -0.5, 0.5, -0.25, 0.5}, {-0.5, -0.25, -0.25, 0.5, 0, 0.5}, {-0.5, 0, 0, 0.5...
--[[ Pre-activation version of ResNet An implementation of the ResNet architectures described in the CVPR2017 paper Kui Jia, Dacheng Tao, Shenghua Gao, and Xiangmin Xu, "Improving training of deep neural networks via Singular Value Bounding" http://www.aperture-lab.net/research/svb This code is based on the fb.resn...
-- -- HERKULEX_* SUBSYSTEM -- -- Setup herkulex_driver, herkulex_array, herkulex_sched -- -- Intended to be run via config script. -- require "timer" ros:import("sweetie_bot_herkulex_control"); --- Load HerkulexDriver, HerkulexSched, HerkulexArray components. -- -- Components are named "herkulex/<group>/driver", ...
vim.cmd([[ au BufRead,BufNewFile *.styl set filetype=stylus ]])
object_mobile_npe_npc_dressed_meat_chef = object_mobile_npe_shared_npc_dressed_meat_chef:new { } ObjectTemplates:addTemplate(object_mobile_npe_npc_dressed_meat_chef, "object/mobile/npe/npc_dressed_meat_chef.iff")
local next_team_index local starting_team_index = 21 ulx.teams = {} local team_by_name = {} local function sortTeams( team_a, team_b ) if team_a.order then if team_a.order ~= team_b.order then return not team_b.order or team_a.order < team_b.order end elseif team_b.order then return false -- Ordered always ...
require 'basic' require 'PReplicate' require 'Linear3D' require 'Contiguous' require 'EMaskedClassNLLCriterion' require 'LookupTable_ft' local model_utils = require 'model_utils' local SelectNet = torch.class('SelectNet', 'BModel') function SelectNet:__init(opts) self.opts = opts self.name = 'SelectNet' opts....
local tbug = SYSTEMS:GetSystem("merTorchbug") local strformat = string.format local typeColors = tbug.cache.typeColors local typeSafeLess = tbug.typeSafeLess local function invoke(object, method, ...) return object[method](object, ...) end ------------------------------- -- class TableInspectorPanel -- local O...
local common = require("slither-commons2") local class, instance = assert(common.class), assert(common.instance) local _M = require("newmodule")(...) _M.class = class _M.instance = instance _M.__BY = "slither" return _M
package("dbg-macro") set_kind("library", {headeronly = true}) set_homepage("https://github.com/sharkdp/dbg-macro") set_description("A dbg(…) macro for C++") set_license("MIT") add_urls("https://github.com/sharkdp/dbg-macro/archive/refs/tags/$(version).tar.gz", "https://github.com/shark...
local CONTENTS = { tracks = { "music_1", "music_2", "music_3" }, track_titles = { "[November 2013]", "[Buny's Breakfast]", "[A Science afFair]" }, curr_track = 2, absolute_pos = { x = 0, y = 0 }, buttons = { {text = "VOL--", val = -0.25, coords = { x = 0, y = 1} }, {text = "VOL++", val = 0.25, coord...
---------------------------------------- -- -- LabeledTextInput.lua -- -- Creates a frame containing a label and a text input control. -- ---------------------------------------- local plugin = _G.StudioWidgetsPluginGlobalDistributorObject local GuiUtilities = require(script.Parent.GuiUtilities) local kTextInputWidth...
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local S = E:GetModule('Skins') --Lua functions local _G = _G --WoW API / Variables local hooksecurefunc = hooksecurefunc local function LoadSkin() if E.private.skins.blizzard.enable ~= true or E.private.skins.bliz...
-- Project: Backgammon -- Author and (c): frosty -- Link: http://twolivesleft.com/Codea/Talk/discussion/835/backgammon/p1 -- Link: https://gist.github.com/2346693 --# Counter CTYPE_WHITE = 0 CTYPE_BLACK = 1 CTYPE_PLACEWHITE = 2 CTYPE_PLACEBLACK = 3 Counter = class() function Counter:init(x, y, t) self.pos = vec2...
local json = require("json") local _BuildingCenter = {} local _mtBuildingCenter = {__index = _BuildingCenter} function NewBuildingCenter() local BuildingCenter = setmetatable({}, _mtBuildingCenter) -- BuildingCenter.buildingIdToBuilding = {} BuildingCenter.Buildings = {} return BuildingCenter end fu...
-- Task.lua -- @Author : Dencer (tdaddon@163.com) -- @Link : https://dengsir.github.io -- @Date : 10/14/2019, 2:16:54 PM ---@type ns local ns = select(2, ...) ---@class Task: Object local Task = ns.Addon:NewClass('Task') function Task._Meta:__call() if not self.running then if ns.Pack:IsLocked() then...
--注册界面 local RegisterLayer = class("RegisterLayer", cc.Layer) local ExternalFun = appdf.req(appdf.EXTERNAL_SRC .. "ExternalFun") local AnimationHelper = appdf.req(appdf.EXTERNAL_SRC .. "AnimationHelper") local MultiPlatform = appdf.req(appdf.EXTERNAL_SRC .. "MultiPlatform") local ServiceLayer = appdf.req(appdf.CLIEN...
--More Shinybobs! if settings.startup["moreshinybobs-order"] and settings.startup["moreshinybobs-order"].value == true then require("order/order") end if settings.startup["moreshinybobs-item-group"] and settings.startup["moreshinybobs-item-group"].value == true then require("gfx/item-group") end require("gfx/gfx") ...
CONTROL_DOMAIN = "room" --include <control_base>
local remove = table.remove local find = string.find --- Get a list of files inside a directory. local function ls( path ) if fs then local results = fs.list( path ) return results, #results end local n = 0 local results = {} if lfs then for name in lfs.dir( path ) do n = n + 1 results[ n ] = name ...
NOTE_DOWN = 0x90 NOTE_UP = 0x80 VELOCITY = 0x7f function play(note) midi_send(NOTE_DOWN, note, VELOCITY) while os.clock() < 1 do end midi_send(NOTE_UP, note, VELOCITY) end play(60)
local editor = require('distant.editor') local fn = require('distant.fn') local command = {} command.parse_input = function(input) local args = {} local opts = {} local TYPES = { EQUALS = 'equals', QUOTE = 'quote', WHITESPACE = 'whitespace', WORD = 'word', } local...
module(..., package.seeall) --[[ Incremental counter that compares the value of the counter against another value, and optionally run sequences based on the comparison. ]] function counter(action) local key = action.storage_key or "counter" local increment = action.increment and tonumber(action.increment) or n...
local class = require('middleclass') local Controller = require('mvc.Controller') local HasSignals = require('HasSignals') local PJPlaybackController = class("PJPlaybackController", Controller):include(HasSignals) function PJPlaybackController:initialize(deskModel) Controller.initialize(self) HasSignals.initia...
package("python2") set_kind("binary") set_homepage("https://www.python.org/") set_description("The python programming language.") if is_host("windows") then if os.arch() == "x64" then add_urls("https://gitlab.com/xmake-mirror/python-releases/raw/master/python-$(version).amd64.zip")...
--[[-------------------------------------------------------------------------- -- -- File: UTGame.Ui.Loading.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: July 27, 2010 -- ------------------------------------...
local _class ={} function class(super,cstype) local cs_func_tbl = {} local class_type = { super = super, cs_func_tbl = cs_func_tbl } class_type.new = function(...) local obj={super = super} setmetatable(obj, { __index = function(t, k) local ret ...
-- Copyright (C) 2017-2020 DBotThePony -- 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, publis...
-- API local ENCODER_API = require(script:GetCustomProperty("EncoderAPI")) local ANIMATOR_API = require(script:GetCustomProperty("AnimatorClientAPI")) local eventQueue = {} function ProcessRequest(params) if params[1] == "NewAnimation" then Events.BroadcastToServer("NewAnimation", params[2]) elseif pa...
--- The jump-attack node inherits from the @{action} base node class and causes a mob to jump towards -- the target object and punching the target when/if it collides with many configurable animations and sounds. -- @action jump_attack local action = behaviors.action local jump_attack = behaviors.class("jump_attack", ...
-- // rThreat -- // zork - 2011 --get the addon namespace local addon, ns = ... --get the config local cfg = ns.cfg ----------------------------- -- VARIABLES ----------------------------- local player_name, _ = UnitName("player") local _, player_class = UnitClass("player") ...
local TestEZ = script.Parent.Parent.TestEZ local TestPlanner = require(TestEZ.TestPlanner) local TestBootstrap = require(TestEZ.TestBootstrap) local TestEnum = require(TestEZ.TestEnum) local testRoot = script.Parent.planning local function verifyPlan(plan, expected, notSkip) local nodes = plan:findNodes(func...
EditorCharacterOutline = EditorCharacterOutline or class(MissionScriptEditor) function EditorCharacterOutline:create_element() self.super.create_element(self) self._element.class = "ElementCharacterOutline" end
local fiber = require 'fiber' local json = require 'json' local zookeeper = require 'zookeeper' local function global_watcher(z, type, state, path, context) print(string.format( 'Global watcher. type = %s, state = %s, path = %s', zookeeper.const.watch_types_rev[type], zookeeper.const.state...
--- Path.lua --- --- Goal: Create objects that are extremely similar to Python's `Path` Objects. --- Reference: https://docs.python.org/3/library/pathlib.html local uv = vim.loop local F = require('plenary.functional') local S_IF = { -- S_IFDIR = 0o040000 # directory DIR = 0x4000, -- S_IFREG = 0o100000 #...
local config = {} function config.code_runner() require('code_runner').setup{ filetype_path = "/home/uniqueding/.config/nvim/lua/modules/tools/code_runner.json", -- project_path = "~/.config/nvim/lua/modules/tools/projects.json", } end function config.rnvimr() vim.g.rnvimr_enable_ex = 1 ...
--[[ Copyright (C) 2018-2019 The DMLab2D Authors. 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
#!/usr/bin/env luajit local hokuyo = require'hokuyo' local SENSOR_IP = arg[1] or hokuyo.DEFAULT_IP -- Form packets local pkt_version = assert(hokuyo.version("hello world")) local pkt_parameters = assert(hokuyo.parameters()) local pkt_status = assert(hokuyo.status()) local pkt_scan_single = assert(hokuyo.scan_single{ ...
--[[ Copyright (C) 2018 "IoT.bzh" Author Fulup Ar Foll <fulup@iot.bzh> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by...
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- function preserialize(preserialize, st) local stanza = st.stanza("message", { a = "a" }); local stanza2...
local S = upgrade_packs.translator minetest.register_chatcommand("upgrade_packs", { description = S("Allows using upgrade packs without CSM"), func = function(name, param) minetest.show_formspec(name, "upgrade_packs:gui_plain", ([[ size[8,7] label[3,0;%s] list[current_player;ugpacks;2,1;4,1;] list[curr...
local PLAYER_SPAWN_POINT = {x = 204094, y = 180846, z = 1500} AddRemoteEvent("ServerCharacterCreation", function(player) CallRemoteEvent(player, "characterize:ShowPanel", true) end) AddRemoteEvent("SetUIOpenStatus", function(player, isOpen) CallRemoteEvent(player, "SetUIOpenStatusClient", isOpen) end) AddEv...
object_tangible_loot_beast_beast_steroid_giraffe_goat = object_tangible_loot_beast_shared_beast_steroid_giraffe_goat:new { } ObjectTemplates:addTemplate(object_tangible_loot_beast_beast_steroid_giraffe_goat, "object/tangible/loot/beast/beast_steroid_giraffe_goat.iff")
-- TODO: -- There's potential race conditions in here if two players have the board open -- and a culling happens or they otherwise diddle around with it. For now just -- make sure it doesn't crash local S = minetest.get_translator(minetest.get_current_modname()) local bulletin_max = 7*8 local culling_interval = 864...
local createEnum = import("../createEnum") return createEnum("TextTruncate", { None = 0, AtEnd = 1, })
local WATERFALL_TILE_ID = { FALLING_LEFT = 0, FALLING_MIDDLE = 1, FALLING_RIGHT = 2, LEFT = 12, MIDDLE = 13, RIGHT = 14, BOTTOM_LEFT = 21, BOTTOM_MIDDLE = 22, BOTTOM_RIGHT = 23 } local ANIMATION_TIME = 0.2; function Local.Init(x, y, width, height) Object.clock = ANIMATION_TIME;...
local kong = kong local BasePlugin = require "kong.plugins.base_plugin" local PocHandler = BasePlugin:extend() PocHandler.VERSION = "1.0.0" PocHandler.PRIORITY = 10 function PocHandler:new() PocHandler.super.new(self, "poc-plugin") end function PocHandler:rewrite(config) -- redirect /now to /yyyy/mm/dd/hh/ii ...
modifier_ardm_disable_hero = modifier_ardm_disable_hero or class({}) function modifier_ardm_disable_hero:IsHidden() return true end function modifier_ardm_disable_hero:IsDebuff() return true end function modifier_ardm_disable_hero:IsPurgable() return false end function modifier_ardm_disable_hero:RemoveOnDeath...
local utils = require 'go.utils' local log = utils.log local M = {} -- https://go.googlesource.com/tools/+/refs/heads/master/gopls/doc/commands.md -- "executeCommandProvider":{"commands":["gopls.add_dependency","gopls.add_import","gopls.apply_fix","gopls.check_upgrades","gopls.gc_details","gopls.generate","gopls.gener...
local class = require 'middleclass' local it = require('busted').it local describe = require('busted').describe local before_each = require('busted').before_each local assert = require('busted').assert describe('Lua 5.2 Metamethods', function() local Vector, v before_each(function() Vector= class('Vector') ...
require("premake", ">=5.0.0-alpha15") -- Disable premake.downloadModule, see https://github.com/premake/premake-core/issues/1381. premake.downloadModule = function(modname, versions) return false end red4ext = require("extensions/red4ext") workspace("RED4ext") location("projects") startproject("RED4ext.L...
function setall_icons(technologies_icons) if settings.startup["switch_green_purple_belts"] then if not settings.startup["switch_green_purple_belts"].value then technologies_icons.loaders = {} technologies_icons.miniloaders = {} end end for group, objects in pairs(technologies_icons) do for mainname, tec...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by al-kov. --- DateTime: 25.11.2019 05:01 --- local handlers = require("app.rest.handlers") local middleware = require("app.rest.middleware") local router = require('http.router').new() router:route({ path = '/kv', method = 'POST' }, handlers.kv.pos...
description 'PixelWorld Krapea Furniture Shop' name 'PixelWorld pw-krapea' author 'PixelWorldRP [Ultrunz] - https://pixelworldrp.com' files { "interiorproxies.meta" } data_file 'INTERIOR_PROXY_ORDER_FILE' 'interiorproxies.meta' this_is_a_map 'yes' fx_version 'adamant' games {'gta5'}
--- 金币管理模块 --- @module CoinMgr Module --- @copyright Lilith Games, Avatar Team --- @author Dead Ratman local CoinMgr, this = ModuleUtil.New('CoinMgr', ServerBase) ---* 常量声明 -- 对象池默认容量 local DEFAUL_POOL_SIZE = 120 local COIN_DESPAWN_DELAY = 0.12 ---* 变量声明 --金币对象池 local coinPool = { N1 = {}, P1 = {}, N10 = ...
-- vscode.nvim color scheme -- Lua port of https://github.com/tomasiser/vim-code-dark -- By http://github.com/mofiqul local utils = require('vscode.utils') local vscode = {} vscode.set = function() utils.load() end vscode.change_style = function(style) vim.g.vscode_style = style print('Vscode style: ', s...
ExtraQuickSpells = {} ExtraQuickSpells.SlotsAmount = 4 local function NewSpellSlots() local SpellSlots = {} for PlayerId, Player in Party.PlayersArray do SpellSlots[PlayerId] = {} for i = 1, ExtraQuickSpells.SlotsAmount do SpellSlots[PlayerId][i] = 0 end end return SpellSlots end ExtraQuickSpells.NewSpell...
LinkLuaModifier("modifier_item_trusty_shovel_oaa_passive", "items/neutral/trusty_shovel.lua", LUA_MODIFIER_MOTION_NONE) item_trusty_shovel_oaa = class(ItemBaseClass) function item_trusty_shovel_oaa:GetIntrinsicModifierName() return "modifier_item_trusty_shovel_oaa_passive" end function item_trusty_shovel_oaa:OnSpe...