content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
local Cell = require('mob.cell')
local Item = require('mob.item')
local Pack = require('pack')
local Starrot = require('mob.enemy.starrot')
local BiomeStar = {}
BiomeStar.__index = BiomeStar
setmetatable(BiomeStar, {__index = Cell})
function BiomeStar.new(item)
local self = setmetatable(Cell.new(), BiomeStar)
... | nilq/small-lua-stack | null |
local bitLib = require("plugin.bit" )
local band = bitLib.band
local Transition = class('Transition')
local getters = Transition.getters
local setters = Transition.setters
local OPTION_IGNORE_DISPLAY_CONTROLLER = 1
local OPTION_AUTO_STOP_DISABLED = 2
local OPTION_AUTO_STOP_AT_END = 4
function Transition... | nilq/small-lua-stack | null |
local included = pcall(debug.getlocal, 4, 1)
local T = require("test")
local ssh_config = require("ssh_config")
--# = ssh_config
--# :toc:
--# :toc-placement!:
--#
--# Get values from ~/.ssh/config
--#
--# toc::[]
--#
--# == *ssh_config.port*(_String_) -> _String_
--# Get configured Port for Host.
--#
--# === Arguments... | nilq/small-lua-stack | null |
local ppath = select(1, ...)
print("level1/level2/test.lua: ppath = " .. (ppath or "root"))
l0 = require "level1.base"
| nilq/small-lua-stack | null |
addEventHandler( "onPlayerStealthKill", root,
function ()
cancelEvent()
end
)
| nilq/small-lua-stack | null |
local can = {}
function can.number (max)
return __vega.set.random(max)
end
function can.string(length)
local s = ""
length = length or 10
local chars = {}
local s = "ABCDEGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
for i = 1, #s do
chars[i] = s:sub(i, i)
end
... | nilq/small-lua-stack | null |
#!/usr/bin/lua
--[[
Testing unit for service_wrapper.lua
TODO: more test cases are needed:
- test assertions and error conditions
- make test cases for each combination of options that can be combined together (is this feasible?)
- test list & repair of limbo transactions
- test tracer with OS threads
- bind &... | nilq/small-lua-stack | null |
local CurrencyConstants_Mainline =
{
Tables =
{
{
Name = "CurrencyDestroyReason",
Type = "Enumeration",
NumValues = 12,
MinValue = 0,
MaxValue = 11,
Fields =
{
{ Name = "Cheat", Type = "CurrencyDestroyReason", EnumValue = 0 },
{ Name = "Spell", Type = "CurrencyDestroyReason", EnumValue ... | nilq/small-lua-stack | null |
-- configuration
Impl = {}
Impl.UILib = nil
PresenterPort =
interface.build_interface(
{
-- context could have access to both provider and highlights
-- This is Optional
{"context", {"table", "table"}},
{"convert", {"table", "->", "table"}},
{"draw", {{"table", "string"}... | nilq/small-lua-stack | null |
return function(box, inventory, rowWidth, padding, backgroundColour)
local inventoryComponent = {}
local inventorySquare = ASSETS.textures.inventory.inventorySquare
inventoryComponent.box = box
inventoryComponent.inventory = inventory
inventoryComponent.rowWidth = rowWidth
inventoryComponent.b... | nilq/small-lua-stack | null |
object_tangible_deed_pet_deed_dwarf_spider_droid_deed = object_tangible_deed_pet_deed_shared_dwarf_spider_droid_deed:new {
}
ObjectTemplates:addTemplate(object_tangible_deed_pet_deed_dwarf_spider_droid_deed, "object/tangible/deed/pet_deed/dwarf_spider_droid_deed.iff")
| nilq/small-lua-stack | null |
AddCSLuaFile('cl_lb.lua')
if CLIENT then return end
--Set up folders and file
if (not file.IsDir("vbtdm","DATA")) then
file.CreateDir("vbtdm")
end
if (not file.IsDir("vbtdm/leaderboards","DATA")) then
file.CreateDir("vbtdm/leaderboards")
end
if (not(file.Exists("vbtdm/leaderboards/users.txt","DATA"))) then
fil... | nilq/small-lua-stack | null |
require "torch"
require "nn"
require "math"
--require "cunn"
--require "cutorch"
require "image"
-- global variables
DataMean = 0
DataStd = 0;
w = 32
h = 32
hand = 1
nonhand = 2
torch.manualSeed(1)
network = torch.load('network.dat')
--network=network:cuda()
function predict(network,input,conf... | nilq/small-lua-stack | null |
local hotkey = require "mjolnir.hotkey"
local grid = require "mjolnir.bg.grid"
local sizeUp = {}
local function snapWindow(direction)
grid.GRIDHEIGHT = 2
grid.GRIDWIDTH = 2
if direction == "left" or direction == "right" then
grid.resizewindow_thinner()
if direction == "left" then
grid.pushwindow_left()
e... | nilq/small-lua-stack | null |
-- Set vim as local variable for lua diagnostics
local vim = vim
-- Plugins
-- Install packer
local fn = vim.fn
local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
if fn.empty(fn.glob(install_path)) > 0 then
Packer_bootstrap =
fn.system({"git", "clone", "--depth", "1", "https://githu... | nilq/small-lua-stack | null |
RegisterCommand(
"vehicle",
function(source, args)
local category = args[1]
if category == "spawn" then
local vehicle = args[2]
local carPaint = colors.metal["Pure Gold"]
local veh = spawnVeh(vehicle, true)
print(string.format("Spawned in a(n) %s."... | nilq/small-lua-stack | null |
local available = "$AVAILABLE$"
local randomized = "$RANDOMIZED$"
local hashstring = "$HASHSTRING$"
local rand_ord = '$RANDORD$'
local DEF_LEN = 260
local seed_func = os.time
local function to_table(str)
local res = {}
for i = 1, #str do
res[i] = str:sub(i, i)
end
return res
end
local function get_pos(val, ... | nilq/small-lua-stack | null |
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
Clockwork was created by Conna Wiles (also known as kurozael.)
http://cloudsixteen.com/license/clockwork.html
--]]
local COMMAND = Clockwork.command:New("Announce");
COMMAND.tip = "CmdAnnounce";
C... | nilq/small-lua-stack | null |
---@class FIFOQueue
local FIFOQueue = {}
function FIFOQueue:pop()
if self:is_empty() then
return nil
end
local r = self[self.pop_from]
self[self.pop_from] = nil
self.pop_from = self.pop_from - 1
return r
end
function FIFOQueue:peek()
return self[self.pop_from]
end
function FIFOQueue:push(val)
sel... | nilq/small-lua-stack | null |
local i = require "luci.sys"
local t, e, o
t = Map("timewol", translate("定时网络唤醒"),
translate("定时唤醒你的局域网设备"))
t.template = "timewol/index"
e = t:section(TypedSection, "basic", translate("Running Status"))
e.anonymous = true
o = e:option(DummyValue, "timewol_status", translate("当前状态"))
o.template = "timewol/timew... | nilq/small-lua-stack | null |
-- The MIT License (MIT)
-- Copyright (c) 2015 Eugene Aksenov
--
-- 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, cop... | nilq/small-lua-stack | null |
--[[
Copyright (c) 2022 Jason Morley, Tom Sutcliffe
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, publi... | nilq/small-lua-stack | null |
-- scaffolding entry point for incbin
return dofile("incbin.lua")
| nilq/small-lua-stack | null |
sven_great_cleave_lua = class({})
LinkLuaModifier( "modifier_sven_great_cleave_lua", LUA_MODIFIER_MOTION_NONE )
--------------------------------------------------------------------------------
function sven_great_cleave_lua:GetIntrinsicModifierName()
return "modifier_sven_great_cleave_lua"
end
---------------------... | nilq/small-lua-stack | null |
(terralib.loadfile("test.t"))()
import "darkroom"
local const = darkroomSimple.load("frame_1024.bmp")
im a(x,y) [float](const(x,y)) end
im b(x,y) a(x-20,y-1)+a(x+20,y+1) end
im c(x,y) b(x-20,y-1)+b(x+20,y+1) end
im d(x,y) c(x-20,y-1)+c(x+20,y+1) end
im e(x,y) d(x-20,y-1)+d(x+20,y+1) end
im f(x,y) [uint8]((e(x-20,y-... | nilq/small-lua-stack | null |
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ --
-- ───────────────────────────────────────────────── --
-- Plugin: indent-blankline.nvim
-- Github: github.com/lukas-reineke/indent-blankline.nvim
-- ───────────────────────────────────────────────── --
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━... | nilq/small-lua-stack | null |
--
-- channel.lua -- shows how to pass / wait data between channels
--
local SDL = require "SDL"
SDL.init { SDL.flags.Video }
local t, err = SDL.createThread("test",
function ()
local SDL = require "SDL"
local channel = SDL.getChannel "Test"
print("Waiting...")
local v = channel:wait()
print("Received: ... | nilq/small-lua-stack | null |
local World = {}; World.__index = World
local function getUserDataName(userData)
return userData.name or (userData.properties and userData.properties.name)
end
local function verifyUserData(a, b, firstType, secondType)
if getUserDataName(a:getUserData()) == firstType and getUserDataName(b:getUserData()) == se... | nilq/small-lua-stack | null |
local Root = script.Parent.Parent
local ItemType = require(Root.Enums.ItemType)
local PurchaseError = require(Root.Enums.PurchaseError)
local Symbol = require(Root.Symbols.Symbol)
local KeyMappings = require(script.Parent.KeyMappings)
local GetFFlagProductPercentLocFix = require(Root.Flags.GetFFlagProductPercentLocF... | nilq/small-lua-stack | null |
-- stop.lua
-- programme de stop
-- zf180716.0010
zBTN = 3 -- GPIO0 button
zRelay = 6 -- GPIO12 PWM0 relay (active high)
zLED = 7 -- GPIO13 PWM1 GREEN LED (active low)
gpio.mode(zLED,gpio.OUTPUT)
pwm.stop(zLED)
gpio.write(zLED,1)
| nilq/small-lua-stack | null |
function DefaultOptionScrollerActor(fontsize,sidespacing)
return Def.ActorFrame{
-- name
Def.BitmapText{
Name = "Name";
Font = Fonts.options["Main"];
InitCommand=cmd(horizalign,left;x,-sidespacing;zoom,fontsize;strokecolor,0.2,0.2,0.2,1);
GainFocusComm... | nilq/small-lua-stack | null |
--!A cross-platform build utility based on Lua
--
-- 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
--
-- Unless required by applicable law... | nilq/small-lua-stack | null |
--[[
--=====================================================================================================--
Script Name: Alias System, for SAPP (PC & CE)
Description: Query a player's hash to check what aliases have been used with it.
Command syntax: /alias ( 'me' or [number: 1-16] ) [page id]
IMPORTANT: If you ha... | nilq/small-lua-stack | null |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
description 'DevoNetwork'
ui_page('html/index.html')
client_scripts {
'jns_client.lua',
}
server_scripts {
'jns_server.lua',
}
files({
'html/index.html',
'html/css/style.css',
'html/css/bootstrap.min.css',
'html/js/script.js',
... | nilq/small-lua-stack | null |
local make
make = function(x, y)
local block = {
x = x,
y = y,
tag = "block"
}
block.draw = function(self)
do
local _with_0 = love.graphics
_with_0.setColor(1, 1, 1)
_with_0.draw(sprites.rock, x, y, 0, 24 / sprites.grass:getWidth(), 24 / sprites.grass:getHeight())
return _w... | nilq/small-lua-stack | null |
object_mobile_zozpheratu_static = object_mobile_shared_zozpheratu_static:new {
}
ObjectTemplates:addTemplate(object_mobile_zozpheratu_static, "object/mobile/zozpheratu_static.iff")
| nilq/small-lua-stack | null |
function GetRGB(r, g, b)
return {r / 255, g / 255, b / 255}
end
return {
WHITE = GetRGB(255, 255, 255), -- #ffffff
BLACK_ZEUS = GetRGB(43, 40, 33), -- #2b2821
BROWN_KABUL = GetRGB(98, 76, 60), -- #624c3c
BROWN_BRANDY = GetRGB(217, 172, 139), -- #d9ac8b
BROWN_GRAIN = GetRGB(227, 207, 180), -- #e... | nilq/small-lua-stack | null |
local log = require "telescope.log"
local deprecated = {}
deprecated.picker_window_options = function(opts)
local messages = {}
-- Deprecated: PR:922, 2021/06/25
-- Can be removed in a few weeks.
if opts.width then
table.insert(messages, "'opts.width' is no longer valid. Please use 'layout_config.width'... | nilq/small-lua-stack | null |
local alpha = require 'alpha'
local dashboard = require 'alpha.themes.dashboard'
dashboard.section.header.val = vim.fn.readfile(vim.fn.expand(
'~/.config/nvim/rc/files/dashboard_custom_header.txt'))
dashboard.section.buttons.val = {
dashboard.button('l', ' Open last... | nilq/small-lua-stack | null |
return {
"mickael-menu/zk-nvim",
-- ft = { "markdown" },
config = function()
local zk = require('zk')
local map = vim.api.nvim_set_keymap
local silent = { noremap = true, silent = true }
---- MARK: Key Mappings ----
map("n", "<leader>zf", "<cmd>ZkNotes { sort = { 'modified' } }<CR>", silent... | nilq/small-lua-stack | null |
local prosody = prosody;
local core_process_stanza = prosody.core_process_stanza;
local wrapclient = require "net.server".wrapclient;
local s2s_new_outgoing = require "core.s2smanager".new_outgoing;
local initialize_filters = require "util.filters".initialize;
local st = require "util.stanza";
local portmanager = req... | nilq/small-lua-stack | null |
--
-- Created by IntelliJ IDEA.
-- User: robinchugh
-- Date: 12/07/17
-- Time: 10:37 AM
-- To change this template use File | Settings | File Templates.
--
require("os")
request = function()
local path = wrk.path .. "&time=" .. os.date("%m/%d/%Y:%H:%M:%S")
print(path)
return wrk.format(nil, path)
end | nilq/small-lua-stack | null |
local hsl = require('wlanimation.hsl')
local M = {}
M.get_hl_color = function(hl)
local cmd = vim.api.nvim_exec('highlight ' .. hl, true)
local _, _, bg = string.find(cmd, "guibg%=(%#%w*)")
local _, _, fg = string.find(cmd, "guifg%=(%#%w*)")
return fg, bg
end
---@return HSL
M.rgb_to_hsl = function(rgb... | nilq/small-lua-stack | null |
---@class eHelicopter
eHelicopter = {}
---@field hoverOnTargetDuration number|boolean How long the helicopter will hover over the player, this is subtracted from every tick
eHelicopter.hoverOnTargetDuration = false
---@field searchForTargetDurationMS number How long the helicopter will search for last seen targets
eH... | nilq/small-lua-stack | null |
-- Copyright (C) 2020 Igara Studio S.A.
-- Copyright (C) 2018 David Capello
--
-- This file is released under the terms of the MIT license.
-- Read LICENSE.txt for more information.
do
local s = Sprite(32, 32)
for i = 1,7 do s:newFrame() end
assert(#s.frames == 8)
a = s:newTag(1, 8)
assert(a.sprite == s)
... | nilq/small-lua-stack | null |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
ACF.RegisterClassLink("acf_radar", "acf_rack", function(Radar, Target)
if Radar.Weapons[Target] then return false, "This rack is already linked to this radar!" end
if Target.Radar == Radar then return false, "This rack is already linked t... | nilq/small-lua-stack | null |
--Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | nilq/small-lua-stack | null |
-- require 'strict'
scratchy = require 'scratchy'
function love.load()
love.window.setMode(800, 600, {})
width = love.graphics.getWidth()
height = love.graphics.getHeight()
space = scratchy.sprite({
image = "space.jpg",
x = width / 2,
y = height / 2,
scale = 0.8,
})
player_ship = scratchy.sprite({
... | nilq/small-lua-stack | null |
RegisterNetEvent('esx_addons_gcphone:call')
AddEventHandler('esx_addons_gcphone:call', function(data)
local playerPed = PlayerPedId()
local coords = GetEntityCoords(playerPed)
local message = data.message
local number = data.number
if message == nil then
DisplayOnscreenKeyboard(1, "FMMC_MPM_NA", "", "", "", "",... | nilq/small-lua-stack | null |
local AS = unpack(AddOnSkins)
if not AS:CheckAddOn('Examiner') then return end
function AS:Examiner()
AS:SkinFrame(Examiner)
AS:SkinScrollBar(ExaminerStatsScrollScrollBar)
AS:SkinScrollBar(ExaminerFeatsScrollScrollBar)
AS:SkinScrollBar(ExaminerGearScrollScrollBar)
local Slots = {
'Head',
'Neck',
'Shoulder... | nilq/small-lua-stack | null |
CLASS.name = "Citizen"
CLASS.faction = FACTION_CITIZEN
CLASS.isDefault = true
CLASS.color = Color(150, 125, 100, 255);
CLASS_CITIZEN = CLASS.index | nilq/small-lua-stack | null |
if not SF.Require("xinput") then return function() end end
local checkluatype = SF.CheckLuaType
SF.hookAdd("xinputConnected", "xinputconnected")
SF.hookAdd("xinputDisconnected", "xinputdisconnected")
SF.hookAdd("xinputPressed", "xinputpressed")
SF.hookAdd("xinputReleased", "xinputreleased")
SF.hookAdd("xinputTrigger"... | nilq/small-lua-stack | null |
local U = require "us4l".U
local TestCases = {
{
Conversion = "Lowercase";
{ U[[ tHe QUIcK bRoWn]], U[[ the quick brown]] };
--{ U[[aBI\u{3A3}\u{DF}\u{3A3}/\u{5FFFF}\u{10405}]], U[[abi\u{3C3}\u{DF}\u{3C2}/\u{5FFFF}\u{1042D}]] }; --TODO: Need support for unassigned characters
};
... | nilq/small-lua-stack | null |
local table, tostring, format, pairs, print, ipairs, type, unpack =
table, tostring, string.format, pairs, print, ipairs, type, unpack
-- #############################################################
local T = {}
DEVT_Table = T
-- ###################### Start Here ###########################
local function Trim(s... | nilq/small-lua-stack | null |
---
-- @author wesen
-- @copyright 2020-2021 wesen <wesen-ac@web.de>
-- @release 0.1
-- @license MIT
--
local TestCase = require "wLuaUnit.TestCase"
---
-- Checks that the LuaServerApi works as expected.
--
-- @type TestLuaServerApi
--
local TestLuaServerApi = TestCase:extend()
---
-- The require path for the class... | nilq/small-lua-stack | null |
-- 'Statistics' tab
local settings = {id = 1, title = "Statistics"}
local content = nil
local items = {
["input_search"] = {type = "input", placeholder = "Search for a player...", x = 0, y = 0, width = panel.width, height = panel.fontHeight * 2, maxLength = 20},
["gridlist_players"] = {type = "gridlist", x = 0, y = p... | nilq/small-lua-stack | null |
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
--
-- This file is compatible with Lua 5.3
local class = require("class")
require("kaitaistruct")
local str_decode = require("string_decode")
GranTurismoVol = class.class(KaitaiStruct)
function GranTurismoVol:_init(io... | nilq/small-lua-stack | null |
include "./vendor/premake/premake_customization/solution_items.lua"
include "Dependencies.lua"
workspace "Triger"
architecture "x86_64"
startproject "Tridor"
configurations
{
"Debug",
"Release",
"Dist"
}
solution_items
{
".editorconfig"
}
flags
{
"MultiProcessorCompile"
}
outputdir = "%{cfg.bu... | nilq/small-lua-stack | null |
-- config.lua
-- Apr 2017
-- Configuration Options
--
-- You should be able to leave most of the settings here as defaults.
-- The only thing you definitely want to change are the welcome messages.
--------------------------------------------------------------------------------
-- Messages
-- You will want to change ... | nilq/small-lua-stack | null |
return {
new = function(_, input)
local whole, areaCode, exchangeCode, subscriberNumber
= input:gsub("%D", ""):match("^1?((...)(...)(....))$")
local formatted = string.format("(%s) %s-%s", areaCode, exchangeCode, subscriberNumber)
return setmetatable({
number = ... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: East Ronfaure [S]
-- NPC: qm4 "???"
-- Involved in Quests: Steamed Rams
-- !pos 541.425 -49.83 178.563
-----------------------------------
require("scripts/globals/keyitems")
local ID = require("scripts/zones/East_Ronfaure_[S]/IDs")
-----------------------------------
func... | nilq/small-lua-stack | null |
--[[
This file is part of halimede. It is subject to the licence terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/pallene/halimede/master/COPYRIGHT. No part of halimede, including this file, may be copied, modified, propagated, or distributed exc... | nilq/small-lua-stack | null |
package.path = "src/?.lua;"..package.path
local mgl = require("MGL")
| nilq/small-lua-stack | null |
--- Armour is the @{Entity} definition for an armour object.
-- Only Armour entities can be equipped in a character's armour slot.
--
-- Subclass of @{Collectable}.
-- @entity Armour
| nilq/small-lua-stack | null |
meta.name = "Poison Run"
meta.version = "1.1"
meta.description = "You're always poisoned. Can you survive?"
meta.author = "garebear"
register_option_int(
"poison_ticks",
"Number of game ticks until you're damaged from poison.",
1800,
0,
18000
)
DEBUG = false
function debug(msg)
if DEBUG then... | nilq/small-lua-stack | null |
describe("test LuaPatch api return value", function ()
-- body
local luapatch = require("luapatch")
local TestCallSelectorArgument = luapatch.packClass("TestCallSelectorArgument")
it("test makeOCStruct", function()
local ret = luapatch.makeOCStruct("CGRect",1,2,3,4)
assert.truthy(ret)... | nilq/small-lua-stack | null |
-- =====================================================
-- Imports
-- =====================================================
local Objects = require( "dmc_objects" )
--====================================================================--
-- Setup, Constants
--=======================================================... | nilq/small-lua-stack | null |
FACTION.name = "Admin On Duty"
FACTION.description = "Aberration Networks Administration On Duty."
FACTION.color = Color(0, 255, 255, 255)
FACTION.isDefault = false
FACTION.isGloballyRecognized = true
FACTION_ADMIN = FACTION.index
| nilq/small-lua-stack | null |
local _PACKAGE = (...):match("^(.+)[%./][^%./]+") or ""
local util = require(_PACKAGE .. "/util")
local dep = require(_PACKAGE .. "/dep")
local Vector = dep.Vector
local Menu = require(_PACKAGE .. "/menu")
local TimedUpdateManager = require(_PACKAGE .. "/timed_update_manager")
local Button = require(_PACKAG... | nilq/small-lua-stack | null |
return function(a, b, alpha)
return (1 - alpha) * a + b * alpha
end | nilq/small-lua-stack | null |
--[[
file:slotsAlgor.lua
desc:slots算法
auth:Caorl Luo
]]
local class = require("class")
local gameAlgor = require("game.algor")
---@class slotsAlgor:gameAlgor
local algor = class(gameAlgor)
local this = algor
---构造
function algor:ctor()
end
---普通图标轴概率
---@param nWgt slots_weight @普通图标轴权重
--... | nilq/small-lua-stack | null |
--[[
LuaJIT-Request
Lucien Greathouse
Wrapper for LuaJIT-cURL for easy HTTP(S) requests.
Copyright (c) 2016 Lucien Greathouse
This software is provided 'as-is', without any express
or implied warranty. In no event will the authors be held
liable for any damages arising from the use of this software.
Permission is gr... | nilq/small-lua-stack | null |
--[[
C Context.
The C context is used to traverse an AST while generating C code,
it works similar to the analyzer context, visiting a specialized function for each node tag.
It contains many functions to assist generating C code.
]]
local VisitorContext = require 'nelua.visitorcontext'
local class = require 'nelua.... | nilq/small-lua-stack | null |
return require(script.Parent._Index["sleitnick_shake@0.1.4"]["shake"])
| nilq/small-lua-stack | null |
---
-- Face.lua - Face editor
--
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local UI = ReplicatedStorage.Common.UI
local ColorPicker = require(UI.ColorPicker)
local PaginatedSelector = require(UI.PaginatedSelector)
local Utils = require(UI.Utils)
local LabeledFrame = require(UI.LabeledFrame)
loca... | nilq/small-lua-stack | null |
Scorpio "AshToAsh.BlizzardSkin.Template.AuraContainer" ""
__Sealed__()
interface "AuraFilter"(function()
property "MaxPriority" {
type = Number,
default = 1
}
property "Data" {
type = RawTa... | nilq/small-lua-stack | null |
pg = pg or {}
pg.enemy_data_statistics_55 = {
[10001] = {
cannon = 48,
reload = 150,
speed_growth = 0,
cannon_growth = 350,
pilot_ai_template_id = 20005,
air = 0,
rarity = 1,
dodge = 0,
torpedo = 85,
durability_growth = 8820,
antiaircraft = 80,
reload_growth = 0,
dodge_growth = 0,
hit_growt... | nilq/small-lua-stack | null |
local ADDON_NAME, namespace = ...
local L = namespace.L
local addonName = "AdiBags"
local AdiBagsMixin = {}
function AdiBagsMixin:GetName()
return addonName
end
function AdiBagsMixin:Init()
local AdiBags = LibStub('AceAddon-3.0'):GetAddon('AdiBags')
self.mod = AdiBags:NewModule("CaerdonWardrobeAdiBagsUpdate", ... | nilq/small-lua-stack | null |
require("lib/class")
require("servers/udp_session")
local lkcp = require("lkcp")
local lutl = require("lutl")
local luv = require("luv")
UdpClient = class()
function UdpClient:ctor()
end
function UdpClient:Update()
local current = lutl.getsystime()
self._session:Update(current)
end
function UdpClient:UdpRec... | nilq/small-lua-stack | null |
return PlaceObj("ModDef", {
"title", "Deep Resources Never Run Out",
"version", 5,
"version_major", 0,
"version_minor", 5,
"id", "ChoGGi_DeepResourcesNeverRunOut",
"author", "ChoGGi",
"steam_id", "1775640697",
--~ "pops_desktop_uuid", "0a776f42-0e6b-4521-a5a3-9ceeb7c176af",
"pops_any_uuid", "a468ea08-8d6f-4e23... | nilq/small-lua-stack | null |
-- register aliases for retro compat
minetest.register_alias("ks_terrain:wetsoil", "ks_terrain:silt_soil")
minetest.register_alias("ks_terrain:drysoil", "ks_terrain:coarse_soil")
minetest.register_alias("ks_terrain:wetsoil_with_grass", "ks_terrain:silt_soil_with_grass")
minetest.register_alias("ks_terrain:drysoil_with_... | nilq/small-lua-stack | null |
function mixDrugs(drug1, drug2, drug1name, drug2name)
-- 30 = Cannabis Sativa
-- 31 = Cocaine Alkaloid
-- 32 = Lysergic Acid
-- 33 = Unprocessed PCP
-- 34 = Cocaine
-- 35 = Drug 2
-- 36 = Drug 3
-- 37 = Drug 4
-- 38 = Marijuana
-- 39 = Drug 6
-- 40 = Drug 7
-- 41 = LSD
-- 42 = Drug 9
-- 43 = Angel Dust
... | nilq/small-lua-stack | null |
AddCSLuaFile()
local DbgPrint = GetLogging("MapScript")
local MAPSCRIPT = {}
MAPSCRIPT.PlayersLocked = false
MAPSCRIPT.DefaultLoadout =
{
Weapons =
{
"weapon_lambda_medkit",
"weapon_crowbar",
"weapon_pistol",
"weapon_smg1",
"weapon_357",
"weapon_physcannon",
... | nilq/small-lua-stack | null |
-- do some test iterations
local userIndexKey = KEYS[2];
local cardinality = ARGV[1];
| nilq/small-lua-stack | null |
local gbc = cc.import("#gbc")
local TestAction = cc.class("TestAction", gbc.ActionBase)
local sensitive = cc.import("#sensitive")
local sensitive_library = sensitive.library
function TestAction:checkAction(args)
if args.name then
return sensitive_library:replace(args.name)
end
end
return TestAction
| nilq/small-lua-stack | null |
---------------------------------------------
-- Horrid Roar (Tiamat, Jormungand, Vrtra, Ouryu)
-- Dispels all buffs including food. Lowers Enmity.
---------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/globals/settings")
require("scripts/globals/status")
require("scrip... | nilq/small-lua-stack | null |
-- https://github.com/glepnir/dashboard-nvim/
local h = require('helpful')
-- headers {{{
local headers = {
ayaya = {
'⡿⠋⠄⣀⣀⣤⣴⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⣌⠻⣿⣿',
'⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⠹⣿',
'⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⠹',
'⣿⣿⡟⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡛⢿⣿⣿⣿⣮⠛⣿⣿⣿⣿⣿⣿⡆',
'⡟⢻⡇⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣣⠄⡀⢬⣭⣻⣷⡌⢿⣿⣿⣿⣿⣿',
'⠃⣸⡀⠈... | nilq/small-lua-stack | null |
--[[
© 2021 Tony Ferguson, do not share, re-distribute or modify
without permission of its author ( devultj@gmail.com - Tony Ferguson, http://www.tferguson.co.uk/ )
]]
dHeists.LOOT_MULTIPLIER = 2
dHeists.LOOT_CASH_ROLL_SMALL = dHeists.loot:registerLoot( "loot_cash_roll_small", {
model = "models/mark2580/gtav/m... | nilq/small-lua-stack | null |
local json = {}
local cjson = require("cjson")
function json.encode(var)
local status, result = pcall(cjson.encode, var)
if status then return result end
if DEBUG > 1 then
echoError("json.encode() - encoding failed: %s", tostring(result))
end
end
function json.decode(text)
local status, r... | nilq/small-lua-stack | null |
local module = {}
function module.init(Modules)
local Tween = Modules["Menu"]["tween"]
local function display(Target,String,Color,Time,Audio,Texture)
local Gui = Target:FindFirstChild("CurrencyGui")
if Gui == nil then
Gui = script.Parent.CurrencyGui:Clone()
Gui.Parent = Target
Gui.Adornee = Targ... | nilq/small-lua-stack | null |
return {
id = "insert",
name = "Element Insertion",
repeats = 1e4,
nocollect = true,
variables = {
count = { min = 100, max = 1000, name = "Elements inserted" },
},
cases = {
ArrayTable = [[
local array = {}
for i = (-count), -1 do
array[#array+1] = i
end
]],
LinkedList = [[
local list
for i... | nilq/small-lua-stack | null |
local _M = {
_VERSION = "1.0.0",
_MODULE_TYPE = "http"
}
local CONFIG = ngx.shared.config
function _M.config()
CONFIG:set("amqp.async_queue_size", 2000)
CONFIG:set("amqp.pool_size", 10)
CONFIG:set("amqp.timeout", 60)
CONFIG:set("amqp.retry", 1)
CONFIG:set("amqp.host", "unix:logs/amqp-proxy.sock")
--CONF... | nilq/small-lua-stack | null |
function run()
Log("Logged from autotest script")
end
| nilq/small-lua-stack | null |
local Addon = select(2, ...)
local Button = Addon:CreateClass('Button')
function Button:New(options)
local button = self:Bind(CreateFrame('Button', nil, options.parent, 'UIPanelButtonTemplate'))
if options.name then
button:SetText(options.name)
end
if options.width then
button:SetWidth(options.width)
end
... | nilq/small-lua-stack | null |
local GAME = "lovers/story.lua"
if love then
isLove = true
isCLI = false
elseif not love then
print("WARNING! Not running in Love2D")
love = {}
isCLI = true
isLove = false
end
require("script_lua/script")
local serpent = require("script_lua/serpent")
function string.occures(str, patt)
return select(2, str:gsu... | nilq/small-lua-stack | null |
---@class LinkedList : java.util.LinkedList
---@field size int
---@field first LinkedList.Node|Unknown
---@field last LinkedList.Node|Unknown
---@field private serialVersionUID long
LinkedList = {}
---@public
---@param arg0 Object
---@return boolean
function LinkedList:offerLast(arg0) end
---@public
---@return Object... | nilq/small-lua-stack | null |
----------------------------------<
-- Bluebird GUI
-- elements/dxRectangle.lua
----------------------------------<
-- Element variables
--[[------------------------------<
dxElement -> dxRectangle
-------------------
[Includes Basic Indicators]
x : X position
y : Y position
sx : SX position
sy : SY position
color : T... | nilq/small-lua-stack | null |
-- https://github.com/petertriho/nvim-scrollbar
local colors = {
color = "#292E42",
Search = "#FC867",
Error = "#FD6883",
Warn = "#FFD886",
Info = "A9DC76",
Hint = "#78DCE8",
Misc = "#AB9DF2"
}
require("scrollbar").setup(
{
handle = {
-- 滚动条颜色
color = co... | nilq/small-lua-stack | null |
GM.UMsgRedun = {};
function PLAYER:SetUMsgString ( StringID, StringValue )
self.StringRedun = self.StringRedun or {};
if StringValue == nil then
self.StringRedun[StringID] = nil;
umsg.Start("perp_ums");
umsg.Entity(self);
umsg.String(StringID);
umsg.Short(5);
umsg.End();
return;
end
self.... | nilq/small-lua-stack | null |
local config = require('config');
local party = require('party');
local actions = require('actions');
local packets = require('packets');
local buffs = require('behaviors.buffs')
local healing = require('behaviors.healing');
local nukes = require('behaviors.nukes');
local spell_levels = {};
spell_levels[packets.spells... | 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.