content stringlengths 5 1.05M |
|---|
project ("Test_enet_client")
language "C++"
kind "ConsoleApp"
targetdir "../../../bin"
includedirs {"../../../examples/ThirdPartyLibs/enet/include"}
if os.is("Windows") then
defines { "WIN32" }
links {"Ws2_32","Winmm"}
end
if os.is("Linux") then
end
if os.is("MacOSX") then
end
links {"enet... |
setenv("TACC_MKL_DIR", "/unknown/apps/mkl/10.3")
add_property("arch","offload")
add_property("arch","mic")
add_property("arch","gpu")
|
GuildGearRulesUserInterface = GuildGearRules:NewModule("GuildGearRulesUserInterface", "AceHook-3.0");
local L = LibStub("AceLocale-3.0"):GetLocale("GuildGearRules");
local _cstr = string.format;
local DEBUG_MSG_TYPE = {
ERROR = 1,
WARNING = 2,
INFO = 3,
};
local TOOLTIP_TYPE = {
BANNED = 1,
BANNED... |
--[=[
MIT License
Copyright (c) 2016 Johannes Westhuis, Alexander Schulz
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... |
return {'requiem','requiemmis','requisitoir','requiemmissen','requiems','requisitoiren','requisitoirs'} |
--[[
Copyright (C) 2013 simplex
This program 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 2
of the License, or (at your option) any later version.
This program is distributed in the hope that ... |
--------------------------------
-- @module Scale9Sprite
-- @extend Node
--------------------------------
-- @function [parent=#Scale9Sprite] resizableSpriteWithCapInsets
-- @param self
-- @param #rect_table rect
-- @return Scale9Sprite#Scale9Sprite ret (return value: cc.Scale9Sprite)
----------------------... |
local PANEL = {}
surface.CreateFont("PVB.WeaponDisplay1", {
font = "Trebuchet MS",
size = 30,
weight = 700
})
function PANEL:Paint()
end
vgui.Register("PVBWeapons", PANEL, "DPanel") |
--TODO:adjust in context
--sprite flag to toggle blocks
flag_block=0
--TODO:adjust in context
--mechanics
--{{sp,x,y,collide?},..}
mcns={}
--TODO:adjust in context
--table of sprite to hitboxes
--{sp={{x,y,w,h},..},..}
custom_hitboxes={}
function sp_hitboxes(sp,x,y)
local hbs=custom_hitboxes[sp]
if not hbs then
... |
-- This example is for an Application launching menu Most of the necessary
-- settings for this menu are already the defaults, but it serves as a simple
-- example none-the-less.
local FLM = require("hs._asm.filelistmenu")
-- create the application menu and give it a default label
local appMenu = FLM.new("Apps") ;
... |
local function Values1D(Structure)
local Result = {}
local Index = 1
for _, Value in pairs(Structure) do
Result[Index] = Value
Index += 1
end
return Result
end
return Values1D |
--- LuaDist Primary API functions
-- Peter Drahoš, Peter Kapec, LuaDist Project, 2010
--- This file contains the basic functions of LuaDist.
-- Feel free to use this exposed API in your projects if you need to deploy something automatically.
-- Please note that everything may change in future releases.
--- Terminology... |
--[[ ä
Name: Advanced Questbook
By: Crypton
]]
if (AQB_MAP_NAMES == nil) then
AQB_MAP_NAMES = {
[1] = TEXT("ZONE_WAILING MOUNTAINS"),
[2] = TEXT("ZONE_SILVERSPRING"),
[3] = TEXT("ZONE_RAVENFELL"),
[4] = TEXT("ZONE_ASLAN"),
[5] = TEXT("ZONE_HYBORA HIGHLANDS"),
[6] = TEXT("ZONE_DUSTBLOOM CANYON"),
[7] ... |
function WL2.init()
local frame = CreateFrame("FRAME", WL2.ADDON_NAME .. "_Frame")
for eventName in pairs(WL2.eventHandlers) do
frame:RegisterEvent(eventName)
end
frame:SetScript("OnEvent", function(self, evt, ...)
local handler = WL2.eventHandlers[evt]
if not handler then
return
end
... |
dofile("test_setup.lua")
local file1 = [=[
return {
data = false
}
]=]
local t = DoFileString(file1)
assert(t.data == false)
t.data = true
ReloadFileString(file1)
assert(t.data == true)
|
local KUI, E, L, V, P, G = unpack(select(2, ...))
local KC = KUI:GetModule("KuiChat")
local CH = E:GetModule("Chat")
local function ChatTable()
E.Options.args.KlixUI.args.modules.args.chat = {
order = 7,
type = 'group',
name = L['Chat'],
args = {
name = {
order = 1,
type = "header",
name = KUI:... |
-- Beep boop stuff.
include("cl_hud.lua")
include("arc.lua")
-- Actual code.
AzWheel.Wheel = {
Radius = 256 + 32,
Thickness = 128,
TumblerSize = 32,
BorderSize = 8,
ReactionTreshold = 0.675,
DrawingArcSteps = 16,
SegmentThickness = 64,
Segments = {}
}
local function d... |
/*==============================================================================================
Expression Advanced: Component -> Holograms.
Creditors: Rusketh, Oskar94
==============================================================================================*/
local LEMON, API = LEMON, LEMON.API
local Componen... |
-----------------------------------
-- Area: Northern San d'Oria
-- NPC: Heruze-Moruze
-- Involved in Mission: 2-3 Windurst
-- !pos -56 -3 36 231
-----------------------------------
local ID = require("scripts/zones/Northern_San_dOria/IDs");
require("scripts/globals/keyitems");
require("scripts/globals/missions");
---... |
EditorDebug = EditorDebug or class(MissionScriptEditor)
EditorDebug.SAVE_UNIT_POSITION = false
EditorDebug.SAVE_UNIT_ROTATION = false
function EditorDebug:create_element(...)
EditorDebug.super.create_element(self, ...)
self._element.class = "ElementDebug"
self._element.values.debug_string = "none"
self._element.val... |
ALCHEMY_LOCATION_MAPPING = nil
ALCHEMY_IDS = {
[0x00] = "acid_rain",
[0x01] = "atlas",
[0x02] = "barrier",
[0x03] = "call_up",
[0x04] = "corrosion",
[0x05] = "crush",
[0x06] = "cure",
[0x07] = "defend",
[0x08] = "double_drain",
[0x09] =... |
s = Procedural.BezierCurve2():addPoint(Procedural.Vector2(0,0))
:addPoint(Procedural.Vector2(1,0))
:addPoint(Procedural.Vector2(1,1))
:addPoint(Procedural.Vector2(2,1))
:addPoint(Procedural.Vector2(2,0))
:addPoint(Procedural.Vector2(3,0))
:addPo... |
TestContains = {
setUp = function (self)
self.a = array("a", "b", "c")
end;
["test: Should return false when the array is empty"] = function ()
luaunit.assertFalse(array():contains("a"))
end;
["test: Should return true when the array contains element"] = function (self)
luaunit.assertTrue(self.a:contains(... |
-- Namespace Variables
local addon, addonTbl = ...;
-- Module-Local Variables
local L = addonTbl.L;
addonTbl.Remove = function(arg)
if tonumber(arg) then -- The passed argument is a number or item ID.
arg = tonumber(arg);
if LastSeenClassicItemsDB[arg] then
if LastSeenClassicItemsDB[arg].itemLink ~= nil then
... |
register_outcome{
text = "Random Spell",
subtext = "A small favour",
good = true,
comment = "todo",
rarity = 15,
cooldown = seconds(30),
apply = function()
local x, y = get_player_pos()
SetRandomSeed( GameGetFrameNum(), x + y )
local chosen_action = GetRandomAction( x, y, Rando... |
function copy(obj)
if type(obj) ~= 'table' then return obj end
local res = {}
for k, v in pairs(obj) do res[copy(k)] = copy(v) end
return res
end
function multiplex_disk_stats(tag, timestamp, record)
new_record = {}
for k, v in pairs(record["disk"]) do
new_record[k] = copy(record)
new_record[k... |
package.cpath = "bin/?.dll"
local iup = require "iuplua"
local bgfx = require "bgfx"
local util = require "util"
local math3d = require "math3d"
local kDimWidth = 11
local kDimHeight = 11
local s_cubeVertices = {
-1.0, 1.0, 1.0, 0xff000000 ,
1.0, 1.0, 1.0, 0xff0000ff ,
-1.0, -1.0, 1.0, 0xff00ff00 ,
1.0, ... |
-- Dynamis procs mixin
require("scripts/globals/mixins")
require("scripts/globals/dynamis")
require("scripts/globals/status")
g_mixins = g_mixins or {}
g_mixins.dynamis_beastmen = function(mob)
local procjobs = {
[tpz.job.WAR] = "ws",
[tpz.job.MNK] = "ja",
[tpz.job.WHM] = "ma",
[t... |
local test = require 'regress'
local Reader = require 'dataset.Reader'
local function testBatch(batchSize)
local urls = { '4', '1', '2', '9', '5', '7', '6' }
local i = 0
local function next()
i = i + 1
return urls[i]
end
local function get(url)
local t1 = os.clock() + (tonumber(url) / ... |
return {
map = 2,
Hacked_cannon = {mapX = 6, mapY = 4},
ammo = { 'balls', 'bomb', 'bomb', 'normal', 'normal'},
bugs = {
{x = 1596, y = 230},
{x = math.random(1596), y = 230},
{x = 2302, y = 166},
{x = math.random(2302), y = 166},
{x = 639, y = 358},
{x = math.random(639), y = 358},
{x = 486, y = 294}... |
local networkVars =
{
numOwned = "private integer"
}
Shared.LinkClassToMap("LayMines", LayMines.kMapName, networkVars)
local oldOnUpdateRender = LayMines.OnUpdateRender
function LayMines:OnUpdateRender()
oldOnUpdateRender(self)
local parent = self:GetParent()
local settings = self:GetUIDisplaySettings()
... |
cameraPresets = {}
cameraPresets.vehicleTuning = {
targetPosition = Vector3(0, 0, 0.3),
rotationHorizontal = 30,
rotationVertical = 0,
distance = 7,
FOV = 50,
roll = 0
}
cameraPresets.startingCamera = {
targetPosition = Vector3(1.4, 1, 0),
rotationHorizontal = 30,
rotationVertical = 5,
distance = 7,
FOV = ... |
--[[
The MIT License (MIT)
Copyright (c) 2014 Marcus Ihde, Tim Anema
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, mod... |
object_static_item_item_hoth_cable_floor_04 = object_static_item_shared_item_hoth_cable_floor_04:new {
}
ObjectTemplates:addTemplate(object_static_item_item_hoth_cable_floor_04, "object/static/item/item_hoth_cable_floor_04.iff")
|
--[[
--=====================================================================================================--
Script Name: Damage Multiplier (changer), for SAPP (PC & CE)
Copyright (c) 2019, Jericho Crosby <jericho.crosby227@gmail.com>
* Notice: You can use this document subject to the following conditions:
https://g... |
-- vim:foldmethod=marker:
-- Use sh.
-- It is faster
vim.o.shell = 'sh'
-- コマンドラインの履歴を10000件保存する
vim.o.history = 10000
-- マウスを有効化
vim.o.mouse = 'a'
-- Clipboard
vim.o.clipboard = 'unnamedplus'
-- Open Vim internal help by K command
vim.o.keywordprg = ':help'
-- 行頭行末の左右移動で行をまたぐ
vim.o.whichwrap = 'b,s,h,l,<,>,[,]'
... |
object_draft_schematic_weapon_lightsaber_polearm_gen1 = object_draft_schematic_weapon_shared_lightsaber_polearm_gen1:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_weapon_lightsaber_polearm_gen1, "object/draft_schematic/weapon/lightsaber_polearm_gen1.iff")
|
--[[
Name: "cl_door.lua".
Product: "kuroScript".
--]]
local PANEL = {};
-- Called when the panel is initialized.
function PANEL:Init()
self:SetTitle( kuroScript.door.GetName() );
self:SetBackgroundBlur(true);
self:SetDeleteOnClose(false);
-- Called when the button is clicked.
function self.btnClose.DoClick(but... |
object_draft_schematic_weapon_rifle_disrupter = object_draft_schematic_weapon_shared_rifle_disrupter:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_weapon_rifle_disrupter, "object/draft_schematic/weapon/rifle_disrupter.iff")
|
-- Tile map example.
-- This sample demonstrates:
-- - Creating an isometric 2D scene with tile map
-- - Displaying the scene using the Renderer subsystem
-- - Handling keyboard to move a character and zoom 2D camera
-- - Generating physics shapes from the tmx file's objects
-- - Displaying debug geometr... |
return { sharp = { 18, 15, 9, 25 }, sharpp = { 18, 15, 9, 32, 4 } } |
local vim_config = require('github-theme.config.vim_config')
local default_config = require('github-theme.config.default')
---@class gt.Config
---@field schema gt.ConfigSchema
local config = {}
---Accessing global config using vim.g.github_* will help in autocompletion.
config.schema = {
colors = vim_config.get(vi... |
help(
[[
This module loads wget 1.15 into the environment. wget provides
a command line http client.
]])
whatis("Loads the wget command line http client")
local version = "1.15"
local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/wget/"..version
prepend_path("PATH", pathJoin(base, "bin"))
family('wget')
|
-----------------------------------
-- Area: Lower Jeuno
-- NPC: Sniggnix
-- Type: Standard NPC
-- !pos -45.832 4.498 -135.029 245
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
local ID = require("scripts/zones/Lower_Jeuno/IDs")
require("scripts/globals/keyitems")
-... |
local ngx_upstream = require "ngx.upstream"
local Upstream = require "durpina.upstream"
Upstream.init("upstream", {resolver="8.8.8.8"})
local up = assert(Upstream.get("weighted_roundrobin"))
|
if not LibStub then
error(MAJOR .. " requires LibStub.")
end
local MAJOR, MINOR = "LibTranslit-1.0", 3
local lib = LibStub:NewLibrary(MAJOR, MINOR)
if not lib then return end
local strlen = strlen or string.len
local strbyte = strbyte or string.byte
local strchar = strchar or string.char
local CyrToLat = {
["А"] =... |
local API_SE = require(script:GetCustomProperty("APIStatusEffects"))
local API_D = require(script:GetCustomProperty("APIDamage"))
local SHIELD_BASE = 50.0
local SHIELD_MULTIPLIER = 1.0
local currentShields = {} -- player -> table (index -> amount)
function OnPlayerJoined(player)
currentShields[player] = {}... |
local Animal = require("classes.animal")
local Cat = Animal:derive("Cat")
function Cat:new(name, weight, type, favFood)
self.name = name
self.weight = weight
self.type = type
self.favFood = favFood
end
function Cat:soundOff()
return "Meow"
end
return Cat |
ESX = nil
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
end)
local gasMaskOn = false
local damageTime = 0
RegisterNetEvent("esx_gasmask:useItem")
AddEventHandler("esx_gasmask:useItem", function()
local animdict ... |
ENT.Type = "anim"
ENT.PrintName = "Flare"
ENT.Author = "Black Tea"
ENT.Spawnable = true
ENT.AdminOnly = true
ENT.Category = "NutScript Throwable"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.configLifetime = 150
ENT.configColor = Color( 255, 50, 50 )
if (SERVER) then
function ENT:SpawnFunction(client, trace, className)
... |
--- A task that deletes all specified files
-- @module howl.modules.tasks.clean
local mixin = require "howl.class.mixin"
local fs = require "howl.platform".fs
local Task = require "howl.tasks.Task"
local Runner = require "howl.tasks.Runner"
local Source = require "howl.files.Source"
local CleanTask = Task:subclass("... |
-- DebugMode makes recipes simpler and is just for debugging purposes, default is false
debugMode = false
-- Due to golden Inserters beeing quite a resource hog you can disable em here if you dont need them
enableGoldenInserter = true |
local shortCutRecharge_pin_map = require("qnFiles/qnPlist/hall/shortCutRecharge_pin");
local chooseGoodsItem=
{
name="chooseGoodsItem",type=0,typeName="View",time=0,report=0,x=0,y=0,width=226,height=267,visible=1,fillParentWidth=0,fillParentHeight=0,nodeAlign=kAlignCenter,
{
name="itemBg",type=2,typeName="Button",t... |
--***********************************************************
--** ROBERT JOHNSON **
--***********************************************************
require "TimedActions/ISBaseTimedAction"
ISBarricadeAction = ISBaseTimedAction:derive("ISBarricadeAction");
function ISBarricadeAct... |
---------------------------------------------------------------------------------------------------
---tuning_manager.lua
---author: Karl
---date: 2021.8.29
---reference: src/imgui/ui/Console.lua
---desc: Defines a ui that manages the matrices and the lua code context of the matrices
-----------------------------------... |
module("dataSaver", package.seeall)
if not json then
require "json"
end
function saveValue(key, value)
--temp variable
local app
--default data storage
local path = "|D|app.txt"
--open file
local file = io.open(path, "r")
if file then
-- read all contents of file into a string
local contents = file:read( ... |
object_tangible_wearables_necklace_necklace_ace_pilot_empire_f = object_tangible_wearables_necklace_shared_necklace_ace_pilot_empire_f:new {
}
ObjectTemplates:addTemplate(object_tangible_wearables_necklace_necklace_ace_pilot_empire_f, "object/tangible/wearables/necklace/necklace_ace_pilot_empire_f.iff")
|
--[=[
Utility functions to provide/configure a permission. See [BasePermissionProvider] and [PermissionService].
@server
@class PermissionProviderUtils
]=]
local require = require(script.Parent.loader).load(script)
local PermissionProviderConstants = require("PermissionProviderConstants")
local PermissionProvide... |
function mono.menu:init()
--if self.menuSearch or self.timer then return end
self.timer = createTimer()
self.timer.Interval = 1000
self.timer.OnTimer = function(timer)
-- wait for normal mono script to create mono menu, check every 5 seconds
if not miMonoTopMenuItem then return end
self.timer.d... |
SILE = require("core/sile")
SILE.documentState = { documentClass = { state = { } } }
SILE.typesetter:init(SILE.newFrame({id="foo"}))
local hlist = require("tests/testdata")
print(SILE.linebreak:doBreak(hlist, 30.0))
|
local table, string = table, string
local cubictest, reporter, events = cubictest, cubictest.reporter, cubictest.events
local Start, End, Step, Error, Run = events.Start, events.End, events.Step, events.Error, events.Run
local specifications = {}
cubictest.specifications = specifications
local testrunner = {}
cubictes... |
include("memorytable.lua");
include("guildbankitem.lua");
CGuildbank = class(
function (self)
self.PageListAddress = memoryReadRepeat("uintptr", getProc(), getBaseAddress(addresses.bank.guild.base),0xC4);
self.PageAddresses = {};
self.BagSlot = {};
local timeStart = getTime();
if( settings.pr... |
local present, _ = pcall(require, "packerInit")
local packer
if present then
packer = require("packer")
else
return false
end
local use = packer.use
return packer.startup(function()
use({
"wbthomason/packer.nvim",
})
use({
"lewis6991/impatient.nvim",
})
use({
"nathom/filetype.nvim",
})
use({
"lam... |
local class = require('middleclass')
local Controller = require('mvc.Controller')
local HasSignals = require('HasSignals')
local ShopController = class("ShopController", Controller):include(HasSignals)
function ShopController:initialize()
Controller.initialize(self)
HasSignals.initialize(self)
end
function ShopCo... |
local Players = game:GetService("Players")
local MarketplaceService = game:GetService("MarketplaceService")
local Roact = require(script.Parent.Roact)
local RoactMaterial = require(script.Parent.RoactMaterial)
local MarketPromise = require(script.Parent.MarketPromise)
local UI_CORNER_ENABLED = true
local ShopEntry = ... |
local plugin_dir = vim.fn.expand('<sfile>:p:h:h') .."/data/" -- TODO: better way to resolve plugin path?
vim.g.extmark_toy_plugin_dir = plugin_dir
|
return function ()
local cmp = require'cmp'
local luasnip = require("luasnip")
local main_sources = {
{ name = 'nvim_lsp' },
{ name = 'luasnip' },
{ name = 'buffer' },
{ name = 'path' },
{ name = 'emoji' },
{ name = 'npm', keyword_length = 4 }
}
local gitcommit_sources = {
{ name... |
yojimbo_version = "1.0"
libs = { "sodium", "mbedtls", "mbedx509", "mbedcrypto" }
solution "Yojimbo"
kind "ConsoleApp"
language "C++"
platforms { "x64" }
configurations { "Debug", "Release" }
if os.istarget "windows" then
includedirs { ".", "./windows", "netcode.io", "reliable.io" }
... |
--[[--------------------------------------------------------------------------
-- Dragoon Framework - A Framework for Lua/LOVE --
-- Copyright (c) 2014-2015 TsT worldmaster.fr <tst2005@gmail.com> --
--]]--------------------------------------------------------------------------
local module_with_integrity_check = fa... |
local ffi = require 'ffi'
local torch = require 'torch'
local ros = require 'ros.env'
local utils = require 'ros.utils'
local pcl = require 'pcl'
local std = ros.std
local PointCloud2SerializationHandler = torch.class('ros.PointCloud2SerializationHandler', ros)
function init()
local names = {
'readPointCloud2',... |
AddCSLuaFile()
SWEP.PrintName = "Нильфгаардский лук"
SWEP.Slot = 0
SWEP.SlotPos = 1
SWEP.DrawAmmo = true
SWEP.DrawCrosshair = false
SWEP.Category = "WitcherRP"
SWEP.Author = ""
SWEP.Base = "nut_bow_base"
SWEP.Instructions = ""
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.ViewModelFOV = 72
SWEP.ViewModelFlip = fal... |
local Log = llbc.newclass('llbc.Log')
local type = type
local getinfo = debug.getinfo
local traceback = debug.traceback
local LogMsg = _llbc.LogMsg
-- Log levels enumeration.
Log.DEBUG = 0
Log.INFO = 1
Log.WARN = 2
Log.ERROR = 3
Log.FATAL = 4
-- logFileInfo: to control output message included file&line... |
-- enlarges and enhances the recipe book so you can see what you do
local addonName, addon, _ = ...
local recipebook = addon:NewModule('RecipeBook', 'AceEvent-3.0')
-- GLOBALS: _G, LibStub, TRADE_SKILLS_DISPLAYED
-- GLOBALS: CreateFrame, PlaySound, TradeSkillOnlyShowMakeable, TradeSkillOnlyShowSkillUps, TradeSkillUpda... |
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
require("lualib_bundle");
local ____exports = {}
____exports.ContentManager = __TS__Class()
local ContentManager = ____exports.ContentManager
ContentManager.name = "ContentManager"
function ContentManager.prototype.____constructor(self, base_url)... |
--!A cross-platform build utility based on Lua
--
-- 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... |
require "scripts.core.ability"
require "scripts.core.projectile"
--require "gamemode.Spark.modifiers.modifier_runic_burst";
local DebugRenderer = Require("debugRenderer")
Legendarium = class(Ability)
function Legendarium:OnCreated ()
self:RegisterVariable("max_range", self:GetSpecialValue("range"))
self:RegisterVa... |
--
-- Please see the license file included with this distribution for
-- attribution and copyright information.
--
local bShowWounds = true;
local bUpdating = false;
local sTotal;
local sWounds;
local sLink = nil;
-- For reasons known only to the Old Gods, and perhaps the Lunar Arcanum,
-- the OptionsManager is som... |
-- This script allows to register multiple functions as Solarus events.
--
-- Usage:
--
-- Just require() this script and then all Solarus types
-- will have a register_event() method that adds an event callback.
--
-- Example:
--
-- local multi_events = require("scripts/multi_events")
--
-- -- Register two callbacks f... |
local energy_source = require("prototypes.parts.energy_source")
function oreCleaner(args)
local name = args.name
local speed = args.speed
local energy = args.energy
local modSlots = args.modSlots
local ingredients = args.ingredients
local iconTint = args.iconTint
local entityTint = args.entityTint
loca... |
-- SPDX-License-Identifier: BSD-3-Clause
--
-- Copyright 2016 Raritan Inc. All rights reserved.
-- Uploads a script to switch off outlets after delay. You specify the outlet
-- and delay time at the script arguments.
require "LuaService"
require "Pdu"
-- the name of the Lua script to upload
local newScriptFileName =... |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( 'shared.lua' )
ENT.Damage = 80
ENT.Blast = Sound( "physics/nearmiss/whoosh_huge2.wav" )
ENT.Blast2 = Sound( "ambient/levels/citadel/portal_beam_shoot5.wav" )
local anomalyID = tostring(math.Rand(1,2))
--Wake variables
ENT.WakeRange = 600
ENT.SleepTim... |
local M = {}
function M.configure_packer(use)
use {"mfussenegger/nvim-dap", config = function() vim.fn.sign_define("DapBreakpoint", {text = '🛑', texthl = '', linehl = '', numhl = ''}) end}
use {"mfussenegger/nvim-dap-python", requires = "mfussenegger/nvim-dap"}
use {"rcarriga/nvim-dap-ui", requires = "mfusseneg... |
local awful = require('awful')
local wibox = require('wibox')
local gears = require('gears')
local titlebar_buttons = require("widgets/damn/titlebar/buttons")
local my_table = awful.util.table or gears.table
local margin = wibox.container.margin
local function titlebar(c)
local titlebar_widget =
awful.titlebar(... |
--[[
初始化变量
]]
local THIS_MODULE = ...
-- 名字
local function var_name(type,...)
if type == "MAJOR" then
local index,alive = ...
index = tonumber(index)
if alive == "ALIVE" then
return majorTeam:getAlive(index):getName()
else
return majorTeam:getRole(index):getName()
end
end
end
return {
name = var_n... |
SWEP.Base = "arccw_base"
SWEP.Spawnable = true -- this obviously has to be set to true
SWEP.Category = "ArcCW - Firearms: Source 2" -- edit this if you like
SWEP.AdminOnly = false
SWEP.Slot = 4
SWEP.PrintName = "RPG-26"
SWEP.Trivia_Class = "Disposable Anti-Tank Rocket Launcher"
SWEP.Trivia_Desc = ""
SWEP.Trivia_Manufa... |
if settings.startup["enable-power-armor-mk6"].value == true then
if mods["bobwarfare"] then
data:extend({
{
type = "recipe",
name = "bob-power-armor-mk6",
enabled = false,
energy_required = 30,
ingredients =
... |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
RegisterNetEvent('ps:canHackResult')
RegisterNetEvent("ps:heistsAll")
RegisterNetEvent("ps:startTimer")
RegisterNetEvent("ps:cleanupVault")
local heistTerminals = Config.Terminals
local heistPlayers = {}
RegisterS... |
local Alecs = require '../Alecs'
describe('Testing ALECS', function()
local alecs
local s1_called, s2_called, s3_called
local s1_added
it('returns a new Alecs instance', function()
alecs = Alecs()
assert.is_table(alecs.getSystems())
end)
it('can add systems', function()
local s1 = { filter = ... |
---
--- ColaFramework
--- Copyright © 2018-2049 ColaFramework 马三小伙儿
--- XXXXX模块
---
---牌类
---@class Card
local Card = Class("Card")
---构造器
---@param name string
---@param weight LandlordEnum.Weight
---@param suits LandlordEnum.Suits
---@param belongTo LandlordEnum.CharacterType
functio... |
local function create(self, props)
local instance = props or {}
setmetatable(instance, self)
self.__index = self
return instance
end
return create
|
-- // rMinimap
-- // zork - 2012
-----------------------------
-- INIT
-----------------------------
--get the addon namespace
local addon, ns = ...
local cfg = CreateFrame("Frame")
ns.cfg = cfg
-----------------------------
-- CONFIG
-----------------------------
cfg.map... |
object_mobile_dressed_myyydril_froera = object_mobile_shared_dressed_myyydril_froera:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_myyydril_froera, "object/mobile/dressed_myyydril_froera.iff")
|
-- license:BSD-3-Clause
-- copyright-holders:Carl
-- This includes a library of functions to be used at the Lua console as cf.getspaces() etc...
local exports = {}
exports.name = "cheatfind"
exports.version = "0.0.1"
exports.description = "Cheat finder helper library"
exports.license = "BSD-3-Clause"
exports.author = {... |
--[[
Copyright 2019 Manticore Games, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distri... |
-----------------------------------
-- Area: Cloister of Tides
-- BCNM: Trial-size Trial by Water
-----------------------------------
local ID = require("scripts/zones/Cloister_of_Tides/IDs")
require("scripts/globals/battlefield")
require("scripts/globals/quests")
-----------------------------------
function onBattlef... |
local _, nMinimap = ...
local cfg = nMinimap.Config
local select = select
local ceil = math.ceil
local modf = math.modf
local format = string.format
local sort = table.sort
local tinsert = tinsert
local playerName, _ = UnitName("player")
local playerRealm = GetRealmName()
local NUM_ADDONS_TO_DISPLAY = cfg.tab.numbe... |
local L = LibStub("AceLocale-3.0"):NewLocale("PowerRaid", "enUS", true, true);
L = L or {}
L["Power Raid"] = true
L["PowerRaid"] = true
L["optionsDesc"] = "You can type /%s %s to open main Power Raid window."
L["Open Power Raid"] = true
L["Open the main Power Raid window."] = true
L["Left Click"] = true
L["Show GUI"] =... |
return require('apiversionheader')
|
-- Natural Selection 2 Competitive Mod
-- Source located at - https://github.com/xToken/CompMod
-- lua\CompMod\Structures\Alien\Shell\server.lua
-- - Dragon
local originalShellOnUpdate
originalShellOnUpdate = Class_ReplaceMethod("Shell", "OnUpdate",
function(self, deltaTime)
originalShellOnUpdate(self, deltaTime)
... |
-----------------------------------------------------------------------------------------------
local title = "Ban Hammer"
local version = "0.2.1"
local mname = "ban_hammer"
-----------------------------------------------------------------------------------------------
dofile(minetest.get_modpath("ban_hammer").."/setti... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.