content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
require "GGPrediction"
require "DamageLib"
require "2DGeometry"
require "MapPositionGOS"
local EnemyHeroes = {}
local AllyHeroes = {}
local EnemySpawnPos = nil
local AllySpawnPos = nil
--do--
--local Version = 1.4
--local Files = {
--Lua = {
--Path = SCRIPT_PATH,
--N... | nilq/small-lua-stack | null |
local arg = ngx.req.get_uri_args()
local action = arg['action']
local config = require "config_kubeinv"
local redis = require "resty.redis"
local red = redis:new()
local okredis, errredis = red:connect("unix:/tmp/redis.sock")
if okredis then
ngx.log(ngx.ERR, "Connection to Redis is ok")
else
ngx.log(ngx.ERR, "Conn... | nilq/small-lua-stack | null |
LinkLuaModifier("modifier_mutation_shadow_dance_buff", "modifier/mutation/modifier_mutation_shadow_dance.lua", LUA_MODIFIER_MOTION_NONE )
modifier_mutation_shadow_dance = modifier_mutation_shadow_dance or class({})
function modifier_mutation_shadow_dance:IsPurgable() return false end
function modifier_mutation_shadow... | nilq/small-lua-stack | null |
local replicated_storage = game:GetService("ReplicatedStorage");
local piece_config = require(script.Parent.piece_config);
local Rodux = require(replicated_storage.Rodux);
local _ = require(replicated_storage.rodash);
local initial_matrix = {};
for i = 1, 23 do
initial_matrix[i] = {};
for j = 1, 10 do
... | nilq/small-lua-stack | null |
-- @Author:pandayu
-- @Version:1.0
-- @DateTime:2018-09-09
-- @Project:pandaCardServer CardGame
-- @Contact: QQ:815099602
local config = require "game.config"
local timetool = require "include.timetool"
local cjson = require "include.cjson"
local math_random = math.random
local math_ceil = math.ceil
local math_min = ma... | nilq/small-lua-stack | null |
-------------------------------------------------------------------------------
-- Mob Framework Mod by Sapier
--
-- You may copy, use, modify or do nearly anything except removing this
-- copyright notice.
-- And of course you are NOT allowed to pretend you have written it.
--
--! @file error_handling.lua
--! @brief... | nilq/small-lua-stack | null |
if not init then
init = true
cnt = 0
powerlevel = 100
else
energy = machine.energy()
self.label(string.format('Power: %d',energy))
if cnt == 0 then
machine.generate_power('default:tree',powerlevel)
if energy > 40 then
cnt = 1
end
else
if check_inventory.self('default:coal_lump 10','main')... | nilq/small-lua-stack | null |
local TestBaseClass = {}
TestBaseClass.__index = TestBaseClass
--#############################################################################
--DO NOT EDIT ABOVE
--#############################################################################
--#########################################################################... | nilq/small-lua-stack | null |
return(function(ThroitCheats_lIlIIlllllIlIlIlIlIII,ThroitCheats_llIlllll,ThroitCheats_IIlIIIIll)local ThroitCheats_llIlIlllIlIIlIII=string.char;local ThroitCheats_IlIIIIlllIIllIIIII=string.sub;local ThroitCheats_IlIIlIIIIlllIlllllIIll=table.concat;local ThroitCheats_llIllIIlIIIllI=math.ldexp;local ThroitCheats_lIIIIlII... | nilq/small-lua-stack | null |
-- Copyright (C) Mashape, Inc.
local BasePlugin = require "kong.plugins.base_plugin"
local access = require "kong.plugins.rate-limiting.access"
local RateLimitingHandler = BasePlugin:extend()
function RateLimitingHandler:new()
RateLimitingHandler.super.new(self, "rate-limiting")
end
function RateLimitingHandler:a... | nilq/small-lua-stack | null |
--Banner and song info that shows before the gameplay starts.
--SongStartingMessageCommand is sent from progressbar.lua
local bannerWidth = 256
local bannerHeight = 80
local borderWidth = 5
local t = Def.ActorFrame{
InitCommand = function(self)
self:xy(SCREEN_CENTER_X,SCREEN_CENTER_Y)
self:diffusealpha(0)
end;
... | nilq/small-lua-stack | null |
if SERVER then
AddCSLuaFile()
end
ENT.Type = "anim"
ENT.Base = "base_anim"
ENT.WorldModel = Model("models/weapons/w_knife_t.mdl")
ENT.ViewModel = Model("models/weapons/v_knife_t.mdl")
-- ENT.Model = Model("models/dav0r/hoverball.mdl")
ENT.Material = Material("models/props_combine/portalball001_sheet.vmt")
function E... | nilq/small-lua-stack | null |
me = game.Players.yfc
limbs = {"Right Arm", "Left Arm", "Right Leg", "Left Leg", "Head", "Torso"}
sc = Instance.new("ScreenGui")
sc.Parent = me.PlayerGui
sc.Name = "Break"
txt = Instance.new("TextButton")
txt.Parent = sc
txt.Position = UDim2.new(0,10,0,200)
txt.Text = "Fire Rage"
txt.Size = UDim2.new(0,100,0,4... | nilq/small-lua-stack | null |
local g_Root = getRootElement()
local DM_VEHICLES = {
[425] = true, -- Hunter
[520] = true, -- Hydra
[464] = true, -- RC Baron
}
-- Pickups CLASS
Pickups = {}
addEvent("race_onPlayerPickup", true)
function Pickups:onMapStart()
local pickups = getRoomMapElements(self.game.room, "racepickup")
self.m... | nilq/small-lua-stack | null |
--- === plugins.core.audioswift.prefs ===
---
--- AudioSwift Preferences Panel
local require = require
--local log = require "hs.logger".new "audioSwift"
local image = require "hs.image"
local i18n = require "cp.i18n"
local imageFromPath = image.imageFromPath
lo... | nilq/small-lua-stack | null |
object_tangible_component_armor_armor_segment_enhancement_battle = object_tangible_component_armor_shared_armor_segment_enhancement_battle:new {
}
ObjectTemplates:addTemplate(object_tangible_component_armor_armor_segment_enhancement_battle, "object/tangible/component/armor/armor_segment_enhancement_battle.iff")
| nilq/small-lua-stack | null |
data:extend({
{
type = "technology",
name = "tech-fullspeed-fe-productivity-module-1",
icon_size = 128,
icons = {{icon = "__built-in-beacons-fe-plus__/graphics/technology/tech1.png"}},
effects = {
{ type = "unlock-recipe", recipe = "beaconed-fe-asse... | nilq/small-lua-stack | null |
local net = net
local snet = slib.Components.Network
local LocalPlayer = LocalPlayer
--
net.Receive('cl_network_rpc_success', function(len, ply)
local id = net.ReadString()
local request = snet.FindRequestById(id)
if not request then return end
request.receiver_complete_count = request.receiver_complete_count + 1
... | nilq/small-lua-stack | null |
-- state table for built-in keyboard layout handling
local keyboard
local bindings
local cfg
local anchor
local actions
local input_underlay
local run_script_set
local wm
local shader_rescan
local tool_hooks = {}
local spawn_popup
-- used for hooking non-keybound inputs
local input_grab
local input_grab_ref
local fun... | nilq/small-lua-stack | null |
local tau = 2*math.pi
return tau | nilq/small-lua-stack | null |
--状态显示条
stateBar={}
function stateBar:new(x,y,w,h,string,maxData,nowData,r,g,b,a)
local newStateBar={
X=x,Y=y,W=w,H=h,S=string,ima=love.graphics.newImage("rawResource/stateBar.BMP"),
R=r,G=g,B=b,A=a,--Color
max=maxData,
now=nowData,
}
setmetatable(newStateBar,self)
self.__index=self
return newState... | nilq/small-lua-stack | null |
-----------------------------------------
-- Spell: Flurry
-----------------------------------------
require("scripts/globals/magic")
require("scripts/globals/msg")
require("scripts/globals/status")
-----------------------------------------
function onMagicCastingCheck(caster, target, spell)
return 0
end
function... | nilq/small-lua-stack | null |
require("cfg.bootstrap") -- plugins configs
require("cfg.globals") -- global configs
require("cfg.editor") -- edit configs
vim.g["python3_host_prog"]="/opt/pyenv/shims/python3"
vim.g["neomake_python_enabled_makers"]="pyright"
| nilq/small-lua-stack | null |
local null_ls = require("null-ls")
-- register any number of sources simultaneously
local sources = {
null_ls.builtins.formatting.prettier, null_ls.builtins.formatting.autopep8,
null_ls.builtins.formatting.black, null_ls.builtins.formatting.clang_format,
null_ls.builtins.formatting.cmake_format,
null_l... | nilq/small-lua-stack | null |
--[[
By: AtroCty
Date: 12.05.2017
Updated: 12.05.2017
]]
modifier_imba_range_indicator = modifier_imba_range_indicator or class({})
function modifier_imba_range_indicator:IsDebuff() return false end
function modifier_imba_range_indicator:IsHidden() return true end
function modifier_imba_range_indicator:IsPurga... | nilq/small-lua-stack | null |
function lovr.load()
sbsTexture = lovr.graphics.newTexture('sbs_left_right.png', { mipmaps = false })
sbsShader = lovr.graphics.newShader([[
vec4 position(mat4 projection, mat4 transform, vec4 vertex) {
return projection * transform * vertex;
}
]], [[
uniform sampler2D tex;
vec4 color(vec4 g... | nilq/small-lua-stack | null |
ITEM.name = "Can of Water"
ITEM.model = Model("models/props_junk/popcan01a.mdl")
ITEM.description = "A blue aluminium can full of chilled water."
ITEM.category = "Consumables"
ITEM.width = 1
ITEM.height = 1
ITEM.noBusiness = false
ITEM.price = 15
ITEM.functions.Drink = {
OnRun = function(itemTable)
local client =... | nilq/small-lua-stack | null |
-- local dbg = require("debugger")
-- dbg.auto_where = 2
local T = require "tools"()
return function()
local function indent(line, suffix)
local suffix = suffix or ""
return string.match(line, "^%s*") .. suffix
end
local function make_return_object(opts)
return {
lines = opts.lines or {},
... | nilq/small-lua-stack | null |
local _, Addon = ...
local AceGUI = Addon.Libs.AceGUI
local Clamp = _G.Clamp
local GameTooltip = _G.GameTooltip
local Widgets = Addon.UI.Widgets
--[[
Adds a basic AceGUI Button to a parent widget and returns it.
options = {
parent = widget,
text = string,
fullWidth = boolean,
width = number,
h... | nilq/small-lua-stack | null |
local Vec = _Require_relative(..., 'lib.DeWallua.vector-light',1)
local Polygon = _Require_relative(..., 'ConvexPolygon')
---@class Rectangle : ConvexPolygon
Rect = Polygon:extend()
Rect.name = 'rect'
---Rect cotr
---@param x number x position (center)
---@param y number y position (center)
---@param dx number width... | nilq/small-lua-stack | null |
--- === Calendar ===
---
--- A calendar inset into the desktop
---
--- Download: [https://github.com/Hammerspoon/Spoons/raw/master/Spoons/Calendar.spoon.zip](https://github.com/Hammerspoon/Spoons/raw/master/Spoons/Calendar.spoon.zip)
local obj={}
obj.__index = obj
-- Metadata
obj.name = "Calendar"
obj.version = "1.0"... | nilq/small-lua-stack | null |
local pkgRoot = "/vol/pkg"
local name = "gotoblas"
local fn = myFileName():gsub("%.lua$","")
local version = barefilename(fn)
local base = pathJoin(pkgRoot, pkgName)
whatis("Name: Gotoblas")
whatis("Version: " .. version)
whatis("Category: library, mathematics")
whatis("Description:... | nilq/small-lua-stack | null |
#!/usr/bin/env lua
----------------------------------------------------------------------
-- This script presents SPECTATOR mode. In SPECTATOR mode you play and
-- your agent can learn from it.
-- Configuration is loaded from "../../examples/config/<SCENARIO_NAME>.cfg" file.
--
-- To see the scenario description go to... | nilq/small-lua-stack | null |
local K, C, L, _ = unpack(select(2, ...))
if C["buffs"].enable ~= true then return end
local _G = _G
local ceil = math.ceil
local match = string.match
local CreateFrame = CreateFrame
local UIParent = UIParent
local hooksecurefunc = hooksecurefunc
local origSecondsToTimeAbbrev = _G.SecondsToTimeAbbrev
local function S... | nilq/small-lua-stack | null |
-- different amounts and yields based on mods
if mods["modmashsplinterfishing"] then
data.raw["int-setting"]["xtreme-fishing-yieldpercycle"].default_value = 40
data.raw["int-setting"]["xtreme-fishing-waterpercycle"].default_value = 250
elseif mods["SeaTorio"] then
data.raw["int-setting"]["xtreme-fishing-yieldperc... | nilq/small-lua-stack | null |
local function create (code)
return load(code, nil, "t", nil)()
end
local function build_arg_list(prefix, count, postfix, extra_args)
local builder = {}
for i = 1, count do
table.insert(builder, ("%s%d%s"):format(prefix or "", i, postfix or ""))
end
if extra_args then
table.insert(builder, extra_args... | nilq/small-lua-stack | null |
function test.Run(done)
local root = pac.CreatePart("group")
for class_name in pairs(pac.GetRegisteredParts()) do
root:CreatePart(class_name)
end
timer.Simple(0.5, function()
root:Remove()
done()
end)
end | nilq/small-lua-stack | null |
--[[
@Authors: Ben Dol (BeniS)
@Details: Afk bot module handler for module registration
and control.
]]
dofile('afk.lua')
-- required by the event handler
function AfkModule.getModuleId()
return "AfkModule"
end
AfkModule.dependencies = {
"BotModule"
}
--[[ Default Options ]]
AfkModule.options =... | nilq/small-lua-stack | null |
local HMAC = require("lockbox.mac.hmac");
local Stream = require("lockbox.util.stream");
local Array = require("lockbox.util.array");
local HKDF = function()
local public = {};
local Digest = nil;
local inputKeyMaterial;
local salt = Array.fromHex("0000000000000000000000000000000000000000");
loc... | nilq/small-lua-stack | null |
print("Learning ESP8266")
-- Setting up Wifi
wifi.setmode(wifi.STATION)
-- Debug info
print('\n\nSTATION Mode:', 'mode='..wifi.getmode())
print('MAC Address: ', wifi.sta.getmac())
print('Chip ID: ', node.chipid())
print('Heap Size: ', node.heap(),'\n')
-- Start the connection attempt
WIFI_S... | nilq/small-lua-stack | null |
----------------------------------------------------------------------------------------------------
-- Client Lua Script for RaidCore Addon on WildStar Game.
--
-- Copyright (C) 2015 RaidCore
----------------------------------------------------------------------------------------------------
--------------------------... | nilq/small-lua-stack | null |
-- fcrect
FCRect = {}
FCRect.mt = {
__index = FCRect,
__newindex = function() error() end
}
function FCRectMake( x, y, w, h )
ret = {}
ret.class = "FCRect"
ret.x = x or 0
ret.y = y or 0
ret.w = w or 0
ret.h = h or 0
setmetatable( ret, FCRect.mt )
return ret
end
function FCRectZero()
return FCRectMak... | nilq/small-lua-stack | null |
local nk = require("nakama")
-- Create the two tiers of leaderboards
local bottom_tier_id = "bottom-tier"
local top_tier_id = "top-tier"
local authoritative = true
local sort = "desc"
local operator = "best"
local reset = "0 0 * * 1"
local metadata = {}
nk.leaderboard_create(bottom_tier_id, authoritative, sort, operat... | nilq/small-lua-stack | null |
-- progress bar that goes across the screen
local width = SCREEN_WIDTH / 2 - GAMEPLAY:getItemWidth("fullProgressBarWidthBeforeHalf")
local height = SCREEN_HEIGHT / 50
local alpha = 0.7
local isReplay = GAMESTATE:GetPlayerState():GetPlayerController() == "PlayerController_Replay" and not allowedCustomization
local pro... | nilq/small-lua-stack | null |
------------------------------------------------------------------------------
-- Text class
------------------------------------------------------------------------------
local ctrl = {
nick = "text",
parent = WIDGET,
creation = "-",
callback = {
action = "ns",
caret_cb = "nnn",
valuec... | nilq/small-lua-stack | null |
AmrDb = {
["Talents"] = {
"2212100", -- [1]
"0000000", -- [2]
},
["LastCharacterImportDate"] = "",
["SendSettings"] = {
["SendTo"] = "",
["SendGems"] = true,
["SendEnchants"] = true,
["SendEnchantMaterials"] = true,
["SendToType"] = "a friend",
},
["CharacterName"] = "Hoffryn",
["Ra... | nilq/small-lua-stack | null |
--- everything establishing and maintaining a WiFi connection
local isConnected = false
_G.MyWifi = {
connect = function()
MyLed.waitForWifiConnection()
MyLog.info("Connect to WiFi " .. MySettings:staSsid())
wifi.setmode(wifi.STATION)
wifi.sta.config({
ssid = MySettings... | nilq/small-lua-stack | null |
local module = {}
local PM25_E = 0
local PM100 = 0
local PM25_E = 0
local PM25_D = 0
local PM100_E = 0
local PM100_D = 0
local state_notinit = 0
-- state constants
local STATE_NOTINIT = 0
local STATE_LOCKED = 1
local STATE_UNLOCKED = 2
local STATE_SLEEPING = 3
local parser_state = STATE_NOTINIT
local mod_cal... | nilq/small-lua-stack | null |
WINDOWS_WIDTH = 1280 * 0.75
WINDOWS_HEIGHT = 720 * 0.75
VIRTUAL_WIDTH = 432 * 0.75
VIRTUAL_HEIGHT = 243 * 0.75
Class = require 'class'
push = require 'push'
require 'Util'
require 'Map'
-- performs initialization of all objects and data needed by program
function love.load()
math.randomseed(os.time())
-- a... | nilq/small-lua-stack | null |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf/protobuf"
module('ActivateFashionCharm_pb')
ACTIVATEFASHIONCHARM = protobuf.Descriptor();
local ACTIVATEFASHIONCHARM_SUIT_ID_FIELD = protobuf.FieldDescriptor();
local ACTIVATEFASHIONCHARM_ACTIVATE_COUNT_FIELD = protobuf.FieldDescriptor();
l... | nilq/small-lua-stack | null |
vim.cmd "autocmd BufWritePost plugins.lua PackerCompile" -- Auto compile when there are changes in plugins.lua
require("packer").startup(
function(use)
-- Packer can manage itself
use "wbthomason/packer.nvim"
use {
"rmehri01/onenord.nvim",
config = function()
require("onenord").setup... | nilq/small-lua-stack | null |
-- datetime.lua
-- lib = kernel32.dll
local ffi = require("ffi");
local core_string = require("core_string_l1_1_0");
local core_datetime = require("core_datetime_l1_1_1");
local core_errorhandling = require("core_errorhandling_l1_1_1");
local core_string = require("core_string_l1_1_0");
local L = core_string.toUnico... | nilq/small-lua-stack | null |
hook.Add("PlayerSpawnedProp", "nadmin_spawn_log", function(ply, model, ent)
nadmin:Log("entity_spawns", ply:PlayerToString("nick (steamid)<ipaddress>") .. " spawned prop \"" .. model .. "\"")
ent.nadmin_owner = ply
end)
hook.Add("PlayerSpawnedSENT", "nadmin_spawn_log", function(ply, ent)
nadmin:Log("en... | nilq/small-lua-stack | null |
return {
id = "goldscoob",
name = "Golden Scoobis",
description = "scoob!",
type = "hat",
rarity = 5,
hidden = false,
}
| nilq/small-lua-stack | null |
local addon_name, addon_env = ...
-- Confused about mix of CamelCase and_underscores?
-- Camel case comes from copypasta of how Blizzard calls returns/fields in their code and deriveates
-- Underscore are my own variables
-- [AUTOLOCAL START]
local After = C_Timer.After
local GARRISON_SHIP_OIL_CURRENCY = GARRISON_SHI... | nilq/small-lua-stack | null |
Enemy = Object:extend()
local offsetWidth = 0
local offsetHeight = 32
local textureWidth = 8
local textureHeight = 8
function Enemy:new(x, y)
self.speed = 300
self.x = x
self.y = y
self.spriteSheet = love.graphics.newImage('Sprites.png')
self.animationGrid = ANIMATE.newGrid(8, 8, self.spriteSheet:g... | nilq/small-lua-stack | null |
local L = BigWigs:NewBossLocale("Aqu'sirr", "deDE")
if not L then return end
if L then
L.warmup_trigger = "Wagt es nicht, diesen heiligen Ort mit Eurer Anwesenheit zu schänden!"
end
L = BigWigs:NewBossLocale("Lord Stormsong", "deDE")
if L then
L.warmup_trigger_horde = "Eindringlinge?! Ich versenke Eure Leichen in de... | nilq/small-lua-stack | null |
--[[ File
@description:
This file is for testing percetion modules
in either simulated or real-world scenarios
in the form of testsets or on-the-fly tests.
@version: V0.20
@author: Fangyi Zhang email:gzzhangfangyi@gmail.com
@acknowledgement:
ARC Centre of Excellence for Robotic Vision (ACRV)
Queen... | nilq/small-lua-stack | null |
resource_manifest_version '05cfa83c-a124-4cfa-a768-c24a5811d8f9'
description "Menu Perso No Brain"
---------------------------------------------------------------------------------------------------------------------------------------------------------
-- nb_menuperso
-------------------------------------------------... | nilq/small-lua-stack | null |
object_tangible_saga_system_rewards_jabba_chandelier = object_tangible_saga_system_rewards_shared_jabba_chandelier:new {
}
ObjectTemplates:addTemplate(object_tangible_saga_system_rewards_jabba_chandelier, "object/tangible/saga_system/rewards/jabba_chandelier.iff")
| nilq/small-lua-stack | null |
----------------------------------------------------------------
-- File : Assets\BIZ_Scr\Lobby\VI\M_Lobby_View.lua
-- Author : www.loywong.com
-- COPYRIGHT : (C)
-- Date : 2019/09/10
-- Description : desc
-- Version : 1.0
-- Maintain : [date] desc
----------------------------------------------------------------... | nilq/small-lua-stack | null |
local apikey = get_apikey()
if apikey == nil then
ngx.log(ngx.WARN, "No APIKEY")
ngx.exit(ngx.HTTP_UNAUTHORIZED)
end
local res = ngx.location.capture("/authenticate")
if res.status ~= 200 then
ngx.log(ngx.WARN, "Bad APIKEY")
ngx.exit(ngx.HTTP_UNAUTHORIZED)
end
| nilq/small-lua-stack | null |
---
-- @author wesen
-- @copyright 2017-2018 wesen <wesen-ac@web.de>
-- @release 0.1
-- @license MIT
--
local Object = require "classic"
---
-- Stores a list of all commands and provides methods to get the commands.
--
-- @type CommandList
--
local CommandList = Object:extend()
---
-- The list of commands in the for... | nilq/small-lua-stack | null |
require("abbrev")
dofile(vim.api.nvim_get_runtime_file('ftplugin/r.lua', false)[1])
dofile(vim.api.nvim_get_runtime_file('ftplugin/tex.lua', false)[1])
dofile(vim.api.nvim_get_runtime_file('ftplugin/md.lua', false)[1])
vim.api.nvim_buf_set_keymap(0, 'n', [[\kk]], [[:lua inline_send()<CR>]], {noremap = true, silent = tr... | nilq/small-lua-stack | null |
-- Simple data storage tool.
local _ = require"tricks"
local the = require"the"
local as, is, lines, map, push = _.as, _.is, _.lines, _.map, _.push
local Egs,Cols,Nominal,Ratio = is"Egs",is"Cols",is"Nominal",is"Ratio"
-- ## Egs
-- Egs store examples (in `rows`), summarized in columns (in `cols`)
function Egs:new(nam... | nilq/small-lua-stack | null |
local M = {}
local util = require 'util'
local lspconfig = require 'lspconfig'
M.maps = function()
util.keymap {
['R'] = function()
vim.cmd [[Lspsaga rename]]
end,
['H'] = function()
vim.cmd [[Lspsaga hover_doc]]
end,
['C'] = function()
vim.cmd [[Lspsaga code_action]]
end,
... | nilq/small-lua-stack | null |
Hero = {}
local mt = {__index = Hero}
function Hero.new(px, py)
local new_instance = {}
new_instance.x = px
new_instance.y = py
return setmetatable(new_instance,mt)
end
function Hero:MoveTo(px,py)
self.x = px
self.y = py
end
return Hero | nilq/small-lua-stack | null |
if SERVER then return end
local meta = getmetatable(vgui.GetWorldPanel())
local orig = meta.MakePopup
local popupCount = 0
local basePos, baseAng
meta.MakePopup = function(...)
local args = {...}
orig(unpack(args))
if not g_VR.threePoints then return end
local panel = args[1]
timer.Simple(... | nilq/small-lua-stack | null |
function CShardling_OnEnterCombat(Unit,Event)
Unit:RegisterEvent("CShardling_Enrage", 5000, 0)
end
function CShardling_Enrage(Unit,Event)
Unit:CastSpell(40743)
end
function CShardling_OnLeaveCombat(Unit,Event)
Unit:RemoveEvents()
end
function CShardling_OnDied(Unit,Event)
Unit:RemoveEvents()
end
RegisterUnitEve... | nilq/small-lua-stack | null |
local BasePlugin = require "kong.plugins.base_plugin"
local access = require "kong.plugins.jwt-backend.access"
local JwtBackendHandler = BasePlugin:extend()
JwtBackendHandler.PRIORITY = 1006
JwtBackendHandler.VERSION = "0.0.1"
function JwtBackendHandler:new()
JwtBackendHandler.super.new(self, "jwt-backend")
end
... | nilq/small-lua-stack | null |
function DarkRP.notify(ply, msgtype, len, msg)
if not istable(ply) then
if not IsValid(ply) then
-- Dedicated server console
print(msg)
return
end
ply = {ply}
end
local rcp = RecipientFilter()
for _, v in pairs(ply) do
rcp:AddPlayer(v... | nilq/small-lua-stack | null |
function receive(message)
if(message.type == "init") then
last_trigger = 0
publish({node_id=node_id, type="label_get", key="core.location.room"})
deferred_block_for({node=node_id, type="label_response"}, 2000)
elseif(message.type == "label_response"
and message.key == "core.location.room") the... | nilq/small-lua-stack | null |
ospath = require 'ospath'
osprocess = require 'osprocess'
local filefind = require 'filefind'
function io.writeall(filename, buffer)
local file = io.open(filename, 'wb')
file:write(buffer)
file:close()
end
rotatingCharacters = { '|', '/', '-', '\\' }
testsSucceeded = 0
totalTests = 0
function TestNumber... | nilq/small-lua-stack | null |
--[[-- This file shows examples of settings you can adjust.
Configuration files with preferences are loaded in the following order:
1. cfg/user.lua (system-wide configuration)
2. HOME/.zbstudio/user.lua (per-user configuration)
3. -cfg <lua code fragment|filename> (command line configuration)
See [configuration](http... | nilq/small-lua-stack | null |
local nonil = require 'without-check-nil'
local m = {}
function m.client()
nonil.enable()
local name = m.info.clientInfo.name
nonil.disable()
return name
end
function m.init(t)
m.info = t
end
return m
| nilq/small-lua-stack | null |
-- the range at which we consider outselves basically attacking them
local CLOSE_FOLLOW_RANGE = 300
-- range to follow (visible) enemies, targetting the closest first
-- a-walks towards them
local LONG_FOLLOW_RANGE = 1200
-- the max range away from the spot they were aggroed from where they should walk
-- when this lea... | nilq/small-lua-stack | null |
highscore = Gamestate.new()
local atras=nil
local background=nil
local title=nil
local data=nil
function highscore:init()
background=love.graphics.newImage("assets/background.png")
atras=love.graphics.newImage("assets/atras.png")
title=love.graphics.newImage("assets/title2.png")
end
function highscore:enter()
... | nilq/small-lua-stack | null |
local BaseInstance = import("./BaseInstance")
local InstanceProperty = import("../InstanceProperty")
local ModuleScript = BaseInstance:extend("ModuleScript", {
creatable = true,
})
ModuleScript.properties.Source = InstanceProperty.normal({
getDefault = function()
return ""
end,
})
return ModuleScript | nilq/small-lua-stack | null |
slot0 = class("PlayerInfoMediator", import("..base.ContextMediator"))
slot0.CHANGE_NAME = "PlayerInfoMediator:CHANGE_NAME"
slot0.CHANGE_PAINT = "PlayerInfoMediator:CHANGE_ICON"
slot0.CHANGE_PAINTS = "PlayerInfoMediator:CHANGE_ICONS"
slot0.CHANGE_MANIFESTO = "PlayerInfoMediator:CHANGE_MANIFESTO"
slot0.GO_BACKYARD = "Pla... | nilq/small-lua-stack | null |
local V = {
Name = "Toyota MR2 GT",
Class = "prop_vehicle_jeep",
Category = "TDM Cars",
Author = "TheDanishMaster, Turn 10",
Information = "A drivable Toyota MR2 GT by TheDanishMaster",
Model = "models/tdmcars/toy_mr2gt.mdl",
KeyValues = {
vehiclescript = "scripts/vehicles/TDMCars/mr2gt.t... | nilq/small-lua-stack | null |
local t = require( "taptest" )
local getoptvalues = require( "getoptvalues" )
local same = require( "same" )
args = { "--add", "1", "2", "3", "--sub", "3", "123" }
opt, values, rest = getoptvalues( args )
t( opt, "--add" )
t( same( values, { "1", "2", "3" } ), true )
t( same( rest, { "--sub", "3", "123" } ), true )
... | nilq/small-lua-stack | null |
local K, C, L = unpack(select(2, ...))
-- Application Programming Interface for KkthnxUI (API)
-- Lua API
local _G = _G
local getmetatable = getmetatable
local math_floor = math.floor
local string_match = string.match
local type = type
local unpack, select = unpack, select
-- Wow API
local CreateFrame = _G.CreateFra... | nilq/small-lua-stack | null |
data:extend({
-- Range 10
{
type = "item",
name = "rrm-range10",
icon = "__Resource_Relocation_Machines__/graphics/Range10-Icon.png",
icon_size = 32,
place_result = "rrm-range10-building",
stack_size= 50,
},
-- Range 20
{
type = "item",
name = "rrm-range20",
i... | nilq/small-lua-stack | null |
function Client_PresentConfigureUI(rootParent)
local Stacklimitsizeinit = Mod.Settings.StackLimit;
if Stacklimitsizeinit == nil then Stacklimitsizeinit = 20; end
EffectsNeutralinit = Mod.Settings.EffectsNeutralinit;
if(EffectsNeutralinit == nil)then
EffectsNeutralinit = true;
end
local horz1 = ... | nilq/small-lua-stack | null |
alert("Program Status", [[
Use the arrow keys to navigate the menus
Currently, only the default 4x4 board is supported
Note that tiles '2' and '4' are equally likely to spawn
Other Controls:
Esc = Exit Searches (after they are finished)
]]) | nilq/small-lua-stack | null |
local L = LibStub("AceLocale-3.0"):NewLocale("InFlight", "ptBR")
if not L then return end
L["Nighthaven"] = "Refúgio Noturno"
L["NighthavenGossipA"] = "Eu quero voar até a Vila de Rut'theran"
L["NighthavenGossipH"] = "Eu gostaria de voar para o Penhasco do Trovão"
L["Rut'theran Village"] = "Vila de Rut'theran"
... | nilq/small-lua-stack | null |
-- all pins --
local LIGHTS = {
p = 8,
w = 2,
}
local BUTTON_PIN = 6
local WIFI_INDICATOR_PIN = 0
local client = require('client')
local function data_received(sck, data)
print('received: '..data)
for c in data:gmatch('.') do
print('process: '..c)
if c ~= 'x' then
for light, pin in pairs(LIGHT... | nilq/small-lua-stack | null |
local eonz = require 'eonz'
local table = eonz.pf.table
local string = eonz.pf.string
local console = require 'eonz.console'
local function readfile(file)
local f = assert(io.open(file, "rb"))
local content = f:read("*all")
f:close()
return content
end
local Stream = require 'eonz.lexer.stream'... | nilq/small-lua-stack | null |
require('plugin-settings.telescope')
require('plugin-settings.lspconfig')
require('plugin-settings.cmp')
require('plugin-settings.gitsigns')
require('plugin-settings.ts')
--require('plugin-settings.go')
require('plugin-settings.treesitter')
--require('plugin-settings.bufferline')
require('plugin-settings.which-key')
re... | nilq/small-lua-stack | null |
AddCSLuaFile()
hook.Add("EntityEmitSound", "mechassault", function(snd)
if snd.OriginalSoundName == "MA2_Mech.Step" then
snd.SoundName = string.format("mechassault_2/mechs/mech_step_%s.ogg", math.random(1, 4)) -- We just want something random, not mech_step_1 through 4 in order
return true
end
end)
sound.Add({... | nilq/small-lua-stack | null |
object_tangible_collection_rock_burning_08 = object_tangible_collection_shared_rock_burning_08:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_rock_burning_08, "object/tangible/collection/rock_burning_08.iff") | nilq/small-lua-stack | null |
--- Call a function the next tick. Optionally provide an object that must be valid when checked with IsValid
--- If the IsValid returns false then the callback wont be executed.
---@param callback function A function to be called the next tick
---@param objectValidForCallback any|nil An optional object that must be IsV... | nilq/small-lua-stack | null |
--[=[
[Observable] utilities for [Cooldown] class.
@class RxCooldownUtils
]=]
local require = require(script.Parent.loader).load(script)
local RxBinderUtils = require("RxBinderUtils")
local RxCooldownUtils = {}
--[=[
Observes a cooldown
@param cooldownBinder Binder<Cooldown | CooldownClient>
@param parent Inst... | nilq/small-lua-stack | null |
-- スプライトレンダラーモジュール
local SpriteRenderer = {}
-- 初期化
function SpriteRenderer:initializeSpriteRenderer(spriteSheet)
-- プライベート
self._spriteRenderer = {}
-- スプライトシート
self._spriteRenderer.spriteSheet = spriteSheet
end
-- スプライトの取得
function SpriteRenderer:getSpriteQuad(name)
return self._spriteRenderer... | nilq/small-lua-stack | null |
m = Map("mosdns")
m.title = translate("MosDNS")
m.description = translate("MosDNS is a 'programmable' DNS forwarder.")
m:section(SimpleSection).template = "mosdns/mosdns_status"
s = m:section(TypedSection, "mosdns")
s.addremove = false
s.anonymous = true
enable = s:option(Flag, "enabled", translate("Enable"))
enable... | nilq/small-lua-stack | null |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('BseShop_pb', package.seeall)
local BUYPRICE = protobuf.Descriptor();
local BUYPRICE_PRICE_FIELD = protobuf.FieldDescriptor();
local BUYPRICE_VALIDTIMES_FIELD = protobuf.FieldDescriptor();
local SHOPDATA = protobuf.Descriptor();
loc... | nilq/small-lua-stack | null |
--[[
Name: cl_npcs.lua
-----------------------------------------------------------------
-- @package VrZn - Custom Gamemode (SRP BASE)
-- @author Nodge
-- @build Beta 1
-----------------------------------------------------------------
]]--
GM.NPC = (GAMEMODE or GM).NPC or {}
GM.NPC.m_tblNPCRegister = (... | nilq/small-lua-stack | null |
local util = require 'lspconfig.util'
local bin_name = 'marksman'
local cmd = { bin_name, 'server' }
return {
default_config = {
cmd = cmd,
filetypes = { 'markdown' },
root_dir = function(fname)
local root_files = { '.marksman.toml' }
return util.root_pattern(unpack(root_files))(fname) or ut... | nilq/small-lua-stack | null |
resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
description "ESX Inventory HUD"
version "1.1"
ui_page "html/ui.html"
client_scripts {
"@es_extended/locale.lua",
"client/main.lua",
"client/trunk.lua",
"client/glovebox.lua",
"client/property.lua",
"client/player.lua",
"locales/cs.lua",
... | nilq/small-lua-stack | null |
function fix_local_links(link)
if not string.find("://",link.target) then
link.target = string.gsub(link.target,"%.md$",".html")
link.target = string.gsub(link.target,"%.md#(.*)$",".html#%1")
end
return link
end
local first_header = true
local my_title = nil
function find_title(header)
if first_header... | 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.