content stringlengths 5 1.05M |
|---|
local AddonName, AddonTable = ...
-- Shadowlands Toys
AddonTable.toys = {
}
|
pfUI:RegisterModule("pet", function ()
-- do not go further on disabled UFs
if pfUI_config.unitframes.disable == "1" then return end
local default_border = pfUI_config.appearance.border.default
if pfUI_config.appearance.border.unitframes ~= "-1" then
default_border = pfUI_config.appearance.border.unitframe... |
--[[ THIS FILE AND PHOTON ELS ON THIS ITEM WAS MADE BY PRINGLE PLEASE USE THE INCUDED FILE TO MAKE YOUR OWN BUT LEAVE CREDITS TO ME ]]
AddCSLuaFile()
local A = "AMBER"
local R = "RED"
local DR = "D_RED"
local B = "BLUE"
local W = "WHITE"
local CW = "C_WHITE"
local SW = "S_WHITE"
local G = "GREEN"
local RB = "BLUE/RED... |
--- A module for graph theory.
--
-- @module aoc.graph
-- @alias M
local M = {}
local min = math.min
--- `bfs` performs a breadth-first search on the underlying graph.
--
-- @param self an instance of graph
-- @int s source node
-- @int t target node
-- @tab parent a table which stores the path from s to t
-- @r... |
-- For Questionable Content Wiki
-- https://questionablecontent.fandom.com/wiki/Module:QC
--
-- Lua links:
-- https://en.wikipedia.org/wiki/Wikipedia:Lua
-- https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual
local p = {}
local rootUrl = "https://www.questionablecontent.net"
local titles = mw.load... |
Talk(16, "多谢少侠救了内人,胡某不知该如何报答.", "talkname16", 0);
Talk(0, "没什么,帮助别人本就是件快乐的事,胡先生就别客气了.只是,我看金花婆婆也不像坏人.", "talkname0", 1);
Talk(16, "其实,都怪我夫妇年轻时的比试,误了不少上门求医的人.", "talkname16", 0);
Talk(0, "比试?", "talkname0", 1);
Talk(16, "我夫妇原本是同门师兄妹,所学各有不同.我是学医,这你知道的.拙荆则是学毒的,使毒能力之高,江湖上人还封她一个外号,叫做”毒仙”.那时我因为年轻冲动,救了一些被拙荆下过毒的人,使得江湖上传言我这个医仙比毒... |
local desc = fs.read(path.expand("$sd/../dump.desc.json"))
-- As property
local pp = PhysicalProperties.new(1,2,3,4,5)
local part = Instance.new("Part")
T.Pass(function() part.CustomPhysicalProperties = pp end, "set value")
T.Pass(function() part.CustomPhysicalProperties = nil end, "set to nil")
local part = Instanc... |
----------------------------------------
--- Discord Whitelist, Made by FAXES ---
----------------------------------------
--- Config ---
roleNeeded = "Member" -- The role nickname needed to pass the whitelist
notWhitelisted = "You are not whitelisted for this server." -- Message displayed when they are not whit... |
-- angrybino
-- Maid
-- September 26, 2021
--[[
-- Static methods:
Maid.new() --> Maid []
Maid.IsMaid(self : any) --> boolean [IsMaid]
-- Instance methods:
Maid:AddTask(task : table | function | RBXScriptConnection | Instance) --> task []
Maid:Cleanup() --> void []
Maid:RemoveTask(task : table | function | ... |
--[[Roblox Script Builder Administration Diamond Pal PRI v1.0, Beta ]]
me = game.Players.rigletto
game:GetService("ContentProvider"):Preload("http://www... |
function onCreate()
makeLuaSprite('stage1', 'stages/mfm-stage-gospel', -1500, -1500);
addLuaSprite('stage1', false);
scaleObject('stage1', 2, 2);
makeLuaSprite('stage2', 'stages/mfm-stage-crescendo', -1500, -1500);
addLuaSprite('stage2', false);
scaleObject('stage2', 2, 2);
setProperty('stage1.visible', true);... |
-- language specific higlights
local lush = require("lush")
local base = require("lush_jsx.base")
local M = {}
-- xml
M = lush(function()
return {
xmlTag {base.LushJSXAquaBold},
xmlEndTag {base.LushJSXAquaBold},
xmlTagName {base.LushJSXBlue},
xmlEqual {base.LushJSXBlue},
docbkKeyword {base.LushJ... |
local Prop = {}
Prop.Name = "Beach Apartments Building 1"
Prop.Government = true
Prop.Doors = {
{ Pos = Vector( 6484, 2409, 334 ) },
}
GM.Property:Register( Prop )
local Prop = {}
Prop.Name = "Beach Apartments 1a"
Prop.Cat = "Apartments"
Prop.Price = 850
Prop.Doors = {
Vector( 6851, 2364, 334 ),
Vector( 6612, 2141... |
local commandHandler = require("commandHandler")
local discordia = require("discordia")
local utils = require("miscUtils")
local options = discordia.storage.options
return {
name = "contact",
description = "Sends a message to the bot's developer. Use this command to submit feedback, give suggestions, report b... |
local class = require('middleclass')
local DKGameplay = class("DKGameplay")
function DKGameplay:initialize(pack)
self:initWithPack(pack)
end
function DKGameplay:initWithPack(pack)
self.played = pack.played
self.isPlaying = pack.isPlaying
self.state = pack.state
self.tick = pack.tick
self.... |
--[[ This
is
a
multi-line
comment,
not
code. ]]
-- build table
statetab = {}
local w1, w2 = NOWORD, NOWORD
for w in allwords() do
insert(prefix(w1, w2), w)
w1 = w2; w2 = w;
end
insert(prefix(w1, w2), NOWORD)
|
--[[
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... |
object_tangible_loot_misc_clone_armor_crate = object_tangible_loot_misc_shared_clone_armor_crate:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_misc_clone_armor_crate, "object/tangible/loot/misc/clone_armor_crate.iff")
|
local typedefs = require "kong.db.schema.typedefs"
local plugin_name = ({...})[1]:match("^kong%.plugins%.([^%.]+)")
return {
name = plugin_name,
fields = {
{ consumer = typedefs.no_consumer },
{ config = {
type = "record",
fields = {
{ cookie_name = { type = "string", required = true }... |
slot2 = "BasePukeCcsPane"
BasePukeCcsPane = class(slot1)
BasePukeCcsPane.onCreationComplete = function (slot0)
slot4 = BaseCcsBtn
ClassUtil.extends(slot2, slot0)
slot13 = slot0.onBackTypeChanged
createSetterGetter(slot2, slot0, "backType", 2, nil, nil, nil, handler(slot11, slot0))
slot13 = slot0.onDataIntChan... |
local conversion = {}
local dot = {
pcre = ".",
magic = ".",
nomagic = "\\.",
}
local star = {
pcre = "*",
magic = "*",
nomagic = "\\*",
}
local plus = {
pcre = "+",
magic = "\\+",
nomagic = "\\+",
}
local character_map = {
["."] = dot,
["*"] = star,
["+"] = plus
}
f... |
local workforceUI = workforceUI or {} -- bringing 1.1.2 stuff to earlier versions
local Azimuth -- server includes
local CrewboardTweaksConfig -- client/server
local crewboardTweaks_freeCrewSpaceLabel, crewboardTweaks_hireReqCrewBtn, crewboardTweaks_transportLabel -- UI
local crewboardTweaks_initialize -- client/serve... |
local api = require "luci.model.cbi.passwall2.api.api"
local appname = api.appname
local uci = api.uci
local datatypes = api.datatypes
local has_v2ray = api.is_finded("v2ray")
local has_xray = api.is_finded("xray")
m = Map(appname)
local nodes_table = {}
for k, e in ipairs(api.get_valid_nodes()) do
nodes_table[#n... |
object_tangible_food_generic_dessert_deneelian_fizz_pudding = object_tangible_food_generic_shared_dessert_deneelian_fizz_pudding:new {
}
ObjectTemplates:addTemplate(object_tangible_food_generic_dessert_deneelian_fizz_pudding, "object/tangible/food/generic/dessert_deneelian_fizz_pudding.iff")
|
local theme={colors={normal={blue={0.68235294117647,0.5843137254902,0.78039215686275,1},green={0.5843137254902,0.78039215686275,0.68235294117647,1},cyan={0.5843137254902,0.68235294117647,0.78039215686275,1},white={0.78039215686275,0.8,0.81960784313725,1},red={0.78039215686275,0.68235294117647,0.5843137254902,1},magenta... |
local yapre = yapre
local test_world = {}
local core = require("core")
local yecs = core.yecs
yecs.Behavior:Register("increase_progress_behavior", {
OnInit = function(self)
self:AddComponent("tick")
local progress_delta = 1
self.tick:AddTick("increase_progress", function()
loca... |
--PPU.lua
--function newPPU()
local ppu = {}
ppu.myCart = nil
ppu.tblName = {}
ppu.tblPalette = {}
ppu.n = 0
ppu.colors = {} --????
ppu.colors[0x00] = {84/255, 84/255, 84/255}
ppu.colors[0x01] = {0/255, 30/255, 116/255}
ppu.colors[0x02] = {8/255, 16/255, 144/255}
ppu.colors[0x03] = {4... |
-- print('f')
if not WS.Bus.UserController then
WS.Bus.UserController = WS:subscribe('users')
end
local Player = FindMetaTable('Player')
function Player:RefreshTTSBalance()
WS.Bus.UserController:emit('ttsBalance', {
steamid = self:SteamID64()
})
end
function Player:SetTTSBalance(balance)
self.T... |
actions = {}
actions["terminate"] = {["disabled"] = (obj.spec.terminate or
obj.status.phase == "Successful" or
obj.status.phase == "Failed" or
obj.status.phase == "Error" or
obj.status.phase == "Inconclusive"
)}
return actions
|
object_tangible_loot_creature_loot_collections_aurebesh_tile_usk = object_tangible_loot_creature_loot_collections_shared_aurebesh_tile_usk:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_aurebesh_tile_usk, "object/tangible/loot/creature/loot/collections/aurebesh_tile_usk.iff")
|
Sound.init()
function love.audio.newSource(source,sourcetype)
local table = {
loadsound = Sound.open(lv1lua.dataloc.."game/"..source);
type = sourcetype;
play = function(self)
if self.loadsound then love.audio.play(self) end;
end;
stop = function(self)
if self.loadsound then love.audio.stop(self) end;... |
local ModSelection = Game:addState("ModSelection")
local g = love.graphics
function ModSelection:load()
self.mods = {}
self.selection = 1
local filesTable = love.filesystem.getDirectoryItems("mods")
for i, v in ipairs(filesTable) do
if love.filesystem.isDirectory("mods/"..v) then
table.insert(self.mods, "mo... |
function Inventory:Initialize()
while not self.initialized do
self:RequestItems()
Citizen.Wait(500)
end
self:InvokeHook("init")
TriggerServerEvent(EventPrefix.."init")
end
function Inventory:UpdateInput()
-- Disable weapon wheel.
DisableControlAction(0, 37)
-- Focus disables.
if Menu.hasFocus then
--... |
tableCmdOptions =
{
["add"] = function(strParam)
print("add : ", strParam)
end,
["delete"] = function(strParam)
print("delete : ", strParam)
end
}
function Option(strCmd, strParam)
--print("test")
print("cmd : ", strCmd, ", param : ", strParam)
if tableCmdOptions[strCmd] == nil then
print(debug.traceback... |
resource_manifest_version '05cfa83c-a124-4cfa-a768-c24a5811d8f9'
description 'Model Menu v3 by Frazzle :D'
client_scripts {
'gui.lua',
'client.lua',
'config.lua',
}
server_script 'server.lua' |
local eventName = "DamageEvents"
AddEventHandler(
eventName .. ":VehicleDestroyed",
function(vehicle, attacker, weaponhash, wasmeleedamage, vehicledmgflag)
end
)
AddEventHandler(
eventName .. ":PedKilledByVehicle",
function(victim, vehicle)
end
)
AddEventHandler(
eventName .. ":PedKilledB... |
return _csharp_getType("reflection.LuaManifestResourceInfo"); |
require 'modshogun'
require 'load'
traindat = load_dna('../data/fm_train_dna.dat')
testdat = load_dna('../data/fm_test_dna.dat')
parameter_list = {{traindat,testdat,4,0,false, false},{traindat,testdat,4,0,False,False}}
function kernel_comm_word_string_modular (fm_train_dna,fm_test_dna, order, gap, reverse, use_sign)
... |
-- Copyright 2018 Yahoo Inc.
-- Licensed under the terms of the Apache license. Please see LICENSE.md file distributed with this work for terms.
--[[
This module serves as the entry point for configuration generation. It pulls in
the dimensions, metrics and tables configuration defined in the dimensions.lua,
metrics.l... |
----------------------------------------------------------------------------------
--- Total RP 3
--- Directory : Ignore API
--- ---------------------------------------------------------------------------
--- Copyright 2014 Sylvain Cossement (telkostrasz@telkostrasz.be)
--- Copyright 2014-2019 Renaud "Ellypse" Parize <... |
local u = require("nvim-lsp-ts-utils.utils")
local o = require("nvim-lsp-ts-utils.options")
local loop = require("nvim-lsp-ts-utils.loop")
local api = vim.api
local lsp = vim.lsp
local json_decode = vim.fn.json_decode
local eslint_bin, formatter_bin
local M = {}
local create_edit_action = function(title, new_text, ... |
--------------------------------------------------------------------------------------------------------------------------------------------------------
-- Global shortcuts/helper
--------------------------------------------------------------------------------------------------------------------------------------------... |
local json = require("json")
local http = require("socket.http")
local url = require("socket.url")
local function make_url(input)
local sl = "en"
local tl = "zh_TW"
return 'http://translate.googleapis.com/translate_a/single?client=gtx&sl='.. sl ..'&tl='.. tl ..'&dt=t&q='.. url.escape(input)
end
local functio... |
workspace "OpenGLHabr"
architecture "x64"
configurations
{
"Debug",
"Release"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
IncludeDir = {}
IncludeDir["GLFW"] = "OpenGLHabr/vendor/GLFW/include"
IncludeDir["Glad"] = "OpenGLHabr/vendor/Glad/include"
include "OpenGLHabr/vendor/GLFW"
include... |
---------------------------------------------------
-- Nether Blast
---------------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/monstertpmoves")
require("scripts/globals/magic")
---------------------------------------------------
f... |
local eR = elRaidoAddon
local note = eR.note
local th = note.toolHandlers
local bps = note.elementBlueprints
th.Selection = {
name = 'Selection',
}
local tool = th.Selection
function tool.onEquip(note)
print('tool equip')
end
function tool.onClick(note)
local index, el = note:findMouseoverElement()
if (not ind... |
-- Path of Building
--
-- Module: Config Options
-- List of options for the Configuration tab.
--
local m_min = math.min
local m_max = math.max
return {
-- Section: General options
{ section = "常规", col = 1 },
{ var = "resistancePenalty", type = "list", label = "抗性 惩罚:", list = {{val=0,label="无"},{val=-30,label="第... |
names = {"Peter", "Thomas", "Ben", "Oliver", "Charlie", "Darragh", "Oren", "Leo",
"Anna", "Clara", "Hannah", "Arabella", "Lois", "Abigale", "Phoebe"}
musko_ime_nom = {"Peter", "Thomas", "Ben", "Oliver", "Charlie", "Darragh", "Oren", "Leo", "Luke", "Aran", "Felix"};
musko_ime_gen = musko_ime_nom;
musko_ime_da... |
--
-- Copyright (c) 2014, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
-- Internal mod... |
local utils = {}
-- creates a number range
function utils.range(from, to)
local result = {}
local counter = from
while (counter <= to) do
table.insert(result, counter)
counter = counter+1
end
return result
end
-- checks if selection contains fold
function utils.contains_fold(startnum, endnum)
loca... |
local Dyn = require 'ta.dynamo'
local E = {}
E.Random = Dyn.Random
E.Chance = Dyn.Chance
E.loot = {}
function E.Generate(resref, count)
if type(count) == 'number' then
count = Dyn.range_t(count, count)
end
return { resref = resref,
count = count }
end
return E |
MapData = class("MapData")
function MapData:ctor()
-- body
self.m_pixel_with = 0
self.m_pixel_height = 0
self.m_cell_width = 0
self.m_cell_height = 0
self.m_map_name = ""
end |
--D3
function c911000308.initial_effect(c)
--atk/lv up
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(911000308,0))
e1:SetProperty(EFFECT_FLAG_NO_TURN_RESET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCost(c911000308.cost)
e1:SetOperation(c9... |
ITEM.name = "Overwatch Standard Issue\n(Pulse-Rifle)"
ITEM.description = "ar2Desc"
ITEM.model = "models/weapons/w_irifle.mdl"
ITEM.class = "weapon_ar2"
ITEM.weaponCategory = "primary"
ITEM.classes = {CLASS_EOW, CLASS_OWS, CLASS_EMP}
ITEM.width = 4
ITEM.price = 1450
ITEM.height = 2
ITEM.iconCam = {
ang = Angle(-0.70499... |
return {
id = "tallcowboy",
price = 25000,
onSale = true,
} |
HedgewarsScriptLoad("/Scripts/Locale.lua")
local player = nil
local enemy = nil
local firedShell = false
local turnNumber = 0
local hhs = {}
local numhhs = 0
function onGameInit()
Seed = 0
TurnTime = 20000
CaseFreq = 0
MinesNum = 0
Explosives = 0
Map = "Bamboo"
Theme = "Bamboo"
SuddenDeathTurns = 99... |
local bodyOptions = {
[1] = "/Game/CharacterModels/SkeletalMesh/BodyMerged/HZN_CH3D_Business_LPR",
[2] = "/Game/CharacterModels/SkeletalMesh/BodyMerged/HZN_CH3D_Normal01_LPR",
[3] = "/Game/CharacterModels/SkeletalMesh/BodyMerged/HZN_CH3D_Normal02_LPR",
[4] = "/Game/CharacterModels/SkeletalMesh/BodyMe... |
util.AddNetworkString('DynamicBullets.Fired')
function DynamicBullets:FireBullet(owner, SWEP, pos, vel, cb)
local bul = self:DynamicBullet(owner, SWEP, pos, vel)
local entries = self.BulletEntries
local override
if cb then
override = cb(bul)
end
if hook.Run('DynamicBullets.Fired', bul) and not override th... |
local t = require( "taptest" )
local same = require( "same" )
local splitpath = require( "splitpath" )
t( same( splitpath( "a/b/c" ), { "a", "b", "c" } ), true )
t( same( splitpath( "a/b/c/" ), { "a", "b", "c" } ), true )
t( same( splitpath( "/a/b/c" ), { "a", "b", "c" } ), true )
t( same( splitpath( "c:/a/b/c" ), { "... |
--[[CONSTANTS]]--
return
{
COMMAND_PREFIX = "!"
} |
local L = LibStub("AceLocale-3.0"):NewLocale("ArcaniteCoordinator", "enUS", true, true)
L = L or {}
L["Arcanite Coordinator"] = true
L["ArcaniteCoordinator"] = true
L["optionsDesc"] = "Arcanite Coordinator Config (You can type /%s %s to open this)."
L["Minimap Button"] = true
L["minimapDesc"] = "Enable minimap button. ... |
Shifter = Mode:extend()
function Shifter:new(...)
Shifter.super.new(self, ...)
self.cursor = Cursor(1, 1, self.width, 1, self)
self.cursor2 = Cursor(1, 1, 1, self.height, self)
self.cursors:add(self.cursor, self.cursor2)
end
function Shifter:moveLeft()
local t = {}
for i=0,self.width-1 do
local j = i == self... |
--------------------------------------------------------------------------------
--- ANDROID BACK BUTTON
--------------------------------------------------------------------------------
local function onKeyEvent(event)
local phase = event.phase
local keyName = event.keyName
if ('back' == keyName and phase == 'u... |
Display = {}
function Display:new (o)
o = o or {}
setmetatable(o, self)
self.__index = self
return o
end
function Display:insert(before, after, other)
self.before = before
self.after = after
self.other = other
end
function Display:step_next()
self:exit()
current = self.after
self.after:start()
en... |
Plug 'tpope/vim-fugitive'
|
---@diagnostic disable: duplicate-set-field
function TalentStatChange( )
ModifyHeroStat(udg_Talent__Choice.StatType, udg_Talent__Unit, bj_MODIFYMETHOD_ADD, udg_Talent__Choice.StatPower )
end
function TalentStatChangeReset( )
ModifyHeroStat(udg_Talent__Choice.StatType, udg_Talent__Unit, bj_MODIFYMETHOD_SUB, udg_Talent... |
ITEM.name = "Crude Sniper Ammunition"
ITEM.model = "models/Items/BoxSRounds.mdl"
ITEM.ammo = "tfa_ammo_sniper_rounds"-- type of the ammo
ITEM.ammoAmount = 5 -- amount of the ammo
ITEM.description = "A Box that contains %s of Crude Sniper Ammo" |
--[[ Digger ]]
ROT=require 'src.rot'
local update=false
function love.load()
f =ROT.Display(80, 24)
dgr=ROT.Map.Digger(f:getWidth(), f:getHeight())
update=true
end
function love.draw() f:draw() end
function calbak(x, y, val) f:write(val==1 and '#' or '.', x, y) end
function love.update()
if update the... |
--[[ Resize Module ]]--
local _, BCM = ...
BCM.modules[#BCM.modules+1] = function()
if bcmDB.BCM_Resize then return end
BCM.chatFuncsPerFrame[#BCM.chatFuncsPerFrame+1] = function(n)
local cF = _G[n]
--Allow resizing chatframes to whatever size you wish!
cF:SetMinResize(100,10)
cF:SetMaxR... |
return {'aseksueel','aselect','asem','asemen','asemmer','asepsis','aseptisch','asen','aseksuele','aselecte','asemmers','aseptische','asemde'} |
local list = cat.require("base/list/list")
local depth_list = cat.class("depth_list"){
__root_node = {___is_root___ = true},
__tail_node = nil,
__all_node = {},
__node_number = 0,
}
depth_list.node_class = cat.class("depth_list_node"){
__up_node__ = nil,
__next_node__ = nil,
__up_depth__... |
local chad_theme = require("utils").load_config().ui.theme
vim.g.nvchad_theme = chad_theme
local present, base16 = pcall(require, "base16")
if present then
base16(base16.themes(chad_theme), true)
require "highlights"
return true
else
return false
end
|
local Tunnel = module("vrp", "lib/Tunnel")
local Proxy = module("vrp", "lib/Proxy")
vRP = Proxy.getInterface("vRP")
vRPclient = Tunnel.getInterface("vRP","vrp_farms")
local cfg = module("vrp", "cfg/item_transformers")
Citizen.CreateThread(function()
for k,v in pairs(cfg.hidden_transformers) do
if v.def.em... |
AddCSLuaFile()
DEFINE_BASECLASS( "base_gmodentity" )
ENT.Spawnable = false
ENT.RenderGroup = RENDERGROUP_BOTH
local matLight = Material( "sprites/light_ignorez" )
local matBeam = Material( "effects/lamp_beam" )
AccessorFunc( ENT, "Texture", "FlashlightTexture" )
--
-- Set up our data table
--
function ENT:SetupDat... |
require("lsp").setup "cmake"
|
-- ----------------------------------------------------------------
-- This file (SL-ChartParserHelpers.lua) is used to populate auxilliary
-- data which is oftem based off the data parsed form ChartParseInfo.
-- The main use case is when this auxilliary information might depend on
-- extra information that isn't ava... |
local RichTextEx = require "framework.extends.richtextex"
function setup(data)
-- initialize layers
local backlayer = cc.Node:create():addTo(-1)
local actorlayer = cc.Node:create():addTo(0)
local uilayer = cc.Node:create():addTo(2)
local background = cc.Sprite:create():position(video.center):addTo(b... |
object_tangible_furniture_all_frn_all_lamp_candlestick_tbl_s01 = object_tangible_furniture_all_shared_frn_all_lamp_candlestick_tbl_s01:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_lamp_candlestick_tbl_s01, "object/tangible/furniture/all/frn_all_lamp_candlestick_tbl_s01.iff")
|
JOB_TYPE = exports.mtatr_main:getTeamsType ();
JOBS = {};
function getJobColors ()
return exports.mtatr_deathmatches:getDeathmatchColors();
end
addEventHandler ("onResourceStart", resourceRoot,
function ()
if next (JOB_LIST) then
for i, v in ipairs (JOB_LIST) do
local job = createElement ("job", v.name);
... |
--Rabin-Karp-Matcher
-- based on number-theoretic principles
function Rabin_Karp_Matcher(Target,Pattern,prime)
local Tlen=#Target
local Plen=#Pattern
local highbitpos=10^(Plen-1)%prime
local Pmod=0
local Tmod=0
for i=1,Plen do
Pmod = (10*Pmod+Pattern:sub(i,i))%prime
Tmod =(10*Tmod +Target:sub(i,i)... |
-- Display all input devices as floating text
-- Sample contributed by andi mcc
local function appendMovement(s, device)
a,b,c = lovr.headset.getVelocity(device) a = a or -999 b = b or -999 c = c or -9999
s = string.format("%s vel %1.1f,%1.1f,%1.1f", s,a,b,c)
a,b,c = lovr.headset.getAngularVelocity(device) a = a... |
C_TaskQuest = {}
---[Documentation](https://wowpedia.fandom.com/wiki/API_C_TaskQuest.DoesMapShowTaskQuestObjectives)
---@param uiMapID number
---@return boolean showsTaskQuestObjectives
function C_TaskQuest.DoesMapShowTaskQuestObjectives(uiMapID) end
---[Documentation](https://wowpedia.fandom.com/wiki/API_C_TaskQuest... |
test = require 'u-test'
common = require 'common'
function SocialServiceGetSocialRelationships_Handler()
print("SocialServiceGetSocialRelationships_Handler")
SocialServiceGetSocialRelationships()
--OnSocialServiceGetSocialRelationships()
end
function OnSocialServiceGetSocialRelationships()
hr, hasNext = ... |
#!/usr/bin/env lua
local ui = require "tek.ui"
local Button = ui.Button
local Group = ui.Group
local Text = ui.Text
local L = ui.getLocale("tekui-demo", "schulze-mueller.de")
-------------------------------------------------------------------------------
-- Create demo window:
---------------------------------------... |
VUHDO_MENU_RETURN_TARGET = nil;
VUHDO_MENU_RETURN_TARGET_MAIN = nil;
local _;
local VUHDO_B_CONFIG = nil;
local VUHDO_B_INDICATOR_CONFIG = nil;
local VUHDO_B_PANEL_SETUP = nil;
local VUHDO_B_SPELL_ASSIGNMENTS = nil;
local VUHDO_B_BUFF_SETTINGS = nil;
local VUHDO_B_SPELL_CONFIG = nil;
local VUHDO_B_SPELLS_KEYBOARD = n... |
----------------------------------------------------------------
-- Copyright (c) 2012 Klei Entertainment Inc.
-- All Rights Reserved.
-- SPY SOCIETY.
----------------------------------------------------------------
local simguard = include( "modules/simguard" )
local simengine = include( "sim/engine" )
--===========... |
---------------------------------------------
-- Luminous Lance
---------------------------------------------
local ID = require("scripts/zones/Empyreal_Paradox/IDs")
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/monstertpmoves")
----------------------------------------... |
AddCSLuaFile()
AddCSLuaFile("sh_sounds.lua")
include("sh_sounds.lua")
SWEP.magType = "pistolMag"
SWEP.PrintName = "TT-33 Tokarev"
if CLIENT then
SWEP.DrawCrosshair = false
SWEP.CSMuzzleFlashes = true
SWEP.IconLetter = "y"
killicon.Add( "khr_tokarev", "icons/killicons/khr_tokarev", Color(255, 80, 0, 150))
SWE... |
Config = {}
Config.SpeedLimits = {
["Joshua Rd"] = 50,
["East Joshua Road"] = 50,
["Marina Dr"] = 35,
["Alhambra Dr"] = 35,
["Niland Ave"] = 35,
["Zancudo Ave"] = 35,
["Armadillo Ave"] = 35,
["Algonquin Blvd"] = 35,
["Mountain View Dr"] = 35,
["Cholla Springs Ave"] = 35,
["Panorama Dr"] = 45,
["Lesbos Ln"]... |
PLUGIN.name = "Disallow item taking"
PLUGIN.author = "github.com/John1344, Frosty"
PLUGIN.description = "Adds /disallowitemtaking command"
ix.lang.AddTable("english", {
itemTakingDisallowed = "The item is now not took-able.",
itemTakingAllowed = "The item is now took-able.",
cannotTakeItem = "You cannot take this i... |
-- Most of the colors are taken from:
-- https://github.com/microsoft/vscode/tree/master/extensions/theme-defaults/themes
local style = require "core.style"
local common = require "core.common"
style.background = { common.color "#1E1E1E" }
style.background2 = { common.color "#252526" }
style.background3 = { common.co... |
SWEP.PrintName = "News Camera"
SWEP.Author = "Owain"
SWEP.Category = "XYZ Weapons"
SWEP.Slot = 0
SWEP.SlotPos = 4
SWEP.Spawnable = true
SWEP.HoldType = "pistol"
SWEP.UseHands = true
SWEP.ViewModelFOV = 85
SWEP.ViewModelFlip = false
SWEP.ViewModel = ""
SWEP.WorldModel = "models/weapons/w_camera.mdl"
SWE... |
local lpeg = require "lpeg"
local re = require "re"
local util = require "wsapi.util"
local _M = {}
local function foldr(t, f, acc)
for i = #t, 1, -1 do
acc = f(t[i], acc)
end
return acc
end
local function foldl(t, f, acc)
for i = 1, #t do
acc = f(acc, t[i])
end
return acc
end
local p... |
if ( ETaxiConfig.NPCType == "ent" ) then
ENT.Type = "anim"
ENT.Base = "base_gmodentity"
elseif( ETaxiConfig.NPCType == "npc" ) then
ENT.Type = "ai"
ENT.Base = "base_ai"
end |
---
--- stage_ui.lua
---
--- Copyright (C) 2018-2020 Xrysnow. All rights reserved.
---
function ui.DrawScore()
SetFontState('score3', '', Color(0xFFADADAD))
local diff = string.match(stage.current_stage.name, "[%w_][%w_ ]*$")
local diffimg = CheckRes('img', 'image:diff_' .. diff)
if diffimg then
... |
--[[
/////// //////////////////
/////// PROJECT: MTA iLife - German Fun Reallife Gamemode
/////// VERSION: 1.7.2
/////// DEVELOPERS: See DEVELOPERS.md in the top folder
/////// LICENSE: See LICENSE.md in the top folder
/////// /////////////////
]]
CInfoPickupManager = inherit(cSingleton)
function CInfoPickup... |
-- add Scan to Pulse grenade
local oldDetonate = PulseGrenade.Detonate
function PulseGrenade:Detonate(targetHit)
local position = self:GetOrigin()
-- testing new scan
CreateEntity(PulseGrenadeScan.kMapName, position, self:GetTeamNumber())
StartSoundEffectAtOrigin(Observatory.kCommanderScanSound, po... |
/*
* @package : rlib
* @author : Richard [http://steamcommunity.com/profiles/76561198135875727]
* @copyright : (C) 2018 - 2020
* @since : 1.0.0
* @website : https://rlib.io
* @docs : https://docs.rlib.io
*
* MIT License
*
* THE SOFTWARE IS PROVIDED "AS IS",... |
-- vim.cmd [[
-- if exists('+termguicolors')
-- let &t_8f="\<Esc>[38;2;%lu;%lu;%lum"
-- let &t_8b="\<Esc>[48;2;%lu;%lu;%lum"
-- set termguicolors
-- endif
-- set background=dark
-- colorscheme solarized
-- if has('nvim')
-- let g:terminal_color_0 = '#073642'
-- let g:terminal_color_1 = '#dc322f'
-- ... |
require "busted.runner"()
describe("#sdk SDK.Remote.Player", function()
-- setup
local match
-- before_each initialization
local SDK
local Player
setup(function()
-- match
match = require "luassert.match"
-- globals
_G.AllRecipes = {
foo = {},
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.