content stringlengths 5 1.05M |
|---|
--[[---------------------------------------------------------
Fonts: Font
-----------------------------------------------------------]]
fontsTable = {
{
file = 'Segoe UI Semibold',
name = 'segoe_semibold',
weight = 400,
from = 0,
to = 5
},
{
file = 'Segoe UI',
name = 'segoe_bold',
weig... |
kkorrwrot = Creature:new {
customName = "Kkorrwrot",
socialGroup = "kkorrwrot",
faction = "",
level = 187,
chanceHit = 0.9,
damageMin = 860,
damageMax = 1650,
baseXp = 12500,
baseHAM = 125000,
baseHAMmax = 185000,
armor = 2,
resists = {0,0,0,0,0,0,0,-1,-1},
meatType = "",
meatAmount = 0,
hideType = "",
... |
harmonia = rawget(_G, "harmonia") or {}
harmonia.passive = harmonia.passive or {}
local DATA_DOMAIN = "harmonia_passive"
local passive_system = harmonia_passive.PassiveSystem:new(DATA_DOMAIN)
minetest.register_on_mods_loaded(passive_system:method("init"))
minetest.register_on_shutdown(passive_system:method("terminate... |
local jid_bare = require "util.jid".bare;
local um_get_roles = require "core.usermanager".get_roles;
local function load_main_host(module)
-- Check whether a user should be isolated from remote JIDs
-- If not, set a session flag that allows them to bypass mod_isolate_host
local function check_user_isolated(event)
... |
-- data.lua
require("item")
require("housing")
require("food")
require("consumer-product")
|
-- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!
-- This file is automaticly generated. Don't edit manualy!
-- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!
---[Wowpedia documentation](https://wow.gamepedia.com/API_CanUpgradeExpansion)
---@return boolean @canUpgradeExpansion
function CanUpgradeExpa... |
-------------------------------------------------------------------
-- This script is created by zdroid9770; please do not edit this --
-- script and claim it as your own, as of All rights are claimed --
-- by me. --
-- Copyright (c) zdroid9770 ... |
local Virovirokun, super = Class("virovirokun", true)
function Virovirokun:init()
super:init(self)
if Game:getPartyMember("susie"):getFlag("auto_attack") then
self:registerAct("Warning")
end
self.susie_warned = false
self.asleep = false
self.become_red = false
self:registerAct("... |
--[[
SF LPeg library by Mijyuoon.
]]
--- LPeg library, allows for advanced pattern matching.
-- @shared
local lpeg_lib, _ = SF.Libraries.Register("lpeg")
local patt_mt = debug.getmetatable(lpeg.P(true))
local lp_methods, lp_meta = SF.Typedef("Pattern")
local wrap, unwrap = SF.CreateWrapper(lp_meta, true, false, pat... |
local self = {}
local ctor = GLib.MakeConstructor (self, GLib.Vector)
function GLib.ColumnVector (h, ...)
return ctor (1, h, ...)
end
function self:SetElementCount (elementCount)
self.Height = elementCount
end |
local addon = LibStub("AceAddon-3.0"):GetAddon("WSAttendance")
addon.util = {}
local GetNumGroupMembers, GetNumGuildMembers, GetGuildRosterInfo = GetNumGroupMembers, GetNumGuildMembers, GetGuildRosterInfo
local IsInRaid = IsInRaid
function addon.util.IterateGuildMembers()
local i = 0
local max = GetNumGuildMe... |
return {
{
effect_list = {
{
type = "BattleBuffAddAttrRatio",
trigger = {
"onAttach"
},
arg_list = {
attr = "loadSpeed",
number = 800
}
},
{
type = "BattleBuffFixVelocity",
trigger = {
"onAttach",
"onRemove"
},
arg_list = {
add = 3,
mul ... |
local Players = game:GetService("Players")
local Modules = Players.LocalPlayer.PlayerGui.AvatarEditorInGame.Modules
local Action = require(Modules.Common.Action)
return Action(script.Name, function(itemDetailsExpanded)
return {
itemDetailsExpanded = itemDetailsExpanded,
}
end) |
help(
[[
This module loads Git 1.9.0 into the environment. Git is a
source control module tool.
]])
whatis("Loads the Git SCM tools")
local version = "1.9.0"
local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/git/"..version
prepend_path("PATH", pathJoin(base, "bin"))
prepend_path("CPATH", pathJoin(base, ... |
dependency "vrp"
dependency "cops"
server_script {
"@vrp/lib/utils.lua",
"server.lua"
}
client_script {
"@vrp/lib/utils.lua",
"init.lua",
--"gui/gui.lua"
}
--ui_page("public/index.html")
files {
-- "public/index.html",
-- "public/main.js",
-- "public/style.css",
... |
io.stdout:setvbuf'no'
io.stderr:setvbuf'no'
local glue = require'glue'
local thread = require'thread'
local sock = require'sock'
local ffi = require'ffi'
local coro = require'coro'
local function test_addr()
local function dump(...)
for ai in assert(sock.addr(...)):addrs() do
print(ai:tostring(), ai:type(), ai... |
local pl = require'pl.import_into'()
return {
cmd = function(cmd)
end,
list_extend = function(dst, src)
pl.tablex.insertvalues(dst, src)
return dst
end,
tbl_contains = function(t, value)
local l = pl.List(t)
return l:contains(value)
end,
tbl_keys = function(t... |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('Gift_pb', package.seeall)
local GIFT = protobuf.Descriptor();
local GIFT_REWARDTYPEINDEX_FIELD = protobuf.FieldDescriptor();
local GIFT_ITEMID_FIELD = protobuf.FieldDescriptor();
local GIFT_TYPEID_FIELD = protobuf.FieldDescriptor()... |
dofile("myassert.lua")
-- type convertion tests
assert(tolua.type(A.last) == 'Tst_A') -- first time the object is mapped
assert(tolua.type(B.last) == 'Tst_B') -- type convertion to specialized type
assert(tolua.type(A.last) == 'Tst_B') -- no convertion: obj already mapped as B
local a = A:new()
assert(tolua.type(A.l... |
return {
"icons/life_flowerpot/life_flowerpot_038",
"icons/life_flowerpot/life_flowerpot_039",
"icons/life_flowerpot/life_flowerpot_040",
"icons/life_flowerpot/life_flowerpot_041",
"icons/life_flowerpot/life_flowerpot_042",
"icons/life_flowerpot/life_flowerpot_043",
"icons/life_flowerpot/life_flowerpot_044",
"icons/lif... |
fx_version 'cerulean'
game 'gta5'
shared_scripts {
"config.lua"
}
client_scripts {
"vehcontrol-c.lua",
"menu-c.lua"
}
server_scripts {
"vehcontrol-s.lua"
}
ui_page 'html/index.html'
files {
'html/index.html',
'html/css/main.css',
'html/css/RadialMenu.css',
'html/js/main.js',
'html/... |
wrk.method = "POST"
wrk.body = [[{ "query": "{ human(id: \"1000\") { name } }", "variables": null, "operationName": null }]]
wrk.headers["Content-Type"] = "application/graphql"
|
--[[
{Madwork}
-[RateLimiter]---------------------------------------
Prevents RemoteEvent spamming; Player references are automatically removed as they leave
Members:
RateLimiter.Default [RateLimiter]
Functions:
RateLimiter.NewRateLimiter(rate) --> [RateLimiter]
rate [number] -- Events per second allow... |
local ObjectManager = require("managers.object.object_manager")
corvetteRepairDroidConvoHandler = conv_handler:new {}
function corvetteRepairDroidConvoHandler:getInitialScreen(pPlayer, pNpc, pConvTemplate)
local convoTemplate = LuaConversationTemplate(pConvTemplate)
local pCorvette = SceneObject(SceneObject(pPlayer... |
--[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
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
$Id$
]]--
loc... |
print("character loaded")
function Character.OnInsert()
print("Character", tostring(this), "has been created")
this:GetPlayer():GetSelf():enableDennis()
if this:GetPlayer():GetSelf().prev_tuning ~= nil then
print("applying previous tuning!!")
this.Tuning = this:GetPlayer():GetSelf().prev_tuning:Copy()
end
e... |
local luasnip
if
not pcall(
function()
luasnip = require("luasnip")
end
)
then
return
end
luasnip.config.set_config(
{
history = true,
updateevents = "TextChanged,TextChangedI"
}
)
require("luasnip/loaders/from_vscode").load()
|
local lm = require 'luamake'
lm.EXE = "lua"
lm.EXE_RESOURCE = "../../make/lua-language-server.rc"
lm:import "3rd/bee.lua/make.lua"
lm:lua_dll 'lpeglabel' {
rootdir = '3rd',
sources = 'lpeglabel/*.c',
visibility = 'default',
defines = {
'MAXRECLEVEL=1000',
},
}
lm:build 'install' {
... |
-- {{ Log something with the check name as a prefix
function check_log(str)
print(check_name .. ': ' .. str)
end
-- }}
-- {{ Fetch the amount of seconds since a device was updated
function last_update(device_name)
local t1 = os.time()
local s = otherdevices_lastupdate[device_name]
local year = string.s... |
-- Sound ids for all of the whispers, divided into seperate tables for each old god. --
local CthunSounds = {
546633, 546620, 546621, 546623, 546626, 546627, 546628, 546636
}
local NzothSounds = {
2529827, 2529828, 2529829, 2529830, 2529831, 2529832, 2529833, 2529834, 2529835, 2529836, 2529837, 2529838, 2529839, 2... |
kboard.Specs = kboard.Specs or {}
kboard.Specs.Personal = kboard.Specs.Personal or {}
include("kleaderboards/kboard_config.lua")
include("kleaderboards/shared/sh_kboard.lua")
include("kleaderboards/client/cl_kboard_draw.lua")
include("kleaderboards/client/cl_kboard_leaderboards.lua")
include("kleaderboards/client/cl_k... |
display.setStatusBar( display.HiddenStatusBar )
local StickLib = require("libs.lib_analog_stick")
local physics = require ("physics")
physics.start()
local screenW = display.contentWidth
local screenH = display.contentHeight
local posX = display.contentWidth/2
local posY = display.contentHeight/2
-- local hero
-- lo... |
require ("lib.lclass.init")
class "FocusLostEvent"
function FocusLostEvent:FocusLostEvent ()
end
|
local tLibError = Apollo.GetPackage("Gemini:LibError-1.0")
local fnErrorHandler = tLibError and tLibError.tPackage and tLibError.tPackage.Error or Print
-- first load the submodule
local function loadModule(dir, file)
local func = assert(loadfile(dir..file..".lua"))
if func then
-- Does not handle mult... |
#!/usr/bin/env lua
-------------------------------------------------------------------------------
-- Description: unit test file for iptable
-------------------------------------------------------------------------------
package.cpath = "./build/?.so;"
describe("iptable.mask(af, num)", function()
expose("module... |
local WhiteNoise_local, Parent = torch.class('nn.WhiteNoise_local', 'nn.Module')
function WhiteNoise_local:__init(mean, std)
Parent.__init(self)
-- std corresponds to 50% for MNIST training data std.
self.mean = mean or 0
self.std = std or 0.1
self.noise = torch.Tensor()
end
function WhiteNoise_local:u... |
local M = { _NAME = "uri", VERSION = "1.0" }
M.__index = M
package.path = package.path..";./lib/uri/uri/?.lua"
local Util = require ("_util")
local _UNRESERVED = "A-Za-z0-9%-._~"
local _GEN_DELIMS = ":/?#%[%]@"
local _SUB_DELIMS = "!$&'()*+,;="
local _RESERVED = _GEN_DELIMS .. _SUB_DELIMS
local _USERINFO = "^[" .. _... |
--
--
--
local GameCreate = {}
local General = require ("src.logic.general")
local Explore = require ("src.control.gamestate.explore")
local Save = require ("src.control.save")
local MapGenerate = require ("src.logic.generation.map.mapgenerate")
-- Creates a new save game
-- Argument: save slot
function GameCreate.... |
-- {"regionName", xCenter, yCenter, shape and size, tier, {"spawnGroup1", ...}, maxSpawnLimit}
-- Shape and size is a table with the following format depending on the shape of the area:
-- - Circle: {CIRCLE, radius}
-- - Rectangle: {RECTANGLE, x2, y2}
-- - Ring: {RING, inner radius, outer radius}
-- Tier is a bit... |
local ffi = require("ffi")
local inspect = require("inspect")
require("allegro52")
local retval = false
local allegro = ffi.load("allegro_monolith-debug-5.2.dll")
local ALLEGRO_VERSION_INT = ffi.cast("int", 84018176)
retval = allegro.al_install_system(ALLEGRO_VERSION_INT, nil)
assert(retval == true)
retval = alleg... |
-- by Qige
-- 2016.04.05
-- 2017.01.03/2017.03.04
-- 2017.03.13: add local, change "require 'six.cmd'" to "local cmd = require 'six.cmd'"
local cmd = {}
function cmd.exec(_pstring)
local _result
if (_pstring and string.len(_pstring) > 0) then
local _sys = io.popen(_pstring)
_result = _sys:read("*all")
io.cl... |
urlp = require('rest_url_parser');
cjson = require('cjson.safe');
mongo = require('mongo');
roc_params = require('roc_db_param');
mcm = require('mongo_connection_manager');
local handlers = {};
--{
local function get_criteria_json_str(fields, query_params)
local criteria = {};
for _, f in ipairs(fields) do -- {
... |
-- test Lua cqr library
------------------------------------------------------------------------------
package.path = ''
ok, complex = pcall(require,"complex")
package.cpath = "./?.so"
H=require"cqr" -- class of quaternions is named 'H' for Hamilton
print(H._VERSION,'\n')
-- generic constructor
local construct = fu... |
--
-- codeblocks_workspace.lua
-- Generate a Code::Blocks workspace.
-- Copyright (c) 2009 Jason Perkins and the Premake project
--
function premake.codeblocks.workspace(sln)
_p('<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>')
_p('<CodeBlocks_workspace_file>')
_p(1,'<Workspace title="%s">', sln.name)... |
do
local _ = {
['pipe-to-ground'] = {
icon = '__base__/graphics/icons/pipe-to-ground.png',
close_sound = 0,
fast_replaceable_group = 'pipe',
collision_box = {{-0.29, -0.29}, {0.29, 0.2}},
corpse = 'pipe-to-ground-remnants',
fluid_box = ... |
Test = require('connecttest')
require('cardinalities')
local events = require('events')
local mobile_session = require('mobile_session')
---------------------------------------------------------------------------------------------
-----------------------------Required Shared Libraries---------------------------... |
return {'kedive','kedde'} |
Livre = "Livre"
Ocupado = "Ocupado"
Reservado = "Reser."
Estado_nao_reconhecido = "O estado que voce escreveu nao e nenhum dos seguintes: LIVRE, OCUPADO, RESERVADO"
Mesa_nao_existe = "A mesa que voce tentou acessar nao existe"
Pedir_a_hora_da_reserva = "Diga o horario da reserva"
|
object_tangible_quest_luilris_mushrooms = object_tangible_quest_shared_luilris_mushrooms:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_luilris_mushrooms, "object/tangible/quest/luilris_mushrooms.iff")
|
-- this is a simple demo module for reading
-- /writing files with strings.
local fs = {}
function fs.readstr(filename)
local f = io.open(filename, "rb")
local content = f:read("*all")
f:close()
return content
end
-- r = read
-- w = write or create
-- a = append
-- r+ = read/write
-- w+ = overwrite with r/w p... |
--[[
desc:扑克枚举
auth:Caorl Luo
]]
local class = require("class")
local gameEnum = require("game.enum")
---@class pokerEnum:gameEnum
local enum = class(gameEnum)
local this = enum
---构造
function enum:ctor()
end
return enum |
-- vim: ts=4:sw=4:expandtab
local cosock = require "cosock"
local classify = require "classify"
local Timer = require "timer"
local Parent = classify.single({
_init = function(_, self, name, latitude, longitude, height)
self.name = name
self.latitude = latitude
self.longitude = lo... |
local t = Def.ActorFrame {};
local txc = THEME:GetMetric ('EditableColors','FontColor');
local gc = Var('GameCommand');
-- menu selections
t[#t+1] = Def.ActorFrame {
LoadFont("Common Normal") .. {
Text=THEME:GetString('ScreenTitleMenu',gc:GetText());
InitCommand=cmd(diffuse,color(txc);y,60;horizalign,right);
Ga... |
namespace "standard"
local DebugHand = require "app.debug.hand"
local split = {}
local split2
local ui3
function split.makeSplitScreen(spec, force2d)
if force2d then
if not split2 then split2 = require "ent.ui2.split" end
return split2.SplitScreenEnt(spec)
else
if not ui3 then ui3 = require "ent... |
-------------------------------------------------------------------------------
-- Module Declaration
local mod, CL = BigWigs:NewBoss("Exarch Maladaar", 558, 524)
if not mod then return end
mod:RegisterEnableMob(18373)
-- mod.engageId = 1889 -- no boss frames
-- mod.respawnTime = 0 -- resets, doesn't respawn
-------... |
ITEM.name = "Desert Eagle"
ITEM.desc = "A slow yet powerful firearm that fires .50 AE Rounds"
ITEM.model = "models/weapons/w_stalker_deagle.mdl"
ITEM.class = "stalker_deagle"
ITEM.weaponCategory = "sidearm"
ITEM.width = 2
ITEM.height = 1
ITEM.price = 300 |
-- **************************************************************************
-- * TitanXP.lua
-- *
-- * By: TitanMod, Dark Imakuni, Adsertor and the Titan Panel Development Team
-- **************************************************************************
-- ******************************** Constants ****************... |
function request()
print('do it')
local conn = tls.createConnection(net.TCP, 0)
conn:on("connection", function(sck)
print('connected')
msg = 'GET /RemoteDevices/time HTTP/1.1\r\nHost: 192.168.1.7\r\n\r\n'
sck:send(msg)
end)
conn:on("reconnection", function(sck, c)
-... |
------------------------
-- General Settings --
------------------------
UNDO_DIR = os.getenv "HOME" .. "/.vim/undo/"
local M = {}
M.load_options = function()
local opt = vim.opt
local default_options = { -- create table of options
clipboard = "unnamedplus", -- allows neovim to access the system clip... |
TOOL.Name = "UnitTestsServer"
TOOL.Category = "Test"
TOOL.Directory = "../tests"
TOOL.EnableConsole = true
TOOL.Kind = "Application"
TOOL.TargetDirectory = TOOL.Directory
TOOL.Defines = {
"NDK_SERVER"
}
TOOL.Includes = {
"../include"
}
TOOL.Files = {
"../tests/main.cpp",
"../tests/Engine/**.hpp",
"../tests/Eng... |
local S = technic.worldgen.gettext
minetest.register_node( ":technic:mineral_uranium", {
description = S("Uranium Ore"),
tiles = { "default_stone.png^technic_mineral_uranium.png" },
is_ground_content = true,
groups = {cracky=3, radioactive=1},
sounds = default.node_sound_stone_defaults(),
drop = "technic:uraniu... |
-----------------------------------------------------------
-- Indent line configuration file
-----------------------------------------------------------
-- Plugin: indent-blankline
-- https://github.com/lukas-reineke/indent-blankline.nvim
require('indent_blankline').setup {
char = "▏",
show_first_indent_level =... |
local Hups = {}
function Hups.new(t)
local hup = {
vel = t.vel or 300,
game = t.game or false,
gameover = false,
segs = {{
x = t.x or 0,
y = t.y or 0,
a = t.a or 0,
r = t.r or 20,
col = t.hcol or {1.0,1.0,1.0}
}},... |
local _2afile_2a = "fnl/snap/view/view.fnl"
local _0_
do
local name_0_ = "snap.view.view"
local module_0_
do
local x_0_ = package.loaded[name_0_]
if ("table" == type(x_0_)) then
module_0_ = x_0_
else
module_0_ = {}
end
end
module_0_["aniseed/module"] = name_0_
module_0_["aniseed/... |
--
-- Copyright (c) 2016-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.
--
package.path... |
resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
dependency "vrp"
server_script {
"@vrp/lib/utils.lua",
"init-server.lua"
}
client_script {
"@vrp/lib/utils.lua",
"init-client.lua"
}
files {
"client.lua"
}
|
function factions.start_diplomacy(name, faction)
for l, i in factions.factions.iterate() do
local fac = factions.factions.get(l)
if l ~= name and not (faction.neutral[l] or faction.allies[l] or faction.enemies[l]) then
if factions_config.faction_diplomacy == true then
factions.new_neutral(name, l)
facti... |
local luarpc = require("luarpc")
local r = {}
-- Globals
local default_arq_interface = "interface.lua"
local states = {
FOLLOWER = "follower",
CANDIDATE = "candidate",
LEADER = "leader"
}
local msgs = {
OK = "ok",
NO = "no",
VOTE = "vote",
VOTEREQUEST = "voterequest",
HEARTBEAT = "bea... |
local M = {}
M.intersects = function(row, col, sRow, sCol, eRow, eCol)
if sRow > row or eRow < row then
return false
end
if sRow == row and sCol > col then
return false
end
if eRow == row and eCol < col then
return false
end
return true
end
return M
|
--[[
Copyright (C) 2018 HarpyWar (harpywar@gmail.com)
This file is a part of the plugin https://github.com/HarpyWar/ts3plugin_mybadges
]]--
require("ts3defs")
-- Run with "/lua run mybadges.clear"
local function clear(serverConnectionHandlerID)
mybadges_events.onMenuItemEvent(serverConnectionHandlerID, nil, 2, ni... |
-------------------------------------------------------------------
-- This script is created by zdroid9770; please do not edit this --
-- script and claim it as your own, as of All rights are claimed --
-- by me. --
-- Copyright (c) zdroid9770 ... |
local migrations = {
["yatm_machines:battery_bank_off"] = "yatm_energy_storage:battery_bank_off",
["yatm_machines:battery_bank_on"] = "yatm_energy_storage:battery_bank_on0",
["yatm_energy_storage:battery_bank_on"] = "yatm_energy_storage:battery_bank_on0",
["yatm_machines:battery_bank_error"] = "yatm_energy_stor... |
--- Map object. Inherited from @{l2df.class.entity.scene|l2df.class.entity.Scene} class.
-- @classmod l2df.class.entity.map
-- @author Abelidze
-- @copyright Atom-TM 2020
local core = l2df or require(((...):match('(.-)class.+$') or '') .. 'core')
assert(type(core) == 'table' and core.version >= 1.0, 'Entities works on... |
---------------------------------------------------------- dependencies -- ;
local capi = {root=root}
local naughty = require('naughty')
local gears = require("gears")
local awful = require("awful")
local beautiful = require('beautiful')
local modkey = "Mod4"
local altkey = "Mod1"
local machina = require("machina.me... |
module("EnemyEntity", package.seeall)
setmetatable(EnemyEntity, {__index=PlayerEntity})
function new(cid, propID)
local entity = {
}
setmetatable(entity, {__index=EnemyEntity})
entity:Init(cid, propID)
return entity
end
function Init(self, cid, propID)
PlayerEntity.Init(self, cid, propID)
self.t... |
-- 24RightAngles
-- Modified by CloneTrooper1019
local module = {}
local importer = script.Parent
local core = importer.Parent
local modules = core.Modules
local GuiUtilities = require(modules.GuiUtilities)
local ProgressFrame = require(modules.ProgressFrame)
local CustomTextButton = require(modules.CustomTextButton... |
------------------------------------------------------------------------
-- Copyright (C) 1994-2008 Lua.org, PUC-Rio. All rights reserved.
--
-- 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 Softwa... |
return {
include = function()
includedirs { "../vendor/nghttp2/lib/includes/" }
defines { '_SSIZE_T_DEFINED=1', '_U_=', 'NGHTTP2_STATICLIB' }
if os.istarget('windows') then
defines 'ssize_t=__int64'
else
-- check if this is a glibc distro
local succ, status, code = os.execute('ldd --version | grep... |
local t = {}
local function ScopedConnect(parentInstance, instance, event, signalFunc, syncFunc, removeFunc)
local eventConnection = nil
--Connection on parentInstance is scoped by parentInstance (when destroyed, it goes away)
local tryConnect = function()
if game:IsAncestorOf(parentInstance) then
--Entering ... |
--[[
Infinite Chest for Minetest
Copyright (c) 2012 cornernote, Brett O'Donnell <cornernote@gmail.com>
Source Code: https://github.com/cornernote/minetest-infinite_chest
License: BSD-3-Clause https://raw.github.com/cornernote/minetest-infinite_chest/master/LICENSE
API
]]--
infinite_chest = {}
infinite_chest.log ... |
addEvent('onRaceStateChanging', true)
addEventHandler('onRaceStateChanging', getRootElement(),
function(state)
local mode = getResourceRootElement(getResourceFromName'race') and getElementData(getResourceRootElement(getResourceFromName'race'), 'info') and getElementData(getResourceRootElement(getResourceFromName'... |
local npairs = require("nvim-autopairs")
local set_keymap = vim.api.nvim_set_keymap
npairs.setup()
_G.MUtils= {}
vim.g.completion_confirm_key = ""
MUtils.completion_confirm = function()
if vim.fn.pumvisible() ~= 0 then
if vim.fn.complete_info()["selected"] ~= -1 then
return vim.fn["compe#confirm"](npai... |
object_tangible_item_beast_converted_kliknik_decoration = object_tangible_item_beast_shared_converted_kliknik_decoration:new {
}
ObjectTemplates:addTemplate(object_tangible_item_beast_converted_kliknik_decoration, "object/tangible/item/beast/converted_kliknik_decoration.iff")
|
--local cjson = require('cjson')
local f = io.open("mblog.dat")
box.cfg{}
s = box.schema.space.create("bench", {engine="ws"})
s:create_index('a1')
local line_nu = 0;
data = {"a"}
--box.space.bench:insert({1}, {233, 2342})
offset = 0
lines = {}
for line in f:lines() do
line_nu = line_nu + 1
-- json = cjson.... |
local AddonName, AddonTable = ...
AddonTable.mechagon = {
-- King Gobbamak
169050, -- Logg
169035, -- Reclaimed Shock Coil
169052, -- Cranial Recalibrator
169054, -- Galvanized Leather Grips
169051, -- Anodized Plate Legguards
169053, -- Roughshod Chain Boots
169049, -- Supplicant's Soi... |
include("shared.lua")
local frame = nil
function CreateFrame()
if !frame or !frame:IsValid() then
local self = net.ReadEntity()
local Map = game.GetMap() or ""
if Map:find("gm_metrostroi") and Map:find("lite") then
Map = "gm_metrostroi_lite"
elseif Map:find("gm_metrostroi") then
Map = "gm_metrostroi"
e... |
-------------------------------------
-- 查看装备等级 Author: M
-------------------------------------
local LibEvent = LibStub:GetLibrary("LibEvent.7000")
local LibItemInfo = LibStub:GetLibrary("LibItemInfo.7000")
local E = unpack(ElvUI)
--裝備清單
local slots = {
{ index = 1, name = HEADSLOT, },
{ index = 2, name = N... |
local _, private = ...
-- RealUI --
local RealUI = private.RealUI
local MODNAME = "Chat"
local Chat = RealUI:NewModule(MODNAME, "AceEvent-3.0")
-- TODO: consolidate this module
function Chat:PLAYER_LOGIN()
-- Hide IM selector if BCM is enabled
if _G.IsAddOnLoaded("BasicChatMods") then
_G["InterfaceOp... |
-----------------------------------------
-- Stratus Cell
-- ID 5369
-- Unlocks leg and feet equipment
-----------------------------------------
require("scripts/globals/status")
-----------------------------------------
function onItemCheck(target)
local encumbrance = target:getStatusEffect(tpz.effect.ENCUMBRANCE... |
-- 这个脚本是在初始化snlua服务的时候,在接口init_cb (service-src/service_snlua)中调用的
-- 这个脚本的全局变量也都是在 init_cb (service-src/service_snlua) 中设置的
local args = {}
for word in string.gmatch(..., "%S+") do
table.insert(args, word)
end
-- 按config/examples 中配置, SERVICE_NAME值就是 bootstrap
-- 在脚本中使用skynet.launch("snlua","launcher")调用的时候,这个地方SERVI... |
--[[
-- Copyright(c) 2019, 武汉舜立软件 All Rights Reserved
-- Created: 2019/04/16
--
-- @file check_arping.lua
-- @brief 对网卡做 arping
-- @version 0.1
-- @author 李绍良
-- @history 修改历史
-- \n 2019/04/16 0.1 创建文件
-- @warning 没有警告
--]]
local string = require("string")
local io = require("io")
local unix = require("base.un... |
---@param skillLineID number
---[Documentation](https://wow.gamepedia.com/API_AbandonSkill)
function AbandonSkill(skillLineID) end
---[Documentation](https://wow.gamepedia.com/API_AcceptAreaSpiritHeal)
function AcceptAreaSpiritHeal() end
---@param index number
---@param accept boolean
---[Documentation](https://wow.g... |
local C = {}
local credits = {
{
department = "CODING",
people = {"NICUSOR NEDELCU", "JOHN DOE", "SUPERMAN"}
},
{
department = "OBJECT ART",
people = {"NICUSOR NEDELCU", "JOHN DOE", "SUPERMAN"}
},
{
department = "SOUNDS",
people = {"NICUSOR NEDELCU", "JOHN DOE", "SUPERMAN... |
local M = {}
function M.close(id)
vim.validate({id = {id, "number"}})
if not vim.api.nvim_win_is_valid(id) then
return
end
vim.api.nvim_win_close(id, true)
end
function M.enter(id)
vim.validate({id = {id, "number"}})
if not vim.api.nvim_win_is_valid(id) then
return
end
vim.api.nvim_set_current... |
local promised_ballot_key = KEYS[1] .. '/promise'
local accepted_ballot_key = KEYS[1] .. '/ballot'
local accepted_value_key = KEYS[1] .. '/value'
local function parse_ballot (txt_ballot)
local counter, id = txt_ballot:match("([^,]+),([^,]*)")
local ballot = {}
ballot[0] = tonumber(counter)
ballot[1] = id
re... |
function HandleSpawnCommand(Split, Player)
local WorldIni = cIniFile()
WorldIni:ReadFile(Player:GetWorld():GetIniFileName())
local SpawnX = WorldIni:GetValue("SpawnPosition", "X")
local SpawnY = WorldIni:GetValue("SpawnPosition", "Y")
local SpawnZ = WorldIni:GetValue("SpawnPosition", "Z")
local flag = 0
if... |
function ConstructSVGName(scriptName, suffix)
local filename = scriptName:match("Gen(.*)%.lua");
if(suffix) then
return filename .. suffix .. ".svg";
end
return filename .. ".svg";
end
function StandardArrowheadPath()
local arrowheadPath = SvgWriter.Path();
arrowheadPath:M{10, 4}:L{0, 0}:L{0, 8}:... |
local INV255 = 1.0 / 255.0
COLOR_RED = color_rgba2hex(1, 0, 0, 1)
COLOR_GRAY = color_rgba2hex(0.2, 0.2, 0.2, 1)
|
--- === cp.highland2 ===
---
--- Highland 2 support.
local require = require
local class = require "middleclass"
local lazy = require "cp.lazy"
local delegator = require "cp.deleg... |
require('luacov')
local pcall = pcall
local date = os.date
local remove = os.remove
local open = io.open
local assert = require('assert')
local function truncate(filename)
local f = assert(open(filename, 'w'))
f:close()
end
local function test_eval()
local testfile = date('%FT%H%M%S%Z') .. '_test.lua'
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.