content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
local info = dxGetStatus()
setElementData(localPlayer, "AURBenchmark.gpu", info["VideoCardName"])
setElementData(localPlayer, "AURBenchmark.vram", info["VideoCardRAM"])
| nilq/small-lua-stack | null |
Crag.kHealPercentage = 0.06
Crag.kMinHeal = 10
Crag.kMaxHeal = 60
function Crag:TryHeal(target)
local unclampedHeal = target:GetMaxHealth() * Crag.kHealPercentage
if target.GetBaseHealth then
unclampedHeal = target:GetBaseHealth() * Crag.kHealPercentage
end
local heal = Clamp(unclampedHeal, ... | nilq/small-lua-stack | null |
function CombatPlusPlus_XPRequiredForNextRank(currentXP, rank)
local xpRequired = 0
if rank < kMaxCombatRank then
xpRequired = kXPTable[ rank + 1 ]["XP"]
end
return xpRequired
end
function CombatPlusPlus_GetXPThresholdByRank(rank)
rank = Clamp(rank, 1, kMaxCombatRank)
... | nilq/small-lua-stack | null |
object_intangible_vehicle_walker_at_rt_camo_pcd = object_intangible_vehicle_shared_walker_at_rt_camo_pcd:new {
}
ObjectTemplates:addTemplate(object_intangible_vehicle_walker_at_rt_camo_pcd, "object/intangible/vehicle/walker_at_rt_camo_pcd.iff")
| nilq/small-lua-stack | null |
local passed = 'passed'
| nilq/small-lua-stack | null |
--[[
An implementation of a grid interface
(see voxelgraph.searchimpl) which reads node data from a flat array.
Mostly useful for testing code which operates on one without needing to fire up MT.
]]
--[[
The flat array is indexed as (Zi * Xstride * Ystride) + (Yi * Xstride) + (Xi) + 1.
This means that all the values f... | nilq/small-lua-stack | null |
-- https://github.com/ImagicTheCat/vRP
-- MIT license (see LICENSE or vrp/vRPShared.lua)
if not vRP.modules.home then return end
local lang = vRP.lang
local htmlEntities = module("vrp", "lib/htmlEntities")
-- this module describe the home system
-- Component
local Component = class("Home.Component")
function Comp... | nilq/small-lua-stack | null |
local playsession = {
{"MrJSelig", {16283}},
{"MooOooN", {45396}},
{"bico", {33689}},
{"Houdi", {7325}}
}
return playsession | nilq/small-lua-stack | null |
local function gay1(a, b, c, ...)
print(a, b, c)
return {...}, ...
end
print(gay1(1, nil, 3, 4, nil, 6))
print(#{1, nil, 3, 4, nil, 5}) | nilq/small-lua-stack | null |
local lume = require 'lib.lume'
--[[ Parse block
= @ (function)
> self (lib.luapi.type)
> block (string)
> reqpath (string) []
]]
return function (self, block, reqpath)
assert(type(block) == 'string')
-- Parse block line by line
local line_index = 1
for line in block:gmatch '\n(%C*)' do
local tag = li... | nilq/small-lua-stack | null |
object_mobile_sd_crewman_03 = object_mobile_shared_sd_crewman_03:new {
}
ObjectTemplates:addTemplate(object_mobile_sd_crewman_03, "object/mobile/sd_crewman_03.iff")
| nilq/small-lua-stack | null |
local Screen = Level:extend()
function Screen:activate()
--- shape vnlue
-- Cuboid
local cLenX = 40*2
local cLenY = base.guiHeight*1.5
local cLenZ = 50
local cX = base.guiWidth/2 -cLenX/2
local cY = -30
local cZ = base.guiHeight-cLenZ
-- Ball
local bR = 20
---
-- levelName
local levelName = lang.level_Bl... | nilq/small-lua-stack | null |
local mysql = require "resty.mysql"
local strx = require "pl.stringx"
local pretty = require 'pl.pretty'
local util = require 'bluegate.utils.util'
local quote_sql_str = ngx.quote_sql_str
local mysql_pool = {}
local nlog = ngx.log
local err = ngx.ERR
local warn = ngx.WARN
local info = ngx.INFO
local debug = ngx.DE... | nilq/small-lua-stack | null |
--[[
Jambon Cru CS:GO No-Recoil for Logitech mouse
/!\ TO DO /!\
- For Logitech Game Software:
400 DPI
1000 HZ
- For Windows:
Sensitivity: 6
Pointer Precision: OFF
- For CS:GO:
Aspect Ratio: 16:9
Sensitivity: 3.09
Raw Input: ON
Mouse Acceleration: OFF
Weapon Supported: AK47/M4A4/M4A1/FAMAS/MP9/MAC10
... | nilq/small-lua-stack | null |
--[[
Crew Pack Script for Flight Factor B757 / B767
Voices by https://www.naturalreaders.com/
Captn: Guy
FO: Ranald
Ground Crew: en-AU-B-Male (what a name...)
Safety: Leslie
Changelog:
V0.1 - Initial Test Beta
V0.2 - Variable name corrections
V0.3 - Crosscheck and correction of variable adjust... | nilq/small-lua-stack | null |
local text = "Sample Text"
local characterSpacing = 6
local lineSpacing = 1.5
local characterSize = 1 -- max: 1
local collection = "Primitives" -- the collection the block is in
local block = "block" -- the name of the block
--[=====[
Use ` to create a new line
All Supported Characters:
a b c d e f g h i j... | nilq/small-lua-stack | null |
-------------------------------------------------------------------------------
--[Picker Hide Minimap]--
-------------------------------------------------------------------------------
-- TODO add hotkeys to enable/disable map and other elements
local Event = require('__stdlib__/stdlib/event/event')
local Player = re... | nilq/small-lua-stack | null |
require"imlua"
require"imlua_process"
local infilename = "lines.png"
local outfilename = "lines_hough.png"
local image = im.FileImageLoad(infilename)
-- turn it to a gray image
local gray = im.ImageCreate(image:Width(), image:Height(), im.GRAY, im.BYTE)
im.ProcessConvertColorSpace(image, gray);
-- u... | nilq/small-lua-stack | null |
function todo.create_edit_task_dialog(player, id)
local task = todo.get_task_by_id(id)
if (not task) then
return
end
local old_dialog = todo.get_edit_dialog(player)
if (old_dialog ~= nil) then
old_dialog.destroy()
end
local dialog = todo.create_frame(player, "todo_edit_dialo... | nilq/small-lua-stack | null |
-- Atom feed generator
Plugin.require_version("4.0.0")
data = {}
date_input_formats = soupault_config["index"]["date_formats"]
feed_file = config["feed_file"]
custom_options = soupault_config["custom_options"]
if not Table.has_key(custom_options, "site_url") then
Plugin.exit([[Atom feed generation is not enable... | nilq/small-lua-stack | null |
local isActive = false
local screenSize = Vector2(guiGetScreenSize())
local selectedSkinIndex = 2
local cameraAnimationFinished = false
local peds = {}
local pedsInfo = {
{ model = 1, position = Vector3(1356, -1111.7, 23.775), rotation = 140},
{ model = 2, position = Vector3(1359, -1115.355, 23.775), rotation = 90... | nilq/small-lua-stack | null |
local CHIP_DATA = require "defs.chip_data_defs"
local GENERIC_DEFS = require "defs.generic_defs"
local gauntlet_data = require "gauntlet_data"
local deepcopy = require "deepcopy"
local CHIP = require "defs.chip_defs"
local CHIP_ID = require "defs.chip_id_defs"
local CHIP_CODE = require "defs.chip_code_defs"
local DRAFT... | nilq/small-lua-stack | null |
local responses = require "kong.tools.responses"
local ACL = require("kong.plugins.base_plugin"):extend()
function ACL:new()
ACL.super.new(self, "oidc-acl")
end
function ACL:access(plugin_conf)
ACL.super.access(self)
local whitelist = plugin_conf.whitelist
local userroles = get_user_roles()
if... | nilq/small-lua-stack | null |
workspace "REngine"
architecture "x64"
configurations { "Debug", "Release" }
platforms { "Engine", "Sandbox" }
startproject "Sandbox"
outputdir = "%{cfg.system}-%{cfg.architecture}.%{cfg.buildcfg}"
include "Engine/libs/glfw.lua"
project "Engine"
location "Engine"
kind "Sh... | nilq/small-lua-stack | null |
local kIconTextureMarine = debug.getupvaluex(GUIInsight_TopBar.Initialize, "kIconTextureMarine")
local kIconTextureAlien = debug.getupvaluex(GUIInsight_TopBar.Initialize, "kIconTextureAlien")
local kTeamSupplyIconCoords = {280, 363, 320, 411}
local marineSupply
local alienSupply
local CreateIconTextItem = debug.getup... | nilq/small-lua-stack | null |
GuildCmd = { }
GuildCmd.On_Open_UI = "GuildCmd.On_Open_UI"
GuildCmd.On_Close_UI = "GuildCmd.On_Close_UI" | nilq/small-lua-stack | null |
-- * Metronome IM *
--
-- This file is part of the Metronome XMPP server and is released under the
-- ISC License, please see the LICENSE file in this source package for more
-- information about copyright and licensing.
--
-- As per the sublicensing clause, this file is also MIT/X11 Licensed.
-- ** Copyright (c) 2008-... | nilq/small-lua-stack | null |
local _M = {}
local pl_file = require("pl.file")
local pl_tablex = require("pl.tablex")
local ssl = require("ngx.ssl")
local openssl_x509 = require("resty.openssl.x509")
local isempty = require("table.isempty")
local isarray = require("table.isarray")
local nkeys = require("table.nkeys")
local new_tab = require("tabl... | nilq/small-lua-stack | null |
local opts = { noremap = true, silent = true }
local keymap = vim.api.nvim_set_keymap
require("hop").setup()
keymap("n", '<leader><leader>w', "<cmd>lua require'hop'.hint_words()<cr>", opts)
keymap("n", '<leader><leader>o', "<cmd>lua require'hop'.hint_char1()<cr>", opts)
keymap("n", '<leader><leader>t', "<cmd>lua req... | nilq/small-lua-stack | null |
------------------------------------------------------------------------
--- @file ipfix.lua
--- @brief IPFIX packet generation.
--- Utility functions for the ipfix_header structs
--- Includes:
--- - IPFIX constants
--- - IPFIX header utility
--- - Definition of IPFIX packets
--- - Functions to create an IPFIX Message
... | nilq/small-lua-stack | null |
local K, C, L = unpack(select(2, ...))
if C.Chat.SpamFilter ~= true or K.CheckAddOn("BadBoy") then return end
-- Lua API
local gsub = string.gsub
-- local print = print
local strlower = string.lower
local strmatch = string.match
local strtrim = string.trim
local type = type
-- Wow API
local TRADE = TRADE
-- Global v... | nilq/small-lua-stack | null |
----------------------------------------------------------------
-- Copyright (c) 2012 Klei Entertainment Inc.
-- All Rights Reserved.
-- SPY SOCIETY.
----------------------------------------------------------------
local util = include( "client_util" )
local cdefs = include( "client_defs" )
local array = include( "mo... | nilq/small-lua-stack | null |
--
-- expose.lua
-- keyboard-driven expose config
--
hs.expose.ui.textColor = { 0.9, 0.9, 0.9 }
hs.expose.ui.fontName = "HackGen Console"
hs.expose.ui.textSize = 30
hs.expose.ui.highlightColor = { 0.56, 0.74, 0.73, 0.8 }
hs.expose.ui.backgroundColor = { 0, 0, 0, 0.8 }
-- "close mode" engaged while pressed (or 'cmd... | nilq/small-lua-stack | null |
--3L·mokou
local m=37564827
local cm=_G["c"..m]
if not pcall(function() require("expansions/script/c37564765") end) then require("script/c37564765") end
function cm.initial_effect(c)
senya.leff(c,m)
aux.AddXyzProcedure(c,cm.mfilter,7,2,nil,nil,63)
c:EnableReviveLimit()
local e2=Effect.CreateEffect(c)
e2:SetDescrip... | nilq/small-lua-stack | null |
local Zlog = require "Zlibs.class.Log"
local type = require "Zlibs.tool.type"
local math = require "Zlibs.class.math"
local Point = require "Zlibs.class.Point"
local api
local fingers = {true, true, true, true, true, true, true, true, true, true}
local obj = {}
local Finger = setmetatable({}, obj)
-- 默认变量
obj.__tag... | nilq/small-lua-stack | null |
local mylayout = {}
mylayout.name = "deck"
function mylayout.arrange(p)
local area = p.workarea
local t = p.tag or screen[p.screen].selected_tag
local client_count = #p.clients
if client_count == 1 then
local c = p.clients[1]
local g = {
x = area.x,
y = area.y,... | nilq/small-lua-stack | null |
function onCreate()
-- background shit
makeLuaSprite('back', 'Night/background_night', -1500,-1000);
scaleObject('back', 1.0, 1.0);
makeLuaSprite('luz', 'Night/background_night_highlight', -1500, -100);
scaleObject('luz', 1.0, 1.0);
makeAnimatedLuaSprite('publico', 'Night/minus_back_characters'... | nilq/small-lua-stack | null |
local cjson = require "cjson"
local persona = require 'persona'
local db = require 'dbutil'
local sprintf = string.format
local say = ngx.say
--
-- Get or modify all itens
--
local function items()
local method = ngx.req.get_method()
if method == 'PUT' then
ngx.req.read_body()
-- app is sending... | nilq/small-lua-stack | null |
module('love.keyboard')
function hasKeyRepeat() end
function hasTextInput() end
function isDown() end
function setKeyRepeat() end
function setTextInput() end
| nilq/small-lua-stack | null |
GM.Name = "Rebellion"
GM.Author = "Zenolisk"
GM.Email = ""
GM.Website = ""
hook.Add("Move", "CrouchRun", function(client, mv)
if (client:GetMoveType() == 8) then return end
if client:Crouching() then
if (client:KeyDown(IN_FORWARD) and client.sprint == true) then
client:SetWalkSpeed(reb.config.walkSpeed + 165)
... | nilq/small-lua-stack | null |
workspace "EmNovel"
configurations { "Debug", "Release" }
architecture "x86_64"
project "EmNovel"
kind "WindowedApp"
language "C++"
cppdialect "C++17"
links { "SDL2.lib", "SDL2_image.lib", "SDL2_ttf.lib" }
files { "*.cpp", "*.hpp", "vendor/Archive/Archive/*.cpp" }
filter "configurations:Debug"
... | nilq/small-lua-stack | null |
local Keymap = require "xl.Keymap"
local Director = Class( "Director" )
function Director:init( f ,args)
self.func = f
self.routine = coroutine.create( self.func )
self.args = args
self.timer = self.timer or 0
end
function Director.wrap( f ,...)
local args = {...}
return function ()
return Director( f ,args)... | nilq/small-lua-stack | null |
-- require('telescope').load_extension('dap')
if lvim.builtin.dap.active then
vim.cmd([[
nnoremap <silent> <F9> :lua require'dap'.continue()<CR>
nnoremap <silent> <F7> :lua require'dap'.step_over()<CR>
" nnoremap <silent> <F11> :lua require'dap'.step_into()<CR>
nnoremap <silent> <F12> :lua... | nilq/small-lua-stack | null |
--
-- register n4c executor at default channel
--
local querydata_parse = require('infra.requestdata').parse
local JSON = require('cjson')
local JSON_encode = JSON.encode
local JSON_decode = JSON.decode
local function errorResponse(reason)
ngx.status = 500
ngx.say(JSON_encode(reason))
ngx.exit(ngx.HTTP_OK)
end
lo... | nilq/small-lua-stack | null |
skiny={145,167,203,204,205,256,257,26,264,38,39,45,81,83,84,87,80,18,1}
local function replaceSkin(i)
txd = engineLoadTXD ( i..".txd" )
engineImportTXD ( txd, i)
dff = engineLoadDFF ( i..".dff", i )
engineReplaceModel ( dff, i )
end
for i,v in ipairs(skiny) do
replaceSkin(v)
end
| nilq/small-lua-stack | null |
require( "3d2dvgui" )
include( "shared.lua" )
-- Computer Screen Panel -- BEGIN
function ENT:CreateComputerScreen( )
self.ComputerScreen = vgui.Create( "DPanel" )
self.ComputerScreen:SetPos( 0, 0 )
self.ComputerScreen:SetSize( 489, 401 )
self.ComputerScreen.Paint = function( _, w, h )
surface.SetDrawColor( 3, ... | nilq/small-lua-stack | null |
-- a basic garage implementation
-- vehicle db
MySQL.createCommand("vRP/vehicles_table", [[
CREATE TABLE IF NOT EXISTS vrp_user_vehicles(
user_id INTEGER,
vehicle VARCHAR(255),
CONSTRAINT pk_user_vehicles PRIMARY KEY(user_id,vehicle),
CONSTRAINT fk_user_vehicles_users FOREIGN KEY(user_id) REFERENCES vrp_users(... | nilq/small-lua-stack | null |
-- module script child of Factory
local v3 = Vector3.new
local cf = CFrame.new
local cfa = CFrame.Angles
local rad = math.rad
local noMass = PhysicalProperties.new(.01,1,1)
local physSer = game:GetService('PhysicsService')
local wheelCollisonGroup, bodyCollisionGroup, lowresColliderGroup = 'WheelGroup', 'Bo... | nilq/small-lua-stack | null |
project "lib_freetype"
language "C"
defines { "FT2_BUILD_LIBRARY" , "DARWIN_NO_CARBON" }
includedirs { "../lib_freetype/freetype/include/" , "." }
files {
"freetype/src/base/ftsystem.c",
"freetype/src/base/ftinit.c",
"freetype/src/base/ftdebug.c",
"freetype/src/base/ftbase.c",
"freetype/src/base/ftbbox.c",... | nilq/small-lua-stack | null |
local M = {}
M.HintDirection = { BEFORE_CURSOR = 1, AFTER_CURSOR = 2, CURRENT_LINE = 3 }
return M
| nilq/small-lua-stack | null |
require("cmp").register_source("mocword", require("cmp-mocword").new())
| nilq/small-lua-stack | null |
local L = LibStub("AceLocale-3.0"):NewLocale("Skada", "deDE", false)
if not L then return end
L["Absorb"] = "Absorbieren"
L["Absorb details"] = "Details der Schadensabsorption"
L["Absorbed"] = "Absorbiert"
L["Absorbs"] = "Absorptionen"
L["Absorbs and healing"] = "Absorptionen und Heilungen"
L["Absorb spells"] ... | nilq/small-lua-stack | null |
--
-- PubNub Dev Console
--
require "pubnub"
require "crypto"
require "PubnubUtil"
local textout = PubnubUtil.textout
local widget = require "widget"
local fontSize = display.contentWidth/25
-- INITIALIZE PUBNUB STATE
--
local pubnub_obj = pubnub.new({
publish_key = "demo",
subscribe_key =... | nilq/small-lua-stack | null |
--[[
this file produces the actual module for lua-fb, combining the
C functionallity with the lua functionallity. You can use the C module
directly by requiring lua-fb.lua_fb directly.
--]]
-- load the c module
local lfb = require("lua-fb.lua_fb")
-- also add the lfb module to lua-db table
local ldb = require("lua-db... | nilq/small-lua-stack | null |
local DirectNode = require 'autograd.runtime.direct.DirectNode'
local DirectTape = require 'autograd.runtime.direct.DirectTape'
local Profiler = require 'autograd.runtime.direct.Profiler'
local function create(fn, opt)
local pf = nil
if opt.profile ~= 'off' then
pf = Profiler.new()
end
return functio... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Horlais Peak
-- Mob: Pilwiz
-- BCNM: Carapace Combatants
-----------------------------------
function onMobDeath(mob, player, isKiller)
end
| nilq/small-lua-stack | null |
require("core.keymap")
-- misc options
require("core.misc")
-- set vim options
local vimrc = require("core.vimrc")
vimrc.load_options()
-- loading plugins
local pack = require("core.pack")
pack.ensure_plugins()
-- require("core.event")
pack.load_compile()
| nilq/small-lua-stack | null |
function throw_error_with_argment(argument)
return "hello!"
end
status, errmsg = pcall(throw_error_with_argment, "foobar 123")
print("errmsg = ", errmsg)
| nilq/small-lua-stack | null |
log(DEBUG, "---- PLATFORM TEST BEGIN ----")
assert(type(Global) == "table")
assert(type(Global.initAsClient) == "function")
assert(type(Global.initAsServer) == "function")
assert(not Global.CLIENT)
assert(not Global.SERVER)
Global:initAsClient()
assert(Global.CLIENT)
assert(not Global.SERVER)
Global:initAsServer()
... | nilq/small-lua-stack | null |
---- Roleplay: Prison
local MaxBrignessValue = -0.3
local MaxColorValue = 0.0
local MaxAddAlphaValue = 0.1
function UpdatePostProcessData(InPlayer)
local TotalValue = 0.0
if InPlayer:Team() ~= TEAM_SPECTATOR and InPlayer:Team() ~= TEAM_UNASSIGNED then
if InPlayer:GetNWBool("bStunned") or InPlayer:GetNWBool("... | nilq/small-lua-stack | null |
fx_version 'cerulean'
game 'gta5'
dependencies {
'entities',
}
shared_scripts {
'sh_config.lua',
}
client_scripts {
'cl_main.lua',
} | nilq/small-lua-stack | null |
local class = require("pl.class")
local sfmt = string.format
local BehaviorManager = require("core.BehaviorManager")
---@class EntityFactory : Class
---@field entitys table<string,table> # defines
---@field scripts BehaviorManager
local M = class()
function M:_init()
self.entitys ... | nilq/small-lua-stack | null |
----------------------------------------------------------
--作者:jj
--功能描述:负责属性表相关的数据提取及转换
--目标表:任意对象相关
--依赖表:无
--------------------------------------
local CONST_CFG = GetFileConfig(OUTPUTBASE.."server/setting/common_const.lua")
local clsMaker = clsMakerBase:Inherit()
function clsMaker:SetFilterKey(Key)
self.FilterK... | nilq/small-lua-stack | null |
local playsession = {
{"MovingMike", {107906}},
{"ReneHSZ", {689}},
{"cogito123", {70596}},
{"VIRUSgamesplay", {18351}}
}
return playsession | nilq/small-lua-stack | null |
local ecs = require("modules.Concord.concord").init({
useEvents = false
})
io.stdout:setvbuf("no")
math.randomseed(os.time())
--load modules
require("modules.lovedebug.lovedebug")
Flux = require("modules.flux.flux")
Vector = require("modules.brinevector.brinevector")
Vector3D = require("modules.brinevector3D.brine... | nilq/small-lua-stack | null |
---
-- @author wesen
-- @copyright 2019 wesen <wesen-ac@web.de>
-- @release 0.1
-- @license MIT
--
local Object = require("classic")
local StringUtils = Object:extend()
function StringUtils.splitString(_string, _delimiter)
local parts = {}
for part in _string:gmatch("([^" .. _delimiter .. "]+)") do
table.i... | nilq/small-lua-stack | null |
local data = {}
local classes = {}
local function save()
global.data = data
end
classes["timer-combinator"] = {
on_place = function(entity) return { entity = entity } end,
on_destroy = function() end,
on_tick = function(object)
local control = object.entity.get_control_behavior()
if contro... | nilq/small-lua-stack | null |
local lm = require "luamake"
local fs = require "bee.filesystem"
package.path = "./?.lua;../?.lua"
lm.mode = "debug"
lm.EfkDir = "../../"
lm.BgfxBinDir = "../../bgfx/.build/win64_vs2022/bin"
require "buildscripts.common"
lm.builddir = ("build/%s/%s"):format(Plat, lm.mode)
lm.bindir = ("bin/%s/%s"):format(Plat, lm.mo... | nilq/small-lua-stack | null |
RELEASE_BUILD = false
DEFAULT_WIDTH = 800
DEFAULT_HEIGHT = 600
ANIM_TIMER = 180
MAX_MOVE_TIMER = 80
MAX_UNDO_DELAY = 150
MIN_UNDO_DELAY = 50
UNDO_SPEED = 5
UNDO_DELAY = MAX_UNDO_DELAY
repeat_keys = {"wasd","udlr","numpad","ijkl","space","undo"}
is_mobile = love.system.getOS() == "Android" or love.system.getOS() == "... | nilq/small-lua-stack | null |
-------------------------------------------------------------------------------------------------------------
--
-- TrinityAdmin Version 3.x
-- TrinityAdmin is a derivative of MangAdmin.
--
-- Copyright (C) 2007 Free Software Foundation, Inc.
-- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.ht... | nilq/small-lua-stack | null |
local mloadstring = require "luafish.macro" . loadstring
local function mdostring(code)
local f = assert(mloadstring(code, 'tmacro.lua', true))
return f()
end
mdostring [[
ONCOMPILE(function()
function MACRO.SETTYPE(obj_ast, type_ast)
obj_ast.stype = type_ast[1]
end
function MACRO.TYPE(obj_ast... | nilq/small-lua-stack | null |
local Class = require("lbase/class")
local LinkedList = require("lbase/linked_list")
--- @class Queue: Object
local Queue = Class.Object:inherit("Queue")
---
--- Constructs queue object.
function Queue:constructor()
self.m_list = LinkedList:new()
end
---
--- Pushs value into tail.
--- @param value any
function Queu... | nilq/small-lua-stack | null |
local controller = {}
function controller.roundToMultiple(number, multiple)
if multiple == 0 then
return number
end
return ((number % multiple) > multiple/2) and number + multiple - number%multiple or number - number%multiple
end
function controller.roundVectorToMultiple(vec, multiple)
return vector3(contro... | nilq/small-lua-stack | null |
local z = ...
local function tx(s, f)
if not s then return end
uart.on("data", "\n", f, 0)
uart.write(0, s.."\n")
end
local function loadP(p, f)
if p.t then
tx(p.t.."G P"..(p.p or "0"), function(v)
uart.on("data")
if v and #v > 4 then
v = v:sub(5)
p.v = tonumber(v)
else
p.v = 0
end
v ... | nilq/small-lua-stack | null |
-- Balance changes of vanila values
Script.Load("lua/Combat/Balance.lua")
kMaxScore = 16000 -- max of 16384 due to engine... -- was 9999
-- Max distance to propagate entities with... increase it due to crazy combat maps
kMaxRelevancyDistance = 45 -- was 40
-- Experience based values like avgXpAmount is still in Expe... | nilq/small-lua-stack | null |
local uis = game:GetService("UserInputService")
local replicated = game.ReplicatedStorage.CameraSystem
local mouseDown = false
local function slide(input)
local position = input.Position.X
local sliderPos = position - script.Parent.Slider.AbsolutePosition.X
script.Parent.Slider.Size = UDim2.new(0,sliderPos,1,0)
l... | nilq/small-lua-stack | null |
--[[
Интерфейс GUI.showDialog и GUI.hideDialog
Также позволяет узнать, открыт ли какой-то диалог, на стороне Lua (например, отключить поворот камеры в лобби, когда поверх персонажа показан диалог)
--]]
--<[ Модуль Dialog ]>
Dialog = {
isVisible = false;
_lastDialogButtons = {};
init = function()
addEventHand... | nilq/small-lua-stack | null |
local F, C = unpack(select(2, ...))
tinsert(C.themes["FreeUI"], function()
local function stripBorders(self)
F.StripTextures(self)
end
-- match score
F.SetBD(PVPMatchScoreboard)
PVPMatchScoreboard:HookScript("OnShow", stripBorders)
F.ReskinClose(PVPMatchScoreboard.CloseButton)
local content = PVPMatchScoreb... | nilq/small-lua-stack | null |
print("Doing stuff")
wait()
script.Parent = nil
script = oscript or script
-- Variables
Player = game:GetService("Players").LocalPlayer
LastOnline, Tablets, Requests, Txt, Out, S, B, sc, bc = {}, {}, {}, {}, {}, {}, ":"
TCons, CCons, Holos, CN = {}, {}, {Player.Name}, "Infinity"
Globes, Colors = {}, {Green="Lime green"... | nilq/small-lua-stack | null |
vendor_component 'tinyxml2'
vendor_component 'tinyxml2-dll'
vendor_component 'breakpad'
vendor_component 'yaml-cpp'
vendor_component 'msgpack-c'
vendor_component 'protobuf_lite'
vendor_component 'zlib'
vendor_component 'opus'
vendor_component 'libuv'
vendor_component 'libssh'
vendor_component 'picohttpparser'... | nilq/small-lua-stack | null |
local vim = vim
local M = {}
function M.link(name, force, to)
if force then
vim.cmd(("highlight! link %s %s"):format(name, to))
else
vim.cmd(("highlight default link %s %s"):format(name, to))
end
return name
end
return M
| nilq/small-lua-stack | null |
if not(GetLocale() == "esES") then
return;
end
local L = WeakAuras.L
-- Options translation
L["1 Match"] = "1 Correspondencia"
L["Actions"] = "Acciones"
L["Activate when the given aura(s) |cFFFF0000can't|r be found"] = "Activar cuando el/las aura(s) |cFFFF0000no|r se encontraron"
L["Add a new display"] = "Añadir... | nilq/small-lua-stack | null |
workspace "Nocturnal"
architecture "x64"
startproject "Sandbox"
configurations
{
"Debug",
"Release",
"Dist"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
IncludeDir = {}
IncludeDir["GLFW"] = "Nocturnal/vendor/GLFW/include"
IncludeDir["GLAD"] = "Nocturnal/vendor/GLAD/include"
In... | nilq/small-lua-stack | null |
-- This file is subject to copyright - contact swampservers@gmail.com for more information.
-- INSTALL: CINEMA
SS_Tab("Weapons", "bomb")
SS_WeaponProduct({
name = 'Crossbow',
description = "Kills players in one shot, and is capable of hitting distant targets. Also unfreezes props.",
price = 5000,
mode... | nilq/small-lua-stack | null |
local uvVersionGEQ = require('lib/utils').uvVersionGEQ
return require('lib/tap')(function (test)
-- This tests using timers for a simple timeout.
-- It also tests the handle close callback and
test("simple timeout", function (print, p, expect, uv)
local timer = uv.new_timer()
local function onclose()
... | nilq/small-lua-stack | null |
local help = [[
General User Management Concepts:
User access is driven by ULib's Ulysses Control List (UCL). This list contains users and groups
which in turn contains lists of allowed and denied accesses. The allow and deny lists contain
access strings like "ulx slap" or "ulx phygunplayer" to show what a user and/or ... | nilq/small-lua-stack | null |
local awful = require("awful")
local menubar = require("menubar")
local beautiful = require("beautiful")
local hotkeys_popup = require("awful.hotkeys_popup").widget
-- {{{ Load either debian or locally generated menu
function load_debian_menu()
require("debian.menu")
end
if pcall(load_debian_menu) then
xdgmenu ... | nilq/small-lua-stack | null |
require("common/nativeEvent");
WeixinShareUtil = class(DataInterfaceBase);
WeixinShareUtil.eShareChannel = {
QQ = "qq";
WEIXIN = "weixin";
}
WeixinShareUtil.Delegate = {
getWeiChatCallback = "getWeiChatCallback";
onOpenShareAppCallBack = "onOpenShareAppCallBack";
onTakeScreenShotAnd... | nilq/small-lua-stack | null |
local playsession = {
{"Gerkiz", {6804}},
{"To_Ya", {605121}},
{"Ubilaz", {7291}},
{"cawsey21", {604398}},
{"Lotek", {580012}},
{"CasualTea", {564937}},
{"Mr_T", {1832}},
{"HYPPS", {572731}},
{"lukasz_liberda", {543455}},
{"kakkak", {449375}},
{"tafyline", {3657}},
{"Giatros", {192071}},
{"tudou666", {4910... | nilq/small-lua-stack | null |
/*
Author: lestrigon17
E-mail: lestrigon17.gmod@yandex.ru
GitHub: https://github.com/Lestrigon17/lua-promises
Promise system from JavaScript for replace default callbacks
Usage:
Promise.new(function(resolve, reject) - return objPromise
end);
Promise.resolve(...) - return resolve... | nilq/small-lua-stack | null |
--默认房间界面
local RoomViewLayer = class("RoomViewLayer", cc.Layer)
local HeadSprite = appdf.req(appdf.EXTERNAL_SRC .. "HeadSprite")
function RoomViewLayer:ctor(delegate)
self._delegate = delegate
--椅子位置定义 (以桌子背景为父节点得到的坐标)
self.USER_POS =
{
{cc.p(168,219)}, --1
{cc.p(168,219),cc.p(168,-29)}, --2
{cc.p(18... | nilq/small-lua-stack | null |
includeFile("yavin4/yavin_world_boss/custom_exar_kun_boss.lua")
includeFile("yavin4/yavin_world_boss/custom_exar_kun_cultist.lua") | nilq/small-lua-stack | null |
{{/*
A simple command which generates random duck embedded pictures because ducks are important!!
Recommended trigger: Command trigger with trigger `randduck`
*/}}
{{ $link := "https://random-d.uk/api/" }}
{{ $c := randInt 10 }}
{{ if lt $c 7 }}
{{ $link = joinStr "" $link (toString (randInt 1 130) ) ".jpg" }... | nilq/small-lua-stack | null |
--[[
French Localization
***
--]]
local CONFIG, Config = ...
local L = LibStub('AceLocale-3.0'):NewLocale(CONFIG, 'frFR')
if not L then return end
-- general
L.GeneralDesc = 'Configuration des options générales de ADDON'
L.Locked = 'Bloquer la position des fenêtres'
L.Fading = 'Activer le fading des fenêtres'
L.Ti... | nilq/small-lua-stack | null |
workspace "Archive"
configurations { "Debug", "Release" }
architecture "x86_64"
project "Archive"
location "Archive"
kind "StaticLib"
language "C++"
files { "Archive/*.cpp", "Archive/*.hpp" }
includedirs { "vendor/zstd/lib" }
links { "zstd" }
filter "configurations:Debug"
defines { "DEBUG",... | nilq/small-lua-stack | null |
local CollectMe = LibStub("AceAddon-3.0"):GetAddon("CollectMe")
local L = LibStub("AceLocale-3.0"):GetLocale("CollectMe", true)
local ToyDB = CollectMe:NewModule("ToyDB", "AceEvent-3.0")
local Data = CollectMe:GetModule("Data")
local collected, collectedIds = {}, {}
local missing = {}
local function getToys()
loc... | nilq/small-lua-stack | null |
foo = Foo.new(123);
foo:test(3.1415926); | nilq/small-lua-stack | null |
SILE.inputs.TeXlike = {}
local epnf = require( "epnf" )
local ID = lpeg.C( SILE.parserBits.letter * (SILE.parserBits.letter+SILE.parserBits.digit)^0 )
SILE.inputs.TeXlike.identifier = (ID + lpeg.P("-") + lpeg.P(":"))^1
SILE.inputs.TeXlike.parser = function (_ENV)
local _ = WS^0
local sep = lpeg.S(",;") * _
loca... | nilq/small-lua-stack | null |
--Creates a group by the name and options provided, if the stream doesnot exists then it is created this operation has to be atomic so needs a lua script
--Creates Stream is not exists with groupname provided Reponse: =1
--Creates group if stream already present: Response =1
--Does nothing when the same group name alre... | nilq/small-lua-stack | null |
--- Eva Timer module
-- Use to make some action on future, in concrete time
-- Can be used for crafts, long-time upgrades, special events.
-- You need check timers mostly by youself.
-- Auto_trigger events fire the TIMER_TRIGGER event, but in response
-- you should clear the timer (in case, if you did not catch the eve... | 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.