content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
module(..., package.seeall)
local listData1 = {}
for i = 1, 100 do
table.insert(listData1, {iconNo = i, label = "label" .. i, text = "text" .. i})
end
local listData2 = {}
for i = 1, 100 do
table.insert(listData2, {label = "label" .. i, text = "text" .. i})
end
-----------------------------------------------... | nilq/small-lua-stack | null |
return function(NN)
local required = string.format("num.tract_male%d",NN)
local Tract = require(required)
local function copy_phoneme(a,b)
for k,v in pairs(Tract) do
if type(v)=="table" and v[b] then
v[a] = v[b]
end
end
end
copy_phoneme("Nv","N")
copy_phoneme("Mv","M")
Tract["areas"]["B"] = Tract["areas"]["P"... | nilq/small-lua-stack | null |
test_net_msg_module = {}
function test_net_msg_module:reload()
end
function test_net_msg_module:awake()
test_net_msg_module:reload()
end
function test_net_msg_module:init()
end
function test_net_msg_module:after_init()
script_module:log_info("test_net_msg_module after_init!----");
--script_module:add_msg_cb(12... | nilq/small-lua-stack | null |
-------------------------------------------------------------------------------- Icon Global Variables
--========================================================= Begin GlobVar
chinGlobal.Icons = {};
--================================= Type ____ GlobalVar
--============== Icon Information
chinGlobal.Icons.iconTextur... | nilq/small-lua-stack | null |
--- 基于pairs计算并返回表的大小
---@param table any
---@return integer 表的大小,为空时返回0
table.length = function(table)
local ret = 0
for _, _ in pairs(table) do
ret = ret + 1
end
return ret
end | nilq/small-lua-stack | null |
local Draw = require("api.Draw")
local Gui = require("api.Gui")
data:add {
_type = "base.auto_turn_anim",
_id = "mining",
sound = "base.dig1",
callback = function(x, y, t)
return function()
local frame = 0
local played_sound = false
while frame < 10 do
if frame... | nilq/small-lua-stack | null |
describe("translate_macro", function()
local lib = require "resty.waf.translate"
local t = lib.translate_macro
it("does not modify a string without a marker", function()
assert.is.same(t('foo'), 'foo')
end)
it("does not modify a string wrapped in a marker", function()
assert.is.same(t('%{foo}'), '%{foo}')
... | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- O P E N F I N A L C U T P R O --
-----------------------------------------------------------------------------... | nilq/small-lua-stack | null |
return {
{
effect_list = {
{
type = "BattleSkillFire",
casterAniEffect = "",
target_choise = "TargetHarmRandomByWeight",
targetAniEffect = "",
arg_list = {
weapon_id = 67611,
delay = 0.2
}
},
{
type = "BattleSkillFire",
casterAniEffect = "",
target_choise = "Tar... | nilq/small-lua-stack | null |
--- === ext ===
---
--- Standard high-level namespace for third-party extensions.
ext = {}
local function clear_old_state()
hydra.menu.hide()
hotkey.disableall()
pathwatcher.stopall()
timer.stopall()
textgrid.destroyall()
notify.unregisterall()
notify.applistener.stopall()
battery.watcher.stopall()
en... | nilq/small-lua-stack | null |
ExtraItem.ID = "ZPAntidoteBullets"
ExtraItem.Name = "ExtraItemAntidoteBulletsName"
ExtraItem.Price = 30
function ExtraItem:OnBuy(ply)
ply.AntidoteBullets = (ply.AntidoteBullets or 0) + 5
hook.Add("EntityFireBullets", "EntityFireBullets"..ply:SteamID64(), function(Attacker)
if Attacker == ply && !RoundManager:IsSpec... | nilq/small-lua-stack | null |
require "strict"
-- settings ---------
local camw = 640
local camh = 480
-- variables --------
local numsaved = 0
local freeze = 0
----------------------------------------------------
function reload()
px.title( "eye" )
cam.resolution( camw, camh )
cam.open(0)
frag.load( "process.frag" )
px.canva... | nilq/small-lua-stack | null |
local lni = require 'lni'
local fs = require 'bee.filesystem'
local config = require 'config'
local util = require 'utility'
local m = {}
local function mergeEnum(lib, locale)
if not lib or not locale then
return
end
local pack = {}
for _, enum in ipairs(lib) do
if enum.enum t... | nilq/small-lua-stack | null |
-- Dev config for testing, almost no keys bound, and they are bound such that
-- they don't get masked by the xuake I'm running as my desktop
-- works on Debian, YMMV.
xk_load_font("/usr/share/consolefonts/Uni2-Terminus20x10.psf.gz", false)
xk_load_font("/usr/share/consolefonts/Uni2-TerminusBold20x10.psf.gz", true)
-... | nilq/small-lua-stack | null |
local start = {}
local bot = require('bot')
local bindings = require('bindings')
start.command = ''
start.doc = ''
start.triggers = {
''
}
function start:action(msg)
-- Filthy hack, but here is where we'll stop forwarded messages from hitting
-- other plugins.
if msg.forward_from then return end
local output... | nilq/small-lua-stack | null |
local ntype
ntype = require("moonscript/types").ntype
local concat, insert
do
local _obj_0 = table
concat, insert = _obj_0.concat, _obj_0.insert
end
local unpack
unpack = require("moonscript/util").unpack
return {
raw = function(self, node)
return self:add(node[2])
end,
lines = function(self, node)
lo... | nilq/small-lua-stack | null |
-- Copyright (C) Yichun Zhang (agentzh)
--modify yaoxinming
local byte = string.byte
local char = string.char
local sub = string.sub
local concat = table.concat
local str_char = string.char
local rand = math.random
local type = type
local debug = false --ngx.config.debug
local ngx_log = print --ngx.log
local ngx_DEBUG... | nilq/small-lua-stack | null |
--- === cp.highland2.Document ===
---
--- Highland 2 Document [Window](cp.ui.Window.md) extension.
local ax = require "cp.fn.ax"
local Button = require "cp.ui.Button"
local Group = require "cp.ui.Group"
local... | nilq/small-lua-stack | null |
eopie = Creature:new {
objectName = "@mob/creature_names:eopie",
socialGroup = "eopie",
faction = "",
level = 7,
chanceHit = 0.26,
damageMin = 45,
damageMax = 50,
baseXp = 147,
baseHAM = 405,
baseHAMmax = 495,
armor = 0,
resists = {0,0,0,120,120,0,0,-1,-1},
meatType = "meat_herbivore",
meatAmount = 315,
... | nilq/small-lua-stack | null |
require "luaClass.include"
include "luaClass.class.init"
include "luaClass.algorithm.iterator"
include "luaClass.algorithm.Func" | nilq/small-lua-stack | null |
_G.LIBROOT_LIBA = "./"
Build {
Units = {
"library.lua",
"example.lua",
},
Configs = {
{
Name = "macosx-gcc",
DefaultOnHost = "macosx",
Tools = { "gcc" },
},
{
Name = "linux_x86-gcc",
DefaultOnHost = "linux",
Tools = { "gcc" },
SupportedHosts = { "linux" },
ReplaceEnv = {
-- Li... | nilq/small-lua-stack | null |
--[[
Copyright 2019 Manticore Games, Inc.
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, dis... | nilq/small-lua-stack | null |
fx_version "adamant"
game "gta5"
name "rp-radio"
description "An in-game radio which makes use of the mumble-voip radio API for FiveM"
author "Frazzle (frazzle9999@gmail.com)"
version "2.2.1"
ui_page "index.html"
dependencies {
"mumble-voip",
}
files {
"index.html",
"on.ogg",
"off.ogg",
}
client_scripts {
"co... | nilq/small-lua-stack | null |
local M = {}
function M.action_execute(_, items)
for _, item in ipairs(items) do
if item.quit then
require("thetto").resume_execute({action_name = item.value, source_name = item.source_name})
else
require("thetto").resume(item.source_name)
require("thetto").execute(item.value)
end
end... | nilq/small-lua-stack | null |
-- https://github.com/pandorabox-io/pandorabox.io/issues/313
-- lets flying snow fall (from chainsaw)
minetest.register_abm({
label = "flying snow cleanup",
nodenames = {"default:snow"},
neighbors = {"air"},
interval = 5,
chance = 20,
action = function(pos)
minetest.check_for_falling(pos)
end
})
| nilq/small-lua-stack | null |
local t = require( "taptest" )
local matrixtostrlst = require( "matrixtostrlst" )
local same = require( "same" )
local matrix = { { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 } }
local strlst = matrixtostrlst( matrix )
t( same( strlst, { "1\t2\t3", "4\t5\t6", "7\t8\t9" } ), true )
strlst = matrixtostrlst( matrix, "%03d", " "... | nilq/small-lua-stack | null |
local M = {}
---Get cursor in win
---@param win "window"
---@return "(row, col) tuple" (1,0)-indexed cursor position
M.get_cursor = function(win) return vim.api.nvim_win_get_cursor(win) end
M.get_row = function(win) return M.get_cursor(win)[1] end
M.get_col = function(win) return M.get_cursor(win)[2] end
---Return ... | nilq/small-lua-stack | null |
require('quest')
-- Find the black orb in Wyrmeswraec
local function gildi_orb_start_fn()
add_message_with_pause("GILDI_ORB_QUEST_START_SID")
add_message_with_pause("GILDI_ORB_QUEST_START2_SID")
clear_and_add_message("GILDI_ORB_QUEST_START3_SID")
end
local function gildi_orb_completion_condition_fn()
-- Did t... | nilq/small-lua-stack | null |
-- ScreenMiniMenuContext is an "overlay" screen that appears
-- on top of ScreenOptionsManageProfiles when the player wants
-- to manage a particular local profile.
-- ScreenOptionsManageProfiles is still shown in the background.
local num_rows
local row_height = 28
return Def.ActorFrame {
InitCommand=funct... | nilq/small-lua-stack | null |
--[[
TheNexusAvenger
Tests the StatsSorter class.
--]]
local NexusUnitTesting = require("NexusUnitTesting")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ReplicatedStorageProject = require(ReplicatedStorage:WaitForChild("Project"):WaitForChild("ReplicatedStorage"))
local StatsSorter = Replicat... | nilq/small-lua-stack | null |
require 'ccn2'
require 'cunn'
local model = nn.Sequential()
model:add(nn.Transpose({1,4},{1,3},{1,2}))
model:add(ccn2.SpatialConvolution(3, 96, 11, 4, 0, 1))
model:add(nn.ReLU())
model:add(ccn2.SpatialMaxPooling(3, 2))
model:add(ccn2.SpatialCrossResponseNormalization(5, 0.0001, 0.75))
model:add(ccn2.SpatialConvolution(... | nilq/small-lua-stack | null |
wItems, gItems, colSlot, colName, colValue, items, lDescription, bDropItem, bUseItem, bShowItem, bDestroyItem, tabPanel, tabItems, tabWeapons = nil
gWeapons, colWSlot, colWName, colWValue = nil
function pickupItem(button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement)
if (clickedElement) the... | nilq/small-lua-stack | null |
--The Section Table class
--Reference: https://en.wikibooks.org/wiki/X86_Disassembly/Windows_Executable_Files
--The path to the lua-pe module, ends with (.)
local path = string.sub((...),1,-string.len(".pe.sectiontable"))
--==Load libraries==--
--Middleclass library, for OO programming
--TODO: Support the usage of u... | nilq/small-lua-stack | null |
-- Copyright (c) 2018 Phil Leblanc -- see LICENSE file
------------------------------------------------------------------------
--[[
=== plc - crude performance tests
]]
local bin = require "plc.bin"
local stx = bin.stohex
local xts = bin.hextos
local function px(s) print(stx(s, 16, " ")) end
local function pf(... | nilq/small-lua-stack | null |
local ffi = require 'ffi'
local function ctype(name, constructor, destructor)
local metatype = {}
local metatable = {}
metatype.__index = metatype
local ctype = ffi.metatype(name, metatype)
local sizeof = ffi.sizeof(ctype)
assert(sizeof > 0)
if constructor then
function metatable:__call(...)
re... | nilq/small-lua-stack | null |
local Generators = {}
function Generators:GenRandomNubmerArr(len)
if (not len) then len = 10 end
local randomNumArr = {}
for i = 1, len do
local num = math.random(-10000000, 10000000)
table.insert(randomNumArr, num)
end
return randomNumArr
end
return Generators | nilq/small-lua-stack | null |
local function crash(reason,message)
local function center(y, text )
w, h = term.getSize()
term.setCursorPos((w - #text) / 2, y)
write(text)
end
os.pullEvent = os.pullEventRaw
reasons = {
["bypass"] = "System Bypassed",
["security"] = "System Security Issue",
["crash"] = "System Crashed",
["unknown"] ... | nilq/small-lua-stack | null |
tutorial = {}
tutMap = {}
tutMap.width = 5
tutMap.height = 5
for i = 0, tutMap.width+1 do
tutMap[i] = {}
end
tutMap[1][1] = "C"
tutMap[2][1] = "C"
tutMap[2][2] = "C"
tutMap[2][3] = "C"
tutMap[3][2] = "C"
tutMap[4][2] = "C"
tutMap[5][2] = "C"
tutorialSteps = {}
currentStep = 1
currentStepTitle = ""
currentTutBox... | nilq/small-lua-stack | null |
AddCSLuaFile("shared.lua")
AddCSLuaFile("cl_init.lua")
include("shared.lua")
function ENT:Initialize()
self:SetModel("models/z-o-m-b-i-e/metro_2033/electro/m33_electro_box_08.mdl")
self.Sig = ""
end
function ENT:OnRemove()
end
function ENT:Think()
if not IsValid(self.SignalEntity) then
self.SignalEntity = Metro... | nilq/small-lua-stack | null |
cc = cc or {}
---EaseQuadraticActionInOut object
---@class EaseQuadraticActionInOut : ActionEase
local EaseQuadraticActionInOut = {}
cc.EaseQuadraticActionInOut = EaseQuadraticActionInOut
--------------------------------
--
---@param action ActionInterval
---@return EaseQuadraticActionInOut
function EaseQuadraticActio... | nilq/small-lua-stack | null |
local npcConfig = require "config.npcConfig"
local QuestModule = require "module.QuestModule"
local DataBoxModule = require "module.DataBoxModule"
local ItemHelper = require "utils.ItemHelper"
local ParameterConf = require "config.ParameterShowInfo";
local UserDefault = require "utils.UserDefault"
local User_DataBox =... | 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.
------------------... | nilq/small-lua-stack | null |
--This is for HL2RP. Delete at your own discretion. I'm leaving it in since all it does is take up a kilobyte or so of space.
ix.anim.SetModelClass("models/humans/group01/male_01.mdl", "citizen_male")
ix.anim.SetModelClass("models/humans/group01/male_02.mdl", "citizen_male")
ix.anim.SetModelClass("models/humans/group01... | nilq/small-lua-stack | null |
local combat = {}
for i = 20, 40 do
combat[i] = Combat()
combat[i]:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_POFF)
local condition = Condition(CONDITION_ATTRIBUTES)
condition:setParameter(CONDITION_PARAM_TICKS, 20000)
condition:setParameter(CONDITION_PARAM_SKILL_DISTANCEPERCENT, i)
arr = {
{0, 0, 0, 0, 0, 0... | nilq/small-lua-stack | null |
measure = {"\(^\circ\)", "'", "''"}
al = "\(\small\alpha\)"
bt = "\(\small\beta\)" | nilq/small-lua-stack | null |
------------------------------------------------------------------------------------
-- Tidy Plates Hub
------------------------------------------------------------------------------------
local AddonName, HubData = ...;
local LocalVars = TidyPlatesHubDefaults
----------------------------------------------------------... | nilq/small-lua-stack | null |
solution "UtilsCollectionTests"
location ("../.project/".._ACTION)
language "C++"
configurations { "Debug", "Release" }
platforms { "x32", "x64" }
objdir ("../.build/".._ACTION)
project "JsonStthm"
uuid "abc3ee2c-722b-44ae-92b3-ed3f09900597"
kind "ConsoleApp"
targetdir "../Output/"
... | nilq/small-lua-stack | null |
return {
-- 转换程序代码, 原始数据文件, 输出数据文件, 保留, 转换过滤表
{"Z资源配置表.lua", "lua/数值表/Z资源配置表.xls.lua", "res_cfg.lua" },
}
| nilq/small-lua-stack | null |
local PLUGIN = PLUGIN;
-- Called when the client initializes.
function PLUGIN:Initialize()
CW_CONVAR_FULLBRIGHT = Clockwork.kernel:CreateClientConVar("cwFullBright", 0, false, false);
end; | nilq/small-lua-stack | null |
os.loadAPI("lib/json")
os.loadAPI("mcip")
local message, address, target = "foo", "192.168.1.1", "192.168.1.2"
mcip.initialize()
mcip.ipv4_initialize("default", address, "255.255.255.0", "192.168.1.254")
mcip.run_with(function()
while true do
mcip.ipv4_send("default", target, 0, 128, message)
print("Sent '"..m... | nilq/small-lua-stack | null |
--[[---------------------------------------------------------
Variables
-----------------------------------------------------------]]
local PANEL = {}
--[[---------------------------------------------------------
Function: Init
-----------------------------------------------------------]]
function PANEL:Init... | nilq/small-lua-stack | null |
local all_flags = { "noncompliant", "incomplete", "unreliabletime", "dropped",
"failedintegritycheck", "bundletoolarge", "routeneeded", "storefailure",
"sdnvoverflow", "sdnincomplete", "activetablewrap",
"duplicates", "custodyfull", "unknownrec", "inva... | nilq/small-lua-stack | null |
local g = vim.g
g.dashboard_default_executive = 'telescope'
g.dashboard_custom_footer = { '' }
g.dashboard_custom_header = {
'⠀⠀⠀⠀⠀⠀⠀⢀⣴⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣦⡀⠀⠀⠀⠀⠀⠀⠀',
'⠀⠀⠀⠀⠀⢀⣴⣿⣿⣿⣿⣆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣦⡀⠀⠀⠀⠀⠀',
'⠀⠀⠀⢀⣴⣿⣿⣿⣿⣿⣿⣿⣦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣦⡀⠀⠀⠀',
'⠀⢀⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣦⡀⠀',
'⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿... | nilq/small-lua-stack | null |
--[[
Swaggy Jenkins
Jenkins API clients generated from Swagger / Open API specification
OpenAPI spec version: 1.0.1
Contact: blah@cliffano.com
Generated by: https://openapi-generator.tech
]]
--[[
Unit tests for openapi-client.model.pipeline_runs
Automatically generated by openapi-generator (https://opena... | nilq/small-lua-stack | null |
if not modules then modules = { } end modules ['mtx-server-ctx-help'] = {
version = 1.001,
comment = "Basic Definition Browser",
author = "Hans Hagen",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
local gsub, find, lower, match = strin... | nilq/small-lua-stack | null |
local a = require "nvim-lsp-installer.core.async"
local Result = require "nvim-lsp-installer.core.result"
local process = require "nvim-lsp-installer.core.process"
local platform = require "nvim-lsp-installer.core.platform"
local functional = require "nvim-lsp-installer.core.functional"
local log = require "nvim-lsp-in... | nilq/small-lua-stack | null |
if minetest.get_modpath("radiant_damage") then
dofile(minetest.get_modpath("miberium").."/radiation.lua")
end
dofile(minetest.get_modpath("miberium").."/miberium.lua") | nilq/small-lua-stack | null |
-- make print() immediately appear in Output in ZeroBrane, instead of waiting until process exits
io.stdout:setvbuf("no")
require("src/dependencies")
function love.load()
-- for debugging in ZeroBrane
if arg[#arg] == "-debug" then require("mobdebug").start() end
math.randomseed(os.time())
lov... | nilq/small-lua-stack | null |
----------------------------------------------------------------------------------------------------
-- inscription module
--get the engine and create the module
local Engine = _G.Cecile_RecipeTooltip;
--get the database
local database = Engine.AddOn:GetModule("database");
--inscription
local PROFESSION_INDEX = 8;
... | nilq/small-lua-stack | null |
require('todo-comments').setup {
signs = true,
sign_priority = 8,
keywords = {
FIX = {
icon = ' ',
color = 'error',
alt = { 'FIXME', 'BUG', 'FIXIT', 'ISSUE' },
},
TODO = { icon = ' ', color = 'info' },
... | nilq/small-lua-stack | null |
return {
desc_get = "",
name = "恶毒μ",
init_effect = "",
time = 0,
color = "red",
picture = "",
desc = "",
stack = 3,
id = 13783,
icon = 13780,
last_effect = "",
blink = {
1,
0,
0,
0.3,
0.3
},
effect_list = {
{
type = "BattleBuffAddAttrRatio",
trigger = {
"onAttach",
"onStack"
... | nilq/small-lua-stack | null |
local Zlog = require "Zlibs.class.Log"
local Scene = require "Zlibs.class.Scene"
local obj={}
local all={}
--默认变量
obj.__tag="Blackboard"
obj.name="default"
--默认变量结束
--/////////////////////////////////////////
--/////////////////////////////////////////
--内部函数
--内部函数结束
--/////////////////////////////////////////
--///... | nilq/small-lua-stack | null |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... | nilq/small-lua-stack | null |
local moveleg = {}
local Body = require'Body'
local K = require'K_ffi'
local T = require'Transform'
local T6D = T.transform6D
local P6D = T.position6D
local util = require'util'
local approachTol = util.approachTol
local vector = require'vector'
local vnew = vector.new
require'mcm'
local torsoX = Config.walk.torsoX
... | nilq/small-lua-stack | null |
db:query("BEGIN;")
execute.inner()
db:query("COMMIT;") | nilq/small-lua-stack | null |
local af = Def.ActorFrame{Name="HighScoreList"}
-- ---------------------------------------------
-- setup involving optional arguments that might have been passed in via a key/value table
local args = ...
-- a player object, indexed by "Player"; default to GAMESTATE's MasterPlayer if none is provided
local player = ... | nilq/small-lua-stack | null |
local StringSplitTests = test.declare('StringSplitTests', 'string')
function StringSplitTests.split_returnsUnchanged_onNoMatch()
test.isEqual({ 'aaa' }, string.split('aaa', '/', true))
end
function StringSplitTests.split_splitsCorrectly_onPlainText()
test.isEqual({ 'aaa', 'bbb', 'ccc' }, string.split('aaa/bbb/ccc... | nilq/small-lua-stack | null |
function widget:GetInfo()
return {
name = "RavenMexHunter",
desc = "Attempt to make Ravens target mexes on AttackMove. Version 0,5",
author = "terve886",
date = "2019",
license = "PD", -- should be compatible with Spring
layer = 2,
handler = true, --for adding customCommand into ... | nilq/small-lua-stack | null |
L = LANG.GetLanguageTableReference("de")
-- GENERAL ROLE LANGUAGE STRINGS
L[STALKER.name] = "Stalker"
L[STALKER.defaultTeam] = "Team Stalker"
L["hilite_win_" .. STALKER.defaultTeam] = "Die Stalker gewinnen"
L["info_popup_" .. STALKER.name] = [[Du bist der Stalker!
Drücke Nachladen, um dich dauerhauft zu verwandeln un... | nilq/small-lua-stack | null |
local Class=require 'lib.hc.class'
local MouseManager=require 'lib.gui.mouseManager'
local ZoneClicker=Class {inherits={MouseManager}}
function ZoneClicker:construct(comp,x,y,w,h,target)
self.x,self.y=x,y
self.w,self.h=w,h
self.comp = comp
self.target=target
end
function ZoneClicker:move(x,y)
if x>... | nilq/small-lua-stack | null |
--
-- Created by David Lannan
-- User: grover
-- Date: 18/06/13
-- Time: 12:50 AM
-- Copyright 2013 Developed for use with the byt3d engine.
--
------------------------------------------------------------------------------------------------------------
local Slight_manager = NewState()
-----------------------------... | nilq/small-lua-stack | null |
require("__subterra__.scripts.utils")
local function destroy_hidden_entities(proxy, mined, max_level)
local unit_numbers = {}
local inputs = proxy.inputs
local outputs = proxy.outputs
local columns = proxy.columns
local poles = proxy.poles
for i = 1, max_level do
local column = col... | nilq/small-lua-stack | null |
local function div(a, b)
return (a - a % b) / b
end
| nilq/small-lua-stack | null |
--------------------------------
-- @module cc
--------------------------------------------------------
-- the cc Control
-- @field [parent=#cc] Control#Control Control preloaded module
--------------------------------------------------------
-- the cc ControlButton
-- @field [parent=#cc] ControlButton#ControlButton... | nilq/small-lua-stack | null |
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, 0)
local condition = Condition(CONDITION_ATTRIBUTES)
condition:setParameter(CONDITION_PARAM_TICKS, 10000)
condition:setParameter(CONDITION_PARAM_SKILL_DISTANCEPERCENT, 150)
condition:setP... | nilq/small-lua-stack | null |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( "shared.lua" )
function ENT:Initialize()
self.Entity:SetModel( "models/weapons/w_c4.mdl" )
self.Entity:PhysicsInit( SOLID_VPHYSICS )
self.Entity:SetMoveType( MOVETYPE_NONE )
self.Entity:SetSolid( SOLID_VPHYSICS )
self.health = self.Own... | nilq/small-lua-stack | null |
return function(looky)
return {
build = function(options)
local base = looky:makeBaseLayout(options)
base.contentWidth = options.contentWidth or function(self) return self.height end
base.contentHeight = options.contentHeight or function(self) return self.width end
base.update =... | nilq/small-lua-stack | null |
class("AddShipCommand", pm.SimpleCommand).execute = function (slot0, slot1)
slot2 = slot1:getBody()
slot4 = slot2.type
slot5 = slot2.callBack
slot8 = getProxy(BayProxy).getShipById(slot7, slot3)
if table.contains(getProxy(DormProxy).getData(slot6).shipIds, slot2.id) then
if slot5 then
slot5()
end
return... | nilq/small-lua-stack | null |
----------------------------
-- SSBase --
-- Created by Skeyler.com --
----------------------------
DB_DEVS = false
if (game.IsDedicated()) then
DB_HOST = "127.0.0.1"
DB_USER = "root"
DB_PASS = "4a5ruxeMatRAhERe"
else
DB_HOST = "127.0.0.1"
DB_USER = "root"
DB_PASS = ""
end
... | nilq/small-lua-stack | null |
--[[
English Localization
This file must be present to have partial translations
***
--]]
local L = LibStub('AceLocale-3.0'):NewLocale('Bagnon-Config', 'enUS', true)
-- general
L.GeneralDesc = 'General features that can be toggled depending on your preferences.'
L.Locked = 'Lock Frames'
L.Fading = 'Frame Fading'... | nilq/small-lua-stack | null |
local class = require('middleclass')
local requests = require('requests')
local API = class('API')
function API:initialize()
self.base_url = "https://api.arknode.net/"
end
function API:get(endpoint, ...)
headers = {
["nethash"] = '6e84d08bd299ed97c212c886c98a57e36545c8f5d645ca7eeae63a8bd62d8988',
["... | nilq/small-lua-stack | null |
--[[
--MIT License
--
--Copyright (c) 2019 manilarome
--Copyright (c) 2020 Tom Meyers
--
--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 ... | nilq/small-lua-stack | null |
AdiBagsDB = {
["namespaces"] = {
["ItemLevel"] = {
},
["FilterOverride"] = {
["profiles"] = {
["Default"] = {
["version"] = 3,
},
},
},
["ItemCategory"] = {
},
["NewItem"] = {
},
["AdiBags_TooltipInfo"] = {
},
["Equipment"] = {
},
["ItemSets"] = {
},
["CurrencyFrame"] ... | nilq/small-lua-stack | null |
return {
{
effect_list = {
{
type = "BattleSkillAddBuff",
casterAniEffect = "",
target_choise = "TargetSelf",
targetAniEffect = "",
arg_list = {
buff_id = 11321
}
},
{
type = "BattleSkillAddBuff",
casterAniEffect = "",
target_choise = "TargetSelf",
targetAniEffec... | nilq/small-lua-stack | null |
local skynet = require "skynet"
local ssm = require "skynet.ssm"
local function ssm_info()
return ssm.info()
end
local function collect()
local info = {}
while true do
-- while ssm.collect(false, info) do
-- skynet.error(string.format("Collect %d strings from %s, sweep %d", info.n, info.key, info.sweep))
-- en... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Castle Zvahl Baileys
-- NPC: Switchstix
-- Type: Standard NPC
-- !pos 386.091 -13 -17.399 161
-----------------------------------
local ID = require("scripts/zones/Castle_Zvahl_Baileys/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/status")
------------... | nilq/small-lua-stack | null |
return function()
require("FTerm").setup()
local keymap = vim.api.nvim_set_keymap
local opts = { noremap = true, silent = true }
keymap('n', '<F2>', '<CMD>lua require("FTerm").toggle()<CR>', opts)
keymap('t', '<F2>', '<C-\\><C-n><CMD>lua require("FTerm").toggle()<CR>', opts)
end | nilq/small-lua-stack | null |
minetest.register_decoration({
decoration = "ks_flora:juniper_tree",
deco_type = "schematic",
schematic = minetest.get_modpath("ks_flora").."/schematics/juniper_tree.mts",
place_on = "prairie_soil_grass",
sidelen = 9,
fill_ratio = 0.00001,
flags = "place_center_x, place_center_z",
rotation = "random",
place_of... | nilq/small-lua-stack | null |
local Behavior = CreateAIBehavior("HeliUnIgnorant",
{
Alertness = 0,
Constructor = function( self, entity, sender, data )
entity:SelectPipe(0,"do_nothing");
end,
ACT_DUMMY = function( self, entity, sender, data )
AI.CreateGoalPipe("resetHelicopter");
AI.PushGoal("resetHelicopter","clear",0,1);
AI.PushGo... | nilq/small-lua-stack | null |
local util = require('util')
local json = require('json')
local Object = require('core').Object
local isarray = util.isarray
local deepcopy = util.deepcopy
local issubset = util.issubset
local type = type
local pairs = pairs
local time = os.time
local insert = table.insert
loca... | nilq/small-lua-stack | null |
Write('This Lua Server Page is stored in ZIP\r\n')
Write('as compressed byte code, see luac.com and net.mk\r\n')
| nilq/small-lua-stack | null |
return {
summary = 'Get the CompareMode for the Texture.',
description = 'Returns the compare mode for the texture.',
arguments = {},
returns = {
{
name = 'compareMode',
type = 'CompareMode',
description = 'The current compare mode, or `nil` if none is set.'
}
},
related = {
'l... | nilq/small-lua-stack | null |
local objects =
{
-- monstama77
createObject(18235,1410.7999267578,1533.4675292969,1541.6075439453,0,0,0,20),
createObject(12960,1443.0174560547,1518.3203125,1540.9155273438,0,4,4,20),
createObject(18235,1404.4200439453,1520.0180664063,1541.4090576172,0,0,0,20),
createObject(18235,1420.01171875,1520.125,1541.4188... | nilq/small-lua-stack | null |
package.path = "./lua/?/init.lua;./lua/?.lua"
local config = require("carbon.config")
local function write(str, fileName)
print("[write] extra/" .. fileName)
local file = io.open("extras/" .. fileName, "w")
file:write(str)
file:close()
end
-- map of plugin name to plugin extension
local extras = {
kitty = ... | nilq/small-lua-stack | null |
-- Configuration
function love.conf(t)
t.title = "Bounce" -- The title of the window the game is in (string)
t.version = "0.10.1" -- The LÖVE version this game was made for (string)
t.window.width = 500 -- we want our game to be long and thin.
t.window.height = 300
t.console = true
en... | nilq/small-lua-stack | null |
-- Services --
local plr_Ser = game:GetService("Players")
-- Variables --
local tool = script.Parent
local handle = tool:WaitForChild("Handle")
local Sword_handler = tool:WaitForChild("Handler")
local player = plr_Ser.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = cha... | nilq/small-lua-stack | null |
local misc = require('cmp.utils.misc')
---@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/
---@class lsp
local lsp = {}
lsp.Position = {
---Convert lsp.Position to vim.Position
---@param buf number|string
---@param position lsp.Position
---@return vim.Position
... | nilq/small-lua-stack | null |
-- Generated by CSharp.lua Compiler
local System = System
local SlipeClientGame
local SlipeClientIO
local SlipeMtaDefinitions
local SlipeSharedHelpers
System.import(function (out)
SlipeClientGame = Slipe.Client.Game
SlipeClientIO = Slipe.Client.IO
SlipeMtaDefinitions = Slipe.MtaDefinitions
SlipeSharedHelpers = ... | nilq/small-lua-stack | null |
return {
install_script = [[
curl -o vscode.tar.gz -L https://update.code.visualstudio.com/latest/linux-x64/stable
rm -rf vscode
mkdir vscode
tar -xzf vscode.tar.gz -C vscode --strip-components 1
rm vscode.tar.gz
rm -rf vscode-css
mkdir vscode-css
cp -r vscode/resources/app/extensions/node_modules vs... | nilq/small-lua-stack | null |
local disableBoom = CreateClientConVar("cl_disableboomboxes","0",true,false,"Disables boomboxes from playing")
local playlocally = CreateClientConVar("cl_localboombox","0",true,false,"Enables local boombox play")
local boomboxes = {}
sugar_boom.BoomColors = sugar_boom.BoomColors or {}
sugar_boom.History = sugar_boom.... | 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.