content
stringlengths
5
1.05M
local typedefs = require "kong.db.schema.typedefs" local Schema = require "kong.db.schema" local url = require "socket.url" local nonzero_timeout = Schema.define { type = "integer", between = { 1, math.pow(2, 31) - 2 }, } return { name = "services", primary_key = { "id" }, endpoint_key = "name", fields...
return { ["Date"] = 1006498997, ["Fatal"] = "Unknown variable \"bar\"", ["Stack"] = { [1] = { ["code"] = "x = MoreObject(\"345\\n\")", ["file"] = "TopClass.py", ["line"] = 23 }, [2] = { ["code"] = "foo = bar", ["file"] = "MoreClass.py", ["line"] = 58 } }, ["...
local Template = require "oil.dtests.Template" local template = Template{"Client"} -- master process name Server = [=====================================================================[ orb = oil.dtests.init{ port = 2809, tcpoptions = {timeout=.1} } if oil.dtests.flavor.cooperative then socket = require "cothread...
local framework = Nexus:ClassManager("Framework") local _draw = framework:Class("Draw") local PANEL = {} surface.CreateFont("Nexus.PingSystem.Players.Buddies.Title", { font = "Lato", size = 24, weight = 500 }) surface.CreateFont("Nexus.PingSystem.Players.Buddies.Name", { font = "Lato", size = 28, weight = 800 ...
require("a") b = 0 for j,val in ipairs(table_name) do j += 2 j += 3 end print("a)
--PRISON LIFE - KICK GUI-- local jakeskickgui = Instance.new("ScreenGui") local main = Instance.new("Frame") local title = Instance.new("TextLabel") local kick = Instance.new("TextButton") local kicktext = Instance.new("TextBox") local title_2 = Instance.new("TextLabel") local close = Instance.new("TextButton") local o...
return { version = "1.1", luaversion = "5.1", tiledversion = "0.16.0", orientation = "orthogonal", renderorder = "right-down", width = 36, height = 36, tilewidth = 16, tileheight = 16, nextobjectid = 79, properties = {}, tilesets = { { name = "tileset", firstgid = 1, filena...
local obj = {} obj.__index = obj -- Metadata obj.name = "Take a break" obj.version = "1.0" obj.author = "Pavel Makhov" obj.homepage = "https://github.com/fork-my-spoons/take-a-break.spoon" obj.license = "MIT - https://opensource.org/licenses/MIT" obj.indicator = nil obj.iconPath = hs.spoons.resourcePath("icons") obj....
local COMMAND = Clockwork.command:New("CharGiveExemptFlags"); COMMAND.tip = "Gives exempt flags to a character."; COMMAND.text = "<string Name> <string Flag(s)>"; COMMAND.access = "s"; COMMAND.arguments = 2; function COMMAND:OnRun(player, arguments) local target = Clockwork.player:FindByID(arguments[1]); if (target) ...
local G3DTools = class("G3DTools") function G3DTools:ctor() end function G3DTools:camera() -- return GameObject.Find("/Canvas/UiCamera") return g_system:currentUnitySceneCamera() -- return Camera.current end function G3DTools:lerpColor(src, dst, factor) factor = Mathf.SmoothStep(0,1,factor) local...
--[[ s:UI Configuration Martin Karer / Sezz, 2014 http://www.sezz.at --]] local S = Apollo.GetPackage("Gemini:Addon-1.1").tPackage:GetAddon("SezzUI"); local Apollo = Apollo; ----------------------------------------------------------------------------- S.DB = { Colors = { Classes = { [Gam...
--- === Defaults === --- --- Definitions of default events and entities --- -- luacov: disable local Defaults = {} Defaults.__index = Defaults Defaults.__name = "default" Defaults.events = {} Defaults.entities = {} if not _G.requirePackage then function _G.requirePackage(name, isInternal) local luaVersio...
return { id = "flowercrown", name = "Flower Crown", description = "Im so happy!", type = "hat", rarity = 2, hidden = false, }
local Vehicle = { rootPath = "plugins.cyber_engine_tweaks.mods.cityhack.", objectType = "vehicleCarBaseObject", objectTypeBike = "vehicleBikeBaseObject", objectTypeAV = "vehicleAVBaseObject" } local Util = require(Vehicle.rootPath.."hacks.modules.utility") function Vehicle.SetAsPlayerVehicle() lo...
--[[==================================== = = ccui.EditBox 扩展 = ========================================]] local constant_uisystem = g_constant_conf.constant_uisystem local config_delay_destroy_edit_tag = 10000 local CCEditBoxExt, Super = tolua_get_class('CCEditBoxExt') --override 创建的时候不用考虑基类初始化 function CCE...
--[[ MTA Role Play (mta-rp.pl) Autorzy poniższego kodu: - Patryk Adamowicz <patrykadam.dev@gmail.com> Discord: PatrykAdam#1293 Link do githuba: https://github.com/PatrykAdam/mtarp --]] local screenX, screenY = guiGetScreenSize() local scaleX, scaleY = math.max(0.5, (screenX / 1920)), math.max(0.5...
require "DamageLib" require "2DGeometry" require "MapPositionGOS" require "PremiumPrediction" require "GGPrediction" local EnemyHeroes = {} local AllyHeroes = {} local EnemySpawnPos = nil local AllySpawnPos = nil --[[ AutoUpdate deactivated until proper rank. do local Version = 1.0 local Files = { ...
-- See LICENSE for terms if LuaRevision > 1001586 then return end if not g_AvailableDlc.kerwin then print("Fix InDome Buildings Pack Logos: DLC not installed!") return end local function StartupCode() if not CurrentModOptions:GetProperty("EnableMod") then return end MissionLogoPresetMap.CCP1Logo_1.entity_na...
-- Must be installedIntel Power Gadget.dmg local obj = {} obj.__index = obj -- Metadata obj.name = "IntelTemperature" obj.version = "1.0" obj.author = "DengShiLin <DengShiLin0218@gmail.com>" obj.homepage = "https://github.com/slin_0218/Hammerspoon-config" obj.license = "MIT - https://opensource.org/licenses/MIT" fu...
----------------------------------------------------- if SERVER then resource.AddSingleFile("sound/death.wav") --death sound xD util.AddNetworkString("doZombieGesture") --config local infectious = {"npc_zombie"} --which npcs can infect the player? local chance = 1 --the chance of the player getting infected ...
return {'waxcoat','waxinelichtje','waxine','waxinelichtjes','waxcoats'}
local ck = require "resty.cookie" local uuid = require 'resty.jit-uuid' local stream = require('/var/www/cpiapps/docker/openresty/stream') local rmq = require('/var/www/cpiapps/docker/openresty/rmq') local streamUuid = ngx.var.uri:gsub("/", "") if streamUuid == "" then ngx.exit(ngx.HTTP_NOT_FOUND) end stream.redi...
local utils = require("utils") local entityHandler = require("entities") local triggerHandler = require("triggers") local decalHandler = require("decals") local layerHandlers = {} layerHandlers.layerHandlers = { entities = entityHandler, triggers = triggerHandler, decalsFg = decalHandler, decalsBg = ...
-- example config for novnc sandbox, which is created on top of external debian/ubuntu chroot, prepared by debian-setup.cfg.lua -- using debian-sandbox.cfg.lua config file as base -- tested with ubuntu 18.04 chroot, created with download-ubuntu-chroot.sh script -- you need to install the following packages inside ubunt...
local class = require 'class' local game = class('LightZeroSumGame') function game:__init(sim, obs) self.simulator = sim if not obs then error("Require obs param") end self.nPlayers = 2 self.state = self.simulator:new_state(obs) self.r_t = torch.Tensor(self.nPlayers) self.c_t = torch.Tensor(self.nPl...
local ffi = require("ffi") local libc = require("libc") ffi.cdef[[ struct libv4l_dev_ops { void * (*init)(int fd); void (*close)(void *dev_ops_priv); int (*ioctl)(void *dev_ops_priv, int fd, unsigned long int request, void *arg); ssize_t (*read)(void *dev_ops_priv, int fd, void *buffer, size_t n); ...
----------------------------------- -- Area: Lower Delkfutt's Tower -- NPC: Cermet Door -- Cermet Door for Sandy Ambassador -- San d'Orian Mission 3.3 "Appointment to Jeuno" -- !pos 636 16 20 184 ----------------------------------- local ID = require("scripts/zones/Lower_Delkfutts_Tower/IDs") require("scripts/globals/...
GLib.Rendering.MatrixPushOperation = GLib.Enum ( { Override = 1, PreMultiply = 2, PostMultiply = 3 } )
local mod = DBM:NewMod(686, "DBM-Party-MoP", 3, 312) local L = mod:GetLocalizedStrings() local sndWOP = mod:SoundMM("SoundWOP") mod:SetRevision(("$Revision: 9656 $"):sub(12, -3)) mod:SetCreatureID(56884) mod:SetZone() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_AURA_APPLIED", "SPE...
img_open(":memory:")
class 'PanauDrivers' function PanauDrivers:__init() self.markers = true self.flooder = true self.locationsVisible = true self.locationsAutoHide = true self.locations = {} self.availableJob = nil self.availableJobKey = 0 self.taskscomplatedcount = 0 self.job = nil self.jobUpdateTimer = Timer() s...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) TriggerEvent('es:addGroupCommand', 'menu', 'admin', function(source) TriggerClientEvent('bm_spectate:openMenu', source) end) TriggerEvent('es:addGroupCommand', 'ping', 'user', function(source) TriggerClientEvent('chatMessage', source, ...
--[[ Designed and written in it's entirety by Kironte (roblox.com/users/49703460/profile). Made for the Roblox Neural Network Library. For documentation and the open source license, refer to: github.com/Kironte/Roblox-Neural-Network-Library Last updated 10/13/2020 ]] local Package = script:FindFirstAncestorOfClass("F...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by shuieryin. --- DateTime: 12/01/2018 10:17 PM --- function kMeansInitCentroids(X, K) --KMEANSINITCENTROIDS This function initializes K centroids that are to be --used in K-Means on the dataset X -- centroids = KMEANSINITCENTROIDS(X, K...
-- init local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/GreenDeno/Venyx-UI-Library/main/source.lua"))() local venyx = library.new("SS", 5013109572) -- themes local themes = { Background = Color3.fromRGB(24, 24, 24), Glow = Color3.fromRGB(0, 0, 0), Accent = Color3.fromRGB(10, 10, 1...
local skynet = require "skynet" skynet.start(function() print("Log server start") local service = skynet.newservice("service_mgr") skynet.monitor "simplemonitor" local log = skynet.newservice("globallog") skynet.exit() end)
return function() local onNextEvent = require(script.Parent.onNextEvent) it("should stop listening after the event fires", function() local bindable = Instance.new("BindableEvent") local callCount = 0 onNextEvent(bindable.Event, function() callCount = callCount + 1 end) bindable:Fire() bindable:Fire...
local SLAXML = require "slaxml" local xml_parser = {} local root = {} local ele_list = {} local function start_element(name, nsURI, nsPrefix) local ele = {} table.insert(ele_list, ele) end local function attribute(name, value, nsURI, nsPrefix) local ele = ele_list[#ele_list] local prop = ele["prop"] ...
-- Nmobs cow.lua -- Copyright Duane Robertson (duane@duanerobertson.com), 2017 -- Distributed under the LGPLv2.1 (https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html) -- The nodebox and textures are copied from Cute Cubic Mobs -- https://github.com/Napiophelios/ccmobs -- and are distributed as Public Domain (WT...
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local mod = E:GetModule('NamePlates') local LSM = E.Libs.LSM local ipairs, next, pairs, rawget, rawset, select = ipairs, next, pairs, rawget, rawset, select local setmetatable, tostring, tonumber, type, unpack = set...
---@class ScriptedAnimations C_ScriptedAnimations = {} ---@return ScriptedAnimationEffect scriptedAnimationEffects function C_ScriptedAnimations.GetAllScriptedAnimationEffects() end ---@class ScriptedAnimationBehavior local ScriptedAnimationBehavior = {} ScriptedAnimationBehavior.None = 0 ScriptedAnimationBehavior.Ta...
--- Turbo.lua Linux Epoll module -- -- Copyright John Abrahamsen 2011, 2012, 2013 < JhnAbrhmsn@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, includin...
local config = {} function config.vim_vista() vim.g['vista#renderer#enable_icon'] = 1 vim.g.vista_disable_statusline = 1 vim.g.vista_default_executive = 'ctags' vim.g.vista_echo_cursor_strategy = 'floating_win' vim.g.vista_vimwiki_executive = 'markdown' vim.g.vista_executive_for = { vimwiki = 'markdow...
-- ERMAGHERD PLS DONT STEEL M8 office1 = nil office2 = nil function hookItUpM8() bildcol = engineLoadCOL("office.col") -- This is the object of the floors that had no collision what so ever, now dey solid as funk, enjoy k engineReplaceCOL(bildcol, 3781) bildcol = engineLoadCOL("office2.col") -- This is the str...
return {'hebreeuws','hebreeen','hebreeer','heb','hebbeding','hebbedingetje','hebbelijk','hebbelijkheid','hebben','hebber','hebberig','hebberigheid','hebbes','hebe','hebraica','hebraisme','hebraist','hebzucht','hebzuchtig','hebi','hebriden','hebridenzee','hebridiaan','hebridiaans','hebron','hebe','hebben','hebing','hebr...
return { no_consumer = true, fields = { url = {required = true, type = "string"}, username = {required = true, type = "string"}, password = {required = true, type = "string"}, userid = {required = true, type = "string"}, clientid = {required = true, type = "string"} } }
-- Runtime texture atlas generation with cached element canvases? No problem! -- Huge thanks to Cruor and Vexatos for providing a baseline packing algo! -- https://github.com/CelestialCartographers/Loenn/blob/e97de93321df9259c6ecc13d2660a6ea0b0d57a9/src/runtime_atlas.lua local megacanvas = { debug = { rec...
return function (Data) Data = MultiFilter(Data) local TableString, ErrMsg = Split(tostring(Data), ";") if not TableString then return nil, ErrMsg end return TableString end
local DebugOutput = require"Toolbox.Debug.Registry".GetDefaultPipe() local Import = require"Toolbox.Import" local Tools = require"Toolbox.Tools" local type = Tools.Type.GetType local Object = Import.Module.Relative"Object" local CanonicalName = Import.Module.Relative"CanonicalName" local Flat = Import.Module.Relativ...
-- 数值for循环 -- for var=exp1,exp2,exp3 do -- <执行体> -- end -- var 从 exp1 变化到 exp2,每次变化以 exp3 为步长递增 var,并执行一次 "执行体"。exp3 是可选的,如果不指定,默认为1。 for i = 10, 1, -1 do print(i) end -- 泛型for循环 -- 泛型 for 循环通过一个迭代器函数来遍历所有值,类似 java 中的 foreach 语句。 -- 打印数组a的所有值 -- i是数组索引值,v是对应索引的数组元素值。ipairs是Lua提供的一个迭代器函数,用来迭代数组。 ...
project "GLFW" location "%{wks.location}" kind "StaticLib" language "C" staticruntime "on" targetdir ("%{PremakeDir.target}") objdir ("%{PremakeDir.object}") files { "%{PremakeDir.vendor}/include/GLFW/glfw3.h", "%{PremakeDir.vendor}/include/GLFW/glfw3native.h", "%{PremakeDir.vendor}/src/glfw_co...
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0105-remote-control-seat.md -- User story: -- Use case: -- Item: -- -- Description: -- In case: -- 1) SDL does not get RC capabilities f...
function onCreate() for i = 0, getProperty('unspawnNotes.length')-1 do if getPropertyFromGroup('unspawnNotes', i, 'noteType') == 'Static Note' then setPropertyFromGroup('unspawnNotes', i, 'texture', 'staticNotes'); setPropertyFromGroup('unspawnNotes', i, 'hitHealth', '0.023'); setPropertyFromGroup('uns...
local utils = require('Set.utils') -- Set lets you store unique values of any type -- @param list {table} -- @returns {table} function Set(list) local self = {} -- Items presented in Set -- @type {table} self.items = {} -- Current Set length -- @type {number} self.size = 0 if type(list) == 'table' t...
-- id int 评价id -- name string 评价名称 -- award tableString[k:#seq|v:#table(id=#1(int),count=#2(int))] 额外奖励 return { [1] = { id = 1, name = "B", award = { [1] = { id =...
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild -- -- This file is compatible with Lua 5.3 local class = require("class") require("kaitaistruct") local str_decode = require("string_decode") ParamsCallShort = class.class(KaitaiStruct) function ParamsCallShort:_init(...
-- By xaneh#6591 ESX = nil local charPed = nil Citizen.CreateThread(function() while true do Citizen.Wait(10) if ESX == nil then TriggerEvent("esx:getSharedObject", function(obj) ESX = obj end) Citizen.Wait(200) end end end) Citizen.Create...
--[[ Title: SocketService Author(s): big Date: 2019.10.30 Desc: use the lib: ------------------------------------------------------------ NPL.load("(gl)Mod/WorldShare/service/SocketService.lua") local SocketService = commonlib.gettable("Mod.WorldShare.service.SocketService") -----------------------------------------...
object_mobile_coa_aclo_soldier_hum_m_01 = object_mobile_shared_coa_aclo_soldier_hum_m_01:new { } ObjectTemplates:addTemplate(object_mobile_coa_aclo_soldier_hum_m_01, "object/mobile/coa_aclo_soldier_hum_m_01.iff")
---@class TradeSkillUI C_TradeSkillUI = {} ---@param recipeSpellID number ---@param numCasts number ---@param optionalReagents OptionalReagentInfo @ [OPTIONAL] ---@param recipeLevel number @ [OPTIONAL] ---@overload fun(recipeSpellID:number, numCasts:number, recipeLevel:number) ---@overload fun(recipeSpellID:number, ...
local Command = require('code_action_menu.lsp_objects.actions.command') local CodeAction = require('code_action_menu.lsp_objects.actions.code_action') local function get_buffer_width(buffer_number) local buffer_lines = vim.api.nvim_buf_get_lines(buffer_number, 0, -1, false) local longest_line = '' for _, line i...
return function (hue, sat, val) hue = hue % 6 sat = sat < 0 and 0 or sat > 1 and 1 or sat val = val < 0 and 0 or val > 1 and 1 or val local intensity = sat * val local amount = (1-math.abs((hue%2)-1))*intensity local r, g, b if hue < 1 then r,g,b = intensity, amount, 0 elseif hue < 2 then r,g...
--[[ Credit for these translations goes to: Mordroba Djidiouf Fenrirpims Ikshaar Avold Viny contrebasse --]] local L = LibStub("AceLocale-3.0"):NewLocale("TellMeWhen", "frFR", false) if not L then return end L["ALPHA"] = "Alpha" L["ANIM_ACTVTNGLOW"] = "Icône: Activation des bordures" L["ANIM_CO...
--魔導騎士ギルティア-ソウル・スピア --Script by XyLeN function c100279003.initial_effect(c) --summon with no tribute local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(100279003,0)) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SUMMON_PROC) e1:SetC...
function RectSpark(_x, _y, _initradius, _lifetime_max, _color) add(world,{ id = { class = "particle", subclass = "explosion" }, pos = { x=_x, y=_y }, particle = { lifetime = 0, lifetime_max = _lifetime_max, }, spark = { radius = _initradius, color =...
--[[ /**************************************************************** * Copyright (c) Neptunium Pvt Ltd., 2014. * Author: Neptunium Pvt Ltd.. * * This unpublished material is proprietary to Neptunium Pvt Ltd.. * All rights reserved. The methods and techniques described herein * are considered trade secrets and/...
-- A map of numeric status codes to string representations return { -- 1xx - https://httpwg.org/specs/rfc7231.html#status.1xx [100] = "100 Continue", [101] = "101 Switching Protocols", -- 2xx - https://httpwg.org/specs/rfc7231.html#status.2xx [200] = "200 OK", [201] = "201 Created", [202] = "202 Accepted"...
local ShakeAction = {} function ShakeAction.create(node,call,is) local ts = 1.05 if is then ts = is end local os = node:getScale() local s0 = cc.ScaleTo:create(0.05,os * ts) local s1 = cc.ScaleTo:create(0.1,os) local action if call then action = cc.Sequence:create(s0,s1,cc.CallFunc:create(ca...
-- default script; used if [DefaultPage] source=*.lua in dicom.ini HTML('Content-type: text/html\n\n'); HTML('Default script: reached because <i>[DefaultPage] source=*.lua</i> is set in <b>dicom.ini</b>'); HTML('<br>') HTML('<br>') HTML('<br>') HTML('<A href=dgate.exe?mode=top>Enter dicom server<BR></A>') HTML('<br>...
module 'mock' --------------------------------------------------------------------- local drawAnimCurve = MOAIDraw.drawAnimCurve -- local drawAxisGrid = MOAIDraw.drawAxisGrid local drawBezierCurve = MOAIDraw.drawBezierCurve local drawBoxOutline = MOAIDraw.drawBoxOutline local drawCircle = MOAIDraw.drawCircl...
local http = require 'coro-http' local split = require 'coro-split' local json = require 'json' local timer = require 'timer' local weblit = require('weblit') local body = '' local urls = { 'http://www.foaas.com/this/Everyone', 'http://www.foaas.com/that/Everyone', 'http://www.foaas.com/everything/Everyone', ...
CreateConVar( "AM_Config_HealthEnabled", 1, { FCVAR_REPLICATED, FCVAR_ARCHIVE }, "Enable or disable vehicles taking damage." ) CreateConVar( "AM_Config_BulletDamageEnabled", 1, { FCVAR_REPLICATED, FCVAR_ARCHIVE }, "Enable or disable allowing vehicles to take damage from bullets." ) CreateConVar( "AM_Config_DamageExplos...
local invariant = require "invariant" local NO_CONTEXT = {} local function ReactFiberHostContext(config, stack) local getChildHostContext = child.getChildHostContext local getRootHostContext = config.getRootHostContext local createCursor = stack.createCursor local push = stack.push local pop = sta...
-- https://github.com/ImagicTheCat/vRP -- MIT license (see LICENSE or vrp/vRPShared.lua) if not vRP.modules.warp then return end local Warp = class("Warp", vRP.Extension) -- SUBCLASS local PosEntity = vRP.EXT.Map.PosEntity Warp.MapEntity = class("Warp", PosEntity) function Warp.MapEntity:load() PosEntity.load(...
local debug = {} local function get_visual_selection() vim.cmd('normal! gv"ay') return vim.fn.getreg('a') end -- Execute current line function debug.execute_line() local line = vim.api.nvim_get_current_line() local ft = vim.bo.filetype if ft == 'lua' then loadstring(line) elseif ft == 'vim' then v...
----------------------------------- -- Area: Grand Palace of Hu'Xzoi -- NPC: cermet portal -- !pos 420 0 401 34 ----------------------------------- local ID = require("scripts/zones/Grand_Palace_of_HuXzoi/IDs"); require("scripts/globals/missions"); ----------------------------------- function onTrade(player,npc,trade...
return { id = 11, furnitures_1 = { { id = 11001, parent = 0, y = 0, dir = 1, x = 0, child = {} }, { id = 11102, parent = 0, y = 13, dir = 1, x = 20, child = {} }, { id = 11303, parent = 0, y = 24, dir = 1, x = 18, child = {} }, { id = 11112, pa...
--Minetest --Copyright (C) 2013 sapier -- --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 3.0 of the License, or --(at your option) any later version. -- --This program is ...
-- OzzyTMBM (Ozzy's Triple Monitor Brightness Manager) local OzzyTMBM={} OzzyTMBM.__index = OzzyTMBM -- Metadata OzzyTMBM.name = "OzzyTMBM" OzzyTMBM.version = "1.0" OzzyTMBM.author = "Özgün Çağrı AYDIN" OzzyTMBM.homepage = "https://ozguncagri.com" OzzyTMBM.license = "MIT - https://opensource.org/licenses/MIT" -- 3 mo...
-- Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and -- other Shroud Project Developers. -- See the top-level COPYRIGHT file for details. -- -- SPDX-License-Identifier: (BSD-3-Clause) -- -- ####################################################################### -- test tutorial module local tutori...
-- coding: utf-8 -- started: 2022-01-20 local ini = require "inifile" local mdialog = require "scripts.macrodialog" local mfile = os.getenv("HOME") .. "/.config/far2l/settings/key_macros.ini" local cfg = ini.New(mfile, "nocomment") local items = {} for sec in cfg:sections() do local name, area, key = sec.name:match...
include( path.join( FOREIGN_SRC_DIR, "build/FreeImage" ) ) include( path.join( FOREIGN_SRC_DIR, "build/squish-1.10" ) ) ProjectName = "TextureConverter" project( ProjectName ) kind( "ConsoleApp" ) files( { "*.cpp", "*.h" } ) defines( { "FREEIMAGE_LIB" } ) includedirs( { "../..", "../TextureLib", FOREIGN_SRC_...
local SingleCollection = {} SingleCollection.__index = SingleCollection function SingleCollection.new(pool) return setmetatable({ onAdded = pool.onAdded, onRemoved = pool.onRemoved, _pool = pool, }, SingleCollection) end function SingleCollection:each(callback) local dense = self._pool.dense local objects...
object_tangible_loot_creature_loot_collections_broken_lightsaber_hilt_015 = object_tangible_loot_creature_loot_collections_shared_broken_lightsaber_hilt_015:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_broken_lightsaber_hilt_015, "object/tangible/loot/creature/loot/collections/br...
local buffer = {} function buffer.trim() local view = vim.fn.winsaveview() vim.cmd [[ keeppatterns %s/\_s*\%$//e keeppatterns %s/\s\+$//e ]] vim.fn.winrestview(view) end function buffer.writeskeleton() local configdir = vim.fn.stdpath('config') local extension = vim.fn.expand('%:e') local skeletonfile = vi...
--- Wrapper for the ROS logging system -- @module console local ffi = require 'ffi' local torch = require 'torch' local ros = require 'ros.env' local utils = require 'ros.utils' local std = ros.std local console = {} ros.console = console console.trace_once_stack = {} console.trace_throttle_stack = {} function init()...
require("luci.sys") require("uci") local conf = require "luci.config" local ntm = require "luci.model.network".init() local x, m, s, pass, ifname x = uci.cursor() m = Map("netkeeper", translate("NetKeeper"), translate("Here you can configurate the pppoe client for NetKeeper Tool, before using the tool, you should ch...
function GM:TargetFinderThink() if not GetConVar( "gw_target_finder_enabled" ):GetBool() then return end for _, ply in pairs(player.GetAll()) do if ply:GWIsSeeking() then local minDist = -1 for _, target in pairs( team.GetPlayers(GW_TEAM_HIDING) ) do i...
local bin = vim.fn.stdpath("data") .. "/lspinstall/vue/node_modules/.bin/vls" local lsp_config = require("lsp") if vim.fn.filereadable(bin) == 0 then require("lspinstall").install_server("vue") end require"lspconfig".vuels.setup { cmd = { bin }, on_attach = lsp_config.common_on_attach, vetur = { completion = { ...
DeriveGamemode("nutscript")
local fn = require('distant.fn') local Driver = require('spec.e2e.driver') describe('fn', function() local driver, root before_each(function() driver = Driver:setup() root = driver:new_dir_fixture() end) after_each(function() driver:teardown() end) describe('create_di...
local validItems = {} -- Empty table to fill with full list of valid airdrop items Mutation.tier1 = {} -- 1000 to 2000 gold cost up to 5 minutes Mutation.tier2 = {} -- 2000 to 3500 gold cost up to 10 minutes Mutation.tier3 = {} -- 3500 to 5000 gold cost up to 15 minutes Mutation.tier4 = {} -- 5000 to 99998 gold cost be...
-- Copyright Tomáš Nguyen 2015. -- Distributed under the Boost Software License, Version 1.0. -- (See accompanying file LICENSE_1_0.txt or copy at -- http://www.boost.org/LICENSE_1_0.txt) require "game" require "enemy" boss = nil spawnPoints = {} spawnIndex = 0 endTimer = nil --start level by cr...
object_tangible_component_weapon_new_weapon_enhancement_melee_slot_one_s03 = object_tangible_component_weapon_new_weapon_shared_enhancement_melee_slot_one_s03:new { } ObjectTemplates:addTemplate(object_tangible_component_weapon_new_weapon_enhancement_melee_slot_one_s03, "object/tangible/component/weapon/new_weapon/en...
local present, alpha = pcall(require, "alpha") if not present then return end -- Get ascii generator: -- https://lachlanarthur.github.io/Braille-ASCII-Art/ local one_punch_man = { [[]], [[ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⡤⠤⠤⠤⣄⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠖⠈⠉⠉⠁⠒⠤⡀⠀⠀ ]], [[ ⠀⠀⠀⠀⠀⠀⠀⠀⢀⡤⠾⠿⠶⠀⠀⠀⠀⠀⠈⠑⢦⡀⠀⠀⠀...
padawan_spice_mom_02_convo_template = ConvoTemplate:new { initialScreen = "", templateType = "Lua", luaClassHandler = "padawan_spice_mom_02_conv_handler", screens = {} } intro = ConvoScreen:new { id = "intro", leftDialog = "@conversation/padawan_spice_mom_02:s_168212d8", -- What are you lookin' for? Somethin' to...
---Register an event handler. ---@param receiverName string # Receiver name. Must be globally unique for each registration. ---@param event Event # One of the values from Event class. ---@param eventHandler fun(eventCode:number, ...) # Event handler that will be called whenever the event triggers. function EsoAddonFram...
-- this is a file for test lua 504 require("LuaPanda").start() local a <const> = 4 local b = a + 7 print(b)
local addonName, Roth_UI = ... local LSM = LibStub("LibSharedMedia-3.0") local mediaCallbacks = {} local loadedCallbacks = {} local configLoaded = false local LoadedHandler = CreateFrame("Frame") LoadedHandler:RegisterEvent("ADDON_LOADED") LoadedHandler:SetScript("OnEvent", function(self, event, name) if name == "R...
-- Copyright 2015 Alex Browne. All rights reserved. -- Use of this source code is governed by the MIT -- license, which can be found in the LICENSE file. -- retry_or_fail_job represents a lua script that takes the following arguments: -- 1) The id of the job to either retry or fail -- It first checks if the job has ...