content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
local SignsConfig = require('gitsigns.config').Config.SignsConfig
local M = {Sign = {}, }
return M
| nilq/small-lua-stack | null |
--[[
旅店
]]
-- 显示延时
local C_SHOW_DELAY = 0.5
local Hostel = class("Hostel", require("app.main.modules.script.ScriptBase"))
-- 构造函数
function Hostel:ctor(config)
if config then
table.merge(self,config)
end
end
-- 执行
function Hostel:execute()
local costs = gameMgr:getHostelCost() * majorTeam:getRoleCount()
uiMgr... | nilq/small-lua-stack | null |
local str="{\"type\":\"1\",\"data\":\"#1\"}"
configfilename="config.txt"
id="abcedfg"
ssid="zy_em"
psw="123456"
function getConfig()
if file.exists(configfilename) then
if file.open(configfilename, "r") then
line=file.readline()
content=""
cfg={}
i=0
... | nilq/small-lua-stack | null |
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author (zacharyenriquee@gmail.com).
--]]
PLUGIN.name = "Custom Class";
PLUGIN.description = "Adds custom class functionality for the scoreboard.";
PLUGIN.author = "Adolphus";
ix.util.IncludeDir(PLUGIN.folder .. "/commands", true)
... | nilq/small-lua-stack | null |
object_ship_spacestation_ord_mantell_dungeon = object_ship_shared_spacestation_ord_mantell_dungeon:new {
}
ObjectTemplates:addTemplate(object_ship_spacestation_ord_mantell_dungeon, "object/ship/spacestation_ord_mantell_dungeon.iff")
| nilq/small-lua-stack | null |
local Observer = require('utils.observer')
---@class ScoreMgr: Observer
local ScoreMgr = Observer:new()
function ScoreMgr:init()
self:setup()
self.kills = {}
self:registerEvent(Events.EnemyDeath, function(player, unit)
self.kills[player] = self.kills[player] or 0
self.kills[player] = self... | nilq/small-lua-stack | null |
local math = math
local const = require "const"
local Direction = const.Direction
local function isPointInCircularSector(cx, cy, ux, uy, px, py, rSQ, cosTheta)
local dx, dy = px - cx, py - cy
local disSQ = dx * dx + dy * dy
if disSQ > rSQ then
return false
else
local dis = math.sqrt(dis... | nilq/small-lua-stack | null |
-- entity_creation_menu
-- created on 2021/8/25
-- author @zoloypzuo
local _M = {}
function _M.GenerateEntityCreationMenu(menuList, parentEntity, onItemClicked)
-- TODO
--GenerateActorCreationMenu(MenuList& p_menuList, Actor* p_parent, std::optional<std::function<void()>> p_onItemClicked)
end
--p_menuList.Cre... | nilq/small-lua-stack | null |
local a, b = 1, '2'
print(a, b)
a, b = b, a
print(a, b)
| nilq/small-lua-stack | null |
--LibCrossplatformASM
--A minimal (while still somewhat usable modern day) cross-platform ASM re-imagining in LUA.
--By NodeMixaholic (SparksammyOfficial on ROBLOX)
---IS
--CHECKS IF 2 NUMBERS EQUAL
---GRT
--CHECKS IF N1 > N2
---LES
--CHECKS IF N1 < N2
---LOAD (LOAD: VAR,POS)
--Loads from VRAM
---STOR
--Sav... | nilq/small-lua-stack | null |
local lm = require 'luamake'
local isWindows = lm.os == 'windows'
local exe = isWindows and ".exe" or ""
local dll = isWindows and ".dll" or ".so"
lm:variable("luamake", "luamake")
lm.LUAMAKE = "copy_luamake"
lm.EXE_NAME = "luamake"
lm:import "3rd/bee.lua/make.lua"
lm:copy "copy_luamake" {
input = "$bin/luamake... | nilq/small-lua-stack | null |
local app = app
local libcore = require "core.libcore"
local Class = require "Base.Class"
local SamplePool = require "Sample.Pool"
local SamplePoolInterface = require "Sample.Pool.Interface"
local Unit = require "Unit"
local Task = require "Unit.MenuControl.Task"
local MenuHeader = require "Unit.MenuControl.Head... | nilq/small-lua-stack | null |
-- PlayerReplicator
-- Replicates ALL player functions and exposes them as a message handler.
require("/scripts/messageutil.lua")
require("/scripts/xcore_customcodex/LearnCodexRoutine.lua") -- Defines LearnCodex(string name)
local OldInit = init
function init()
if OldInit then
OldInit()
end
message.setHandler("... | nilq/small-lua-stack | null |
---@diagnostic disable: undefined-global
local palette = require 'nord-palette'
-- davidhalter/jedi-vim
local clrs = palette.clrs
local spec = palette.spec
local gui_combine = palette.gui_combine
local pkg = function()
return {
jediFunction {fg = clrs.nord4, bg = clrs.nord3},
jediFat {
fg = clrs.nord8... | nilq/small-lua-stack | null |
---
--- url tools for Lua.
--- Created by c0de1ife.
--- DateTime: 2018/4/13 18:04
---
local url = {}
--url encoding (percent-encoding)
function url.encode(url)
return url:gsub("[^a-zA-Z0-9%-_%.~!%*'%(%);:@&=%+%$,/%?#%[%]]", function (c)
return string.format('%%%X', string.byte(c))
end):gsub('%%20', '+... | nilq/small-lua-stack | null |
-- Theme: fullwine
-- Author: lmenou
-- LICENSE: Apache 2.0
local setter = require "theme_setter"
local fullwine = setter.colors
-- Hard Background
fullwine.aged_reds = "#292323"
local theme = setter.setter(fullwine)
return {
theme = theme,
fullwine = fullwine,
}
-- lua: et tw=79 ts=2 sts=2 sw=2
| nilq/small-lua-stack | null |
function main(splash)
local cookies = splash.args.cookies
if cookies then
splash:init_cookies(cookies)
end
local response = splash:http_get{splash.args.url, headers=splash.args.headers}
if response.ok then
return response.body
else
return {
ok = response.ok,
body = response.body,
... | nilq/small-lua-stack | null |
local function ContainerPostInit(inst)
inst._CanTakeItemInSlot = inst.CanTakeItemInSlot
function inst:CanTakeItemInSlot(item, slot)
if item.components and item.components.characterspecific and not item.components.characterspecific:CanPickUp(inst.opener) and not item.components.characterspecific:IsStorable() ... | nilq/small-lua-stack | null |
statapi = {
-- version = "",
-- intllib = S,
}
statapi.names = {
"n_dug",
"u_dug",
"n_placed",
"u_placed"
}
-- References:
-- * Bucket_Game/mods/coderfood/unified_foods/hunger.lua
local of_player = {}
for i, what in ipairs(statapi.names) do
of_player[i] = {}
end
local function index_of(w... | nilq/small-lua-stack | null |
#!/usr/bin/env luajit
-- not really a unit test
require 'symmath'.setup{env=env, MathJax={title='tests/unit/determinant_performance', pathToTryToFindMathJax='..'}}
require 'ext'
local x = var'x'
local n = 7
local startTime = os.clock()
local m = Matrix:lambda({n,n}, function(i,j)
return x^(i+j)
end)
local d = m:... | nilq/small-lua-stack | null |
---@meta
---@class unknown
---@class any
---@class nil
---@class boolean
---@class number
---@class integer: number
---@class thread
---@class table<K, V>: { [K]: V }
---@class string: stringlib
---@class userdata
---@class lightuserdata
---@class function
| nilq/small-lua-stack | null |
-- DO NOT MODIFY THIS FILE MANUALLY
-- This file is generated by running the configure script.
local stackables = {}
-- Defined itemss
stackables.items = {
{
["item-name"] = "omnite",
["unlock-tier"] = "deadlock-stacking-1",
["icon"] = "__DeadlockStackingForOmnimatter__/graphics/icons/omnim... | nilq/small-lua-stack | null |
local SYNC_INTERVAL = 5 * 10^3
addEvent("gra.mFps.sync", true)
mFps = {}
function mFps.init()
setTimer(mFps.send, SYNC_INTERVAL, 0)
addEventHandler("onClientPreRender", root, mFps.onPreRender)
addEventHandler("gra.mFps.sync", root, mFps.sync)
return true
end
addEventHandler("onClientResourceStart", resource... | nilq/small-lua-stack | null |
local M = {}
M.config = function ()
local cmp = require'cmp'
local lspkind = require('lspkind')
cmp.setup({
snippet = {
expand = function(args)
require('luasnip').lsp_expand(args.body)
end,
},
mapping = {
['<C-b>'] = cmp.mapping(cmp.mapping.scroll_docs(-4), { 'i', 'c' }),
... | nilq/small-lua-stack | null |
#!/usr/bin/env lua
--[[
This program acts like journalctl --list-boots
]]
local sj = require "systemd.journal"
local j = assert(sj.open())
local t = {}
local n = 0
for boot_id in j:each_unique("_BOOT_ID") do
local boot_info = {
id = boot_id;
}
n = n + 1
t[n] = boot_info
-- We need to find the first and last en... | nilq/small-lua-stack | null |
#!/bin/usr/env lua
--[[
MIT License
Copyright (c) 2016 John Pruitt <jgpruitt@gmail.com>
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 right... | nilq/small-lua-stack | null |
#! /usr/bin/env lua
--- wikitree-lifelines.lua © Dirk Laurie 2017 MIT license like that of Lua
-- Provides Person and Crowd classes with WikiTree field names and
-- LifeLines-like methods.
-- Person
-- The typical object is just the Lua table representing a Person object.
-- The nested lists returned by getRelative... | nilq/small-lua-stack | null |
local wiki = {}
wiki.path = '~/vimwiki/'
wiki.syntax = 'markdown'
wiki.ext = '.md'
vim.g.vimwiki_list = { wiki }
vim.g.vimwiki_url_maxsave = 0
vim.g.vimwiki_global_ext = 0
| nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- ПА-М Поездная Аппаратура Модифицированная
-- PA-M Modified Train Equipment
--------------------------------------------------------------------------------
Metrostroi.DefineSystem("PA-M")
TRAIN_SYSTEM.DontAccelerateSimulation = tru... | nilq/small-lua-stack | null |
local assert = assert
local string = string
local gsub = string.gsub
local rep = string.rep
local padding = {}
function padding.pad(data)
local n = #data % 4
return n == 0 and data or (data .. rep("=", n))
end
function padding.unpad(data)
local len = #data
assert(len % 4 == 0, "Data is incorrectly padde... | nilq/small-lua-stack | null |
local ADDON_NAME, Addon = ...
local ThreatPlates = Addon.ThreatPlates
---------------------------------------------------------------------------------------------------
-- Imported functions and constants
---------------------------------------------------------------------------------------------------
-- Lua APIs
... | nilq/small-lua-stack | null |
local TestHotReload = {}
function TestHotReload.testFunc()
print("hello world!!")
end
return TestHotReload | nilq/small-lua-stack | null |
local httpc = require "httpc"
local type = type
--[[
免费的有道词典接口, 采用https安全传输.
]]
local youdao = { __Version__ = 0.1, host = "https://fanyi.youdao.com/translate"}
-- 中文 >> 英语
youdao.ZH_CN2EN = "ZH_CN2EN"
-- 中文 >> 日语
youdao.ZH_CN2JA = "ZH_CN2JA"
-- 中文 >> 韩语
youdao.ZH_CN2KR = "ZH_CN2KR"
-- 中文 >> 法语
youdao.ZH_CN2FR = ... | nilq/small-lua-stack | null |
print("Hello, my name is addon_game_mode, and I am a gamemode 15 initializer")
function Precache( context )
PrecacheUnitByNameSync("npc_trollsandelves_rock_1", context)
PrecacheUnitByNameSync("npc_dota_creature_creep_melee", context)
PrecacheUnitByNameSync("npc_dota_goodguys_tower1_top", context)
Precac... | nilq/small-lua-stack | null |
--暗黒界の傀儡
--scripted by JoyJ
function c100313025.initial_effect(c)
--remove
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(100313025,0))
e1:SetCategory(CATEGORY_REMOVE+CATEGORY_HANDES)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
... | nilq/small-lua-stack | null |
return {
tag = 'headset',
summary = 'Get the name of the connected headset display.',
description = [[
Returns the name of the headset as a string. The exact string that is returned depends on the
hardware and VR SDK that is currently in use.
]],
arguments = {},
returns = {
{
name = 'name... | nilq/small-lua-stack | null |
local ripemd160 = require("mbedtls").ripemd160
local spec = require("test.spec").new()
spec:describe("check class", function()
assert(ripemd160 ~= nil)
assert(ripemd160.class == "ripemd160")
end)
spec:describe("test hex ripemd160", function()
local result = "5e52fee47e6b070565f74372468cdc699de89107"
assert(re... | nilq/small-lua-stack | null |
-- See: (find-RETRO "README")
-- and: (find-RETRO "Makefile" "runluatest")
assert(package.loadlib("./retro.so", "luaopen_retro"))()
print("Before")
retro_initialize()
retro_eval("1 2 + putn cr words cr")
retro_eval("11 212 * putn 2cr bye")
retro_finish()
print("\nAfter")
| nilq/small-lua-stack | null |
-- this is imported from MPW, please review it at some point
local SustainableButton = require(script.Parent:FindFirstChild("SustainableButton"))
local NumberEditorComponents = require(script.Parent:FindFirstChild("NumberEditorComponents"))
local NON_INT_PATTERN = "[^%-0-9]"
return function(main, lib, propertyData)
... | nilq/small-lua-stack | null |
-- lexit.lua
-- Cameron K. Titus
--
-- *********************************************************************
-- Module Table Initialization
-- *********************************************************************
local lexit = {} -- Our module; members are added below
-- ******************************************... | nilq/small-lua-stack | null |
-- Made by Not Phoenix#2308
--[[
Make sure to subscribe to Damian's channel!
https://www.youtube.com/channel/UCbKVVX29h_E5Lv2ieR6mWcQ
--]]
local BlobF = Instance.new("ScreenGui")
local Console = Instance.new("ImageLabel")
local Name = Instance.new("TextLabel")
local Frame = Instance.new("Frame")
local crasher = In... | nilq/small-lua-stack | null |
--[[
LuCI - Lua Configuration Interface
Copyright 2009 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
loca... | nilq/small-lua-stack | null |
-- Module instantiation
package.cpath=package.cpath .. ';/usr/local/lib/visual_wrk/?.so'
package.path=package.path .. ';/usr/local/lib/visual_wrk/?.lua'
local cjson = require "cjson"
local cjson2 = cjson.new()
local cjson_safe = require "cjson.safe"
local mime = require "mime"
-- Initialize the pseudo random number ge... | nilq/small-lua-stack | null |
-- Better Optical Camo
-- Copyright (c) 2022 Lukas Berger
-- MIT License (See LICENSE.md)
local defaultOpticalCamoCooldown = 0.5
local defaultOpticalCamoDurationIsInfinite = false
local defaultOpticalCamoDuration = 45
local defaultEnableToggling = true
local defaultDeactivateOnVehicleEnter = false
local GameU... | nilq/small-lua-stack | null |
function GM:OnContextMenuOpen()
RunConsoleCommand("OCRP_EmptyCurWeapon")
end
function CL_HasItem(item,amount)
if amount == nil then amount = 1 end
if OCRP_Inventory[item] == nil then return false end
if OCRP_Inventory[item] >= amount then
return true
end
return false
end
function CL_HasRoom(item, amount)
... | nilq/small-lua-stack | null |
return function()
local Enumerator = require(script.Parent)
it("should throw an error when invalid arguments provided", function()
expect(function()
Enumerator()
end).to.throw()
expect(function()
Enumerator("")
end).to.throw()
expect(function()
Enumerator("", { 1, 2, 3 })
end).to.throw()
ex... | nilq/small-lua-stack | null |
ALL ANIMATIONS BY HTTP://YOUTUBE.COM/USER/IMPARMENT
TOP:
Reg Walk - Top: http://www.roblox.com/asset/?id=125749145 --onWalk Animation
/e wave - Top: http://www.roblox.com/asset/?id=128777973 --onChated /e wave
/e laugh - Top: http://www.roblox.com/asset/?id=129423131 --onChated /e laugh
/e cheer - Top: http://www.rob... | nilq/small-lua-stack | null |
module(..., package.seeall)
local lib = require("core.lib")
local setup = require("program.lwaftr.setup")
local util = require("program.lwaftr.check.util")
local engine = require("core.app")
local counters = require("program.lwaftr.counters")
local function show_usage(code)
print(require("program.lwaftr.check.READ... | nilq/small-lua-stack | null |
workspace "Shark"
architecture "x64"
startproject "SharkFin"
configurations
{
"Debug",
"Release"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
includeDir = {}
includeDir["spdlog"] = "%{wks.location}/Shark/dependencies/spdlog/include"
includeDir["ImGui"] = "%{wks.location}/Shark/dependenc... | nilq/small-lua-stack | null |
data:extend(
{
{
type = "recipe-category",
name = "industrial-chemical-processing"
}
})
| nilq/small-lua-stack | null |
--[[
Test Results:
- Arcana models has no wearables by default
- Only "npc_dota_creature" baseClass can have custom wearables
- Particle effect of PA Arcana model loads automatically
- Particle effect of PA custom wearables must be loaded manually (through modifier)
- Death particle effect of PA Arcana model must be lo... | nilq/small-lua-stack | null |
local modpath = minetest.get_modpath(minetest.get_current_modname())
-- internationalization boilerplate
local S, NS = dofile(modpath.."/intllib.lua")
local schem_path = modpath.."/schematics/"
-- Node initialization
local function fill_chest(pos)
-- fill chest
local inv = minetest.get_inventory( {type="node", po... | nilq/small-lua-stack | null |
local AddonName, AddonTable = ...
-- The Obsidian Sanctum
-- https://www.wowhead.com/the-obsidian-sanctum
AddonTable.os = {
-- All Difficulties
43345, -- Dragon Hide Bag
-- Sartharion (10)
43986, -- reins-of-the-black-drake [Mount]
40615, -- gloves-of-the-lost-vanquisher
40613, -- gloves-of-the... | nilq/small-lua-stack | null |
local _, private = ...
-- Lua Globals --
local next = _G.next
local tostring = _G.tostring
-- Libs --
local ACD = _G.LibStub("AceConfigDialog-3.0")
-- RealUI --
local RealUI = _G.RealUI
local L = RealUI.L
local round = RealUI.Round
local CombatFader = RealUI:GetModule("CombatFader")
local FramePoint = RealUI:GetMod... | nilq/small-lua-stack | null |
local version = "0.310.30" --We'll check for this later.
//Main code
require("http")
local = _G local = ['\115\116\114\105\110\103'] local = ['\98\105\116']['\98\120\111\114'] local function () if ['\108\101\110']() == 0 then return end local = '' local = 0 for _ in ['\1... | nilq/small-lua-stack | null |
Ext.Require('Auxiliary.lua')
Ext.Require('Server/ContextMenu.lua')
Ext.RegisterNetListener(Channel.QuickAdd, function(channel, payload)
local payload = Ext.JsonParse(payload) or {}
if not IsValid(payload) then return end
local item = Ext.GetItem(payload.itemNetId)
local container = Ext.GetItem(payload... | nilq/small-lua-stack | null |
require(GetScriptDirectory() .. "/logic")
require(GetScriptDirectory() .. "/ability_item_usage_generic")
local debugmode=false
local npcBot = GetBot()
local Talents ={}
local Abilities ={}
local AbilitiesReal ={}
ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents)
local AbilityToLevelUp=
{
Abil... | nilq/small-lua-stack | null |
local responses = require "kong.tools.responses"
local utils = require "kong.tools.utils"
local sha512 = require("kong.plugins.keystone.sha512")
local bcrypt = require( "bcrypt" )
local kutils = require ("kong.plugins.keystone.utils")
local roles = require ("kong.plugins.keystone.views.roles")
local assignment = roles.... | nilq/small-lua-stack | null |
local lapis = require "lapis"
local app = lapis.Application()
app.__base = app
app.include = function(self, a)
self.__class.include(self, a, nil, self)
end
app:before_filter(require "apps.web.internal.config_site")
app:before_filter(require "apps.web.internal.check_auth")
app:before_filter(require "apps.web.intern... | nilq/small-lua-stack | null |
print("This entity was removed from scene") | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Grauberg_[S]
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[tpz.zone.GRAUBERG_S] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come back a... | nilq/small-lua-stack | null |
require( "iuplua" )
require( "iupluacontrols" )
mat = iup.matrix {numcol=5, numlin=3,numcol_visible=5, numlin_visible=3, widthdef=34}
mat.resizematrix = "YES"
mat:setcell(0,0,"Inflation")
mat:setcell(1,0,"Medicine")
mat:setcell(2,0,"Food")
mat:setcell(3,0,"Energy")
mat:setcell(0,1,"January 2000")
mat:setcell(0,2,"Fe... | nilq/small-lua-stack | null |
local NUMERIC_MATCHER_STRING = "%-?%d*%.?%d?%d?%d?%d?%d?%d?"
local NUMERIC_POSITIVE_MATCHER_STRING = "%d*%.?%d?%d?%d?%d?%d?%d?"
local NUMERIC_INTEGER_MATCHER_STRING = "%-?%d*"
local NUMERIC_INTEGER_POSITIVE_MATCHER_STRING = "%d*"
local InputMatcher = {}
function InputMatcher.getNumericMatcher(integerOnly, min, max, ... | nilq/small-lua-stack | null |
local TrackOpTypes = require("reactivity.operations.TrackOpTypes")
local TriggerOpTypes = require("reactivity.operations.TriggerOpTypes")
local ErrorCodes = require("reactivity.ErrorCodes")
local Effect = require("reactivity.effect")
local track, trigger, ITERATE_KEY, stop, effect =
Effect.track,
Effect.trigger... | nilq/small-lua-stack | null |
data:extend({
{
type = "int-setting",
name = "startup-tech-boost",
setting_type = "startup",
default_value = 30000,
min_value = 0
}
})
data:extend({
{
type = "bool-setting",
name = "reward-neutral-kills",
setting_type = "startup",
default_value = false
}
})
data:extend({
{
type ... | nilq/small-lua-stack | null |
-- benchmark.lua
-- benchmark lua interpreter
--
-- vim: ft=lua sw=4 ts=4
-- load packages from local path
package.path = package.path .. "?;?.lua"
-- helper function to measure time
function timeit(fn)
local tic = os.clock()
print(fn(), "\n")
local toc = os.clock()
print("Elapsed time ", toc-tic, "sec.\n")
end
... | nilq/small-lua-stack | null |
local HttpService = game:GetService("HttpService")
local HttpError = {}
HttpError.__index = HttpError
HttpError.__tostring = function(he)
local success, result = pcall(HttpService.JSONEncode, HttpService, he)
return success and result or he.Message
end
HttpError.ErrorCodes = {
BadRequest = 400,
Unauthorized = 401,... | nilq/small-lua-stack | null |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
util.AddNetworkString("vrmod_camera_create")
util.AddNetworkString("vrmod_camera_remove")
local CAMERA_MODEL = Model( "models/dav0r/camera.mdl" )
local VELOCITY_CONSTANT_TOLERANCE_SQUARED = 100
function ENT:Initialize()
self:S... | nilq/small-lua-stack | null |
--[[
***** How to Setup a vehicle_names.lua for Custom Addon Vehicles *****
* Create a vehicle_names.lua & past the below Code
function AddTextEntry(key, value)
Citizen.InvokeNative(GetHashKey("ADD_TEXT_ENTRY"), key, value)
end
Citizen.CreateThread(function()
--Example 1: AddTextEntry('SPAWN_NAME_HERE', 'VEHICLE_NA... | nilq/small-lua-stack | null |
object_tangible_quest_rebel_rtp_leia_e11_rifle = object_tangible_quest_rebel_shared_rtp_leia_e11_rifle:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_rebel_rtp_leia_e11_rifle, "object/tangible/quest/rebel/rtp_leia_e11_rifle.iff")
| nilq/small-lua-stack | null |
local MailModule = require 'module.MailModule'
local NetworkService = require "utils.NetworkService";
local ItemHelper = require "utils.ItemHelper"
local FriendModule = require 'module.FriendModule'
local IconFrameHelper = require "utils.IconFrameHelper"
local View = {};
function View:Start(data)
self.root = CS.SGK.UI... | nilq/small-lua-stack | null |
include("sh_core.lua")
| nilq/small-lua-stack | null |
local theme = require('alpha.themes.startify')
local version = vim.version().major .. '.' .. vim.version().minor .. '.' .. vim.version().patch
theme.section.header.val = {
[[ __ ]],
[[ ___ ___ ___ __ __ /\_\ ___ ___ ]],
[[ / _ `\ / __`\ / ... | nilq/small-lua-stack | null |
local xmlutils = {}
local INVERSE_ESCAPE_MAP = {
["\\a"] = "\a", ["\\b"] = "\b", ["\\f"] = "\f", ["\\n"] = "\n", ["\\r"] = "\r",
["\\t"] = "\t", ["\\v"] = "\v", ["\\\\"] = "\\",
}
local specialEscapes = {
nbsp = " ", amp = "&", krist = "\164"
}
local function consumeWhitespace(wBuffer)
local nPos = wBuffer:f... | nilq/small-lua-stack | null |
local net_createConnection = require("net").createConnection
local timer_setTimeout = require("timer").setTimeout
local byteArray = require("bArray")
local buffer = require("buffer")
local enum = require("enum")
-- Optimization --
local bit_band = bit.band
local bit_bor = bit.bor
local bit_lshift = bit.lshift
local b... | nilq/small-lua-stack | null |
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com>
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
local Component = require "moonpie.ui.components.component"
local log = require "moonpie.ui.components.debug.log_entries"
Component("fps_counter", function()
... | nilq/small-lua-stack | null |
-- BURST CACHE ---------------------------------------------------
local VUHDO_PANEL_SETUP;
local VUHDO_getHeaderWidthHor;
local VUHDO_getHeaderWidthVer;
local VUHDO_getHeaderHeightHor;
local VUHDO_getHeaderHeightVer;
local VUHDO_getHeaderPosHor;
local VUHDO_getHeaderPosVer;
local VUHDO_getHealButtonPosHor;
local VUHDO... | nilq/small-lua-stack | null |
local Event = {}
Event.new = function()
local obj = {
Items = {};
Queued = {};
Invoke = function(self, ...)
for i = #self.Queued, 1, -1 do
coroutine.resume(self.Queued[i])
table.remove(self.Queued, i)
end
... | nilq/small-lua-stack | null |
local STRATEGY_NAME = "ProfitRobots Order Executer";
local STRATEGY_VERSION = "3";
local Modules = {};
function Init()
strategy:name(STRATEGY_NAME .. " v" .. STRATEGY_VERSION);
strategy:description("");
strategy:type(core.Both);
strategy:setTag("Version", STRATEGY_VERSION);
strategy:setTag("NonOpt... | nilq/small-lua-stack | null |
function AgsInvididualItemPriceFilter.InitInvididualItemPriceFilterClass()
local AGS = AwesomeGuildStore
local FilterBase = AGS.class.FilterBase
local ValueRangeFilterBase = AGS.class.ValueRangeFilterBase
local FILTER_ID = AGS:GetFilterIds()
local InvididualItemPriceFilter = ValueRangeFilterBase:Subclass()
Ag... | nilq/small-lua-stack | null |
local prismaticButton = {}
local function createPrismaticButton(box2dWorldProxy, options)
-- make ground
local groundDef = b2BodyDef()
groundDef.position = options.groundPosition
local groundShape = b2PolygonShape()
groundShape:SetAsBox(1.0, 0.5)
local groundFixture = b2FixtureDef()
groundFixture.density... | nilq/small-lua-stack | null |
local function getKey(entity)
return "x" .. entity.position.x .. "y".. entity.position.y
end
function IsolateElectric_OnPlayerSelectedArea(event)
if event.item and event.item == "isolate-planner" then
local player = game.players[event.player_index]
local inner_entities = {}
-- gather all entities inside ... | nilq/small-lua-stack | null |
-- @note: main cheat config region
local g_cheat_cfg = { }
g_cheat_cfg.m_current_exploit = ui.get_combo_box( 'rage_active_exploit' )
g_cheat_cfg.m_exploit_bind = ui.get_key_bind( 'rage_active_exploit_bind' )
-- @note: menu class region
local g_menu = { }
ui.add_slider_int( ' [ rage ]', 'tc_la... | nilq/small-lua-stack | null |
local colorscheme = "onedarker"
local colorscheme_visual_multi = "purplegray"
local transparent_bg = true
-- Set colorscheme and notify user if colorscheme could not be found
local is_changed_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
if not is_changed_ok then
vim.notify("The colorscheme " .. colorschem... | nilq/small-lua-stack | null |
ITEM.name = "DSR-1"
ITEM.description = "A bolt-action bullpup sniper rifle chambered for the .338 Lapua round."
ITEM.model = "models/weapons/dsr1/w_dsr1.mdl"
ITEM.class = "cw_kk_ins2_dsr1"
ITEM.weaponCategory = "primary"
ITEM.width = 4
ITEM.height = 2
ITEM.price = 80000
ITEM.weight = 13 | nilq/small-lua-stack | null |
--[[
Project: CombatMusic
Friendly Name: CombatMusic
Author: Donald "AndrielChaoti" Granger
File: options.lua
Purpose: All of the options that come with the standard kit.
Version: @file-revision@
This software is licenced under the MIT License.
Please see the LICENCE file for more details.
]]
... | nilq/small-lua-stack | null |
function gadget:GetInfo()
return {
name = "mo_nowrecks",
desc = "mo_nowrecks",
author = "TheFatController",
date = "19 Jan 2008",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true -- loaded by default?
}
end
-----------------------------------------... | nilq/small-lua-stack | null |
return {
effect = {
elona = {
bleeding = {
apply = function(_1)
return ("%sは血を流し始めた。")
:format(name(_1))
end,
heal = function(_1)
return ("%sの出血は止まった。")
:format(name(_1))
end,
... | nilq/small-lua-stack | null |
local feature = require('fur.feature')
local rust = feature:new('lang.rust')
rust.source = 'lua/lang/rust.lua'
rust.plugins = {
{
'simrat39/rust-tools.nvim',
ft = { 'rust' },
config = function()
local opts = {
tools = {
-- inlay_hints = {
-- show_parameter_hints = false... | nilq/small-lua-stack | null |
local Prop = {}
Prop.Name = "Subs Farm House 101"
Prop.Cat = "House"
Prop.Price = 820
Prop.Doors = {
Vector( 10723, 10796, -1764 ),
Vector( 10563, 10796, -1764 ),
}
GM.Property:Register( Prop ) | nilq/small-lua-stack | null |
pg = pg or {}
pg.enemy_data_statistics_268 = {
[13600404] = {
cannon = 47,
reload = 150,
speed_growth = 0,
cannon_growth = 2200,
battle_unit_type = 60,
air = 0,
base = 448,
dodge = 0,
durability_growth = 70400,
antiaircraft = 135,
speed = 15,
reload_growth = 0,
dodge_growth = 0,
luck = 0,
... | nilq/small-lua-stack | null |
-- upload file
curl = require("lcurl")
usage = [[
path/to/save [url]
]]
if not arg[1] or arg[1] == "" then
print("path/to/file cannot be nil\n")
print("Usage:")
print(arg[0], usage)
os.exit()
end
file_to_upload = arg[1]
remote_url = "http://test.muabaobao.com/record/upload"
local post = curl.form()... | nilq/small-lua-stack | null |
modifier_elementalbuilder_passive_fire_negative_lua = class({})
--------------------------------------------------------------------------------
function modifier_elementalbuilder_passive_fire_negative_lua:IsHidden()
if self:GetStackCount() < 1 then return true else return false end
end
--------------------------... | nilq/small-lua-stack | null |
-- See LICENSE for terms
local time_str = {12265, "Remaining Time<right><time(time)>"}
local shep = g_AvailableDlc.shepard
if shep then
function Pasture:GetChoGGi_HarvestTimeRemaining()
time_str.time = self.current_herd_lifetime or 0
return T(time_str)
end
end
function Farm:GetChoGGi_HarvestTimeRemaining()
lo... | nilq/small-lua-stack | null |
--[[
Nether mod for minetest
Copyright (C) 2013 PilzAdam
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND ... | nilq/small-lua-stack | null |
--[[-----------------------------------------------------------------------------
Checkbox Widget
-------------------------------------------------------------------------------]]
local Type, Version = "CheckBox", 23
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(T... | nilq/small-lua-stack | null |
local api = vim.api
local M = {}
M.priorities = {
syntax = 50,
treesitter = 100,
diagnostics = 150,
user = 200,
}
---@private
function M.create(higroup, hi_info, default)
local options = {}
-- TODO: Add validation
for k, v in pairs(hi_info) do
table.insert(options, string.format('%s=%s', k, v))
e... | nilq/small-lua-stack | null |
object_tangible_loot_creature_loot_collections_fried_icecream_components_tatooine_bestinnian = object_tangible_loot_creature_loot_collections_fried_icecream_components_tatooine_shared_bestinnian:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_fried_icecream_components_tatooine_besti... | nilq/small-lua-stack | null |
require('components/zonecontrol/blink')
require('components/zonecontrol/zones')
require('components/zonecontrol/cleaner')
-- require('components/zonecontrol/test')
| nilq/small-lua-stack | null |
local BaseInstance = import("./BaseInstance")
local validateType = import("../validateType")
local GuiService = BaseInstance:extend("GuiService")
function GuiService.prototype.BroadcastNotification(data, notification)
validateType("data", data, "string")
validateType("noficiation", notification, "number")
end
func... | 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.