content stringlengths 5 1.05M |
|---|
-----------------------------------------
-- ID: 4719
-- Scroll of Regen III
-- Teaches the white magic Regen III
-----------------------------------------
function onItemCheck(target)
return target:canLearnSpell(111)
end
function onItemUse(target)
target:addSpell(111)
end
|
local AddonName, AddonTable = ...
AddonTable.motherlode = {
-- Coin-Operated Crowd Pummeler
159638, -- Electro-Arm Bludgeoner
159663, -- G0-4W4Y Crowd Repeller
158353, -- Servo-Arm Bindings
159357, -- Linked Pummeler Grips
155864, -- Power-Assisted Vicegrips
158350, -- Rowdy Reveler's Legwr... |
--
-- Created by IntelliJ IDEA.
-- User: crossoverJie
-- Date: 22/04/2018
-- Time: 15:36
-- To change this template use File | Settings | File Templates.
--
--lua 下标从 1 开始
-- 限流 key
local key = KEYS[1]
-- 限流大小
local limit = tonumber(ARGV[1])
-- 获取当前流量大小
local curentLimit = tonumber(redis.call('get', key) or "0")
if c... |
-----------------------------------
-- Area: Kazham
-- NPC: Ronta-Onta
-- Starts and Finishes Quest: Trial by Fire
-- !pos 100 -15 -97 250
-----------------------------------
require("scripts/globals/settings")
require("scripts/globals/keyitems")
require("scripts/globals/shop")
require("scripts/globals/quests")
local ... |
---------------------------------------------------------------------------------------------------
-- Common module
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local actions = require("user_modules/sequences/actions")
local runne... |
local M = {}
function M.get(cp)
return {
CmpItemAbbr = { fg = cp.catppuccin11 },
CmpItemAbbrDeprecated = { fg = cp.catppuccin11, stlye = "strikethrough" },
CmpItemAbbrMatch = { fg = cp.catppuccin10, style = "bold" },
CmpItemAbbrMatchFuzzy = { fg = cp.catppuccin10, style = "bold" },
CmpItemKind = { fg = cp.c... |
local WIDGET, VERSION = 'ClearButton', 1
local GUI = LibStub('NetEaseGUI-2.0')
local ClearButton = GUI:NewClass(WIDGET, 'Button', VERSION)
if not ClearButton then
return
end
function ClearButton:Constructor()
self:SetSize(17, 17)
self:SetNormalTexture([[Interface\FriendsFrame\ClearBroadcastIco... |
local image = require('image')
return {
name = "Tooth",
description = "It's a tooth. Maybe someone collects these?",
image = image.tooth
}
|
--------------------------------
-- @module TransitionSplitCols
-- @extend TransitionScene,TransitionEaseScene
-- @parent_module cc
--------------------------------
--
-- @function [parent=#TransitionSplitCols] action
-- @param self
-- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval)
... |
-- basics for single-inheritance classes.
local BaseClass = {}
BaseClass.__index = BaseClass
-- add a metatable with a __call method
setmetatable( BaseClass, {
__call = function ( cls, ... )
local self = setmetatable( {}, cls )
-- call the special init method
self:_init( ... )
return self... |
-- copy one file to another
-- char by char
local finp = io.open("big.txt", 'r')
local fout = io.open("out.txt", 'w+')
repeat
local char = finp:read(1)
if char then fout:write(char) end
until char == nil
finp:close()
fout:close()
|
local DeskView = require("app.demo.DowneyTang.DeskView.DeskView")
local DeskViewConfig = require("app.demo.DowneyTang.DeskView.DeskViewConfig")
local DeskViewBehavior = require("app.demo.DowneyTang.DeskView.DeskViewBehavior")
local BigChipView = require("app.demo.DowneyTang.BigChipView.BigChipView")
-- local BetVi... |
local threads = require 'threads'
threads.Threads.serialization('threads.sharedserialize')
local status, tds = pcall(require, 'tds')
tds = status and tds or nil
if not status then return end
local atomic = tds.AtomicCounter()
local numOfThreads = 10
local pool = threads.Threads(numOfThreads)
local steps = 100000
f... |
--- For working with inventories.
-- @module Inventory
-- @usage local Inventory = require('stdlib/entity/inventory')
local Inventory = {_module = 'Inventory'}
setmetatable(Inventory, require('stdlib/core'))
local Is = require('stdlib/utils/is')
--- Copies the contents of source inventory to destination inventory by... |
CachedJsExecutor = class('CachedJsExecutor')
function CachedJsExecutor:__init(funcTemplate, initialValue)
self.funcTemplate = funcTemplate
self.prev = nil
self:Update(initialValue)
end
function CachedJsExecutor:Update(value)
if self.prev == value then
return value
end
self.prev = value
WebUI:Execu... |
--[[Register]]--
RegisterNetEvent("ply_garages2:setGarages")
RegisterNetEvent("ply_garages2:setGaragesPlayer")
RegisterNetEvent("ply_garages2:setVehicles")
RegisterNetEvent("ply_garages2:sellGaragesFalse")
RegisterNetEvent("ply_garages2:sellGaragesTrue")
RegisterNetEvent("ply_garages2:buyGaragesTrue")
Regist... |
local pb = require("opentelemetry.trace.exporter.pb")
local _M = {
}
local mt = {
__index = _M
}
function _M.new(http_client)
local self = {
client = http_client,
}
return setmetatable(self, mt)
end
local function hex2bytes(str)
return (str:gsub('..', function (cc)
local n = tonu... |
Locales['tr'] = {
['properties'] = 'Mülkler',
['clients'] = 'Müşteriler',
['realtor'] = 'Emlak Bürosu',
['amount_withdraw'] = 'Çekilecek miktar',
['invalid_amount'] = 'Geçersiz miktar',
['press_to_access'] = 'Menüye erişmek için ~INPUT_CONTEXT~ tuşuna basın.',
['amount'] = 'Miktar',
['no_play_near'] = '... |
--[[
Move next job to be processed to active, lock it and fetch its data. The job
may be delayed, in that case we need to move it to the delayed set instead.
This operation guarantees that the worker owns the job during the locks
expiration time. The worker is responsible of keeping the lock fresh
so that no... |
--- Class to run and manage multiple tarantool instances.
--
-- @classmod cartridge.test-helpers.cluster
local checks = require('checks')
local fio = require('fio')
local fun = require('fun')
local log = require('log')
local uuid = require('uuid')
local luatest = require('luatest')
local utils = require('cartridge.ut... |
local RUF = LibStub('AceAddon-3.0'):GetAddon('RUF')
local L = LibStub('AceLocale-3.0'):GetLocale('RUF')
local RUF_Options = RUF:GetModule('Options')
local LSM = LibStub('LibSharedMedia-3.0')
local _,ns = ...
local oUF = ns.oUF
local _,PlayerClass = UnitClass('player')
local TestModeToggle,UnitsSpawned
local anchorSwaps... |
require("controller.FlangChip")
GlobalData = require("controller.GlobalData")
Flang.tick = 0
-- Mappings
local PLAYER_ID_TO_ENTITY_MAPPING = {}
-- Mapping from entity ID -> FlangChip
local CHIP_TABLE = {}
-- Some constants
local FLANG_CHIP_ENTITY_NAME = "flang-chip"
local INVIS_FLANG_CHIP_ENTITY_NAME = "invis-flang-c... |
local DONATE_DRAWHATS = function(ply)
if ply:GetPos():DistToSqr(LocalPlayer():GetPos()) < 2000000 then
local hat = ply:GetDonateHat()
if not hat then return end
hat = gpay.GetItem(hat)
if not hat then return end
hat = hat:GetHatData()
if hat.ang == nil or hat... |
require('sprite_sheet')
require('levels')
jam.name = "Moon Destroyer"
jam.graphics.width = 64
jam.graphics.height = 64
jam.graphics.pixelScale = 8
jam.graphics.vsync = true
tileSize = 8
tileCount = 8
playerSpeed = 32
function start()
spriteSheet = SpriteSheet:new(jam.graphics.loadTexture("data/moon_destroyer.... |
---@class CS.UnityEngine.Avatar : CS.UnityEngine.Object
---@field public isValid boolean
---@field public isHuman boolean
---@type CS.UnityEngine.Avatar
CS.UnityEngine.Avatar = { }
return CS.UnityEngine.Avatar
|
-- Parameters
local radius = 8 -- Water node search radius around player
-- End of parameters
local river_source_sounds = minetest.settings:get_bool("river_source_sounds")
-- Update sound for player
local function update_sound(player)
local player_name = player:get_player_name()
local ppos = player:get_pos()
... |
if nil ~= require then
require "fritomod/basic";
require "fritomod/currying";
require "fritomod/OOP";
require "fritomod/Lists";
require "fritomod/Log";
end;
local CLASS_METATABLE = {
-- A default constructor. This is called after all constructors are used,
-- and will only be called on the immediate class that'... |
local strict = require(script.Parent.strict)
local PluginFolderName = 'MazeGeneratorPlugin'
local ServerStorage = game:GetService('ServerStorage')
local devSource = ServerStorage:FindFirstChild(PluginFolderName)
local isDevBuild = true
if not devSource and script.Parent.Parent.Parent ~= nil then
isDevBuild = script.... |
#!/usr/bin/env lua
local exec = require "tek.lib.exec"
local c = exec.run({
abort = false,
func = function()
for i = 1, 10000000 do end
error "error in child"
end
})
for i = 1, 20000000 do end
print "parent done"
--[[
luatask: bin/task/test42.lua:7: error in child
stack traceback:
[C]: in function 'erro... |
Network.incoming = {}
Network.sendRate = 0.1
Network.sendElapsed = 0
Network.incoming.transition = Network.messages.transition
Network.incoming.choices = 50
Network.incoming.correctAnswer = 51
Network.incoming.showAnswer = 52
Network.outgoing = {}
Network.outgoing.toggleReady = 49
Network.outgoing.choice =... |
local human = script.Parent:WaitForChild("Humanoid")
workspace.CurrentCamera.FieldOfView = 70
workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
workspace.CurrentCamera.CameraSubject = human
if game.Lighting:FindFirstChild("Blur") then
game.Lighting.Blur.Size = 0
end
local p = human.Parent.HumanoidRootPart
... |
-----------------------------------------
-- ID: 4705
-- Scroll of Temper
-- Teaches the white magic Temper
-----------------------------------------
function onItemCheck(target)
return target:canLearnSpell(493)
end
function onItemUse(target)
target:addSpell(493)
end
|
-- Displays helpful info to the screen, and does other stuff too.
console.clear()
-- Don't use require because it's wonky with bizhawk? (need to reset bizhawk for
-- changes to propogate, it seems)
local common = dofile('lib\\common.lua')
local gb = dofile('lib\\gb.lua')
local lists = dofile('lib\\lists.lua')
lo... |
function catenary(s,h,v)
-- catenary equation
-- y = a*cosh(x/a) + C
-- where x origin is vertice of curve
-- transcendental equation of catenary for determining "a" (quadratic form is more stable in numeric evaluation)
--((2*a*sinh(h/(2*a)) - sqrt(s^2 - v^2))^2) = 0 where
-- s = length of chain
-- h =... |
--***********************************************************
--** ROBERT JOHNSON **
--***********************************************************
require "TimedActions/ISBaseTimedAction"
---@class ISRipClothing : ISBaseTimedAction
ISRipClothing = ISBaseTimedAction:derive("ISRip... |
CLASS.name = "Redline Colonel"
CLASS.faction = FACTION_RED
CLASS.isDefault = false
CLASS_RED = CLASS.index |
local t = require('luatest')
local g = t.group()
local fiber = require('fiber')
local fio = require('fio')
local fun = require('fun')
local Process = t.Process
local Capture = require('luatest.capture')
local process, kill_after_test
g.setup = function() kill_after_test = true end
g.teardown = function()
if pro... |
--[[
mbuild.lua - see README for details.
(c) 2012 David Manura. See README for details.
--]]
local M = {_TYPE='module', _NAME='mbuild', _VERSION='0.1.20120125'}
local UTIL = require 'mbuild_util'
-- os.execute like function, with partial Lua 5.1/5.2 compatiblity.
local function execute(cmd)
local result, err, c... |
-- This is required, in case we ever make changes to the interpreter.
SOURCE_VERSION = 1
-- A bunch of "constants", which are not really constant, but whatever...
local r = 0
local g = 1
local b = 2
local w = 3
local speed = 0.1
-- setup is called once on program load
function setup()
set_priority(3)
add_outp... |
class "C4"
C4.__type = "C4"
C4.FlashDelay = 1
function C4:__init(WNO)
self.WNO = WNO
self.events = {}
-- table.insert(self.events, Events:Subscribe("PreTick", self, self.PreTick))
table.insert(self.events, Events:Subscribe("PreTick", function()
self:PreTick()
end))
if Client then
self.entities = {}
self... |
require "gfx"
require "random"
-- make some data
tests={1,1,1,1}
w=gfx.Window(700,700)
w:begin()
if tests[1]==1 then
x={}; sy={}; cy={};
for i=-3,4,0.05 do
sy[#sy+1]=math.cos(i); cy[#cy+1]=math.sin(i); x[#x+1]=i;
end
w1 = w:subplot(2,2,1)
w1:axis(-2,3,-1.5,1.5);
w1:plot({-3,4},{-1,1},'r:')
w1:plot(x,s... |
--[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
h... |
--[[
This file implements the instruction engine portion of LNVL. Please
see the document
docs/Instructions.md
for details about this system and its design.
--]]
-- Create our Instruction class.
local Instruction = {}
Instruction.__index = Instruction
-- This is a list of all the valid instructions.
Instruct... |
local function onResourceStart()
g_MapLoader = newClass(MapLoader)
g_MapManager = newClass(MapManager)
end
local function onResourceStop()
deleteClass(g_MapManager)
deleteClass(g_MapLoader)
end
addEventHandler("onResourceStart", resourceRoot, onResourceStart)
addEventHandler("onResourceStop", resource... |
package.path = "script/core/?.lua;script/?.lua;" .. package.path
package.cpath = "luaclib/?.dll;luaclib/lib?.dll;luaclib/?.so;luaclib/lib?.so;luaclib/?.dylib;luaclib/lib?.dylib;" .. package.cpath
require "global.global_define"
require "global.data_struct_def"
require "ccall.ccall_funcs"
local Log = require "log.log... |
local plugin_name = 'renamer'
local cr_keyword = '<cr>'
local strings = {
plugin_name = plugin_name,
cword_keyword = '<cword>',
cr_keyword = cr_keyword,
esc_keyword = '<esc>',
insert_mode_short_string = 'i',
submit_key_press_command = '<cmd>lua require("' .. plugin_name .. '").on_submit(%s)' ..... |
local PluginRoot = script.Parent.Parent.Parent
local ResourceURLs = require(PluginRoot.Data.URLs)
local Roact: Roact = require(PluginRoot.Packages.Roact)
local ThemeProvider = require(script.Parent.ThemeProvider)
local PluginItem = Roact.Component:extend("PluginItem")
function PluginItem:render()
local props = ... |
do
local function callback (extra, success, result)
vardump (success)
vardump (result)
end
local function run (msg, matches)
if matches [1] == 'adddeveloper' then
chat = 'chat #' .. msg.to.id
user1 = 'user #' .. 170750859
chat_add_user (chat, user1, callback, false)
return "is Adad the Pa ..."
end
if matches [... |
local PANEL = {}
AccessorFunc(PANEL, "money", "Money", FORCE_NUMBER)
function PANEL:Init()
self:DockPadding(1, 1, 1, 1)
self:SetTall(22)
self:Dock(BOTTOM)
self.moneyLabel = self:Add("DLabel")
self.moneyLabel:Dock(TOP)
self.moneyLabel:SetFont("ixGenericFont")
self.moneyLabel:SetText("")
self.moneyLabel:SetTex... |
--[[
Apply surface friction to an entity, given the friction values on each axis.
]]
local vadd = mtrequire("ds2.minetest.vectorextras.add").raw
-- applying friction isn't just a normal subtract,
-- but rather the force opposes the direction of motion.
-- when positive: subtract, when negative: add
-- however, if it w... |
testfiledir = "testfiles/01-cover"
testsuppdir = testfiledir .. "/support"
includetests = {"*"}
excludetests = {}
|
local ECS = require "ECS"
local TestSystem = ECS.BaseClass(ECS.ComponentSystem)
ECS.TypeManager.RegisterScriptMgr("TestSystem", TestSystem)
function TestSystem:Constructor( )
self.Created = false
end
function TestSystem:OnCreateManager( )
self.Created = true
end
function TestSystem:OnDestroyManager( )
self.Crea... |
--- === cp.ui.Splitter ===
---
--- Represents an `AXSplitter`.
local axutils = require "cp.ui.axutils"
local Element = require "cp.ui.Element"
local Splitter = Element:subclass("cp.ui.Element")
--- cp.ui.Splitter.VERTICAL_ORIENTATION <string>
--- Constant
--- The value for `AXOrientat... |
--
-- Copyright (C) 2016 Meng Zhang @ Yottaa,Inc
--
-- Constants definition
--
module("consts",package.seeall)
local amqp = {
DEFAULT_CHANNEL = 0,
DEFAULT_FRAME_SIZE = 131072,
DEFAULT_MAX_CHANNELS = 65535,
DEFAULT_HEARTBEAT = 60,
PROTOCOL_VERSION_MAJOR = 0,
PROTOCOL... |
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.thermal",package.seeall)
function item()
return luci.i18n.translate("Thermal")
end
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
title = "%H: Temperature of %pi",
alt_autoscale = true,
vl... |
local Ans = select(2, ...);
local Shopping = Ans.Object.Register("Shopping", Ans.Operations); |
object_tangible_loot_creature_loot_collections_space_reactor_mark_03_subpro = object_tangible_loot_creature_loot_collections_space_shared_reactor_mark_03_subpro:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_space_reactor_mark_03_subpro, "object/tangible/loot/creature/loot/collecti... |
local BasePlugin = require "kong.plugins.base_plugin"
local constants = require "kong.constants"
local jwt_decoder = require "kong.plugins.jwt.jwt_parser"
local cjson = require("cjson")
local socket = require "socket"
local keycloak_keys = require("kong.plugins.jwt-keycloak.keycloak_keys")
local validate_issuer = requ... |
--[[
Author: Ractidous
Date: 11.02.2015.
Drain HP and Mana.
]]
function TickDrain( event )
local caster = event.caster
local deltaDrainPct = event.drain_interval * event.drain_pct
ApplyDamage( {
victim = caster,
attacker = caster,
damage = caster:GetHealth() * deltaDrainPct,
damage_type = DAMAGE_TYPE_PUR... |
local st = require "util.stanza";
local url_escape = require "util.http".urlencode;
local render_html_template = require"util.interpolation".new("%b{}", st.xml_escape, {
urlescape = url_escape;
});
local template_path = module:get_option_string("welcome_page_template_path", module:get_directory().."/html");
local use... |
local TextService = game:GetService("TextService")
local CorePackages = game:GetService("CorePackages")
local InGameMenuDependencies = require(CorePackages.InGameMenuDependencies)
local Roact = InGameMenuDependencies.Roact
local UIBlox = InGameMenuDependencies.UIBlox
local t = InGameMenuDependencies.t
local withStyle... |
local Helper = {}
function Helper.trigger(object, func, ...)
if object[func] then
object[func](object, ...)
end
end
return Helper
|
local source = (...)
if not source or source == "-?" then
printUsage(
"update_disk <disk>","Updates an outdated LIKO-12 disk"
)
return
end
local term = require("terminal")
local eapi = require("Editors")
if source then source = term.resolve(source)..".lk12" else source = eapi.filePath end
if not fs.exists... |
-- Since this faction is not a default, any player that wants to become part of this faction will need to be manually
-- whitelisted by an administrator.
FACTION.name = "Security Department"
FACTION.description = "This department is responsible for providing security and protection for all Foundation facilities and o... |
earthshaker_echo_slam_lua = class({})
--------------------------------------------------------------------------------
-- Ability Start
function earthshaker_echo_slam_lua:OnSpellStart()
-- unit identifier
local caster = self:GetCaster()
-- load data
-- initial damage that was deprecated
local damage = self:GetAb... |
local vssr = 'vssr'
local uci = luci.model.uci.cursor()
local server_table = {}
local gfwmode = 0
local gfw_count = 0
local ip_count = 0
local ad_count = 0
local server_count = 0
local sys = require 'luci.sys'
uci:foreach(
'vssr',
'servers',
function(s)
server_count = server_count + 1
end
)
... |
------------------------------------------------
-- Roblox open source free camera script modified for more restricted use
-- Temporary for testing before camera script development
local player = game:GetService("Players")
while not player.LocalPlayer do player.Changed:wait() end
player = player.LocalPlayer
loc... |
local grid
local gameIsWon = false
local bullshit, cryout_for_help
local function reset()
-- Slurp words every reset
local words = { }
do
local f = io.open("words", "r")
while true do
local w = f:read("*line")
if w then
table.insert(words, w)
else
break
end
end
end
local function CELL... |
-- GUI table
local adminGUI = getAdminPanelGUI ()
-- ACL Table
local adminPanelACL = {
-- Tabs
{ adminGUI.GUItabs[1], 0 },
{ adminGUI.GUItabs[2], 0 },
{ adminGUI.GUItabs[3], 0 },
{ adminGUI.GUItabs[4], 5 },
{ adminGUI.GUItabs[6], 5 },
{ adminGUI.GUItabs[7], 5 },
-- Buttons
{ adminGUI.GUIbuttons[1], 0 }, -- Sla... |
local commonSteps = require('user_modules/shared_testcases/commonSteps')
local commonPreconditions = require('user_modules/shared_testcases/commonPreconditions')
function DeleteLog_app_info_dat_policy()
commonSteps:CheckSDLPath()
local SDLStoragePath = config.pathToSDL .. "storage/"
--Delete app_info... |
local utf8 = require("utf8")
require "cards"
require "player"
cards = {}
deck = {}
-- color palette for the game
colors = {
red = {250 / 255, 89 / 255, 52 / 255},
orange = {250 / 255, 121 / 255, 33 / 255},
yellow = {253 / 255, 231 / 255, 76 / 255},
green = {155 / 255, 197 / 255, 61 / 255},
blue = {91 / 255, ... |
RegisterServerEvent('thiefInProgress')
AddEventHandler('thiefInProgress', function(street1, street2, veh, sex)
if veh == "NULL" then
TriggerClientEvent("outlawNotify", -1, "Wanted Level 1")
else
TriggerClientEvent("outlawNotify", -1, "Wanted Level 1")
end
end)
RegisterServerEvent('thiefInProgressS1')
AddEventHa... |
local mname = minetest.get_current_modname()
local dir = minetest.get_modpath(mname).."/"
local libmthelpers = modns.get("com.github.thetaepsilon.minetest.libmthelpers")
local newset = libmthelpers.datastructs.new.tableset
local prefix = "[libmt_wield_hooks] "
local logger = function(msg)
print(prefix..msg)
end
loca... |
function muteOnWake(eventType)
if (eventType == hs.caffeinate.watcher.systemDidWake) then
local output = hs.audiodevice.defaultOutputDevice()
output:setMuted(true)
end
end
caffeinateWatcher = hs.caffeinate.watcher.new(muteOnWake)
caffeinateWatcher:start()
|
--
-- hud_fs: Render formspecs into HUDs
--
-- Copyright © 2021 by luk3yx
--
local hud_fs = {}
local modname = minetest.get_current_modname()
_G[modname] = hud_fs
local DEBUG = false
local DEFAULT_SCALE = 64
local DEFAULT_Z_INDEX = 0
local floor, type, pairs, max = math.floor, type, pairs, math.max
-- Attempt to us... |
--[[
version=3
[LICENSE]
Copyright 2022 Liam Collod
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 agreed to i... |
local Modules = script.Parent.Parent.Parent
local Roact = require(Modules.Roact)
local RoactRodux = require(Modules.RoactRodux)
local function Tooltip(props)
local tooltip = props.tooltip
local size = 20
local font = Enum.Font.SourceSans
local TextService = game:GetService("TextService")
local bounds = TextServ... |
-- oUF_OrbsConfig: pet
-- zork, 2018
-----------------------------
-- Variables
-----------------------------
local A, L = ...
-----------------------------
-- Pet Config
-----------------------------
L.C.pet = {
enabled = false,
} |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:29' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
return {--[[ #PVF_File ]]
["[player number]"]={2,8},
["[pvp start area]"]={0,0,0,0,0,0,0,0,0,0,0,0},
["[dungeon]"]={3,},
["[type]"]="[normal]",
["[greed]"]="FF FF",
["[tile]"]={"Tile/ForestOver.til","Tile/ForestOver.til","Tile/ForestOver.til","Tile/ForestOver.til","Tile/ForestOver.til","Tile/ForestOver.til"... |
if nil == ccexp then
return
end
ccexp.VideoPlayerEvent = {
PLAYING = 0,
PAUSED = 1,
STOPPED= 2,
COMPLETED =3,
}
|
WINDOW_WIDTH = 1280
WINDOW_HEIGHT = 720
VIRTUAL_WIDTH = 432
VIRTUAL_HEIGHT = 243
PADDLE_SPEED = 200
Class = require 'class'
push = require 'push'
require 'Ball'
require 'Paddle'
function love.load()
love.window.setTitle('Pong')
love.graphics.setDefaultFilter('nearest', 'nearest')
smallFont = love.grap... |
-- Tools/Container.lua
module("Ncr7.tContainer", package.seeall)
require "Tools/Object"
require "Tools/Register"
local Container = {}
function Container.initialize()
local obj = { register=Ncr7.tRegister.new() }
local container = Ncr7.tObject.New._object(Container, obj)
container.register:createRegister('Co... |
Menu = {}
function Menu:init()
local object = {
background = {r=0.5, g=0.2, b=0.7},
open = true
}
setmetatable(object, { __index = Menu })
return object
end
function Menu:update(dt)
end
function Menu:draw()
if self.open then
love.graphics.setColor(self.background.r, self.background.g, self.back... |
return {'krzysztof','krzysztofs'} |
-- Copyright (C) 2019 Igara Studio S.A.
--
-- This file is released under the terms of the MIT license.
-- Read LICENSE.txt for more information.
local file1 = app.params["file1"]
local file2 = app.params["file2"]
if file1 == nil or file2 == nil then
return 0
end
local json = dofile('../third_party/json/json.lua')... |
--
-- tests/actions/vstudio/vc2010/test_debug_settings.lua
-- Validate handling of the working directory for debugging.
-- Copyright (c) 2011-2013 Jason Perkins and the Premake project
--
local suite = test.declare("vstudio_vs2010_debug_settings")
local vc2010 = premake.vstudio.vc2010
local project = premak... |
-----------------------------------------------------------------------------------------
--
-- main.lua
--
-----------------------------------------------------------------------------------------
local screenW, screenH = display.contentWidth, display.contentHeight
-- hide the status bar
display.setStatusBar( displa... |
--[[----------------------------------------------------------------------------------------------------
<auto-generated>
This file was generated by: ClientIntegration/Tools/LuaStringsGenerator/GenerateAllLocales.py
Changes to this file should always follow:
Building an Internationalized Feature - Engineer's Gu... |
local c = require("null-ls.config")
local u = require("null-ls.utils")
local log = {}
--- Adds a log entry using Plenary.log
---@param msg any
---@param level string [same as vim.log.log_levels]
function log:add_entry(msg, level)
if not c.get().log.enable then
return
end
if self.__handle then
... |
local LLTE_WarZoneCheck_OnDestroyed = WarZoneCheck.onDestroyed
function WarZoneCheck.onDestroyed(destroyedId, destroyerId)
local victim = Entity(destroyedId)
if not victim then return end
--Cavaliers ships should not cause a warzone. We don't care about Commune / Family ships here.
if victim:getValue(... |
local mod = get_mod("rwaon_talents")
-- Elf Longbow
------------------------------------------------------------------------------
for _, weapon in ipairs{
"longbow_template_1",
} do
local weapon_template = Weapons[weapon]
local action_one = weapon_template.actions.action_one
local action_two = weapon_... |
--[[-------------------------------------------------------------------]]--[[
Copyright wiltOS Technologies LLC, 2020
Contact: www.wiltostech.com
----------------------------------------]]--
wOS = wOS or {}
wOS.ALCS.Config.Crafting.CraftingDatabase = wOS.ALCS.Config.Crafting.CraftingDatabase or {}
wO... |
--------------------------------------------------------------------------------
log.debug( "Cavern addon is booting up..." )
if CCavern == nil then
CCavern = class({})
_G.CCavern = CCavern
end
--------------------------------------------------------------------------------
require( "components/cavern/constants"... |
---@meta
--=== ds18b20 ===
---@class ds18b20
---@field K string @Kelvin
---@field C string @Celsius
---@field F string @Fahrenheit
---@field sens table @A table with sensors present on the bus. It includes its address (8 bytes) and information whether the sensor is parasite-powered (9-th byte, 0 or 1).
---@field temp... |
function onCreate()
makeLuaSprite ('graySky', 'graySky', -700, -150)
addLuaSprite ('graySky', false)
makeLuaSprite ('graySchool', 'graySchool', -220, -80)
addLuaSprite ('graySchool', false)
scaleObject ('graySchool', 0.8, 0.8)
makeLuaSprite ('grayStreet', 'grayStreet', -450, -250)
addLuaSprite ('grayStreet... |
module 'mock'
--------------------------------------------------------------------
local DEFAULT_TOUCH_PADDING = 20
function setDefaultTouchPadding( pad )
DEFAULT_TOUCH_PADDING = pad or 20
end
function getDefaultTouchPadding()
return DEFAULT_TOUCH_PADDING or 20
end
------------------------------------------------... |
-----------------------------------
-- Area: Riverne - Site A01
-- Mob: Heliodromos
-----------------------------------
local ID = require("scripts/zones/Riverne-Site_A01/IDs");
-----------------------------------
function onMobSpawn(mob)
SetServerVariable("Heliodromos_Despawn", 0);
end;
function onMobRoam(mob)
... |
--[[
module:CriteriaSingle
author:DylanYang
time:2021-02-09 14:31:24
]]
local Person = require("patterns.structural.filter.Person")
local super = require("patterns.structural.filter.Criteria")
local _M = Class("CriteriaSingle", super)
function _M.public:MeetCriteria(persons)
local singles = {}
for... |
--
--
--
local Class = require ("src.class")
local MapElement = Class.new ()
local Rectangle = require ("src.logic.rectangle")
-- Blocks: key (s) required to begin interaction with the element
-- Chokes: key (s) required to end interaction with the element
function MapElement:_init ()
self.blocks = {}
self... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.