content
stringlengths
5
1.05M
Script.Load("lua/Weapons/Projectile.lua") Script.Load("lua/TeamMixin.lua") Script.Load("lua/Weapons/DotMarker.lua") Script.Load("lua/DamageMixin.lua") class 'AcidRocket' (PredictedProjectile) AcidRocket.kMapName = "acidrocket" AcidRocket.kProjectileCinematic = PrecacheAsset("cinematics/acidrocket_projecti...
local Prop = {} Prop.Name = "MTL Building 3" Prop.Cat = "Warehouse" Prop.Price = 1000 Prop.Doors = { Vector( -3860, -7044, 99.5 ), Vector( -3943.5, -6771, 67 ), } GM.Property:Register( Prop )
local K, C, L = unpack(select(2, ...)) local Module = K:NewModule("QuestNotifier", "AceEvent-3.0") local strmatch, strfind, gsub, format = string.match, string.find, string.gsub, string.format local mod, tonumber, pairs, floor = mod, tonumber, pairs, math.floor local soundKitID = SOUNDKIT.ALARM_CLOCK_WARNING_3 local Q...
---- -- Grupo de *sprites* que serve como camada para as cenas do jogo. -- -- Extends `skgl.Array` -- -- Dependencies: `skgl.Array` -- @classmod skgl.Group local Array = require("skgl.Array") local M = Array:subclass("skgl.Group") ---- -- Construtor da classe. -- @param id (***string***) ID do grupo. -- @...
setfenv(1, require "sysapi-ns") require "handle.handle-windef" local tcache = require "utils.ctype-cache" tcache:cache("OBJECT_BASIC_INFORMATION") tcache:cache("OBJECT_NAME_INFORMATION") tcache:cache("OBJECT_TYPE_INFORMATION") local ntdll = ffi.load("ntdll.dll") local M = SysapiMod("Handle") local Getters = {} local...
--[[ Copyright (c) 2012 Kevin Sacro 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, distribu...
local string_byte = string.byte local string_sub = string.sub local string_len = string.len -- -- Write content to a new file. -- function io.writefile(filename, content) local file = io.open(filename, "w+b") if file then file:write(content) file:close() return true ...
return { settings = { Lua = { diagnostics = { globals = { "vim" }, }, workspace = { library = { [vim.fn.expand("$VIMRUNTIME/lua")] = true, [vim.fn.stdpath("config") .. "/lua"] = true, ...
object_mobile_outbreak_rebel_trooper_human_male_01 = object_mobile_shared_outbreak_rebel_trooper_human_male_01:new { } ObjectTemplates:addTemplate(object_mobile_outbreak_rebel_trooper_human_male_01, "object/mobile/outbreak_rebel_trooper_human_male_01.iff")
local map = vim.api.nvim_set_keymap local defaults = {noremap = true, silent = true} -- autocomplete with Tab map('i', '<Tab>', 'v:lua.tab_complete()', {expr = true}) map('s', '<Tab>', 'v:lua.tab_complete()', {expr = true}) map('i', '<S-Tab>', 'v:lua.s_tab_complete()', {expr = true}) map('s', '<S-Tab>', 'v:lua.s_tab_...
-- Trochę zmiennych do ofert local offerType = nil local offerName = nil local offerPerson = nil local offerPrice = nil local offerValue = nil local screenX, screenY = guiGetScreenSize() local rX, rY = 1366, 768 local is_offer_active = false local is_rendered = false local rd_opacity = 0.0 -------------------------...
-- Config.lua -- Implements the cConfig class that holds the general plugin configuration cConfig = { m_Wand = cItem(E_ITEM_STICK, 1, 1); -- The item to be used as the selection wand m_AllowInteractNoArea = true; -- If there's no area, is a player allowed to build / dig? }; --- Initializes the cConfig o...
return { _all = { cpath = "$<TARGET_FILE_DIR:unicornlua_library>/?@LUA_CLIB_EXTENSION@;;", lua = "@LUA_EXE@", verbose = true, shuffle = true, directory = "@CMAKE_CURRENT_SOURCE_DIR@", }, default = { pattern = "lua", ROOT = {"@CMAKE_CURRENT_SOURCE_DIR@"}, } }
--[[ For a cache item and associating one or more tags. Given a cache key (KEYS[1]) and value (ARGV[1]), adds the key-value pair to the cache and associates it to the given list of tags (KEYS[2+]). If an expiration (ARGV[2]) is supplied, the key-value pair will expire accordingly, and any tags expire in ARGV[2] _or gre...
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("Debug components", function() local mock_love = require "moonpie.test_helpers.mock_love" local components = require "moonpie.ui.components" it("...
-- Copyright 2018 the wonderful GUI project 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 -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicabl...
-- Handles populating the modal dialog to view or edit notes function open_notes_dialog(flow_modal_dialog) create_notes_dialog_structure(flow_modal_dialog, {"fp.notes"}) end -- Handles closing of the notes dialog function close_notes_dialog(flow_modal_dialog, action, data) if action == "submit" then lo...
PLUGIN.name = "Clothes" PLUGIN.author = "STEAM_0:1:29606990" PLUGIN.description = "Adds clothes items" ix.util.Include("sv_plugin.lua") FindMetaTable("Player").GetClothesItem = function(self) return (self.ixClothes or {}) end if (CLIENT) then net.Receive("ixClothesSet", function() local category = net.ReadString...
-- Importing modules local StaticConnectionPool = require "elasticsearch.connectionpool.StaticConnectionPool" local RoundRobinSelector = require "elasticsearch.selector.RoundRobinSelector" local Connection = require "elasticsearch.connection.Connection" local Logger = require "elasticsearch.Logger" local Transport = re...
require("packer").use { -- Package info {{{ "b3nj5m1n/kommentary"; requires = "JoosepAlviste/nvim-ts-context-commentstring"; opt = true; keys = { "gc", "gcc" }; -- vim:set fdm=marker fdl=0: }}} config = function() require('kommentary.config').configure_language("default", { prefer_single_line_co...
data:extend({ { type = "item", name = "avatar", icon = "__Avatars__/graphics/icons/avatar.png", icon_size = 32, subgroup = "avatar", order = "a[avatars]-a[avatar]", place_result = "avatar", stack_size = 1 }, { type = "item", name = "avatar-control-center", icon = "__Avatars__/graph...
object_tangible_loot_loot_schematic_wod_ns_hut = object_tangible_loot_loot_schematic_shared_wod_ns_hut:new { } ObjectTemplates:addTemplate(object_tangible_loot_loot_schematic_wod_ns_hut, "object/tangible/loot/loot/schematic/wod_ns_hut.iff")
function foo(bar) a = {} end function foo(bar) a = { stuff, stasdtas, asdf } end function foo(long_variable_name, longer_variable_name, bar) stuff end function foo( long_variable_name, stuf) b = {} end -- vim: et sw=4 sts=4 ts=4
#!/usr/bin/env lua --[[ @filename player2.lua @version 1.0 @autor Máster Vitronic <mastervitronic@gmail.com> @date 21-02-2021 12:11:21 -04 @licence MIT licence @see https://nodemcu.readthedocs.io/en/release/modules/pcm/ @require https://github.com/tacigar/lua-mqtt.git @require https://gi...
Weapon.PrettyName = "SMG1" Weapon.WeaponID = "weapon_smg1" Weapon.DamageMultiplier = 1 Weapon.WeaponType = WEAPON_PRIMARY function Weapon:GiveWeapon(ply) local Weap = ply:Give(self.WeaponID) ply:GiveAmmo(Weap:GetMaxClip1() * 10, Weap:GetPrimaryAmmoType(), true) ply:GiveAmmo(2, Weap:GetSecondaryAmmoType(), ...
return function() local import = require(script.Parent) it("should be callable", function() expect(type(import)).to.equal("table") expect(function() import("./mocks/tableModule") end).to.never.throw() end) it("should not error when calling setConfig", function() expect(function() import.setConfig({...
assert(tup.dino({a = "hello", b = 10}) == "hello") local x = tup.saurus("world") assert(x.a == "world") assert(x.b == 10) assert(tup.croco({a = 10, b = 11}) == 11) local y = tup.dile(13) assert(y.a == "13") assert(y.b == "13")
local luaunit = require("luaunit") local libcurl = require("libcurl") local ffi = require("ffi") TestLibcurl = {} function TestLibcurl.test_easy_init() local curl = libcurl.easy_init() luaunit.assertEquals(ffi.typeof(curl), ffi.typeof("CURL *")) libcurl.easy_cleanup(curl) end function Te...
object_tangible_dungeon_mustafar_valley_battlefield_must_bandit_bunker = object_tangible_dungeon_mustafar_valley_battlefield_shared_must_bandit_bunker:new { } ObjectTemplates:addTemplate(object_tangible_dungeon_mustafar_valley_battlefield_must_bandit_bunker, "object/tangible/dungeon/mustafar/valley_battlefield/must_ban...
-------------------------------------------------------------------------- -- GTFO_Spells_BFA.lua -------------------------------------------------------------------------- --[[ GTFO Spell List - Battle for Azeroth Author: Zensunim of Malygos ]]-- --- ****************************** --- * Battle for Azeroth (World) *...
object_mobile_commander_kenkirk = object_mobile_shared_commander_kenkirk:new { } ObjectTemplates:addTemplate(object_mobile_commander_kenkirk, "object/mobile/commander_kenkirk.iff")
require("_options") require("_plugins") require("_lsp") require("_treesitter") require("_telescope") require("_whichkey") require("_null-ls") require("_terminal") vim.cmd("colorscheme walh-gruvbox") -- important to import after colorscheme require("_statusline")
local awful = require('awful') local naughty = require('naughty') local watch = require('awful.widget.watch') local wibox = require('wibox') local gears = require('gears') local dpi = require('beautiful').xresources.apply_dpi local beautiful = require('beautiful') local clickable_container = require('widget.material....
chertyl_ruluwoor_missions = { { missionType = "deliver", primarySpawns = { { npcTemplate = "kafleer_tredahl", npcName = "Kafleer Tredahl" } }, secondarySpawns = {}, itemSpawns = { { itemTemplate = "object/tangible/mission/quest_item/chertyl_ruruwoor_q1_needed.iff", itemName = "Datadisc" ...
require "suproxy.utils.stringUtils" require "suproxy.utils.pureluapack" local event=require "suproxy.utils.event" local ok,cjson=pcall(require,"cjson") if not ok then cjson = require("suproxy.utils.json") end local logger=require "suproxy.utils.compatibleLog" local tdsPacket=require "suproxy.tds.tdsPackets" loca...
-- This is a Confluence Storage Format custom writer for pandoc. -- It produces output that is very similar to that of pandoc's HTML writer. -- -- Invoke with: pandoc -t csf.lua -- -- Note: you need not have lua installed on your system to use this -- custom writer. However, if you do have lua installed, you can -- u...
-- Use vint linter. vim.cmd('compiler vint')
a = input("A") b = input("B") df = union(a,b) output("union",df)
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" local ERRORCODE_PB = require("ErrorCode_pb") module('AudioAuthKeyRes_pb') AUDIOAUTHKEYRES = protobuf.Descriptor(); local AUDIOAUTHKEYRES_ERROR_FIELD = protobuf.FieldDescriptor(); local AUDIOAUTHKEYRES_DWMAINSVRID_FIELD = protobuf....
require "src.Logger" local BatchNormalization = torch.class("BatchNormalization") function BatchNormalization:__init() logger:debug("Initializing BatchNormalization Layer") self:resetGradsAndOutputs() end function BatchNormalization:resetGradsAndOutputs() self.output = torch.Tensor() self.gradInput = torch.Tenso...
--[[ © 2021 Tony Ferguson, do not share, re-distribute or modify without permission of its author ( devultj@gmail.com - Tony Ferguson, http://www.tferguson.co.uk/ ) ]] AddCSLuaFile() DEFINE_BASECLASS( "dheists_drill_base" ) ENT.PrintName = "Enhanced Drill" ENT.Category = "dHeists - Drills" ENT.Spawnable = true ENT...
ccui = ccui or {} ---HBox object ---@class HBox : Layout local HBox = {} ccui.HBox = HBox -------------------------------- -- ---@param size ---@return bool function HBox:initWithSize(size) end -------------------------------- ---@overload fun(size_table):HBox ---@overload fun():HBox ---@param size ---@return HBox ...
-- Wire cutters minetest.register_craft({ output = "wires3d:wire_cutters", recipe = { {"default:steel_ingot","" ,"default:steel_ingot"}, {"" ,"default:steel_ingot","" }, {"group:stick" ,"" ,"group:stick" }, }, }) -...
local tiny = require('lib.tiny') local class = require('lib.middleclass') local hard = require('lib.hardoncollider') local System = tiny.system(class('system.hitbox.prune')) function System:initialize() self.filter = tiny.requireAll('hitbox') end function System:onRemove(e) hard.remove(e.hitbox) end return Syst...
local skynet = require "skynet" local CMD = {} function CMD.send_func(msg) print ("This is a send from anthor service:", msg) assert("MAIN_SEND" == msg) end function CMD.call_func(msg) print ("This is a call from another service:", msg) skynet.response()(true, msg); end skynet.start(function () ...
_FEmgFGbtgddDoat9, Protected_by_MoonSecV2, Discord = 'discord.gg/gQEH2uZxUk' ,nil,nil;(function() _msec=(function(_l,_,__)local __l__l=_[(62+-#{'nil';1;'}'})];local _ll__l=__[_l[((1385-0x2c0)+-#"steancommunityru.ru/scamlinkhere")]][_l[(65268/0x54)]];local __ll=((0x75-105)+-#"I forgor")/(((0x6340-12766)/0x93)+-0x54)lo...
torch_fix = {} torch_fix.fix = function(old_node1,old_node2,new_node,radius,playerpos) local old_id1 = minetest.get_content_id(old_node1) local old_id2 = minetest.get_content_id(old_node2) local count = 0 playerpos = vector.round(playerpos) -- to avoid weird area behavior local pos1 = vector.subtract(playerpos,...
local tointeger = math.tointeger do --- smoke assert(tointeger(-12) == -12) assert(tointeger(-12.0) == -12) assert(tointeger(-12.34) == nil) assert(tointeger('-12') == nil) assert(tointeger('-12.0') == nil) assert(tointeger('-12.34') == nil) assert(tointeger('bad') == nil) assert(tointeger(true) == nil...
vana_sage_missions = { { missionType = "retrieve", primarySpawns = { { npcTemplate = "vana_pilot", npcName = "Pilot" } }, secondarySpawns = { { npcTemplate = "vana_thug", npcName = "Thug" }, { npcTemplate = "vana_thug", npcName = "Thug" }, }, itemSpawns = { { itemTemplate =...
-- OIL FURNACE local oil_furnace_entity = table.deepcopy(data.raw["furnace"]["electric-furnace"]) oil_furnace_entity.name = "soveu-oil-furnace-entity" oil_furnace_entity.energy_source = { type = "fluid", effectivity = 2, render_no_network_icon = false, burns_fluid = true, fluid_box = { production_type =...
SCRIPT_TITLE = "RV Growl" local inputForm = { title = SV:T("Growl"), message = SV:T(""), buttons = "OkCancel", widgets = { { name = "slFreq", type = "Slider", label = "Base frequency of the modualtor (Hz)", format = "%3.0f", minValue = 10, maxValue = 200, in...
function love.conf(t) t.window.vsync = false end
local api = require "luci.model.cbi.passwall.api.api" local appname = api.appname m = Map(appname) -- [[ Subscribe Settings ]]-- s = m:section(TypedSection, "global_subscribe", "") s.anonymous = true ---- Subscribe via proxy o = s:option(Flag, "subscribe_proxy", translate("Subscribe via proxy")) o.default = 0 o.rmem...
local define = require 'proto.define' local files = require 'files' local guide = require 'parser.guide' local matchKey = require 'core.matchkey' local vm = require 'vm' local getLabel = require 'core.hover.label' local getName = require 'core.hover.name' local getArg = require 'core.ho...
local class = require("pl.class") ---@class FileDataSource : Class local FileDataSource = class() function FileDataSource:_init(config, rootPath) config = config or {} self.config = config self.root = rootPath end ---Parse [AREA] and [BUNDLE] template in the path ---@param config string | table if str...
fade(1) txtr(0, "overlay.bmp") tile(0, 9, 9, 3) tile(0, 8, 9, 27) tile(0, 7, 9, 16) tile(0, 6, 9, tile(0, 9, 9)) print(_BP_VERSION, 3, 3) txtr(2, "tile0.bmp") for i = 15, 45 do for j = 15, 45 do tile(2, i, j, 1) end end fade(0) txtr(4, "spritesheet.bmp") music("music_as_colorful_as_ever.raw", 0...
local DIR_GENIE = (path.getabsolute('.') .. '/') -- Verifies and returns a valid options object function unet_verify_options(options) if not options then options = {} end if not options.modules then options.modules = { enet = { link = true } } end return options end function unet_merge_config(cfg, filter) local r...
local Valkyrie = _G.ValkyrieC; local Color3 = Valkyrie:GetComponent "Colour"; local IntentService = Valkyrie:GetComponent "IntentService"; local GameContainer = game.Players.LocalPlayer.PlayerGui.Tetris.GameContainer; local MinoContainer = GameContainer.MainFieldContainer.Matrix.MinoContainer; local PendingLinesDispla...
-- Return table of the alphabet in lower case function getAlphabet () local letters = {} for ascii = 97, 122 do table.insert(letters, string.char(ascii)) end return letters end -- Move the table value at ind to the front of tab function moveToFront (tab, ind) local toMove = tab[ind] for i = ind - 1...
-- Send request to change traffic light to all clients RegisterServerEvent("SmartTrafficLights:setLight") AddEventHandler("SmartTrafficLights:setLight", function(coords) TriggerClientEvent("SmartTrafficLights:setLight", -1, coords) end)
local gears = require("gears") local awful = require("awful") local wibox = require("wibox") local M = {} local tasklist_buttons = gears.table.join( awful.button( {}, 1, function(c) if c == client.focus then c.minimized = true else c:e...
--- For working with chunks. -- A chunk represents a 32 tile<sup>2</sup> on a surface in Factorio. -- @module Chunk -- @usage local Chunk = require('stdlib/area/chunk') -- @see Concepts.ChunkPosition Chunk = {_module_name = "Chunk"} --luacheck: allow defined top setmetatable(Chunk, {__index = require('stdlib/core')}) ...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by apple. --- DateTime: 2018/9/15 下午7:31 --- SpEffect = NewGameObject:extend() function SpEffect:new(area,x,y,opts) SpEffect.super.new(self,area,x,y,opts) self.w = opts.w or 12 self.h = opts.h or 12 self.current_color = Color.default...
return { { effect_list = { { type = "BattleBuffAddAttr", trigger = { "onAttach", "onRemove" }, arg_list = { attr = "DMG_FROM_TAG_1_T_1", number = 0.045 } }, { type = "BattleBuffAddAttr", trigger = { "onAttach", "onRemove" }, arg_list = { ...
-- This Lua file loads the various local versions of the job.load / job.save -- registrations. -- We make the very commonly used functions global allocate = utilities.storage.allocate checked = utilities.storage.checked lpegmatch = lpeg.match format = string.format sort = table.sort sortedhash ...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
local scheduler = {} local MAX_PENDING_TIME = 600 -- Public Functions scheduler.add_to_scheduler = function(callback, data) local _current_pos = (game.tick+1) % MAX_PENDING_TIME table.insert( global["schedule"][_current_pos], { callback = callback, data = data } ) end -- Events Event.register( Event.core_events.in...
return Def.Quad{ InitCommand=cmd(FullScreen;Center;diffuse,color("0,0,0,0.5")); };
description 'CarDoorsX' client_scripts { "c.js", }
SB.Include(Path.Join(SB_VIEW_ACTIONS_DIR, "action.lua")) ReloadAction = Action:extends{} ReloadAction:Register({ name = "sb_reload", tooltip = "Reload meta model", toolbar_order = 201, image = SB_IMG_DIR .. "recycle.png" }) function ReloadAction:execute() SB.conf:initializeListOfMetaModelFiles() ...
SINGLE = 1 FULL = 2 BORDER_LEFT = 1 BORDER_TOP = 2 BORDER_RIGHT = 3 BORDER_BOTTOM = 4 local lastSlot = lastSlot or 1 local lifeTime = lifeTime or 0 local deathTime = deathTime or 0 local font_hud_weapon = 'S_Light_20' local textcolor_pulsed = Vector(1,1,1) surface.CreateFont( "TextNumbers", { size = 40...
local user_id = ARGV[1] local project_id = ARGV[2] local timeout = tonumber(ARGV[3]) local lock_secret = ARGV[4] local bucket_ids_of_project_key = string.format("project/%s",project_id) local bucket_id_of_user_project_key = string.format("bucket_id/%s/%s",user_id,project_id) local max_bucket_id = tonumber((redis.call...
local Iterator = require(script.Parent.Parent.Iterator) local Values = setmetatable({}, Iterator) Values.__index = Values Values.__call = Iterator.__call function Values.new(hash) return setmetatable({ hash = hash, lastKey = nil, }, Values) end function Values:after() local key, value = next(sel...
local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v={"/init.lua","/boot.lua","/OS.lua"},{},{},unicode,computer,component,component.invoke;local function w(x)local y={e.pullSignal(x)}y[1]=y[1]or""if#y>0 and j.n>0 and(y[1]:match"ey"and not j[y[5]]or y[1]:match"cl"and not j[y[4]])then return table.unpack(y)end;c[y[4]or""]=y...
local webServerName="tutorial.realtimelogic.com" local fmt=string.format local clientcnt,servercnt=0,0 local function webProxy(source,sink,isclient) trace(fmt("Starting %s proxy function:", isclient and "client" or "server")) local data,err while true do data,err = source:read() if...
local ADDON, MinArch = ... MinArch.DigsiteLocales = {}; local GAME_LOCALE = GetLocale(); function DS(name) if (MinArch.DigsiteLocales[GAME_LOCALE] ~= nil and MinArch.DigsiteLocales[GAME_LOCALE][name] ~= nil) then return MinArch.DigsiteLocales[GAME_LOCALE][name] else return name end end
function AddEventManager(obj) assert(obj~=nil, "ERROR: AddEventManager - object is nil") assert(type(obj)=="table", "ERROR: AddEventManager - object is not a metatable") local Handle={} --список списков обработчиков для различных событий local UHandle={} --список универсальных обработчиков local Addi...
local skynet = require "skynet" -- It's a simple service exit monitor, you can do something more when a service exit. skynet.register_protocol { name = "client", id = 3, unpack = function() end, dispatch = function(_, address) print(string.format("[:%x] exit", address)) end } skynet.start(function() end)
include("hud_health.lua") include("hud_armor.lua") include("hud_ammo.lua") include("hud_aux.lua") local PANEL = {} function PANEL:Init() self:ParentToHUD() self:SetSize(ScrW(), ScrH()) local posX = 35 local w,h self.HUDHealth = vgui.Create("HudHealth", self) w, h = self.HUDHealth:GetSize() self.HUDHealth:Se...
arachne_warrior = Creature:new { objectName = "@mob/creature_names:arachne_warrior", socialGroup = "arachne", faction = "", level = 42, chanceHit = 0.44, damageMin = 355, damageMax = 420, baseXp = 4097, baseHAM = 9100, baseHAMmax = 11000, armor = 1, resists = {130,130,-1,160,160,-1,160,-1,-1}, meatType = "...
local anim8 = require 'lib.anim8' local media = require 'src.media' local MobileBody = require 'src.beings.bodies.MobileBody' local PteroBody = class('Ptero', MobileBody) local spriteW, spriteH = 32, 32 function PteroBody:loadAnimations() self.image = media.images.ptero local g = anim8.newGrid(spriteW, spri...
local K, C, L = unpack(select(2, ...)) -- Lua API local _G = _G local tinsert = table.insert -- Wow API local hooksecurefunc = hooksecurefunc local UIDROPDOWNMENU_MAXLEVELS = UIDROPDOWNMENU_MAXLEVELS -- Global variables that we don't cache, list them here for mikk's FindGlobals script -- GLOBALS: ChatFrame1, getn --...
local actions = require'telescope.actions' local Job = require'plenary.job' local A = {} local function close_telescope_prompt(prompt_bufnr) actions.close(prompt_bufnr) end A.remove_state = function(prompt_bufnr) local selection = actions.get_selected_entry(prompt_bufnr) Job:new({ command = 'terraform', ...
include("shared.lua") AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") local sin = math.sin local cos = math.cos local clamp = math.Clamp local approach = math.Approach local trace = util.TraceLine function ENT:Think() self.BaseClass.Think(self) local phys = self:GetPhysicsObject() local vel = phys:GetVeloc...
local common = require("common") local language = {__data = {}} local logStatus = print local __tools = {} local __entity = {} local __convar = {} local __nermsg = {} local __lang = {} local Msg = print local __type = type local __tobool = {["false"] = true, [""] = true, ["0"] = true, ["nil"] = tr...
object_tangible_deed_pet_deed_hawk_bat_deed = object_tangible_deed_pet_deed_shared_hawk_bat_deed:new { } ObjectTemplates:addTemplate(object_tangible_deed_pet_deed_hawk_bat_deed, "object/tangible/deed/pet_deed/hawk_bat_deed.iff")
--[[ Purpose: Provides a library for creating factions and having players able to be whitelisted to certain factions. --]] nut.faction = nut.faction or {} nut.faction.buffer = {} local playerMeta = FindMetaTable("Player") -- Player functions to handle data. do local function sameSchema() return " AND rpschema =...
--[[============================================================================= DeviceConnectionBase Class Copyright 2015 Control4 Corporation. All Rights Reserved. ===============================================================================]] require "common.c4_common" require "lib.c4_object" require "li...
object_tangible_furniture_lifeday_lifeday_painting_s03 = object_tangible_furniture_lifeday_shared_lifeday_painting_s03:new { } ObjectTemplates:addTemplate(object_tangible_furniture_lifeday_lifeday_painting_s03, "object/tangible/furniture/lifeday/lifeday_painting_s03.iff")
-- Since this faction is not a default, any player that wants to become part of this faction will need to be manually -- whitelisted by an administrator. FACTION.name = "Medical Department" FACTION.description = "The Foundation's Medical Department is responsible for keeping employees in good health." FACTION.color =...
-- ISOKB -- v2.2.8 @spunoza -- llllllll.co/t/norns-code-review/14851/39 -- -- 2-channel MIDI keyboard for Norns and Grid -- Isomorphic "in key" note layout (similar to Ableton Push) -- Select a tonic note and one of nine 7-note scales (default C Major) -- Two independen...
-- 1.2.5 Realizar un semaforo sencillo local ROJO = 3 local AMBAR = 2 local VERDE = 1 -- CONFIGURO LOS PINES COMO SALIDA gpio.mode(ROJO, 0) gpio.mode(AMBAR, 0) gpio.mode(VERDE, 0) while true do gpio.write(ROJO,1) gpio.write(AMBAR,0) gpio.write(VERDE,0) tmr.delay(2000000) gpio.write(ROJO,0) ...
-- import local AnimatorClipModule = require 'candy.animator.AnimatorClip' local AnimatorClip = AnimatorClipModule.AnimatorClip -- module local AnimatorClipListModule = {} EnumClipListMode = _ENUM_V { "sequence", "random", "shuffle" } ---@class AnimatorClipListEntry local AnimatorClipListEntry = CLASS: AnimatorCl...
require "fonts" local Widget = require "widgets/widget" local ImageButton = require "widgets/imagebutton" local ThreeSlice = require "widgets/threeslice" local Text = require "widgets/text" local Image = require "widgets/image" -- -- You should override the On* functions to implement desired behaviour. -- -- For exampl...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
local suggestionsEmotes = {"👍","🤷","👎"} return { name = "suggestions-channel", description = "Add voting reactions to messages sent in the server's suggestions channel, if set.", visible = false, event = "client.messageCreate", disabledByDefault = false, run = function(self, guildSettings, message, co...
-- ulx->server -- server->all util.AddNetworkString("PAM_Start") -- ulx->server -- server->all util.AddNetworkString("PAM_Cancel") -- client->server -- server->all util.AddNetworkString("PAM_Vote") -- client->server -- server->all util.AddNetworkString("PAM_UnVote") -- server->all util.AddNetworkString("PAM_Announce_Wi...
util.AddNetworkString( "DeathRun_RoundResult" ) util.AddNetworkString( "DeathRun_RoundStart" ) util.AddNetworkString( "DeathRun_LastWinner" ) GM.RoundStart = os.time() GM.RoundEnd = os.time() GM.NextMap = "" GM.VoteNextRound = false GM.ForceChange = false GM.InitSpawn = false GM.LastWinner = 0 SetGlobalInt("DeathRun_T...
return function(min,max) local build_fn = function(x,y,z) if y > min.y+1 then return 'air' end return 'homedecor:glowlight_quarter_white' end return stm.walk_aabb(min, max, build_fn) end
local say = require("libs.say") local exec exec = require("libs.cfglib").exec local send_signal send_signal = require("libs.xdotool").send_signal local parseargs = require("argparser") local plugged = { ignore_list = { "magic.cfg", "Unknown command", "renamed" }, plugins = { }, plug = function(self,...