content stringlengths 5 1.05M |
|---|
-----------------------------------
-- Area: Northern San d'Oria
-- NPC: Cheupirudaux
-- Type: Woodworking Guildmaster NPC
-- Involved in Quest: It's Raining Mannequins!
-- !pos -138 12 250 231
-----------------------------------
local ID = require("scripts/zones/Northern_San_dOria/IDs");
require("scripts/globals/craf... |
local datetime = require "datetime"
local nmap = require "nmap"
local shortport = require "shortport"
local snmp = require "snmp"
local string = require "string"
description = [[
Attempts to extract system information from an SNMP version 1 service.
]]
---
-- @usage
-- nmap -sU -p 161 --script snmp-sysdescr <target>
... |
--lune/base/Json.lns
local _moduleObj = {}
local __mod__ = '@lune.@base.@Json'
local _lune = {}
if _lune6 then
_lune = _lune6
end
function _lune.loadModule( mod )
if __luneScript then
return __luneScript:loadModule( mod )
end
return require( mod )
end
function _lune.__isInstanceOf( obj, class )
w... |
--[[
Copyright (c) 2012 Kevin Sacro
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, distribu... |
--- Abstract class to define elements with a getState method.
--
-- Element class: <none>
--
-- Extends: Element
--
-- Extended by:
-- <ul>
-- <li>ElementWithToggle</li>
-- <li>LaserDetectorUnit</li>
-- <li>ManualButtonUnit</li>
-- <li>PressureTileUnit</li>
-- </ul>
--
-- @see Element
-- @see ElementWithToggle
... |
-- https://github.com/aerospike/aerospike-lua-core/blob/master/src/as.lua
Util = {
merge = function(m1, m2)
local mm = {}
for k, v in pairs(m1) do mm[k] = v end
for k, v in pairs(m2) do mm[k] = v end
return mm
end,
contains = function(tab, val)
for _, value in ipairs(... |
PANEL.Base = "DPanel"
function PANEL:Init()
self:SetSize(64, 64)
self.Size = 64
end
function PANEL:Paint()
if not self.Material then return end
DisableClipping(true)
if self.Material then
surface.SetDrawColor(255, 255, 255, 255)
surface.SetMaterial( self.Material )
... |
-- A Tool for metadata synchronization from media files to clips in MediaStore
-- Check the current operating system platform
platform = (FuPLATFORM_WINDOWS and 'Windows') or (FuPLATFORM_MAC and 'Mac') or (FuPLATFORM_LINUX and 'Linux')
local ui = fu.UIManager
local disp = bmd.UIDispatcher(ui)
win = disp:AddWindow({
... |
-----------------------------------------------
-- Application configuration file.
-----------------------------------------------
project "Application"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
staticruntime "on"
targetdir("%{wks.location}/build/bin/" .. outputdir .. "/%{prj.name}")
... |
if os.getenv "TERM" == "linux" then
return
end
local ok, colorizer = pcall(require, "colorizer")
if not ok then
print "after/plugin/colorizer.lua: install norcalli/nvim-colorizer.lua"
return
end
colorizer.setup()
|
local is51 = _VERSION == "Lua 5.1"
local string = require "string"
local io = require "io"
local table = require "table"
local coroutine = require "coroutine"
local debug = require "debug"
local assert = assert
local error = error
local type = type
local setmetatable = setmetatable
local getmetatable = ge... |
local Dta = select(2, ...)
Dta.help_ui = {}
local HelpWindowSettings = {
WIDTH = 820,
HEIGHT = 520,
CLOSABLE = true,
MOVABLE = true,
POS_X = "HelpwindowPosX",
POS_Y = "HelpwindowPosY"
}
function Dta.help_ui.buildHelpWindow()
local x = Dta.settings.get("HelpwindowPosX")
local y = Dta.settings.get("Helpwindow... |
local sundown = require 'sundown.env'
local C = sundown.C
local ffi = require 'ffi'
local bit
if _VERSION == 'Lua 5.2' or _VERSION == 'Lua 5.3' then
bit = require 'bit32'
else
bit = require 'bit'
end
require 'sundown.sdcdefs'
local c = {
none = '\27[0m',
black = '\27[0;30m',
red = '\27[0;31m',
gree... |
--[[
MIT License
Copyright (c) 2019-2020 Mitchell Davis <coding.jackalope@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
... |
local pressNext = true
local scrollPos = 0
local scrollTextLength = 0
local versionhttp = http.get("https://raw.githubusercontent.com/DJj123dj/simpleOS/main/version.txt")
local versiontext = versionhttp.readAll()
while pressNext do
term.setBackgroundColor(colors.cyan)
term.clear()
x,y = term.getSize()
... |
--------------------------------
-- @module Ref
-- @parent_module cc
--------------------------------
--
-- @function [parent=#Ref] setLuaDerivedRefId
-- @param self
-- @param #int refId
-- @return Ref#Ref self (return value: cc.Ref)
--------------------------------
--
-- @function [parent=#... |
#!/usr/bin/env lua
--[[
launch with:
lua -lunpack_dir -e 'main()'
]]
local posix = require "posix"
local p4_workspace = os.getenv("P4_WORKSPACE")
if (p4_workspace) then
package.path = package.path .. ";" .. p4_workspace .. "/DebLua/?.lua"
end
-- shell utils
require "lua_shell"
local CWD = ""
---- main -------... |
---@alias tts__GridType 1 | 2 | 3
---@alias tts__GridSnapping 1 | 2 | 3 | 4
---@class tts__GlobalGrid
---@field type tts__GridType
---@field show_lines boolean
---@field color tts__Color @TODO: Luanalysis limitation at time of writing. Technically the "setter" ought to be typed tts__ColorShape
---@field opacity number... |
local F, C = unpack(select(2, ...))
C.themes["Blizzard_TimeManager"] = function()
TimeManagerGlobe:Hide()
TimeManagerStopwatchCheck:GetNormalTexture():SetTexCoord(unpack(C.TexCoord))
TimeManagerStopwatchCheck:SetCheckedTexture(C.media.checked)
F.CreateBG(TimeManagerStopwatchCheck)
TimeManagerAlarmHourDropDown:S... |
local Parser = require "argparse"
getmetatable(Parser()).error = function(_, msg) error(msg) end
describe("actions", function()
it("for arguments are called", function()
local parser = Parser()
local foo
parser:argument("foo"):action(function(_, _, passed_foo)
foo = passed_foo
end)
... |
local skynet = require 'skynet'
local snax = require 'skynet.snax'
local cache = require "skynet.codecache"
local app_sys = require 'app.sys'
local event = require 'app.event'
local ioe = require 'ioe'
G_APP_NAME = 'APP'
local app = nil
local app_closing = false
local app_installing = false
local app_name = "UNKNOWN"... |
--Initialize map behavior specific to this quest.
require"scripts/multi_events"
local map_meta = sol.main.get_metatable"map"
--===================================================================================--
map_meta:register_event("on_started", function(self)
local map = self
local hero = map:get_hero()
l... |
-- TypeRender.lua
-- @Author : DengSir (tdaddon@163.com)
-- @Link : https://dengsir.github.io
-- @Date : 10/16/2018, 4:39:54 PM
--
---@type ns
local ns = select(2, ...)
local tostring = tostring
local format = string.format
---@class TypeRender
local TypeRender = setmetatable({}, {
__index = function(t)
... |
--------------------------------
-- @module ProgramState
-- @extend Ref
-- @parent_module ccb
---@class ccb.ProgramState:ccb.Ref
local ProgramState = {}
ccb.ProgramState = ProgramState
--------------------------------
--- Set texture.
--- param uniformLocation Specifies texture location.
--- param slot Specifies tex... |
local fs = require("filesystem")
local shell = require("shell")
local args, options = shell.parse(...)
if #args < 1 then
io.write("Usage: label [-a] <fs> [<label>]\n")
io.write(" -a File system is specified via label or address instead of by path.\n")
return 1
end
local proxy, reason
if options.a th... |
--ELF·莉莎
function c1190004.initial_effect(c)
--
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOGRAVE+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCountLimit(1,1190004)
e1:SetTarget(c1190004.tg1)
e1:Set... |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local common = ReplicatedStorage:WaitForChild("common")
local models = ReplicatedStorage:WaitForChild("assetmodels")
local Assets = require(common:WaitForChild("Assets"))
local cataFuncs = {
hat = function(id, asset)
local hatModel = models:W... |
-- Copyright 2011-15 Paul Kulchenko, ZeroBrane LLC
-- authors: Lomtik Software (J. Winwood & John Labenski)
-- Luxinia Dev (Eike Decker & Christoph Kubisch)
---------------------------------------------------------
local ide = ide
local frame = ide.frame
local menuBar = frame.menuBar
local uimgr = frame.uimgr
local v... |
-- Path of Building
--
-- Module: Mod List
-- Stores modifiers in a flat list
--
local launch, main = ...
local ipairs = ipairs
local pairs = pairs
local select = select
local t_insert = table.insert
local m_floor = math.floor
local m_min = math.min
local m_max = math.max
local m_modf = math.modf
local band = bit.band... |
--[=[
Serverside implementation of IKRig
@server
@class IKRig
]=]
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Constants = require(ReplicatedStorage.Knit.Util.Additions.KnitConstants)
local CharacterUtility = require(ReplicatedStorage.Knit.Util.Add... |
local Component = require "component"
local RealityDistortion = Component:extend()
RealityDistortion.name = "RealityDistortion"
RealityDistortion.requirements = {
}
function RealityDistortion:initialize()
end
return RealityDistortion
|
local FiltersOkay = function()
local minSteps = SL.Global.ActiveFilters["MinSteps"]
local maxSteps = SL.Global.ActiveFilters["MaxSteps"]
local minDifficulty = SL.Global.ActiveFilters["MinDifficulty"]
local maxDifficulty = SL.Global.ActiveFilters["MaxDifficulty"]
local minJumps = SL.Global.ActiveFilters["MinJu... |
local PAGE = {}
PAGE.toolTipPanel = nil
function PAGE:ShowTooltip(parent, title, text, xPos, yPos)
if self.toolTipPanel ~= nil then
self.toolTipPanel:Remove()
end
self.toolTipPanel = vgui.Create("DPanel", parent)
self.toolTipPanel:SetSize(145, 190)
--if xPos + 140 + 10 > ScrW() then
-- xPos = xPos - 145 - ... |
BomberWarNpc = {
redWin = function()
local pc = core:getObjectsInMap(15050, BL_PC)
core.gameRegistry["bomber_war_playing"] = 0
broadcast(
15050,
"-----------------------------------------------------------------------------------------------------"
)
broadcast(15050, "Red Team Wins!")
broadcast(15050... |
CreateConVar("pd_enabled", 1, {FCVAR_SERVER_CAN_EXECUTE, FCVAR_NOTIFY, FCVAR_ARCHIVE}, "Enable/Disable Prop Destruction")
CreateConVar("pd_recovering", 1, {FCVAR_SERVER_CAN_EXECUTE, FCVAR_NOTIFY, FCVAR_ARCHIVE}, "Enable/Disable props' recovering")
CreateConVar("pd_poor", 0, {FCVAR_SERVER_CAN_EXECUTE, FCVAR_NOTIFY, FC... |
AddCSLuaFile()
ENT.Base = "gballoon_tower_base"
ENT.Type = "anim"
ENT.PrintName = "Proximity Mine"
ENT.Category = "RotgB: Towers"
ENT.Author = "Piengineer"
ENT.Contact = "http://steamcommunity.com/id/Piengineer12/"
ENT.Purpose = "This tower very slowly creates explosions that deal damage to everything in its radius."
... |
ccs = ccs or {}
---Timeline object
---@class Timeline : Ref
local Timeline = {}
ccs.Timeline = Timeline
--------------------------------
--
---@return Timeline
function Timeline:clone() end
--------------------------------
--
---@param frameIndex int
---@return Timeline
function Timeline:gotoFrame(frameIndex) end
--... |
local CompilerOptions = {}
CompilerOptions.__index = {}
function CompilerOptions.new(partial_options)
return CompilerOptions.constructor(setmetatable({}, CompilerOptions), partial_options)
end
function CompilerOptions.constructor(self, partial_options)
self.root_dir = partial_options.root_dir or error("root directo... |
return {'psyche','psychedelica','psychedelicum','psychedelisch','psychiater','psychiatrie','psychiatrisch','psychisch','psychoactief','psychoanalyse','psychoanalytica','psychoanalyticus','psychoanalytisch','psychobiologie','psychodiagnostiek','psychodrama','psychodynamiek','psychodynamisch','psychofarmaca','psychofarma... |
-- Copyright (c) 2015-present, 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.
local class = req... |
cc = cc or {}
---ShuffleTiles object
---@class ShuffleTiles : TiledGrid3DAction
local ShuffleTiles = {}
cc.ShuffleTiles = ShuffleTiles
--------------------------------
---brief Initializes the action with grid size, random seed and duration.<br>
---param duration Specify the duration of the ShuffleTiles action. It's a... |
cflags{'-Wall', '-Wextra', '-I $dir'}
file('bin/sinit', '755', exe('sinit', {'sinit.c'}))
man{'sinit.8'}
fetch'git'
|
adc.force_init_mode(adc.INIT_ADC)
GP2Y10_OUT_PIN = 7
AD_ID = 200
AD_WARN_NUM = 0
gpio.mode(GP2Y10_OUT_PIN, gpio.OUTPUT)
gpio.write(GP2Y10_OUT_PIN, gpio.HIGH)
function GP2Y10_read()
gpio.write(GP2Y10_OUT_PIN, gpio.LOW)
tmr.delay(180)
local val = adc.read(0)
tmr.delay(40)
gpio.write(GP2Y10_OUT_PIN,... |
--[[
Setup pyright language server. Also set some filetype-specific options.
--]]
if not vim.b.did_user_ftplugin then
local pyright = require("lspconfig").pyright
if not pyright.manager then
pyright.setup{
settings = {
python = {
analysis = {
autoImportCompletions = true... |
local _M = {}
local function _StrIsEmpty(s)
return s == nil or s == ''
end
local function _UploadUserId(req_id, user_id, username, carrier)
local GenericObjectPool = require "GenericObjectPool"
local UserServiceClient = require "social_network_UserService"
local ngx = ngx
local user_client = GenericObjectP... |
--------------------------------
-- @module ParallaxNode
-- @extend Node
--------------------------------
-- overload function: getParallaxArray()
--
-- overload function: getParallaxArray()
--
-- @function [parent=#ParallaxNode] getParallaxArray
-- @param self
-- @return _ccArray#_ccArray ret (re... |
project "GLAD"
location "glad"
kind "StaticLib"
language "C"
cdialect "C11"
warnings "Off"
targetdir(dirbin)
objdir(dirobj)
files
{
"glad/include/glad/glad.h",
"glad/include/KHR/khrplatform.h",
"glad/src/glad.c"
}
includedirs
{
"glad/inc... |
--[[
Title: page store
Author(s): big
Date: 2018.8.17
Desc:
use the lib:
------------------------------------------------------------
NPL.load("(gl)Mod/WorldShare/store/Page.lua")
local PageStore = commonlib.gettable('Mod.WorldShare.store.Page')
------------------------------------------------------------
]]
local ... |
--[[
Name: "cl_scoreboard.lua".
Product: "kuroScript".
--]]
local PANEL = {};
-- Called when the panel is initialized.
function PANEL:Init()
self:SetSize(kuroScript.menu.width, kuroScript.menu.height);
-- Set some information.
self.panelList = vgui.Create("DPanelList", self);
self.panelList:SetPadding(2);
se... |
---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0042-transfer-invalid-image-rpc.md
--
-- Requirement summary:TBD
--
-- Description:
-- In case:
-- 1. Mobile app requests ShowConstantTB... |
trap = true
active = true;
closed_entity = {}
Editor.setPropertyType(this, "closed_entity", Editor.ENTITY_PROPERTY)
function triggerTrap()
active = false
this.model_instance.enabled = false
closed_entity.model_instance.enabled = true
end |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj)
ESX = obj
end)
RegisterServerEvent('esx_gym:hireBmx')
AddEventHandler('esx_gym:hireBmx', function()
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
if(xPlayer.getMoney() >= 50) then
xPlayer.removeMoney(50)
notification("Tu a... |
local a = vim.api
local ui = require'gameoflife.ui'
local STATE = require'gameoflife.const'.STATE
local rle = require'gameoflife.rle'
local M = {}
local _ctx = {}
local MAX_GENERATION = 100
local is_live = function(row, col)
if row == 0 or row > _ctx.size.rows or
col == 0 or col > _ctx.size.cols then
-... |
--[[
savefile-data.lua
Copyright (C) 2016-2019 Kano Computing Ltd.
License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPLv2
This file gets saved in the SaveDirectory setup by LÖVE 2D.
-- Windows XP: C:\Documents and Settings\user\Application Data\LOVE\ or %appdata%\LOVE\
-- Windows Vista and 7: C:\Users\user\AppDat... |
PJ_QUESTS = PJ_QUESTS or {}
local mod = PJ_QUESTS
mod.move_mission_sjoktraken_payload = function(char)
-- add snow attrition immunity and add movement range
local ceb = cm:create_new_custom_effect_bundle("wh2_main_encounter_at_sea_campaign_1")
ceb:set_effect_value(ceb:effects():item_at(0), 500)
ceb:set_duration(-1... |
if SERVER then
-- Reset the variable to enable shadows.
-- Prop players spawn with a new prop with shadows on anyway.
local function PlayerSpawn( ply )
timer.Simple( 0.2, function()
ply:SetNWBool( "ShadowToggle", true )
end )
end
hook.Add( "PlayerSpawn", "ShadowToggle.PlayerSpawn", PlayerSpa... |
-- retrolove.lua
-- Copyright (c) 2018 Jon Thysell
local retrolove = {}
function retrolove.load()
local menu = require "menu"
retrolove.mainMenu = menu.Menu:new({})
-- load games
local pong = require "pong.pong"
retrolove.mainMenu:addGame(pong.Pong:new({}))
local breakout = require "breakout... |
--[[
Data sampling/fetching functions.
]]
-------------------------------------------------------------------------------
-- Data loading functions
-------------------------------------------------------------------------------
local function get_db_loader(name)
local dbc = require 'dbcollection'
local ... |
-- --------------------
-- TellMeWhen
-- Originally by Nephthys of Hyjal <lieandswell@yahoo.com>
-- Other contributions by:
-- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol,
-- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune
-- Currently maintained by
-- Cybeloras... |
local shortport = require "shortport"
local stdnse = require "stdnse"
local table = require "table"
local bin = require "bin"
local nmap = require "nmap"
local os = require "os"
local string = require "string"
local sslcert = require "sslcert"
description = [[
Retrieves a target host's time and date from its TLS Serve... |
local M = {}
function M.setup()
local options = {
shorten_path = false,
layout_strategy = 'horizontal',
layout_config = {
preview_width = 0.65,
height = 10,
},
}
function _G.__telescope_files()
-- Launch file search using Telescope
-- ... |
if not ngx then
ngx = {}
end
--- web socket 版本 API
local server = require "resty.websocket.server"
local cjson = require "cjson"
local ws_command = require("suma_websocket_command");
--create connection
local wb, err = server:new{
timeout = 60000,
max_payload_len = 65535
}
local trace = function (str)
n... |
tusken_king_quest = Creature:new {
objectName = "@mob/creature_names:tusken_king_quest",
socialGroup = "tusken_raider",
faction = "tusken_raider",
level = 95,
chanceHit = 0.9,
damageMin = 630,
damageMax = 970,
baseXp = 9057,
baseHAM = 22000,
baseHAMmax = 27000,
armor = 2,
resists = {45,35,5,80,-1,50,5,5,-1}... |
-- a module for managing the various stone files
local function installStone(repo, stone, version) -- TODO: implement
end
local function uninstallStone(repo, stone, version) -- TODO: implement
end
local function checkUpdateStone(repo, stone) -- TODO: implement
end
local function updateStone(repo, stone) ... |
-- Author: github.com/ipatch
-- my experiemental neovim ≥ 0.5 configuratoin/setup
-- Inspiration: https://github.com/David-Kunz/vim/blob/master/init.lua
-- helpers
local cmd = vim.cmd -- to execute Vim commands e.g. cmd('pwd')
local fn = vim.fn -- to call Vim functions e.g. fn.bufnr()
local g = vim.g -- a tab... |
local hiredis = require 'hiredis'
local _M = {}
local mt = { __index = _M }
local bit = require "bit"
local bxor = bit.bxor
local band = bit.band
local lshift = bit.lshift
local rshift = bit.rshift
local len = string.len
local sub = string.sub
local gsub = string.gsub
local format... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' 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... |
-- Modified to support full team size instead of hardcoded 3, not hugely relevant as is a bot thing.
function GroupAIStateBase:on_criminal_team_AI_enabled_state_changed()
local num_player_slots = BigLobbyGlobals:num_player_slots() - 1
-- Only code changed was replacing hardcoded 3 with variable num_player_slots
if ... |
--[[
Name: "sh_alcohol_base.lua".
Product: "kuroScript".
--]]
local ITEM = {};
-- Set some information.
ITEM.name = "Alcohol Base";
ITEM.useText = "Drink";
ITEM.category = "Alcohol";
ITEM.expireTime = 120;
ITEM.isBaseItem = true;
-- Called when a player uses the item.
function ITEM:OnUse(player, itemEntity)
if (sel... |
local addon_name, addon_env = ...
-- [AUTOLOCAL START]
local C_Garrison = C_Garrison
local LE_FOLLOWER_TYPE_GARRISON_6_0 = LE_FOLLOWER_TYPE_GARRISON_6_0
local LE_GARRISON_TYPE_6_0 = LE_GARRISON_TYPE_6_0
local wipe = wipe
-- [AUTOLOCAL END]
local getters = {}
local cache = setmetatable({}, { __index = function(t, key)... |
---
-- @module KARMA
KARMA = {}
---
-- Returns whether the KARMA is enabled
-- @return boolean
-- @realm client
function KARMA.IsEnabled()
return GetGlobalBool("ttt_karma", false)
end
|
local common = {}
function common.append(object, what)
local target = object
local mt = getmetatable(object)
if mt then target = mt.__index end
for name, method in pairs(target) do
local overload = function(...)
return what(method, ...)
end
target[name] = over... |
game.Workspace.Hats:FireServer("Dominus Empyreus'", 0) |
local NXFS = require "nixio.fs"
local SYS = require "luci.sys"
local HTTP = require "luci.http"
local DISP = require "luci.dispatcher"
local UTIL = require "luci.util"
ful = SimpleForm("upload", nil)
ful.reset = false
ful.submit = false
m = Map("clash")
s = m:section(TypedSection, "clash")
s.anonymous = true
s.add... |
local S = farming.intllib
-- Melón piel de sapo (aka Toadskin or Santa Claus melon)
minetest.register_craftitem("farming:toadskin_slice", {
description = S("Santa Claus Melon Slice"),
inventory_image = "farming_pieldesapo_slice.png",
groups = {seed = 2, food_toadskin_slice = 1, flammable = 3},
on_place = function... |
local function disect_argument(str)
local _, symbol, key, value
local negated = false
_, _, symbol, key = str:find("^([%-]*)(.*)")
if key then
local actual_key
-- split value and key
_, _, actual_key, value = key:find("([^%=]+)[%=]?(.*)")
if value then
key = actual_key
end
if ... |
local F, C = unpack(select(2, ...))
tinsert(C.themes["FreeUI"], function()
F.ReskinPortraitFrame(TabardFrame)
F.CreateBD(TabardFrameCostFrame, .25)
F.Reskin(TabardFrameAcceptButton)
F.Reskin(TabardFrameCancelButton)
F.ReskinArrow(TabardCharacterModelRotateLeftButton, "left")
F.ReskinArrow(TabardCharacterModelRot... |
local optim = lt.optim
local adam, parent = torch.class('lt.adam', 'lt.optimizer_base')
--[[
Required parameters:
* `tensor_type`
* `tensor_size`
Optional Parameters:
* `step_size`: Default is 1e-3.
* `beta_1`: Default is 0.9.
* `beta_2`: Default is 0.999.
* `epsilon`: Default is 1e-8.
* `logger`
--]]
functio... |
#!/bin/sh
_=[[
. "${0%%/*}/regress.sh"
exec runlua "$0" "$@"
]]
--
-- Issue #141 -- Lua/C accept method binding doesn't check whether the
-- socket has already been closed, passing a NULL socket object to low-level
-- so_accept routine. Fix was to use the lso_checkself utility routine like
-- every other method, whic... |
-- 自定义函数指针
local type = type
local setmetatable = setmetatable
local s_find = string.find
local t_insert = table.insert
local t_remove = table.remove
local u_object = require("app.utils.object")
local u_base = require("app.utils.base")
local model = u_base:extend()
------------------------------------------ 通用配置信息,... |
--[[
© 2020 TERRANOVA Civil Protection System
Configuration file
--]]
-- [[ Config settings ]] --
cpSystem.config.cpDefaultDescription = "This is the default description for CPs, set it in the config file.";
cpSystem.config.notification = {
faction = "MPF",
title = "UNIT!",
sound = "sound/terranova/ui/notificat... |
local mod = getfenv(1)
assert(mod)
local self = getfenv(1)
function OnCombat(Unit, Event)
self[tostring(Unit)] = {
ribbon = math.random(2, 5),
scream = math.random(5, 10),
avatar = true,
ssteal = 1
}
local say_text = math.random(3)
if(say_text == 1) then
Unit:SendChatMessage(14, 0, "You will pay with you... |
mhf = require("schema_processor")
unistd = require("posix.unistd");
local xml_string = [=[<?xml version="1.0" encoding="UTF-8"?>
<ns1:sequence_ina_choice_struct xmlns:ns1="http://test_example.com">
<one>one</one>
<author>adfas</author>
<title>adfas</title>
<genre>adfas</ge... |
#!/usr/bin/env lua
SDL = require 'SDL2'
require 'SDL2.video'
require 'SDL2.timer'
pos = SDL.WINDOWPOS_CENTERED
window = SDL.CreateWindow('Test Window', pos, pos, 400, 300, SDL.SHOWN)
SDL.Delay(5000)
SDL.HideWindow(window)
SDL.DestroyWindow(window)
|
local Rocrastinate = {}
Rocrastinate.createStore = require(script.createStore)
Rocrastinate.combineReducers = require(script.combineReducers)
Rocrastinate.Component = require(script.Component)
Rocrastinate.LoggerMiddleware = require(script.Middlewares.LoggerMiddleware)
Rocrastinate.InspectorMiddleware = require(scrip... |
require 'filesystem'
require 'utility'
local messager = require 'share.messager'
local root = require 'backend.w2l_path'
return function ()
local s = {}
local logfile = (root / 'log' / 'report.log'):string()
local f = io.open(logfile, 'r')
if not f then
return
end
for l in f:lines() do
... |
exports('ItemCancelled', function()
return cancelled
end)
InventorySearch = function(func, item, metadata)
if item then
if type(item) == 'string' then item = {item} end
if type(metadata) == 'string' then metadata = {type=metadata} end
local returnData = {}
for i=1, #item do
local item = string.lower(item[... |
--------------------------------
-- @module TransitionProgressRadialCCW
-- @extend TransitionProgress
-- @parent_module cc
--------------------------------
--
-- @function [parent=#TransitionProgressRadialCCW] create
-- @param self
-- @param #float t
-- @param #cc.Scene scene
-- @return TransitionProgressRadialCCW#... |
--[[
MIT License
Copyright (c) 2019 Michael Wiesendanger
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... |
local PiperPlacer = {}
function PiperPlacer.new(model)
local Placer = {}
Placer.Model = model
Placer.Rotation = 0
local endEvent = Instance.new("BindableEvent")
Placer.Ended = endEvent.Event
Placer.Valid = false
local previousPosition, previousNormal, previousCenter
function Placer:Update(position, normal,... |
-- COMPAT w/pre-0.9
local log = require "util.logger".init("net.httpserver");
local traceback = debug.traceback;
local _ENV = nil;
-- luacheck: std none
local function fail()
log("error", "Attempt to use legacy HTTP API. For more info see https://prosody.im/doc/developers/legacy_http");
log("error", "Legacy HTTP AP... |
local C = {}
function C.new(o, req)
o = o or {}
o.req = req
local Controller = require "sora.controller"
local parent = Controller:new(req)
setmetatable(
o,
{
__index = parent
}
)
return o
end
function C:index(statusCode, err, trace)
local Constant = require "sora.constant"
local statusString = Con... |
------------------------- BLUE BEAM 2 ---------------------------
beam_tint = {r=52, g=152, b=219}
local beam1 = {}
beam1.type = "beam"
beam1.name = "BlueBeam2"
beam1.flags = {"not-on-map"}
beam1.width = 0.5
beam1.damage_interval = 20
beam1.random_target_offset = true
beam1.action_triggered_automatically = false
beam... |
address = '255.255.255.255'
port = 67
|
function gadget:GetInfo()
return {
name = "Team Com Ends + dead allyteam blowup",
desc = "Implements com ends for allyteams + blows up team if no players left",
author = "KDR_11k (David Becker), Fast (René Jochum)",
date = "2020-04-19",
license = "Public domain",
layer = 1,
enabled = true
}
en... |
object_tangible_holiday_empire_day_component_rank_metal_plaque = object_tangible_holiday_empire_day_component_shared_rank_metal_plaque:new {
}
ObjectTemplates:addTemplate(object_tangible_holiday_empire_day_component_rank_metal_plaque, "object/tangible/holiday/empire_day/component/rank_metal_plaque.iff")
|
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor.
decorative_dooku_bust = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/tcg/series1/decorative_dooku_bust.iff",
craftingValues = {
},
customizationStringNames = {},
customizationValues = {},
... |
local _kpi_event = {}
local function build(kpi_id)
local now = os.time()
local retval = {
kpi_id = kpi_id,
_type = 393221,
end_time = 0,
impact_level = 1,
in_downtime = 2,
first_output = "first output",
first_perfdata = "0p;0;100",
start_time = 30,
status = 1,
}
return retva... |
local jsonLib = require('lunajson')
-- https://github.com/grafi-tt/lunajson
local NULL = {}
return {
decode = function(value)
jsonLib.decode(value, nil, NULL)
end,
encode = function(value)
jsonLib.encode(value, NULL)
end,
null = NULL,
}
|
return {
extend = function (self, subtype)
return setmetatable(subtype or {}, {
__index = self,
__call = function (self, ...)
local instance = setmetatable({}, { __index = self })
return instance, instance:constructor(...)
end
})
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.