content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
local KUI, E, L, V, P, G = unpack(select(2, ...))
if G["KlixUI"] == nil then G["KlixUI"] = {} end
G["KlixUI"] = {
-- General
["gameMenu"] = true,
["speedyLoot"] = true,
["easyDelete"] = true,
["cinematic"] = {
["kill"] = false,
["enableSound"] = true,
["talkingheadSound"] = true,
},
}
| nilq/small-lua-stack | null |
local MAJOR_VERSION = "Threat-2.0"
local MINOR_VERSION = 90000 + tonumber(("$Revision: 7 $"):match("%d+"))
if MINOR_VERSION > _G.ThreatLib_MINOR_VERSION then _G.ThreatLib_MINOR_VERSION = MINOR_VERSION end
if select(2, _G.UnitClass("player")) ~= "WARRIOR" then return end
ThreatLib_funcs[#ThreatLib_funcs+1] = function(... | nilq/small-lua-stack | null |
package.path = "../?.lua;"..package.path
local ps_common = require("lj2ps.ps_common")
local TokenType = ps_common.TokenType
local PSVM = require("lj2ps.ps_vm")
local Scanner = require("lj2ps.ps_scanner")
local octetstream = require("lj2ps.octetstream")
local function test_tokens()
local vm = PSVM()
local bs ... | nilq/small-lua-stack | null |
-- schema.lua
local typedefs = require "kong.db.schema.typedefs"
return {
name = "caesar-hello",
fields = {
{
config = {
type = "record",
fields = {
{
environment = {
type = "string",
required = true,
one_of = {
... | nilq/small-lua-stack | null |
local g_Strings = {}
local g_Patterns = {}
local g_Mui = {}
local g_Lang
addEvent ( "onClientLangChange", true )
addEvent ( "onClientLangChanged" )
local function MuiLoadInternal ( path )
local strings = {}
local patterns = {}
local node = xmlLoadFile ( path )
if ( node ) then
local i = 0
while ... | nilq/small-lua-stack | null |
local CONSTANTS_API = require(script:GetCustomProperty("MetaAbilityProgressionConstants_API"))
local mainManagerServer = script:GetCustomProperty("MainManagerServer"):WaitForObject()
local tankGarage = script:GetCustomProperty("TANK_VP_TankGarage"):WaitForObject()
local tankCount = script:GetCustomProperty("TankCount")... | nilq/small-lua-stack | null |
print('lua example')
print("lua example")
print([[lua example #%$#%!!@#\n\t\r]])
str = [[
this is a\r\n
test
]]
print(str)
| nilq/small-lua-stack | null |
-- TODO(ZyX-I): Create compatibility layer.
--{{{1 package.path updater function
-- Last inserted paths. Used to clear out items from package.[c]path when they
-- are no longer in &runtimepath.
local last_nvim_paths = {}
local function _update_package_paths()
local cur_nvim_paths = {}
local rtps = vim.api.nvim_list... | nilq/small-lua-stack | null |
local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'
local server_name = "fsautocomplete"
configs[server_name] = {
default_config = {
cmd = {'dotnet', 'fsautocomplete', '--background-service-enabled'};
root_dir = util.root_pattern('*.sln', '*.fsproj', '.git');
filetypes = {'... | nilq/small-lua-stack | null |
---@diagnostic disable: lowercase-global
local function trim(s) return s:gsub("^%s*(.-)%s*$", "%1") end
-- custom field for description and in-game constants
_src_url = "https://github.com/gyroplast/mod-dont-starve-chat-announcements"
name = "Chat Announcements"
author = "Gyroplast"
version = "1.2.3"
forumthread = ""... | nilq/small-lua-stack | null |
-- @docclass math
local U8 = 2^8
local U16 = 2^16
local U32 = 2^32
local U64 = 2^64
function math.round(num, idp)
local mult = 10^(idp or 0)
if num >= 0 then
return math.floor(num * mult + 0.5) / mult
else
return math.ceil(num * mult - 0.5) / mult
end
end
function math.isu8(num)
return math.isinte... | nilq/small-lua-stack | null |
-- plugins.lua
local fn = vim.fn
-- Install packer if not already installed
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({'git', 'clone', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.api.nvim_command('packad... | nilq/small-lua-stack | null |
local events = {};
local insert = table.insert;
local remove = table.remove;
local this = {};
function this.make(name,func)
local funcs = events[name];
if not funcs then
funcs = {};
events[name] = funcs;
end
insert(funcs,func);
end;
function this.mount(discordiaEvents)
for name,funcs in pairs(events) do
d... | nilq/small-lua-stack | null |
allIpls = {
-- METH LAB
{
names = {"bkr_biker_interior_placement_interior_2_biker_dlc_int_ware01_milo"},
interiorsProps = {
--"meth_lab_basic",
--"meth_lab_empty",
"meth_lab_production",
--"meth_lab_security_high",
"meth_lab_setup",
"meth_lab_upgrade",
},
coords={{1009.5, -3196.6... | nilq/small-lua-stack | null |
--[[
Copyright 2014-2015 The Luvit Authors. All Rights Reserved.
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 o... | nilq/small-lua-stack | null |
return require("packer").startup(function()
-- Packer can manage itself
use("wbthomason/packer.nvim")
-- Speed up the startup time
use("lewis6991/impatient.nvim")
-- Filetype plugin, 175x faster than original
use({ "nathom/filetype.nvim" })
use("dracula/vim")
use("preservim/vim-colors-pencil")
use({
"nvim-... | nilq/small-lua-stack | null |
LinkLuaModifier("ogre_tank_boss_jump_smash", "abilities/siltbreaker/npc_dota_creature_ogre_tank_boss/ogre_tank_boss_jump_smash.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("ogre_tank_boss_melee_smash", "abilities/siltbreaker/npc_dota_creature_ogre_tank_boss/ogre_tank_boss_melee_smash.lua", LUA_MODIFIER_MOTION_NONE)
... | nilq/small-lua-stack | null |
local typedefs = require "kong.db.schema.typedefs"
return {
name = "moleculer-bridge",
fields = {
{
-- Plugin will only be applied to Service/Route
consumer = typedefs.no_consumer
},
{
protocols = typedefs.protocols_http
},
{
config = {
type = "record",
f... | nilq/small-lua-stack | null |
-------------------------------------------------------------------------------
-- Wire library.
-------------------------------------------------------------------------------
if not WireLib then return end
--- Wire library. Handles wire inputs/outputs, wirelinks, etc.
local wire_library = SF.RegisterLibrary("wire")... | nilq/small-lua-stack | null |
--[[
key 1 -> rdb:job:name:jobs
key 2 -> rdb:job:name:waiting
key 3 -> rdb:job:name:stats
arg 1 -> job data
arg 2 -> should be unique?
arg 3 -> customId
]]
-- if unique enabled
if ARGV[2] == "true" then
local exists = redis.call("hsetnx", KEYS[1], ARGV[3], ARGV[1])
if exists == 1 then
redis.call("lpush", KEYS... | nilq/small-lua-stack | null |
local L
---------------------------
-- Garothi Worldbreaker --
---------------------------
L= DBM:GetModLocalization(1992)
L:SetTimerLocalization({
})
L:SetOptionLocalization({
})
L:SetMiscLocalization({
})
---------------------------
-- Hounds of Sargeras --
---------------------------
L= DBM:G... | nilq/small-lua-stack | null |
local _M = {}
local function contains(t, target)
for i=1, #t do
if t[i] == target then
return true
end
end
return false
end
_M.contains = contains
return _M | nilq/small-lua-stack | null |
--[[--------------------------------------------------------------------------
LGI testsuite, GI Regress-based testsuite.
Copyright (c) 2010, 2011 Pavel Holejsovsky
Licensed under the MIT license:
http://www.opensource.org/licenses/mit-license.php
--]]---------------------------------------------------------... | nilq/small-lua-stack | null |
local iosPayWebView = require(ViewPath.."hall/shortCutRecharge/iosPayWebView");
local IosPayWebView = class(CommonGameLayer, false);
IosPayWebView.Delegate = {
onIosPayWebViewClose = "onIosPayWebViewClose";
}
IosPayWebView.s_controls =
{
groundBg = 1;
returnBtn = 2;
content = 3;
bg = 4;
... | nilq/small-lua-stack | null |
function setPlayerData (player, key, data)
local id = exports.database:getPlayerId (player);
setMemberData (id, key, data);
end
function getPlayerData (player, key)
local id = exports.database:getPlayerId (player);
return getMemberData (id, key, data);
end
function isPlayerInAGroup (player)
return get... | nilq/small-lua-stack | null |
local MockPlayers = {}
MockPlayers.__index = MockPlayers
function MockPlayers.new()
local playerAddedBindable = Instance.new("BindableEvent")
local playerRemovingBindable = Instance.new("BindableEvent")
local self = setmetatable({
_playerAddedBindable = playerAddedBindable,
_playerRemovingBindable = playerRemo... | nilq/small-lua-stack | null |
include('shared.lua')
include('rules.lua')
local brdpos = {
["x"] = {
[1] = -14.7,
[2] = -10.5,
[3] = -6.3,
[4] = -2.1,
[5] = 2.1,
[6] = 6.3,
[7] = 10.5,
[8] = 14.7
},
["y"] = {
[1] = -14.45,
[2] = -10.3,
[3] = -6.15,
[4] = -2,
[5] = 2.25,
[6] = 6.4,
[7] = 10.55,
[8] = 14.7
}
}
loca... | nilq/small-lua-stack | null |
return Def.ActorFrame{
Def.Quad{
InitCommand=cmd(setsize,SCREEN_WIDTH,SCREEN_HEIGHT/2;diffuse,color("0,0,0,1");xy,SCREEN_CENTER_X,SCREEN_CENTER_Y-SCREEN_HEIGHT/2;valign,1);
OnCommand=cmd(y,SCREEN_CENTER_Y-SCREEN_HEIGHT/2;sleep,1;linear,0.3;y,SCREEN_CENTER_Y);
};
Def.Quad{
InitCommand=cmd(setsize,SCREEN_WIDTH,S... | nilq/small-lua-stack | null |
require"imlua"
require"imlua_process"
require"imlua_fftw"
local filename = "lena.jpg"
local image = im.FileImageLoad(filename)
local complex = im.ImageCreate(image:Width(), image:Height(), image:ColorSpace(), im.CFLOAT)
im.ProcessFFT(image, complex)
local c = complex[0][5][10] -- component=0(Red), y = 5 x =10
print... | nilq/small-lua-stack | null |
--[[
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.
]]--
local tnt ... | nilq/small-lua-stack | null |
local module = {}
local mt = {}
mt.__unm = function(rhs)
return module.Vector3D(-rhs[1], -rhs[2], -rhs[3])
end
mt.__add = function(lhs, rhs)
return module.Vector3D(lhs[1] + rhs[1], lhs[2] + rhs[2], lhs[3] + rhs[3])
end
mt.__sub = function(lhs, rhs)
return module.Vector3D(lhs[1] - rhs[1], lhs[2] - rhs[2], lhs[3... | nilq/small-lua-stack | null |
require('Utilities');
function Client_PresentMenuUI(rootParent, setMaxSize, setScrollable, game)
if (not WL.IsVersionOrHigher or not WL.IsVersionOrHigher("5.17")) then
UI.Alert("You must update your app to the latest version to use this mod");
return;
end
Game = game;
SubmitBtn = nil;
setMaxSize(450, 400... | nilq/small-lua-stack | null |
function Client_PresentSettingsUI(rootParent)
end
| nilq/small-lua-stack | null |
return function()
local module = Deus:Load("Deus.Symbol")
describe("global symbols", function()
it("should equal", function()
expect(module.get("foo")).to.be.equal(module.get("foo"))
end)
it("should never equal", function()
expect(module.get("foo")).to.never.be.... | nilq/small-lua-stack | null |
Crate:describe(function(s)
s.name = 'Flow'
s.version = '0.8.0'
s.date = '2019-11-15'
s.summary = 'Flux Core.'
s.description = 'Core files that provide most of what Flux actually is.'
s.author = 'TeslaCloud Studios'
s.email = 'support@teslacloud.net'
s.files = {
... | nilq/small-lua-stack | null |
local install_path = vim.fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
vim.fn.system({ "git", "clone", "https://github.com/wbthomason/packer.nvim", install_path })
vim.api.nvim_command("packadd packer.nvim")
end
vim.cmd("packadd packer.nvim")
... | nilq/small-lua-stack | null |
--[[--
baseurl =
request.get_relative_baseurl()
This function returns a relative base URL of the application. If request.force_absolute_baseurl() has been called before, an absolute URL is returned.
--]]--
function request.get_relative_baseurl()
if request._force_absolute_baseurl then
return (request.get_absol... | nilq/small-lua-stack | null |
--[[**********************************
*
* Multi Theft Auto - Admin Panel
*
* client/admin_guard.lua
*
* Original File by lil_Toady
*
**************************************]]
_addEventHandler = addEventHandler
function addEventHandler(event, element, handler, propagated)
_addEventHandler(
event,
ele... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Norg
-- NPC: Quntsu-Nointsu
-- Title Change NPC
-- !pos -67 -1 34 252
-----------------------------------
require("scripts/globals/titles")
-----------------------------------
local eventId = 1011
local titleInfo =
{
{
cost = 200,
title =
{
... | nilq/small-lua-stack | null |
local TestActorComponent = Inherit(CppObjectBase)
function TestActorComponent:BeginPlay()
CppObjectBase.BeginPlay(self)
-- test link to actor
-- self:Timer(self.TestLinkDestroy, self):Time(1)
end
function TestActorComponent:TestLinkDestroy()
end
return TestActorComponent | nilq/small-lua-stack | null |
local crud = require "kong.api.crud_helpers"
return {
["/upstreams/"] = {
GET = function(self, dao_factory)
crud.paginated_set(self, dao_factory.upstreams)
end,
PUT = function(self, dao_factory)
crud.put(self.params, dao_factory.upstreams)
end,
POST = function(self, dao_factory, hel... | nilq/small-lua-stack | null |
local lfs = require "lfs"
local Util = require("Lua/Util/Util")
local parser = require("Lua/Util/wowtoolsparser")
Util:MakeDir("src/data/globalstring")
local pre = [[import type { GlobalStringInterface } from "./GlobalStringInterface"
export const data: GlobalStringInterface = {
]]
local locales = {
"deDE",
"enU... | nilq/small-lua-stack | null |
for i,v in ipairs({
{972,-716.5,503.3,1370.7,0,0,340},
{972,-726.7,483.4,1370.7,0,0,325},
{972,-743,467.8,1368.7,7,0,305},
{972,-763,456,1365.9,9,0,298},
{972,-783,449.8,1362.3,10,0,277},
{972,-807,448.5,1355,10,0,270},
{972,-826.5,448,1352,10,0,272},
{972,-851,440,1349,7,0,300},
{97... | nilq/small-lua-stack | null |
Kick Script:
game.Players.--Put name here:
Remove() | nilq/small-lua-stack | null |
ITEM.name = "Izlom Hand"
ITEM.model ="models/lostsignalproject/items/parts/izlom_hand.mdl"
ITEM.description = "The hand from an izlom."
ITEM.longdesc = "A severed hand of an izlom - an extremely deformed humanoid mutant. It is certain that these creatures used to be humans and that they are the direct result of the sec... | nilq/small-lua-stack | null |
-- (c) 2016 Flexiant Ltd
-- Released under the Apache 2.0 Licence - see LICENCE for details
function scheduled_create_snapshot_trigger(p)
if (p == nil) then
return {
ref = "scheduled_create_snapshot",
name = "Scheduled Create Snapshot Tiggger",
description = "This will create a snapshot for user if he has ... | nilq/small-lua-stack | null |
-- Cause mapcreators are lazy and don't follow the right varables ...
local function SortVectors(...)
local ar = {...}
table.sort( ar, function(a,b)
if a.z > b.z then return true end
return false
end )
local t = ar[2]
ar[2] = ar[3]
ar[3] = t
return ar
end
--[[ Test thingy. Left for me to easy de... | nilq/small-lua-stack | null |
local AddRecipe = AddRecipe
GLOBAL.setfenv(1, GLOBAL)
-- 月镐和月锤 --
AddRecipe("moonglasspickaxe",
{Ingredient("twigs", 2), Ingredient("moonglass", 3)},
RECIPETABS.CELESTIAL, TECH.CELESTIAL_THREE, nil, nil, true)
AddRecipe("moonglasshammer",
{Ingredient("twigs", 3), Ingredient("cutgrass", 6), Ingredient("moonglass", 3)}... | nilq/small-lua-stack | null |
--------------------------------------------------------
local Keys = {
["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57,
["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161... | nilq/small-lua-stack | null |
slot0 = class("AnniversaryMediator", import("..base.ContextMediator"))
slot0.ON_SUBMIT_TASK = "AnniversaryMediator:ON_SUBMIT_TASK"
slot0.TO_TASK = "AnniversaryMediator:TO_TASK"
slot0.register = function (slot0)
slot0:bind(slot0.TO_TASK, function (slot0, slot1)
slot0:sendNotification(GAME.TASK_GO, {
taskVO = slot... | nilq/small-lua-stack | null |
local id = x
if check() then
local n = tonumber(string.sub(x, 6))
id = player.episode[n].script or id
end | nilq/small-lua-stack | null |
local module = {}
-- n/a <: sets little endian
-- n/a >: sets big endian
-- n/a =: sets native endian
-- n/a ![n]: sets maximum alignment to n (default is native alignment)
-- n/a s[n]: a string preceded by its length coded as an unsigned integer with n bytes (default is a size_t)
-- n/a ' ': (empty space)... | nilq/small-lua-stack | null |
local assertion = require('vgit.core.assertion')
local utils = {
object = {},
}
utils.age = function(current_time)
assertion.assert(current_time)
local time = os.difftime(os.time(), current_time)
local time_divisions = {
{ 1, 'years' },
{ 12, 'months' },
{ 30, 'days' },
{ 24, 'hours' },
{ ... | nilq/small-lua-stack | null |
local Bolt = {}
Bolt.Version = "22.1.0"
Bolt.VersionDetails = "Added checking ownership of game passes. Prompting purchases of game passes now returns true if the player bought them. Added RayCasting. Added MoveCamera"
local players = game:GetService("Players")
local marketplace = game:GetService("MarketplaceService... | nilq/small-lua-stack | null |
-- default tip text in case the httpreq() messes up, so we dont crash displaying a tip that has nil text
local tiptext = ""
-- get text from website
dohttpreq(
"http://whatthecommit.com/index.txt",
function(data, id)
if not data:is_nil_or_empty() then
-- ... | nilq/small-lua-stack | null |
object_mobile_som_som_ancient_guardian_ig = object_mobile_som_shared_som_ancient_guardian_ig:new {
}
ObjectTemplates:addTemplate(object_mobile_som_som_ancient_guardian_ig, "object/mobile/som/som_ancient_guardian_ig.iff")
| nilq/small-lua-stack | null |
package.cpath = "bin/?.dll"
local iup = require "iuplua"
local bgfx = require "bgfx"
local bgfxu = require "bgfx.util"
local util = require "util"
local math3d = require "math3d"
local ctx = {
canvas = iup.canvas {},
}
local dlg = iup.dialog {
ctx.canvas,
title = "15-shadowmaps_simple",
size = "HALFxHALF",
}
lo... | nilq/small-lua-stack | null |
local Thread = require('src.threads.thread')
local SearchThread = class('SearchThread', Thread)
function SearchThread:initialize()
self.inner = 'src/threads/search_inner.lua'
Thread.initialize(self)
end
return SearchThread
| nilq/small-lua-stack | null |
-- Copyright 2020 Ivan Belokobylskiy <belokobylskij@gmail.com>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.jntools", package.seeall)
function index()
entry({"admin", "system", "jntools"}, template("jntools"), _("Zigbee Tools"), 30)
entry({"admin", "system", "jntools", "flash"}, p... | nilq/small-lua-stack | null |
local png = {}
do -- png.lua
--[[
BSD 2-Clause License
Copyright (c) 2018, Kartik Singh
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must... | nilq/small-lua-stack | null |
--[[
@
--]]
-- =============================================================================
-- import
-- =============================================================================
local convert = require("convert")
-- load 3rd module
local getopt = require("getopt")
-- load module
local input = require("input"... | nilq/small-lua-stack | null |
---@meta
---@class hashlib
local M = {}
---@class HashContext:userdata Hash context.
local hash = {}
---@alias HashType
---|'"MD4"'
---|'"MD5"'
---|'"SHA1"'
---|'"SHA224"'
---|'"SHA256"'
---|'"SHA384"'
---|'"SHA512"'
---|'"RIPEMD160"'
---Update hash context with binary data.
---@param data string
---@return HashCon... | nilq/small-lua-stack | null |
dofile(debug.getinfo(1).source:match("@?(.*/)") .. '/default_config.lua')
bag_path="data/00010_2019-05-16-03-59-04_0.bag"
lidar_topic="/velodyne_2dscan_high_beams"
odom_topic="/odometry/filtered"
auto_lc=false
pose_number=350
accuracy_change_stop_threshold = 0.005
translation_weight=1.0
rotation_weight=1.0
lidar_constr... | nilq/small-lua-stack | null |
-- 6-Speed gearboxes
-- Weight
local Gear6SW = 80
local Gear6MW = 160
local Gear6LW = 320
local StWB = 0.75 --straight weight bonus mulitplier
-- Torque Rating
local Gear6ST = 440
local Gear6MT = 1360
local Gear6LT = 10000
local StTB = 1.25 --straight torque bonus multiplier
-- Inline
ACF_DefineGearbox( "6Gear-L-S... | nilq/small-lua-stack | null |
object_tangible_loot_creature_loot_collections_meatlump_newspaper_06 = object_tangible_loot_creature_loot_collections_shared_meatlump_newspaper_06:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_meatlump_newspaper_06, "object/tangible/loot/creature/loot/collections/meatlump_newspape... | nilq/small-lua-stack | null |
MOD = {}
MOD.name = "ChargeTransmission"
MOD.if_name = "charge-transmission"
MOD.interfaces = {}
MOD.commands = {}
MOD.config = require "scripts/config"
local Position = require "stdlib/area/position"
require "stdlib/event/event"
require "stdlib/table"
-- Enables Debug mode for new saves
if MOD.config.DEBUG then
lo... | nilq/small-lua-stack | null |
local UTILS = require("nes.utils")
local band, bor, bxor, bnot, lshift, rshift = bit.band, bit.bor, bit.bxor, bit.bnot, bit.lshift, bit.rshift
local map, rotatePositiveIdx, nthBitIsSet, nthBitIsSetInt =
UTILS.map,
UTILS.rotatePositiveIdx,
UTILS.nthBitIsSet,
UTILS.nthBitIsSetInt
local Pad = nil
local Pads = {... | nilq/small-lua-stack | null |
local languages = {}
languages.af = function(collator_obj)
local tailoring = function(s) collator_obj:tailor_string(s) end
tailoring("&N<<<ʼn")
return collator_obj
end
languages.am = function(collator_obj)
collator_obj:reorder{ "ethiopic" }
return collator_obj
end
languages.ar = function(collator_obj)
loc... | nilq/small-lua-stack | null |
test_run = require('test_run').new()
REPLICASET_1 = { 'box_1_a', 'box_1_b' }
REPLICASET_2 = { 'box_2_a', 'box_2_b' }
engine = test_run:get_cfg('engine')
test_run:create_cluster(REPLICASET_1, 'rebalancer')
test_run:create_cluster(REPLICASET_2, 'rebalancer')
util = require('util')
test_run:wait_fullmesh(REPLICASET_1)
t... | nilq/small-lua-stack | null |
local localization =
{
ATT_STR_BUYER = "Käufer",
ATT_STR_SELLER = "Verkäufer",
ATT_STR_GUILD = "Gilde",
ATT_STR_ITEM = "Gegenstand",
ATT_STR_EAPRICE = "EP",
ATT_STR_PRICE = "Preis",
A... | nilq/small-lua-stack | null |
-- rPlayerFrame: config
-- zork, 2019
-----------------------------
-- Variables
-----------------------------
local A, L = ...
-----------------------------
-- Config
-----------------------------
L.C = {
textureColor = {0.2,0.2,0.2,0.5},
frameVisibility = "[mod:shift][combat][@target,exists] show; hide",
-... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Upper Jeuno
-- NPC: Shalott
-- Optional Involvement in Quest: Save My Son
--------------------------------
require("scripts/globals/quests")
-----------------------------------
function onTrade(player, npc, trade)
end
function onTrigger(player, npc)
if (player:getQu... | nilq/small-lua-stack | null |
--[[
-- added by wsh @ 2017-12-01
-- Class单元测试
--]]
require "Framework.Common.DataClass"
require "Framework.Common.ConstClass"
local function TestBaseClassOverride()
local var1 = 1
local class1 = BaseClass("class1")
class1.__init = function(self)
self.var1 = 1
end
class1.func1 = function(self)
var1 = var1 ... | nilq/small-lua-stack | null |
socket = require( "socket")
local json = require( "json")
client = ""
local communication = {}
function communication.connect(serverAddress)
client = socket.connect(serverAddress,8000)
client:settimeout(0)
client:setoption("keepalive",true)
if not client then
print("Error, could not connect... | nilq/small-lua-stack | null |
--- =============================================================================
-- __ __________ ______
-- / \ / \_____ \ / __ \
-- \ \/\/ // ____/ > <
-- \ // \/ -- \
-- \__/\ / \_______ \______ /
-- \/ \/ \/
-- lint.lua --- nvim-lint configuration... | nilq/small-lua-stack | null |
local s = require("null-ls.state")
local u = require("null-ls.utils")
local c = require("null-ls.config")
local methods = require("null-ls.methods")
local handlers = require("null-ls.handlers")
local lsp = vim.lsp
local api = vim.api
local schedule = vim.schedule_wrap
local function on_init(client)
handlers.setu... | nilq/small-lua-stack | null |
--[[
Node class. This class is generally used with edge to add edges into a graph.
graph:add(graph.Edge(graph.Node(),graph.Node()))
But, one can also easily use this node class to create a graph. It will register
all the edges into its children table and one can parse the graph from any given node.
The drawback ... | nilq/small-lua-stack | null |
-- Author Tony Beltramelli www.tonybeltramelli.com - 10/11/2015
local FNN = {}
function FNN.get(inputSize, outputSize, layerSize, layerNum)
local input = nn.Identity()()
local layerInputSize = inputSize
local previous = input
for i = 1, layerNum do
local hidden = nn.Tanh()(nn.Linear(layerInputSize, layerSiz... | nilq/small-lua-stack | null |
--[[
KoZ Rejoin Different Server Script
Changed to be a module so I can just loadstring this for my own scripts like so:
-- load it to local var. returns func
local rj = loadstring(game:HttpGetAsync("https://raw.githubusercontent.com/Kozenomenon/RBX_Pub/main/Misc/Rejoin_Different_Server.lua"))()
-- call the fu... | nilq/small-lua-stack | null |
AddCSLuaFile()
AddCSLuaFile("sh_sounds.lua")
include("sh_sounds.lua")
SWEP.PrintName = "Stevens M620"
if CLIENT then
SWEP.DrawCrosshair = false
SWEP.CSMuzzleFlashes = true
SWEP.ViewModelMovementScale = 1
SWEP.IconLetter = "k"
killicon.Add( "khr_m620", "icons/select/khr_m620", Color(255, 80, 0, 150))
SWEP.Se... | nilq/small-lua-stack | null |
local K, C = unpack(select(2, ...))
local Module = K:GetModule("Blizzard")
local _G = _G
local UIParent = _G.UIParent
local AlertFrame = _G.AlertFrame
local GroupLootContainer = _G.GroupLootContainer
local CreateFrame = _G.CreateFrame
local hooksecurefunc = _G.hooksecurefunc
local POSITION, ANCHOR_POINT, YOFFSET = "... | nilq/small-lua-stack | null |
return [[na
naam
naams
naan
naans
naartje
naartjes
nab
nabbed
nabber
nabbers
nabbing
nabk
nabks
nabla
nablas
nabob
nabobs
nabs
nabses
nacarat
nacarats
nacelle
nacelles
nach
nache
naches
nacho
nachos
nacket
nackets
nacre
nacred
nacreous
nacres
nacrite
nacrous
nada
nadir
nadirs
nae
naebody
naething
naethings
naeve
naeves... | nilq/small-lua-stack | null |
Robot = class()
function Robot:init(x, y)
-- position and bounds
self.penStart = false
self.penStatus = false
self.pen = {}
self.x = x
self.y = y
self.oldX = x
self.oldY = y
self.bounds = Frame(0,0,0,0)
self.direction = 0
self.fromDir = 0
self.toDir = 0
-- c... | nilq/small-lua-stack | null |
local current_folder = ... and (...):match '(.-%.?)[^%.]+$' or ''
local common = require(current_folder.. ".common")
local Path = require(current_folder.. ".Path")
local QuadExport = {}
QuadExport.export = function(quads, exporter, filepath)
assert(quads and type(quads) == "table")
assert(exporter and type(export... | nilq/small-lua-stack | null |
require("fireDrive.lua");
require("rrpg.lua");
require("internet.lua");
--[[
rrpg.messaging.listen("HandleChatCommand",
function(message)
message.response = {handled = true};
fireDrive.getFiles(message.parametro,
function(fs)
message.chat:escrever("\\\\Lista: ");
for i = 1, #fs, 1 do
mes... | nilq/small-lua-stack | null |
return {
version = "1.1",
luaversion = "5.1",
tiledversion = "2015-06-02",
orientation = "orthogonal",
width = 36,
height = 16,
tilewidth = 32,
tileheight = 32,
nextobjectid = 1,
properties = {},
tilesets = {
{
name = "Tiles_32x32",
firstgid = 1,
tilewidth = 32,
tilehei... | nilq/small-lua-stack | null |
#!/usr/bin/env tarantool
test = require("sqltester")
test:plan(8)
--!./tcltestrunner.lua
-- 2012 December 19
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive other... | nilq/small-lua-stack | null |
-- package geniefile for zstd
zstd_script = path.getabsolute(path.getdirectory(_SCRIPT))
zstd_root = path.join(zstd_script, "zstd")
zstd_includedirs = {
zstd_root,
path.join(zstd_root, "lib"),
}
zstd_defines = {
--"ZSTD_LEGACY_SUPPORT=5",
}
zstd_libdirs = {}
zstd_links = {}
----
return {
_add_includedirs = func... | nilq/small-lua-stack | null |
local parent, ns = ...
local global = GetAddOnMetadata(parent, 'X-oUF')
local _VERSION = GetAddOnMetadata(parent, 'version')
local function argcheck(value, num, ...)
assert(type(num) == 'number', "Bad argument #2 to 'argcheck' (number expected, got "..type(num)..")")
for i=1,select("#", ...) do
if type(value) == ... | nilq/small-lua-stack | null |
local db = dofile 'libs/redis.lua'
local tdcli = dofile 'bot/utlis.lua'
botid = false
local serp = require 'serpent'.block
local JSON = dofile 'libs/JSON.lua'
local _config = dofile 'data/td_config.lua'
local _color = require 'term.colors'
require('./bot/utlis')
chats = {}
day = 86400
bot_id = 322190322 --- You Bot ID
... | nilq/small-lua-stack | null |
-- ~~~~~~~~~~
-- base.lua
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- Bases to land on for Mars Lander
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local Base = {}
-- ~~~~~~~~~~~~~~~~
-- Local Variables
-- ~~~~~~~~~~~~~~~~
local landingLights = Assets.getImageSet("landingLights")
landingLights.animation = Assets.newAnima... | nilq/small-lua-stack | null |
local dat = {}
local ver, info
local datread = require("data/load_dat")
datread, ver = datread.open("sysinfo.dat", "# This file was generated on")
function dat.check(set, softlist)
if softlist or not datread then
return nil
end
local status
status, info = pcall(datread, "bio", "info", set)
if not status or not ... | nilq/small-lua-stack | null |
local Shopkeeper, super = Class(Object)
function Shopkeeper:init()
super:init(self)
-- Whether the shopkeeper slides
-- out of the way in the buy menu.
self.slide = false
-- Whether the shopkeeper's sprite
-- should be animated by talking.
self.talk_sprite = true
self.actor = nil
... | nilq/small-lua-stack | null |
--
-- hmmer 3.3.1 modulefile
--
-- "URL: https://www.psc.edu/resources/software"
-- "Category: Biological Sciences"
-- "Description: hmmer is a software used to identify homologous protein or nucleotide sequences, and to perform sequence alignments."
-- "Keywords: singularity bioinformatics"
whatis("Name: hmmer")
what... | nilq/small-lua-stack | null |
local mmver = offsets.MMVersion
local function mmv(...)
return select(mmver - 5, ...)
end
const = const or {}
Const = const
local _KNOWNGLOBALS
const.Novice = 1
const.Expert = 2
const.Master = 3
if mmver ~= 6 then
const.GM = 4
end
const.MapLimit = 22528
const.Minute = 256
const.Second = const.Minute/60
const.Hou... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Mamook
-- Mob: Poroggo Casanova
-- ToAU Quest: Prince and the Hopper
-----------------------------------
local ID = require("scripts/zones/Mamook/IDs")
function onMobSpawn(mob)
end
function onMobDeath(mob, player, isKiller)
if player:getQuestStatus(AHT_URHGAN, tpz.ques... | nilq/small-lua-stack | null |
-- gcRobotGlobals-Signature.lua
-- Author: Gaticus Hax
-- License: Public Domain
require("Scripts.HaxablesMonitor")
local mbinFile = "GCROBOTGLOBALS.MBIN"
local dataSignature = "00 00 A0 42 00 00 40 3F 00 00 00 3F CD CC CC 3D 01 00 00 00 33 33 B3 3F 00 00 00 40 00 00 40 40"
local dataOffset = 0x0000
defineMB... | nilq/small-lua-stack | null |
package.path = "./luckynet/lnlib/?.lua;" .. package.path
package.path = "./luckyproto/?.lua;" .. package.path
package.path = "./luckynet/game/?.lua;" .. package.path
require "debug_proto_defines"
require "game_define" | nilq/small-lua-stack | null |
function init()
self.sounds = config.getParameter("sounds", {})
animator.setSoundPool("noise", self.sounds)
object.setInteractive(true)
end
function onInteraction()
if #self.sounds > 0 then
animator.playSound("noise")
end
end
function onNpcPlay(npcId)
local interact = config.getParameter("npcToy.inter... | nilq/small-lua-stack | null |
----------------------------------------
--
-- Copyright (c) 2015, 128 Technology, Inc.
--
-- author: Hadriel Kaplan <hadriel@128technology.com>
--
-- This code is licensed under the MIT license.
--
-- Version: 1.0
--
------------------------------------------
-- prevent wireshark loading this file as a plugin
if not ... | nilq/small-lua-stack | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.