content
stringlengths
5
1.05M
local json = require 'cjson' local async = require 'async' local status = require 'redis-status.api' local queuefactory = {} local ILLEGAL_ARGS = { "name", "instance", "queue", "args", "hash", } local checkArgs = function(args) argsjson = json.encode(args) for i,arg in ipairs(ILLEGAL_ARGS) do ...
return function() local Constants = require(script.Parent.Parent.Core.Constants) local T = require(script.Parent.Parent.Core.T) local ENTITY_ATTRIBUTE_NAME = Constants.EntityAttributeName local INSTANCE_REF_FOLDER = Constants.InstanceRefFolder local tryFromAttributes = require(script.Parent.tryFromAttributes) ...
----------------------------------------------------------------------------------------------------- -- TOOLBOX FUNCTIONS ----------------------------------------------------------------------------------------------------- function Clone(t) local u = setmetatable({}, getmetatable(t)) for i,v in pairs(t) do u[i] ...
local syntel = request('^.words.syntel') local name = request('^.words.name') return { name = 'dot_name', syntel('.'), name, }
object_tangible_event_perk_halloween_spider_web_03 = object_tangible_event_perk_shared_halloween_spider_web_03:new { } ObjectTemplates:addTemplate(object_tangible_event_perk_halloween_spider_web_03, "object/tangible/event_perk/halloween_spider_web_03.iff")
local http = require "http" local shortport = require "shortport" local stdnse = require "stdnse" local string = require "string" local url = require "url" local vulns = require "vulns" local base64 = require "base64" local rand = require "rand" description = [[ Exploits a remote code injection vulnerability (CVE-2014...
-- shared local _={} _.set_state=function(actor,state) local animation=actor.animation if animation then local actor_text=_ets(actor) log("animation start:"..state.." for:"..actor_text, "verbose") local entity_animation_state=actor.animation_state animation.state=state if entity_anima...
require "/scripts/messageutil.lua" mhDemo = {} function mhDemo.init() message.setHandler("mhDeployment_loaded", localHandler(mhDemo.handler)) end function mhDemo.handler() return true end local ini = init init = type(ini) == "function" and function() ini() mhDemo.init() end or mhDemo.init
require 'bee' local platform = require 'bee.platform' local fs = require 'bee.filesystem' local lu = require 'ltest' local shell = require 'shell' local C local D if platform.OS == 'Windows' then C = 'c:/' D = 'd:/' else C = '/mnt/c/' D = '/mnt/d/' end local function create_file(filename, content) ...
require("mappings.misc") require("mappings.colemak") require("mappings._coc_nvim") require("mappings._compe") require("mappings._coq_nvim") require("mappings._fzf_vim") require("mappings._harpoon") require("mappings._snap") require("mappings._telescope_nvim") require("mappings._vim_vsnip")
data:extend({ { type = "assembling-machine", name = momoTweak.burner, icon = "__MomosTweak__/graphics/icons/burner-assembling-machine.png", icon_size = 32, flags = {"placeable-neutral", "placeable-player", "player-creation"}, minable = {hardness = 0.25, mining_time = 0.5, resul...
local M = {} local imgui = ui_imgui local function draw(dt) kissui.tabs.favorites.draw_add_favorite_window(gui) if kissui.show_download then return end if not kissui.gui.isWindowVisible("KissMP") then return end imgui.SetNextWindowBgAlpha(kissui.window_opacity[0]) imgui.PushStyleVar2(imgui.StyleVar_WindowMi...
local Superman = {} -- Static global values local rootElement = getRootElement() local thisResource = getThisResource() -- Resource events addEvent("superman:start", true) addEvent("superman:stop", true) -- -- Start/stop functions -- function Superman.Start() local self = Superman addEventHandler("superman:star...
-- https://github.com/hashivim/vim-terraform vim.g.terraform_fmt_on_save = 1
local E, L, V, P, G = unpack(ElvUI); local UF = E:GetModule("UnitFrames") local EPA = E:GetModule('EPA') local Order = 0 local function getOrder() Order = Order +1 return Order end local function configTable() local auraAnchors = { TOP = 'TOP', BOTTOM = 'BOTTOM', LEFT = 'LEFT', RIGHT = 'RIGHT', CENTER =...
return { corcrab = { acceleration = 0.2, activatewhenbuilt = true, brakerate = 0.75, buildcostenergy = 444617, buildcostmetal = 16427, builddistance = 450, builder = true, buildpic = "corcrab.dds", buildtime = 650000, canguard = true, canmove = true, canpatrol = true, canreclaim...
--[[ Auctioneer Advanced Version: <%version%> (<%codename%>) Revision: $Id: CoreMain.lua 2233 2007-09-25 03:57:33Z norganna $ URL: http://auctioneeraddon.com/ This is an addon for World of Warcraft that adds statistical history to the auction data that is collected when the auction is scanned, so that you can ea...
addEvent("onPlayerOpenCrate", true) addEventHandler("onPlayerOpenCrate", root, function (itemName) if not itemName then return end local inventory = getPlayerInventory(client) if not isInventory(inventory) then return end local item = getPlayerInventoryItem(client, itemName) ...
E2VguiPanels["vgui_elements"]["functions"]["dslider"] = {} E2VguiPanels["vgui_elements"]["functions"]["dslider"]["createFunc"] = function(uniqueID, pnlData, e2EntityID,changes) local parent = E2VguiLib.GetPanelByID(pnlData["parentID"],e2EntityID) local panel = vgui.Create("DNumSlider",parent) E2VguiLib.applyAttribut...
-------------------------------------------------------------------------------- -- Reinforced gate -- -------------------------------------------------------------------------------- local reinforcedGate = util.table.deepcopy(data.raw["item"]["gate"]) reinfor...
return { source = { location = 'git@bitbucket.org:bazurbat/ast-files.git', name = 'files' } }
ccs = ccs or {} ---PositionFrame object ---@class PositionFrame : Frame local PositionFrame = {} ccs.PositionFrame = PositionFrame -------------------------------- -- ---@return float function PositionFrame:getX() end -------------------------------- -- ---@return float function PositionFrame:getY() end ------------...
local flavor oil = require "oil" oil.dtests = { checks = require "loop.test.checks", setup = function (flavorspec, hosts) flavor = flavorspec local flavorset = {} for name in flavorspec:gmatch('[^;]+') do flavorset[name] = true end if flavorset['corba.intercepted'] then flavorset.corba = true end...
return require('cors')
--[[ pollnet bindings for luajit example usage to read twitch chat: local pollnet = require("pollnet") local async = require("async") -- assuming you have some kind of async async.run(function() local url = "wss://irc-ws.chat.twitch.tv:443" local sock = pollnet.open_ws(url) sock:send("PASS doesntmatter...
--- This module allows for a single redux-style store of state which can be -- persisted through restarts. In addition to reducers, oeprations which -- effect the external state of the turtle (global location and direction, -- other blocks) require unidirectional actionators and discriminators. -- An actionator sim...
Config = {} Config.StartingApartment = true -- Enable/disable starting apartments (make sure to set default spawn coords) Config.Interior = vector3(-8.88, 512.91, 174.63) -- Interior to load where characters are previewed Config.DefaultSpawn = vector3(-1035.71, -2731.87, 12.86) -- Default spawn coords if you have start...
local floor = math.floor --- Represents the in game time. local Time = {} Time.__index = Time function Time.new() return setmetatable({ --- Seconds into the day. clock = 0, --- The number of days that have passed. day = 0, --- How bright it is outside, ranges between `0` to...
-- Stock dialog for selecting materials local _ENV = mkmodule('gui.materials') local gui = require('gui') local widgets = require('gui.widgets') local dlg = require('gui.dialogs') local utils = require('utils') ARROW = string.char(26) CREATURE_BASE = 19 PLANT_BASE = 419 MaterialDialog = defclass(MaterialDialog, gu...
require "import" --import "mods.muk" import "mods.Chimame_Core" --this.setSharedData("Theme","Night") -----这里是启动页的事件----- function onKeyDown(code,event) if string.find(tostring(event),"KEYCODE_BACK") ~= nil then --监听阻止返回键 return true end end layout={ LinearLayout; layout_width="-1"; layout_height="...
--[[ 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 audio = {} local soundElement = false function audio.onEnter(player) if player == localPlayer then if ...
--[[ QuickSpec/Object Definition Assistant A prototype library to assist in speedy object declarations ]] local quickspec local utility local lib quickspec = { source = {}, class = function(base_path, spec) local out = {} local retrieved = utility.table_nav(self.source, base_path) if (retrieved) then ut...
require("distant").setup({ -- Applies Chip's personal settings to every machine you connect to -- -- 1. Ensures that distant servers terminate with no connections -- 2. Provides navigation bindings for remote directories -- 3. Provides keybinding to jump into a remote file's parent directory ["*"] = require...
local BlockMixture, parent = torch.class('nn.BlockMixture', 'nn.Module') ------------------------------------------------------------------------ --[[ BlockMixture ]]-- -- n > 1 BlockSparse Modules gated by a one gater with -- n - 1 output spaces, one for each of the hidden layers -------------------------------------...
function CreateJobWeapon(name, count, label, jobName, jobLabel) local self = {} self.name = name self.count = count self.label = label self.jobName = jobName self.jobLabel = jobLabel self.getWeapons = function() return self.count or 0 end self.addWeapon = function(count) ...
-- layout0.wlua require 'CLRPackage' import "System.Windows.Forms" panel = FlowLayoutPanel() function button(text,callback) local b = Button() callback = callback or function() print(text) end b.Text = text b.Click:Add(callback) return b end function add2panel(c) panel.Controls:Add(c) end --panel.WrapContents...
object_mobile_bounty_check_fugitive_6 = object_mobile_shared_bounty_check_fugitive_6:new { } ObjectTemplates:addTemplate(object_mobile_bounty_check_fugitive_6, "object/mobile/bounty_check_fugitive_6.iff")
-- base16-tomorrow-night -- color palatte definition local theme = {} -- {{{ Colors theme.scheme = "Tomorrow Night" theme.scheme_id = "tomorrow_night" theme.scheme_author = "Chris Kempson (http =//chriskempson.com)" theme.scheme_type = "dark" theme.base00 = "#1d1f21" theme.base01 = "#282a2e" theme.base02 = "#373b41" t...
getglobal game getfield -1 GetService pushvalue -2 pushstring Lighting pcall 2 1 0 getglobal Color3 getfield -1 new pushnumber 255 pushnumber 255 pushnumber 255 setfield -3 Ambient emptystack
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: game_end.lua -- brief: handles trigger conditions for game over -- author: Andrea Piras -- -- Copyright (C) 2010-2013. -- Licensed unde...
local npcBot = nil; function MinionThink( hMinionUnit ) if npcBot == nil then npcBot = GetBot(); end if not hMinionUnit:IsNull() and hMinionUnit ~= nil then if hMinionUnit:GetUnitName() == "npc_dota_templar_assassin_psionic_trap" and hMinionUnit ~= nil and hMinionUnit:GetHealth() > 0 then local ability...
local playsession = { {"Nate66873", {107835}}, {"Flashbacks", {3465}}, {"Piewdennis", {79236}}, {"Gorlos", {67997}} } return playsession
return function() local NetworksManagerObject = {} local NetworkTickRate = 30 local LastNetworkTick = 0 -- All Nodes -- Sequential array -- Serialized local Nodes = nil -- Map( CircuitNetworkID -> Network ) local Networks = {} -- Map ( Node -> Handler ) lo...
object_mobile_propti_xaroon = object_mobile_shared_propti_xaroon:new { } ObjectTemplates:addTemplate(object_mobile_propti_xaroon, "object/mobile/propti_xaroon.iff")
-- -- lua-LIVR : <http://fperrad.github.com/lua-LIVR/> -- local _, utf8 = pcall(require, 'lua-utf8') local lower = utf8 and utf8.lower or string.lower local upper = utf8 and utf8.upper or string.upper local tostring = tostring local type = type local _ENV = nil return { trim = function () return function ...
--lua local unpack, select, error, date, time, pairs, tremove = unpack, select, error, date, time, pairs, table.remove --wow api local GameTime_GetFormattedTime = GameTime_GetFormattedTime local BestInSlot, L, AceGUI = unpack(select(2, ...)) local History = BestInSlot:NewModule("History") local HistoryF...
-- luapan - pan's standard library -- copyright (C) lqdev, 2020-2021 -- enums do local enums = { "PanLineCap", "PanLineJoin", "PanFontWeight", "PanFontSlant", "PanTextHAlign", "PanTextVAlign", "PanAntialiasing", "PanBlendMode", "PanExtend", "PanFilter", } for _, typenam...
local ScrollRect = require("ui.ScrollRect") local LoopScrollRect = class("LoopScrollRect", ScrollRect) local Camera = require("world.Camera") function LoopScrollRect:ctor(row,column,itemData) LoopScrollRect.super.ctor(self,row,column,itemData) self.obliqueUpdateEvent = nil self.scrollC...
local function TOOL_MENU(Panel) Panel:AddControl("Slider", { ["Label"] = "#bgn.settings.general.bgn_max_npc", ["Command"] = "bgn_max_npc", ["Type"] = "Integer", ["Min"] = "0", ["Max"] = "200" }); Panel:AddControl('Label', { Text = '#bgn.settings.general.bgn_max_npc.description' }) Panel:AddControl('La...
--- CompoundCommand module. --- CompoundCommand class. Execute commands in sequence. -- @type CompoundCommand CompoundCommand = Command:extends{} CompoundCommand.className = "CompoundCommand" --- CompoundCommand constructor. -- Commands will be executed in sequence. In case of undo, they will be unexecuted in reverse...
getglobal game getfield -1 Players getfield -1 LocalPlayer getfield -1 MainPlayerLevel pushnumber 100 setfield -2 Value emptystack getglobal game getfield -1 Players getfield -1 LocalPlayer getfield -1 PlayerQuirk pushstring OFA setfield -2 Value emptystack(edited)
----------------------------------- -- Area: Apollyon NW -- Mob: Kronprinz Behemoth ----------------------------------- function onMobDeath(mob, player, isKiller) end;
-- This resource is part of the default Cfx.re asset pack (cfx-server-data) -- Altering or recreating for local use only is strongly discouraged. version '1.0.0' author 'Cfx.re <root@cfx.re>' description 'A basic resource for displaying player names.' repository 'https://github.com/citizenfx/cfx-server-data' -- add s...
slot0 = class("LittleRenownPage", import(".TemplatePage.PtTemplatePage")) slot0.OnInit = function (slot0) slot0.super.OnInit(slot0) slot0.heartTpl = slot0:findTF("HeartTpl", slot0.bg) slot0.heartContainer = slot0:findTF("HeartContainer", slot0.bg) slot0.heartUIItemList = UIItemList.New(slot0.heartContainer, slot0...
AddCSLuaFile() ENT.Type = "anim" ENT.ItemModel = "models/props_phx2/garbage_metalcan001a.mdl" --models for when the tree dies, but the trunk was not cut down? --live trees drop 0, 1, 2 acorns... --sprout phase --models/props_foliage/bush2.mdl --models/props_foliage/mall_bigleaves_plant03_medium.mdl --m...
Events.OnGameStart.Add( function () -- Adding USFbackpack to NecroForge if NecroList then if NecroList.Items.USFbackpack then else NecroList.Items.USFbackpack = {"Misc.", nil, nil, "Special force backpack", "USFpack.USFbackpack", "Item_USFbackpack", nil, nil, nil}; end end end)
--------------------------------------------- -- Dispelling Wind -- -- Description: Dispels two effects from targets in an area of effect. -- Type: Enfeebling -- Utsusemi/Blink absorb: Ignores shadows -- Range: 10' radial -- Notes: --------------------------------------------- require("scripts/globals/monstertpmoves") ...
local skynet = require "skynet" --\lualib\config\system.lua local config = require "config.system" local login_config = require "config.loginserver" local game_config = require "config.gameserver" local protobufload = require "protobufload" local logstat = require "base.logstat" local syslog = require "syslog" local s...
--[[ Copyright (c) 2010 Scott Vokes <vokes.s@gmail.com> 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, p...
test_run = require('test_run').new() engine = test_run:get_cfg('engine') test_run:cmd("push filter \"file: .*\" to \"file: <filename>\"") test_run:cmd("push filter \"line: .*\" to \"line: <line>\"") -- -- gh-1260: Func index. -- s = box.schema.space.create('withdata', {engine = engine}) lua_code = [[function(tuple) re...
---graphics functions. -- @module graphics local c = require('rude._contract') local module = { _fonts={} } --create table for memoizing images module.imageCache = {} setmetatable(module.imageCache, {__mode='v'}) ---Returns an image object for a given file path. function module.getImage(path) ...
-- LuaLinq - http://code.google.com/p/lualinq/ -- ------------------------------------------------------------------------ -- Copyright (c) 2012, Marco Mastropaolo (Xanathar) -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without modification, -- are permitted provided ...
AuctionatorSellingTabMixin = {} function AuctionatorSellingTabMixin:OnLoad() self:ApplyHiding() self.BagListing:Init(self.BagDataProvider) self.BuyFrame:Init() end function AuctionatorSellingTabMixin:ApplyHiding() if not Auctionator.Config.Get(Auctionator.Config.Options.SHOW_SELLING_BAG) then self.BagLis...
--[[ Mojang Authentication API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) OpenAPI spec version: 2020-06-05 Generated by: https://openapi-generator.tech ]] --[[ Unit tests for openapiclient.api.default_api Automatically generated by openapi-...
local PANEL = {} AccessorFunc( PANEL, "m_strType", "Type" ) AccessorFunc( PANEL, "m_Character", "Char" ) /*--------------------------------------------------------- Init ---------------------------------------------------------*/ function PANEL:Init() self:SetTextInset( 0, 0 ) end /*-----------------------...
local pi_text_file = io.open(arg[1], 'rb') local pi_text = pi_text_file:read() local red = string.char(27) .. '[31m' local blue = string.char(27) .. '[34m' local green = string.char(27) .. '[32m' local reset = string.char(27) .. '[0m' local s, e = string.find(pi_text, arg[2]) if not s then print(red .. arg[2] .. re...
slot0 = class("GetCanBePutFurnituresForThemeCommand", pm.SimpleCommand) slot0.execute = function (slot0, slot1) slot4 = slot1:getBody().callback if slot1.getBody().theme:IsOccupyed(slot0.GetAllFloorFurnitures(), getProxy(DormProxy).floor) then slot0.SortListForPut(slot3:GetUsableFurnituresForFloor(slot6, slot5)) ...
WireToolSetup.setCategory( "Input, Output/Data Transfer" ) WireToolSetup.open( "twoway_radio", "Two-way Radio", "gmod_wire_twoway_radio", nil, "Two-way Radios" ) if ( CLIENT ) then language.Add( "Tool.wire_twoway_radio.name", "Two-Way Radio Tool (Wire)" ) language.Add( "Tool.wire_twoway_radio.desc", "Spawns a two-wa...
local market_pin_map = require("qnFiles/qnPlist/hall/market_pin"); local rechargeItem= { name="rechargeItem",type=0,typeName="View",time=0,report=0,x=0,y=0,width=0,height=277,visible=1,fillParentWidth=1,fillParentHeight=0,nodeAlign=kAlignTopLeft, { name="itemBtn1",type=2,typeName="Button",time=78393075,report=0,x=4...
local _, addon = ...; -- https://onlinetexttools.com/split-text?input=&split-by-char=false&char=%20&split-by-regex=false&regex=%2F%5Cs%2B%2F&split-by-length=true&length=110&separator=%2C%5Cn&symbol-before-chunk=%22&symbol-after-chunk=%22 table.insert(addon.officialCourses, table.concat({ "!WOP:2!0x71D5986B!nsztiYr...
return {'vet','vetachtig','vetafzetting','vetarm','vetblad','vetbol','vetbuik','vetbult','vetconsumptie','vete','veter','veteraan','veterane','veteranenbeleid','veteranenleider','veteranenorganisatie','veteranenziekte','veterband','veterdrop','veteren','vetergat','veterinair','veterschoen','vetertje','vetgans','vetgedr...
-- Copyright 2006-2021 Mitchell. See LICENSE. -- GLSL LPeg lexer. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, S, R = lpeg.P, lpeg.S, lpeg.R local lex = lexer.new('glsl', {inherit = lexer.load('cpp')}) -- Whitespace. lex:modify_rule('whitespace', token(lexer.WHITESP...
local backends = require("aerial.backends") local bindings = require("aerial.bindings") local config = require("aerial.config") local data = require("aerial.data") local loading = require("aerial.loading") local render = require("aerial.render") local util = require("aerial.util") local api = vim.api local M = {} lo...
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- modifier_underlord...
-- Copyright 2021 Kafka-Tarantool-Loader -- -- 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 applicable law or ag...
---------------------------------------------------------------------------------------------------- -- Scrollable UIView class. -- -- <h4>Extends:</h4> -- <ul> -- <li><a href="flower.widget.UIView.html">UIView</a><l/i> -- </ul> -- -- @author Makoto -- @release V3.0.0 ---------------------------------------...
getglobal game getfield -1 ReplicatedStorage getfield -1 Event getfield -1 FireServer pushvalue -2 pushstring Vel pushnumber 2000000000 pcall 3 1 0 emptystack getglobal game getfield -1 ReplicatedStorage getfield -1 Profiles getfield -1 MightyDantheman getfield -1 Stats getfield -1 Vel pushnumber 2000000000 setfield -2...
MenuEntity = Entity:new() function MenuEntity:new(o) o = self:create(o) end function MenuEntity:setName(name) self.name = name end function MenuEntity:setBackgroundTextureName(textureName) self.backgroundTextureName = textureName end function MenuEntity:setBackgroundColorMod(backgroundColorMod) self.background...
local ret = {} local getTrace = function(filename, info) local index = info.traceback:find('\n%s*%[C]') info.traceback = info.traceback:sub(1, index) return info, false end ret.match = function(busted, filename) local path, name, ext = filename:match('(.-)([^\\/\\\\]-%.?([^%.\\/]*))$') if ext == 'lua' then...
if not _G.IsWatchingHonorAsXP then return end local _, Addon = ... local Dominos = _G.Dominos local HonorBar = Dominos:CreateClass('Frame', Addon.ProgressBar) function HonorBar:Init() self:SetColor(Addon.Config:GetColor('honor')) self:Update() end function HonorBar:Update() local value = UnitHonor('player') or 0 ...
print("Yo") local port_size = 10 local CONNECTION = {} function CONNECTION:Init() self:SetSize(port_size,port_size) self:Droppable("nzu_logicmap_connection_in") self:SetPaintBackground(false) end function CONNECTION:PaintOver(x,y) if IsValid(self.Output) then surface.SetDrawColor(0,0,0) surface.DrawLine(self....
--Author Pasky13, GinoMan2440 --Text scaler - Written by Pasky13 local xs local ys local function scaler() xs = client.screenwidth() / 256 ys = client.screenwidth() / 224 end -- stats vars local positionX = 0 local positionY = 849 --vs 896 in windowed (4x) or 1080 in fullscreen local color = 0xAA00FF0F local bgcol...
-- Minetest: builtin/constants.lua -- -- Constants values for use with the Lua API -- -- Built-in Content IDs (for use with VoxelManip API) core.CONTENT_UNKNOWN = 125 core.CONTENT_AIR = 126 core.CONTENT_IGNORE = 127 -- Block emerge status constants (for use with core.emerge_area) core.EMERGE_CANCELLED = 0 cor...
local ts_locals = require("nvim-treesitter.locals") local ts_utils = require("nvim-treesitter.ts_utils") local M = {} M.get_node_at_cursor = function(win) return ts_utils.get_node_at_cursor(win) end M.find_definition = function(node, bufnr) return ts_locals.find_definition(node, bufnr) end M.find_references...
slot0 = require("Mgr/Pool/PoolUtil") slot1 = class("PoolPlural") slot2 = "UnityEngine.GameObject" slot1.Ctor = function (slot0, slot1, slot2) if not getmetatable(slot1) or slot3[".name"] ~= slot0 then warning("Poolplural should use gameobject as prefab not transform " .. ((slot1 and slot1.name) or "NIL")) end sl...
local helpers = require "spec.helpers" local threads = require "llthreads2.ex" describe("Plugin: datadog (log)", function() local client setup(function() local api1 = assert(helpers.dao.apis:insert { name = "datadog1_com", hosts = { "datadog1.com" }, upstream_url = "http://mockbin.com" })...
local create = vim.api.nvim_create_augroup local define = vim.api.nvim_create_autocmd local M = {} create("octo_autocmds", { clear = true }) create("octobuffer_autocmds", { clear = false }) function M.setup() define({ "BufEnter" }, { group = "octo_autocmds", pattern = { "octo://*" }, callback = functio...
return function(dna) return dna:gsub('%a', { C = 'G', G = 'C', A = 'U', T = 'A' }) end
assert(love, "love required") assert(game, "game required") assert(Vector, "vector required") assert(Color, "color required") local console = { enable = false, errortrace = false, openkey = nil, closekey = nil, togglekey = "`", font = love.graphics.newFont(12), inputcolor = game.colors.white, outputcolor = gam...
--[[ 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...: Core\Utility.lua * Author.: StormFX Utility Functions ]] local _, Core = ... ---------------------------------------- -...
Script.ReloadScript("scripts/Utils/EntityUtils.lua") -- Basic entity EntityFlashTag = { Properties = { soclasses_SmartObjectClass = "", bAutoGenAIHidePts = 0, object_Model = "Objects/default/primitive_plane_small.cgf", fScale = 2.0, -- Set the scale of the tag to appear above players heads }, Client = {}...
DHT=2 ROTATOR=0 ENGINE_LOW=5 ENGINE_MIDLE=6 ENGINE_HIGH=7 BUTTON=4 NET_INDICATOR = 8 BUTTON_DELAY=10000 SWITCHING_MODE_DELAY=5000 LOW_MODE=435 MED_MODE=436 HIGH_MODE=437 is_handling=false gpio.mode(ROTATOR, gpio.OUTPUT) gpio.mode(ENGINE_LOW, gpio.OUTPUT) gpio.mode(ENGINE_MIDLE, gpio.OUTPUT) gpio.mode(ENGINE...
CodexDB["items"]["frFR"]={[25]="Epée courte usée",[35]="Bâton tordu",[36]="Masse détériorée",[37]="Hache usée",[38]="Chemise de recrue",[39]="Pantalon de recrue",[40]="Bottes de recrue",[43]="Bottes d\'écuyer",[44]="Pantalon d\'écuyer",[45]="Chemise d\'écuyer",[47]="Chaussures de détrousseur",[48]="Pantalon de détrouss...
minetest.register_tool('more_fire:lighter', { description = 'Lighter', inventory_image = 'more_fire_lighter.png', stack_max = 1, tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 0, groupcaps = { flammable = {uses = 200, maxlevel = 1}, } }, on_use = function(itemstack, user, pointed_thi...
local entity = {} entity["level"] = [[74]] entity["spellDeck"] = {} entity["spellDeck"][1] = [[Mamudoon]] entity["spellDeck"][2] = [[]] entity["spellDeck"][3] = [[Ziodyne]] entity["spellDeck"][4] = [[]] entity["spellDeck"][5] = [[]] entity["spellDeck"][6] = [[]] entity["heritage"] = {} entity["heritage"][1] = [[Dark]] ...
local _={} _.name="Player" _.new=function(options) -- try to keep it flat local name="player" local player=BaseEntity.new(options) player.x=0 player.y=0 player.hp=10 player.maxHp=10 player.energy=10 player.maxEnergy=10 player.xScale=1 -- todo: implement player.editorVisible=false player.isDrawable=t...
--[[ Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com> This file is part of luci-pbx. luci-pbx is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or ...
biker = {} biker.signs = minetest.get_modpath"signs" if not minetest.global_exists"generate_texture" then biker.signs = false end local settings = { -- Turning speed of bike, 1 is instant turn_power = 0.07, -- Top speed the bike can go max_speed = 17, -- Top speed in reverse max_reverse = 5, acceleration = 1.5, ...
-- life.lua -- original by Dave Bollinger <DBollinger@compuserve.com> posted to lua-l -- modified to use ANSI terminal escape sequences -- modified to use for instead of while local write=io.write ALIVE="¥" DEAD="þ" ALIVE="O" DEAD="-" function delay() -- NOTE: SYSTEM-DEPENDENT, adjust as necessary for i=1,10000 do...
--------------------------------------------------------------------------------------- -- simple anvil that can be used to repair tools --------------------------------------------------------------------------------------- -- * can be used to repair tools -- * the hammer gets dammaged a bit at each repair step ------...