content stringlengths 5 1.05M |
|---|
local DEPOSIT_TRIGGER = script:GetCustomProperty("DepositTrigger"):WaitForObject()
local players = Game.GetPlayers()
-- function OnBeginOverlap(trigger, player)
-- if (not player or not player:IsA("Player")) then
-- return
-- end
-- if trigger.name == "LobbyZone" then
-- --play... |
local utils = require('d2grailcheck.utils')
local Data = require('d2grailcheck.data')
local Checker = require('d2grailcheck.checker')
local argparse = require('d2grailcheck.argparse')
local formats = {
["simple"] = require('d2grailcheck.formats.simple'),
["d2-holy-grail"] = require('d2grailcheck.formats.d2-holy-gr... |
CloneClass( PlayerInventoryGui )
--[[
Temporary until PlayerInventoryGui decides to decrypt fully instead of stopping half way through the initialization function
]]
Hooks:RegisterHook("PlayerInventoryGUIOnPreviewPrimary")
function PlayerInventoryGui.preview_primary(self, ...)
local args = ...
local r = Hooks:Ret... |
ClassicLFG = LibStub("AceAddon-3.0"):NewAddon("ClassicLFG", "AceConsole-3.0")
ClassicLFG.AceGUI = LibStub("AceGUI-3.0")
ClassicLFG.Locale = LibStub("AceLocale-3.0"):GetLocale("ClassicLFG")
ClassicLFG.MinimapIcon = LibStub("LibDBIcon-1.0")
GetTalentTabInfo = GetTalentTabInfo or function(index)
return "Assasination... |
----------------------------------------------------------------------------------------------------
--
-- Copyright (c) Contributors to the Open 3D Engine Project.
-- For complete copyright and license terms please see the LICENSE at the root of this distribution.
--
-- SPDX-License-Identifier: Apache-2.0 OR MIT
--
--... |
module 'mock'
CLASS: ScriptedFSMController ( FSMController )
:MODEL{
Field 'script' :asset( 'com_script' ) :getset( 'Script' );
}
registerComponent( 'ScriptedFSMController', ScriptedFSMController )
function ScriptedFSMController:__init()
self.scriptPath = false
self.delegate = false
self.dataInstance = ... |
-----------------------------------------------------------------------------------------------
-- Client Lua Script for Builder
-- Copyright (c) NCsoft. All rights reserved
-----------------------------------------------------------------------------------------------
require "Window"
require "Apollo"
require "GameLi... |
sound.Add( {
name = "Weapon_Melee_Blunt.Impact_Light",
channel = CHAN_AUTO,
level = SNDLVL_NORM,
volume = 1.0,
sound = {
")nmrihimpact/blunt_light1.wav",
")nmrihimpact/blunt_light2.wav",
")nmrihimpact/blunt_light3.wav",
")nmrihimpact/blunt_light4.wav",
")nmrihimpact/blunt_light5.wav",
")nmrihimpact/blu... |
-- Lua module file for Python compiled with Intel stack (incl. MKL)
help([[
Python 2.7.10, Intel compiler + MKL
]])
load("intel/16.0.0", "mkl/11.3.0", "intelmpi/5.1.1")
local base = '/homeappl/home/louhivuo/appl_taito/python-2.7.10'
setenv('PYTHONHOME', base)
prepend_path('PYTHONPATH', pathJoin(base, 'lib')... |
-- set wifi softap mode
wifi.setmode(wifi.SOFTAP);
wifi.start();
|
-- Simple Game Loader
-- Created by ls522 and skiaboos. DO NOT DELETE THIS OR ANYTHING AFTER!
-- Instances:
local Loading = Instance.new("ScreenGui")
local Background = Instance.new("Frame")
local LoadingMain = Instance.new("Frame")
local F1 = Instance.new("Frame")
local F1T = Instance.new("TextLabel")
local F2 = ... |
--暂时别加这个吧
-- require 'war3library.libraries.interact.buff.template'
require 'war3library.libraries.interact.buff.减攻速'
require 'war3library.libraries.interact.buff.减速'
require 'war3library.libraries.interact.buff.缩放'
require 'war3library.libraries.interact.buff.高度'
require 'war3library.libraries.interact.buff.晕眩'
|
-- Player stuff
local ply = FindMetaTable("Player")
function ply:GetSecondaryUserGroup()
return xSGroups.Users[self:SteamID64()] or nil
end
function ply:GetSecondaryGroupPower()
return xSGroups.Groups[self:GetUserGroup()].power or 0
end
function ply:GetSecondaryGroupTable()
return xSGroups.Groups[self:GetUserGrou... |
local Game = {}
local json = require("json")
Game.__index = Game
Game.expTickRate = 1
Game.expBonusRate = {
[ 0] = 0.900, -- Non-follower
[ 1] = 1.000, -- New! follower
[ 2] = 1.250, -- 0 months
[ 3] = 1.375, -- 1 month
[ 4] = 1.500, -- 3 months
[ 5] = 1.700, -- 6 months
[ 6] = 1.900, -- 9 months
... |
--[[ Netherstorm -- Abjurist Belmara.lua
This script was written and is protected
by the GPL v2. This script was released
by BlackHer0 of the BLUA Scripting
Project. Please give proper accredidations
when re-releasing or sharing this script
with others in the emulation community.
~~End of License Agreement
-- BlackHe... |
--Taiidan
supplyShow("Utility", "Never");
h |
--主入口函数。从这里开始lua逻辑
local rawset = rawset
-- 全局函数
-- 用于声明全局变量
function define(name,value)
rawset(_G,name,value)
end
local function initialize()
LuaLogHelper.initialize()
end
-- 在此处定义注册一些全局变量
local function gloablDefine()
-- 必须首先注册全局Class,顺序敏感
define("Class",require("Core.middleclass"))
define("LuaLogHelper",requ... |
mokk_guard = Creature:new {
customName = "Mokk Guard",
socialGroup = "mokk_tribe",
faction = "mokk_tribe",
level = 300,
chanceHit = 75.0,
damageMin = 1800,
damageMax = 3500,
baseXp = 2500,
baseHAM = 80000,
baseHAMmax = 100000,
armor = 2,
resists = {80,80,80,80,80,80,80,40,60},
meatType = "",
meatAmount = ... |
function get_name()
return "A SIMPLE COUNTER"
end
function get_description()
return {}
end
function get_streams()
outx = { 1, 2, 3, 4, 5, 6, 7 }
return {
{ STREAM_OUTPUT, "OUT", 0, outx },
}
end
function get_layout()
return {
TILE_COMPUTE
}
end
function get_layout_width()
return 1
end
|
data:extend(
{
{
type = "recipe",
name = "empty-recipe",
icon = "__More_Ammo__/graphics/icons/items/empty-magazine.png",
icon_size = 63,
enabled = true,
category = "crafting",
group = "intermediate-products",
subgroup = "intermediate-product",
order = "a",
... |
---------------------------------------------
-- PerimeterX(www.perimeterx.com) Nginx plugin
----------------------------------------------
local M = {}
function M.load(px_config)
local _M = {}
local px_api = require("px.utils.pxapi").load(px_config)
local px_logger = require("px.utils.pxlogger").load(px... |
local t = {}
for i = 1, 200 do
t[math.random(1000)] = math.random(100)
end
return t, 30000, 5 |
local _context = getContext()
local _input = _context:getInput()
local _painter = _context:getPainter()
local _style = _painter:getStyle()
exports('slider', function(min, value, max, w)
local w = w or _context:getWidgetWidth()
local h = _style.widget.height
_context:beginDraw(w, h)
local sliderStyle = _style.sli... |
----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("Misc")
local M = R:NewModule("Misc", "AceEvent-3.0", "AceTimer-3.0")
M.modName = L["小玩意儿"]
_Misc = M
_Modules = {}
function M:RegisterMiscModule(nam... |
--
-- gh-6018: in an auto-election cluster nodes with voter state could be selected
-- as bootstrap leaders. They should not, because a voter can't be ever writable
-- and it can neither boot itself nor register other nodes.
--
-- Similar situation was with the manual election. All instances might have
-- manual electi... |
package("cpp-taskflow")
set_homepage("https://cpp-taskflow.github.io/")
set_description("A fast C++ header-only library to help you quickly write parallel programs with complex task dependencies")
add_urls("https://github.com/cpp-taskflow/cpp-taskflow.git")
add_urls("https://github.com/cpp-taskflow/cp... |
-- https://github.com/kyazdani42/nvim-tree.lua
require("nvim-tree").setup(
{
-- 自动关闭
auto_close = true,
-- 视图
view = {
-- 宽度
width = 30,
-- 高度
height = 30,
-- 隐藏顶部的根目录显示
hide_root_folder = false,
-- ... |
SETTINGS_REFRESH = 2000 -- Interval in which team channels are refreshed, in MS.
bShowChatIcons = true
voicePlayers = {}
globalMuted = {}
---
addEventHandler ( "onClientPlayerVoiceStart", root,
function()
if isPlayerVoiceMuted ( source ) then
cancelEvent()
return
end
voicePlayers[source] = t... |
----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("Skins")
local S = _Skins
local function LoadSkin()
local r, g, b = _r, _g, _b
local PVPQueueFrame = PVPQueueFrame
local HonorFrame = HonorFrame
local Con... |
---mc通用接口
---@class mc
mc = {}
---创建表单对象
---@return CustomForm 新创建的空白表单对象
function mc.newCustomForm()
end
---创建表单对象
---@return SimpleForm 新创建的空白表单对象
function mc.newSimpleForm()
end |
local http_util=require"http_util"
local config=require"config"
local mode_map={
[wifi.SOFTAP]="ap",
[wifi.STATION]="sta",
[wifi.STATIONAP]="sta+ap"
}
return function(state,send,data)
-- XXX: Working around https://github.com/elua/elua/issues/69
local ap_ssid,ap_password=wifi.ap.getconfig()
lo... |
function tableLength(t)
local len=0
for k, v in pairs(t) do
len=len+1
end
return len;
end
function printTable ( t )
local print_r_cache={}
local function sub_print_r(t,indent)
if (print_r_cache[tostring(t)]) then
print(indent.."*"..tostring(t))
else
print_r_c... |
cc = cc or {}
---EaseElastic object
---@class EaseElastic : ActionEase
local EaseElastic = {}
cc.EaseElastic = EaseElastic
--------------------------------
---brief Set period of the wave in radians.<br>
---param fPeriod The value will be set.
---@param fPeriod float
---@return EaseElastic
function EaseElastic:setPeri... |
local T = {}
local SHOW_ERRORS = false
-- Reset Buffer content. Depends on implementation.
local function resetBuf(self, l, i, ones)
self.len = l
self.i = i
table.clear(self.buf)
if ones then
-- Fill with ones.
local n = math.ceil(l/32)
for i = 1, n-1 do
self.buf[i] = 0xFFFFFFFF
end
self.buf[n] = 2^(... |
-- @module ae.ui.SlideLeftGesture
-- @group UI
-- @brief Slide left gesture.
local SlideLeftGesture = ae.oo.class()
-- @func
-- @brief Creates a slide left gesture with no listener.
-- @return The gesture.
-- @func
-- @brief Creates a slide left gesture.
-- @param listener The function called when the gestur... |
--DiskOS API Loader
local Globals = (...) or {}
local apiloader = fs.load("System/api.lua")
setfenv(apiloader,Globals) apiloader()
return Globals |
workspace "Charcoal Engine"
architecture "x64"
configurations{ "Debug", "Release" }
startproject "Sandbox"
flags
{
"MultiProcessorCompile"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
IncludeDir = {}
IncludeDir["GLFW"] = "Charcoal/vendor/GLFW/include"
IncludeDir["Glad"... |
-----------------------------------
-- Area: Mamool Ja Training Grounds (Preemptive Strike)
-- Mob: Puk Executioner
-----------------------------------
function onMobDeath(mob, player, isKiller)
end
|
-- An empty stage with no walls. Load it up and do whatever you want.
function configure(stageBuilder)
stageBuilder:setSize(1200, 800)
stageBuilder:setBattleMode(true)
end
|
test_game_module = {}
local other_module = nil;
function test_game_module:reload()
--other_module = script_module:find_module("other_module");
end
function test_game_module:awake()
test_game_module.reload();
end
function test_game_module:init()
print("test_game_module init!----");
script_module:a... |
local widget = require("widget")
local json = require("json")
local mime = require("mime")
------------------------------------------------------------------------------
-- Declarations
------------------------------------------------------------------------------
local competition = {}
local boxSize
local blur, group... |
-- oUF_Simple: templates/party
-- zork, 2016
-----------------------------
-- Variables
-----------------------------
local A, L = ...
-----------------------------
-- CreatePartyStyle
-----------------------------
if not L.C.party or not L.C.party.enabled then return end
local function CreatePartyStyle(self)
-... |
local oop = require("diffview.oop")
local M = {}
---@class LogEntry
---@field path_args string[]
---@field commit Commit
---@field files FileEntry[]
---@field status string
---@field stats GitStats
---@field single_file boolean
---@field folded boolean
local LogEntry = oop.Object
LogEntry = oop.create_class("LogEntry"... |
local z = ...
local function tonum(s, p)
if not s or (p and s:sub(1, 1) ~= p) then return 9 end
return tonumber(s:sub(2, 2))
end
local function uc(n)
return "Unknown "..n.." command"
end
return function(o, p1, p2, pv, n, wf, rf)
package.loaded[z] = nil
z = nil
local p = tonum(p1, 'P')
local e = not p and "Por... |
--[[
* Natural Selection 2 - Combat++ Mod
* Authors:
* WhiteWizard
*
* Toggles the Combat HUD on and off during the count down sequence.
*
* Wrapped Functions:
* 'Alien:OnCountDown' - Turns the Combat HUD off while the count down sequence is executing.
* 'Alien:OnCountDownEnd' - Turns the C... |
local pss_id = ARGV[1];
local cluster = ARGV[2];
local failure_set = "{BA}:BROKER_PSS_FAILURES:" .. pss_id
local hgetall = function (key)
local bulk = redis.call("HGETALL", key)
local result = {}
local nextkey
for i, v in ipairs(bulk) do
if i % 2 == 1 then
nextkey = v
else
... |
local Component = class()
Xile.Component = Component
local _mtcache ={}
local metatable = function(component)
local mt = _mtcache[component]
if mt == nil then
mt = getmetatable(component)
_mtcache[component] = mt
end
return mt
end
local getname = function(component)
if componen... |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
ENT.WireDebugName = "PID"
function ENT:Initialize()
/* Make Physics work */
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
/* Set wire I/O */
self.Inputs =... |
--// Initialization
local RunService = game:GetService("RunService")
local HttpService = game:GetService("HttpService")
local PlayerService = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local LocalizationService = game:GetService("LocalizationService")
local Overture = re... |
local assets=
{
Asset("ANIM", "anim/flint.zip"),
}
local function shine(inst)
inst.task = nil
inst.AnimState:PlayAnimation("sparkle")
inst.AnimState:PushAnimation("idle")
inst.task = inst:DoTaskInTime(4+math.random()*5, function() shine(inst) end)
end
local function fn(Sim)
local inst = CreateEnti... |
--prints current time and position
--[====[
position
========
Reports the current time: date, clock time, month, and season. Also reports
location: z-level, cursor position, window size, and mouse location.
]====]
local months = {
'Granite, in early Spring.',
'Slate, in mid Spring.',
'Felsite, in late... |
help(
[[
This module loads Circos 0.68
Circos is a software package for visualizing data and information. It visualizes
data in a circular layout — this makes Circos ideal for exploring relationships
between objects or positions. There are other reasons why a circular layout is
advantageous, not the least being the fa... |
local P = require("core.packet")
local GRE = require("lib.protocol.gre")
local Datagram = require("lib.protocol.datagram")
local Ethernet = require("lib.protocol.ethernet")
local IPV4 = require("lib.protocol.ipv4")
local IPV6 = require("lib.protocol.ipv6")
local TCP = require("lib.protocol.tcp")
local ffi = require("ff... |
require("stategraphs/commonstates")
local function GetScalePercent(inst)
return (inst.components.scaler.scale - TUNING.ROCKY_MIN_SCALE) / (TUNING.ROCKY_MAX_SCALE - TUNING.ROCKY_MIN_SCALE)
end
local function PlayLobSound(inst, sound)
inst.SoundEmitter:PlaySoundWithParams(sound, {size=GetScalePercent(inst)})
en... |
local DialogCfg = {
["ShopFrame"] = {parentTag = "MapSceneUIRootMid"},
["Role_Frame"] = {parentTag = "MapSceneUIRootMid"},
["PvpArena_Frame"] = {parentTag = "MapSceneUIRootMid"},
["NewChatFrame"] = {parentTag = "MapSceneUIRootMid"},
["DrawCard/newDrawCardFrame"] = {parentTag = "MapSceneUIRootMid"},
... |
isStarting = true
function Update(dt)
if (isStarting == true) then
timer = 0
step = 1
children = gameObject:GetChildren()
for i = 1, #children do
if(i == 1)then
children[i]:Active(true)
else
children[i]:Active(false)
... |
<%- partial('../sidebar') %>
<div id='content'>
<div class='panel'>
<div class='header'>
<ul class='breadcrumb'>
<li><a href='/'>主页</a><span class='divider'>/</span></li>
<li class='active'>Top100 积分榜</li>
</ul>
</div>
<div class='inner'>
<% if type(users) == 'table' and... |
-- CONFIG -- Author: KingAmond & Bucky
function sendForbiddenMessage(message)
TriggerEvent("chatMessage", "", {0, 0, 0}, "^1" .. message)
end
function _DeleteEntity(entity)
Citizen.InvokeNative(0xAE3CBE5BF394C9C9, Citizen.PointerValueIntInitialized(entity))
end |
------------------------------------------------------------
-- SoloFrames.lua
--
-- Abin
-- 2012/1/03
------------------------------------------------------------
local _, addon = ...
local frame = addon:CreateGroupParent("CompactRaidSoloFrame")
addon.soloFrame = frame
RegisterStateDriver(frame, "visibility", "[grou... |
local Factory = cc.import(".Factory")
local NginxWorkerBootstrap = cc.class("NginxWorkerBootstrap")
function NginxWorkerBootstrap:ctor(appKeys, globalConfig)
self._configs = Factory.makeAppConfigs(appKeys, globalConfig, package.path)
end
function NginxWorkerBootstrap:runapp(appRootPath)
--cc.dump(self._confi... |
-- Manifest
resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
description 'iJob by Izio.'
ui_page 'ui/ui.html'
-- Server
server_scripts {
'iJob_server.lua',
'classe/job.lua',
'@mysql-async/lib/MySQL.lua',
}
-- Client
client_scripts {
'iJob_client.lua',
'gui.lua'
}
-- NUI Files
files {
'ui/ui.... |
local PANEL = {}
function PANEL:Init()
self:SetSize(200, 150)
self:Center()
self:SetTitle("ATM")
self:MakePopup()
local bankBalance = LocalPlayer():GetSyncVar(SYNC_BANKMONEY, 0)
local prefix = impulse.Config.CurrencyPrefix
local parent = self
self.balance = vgui.Create("DLabel", self)
self.balance:SetText("... |
--[[
Loading of crop definition stored in a csv file.
The import is extendable, so new columns in the config file are imported to new field in the table.
First line: Header
Second line should be default crop, where several default values are stored.
Actual columns:
Name Name of the crop. Is used for registering al... |
require("config")
require("patterns")
local jsonInterface = require("jsonInterface")
tableHelper = require("tableHelper")
local BasePlayer = require("player.base")
local Player = class("Player", BasePlayer)
function Player:__init(pid, playerName)
BasePlayer.__init(self, pid, playerName)
-- Replace characters... |
return {
-- Polar Night
dark_black = '#181818', -- bg
black = '#282828',
bright_black = '#8d8d8d',
gray = '#4c566a',
-- Custom
darkish_black = '#3B414D',
grayish = '#667084',
-- Snow Storm
dark_white = '#b0b0b0',
white = '#e7e7e7',
bright_white = '#f8f8f8',
-- Fros... |
local lpeg = require'lpeg'
local rawset = rawset
local gsub = string.gsub
local find = string.find
local V = lpeg.V
local P = lpeg.P
local R = lpeg.R
local C = lpeg.C
local S = lpeg.S
local Cg = lpeg.Cg
local Ct = lpeg.Ct
local Cf = lpeg.Cf
local Cc = lpeg.Cc
local Cmt = lpeg.Cmt
local STRICT = {}
local TWITCH = {... |
memory.usememorydomain("RAM")
Stage = {
[5] = "STAGE 5",
[6] = "STAGE 5",
[7] = " FINAL ",
[16] = "STAGE 1",
[17] = "STAGE 2",
[18] = "STAGE 3",
[19] = "STAGE 4",
[20] = "STAGE 5",
[21] = "BOSS #1",
[22] = "BOSS #2",
[23] ... |
loadstring(game:GetObjects'rbxassetid://442131690'[1].Source)() |
-- Copyright (C) 2018-2021 by KittenOS NEO contributors
--
-- Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
--
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTI... |
--[[
TheNexusAvenger
Interface for a property validator.
--]]
local CLASS_NAME = "NexusPropertyValidator"
local NexusObjectFolder = script.Parent.Parent
local NexusInterface = require(NexusObjectFolder:WaitForChild("NexusInterface"))
local NexusPropertyValidator = NexusInterface:Extend()
NexusPropertyValidator:Set... |
Default = {
EnableDebug = true, -- This will enable debug mode and will print things in F8
MenuAlignment = "left"
} |
local path = THEME:GetThemeDisplayName() .. " UserPrefs.ini"
-- Hook called during profile load
function LoadProfileCustom(profile, dir)
local fullFilename = dir .. path
local pn
-- we've been passed a profile object as the variable "profile"
-- see if it matches against anything returned by PROFILEMAN:GetProfile... |
local moon = require("moon")
local log = require("moon.log")
local redis_pool = require("moon.db.redispool")
local function run_example()
local pool = redis_pool.new()
local n = 0
local timerid = moon.repeated(1000,-1,function ()
print("per sec ",n,pool:size())
n = 0
end)
local fu... |
--Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--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 2 of the License,
--or (at your option) any later versio... |
require("lua/find")
le.status("Hello from lua")
function old_key(code)
le.status("Code: " .. code)
if code == 25 then
local lastString = ""
local lastK = 0
local n = 0
local name = le.prompt("What is your name? %s", function(s, k)
n = n + 1
lastK = k
lastString = s
end)... |
local wibox = require("wibox")
local beautiful = require("beautiful")
local layouts = {}
function layouts.create_titlebar(c, titlebar_buttons, titlebar_position, titlebar_size)
awful.titlebar(c, {font = beautiful.titlebar_font, position = titlebar_position, size = titlebar_size}) : setup {
{
buttons = ti... |
require("neogit").setup {
integrations = {
diffview = true,
},
}
|
function DbgTraceBack(lvl, len, offset)
local trace = debug.traceback()
trace = trace:gsub('\r', '')
local lines = split(trace, '\n')
local start = 3 + (offset or 0)
local stop = #lines
if(len) then
stop = math.min(stop, start+len-1)
end
local tbl = {}
for i = start, stop do
table.insert(tbl, li... |
local rgb = Color
local fetch = http.Fetch
local ImgurCache = {}
local URL = "https://libgmod.justplayer.de"
file.CreateDir("darklib/images")
local function Scale(base)
return math.ceil(ScrH() * (base / 1080))
end
local function LoadMaterial(imgur_id, callback)
if ImgurCache[imgur_id] ~= nil then
-- A... |
--[[
This script validates the value of EMBER_SUPPORTED_NETWORKS defined.
Multi-network is not supported with ZLL networks so the value of
EMBER_SUPPORTED_NETWORKS must be 1.
--]]
local zll_commissioning_common = slc.is_selected("zigbee_zll_commissioning_common")
local zll_commissioning_client = slc.is_sel... |
--
-- Copyright (C) 2015 L1b3r4t0r
--
|
local fio = require('fio')
local runner = require('luacov.runner')
-- Fix luacov issue. Without patch it's failed when `assert` is redefined.
function runner.update_stats(old_stats, extra_stats)
old_stats.max = math.max(old_stats.max, extra_stats.max)
for line_nr, run_nr in pairs(extra_stats) do
if type(li... |
local PlantGrowthBuffScript = class()
function PlantGrowthBuffScript:on_buff_added(entity, buff)
local orig_render_info = radiant.entities.get_component_data(entity:get_uri(), 'render_info')
local orig_mob = radiant.entities.get_component_data(entity:get_uri(), 'mob')
self._orig_scale = orig_render_info ... |
-- Collision detection taken function from http://love2d.org/wiki/BoundingBox.lua
-- Returns true if two boxes overlap, false if they don't
-- x1,y1 are the left-top coords of the first box, while w1,h1 are its width and height
-- x2,y2,w2 & h2 are the same, but for the second box
function RectangleCollide(x1,y1,w1,h1,... |
--===========================================================================--
-- Bulgarian --
--===========================================================================--
local translit = thirddata.translit
local pcache = translit.parser_cache
lo... |
--
-- Client API Emulation
--
-- Intended to be used for unit testing WoW addons.
--
-- !!WARNING!! Do not include in any WoW addon .toc file. !!WARNING!!
--
-- (c) Fitzcairn of Cenarion Circle
-- fitz.wowaddons@gmail.com
-- Include the utils file.
-- This will also error out the load if for some reason this is inc... |
---@class Time
local Time = {
-- [[Time Methods]] --
---Returns the total number of days that the time object represents.
---@param self Time
---@return number
toDays = function(self) end,
---Returns the total number of hours that the time object represents.
---@param self Time
---@re... |
tier=settings.startup["advanced-electric-enabled-tiers"].value
-- advanced accumulator
require("prototypes.entity.advanced-accumulator")
require("prototypes.item.advanced-accumulator")
if tier == "advanced" or tier == "elite" or tier == "ultimate" then
require("prototypes.crafting.advanced-accumulator")
require("pro... |
local ContentProvider = game:GetService("ContentProvider")
local includes = script.Parent
local Themer = require(includes:WaitForChild("Themer"))
---
local DOUBLE_CLICK_TIME = 0.5
local RIGHT_ARROW_IMAGE = "rbxassetid://367872391"
local DOWN_ARROW_IMAGE = "rbxassetid://913309373"
local SCROLLBAR_IMAGES = {
To... |
Locales['pl'] = {
['valid_this_purchase'] = 'Potwierdasz zakup?',
['yes'] = 'Tak',
['no'] = 'Nie',
['not_enough_money'] = 'Nie masz wystarczająco hajsu',
['press_menu'] = 'Kliknij ~INPUT_CONTEXT~ aby wyswietlic menu',
['clothes'] = 'Ubrania',
['you_paid'] = 'Zapłaciłeś ~g~$%s~s~',
['save_in_dressing'] =... |
function indexOf(haystack, needle)
for idx,straw in pairs(haystack) do
if straw == needle then
return idx
end
end
return -1
end
function getDigits(n, le, digits)
while n > 0 do
local r = n % 10
if r == 0 or indexOf(digits, r) > 0 then
return fals... |
-----------------------------------------
-- Spell: Cura
-- Restores hp in area of effect. Self target only
-- From what I understand, Cura's base potency is the same as Cure II's.
-- With Afflatus Misery Bonus, it can be as potent as a Curaga III
-- Modeled after our cure_ii.lua, which was modeled after the below refe... |
require("CLRPackage")
Forms = CLRPackage("System.Windows.Forms", "System.Windows.Forms")
Drawing = CLRPackage("System.Drawing", "System.Drawing")
LuaInterface = CLRPackage("LuaInterface", "LuaInterface")
IO = CLRPackage("System.IO", "System.IO")
System = CLRPackage("System", "System")
Form=Forms.Form
TextBox=Forms.Te... |
local help = [[
-- That didn't work. Are you doing something like this?
require "try_catch"
try {
function()
-- Do your thing here
error('oops')
-- Code after an error never executed
end,
catch { -- optional
function(error)
print('caught error: ' .. error)
end
},
ensure { -- option... |
local M = {}
-- Default options for the theme
M.config = {
-- This enables the Neovim background to set either onedark or onelight
dark_theme = "onedark", -- The default dark theme
light_theme = "onelight", -- The default light theme
theme = function()
if vim.o.background == "dark" then
... |
function SetPedsToCalm(exists, handle, iter)
if exists then
SetBlockingOfNonTemporaryEvents(handle, true)
SetPedFleeAttributes(handle, 0, 0)
SetPedCombatAttributes(handle, 17, 1)
local exists, handle = FindNextPed(iter)
SetPedsToCalm(exists, handle, iter)
else
EndFindPed(iter)
end
end
Cit... |
local M = {}
M.config = function()
local g = vim.g
vim.o.termguicolors = true
--nvimtree
g.nvim_tree_side = "left"
g.nvim_tree_width = 25
g.nvim_tree_ignore = {".git", "node_modules", ".cache"}
g.nvim_tree_auto_open = 0
g.nvim_tree_auto_close = 0
g.nvim_tree_quit_on_open = 0
g.nvim_tree_follow = 1
g.nvim_tree_indent... |
function bitflag(address, bit)
return {
address = address,
bit = bit
}
end |
local module = {async = true}
local common = game:GetService('ReplicatedStorage').Common
local effects = require(common.Gui.Effects)
local fader = require(common.Fade)
local phases = {
require(script.Assets),
require(script.Data),
}
local loaded = Instance.new('BindableEvent')
local total = #phases
local finis... |
local Cell = require 'src/ConwaysGameOfLife/Cell'
local life_state = require 'src/ConwaysGameOfLife/life_state_enum'
local function table_length(t)
local count = 0
for _ in pairs(t) do count = count + 1 end
return count
end
local function get_number_of_live_neighbors_in_col(state, row, col)
if col >= 1 and co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.