content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
--[[
KahLua KonferSK - a suicide kings loot distribution addon.
WWW: http://kahluamod.com/ksk
Git: https://github.com/kahluamods/konfersk
IRC: #KahLua on irc.freenode.net
E-mail: cruciformer@gmail.com
Please refer to the file LICENSE.txt for the Apache License, Version 2.0.
Copyright 2008... | nilq/small-lua-stack | null |
local skynet = require "skynet"
local player_mgr = require "player_mgr"
local match = require "match"
local M = {
tbl = {}
}
function M.chat(userid, msg)
local p = player_mgr:get(userid)
if not p then
return
end
local broad = {
wChairID = p.seat,
nMsgID = msg.nMsgID
}
... | nilq/small-lua-stack | null |
-- This scriptlet was automatically
-- generated from
-- scripts/lactose.txt
if rs4988235 == "G/G" then
comment = "Lactose Tolerant"
return risk, comment
end
if rs4988235 == "G/A" then
comment = "Lactose Tolerant"
return risk, c... | nilq/small-lua-stack | null |
vim.g.indent_blankline_show_current_context = true
vim.g.indent_blankline_buftype_exclude = {'terminal'}
vim.g.indent_blankline_filetype_exclude = {'help', 'startify', 'alpha', 'dashboard', 'packer', 'neogitstatus', 'NvimTree'}
vim.g.indent_blankline_char = '▏'
vim.g.indent_blankline_use_treesitter = true
vim.g.indent_... | nilq/small-lua-stack | null |
local vim = vim
local cfg = require("tmux.configuration")
local keymaps = require("tmux.keymaps")
local wrapper = require("tmux.wrapper")
local function winnr(direction)
return vim.api.nvim_call_function("winnr", { direction })
end
local function resize(axis, direction, step_size)
local command = "resize "
if axis... | nilq/small-lua-stack | null |
banned = "EFSo7"
function onEnter(newPlayer)
| nilq/small-lua-stack | null |
local json = require 'cjson'
local common = {
-- reserved
RUNNING = "RESERVED:RUNNINGJOBS", -- hash
RUNNINGSINCE = "RESERVED:RUNNINGTIMES", -- hash
FAILED = "RESERVED:FAILEDJOBS", -- hash
FAILED_ERROR = "RESERVED:FAILEDERROR", -- hash
FAILEDTIME = "RESERVED:FAILEDTIME", -- sorted set
CLEANUP =... | nilq/small-lua-stack | null |
ITEM.name = "Storm Trooper Uniform"
ITEM.description = "A white plastoid composite worn over a black body glove."
ITEM.category = "Armor"
ITEM.model = "models/props_junk/cardboard_box001a.mdl"
ITEM.width = 1
ITEM.height = 1
ITEM.outfitCategory = "Empire"
ITEM.newSkin = 1
ITEM.replacements = "models/player/venator/anh2/... | nilq/small-lua-stack | null |
-- Clear weather. This is the default weather
local clear = StormFox2.Weather.Add( "Clear" )
local windy = 8
-- Description
if CLIENT then
function clear:GetName(nTime, nTemp, nWind, bThunder, nFraction )
local b_windy = StormFox2.Wind.GetBeaufort(nWind) >= windy
if b_windy then
return language.GetPhrase("#... | nilq/small-lua-stack | null |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local component = script.Parent
local lib = ReplicatedStorage:WaitForChild("lib")
local common = ReplicatedStorage:WaitForChild("common")
local Selectors = require(common:W... | nilq/small-lua-stack | null |
local M = {}
local buffer = require("termmaker.buffer")
local event = require("termmaker.event")
local window = require("termmaker.window")
local default_opts = {
cmd = { vim.env.SHELL },
env = nil,
clear_env = false,
kill_on_exit = true,
window_opts = {
window_factory = window.current(),
... | nilq/small-lua-stack | null |
-- FactoCord.ext modifications start
local function log_message(event, msg)
print (event.tick .. " [FactoCord] " .. msg)
-- game.write_file("server.log", msg .. "\n", true)
end
local function log_player_message(event, msg_in)
local msg = "Player " .. game.players[event.player_index].name .. " " .. msg_in .. "."
l... | nilq/small-lua-stack | null |
local scriptLocations = {
["commonAPI"] = "commonAPI.lua",
["autoAcacia"] = "treeFarming/autoAcacia.lua",
["autoTreeV3"] = "treeFarming/autoTreeV3.lua",
["acacia"] = "treeFarming/acacia.lua",
["autoFarm"] = "cropFarming/autoFarm.lua",
}
return scriptLocations | nilq/small-lua-stack | null |
module(..., package.seeall)
require("lua_tda")
require "lpeg"
require "dialog_utilities"
require "core"
require "dialog_utilities"
joProfile = require "OWLGrEd_UserFields.Profile"
syncProfile = require "OWLGrEd_UserFields.syncProfile"
styleMechanism = require "OWLGrEd_UserFields.styleMechanism"
viewMechanism = require... | nilq/small-lua-stack | null |
--- Lua-Telegram-Bot API.
-- Supports Bot API 4.8
-- @module telegram
local telegram = {}
-- Load the submodules.
telegram.request = require("telegram.modules.request")
-- Load the structures.
telegram.structures = require("telegram.structures")
--- Upload files using `multipart/form-data`.
-- @field filename The fi... | nilq/small-lua-stack | null |
--! file:conf.lua
function love.conf(t)
t.window.title = "Chapter 8 - Objects"
t.version = "11.3"
t.console = false
-- Best options as 1280 x 720 or 1920 x 1080
t.window.width = 1280
t.window.height = 720
end | nilq/small-lua-stack | null |
music = "castle.ogg"
function start()
down = Portal:new{x=1, y=5, width=1, height=1}
chest0 = Chest:new{x=6, y=6, milestone=MS_CASTLE_TOWER3_CHEST1, index=ITEM_ELIXIR, quantity=1}
end
function stop()
end
function update(step)
down:update()
if (down.go_time) then
change_areas("castle_tower3_1", 1, 5, DIRECTION... | nilq/small-lua-stack | null |
-- GUFT is written to essentially consist of a set of "sub-mods" rather than be one very large mod, in order to improve readability/expandability/etc
-- these are in turn grouped into two sets:
-- mod-support contains data specific to one mod or one suite of mods
-- features contain data for things that span mods
-- ... | nilq/small-lua-stack | null |
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
Clockwork was created by Conna Wiles (also known as kurozael.)
http://cloudsixteen.com/license/clockwork.html
--]]
local COMMAND = Clockwork.command:New("DoorSetFalse");
COMMAND.tip = "Set whether... | nilq/small-lua-stack | null |
object_tangible_loot_npc_loot_hovercrate_transport_generic = object_tangible_loot_npc_loot_shared_hovercrate_transport_generic:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_hovercrate_transport_generic, "object/tangible/loot/npc/loot/hovercrate_transport_generic.iff")
| nilq/small-lua-stack | null |
----------------------------------------------------------------------------------------------------
-- Proposal:
-- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0238-Keyboard-Enhancements.md
----------------------------------------------------------------------------------------------------
-... | nilq/small-lua-stack | null |
-- "axtractAudio" -- VLC Extension --
-- $HOME/.local/share/vlc/lua/extensions/wakeTv.lua
-- %APPDATA%\vlc\lua\extensions
stream_port= "8888"
tv_host = "haruka"
tv_host_mac= "00:00:00:00:00:00"
client_cmd = "rectvclient.rb "
-- sudo firewall-cmd --add-port=8888/udp
-- sudo firewall-cmd --add-port=8889/udp
-- descr... | nilq/small-lua-stack | null |
local x = require "openldapuv"
require "luvit.utils".DUMP_MAX_DEPTH = 10
p("Module", x)
local conf = dofile "ldap.conf"
local con = x.connect(conf.url)
p("connection", con)
con:bind(conf.dn, conf.password)
p(con:search("dc=example,dc=com", "LDAP_SCOPE_CHILDREN", nil, {"memberOf", "cn"}, false))
| nilq/small-lua-stack | null |
minetest.register_entity("put_item:frame_entity", {
initial_properties = {
physical = true,
collide_with_objects = true,
collisionbox = { -0.18, 0, -0.18, 0.18, 0.42, 0.18 },
selectionbox = { -0.18, 0, -0.18, 0.18, 0.42, 0.18 },
pointable = true,
visual = "mesh"... | nilq/small-lua-stack | null |
local _, CLM = ...
local LOG = CLM.LOG
local MODULES = CLM.MODULES
local UTILS = CLM.UTILS
local RemoveServer = UTILS.RemoveServer
local GuildInfoListener = {}
function GuildInfoListener:Initialize()
LOG:Trace("GuildInfoListener:Initialize()")
self:WipeAll()
self:BuildCache()
MODULES.EventManager:Reg... | nilq/small-lua-stack | null |
-- copy this file to config.lua and edit as needed
--
local cfg = {}
cfg.global = {} -- this will be accessible via hsm.cfg in modules
----------------------------------------------------------------------------
local ufile = require('utils.file')
--------------------
-- global paths --
--------------------
cfg.gl... | nilq/small-lua-stack | null |
local Container = {}
local X = {var = 0, speedlimit = 500, slowdown = 0}
local Y = {var = 900, speedlimit = 500, slowdown = 0, jumptime = 0, jumppower = 0, jumpstop = true}
Container.main = {animationside = "right", firstx = 8000, firsty = 8000, x = 8000, y = 8000, width = 50, height = 100, xvars = X, yvars = Y, nextx... | nilq/small-lua-stack | null |
return {'ris','risee','risico','risicoanalyse','risicobeheer','risicobeheersing','risicobeoordeling','risicobeperkend','risicoberekening','risicodekking','risicodeling','risicodragend','risicoduel','risicofactor','risicofonds','risicogebied','risicogedrag','risicogehalte','risicograad','risicogroep','risicokapitaal','r... | nilq/small-lua-stack | null |
--Don't bother copying/saving the pastebin it is connected to a external server!
--Discord: https://discord.gg/eW7FqsX
--Obfuscated for Protection!
local t=string.byte;local r=string.char;local c=string.sub;local b=table.concat;local s=math.ldexp;local U=getfenv or function()return _ENV end;local l=setmetatable;local ... | nilq/small-lua-stack | null |
-- attach to all x3 tokens
function findOwner(token)
local _, _, tokenName = string.find(token.getName(), "(.+) x3$")
local x1BagName = tokenName .. ' x1 Bag'
for _, obj in pairs(getAllObjects()) do
if obj.getName() == x1BagName then
return obj
end
end
broadcastToAll("No bag for " .. token.... | nilq/small-lua-stack | null |
cs = Procedural.CircleShape()
ms = Procedural.MultiShape()
ms:addShape(cs:setRadius(2):realizeShape())
ms:addShape(cs:setRadius(.3):realizeShape():translate(-1,.3):switchSide())
ms:addShape(cs:realizeShape():translate(1,.3):switchSide())
ms:addShape(cs:realizeShape():switchSide())
ms:addShape(cs:realizeShape():scale(2,... | nilq/small-lua-stack | null |
--get the addon namespace
local addon, ns = ...
-----------------------------
-- VARIABLES
-----------------------------
local rASA = ns.rASA
local SAOF = SpellActivationOverlayFrame
local dragFrameList = ns.dragFrameList
local floor = floor
local min = min
local max = max
-... | nilq/small-lua-stack | null |
local crypto_hmac = require("openssl.hmac")
local crypto_digest = require("openssl.digest")
local basexx = require("basexx")
local to_base64, from_base64
to_base64, from_base64 = basexx.to_base64, basexx.from_base64
local string_format, string_byte, base64_encode, base64_decode, to_hex, crypto_wrapper, hmac_wrapper, md... | nilq/small-lua-stack | null |
--* This Document is AutoGenerate by OrangeFilter, Don't Change it! *
---@meta
---
---[4.0]locus key frame[parent:]
---
---@class LocusKeyFrame
---
---[4.0]translate x
---
---@field translateX float
---
---[4.0]translate y
---
---@field translateY float
---
---[4.0]translate z
---
---@field translateZ float
---
---[4... | nilq/small-lua-stack | null |
local commander = require 'commander'
commander.register('hello', function()
print 'Hello world!'
end)
| nilq/small-lua-stack | null |
local modules = (...):gsub('%.[^%.]+$', '') .. '.'
local utils = require(modules .. 'utils')
local base_node = require(modules .. 'base_node')
local lovg = love.graphics
local joy = base_node:extend('joy')
function joy:constructor()
joy.super.constructor(self)
self.joyX = 0
self.joyY = 0
end
function joy:limitMo... | nilq/small-lua-stack | null |
local c = 2.1;
c = c * 10;
return c+ 9;
| nilq/small-lua-stack | null |
--[=[
Holds utility math functions not available on Roblox's math library.
@class Math
]=]
local Math = {}
--[=[
Maps a number from one range to another.
:::note
Note the mapped value can be outside of the initial range,
which is very useful for linear interpolation.
:::
```lua
print(Math.Map(0.1, 0, 1, 1,... | nilq/small-lua-stack | null |
--this = SceneNode()
Tool = {}
local camera = nil
local mapEditor = nil
local copyBufferBillboard = nil
function Tool.create()
camera = this:getRootNode():findNodeByType(NodeId.camera)
--camera = Camera()
mapEditor = Core.getBillboard("MapEditor")
buildAreaPanel = mapEditor:getPanel("BuildAreaPanel")... | nilq/small-lua-stack | null |
---
-- @author wesen
-- @copyright 2020 wesen <wesen-ac@web.de>
-- @release 0.1
-- @license MIT
--
local BaseIncludeCommandParser = require "src.IncludeFileResolver.IncludeCommandParser.Base"
---
-- IncludeCommandParser for the "exec" command.
-- The "exec" command includes single cubescript files.
--
-- @type ExecIn... | nilq/small-lua-stack | null |
-- Creative Item Barrel Block
storage_barrels.base_ndef.groups = storage_barrels.item_groups
storage_barrels.base_ndef.max_count = -1
local ndef = table.copy(storage_barrels.base_ndef)
ndef.description = "Creative Item Barrel"
storage_barrels.configure_item_barrel_ndef(ndef, "storage_barrels_top_item_creative.png", f... | nilq/small-lua-stack | null |
/*
- TO DO LIST
- 3D Health Bars for apothecaries
- Squad system
- Stamina, Health, Armor
-
*/
nut.bar = nut.bar or {}
nut.bar.list = {}
nut.bar.delta = nut.bar.delta or {}
nut.bar.actionText = ""
nut.bar.actionStart = 0
nut.bar.actionEnd = 0
local width = ScrW()
local height = ScrH()
local maxWidth = (width * ... | nilq/small-lua-stack | null |
return {
corerad = {
acceleration = 0,
airsightdistance = 1045,
brakerate = 0,
buildangle = 65536,
buildcostenergy = 10275,
buildcostmetal = 787,
builder = false,
buildinggrounddecaldecayspeed = 30,
buildinggrounddecalsizex = 6,
buildinggrounddecalsizey = 6,
buildinggrounddecaltype = "corerad_aop... | nilq/small-lua-stack | null |
local M, decompress, bin = {}, require("casc.platform").decompress, require("casc.bin")
local CONCAT_CHUNK_SIZE, CONCAT_STOP_LENGTH = 512, 16384
function M.patch(old, patch)
local ssub, int64ish_le, sadd = string.sub, bin.int64ish_le, bin.sadd
if ssub(patch, 1, 8) ~= "ZBSDIFF1" then
return nil, "corrupt patch: s... | nilq/small-lua-stack | null |
ITEM.name = "Mama's beads"
ITEM.model ="models/nasca/etherealsrp_artifacts/mamas_beads.mdl"
ITEM.description = "Helix-shaped, pulsating artifact."
ITEM.longdesc = "Effectively heals minor wounds, and can heal large wounds over a long period of time. Emits insignificant radiation. Initial skin discoloration upon healing... | nilq/small-lua-stack | null |
local CorePackages = game:GetService("CorePackages")
local Roact = require(CorePackages.Roact)
local Components = script.Parent.Parent.Parent.Components
local DataConsumer = require(Components.DataConsumer)
local HeaderButton = require(Components.HeaderButton)
local CellLabel = require(Components.CellLabel)
local Con... | nilq/small-lua-stack | null |
require("nvim-autopairs").setup(
{
disable_filetype = {"TelescopePrompt"},
ignored_next_char = string.gsub([[ [%w%%%'%[%"%.] ]], "%s+", ""),
enable_moveright = true,
enable_afterquote = true, -- add bracket pairs after quote
enable_check_bracket_line = true, --- check bracket in same line
chec... | nilq/small-lua-stack | null |
--[[
##########################################################
S V U I By: Failcoder
##########################################################
LOCALIZED LUA FUNCTIONS
##########################################################
]]--
--[[ GLOBALS ]]--
local _G = _G;
local unpack = _G.unpack;
local select = _G.selec... | nilq/small-lua-stack | null |
local _, ns = ...
local B, C, L, DB, P = unpack(ns)
local S = P:GetModule("Skins")
local _G = getfenv(0)
local select, pairs, type = select, pairs, type
local function reskinChildButton(frame)
if not frame then return end
for i = 1, frame:GetNumChildren() do
local child = select(i, frame:GetChildren())
if chil... | nilq/small-lua-stack | null |
local storeKey = KEYS[1]
local nodeKey = KEYS[2]
local pathCount = tonumber(ARGV[1])
local hasStore = redis.call('exists', storeKey)
if (hasStore == 0)
then
return -1
end
-- 1. remove resource from path set
local resources = {}
for i = pathCount + 2, #ARGV do
resources[#resources + 1] = ARGV[i]
end
local affe... | nilq/small-lua-stack | null |
SILE.registerCommand("thisframeLTR", function(options, content)
SILE.typesetter.frame.direction = "LTR"
SILE.typesetter:leaveHmode()
SILE.typesetter.frame:newLine()
end);
SILE.registerCommand("thisframeRTL", function(options, content)
SILE.typesetter.frame.direction = "RTL"
SILE.typesetter:leaveHmode()
SIL... | nilq/small-lua-stack | null |
SWEP.PrintName = "Antidote gun" -- 'Nice' Weapon name (Shown on HUD)
SWEP.Author = ""
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.Instructions = ""
SWEP.ViewModelFOV = 62
SWEP.ViewModelFlip = false
SWEP.ViewModel = "models/weapons/v_pistol.mdl"
SWEP.WorldModel = "models/weapons/w_357.mdl"
SWEP.Spawnable = fals... | nilq/small-lua-stack | null |
SettingMap = mondelefant.new_class()
SettingMap.table = 'setting_map'
SettingMap.primary_key = { "key", "subkey" } | nilq/small-lua-stack | null |
--[[ Write a function that receives an array and prints all combinations of the elements in the array.
(Hint: you can use the recursive formula for combination: C(n,m) = C(n-1,m-1) + C(n-1,m). To generate all C(n,m) combinations of n elements in groups of size m, you first add the first element to the result and then ... | nilq/small-lua-stack | null |
local wool_colors = {
{"wool:white", "excolor_white"},
{"wool:grey", "excolor_grey"},
{"wool:black", "excolor_black"},
{"wool:red", "excolor_red"},
{"wool:yellow", "excolor_yellow"},
{"wool:green", "excolor_green"},
{"wool:cyan", "excolor_cyan"},
{"wool:blue", "excolor_blue"},
{"wool:magenta",... | nilq/small-lua-stack | null |
local blank = {
filename = "__computer_core__/graphics/blank.png",
priority = "high",
width = 1,
height = 1,
frame_count = 1,
axially_symmetrical = false,
direction_count = 1,
shift = { 0.0, 0.0 },
}
data:extend({{
type = "lamp",
name = "computer-lamp",
flags = { "placeable-... | nilq/small-lua-stack | null |
-- dap
local dap = require('dap')
local jdtls_util = require('jdtls.util')
local launchjs = require('dap.ext.vscode')
local utils = require('thijssesc.utils')
local variables = require('dap.ui.variables')
local nnoremap = utils.keymap.nnoremap
launchjs.load_launchjs()
dap.adapters.node2 = {
type = 'executable',... | nilq/small-lua-stack | null |
--[[
MIT License
Copyright (c) 2020 DekuJuice
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, d... | nilq/small-lua-stack | null |
--[[
-- 作者:Steven
-- 日期:2017-02-26
-- 文件名:err_redirect.lua
-- 版权说明:南京正溯网络科技有限公司.版权所有©copy right.
-- 错误重定向的简单封装,用于系统的重定向错误处理,
-- 重定向过来时,如果存在url 则直接跳向该连接;
如果不存在url根据编码约定返回;
如果都没有,则跳转到默认文件
--]]
-- 本文件进行重定向的管理
local cjson = require "cjson"
local _M={
file_access_error = "/401.html",
}
--[[
-- _M.re... | nilq/small-lua-stack | null |
local _, XB = ...
-- Locals
local GetTime = GetTime
local UnitGUID = UnitGUID
local GetSpellInfo = GetSpellInfo
local InCombatLockdown = InCombatLockdown
local UnitHealth = UnitHealth
local wipe = wipe
XB.CombatTracker = {}
local Data = {}
local L = XB.Locale
-- Thse are Mixed ... | nilq/small-lua-stack | null |
local nord = (function()
local nord_colors = {
nord0 = '#2E3440',
nord1 = '#3B4252',
nord2 = '#434C5E',
nord3 = '#4C566A',
nord4 = '#D8DEE9',
nord5 = '#E5E9F0',
nord6 = '#ECEFF4',
nord7 = '#8FBCBB',
nord8 = '#88C0D0',
nord9 = '#81A1C1',
nord10 = '#5E81AC',
nord11 = '#BF616A',
nord12 = '#D08770',
nord1... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Chamber of Oracles
-- Mob: Princeps V-XI
-- Zilart 6 Fight
-----------------------------------
mixins = {require("scripts/mixins/job_special")}
-----------------------------------
function onMobDeath(mob, player, isKiller)
end
| nilq/small-lua-stack | null |
--[[Write a Person class with an instance variable, age, and a constructor that takes an integer, initialAge, as a parameter.
The constructor must assign initialAge to age after confirming the argument passed as is not negative; if a negative argument is passed as initialAge,
the constructor should set initialAge to... | nilq/small-lua-stack | null |
local typeof = typeof
toluaSystem = System
local isInstanceOfType = typeof(toluaSystem.Object).IsInstanceOfType
local Timer = Timer.New -- tolua.Timer
local function isFromCSharp(T)
return T[".name"] ~= nil
end
local function isUserdataType(obj, T)
if isFromCSharp(T) then
return isInstanceOfType(typeof(T), o... | nilq/small-lua-stack | null |
local _ = require('bit')
local a = {}
a.__index = function(e, f) return rawget(e, f) or e.bits[f] or 0 end
a.__newindex = function(e, f, g)
if tonumber(f) then
e:set(f, g)
else
rawset(e, f, g)
end
end
local function b(e)
local f = {}
f.bits = e or {}
f.isSet = function(g, h) retu... | nilq/small-lua-stack | null |
-- control.lua
-- Apr 2017
function CreateTagGui(event)
local player = game.players[event.player_index]
if player.gui.top.tag == nil then
player.gui.top.add{name="tag", type="button", caption="Tag"}
end
end
-- Tag list
local roles = {
{display_name = "[Solo]"},
{display_name = "[Mining]"},
{displa... | nilq/small-lua-stack | null |
id = 'V-38608'
severity = 'low'
weight = 10.0
title = 'The SSH daemon must set a timeout interval on idle sessions.'
description = 'Causing idle users to be automatically logged out guards against compromises one system leading trivially to compromises on another.'
fixtext = [=[SSH allows administrators to set an idle ... | nilq/small-lua-stack | null |
print('core.utils.commonUtil')
_commonUtil = {
--
};
function _commonUtil.getTableLen(T)
local count = 0
for _ in pairs(T) do count = count + 1 end
return count
end
function _commonUtil.prtTable(T)
print('_commonUtil:prtTabble');
for k, v in pairs(T) do
print('k : '... | nilq/small-lua-stack | null |
local mock = require("luassert.mock")
local stub = require("luassert.stub")
local options = require("nvim-lsp-ts-utils.options")
local u = require("nvim-lsp-ts-utils.utils")
local o = mock(options, true)
describe("client", function()
stub(vim.lsp.util, "apply_workspace_edit")
stub(vim.lsp.handlers, "textDocu... | nilq/small-lua-stack | null |
package.path = package.path..";../?.lua"
local bit = require("bit")
local bor, band, lshift, rshift = bit.bor, bit.band, bit.lshift, bit.rshift
local xf86drmMode = require("xf86drmMode_ffi")
local libc = require("libc")
local DRMFrameBuffer = require("DRMFrameBuffer")
local DRMCard = require("DRMCard")
local funct... | nilq/small-lua-stack | null |
require "Client.Scripts.Modulus.Cmd.MainCmd"
require "Client.Scripts.Modulus.Cmd.BottomMidCmd"
require "Client.Scripts.Modulus.Cmd.JoyStickCmd"
require "Client.Scripts.Modulus.Cmd.BottomSkillCmd"
require "Client.Scripts.Modulus.Cmd.FaceBookCmd"
require "Client.Scripts.Modulus.Cmd.GuildCmd" | nilq/small-lua-stack | null |
local key = ModPath .. ' ' .. RequiredScript
if _G[key] then return else _G[key] = true end
local REACT_AIM = AIAttentionObject.REACT_AIM
local REACT_SCARED = AIAttentionObject.REACT_SCARED
function CopLogicSniper._upd_enemy_detection(data)
managers.groupai:state():on_unit_detection_updated(data.unit)
data.t = Tim... | nilq/small-lua-stack | null |
local U = {}
local maxGetRange = 1600;
local maxAddedRange = 200;
local maxLevel = 25;
function U.InitiateAbilities(hUnit, tSlots)
local abilities = {};
for _,i in pairs(tSlots) do
table.insert(abilities, hUnit:GetAbilityInSlot(i));
end
return abilities;
end
function U.CantUseAbility(bot)
return bot:NumQueued... | nilq/small-lua-stack | null |
--- This class handles the listeners for processing events. This
-- class currently acts like a singleton but uses colon references
-- in case it needs to be upgraded to a true class.
-- @classmod ListenerProcessor
-- region imports
local class = require('classes/class')
local listeners = require('classes/lis... | nilq/small-lua-stack | null |
function On_Gossip(unit, event, player)
unit:GossipCreateMenu(3544, player, 0)
unit:GossipMenuAddItem(2, "Walmart", 1, 0)
unit:GossipMenuAddItem(2, "Horde Cities", 3, 0)
unit:GossipMenuAddItem(2, "Alliance Cities", 4, 0)
unit:GossipMenuAddItem(2, "Global Locations", 5, 0)
unit:GossipMenuAddItem(2, "Outland Locations", ... | nilq/small-lua-stack | null |
-- Dumb effect for tests
{
vertex = {
uniformBuffers = {
matrices = {
wvp = "mat4"
},
variables = {
f = "float",
v2 = "vec2",
v3 = "vec3",
v4 = "vec4"
}
},
inputs... | nilq/small-lua-stack | null |
sec = 14
day = 8
mon = 10
year = 2016
Text = "Neptune!"
| nilq/small-lua-stack | null |
local playsession = {
{"tanneman", {248756}},
{"Augustona", {249991}},
{"Menander", {249328}},
{"Reyand", {94201}},
{"Gorlos", {237293}},
{"Qwa7", {1355}},
{"baterusoya", {56944}},
{"everLord", {206689}},
{"bbc26rus", {808}},
{"AurelienG", {197811}},
{"gearmach1ne", {137806}},
{"perrykain", {176387}},
{"mz... | nilq/small-lua-stack | null |
local act = require "/modules/actor"
local Label = {}
Label.__index = Label
function Label:new(x,y, color, w)
local act = act.new(x, y)
setmetatable(act, Label)
act.w = w or 200
act.text = text or ''
act.fsize = 12
act.font = nil
act.color = color or {255, 255, 255}
return act
... | nilq/small-lua-stack | null |
data:extend {
{
type = 'bool-setting',
name = 'picker-tool-tape-measure',
setting_type = 'startup',
default_value = true,
order = 'tool-tape-measure'
},
{
type = 'bool-setting',
name = 'picker-tool-ore-eraser',
setting_type = 'startup',
... | nilq/small-lua-stack | null |
-- This file is subject to copyright - contact swampservers@gmail.com for more information.
local Entity = FindMetaTable("Entity")
--[[
To use web materials, just call in your draw hook:
mat = WebMaterial(args)
Then set/override material to mat
args is a table with the following potential keys:
id: from Saniti... | nilq/small-lua-stack | null |
-- (Lot's taken from https://github.com/wbthomason/dotfiles/blob/linux/neovim/.config/nvim/init.lua)
local g = vim.g
local cmd = vim.cmd
local o, wo, bo = vim.o, vim.wo, vim.bo
local utils = require 'config.utils'
local opt = utils.opt
local autocmd = utils.autocmd
local map = utils.map
-- Leader / local leader
g.mapl... | nilq/small-lua-stack | null |
local m_reactions={}
local m_configForm = nil
local m_colorForm = nil
local m_template = nil
local m_highlightObjID = nil
local m_needRestoreHighlightByCursor = false
local m_needRestoreHighlightByTarget = false
local m_higlightNow = true
local m_selectionColor1 = { r = 1, g = 1, b = 0, a = 0.9 }
local m_selectionCo... | nilq/small-lua-stack | null |
local function raw_table(state, arguments)
local tbl = arguments[1]
if not pcall(assert.falsy, getmetatable(tbl)) then
return false
end
for _, v in ipairs({"ROWS", "VOID"}) do
if tbl.type == v then
return false
end
end
if tbl.meta ~= nil then
return false
end
return true
end
local... | nilq/small-lua-stack | null |
return {
summary = 'Destroy the Shape.',
description = 'Destroy the Shape, removing it from Colliders it\'s attached to.',
arguments = {},
returns = {},
notes = 'Calling functions on the Shape after destroying it is a bad idea.',
related = {
'Collider:destroy',
'Joint:destroy',
'World:destroy'
... | nilq/small-lua-stack | null |
local Player, super = Class(Character)
function Player:init(chara, x, y)
super:init(self, chara, x, y)
local hx, hy, hw, hh = self.collider.x, self.collider.y, self.collider.width, self.collider.height
self.interact_collider = {
["left"] = Hitbox(self, hx - hw/2, hy, hw, hh),
["right"] = ... | nilq/small-lua-stack | null |
--setting up neovim globle settings
--All explaned {nothing to do here}
vim.o.backup = false -- creates a backup file
vim.o.clipboard = "unnamedplus" -- allows neovim to access the system clipboard
vim.o.cmdheight = 2 -- more space in the neovim command line for displaying messages
vim.o.colorcolumn = "99999" -- fixes ... | nilq/small-lua-stack | null |
--
--
function mat4_getInversed(mat)
end
---@overload fun(mat,x,y,z,w):vec4_table
function mat4_transformVector(mat, vec4)
end
function mat4_decompose(mat, scale, rotation, translation)
return { scale = cc.vec3(), rotation = cc.quaternion(), translation = cc.vec3() }
end
function mat4_multiply(mat1, mat2)
end
... | nilq/small-lua-stack | null |
return {
id = 4001201,
bgm = "story-french2",
stages = {
{
{
triggerType = 8,
key = true,
waveIndex = 900,
preWaves = {
201
},
triggerParams = {}
},
stageIndex = 1,
failCondition = 1,
timeCount = 300,
passCondition = 1,
backGroundStageID = 1,
totalArea = {
-... | nilq/small-lua-stack | null |
local scriptPath = getScriptPath()
package.path = scriptPath .. '/?.lua;' .. package.path
local string = string
local zmq = require("lzmq")
local zmq_poller = require("lzmq.poller")
local zap = require("auth.zap")
local config_parser = require("utils.config_parser")
local event_data_converter = require("impl.event_d... | nilq/small-lua-stack | null |
local L = require "lpeg"
local Node = require "espalier/node"
local u = {}
function u.inherit(meta)
local MT = meta or {}
local M = setmetatable({}, MT)
M.__index = M
local m = setmetatable({}, M)
m.__index = m
return M, m
end
function u.export(mod, constructor)
mod.__call = constructor
return setm... | nilq/small-lua-stack | null |
-- taken from https://github.com/harvardnlp/seq2seq-attn/blob/master/s2sa/memory.lua
-- module for memory management
-- reuseMem is used for reusing output tensor for storing gradInput and optimizing memory allocation
-- use :reuseMem() on the module to allow the feature
-- then apply setReuse after initialization
-- ... | nilq/small-lua-stack | null |
--monsterframes.lua
local hooks = {}
local settings = {
showRaceType = false,
showAttribute = false,
showArmorMaterial = true,
showMoveType = true,
showEffectiveAtkType = false,
showTargetSize = true,
showMaxHp = true,
showHpPercent = true,
showKillCount = true}
local posTable = {
normal = {x = 303, y = 1... | nilq/small-lua-stack | null |
print(0.0/1.0)
print(-0.0/1.0)
print(0.0/0.0)
| nilq/small-lua-stack | null |
return PlaceObj("ModDef", {
"title", "Fix Buildings Broken And No Repair",
"version", 3,
"version_major", 0,
"version_minor", 3,
"image", "Preview.png",
"id", "ChoGGi_FixBuildingsBrokenDownAndNoRepair",
"steam_id", "1599190080",
"pops_any_uuid", "56012643-cfef-4dd2-b358-a80d651b542f",
"author", "ChoGGi",
"lua... | nilq/small-lua-stack | null |
--TRIGGERS THE CLOAKING CLIENT FUNCTIONS
addEvent ("cloaktheplayer", true )
function cloakstart(thisplayer)
setElementData ( thisplayer, "stealthmode", "on" )
playSoundFrontEnd ( thisplayer, 34 )
setElementAlpha ( thisplayer, 10 )
end
addEventHandler("cloaktheplayer",getRootElement(),cloakstart)
--TRIGGERS THE U... | nilq/small-lua-stack | null |
--------------------------------------
---- Made by Roids#9757 for TWPRP ----
--------------------------------------
------- VORP Stuff don't touch -------
--------------------------------------
local VorpCore = {}
TriggerEvent("getCore",function(core)
VorpCore = core
end)
VORP = exports.vorp_core:vorpAPI()
-----... | nilq/small-lua-stack | null |
return {
name = "rphillips/options",
version = "0.0.4",
description = "easy to use getopt library",
author = "pancake <pancake@nopcode.org>",
dependencies = { },
files = {
"*.lua",
"!test*",
}
}
| nilq/small-lua-stack | null |
require("config")
require("cocos.init")
require("framework.init")
-- require("framework.utilitys")
local MyApp = class("MyApp", cc.mvc.AppBase)
function MyApp:ctor()
MyApp.super.ctor(self)
self.scenes_ = {
"MenuScene",
"CCSSample1Scene",
"CCSSample2Scene",
"CCSSample3Scene",
... | nilq/small-lua-stack | null |
require 'nn'
require 'nngraph'
local san = {}
function san.n_attention_layer(opt)
local inputs, outputs = {}, {}
table.insert(inputs, nn.Identity()())
table.insert(inputs, nn.Identity()())
local img_feat = inputs[1]
local ques_feat = inputs[2]
local u = ques_feat
local img_tr = nn.Dropo... | 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.