content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
function myomni(findstart, base)
vim.fn.complete(3, {'aa', 'rooo', 'bee'})
return -2
end
vim.bo.omnifunc='v:lua.myomni'
| nilq/small-lua-stack | null |
local test = require('test')
local Matrix3x2 = Matrix3x2
local Vector2 = Vector2
test.suite('Matrix3x2 Library')
test.test('creation', function()
local m = Matrix3x2.new()
test.assert_equal(#m, 6)
test.expect_equal(m:get(1, 1), 1)
test.expect_equal(m:get(1, 2), 0)
test.expect_equal(m:get(2, 1), 0)... | nilq/small-lua-stack | null |
--[[
Desc: Priority queue, implement by max heap.
Author: SerDing
Since: 2021-04-04
Alter: 2021-04-04
]]
local _List = require("core.list")
---@class Core.PriorityQueue
---@alias T System.Navigation.Node | int | Entity
---@field protected _heapTable table<int, T>
---@field protected _compare fun(v1:T, v2:T):boolea... | nilq/small-lua-stack | null |
-----------------------------------------
-- ID: 4295
-- Item: plate_of_royal_sautee
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Strength 5
-- Agility 1
-- Intelligence -2
-- Attack +22% (cap 80)
-- Ranged Attack +22% (cap 80)
-- Stun Resist +4
-- HP recovered while healing +1
-------... | nilq/small-lua-stack | null |
local x = 5
local y = 29
print(4 >> -x)
print(4 >> '-2')
print(y // x)
print(~x)
print(3.0, 0.5, 392.2)
print(~y & x)
| nilq/small-lua-stack | null |
local cjson = require("cjson")
local _M = {}
-- https://www.nginx.com/resources/wiki/extending/api/http/
function _M.make_error (err_type)
if err_type == '40x' then
ngx.status = ngx.HTTP_BAD_REQUEST
else
ngx.status = ngx.HTTP_INTERNAL_SERVER_ERROR
end
ngx.header.content_type = "applica... | nilq/small-lua-stack | null |
-------------------------------------------------------------------
--// PROJECT: Union of Clarity and Diversity
--// RESOURCE: UCDhousing
--// DEVELOPER(S): Lewis Watson (Noki)
--// DATE: 09/12/2015
--// PURPOSE: To centralize, cache and manage housing data.
--// FILE: \housingData_s.lua [server]
---------------------... | nilq/small-lua-stack | null |
local kpse = require('kpse') kpse.set_program_name('luatex') local lfs = require("lfs") local cacheDir = "./_markdown_main" if lfs.isdir(cacheDir) == true then else assert(lfs.mkdir(cacheDir)) end local md = require("markdown") local convert = md.new({cacheDir = "./_markdown_main", citations = true, definitionLists = t... | nilq/small-lua-stack | null |
local t = Def.ActorFrame{};
t[#t+1] = LoadActor("normal");
return t;
| nilq/small-lua-stack | null |
slot1 = class("MacroCommand", import("..observer.Notifier"))
slot1.Ctor = function (slot0)
slot0.super.Ctor(slot0)
slot0.subCommands = {}
slot0:initializeMacroCommand()
end
slot1.initializeMacroCommand = function (slot0)
return
end
slot1.addSubCommand = function (slot0, slot1)
table.insert(slot0.subCommands, ... | nilq/small-lua-stack | null |
---@module SceneTime
---@copyright Lilith Games, Avatar Team
---@author Yen Yuan
---? How To Use
---? 客户端: SycnTimeCEventHandler(number clock)
---? 服务端: SycnTimeSEventHandler(number clock)
---? 其他的读表即可
local SceneTime, this = ModuleUtil.New('SceneTime', ServerBase)
local ModeEnum = {
Instant = 'Instant', -- 每个小时更改一... | nilq/small-lua-stack | null |
--------------------------------
-- @module Button
-- @extend Widget
-- @parent_module ccui
--------------------------------
-- @function [parent=#Button] getTitleText
-- @param self
-- @return string#string ret (return value: string)
--------------------------------
-- @function [parent=#Button] setTitleFo... | nilq/small-lua-stack | null |
local urllib = require "socket.url"
local http = require "socket.http"
local ltn12 = require "ltn12"
local json = require "cjson"
require "hmac.sha2"
local function bintohex(s)
return (s:gsub('(.)', function(c)
return string.format('%02x', string.byte(c))
end))
end
if not http then
print "Require... | nilq/small-lua-stack | null |
local yaml = require 'yaml'
local fio = require 'fio'
local M = {
base_locale = 'en',
current_locale = nil
}
-- List of loaded locales
local locales = {}
local available_locales = {}
function script_path()
local str = debug.getinfo(2, "S").source:sub(2)
return str:match("(.*/)")
end
function read_f... | nilq/small-lua-stack | null |
local inputFile = io.open('2Dive.txt')
local input = {};
function inputFormat(inputFile)
local count = 1;
for line in inputFile:lines() do
table.insert(input, {})
table.insert(input[count], string.match(line,'[a-z]*'))
table.insert(input[count], string.match(line,'[0-9]+'))
count = count +1
end
end
functio... | nilq/small-lua-stack | null |
-- Copyright (C) 2018 The Dota IMBA Development Team
--
-- 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 ... | nilq/small-lua-stack | null |
return {
{
desc = "每次执行空袭后为先锋部队增加一个护盾,抵消释放者自身耐久5.0%的伤害,持续8秒",
addition = {
"5.0%(+0.5%)"
}
},
{
desc = "每次执行空袭后为先锋部队增加一个护盾,抵消释放者自身耐久5.5%的伤害,持续8秒",
addition = {
"5.5%(+0.5%)"
}
},
{
desc = "每次执行空袭后为先锋部队增加一个护盾,抵消释放者自身耐久6.0%的伤害,持续8秒",
addition = {
"6.0%(+0.5%)"
}
},
{
desc = "每次执行空袭后为先锋... | nilq/small-lua-stack | null |
--
-- (C) 2013 Kriss@XIXs.com
--
local table=table
local ipairs=ipairs
local string=string
local math=math
local os=os
local print=print
-----------------------------------------------------------------------------
--
--
--
-----------------------------------------------------------------------------
--module
loc... | nilq/small-lua-stack | null |
local ffi = require 'ffi'
local ParseBack = require 'parseback'
----------------- utils -------------
local show do
local function q(s)
return type(s)=='string' and ('%q'):format(s) or s
end
local function qk(s)
if type(s) == 'string' and s:match('^[_%a][_%w]*$') then
return s
end
return ('[%s]'):format... | nilq/small-lua-stack | null |
-- Dialogue for NPC "Vincent"
loadDialogue = function(DL)
if (DL:hasItem("pe_feudalfire",1) and not DL:isConditionFulfilled("npc_vincent","talked")) then
DL:createNPCNode(0, 1, "DL_Vincent_Stop") -- Hey you, psst! You just got some Feudal Fire, I see? Are you planning to take that to the Elder Rhendal?
DL:add... | nilq/small-lua-stack | null |
------------------------------------------------------------------
--
-- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Copyright (C) 2015-2016 Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Licensed according to the included 'LICENSE' document
--
-- This file is part of lua-lluv-websocket library... | nilq/small-lua-stack | null |
local _ = function(k, ...) return ImportPackage("i18n").t(GetPackageName(), k, ...) end
local MAX_MEDIC = 20
local ALLOW_RESPAWN_VEHICLE = true
local TIMER_RESPAWN_WAITER = 1800 -- 30 minutes
local REVIVE_PERCENT_SUCCESS = 33 -- in percent
local TIME_TO_REVIVE = 15 -- in seconds
local AUTO_CALL_FOR_MEDIC = false
local... | nilq/small-lua-stack | null |
local depot = clone("train-stop", "item", "train-stop-depot")
depot.icon = "__SamTrain__/graphics/icons/train-stop-depot.png"
depot.order = "a[train-system]-c[train-stop]-d[train-stop-depot]"
local supplier = clone("train-stop", "item", "train-stop-supplier")
supplier.icon = "__SamTrain__/graphics/icons/train-stop-sup... | nilq/small-lua-stack | null |
ESX = nil
ESX_Factions = nil
local PlayerData = {}
local curGang = nil
local curRank = nil
local menu_open = false
local inside_menu = false
local vehicle_spawn_timer = 0
local IsDead = false
local lastvalid = nil
local zones = Config.Zones
local inside_zone = false
local last_zone = nil
local isPolic... | nilq/small-lua-stack | null |
--[[
Copyright 2017 YANG Huan (sy.yanghuan@gmail.com).
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 or agreed to i... | nilq/small-lua-stack | null |
vim.g.UltiSnipsExpandTrigger = "<TAB>"
vim.g.UltiSnipsJumpForwardTrigger = "<TAB>"
vim.g.UltiSnipsJumpBackwardTrigger = "<S-TAB>"
| nilq/small-lua-stack | null |
utils = require 'utils'
function search(list, list_name, id, verbose)
local function p(msg, color)
dfhack.color(color)
dfhack.print(('[%s]: %s\n'):format(list_name, msg))
dfhack.color()
end
local found = false
for i, unit in pairs(list) do
if verbose then
p('... | nilq/small-lua-stack | null |
---@meta
---@class cc.EaseBezierAction :cc.ActionEase
local EaseBezierAction={ }
cc.EaseBezierAction=EaseBezierAction
---* brief Set the bezier parameters.
---@param p0 float
---@param p1 float
---@param p2 float
---@param p3 float
---@return self
function EaseBezierAction:setBezierParamer (p0,p1,p2,p3) end
---* b... | nilq/small-lua-stack | null |
local NPC = {};
NPC.Name = "Paint Shop";
NPC.ID = 6;
NPC.Model = Model("models/players/perp2/m_1_02.mdl");
NPC.Invisible = false; // Used for ATM Machines, Casino Tables, etc.
NPC.Location = Vector(4219.197266, -4733.370605, 128.031250 - 63);
NPC.Angles = Angle(0, 90, 0);
NPC.ShowChatBubble = "Normal";
NPC.Seque... | nilq/small-lua-stack | null |
local skynet = require 'skynet'
local snax = require 'skynet.snax'
local ioe = require 'ioe'
return {
post = function(self)
if lwf.auth.user == 'Guest' then
ngx.print(_('You are not logined!'))
return
end
local using_beta = ioe.beta()
if not using_beta then
ngx.print(_('FreeIOE device in not in beta... | nilq/small-lua-stack | null |
-- Author: Shush
-- Date: 17/01/2017
CreateEmptyTalents("lycan")
---------------------------------------------------
---------------------------------------------------
---------------------------------------------------
-- Lycan's Summon Wolves
---------------------------------------------------
---------------... | nilq/small-lua-stack | null |
utils = {}
--from typing import List
--from mahjong.constants import CHUN, EAST, FIVE_RED_MAN, FIVE_RED_PIN, FIVE_RED_SOU, TERMINAL_INDICES
local constants = require(script.Parent.constants)
CHUN = constants.CHUN
EAST = constants.EAST
FIVE_RED_MAN = constants.FIVE_RED_MAN
FIVE_RED_PIN = constants.FIVE_RED_PIN
FIVE_RE... | nilq/small-lua-stack | null |
local check = {}
function check.runCheck()
hs.application.enableSpotlightForNameSearches(true)
if hs.application.find("Little Snitch") then
return true
else
return false, "‼️ Little Snitch is not running"
end
end
return check | nilq/small-lua-stack | null |
-- Copyright 2018 Florian Eckert <fe@dev.tdt.de>
-- Licensed to the public under the Apache License 2.0.
local netmod = luci.model.network
local interface = luci.model.network.interface
local proto = netmod:register_protocol("3g")
function proto.get_i18n(self)
return luci.i18n.translate("UMTS/GPRS/EV-DO")
end
func... | nilq/small-lua-stack | null |
local GuiService = game:GetService("GuiService")
local AppStorageService = game:GetService("AppStorageService")
local RbxAnalyticsService = game:GetService("RbxAnalyticsService")
local CorePackages = game:GetService("CorePackages")
local InGameMenuDependencies = require(CorePackages.InGameMenuDependencies)
local Roact... | nilq/small-lua-stack | null |
-- Creator:
-- AltiV - February 28th, 2019
LinkLuaModifier("modifier_item_imba_witchblade_slow", "components/items/item_witchblade.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_imba_witchblade_root", "components/items/item_witchblade.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_imba... | nilq/small-lua-stack | null |
--------------------------------
-- @module CardinalSplineBy
-- @extend CardinalSplineTo
--------------------------------
-- @function [parent=#CardinalSplineBy] startWithTarget
-- @param self
-- @param #cc.Node node
--------------------------------
-- @function [parent=#CardinalSplineBy] clone
-- @param s... | nilq/small-lua-stack | null |
local Plugin = Shine.Plugin( ... )
Plugin.Version = "1.0"
Plugin.HasConfig = true
Plugin.ConfigName = "Mapstats.json"
Plugin.DefaultConfig = {
Ignore = {}
}
Plugin.CheckConfig = true
function Plugin:Initialise()
self.Enabled = true
local mapname = Shared.GetMapName()
if self.Config.Ignore[mapname] then
return... | nilq/small-lua-stack | null |
local M = {}
M._VERSION = "1.0"
local mt = { __index = M }
function M.new(self,config)
local ins = self or {}
ins.config = config
setmetatable(ins,mt)
return ins
end
function M:set(key,value,timeout)
end
function M:get(key)
end
return M
| nilq/small-lua-stack | null |
local PersistentString = wickerrequire "gadgets.persistentstring"
require "dumper"
local Pred = wickerrequire "lib.predicates"
local assert = assert
---
local DATA_KEY = {}
---
local PersistentData = Class(PersistentString, function(self, suffix, default_value)
PersistentString._ctor(self, suffix)
self.loadenv... | nilq/small-lua-stack | null |
-- service node
minetest.register_craft({
output = "core:service_node",
recipe = {{"core:service_node", "core:file_node"}}
})
minetest.register_craft({output = "core:ns_node", recipe = {{"core:ns_node", "core:dir_node"}}})
minetest.register_craft({output = "core:ns_node", recipe = {{"core:ns_node", "core:file... | nilq/small-lua-stack | null |
local class = require "utils.class"
local M = class()
function M:_init_()
self.data = {}
self.token = false;
self._last_token = false;
end
function M:Start()
end
function M:OnDestroy()
end
function M:Serialize()
return {self.token};
end
function M:DeSerialize(data)
self.token = data[1];
end
... | nilq/small-lua-stack | null |
local M = {}
function M.call_or(f, default)
return (f and f()) or (default or false)
end
function M.trim_wrap(string, left, right)
local wrapped = table.concat({ left or "[", "%1", right or "]" })
return string:gsub("^%s*(..-)%s*$", wrapped)
end
function M.extend(source, destination)
for _, v in ipai... | nilq/small-lua-stack | null |
--[[
Copyright (C) Udorn (Blackhand)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the... | nilq/small-lua-stack | null |
--[[
This example is a waypoint editor with a PIE ("play in editor") mode. This tool allows the user to
author a graph of waypoints and the connections between them. The user can save their work and
reload it to continue editing in another session. The PIE mode creates a single agent that will
use the waypoint graph to... | nilq/small-lua-stack | null |
-- KEYS[1]: this consumer's inflight set
-- KEYS[2]: the job data hash
-- ARGV[1]: the job ID
-- Returns: nil
-- Remove the job from this consumer's inflight set
local removed = redis.call("srem", KEYS[1], ARGV[1])
if removed == 1 then
-- Delete the job data from the job hash
redis.call("hdel", KEYS[2], ARGV[1]... | nilq/small-lua-stack | null |
--電脳堺麟-麟々
--
--Script by JustFish
function c101102013.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(101102013,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOGRAVE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HA... | nilq/small-lua-stack | null |
--- 武器管理模块:
-- @module WeaponMgr
-- @copyright Lilith Games, Avatar Team
-- @author Dead Ratman
---@module WeaponMgr
local WeaponMgr, this = ModuleUtil.New("WeaponMgr", ClientBase)
function WeaponMgr:Init()
print("WeaponMgr:Init")
this:NodeRef()
this:DataInit()
this:EventBind()
end
--节点引用
function ... | nilq/small-lua-stack | null |
local fastOctTest = {
["0"] = 0,
["1"] = 1,
["2"] = 2,
["3"] = 3,
["4"] = 4,
["5"] = 5,
["6"] = 6,
["7"] = 7
}
local fastDecTest = {
["0"] = 0,
["1"] = 1,
["2"] = 2,
["3"] = 3,
["4"] = 4,
["5"] = 5,
["6"] = 6,
["7"] = 7,
["8"] = 8,
["9"] = 9
}
lo... | 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 Clockwork = Clockwork;
local isnumber = isnumber;
local isvector = isvector... | nilq/small-lua-stack | null |
print("Slave application running...")
variable_registry = {}
web_srv = net.createServer(net.TCP, 30)
web_srv:listen(80, function(conn)
local response = {}
-- if false - response sends automatically
delayed_response = false
api_tables = {
variableregistry = variable_registry,
dev... | nilq/small-lua-stack | null |
require 'paths'
require 'nn'
require 'cunn'
require 'image'
-- META
VALID_SIZE = 50
DIM = 30
CLASSES = 10
-- data loading
all = torch.load('modares.bin')
COUNT = all.data:size()[1]
print('Total data', COUNT)
trainset = {}
trainset.data = all.data[{{1, COUNT-VALID_SIZE}}]
trainset.label = all.label[{{1, COUNT - VALI... | nilq/small-lua-stack | null |
--[[------------------------------------------------------
lk.StemCell
-----------
This is a very simple service whose sole purpose is to
announce a machine and enable remote morph to start new
processes.
--]]------------------------------------------------------
local lib = {type='lk.StemCell'}
lib.__inde... | nilq/small-lua-stack | null |
local background
local core = require("one.core")
background = {
load = function(self)
self.image = love.graphics.newImage("asset/images/background1.png")
self:scale()
end,
scale = function(self)
core.scale = core.screen_h / self.image:getHeight()
end,
draw = function(self, position)
position = position... | nilq/small-lua-stack | null |
local document = require "/document"
-- load a file from the current folder as a string,
-- parse it as a new DOM document, and embed it
local loaded_text = io.load("hello_html_doc")
local loaded_document = document.parseFromString(loaded_text)
document.body.innerHTML = loaded_document.body.innerHTML
... | nilq/small-lua-stack | null |
--- test module for demonstrating app.require_here()
local args = {}
function args.answer ()
return 42
end
return args
| nilq/small-lua-stack | null |
AddEventHandler("caue-evidence:analyze", function(pParameters, pEntity, pContext)
if pParameters.actionId == 1 then
TriggerEvent("inventory-open-container", "analyze_evidence", 1, 1)
elseif pParameters.actionId == 2 then
TriggerEvent("dpemotes:e", {"parkingmeter"})
local finished = expor... | nilq/small-lua-stack | null |
local infer = require 'vm.infer'
local guide = require 'parser.guide'
local vm = require 'vm.vm'
---@param source parser.object
---@return integer
local function countReturns(source)
local n = 0
local docs = source.bindDocs
if docs then
for _, doc in ipairs(docs) do
if doc.... | nilq/small-lua-stack | null |
local dbcsig = require('luadbd.sig')
local fetchHttp = require('ssl.https').request
local getCached = require('luadbd.cache').get
local inspect = require('inspect')
local dbdMT = {
__index = {
build = require('luadbd.build'),
rows = require('luadbd.dbcwrap').dbd, -- TODO remove this
},
}
local buildMT = ... | nilq/small-lua-stack | null |
local blips = {
{title="Cannibis Corporation", colour=2, id=140, x=1207.36, y=-3122.62, z=5.10}
}
Citizen.CreateThread(function()
for _, info in pairs(blips) do
info.blip = AddBlipForCoord(info.x, info.y, info.z)
SetBlipSprite(info.blip, info.id)
SetBlipDisplay(info.blip, 4)
SetBlipSc... | nilq/small-lua-stack | null |
-- Goals
-- Colors!
-- Set Square / toroid
-- Set Brush Size
-- Stroke Interpolation
-- Presets / Load / Save
function love.load()
math.randomseed(os.time()) -- LOAD LOAD LOAD
debug = true -- this time I am logging ev... | nilq/small-lua-stack | null |
local L = LibStub("AceLocale-3.0"):NewLocale("CopyAnything", "esES") or LibStub("AceLocale-3.0"):NewLocale("CopyAnything", "esMX")
if not L then return end
--@localization(locale="esES", handle-unlocalized="comment")@
| nilq/small-lua-stack | null |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('BseUserRoleList_pb', package.seeall)
local BSEUSERROLELIST = protobuf.Descriptor();
local BSEUSERROLELIST_SERVERID_FIELD = protobuf.FieldDescriptor();
local BSEUSERROLELIST_USERID_FIELD = protobuf.FieldDescriptor();
local BSEUSERRO... | nilq/small-lua-stack | null |
object_tangible_loot_creature_loot_collections_shattered_shard_unknown_09 = object_tangible_loot_creature_loot_collections_shared_shattered_shard_unknown_09:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_shattered_shard_unknown_09, "object/tangible/loot/creature/loot/collections/sh... | nilq/small-lua-stack | null |
local Observable = require("envel.stream.observable")
local Subscription = require("envel.stream.subscription").Subscription
local SubjectSubscriber = require("envel.stream.subject_subscriber")
local AnonymousSubject = {}
local Subject = {}
Subject.__index = Subject
Subject.__tostring = function() return "Subject" end... | nilq/small-lua-stack | null |
nssm:register_mob("nssm:felucco", "Felucco", {
type = "monster",
hp_max = 36,
hp_min = 27,
collisionbox = {-0.5, 0, -0.5, 0.5, 1.2, 0.5},
visual = "mesh",
mesh = "felucco.x",
textures = {{"felucco.png"}},
visual_size = {x=7, y=7},
makes_footstep_sound = true,
view_range = 30,
... | nilq/small-lua-stack | null |
function onCreate()
-- background shit
makeLuaSprite('cum', 'cum', -300, -290);
setLuaSpriteScrollFactor('cum', 0.9, 0.9);
addLuaSprite('cum', false);
close(true); --For performance reasons, close this script once the stage is fully loaded, as this script won't be used anymore after loading the stage
... | nilq/small-lua-stack | null |
--- Tweak fui with stdlib
--- rewrite fgui's event hook
local gui = require("__flib__.gui-beta")
local Event = require('__stdlib__/stdlib/event/event')
local gui_event_defines = {}
for name, id in pairs(defines.events) do
if string.find(name, "^on_gui") then
gui_event_defines[name] = id
--event_id... | nilq/small-lua-stack | null |
-- Copyright 2020 amirchev
-- 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 or agreed to in writing, soft... | nilq/small-lua-stack | null |
COMMAND.name = 'Fall'
COMMAND.description = 'command.fall.description'
COMMAND.syntax = 'command.fall.syntax'
COMMAND.category = 'permission.categories.roleplay'
COMMAND.aliases = { 'fallover', 'charfallover' }
COMMAND.no_console = true
function COMMAND:on_run(player, delay)
delay = math.clamp(tonumber(delay) or 0, ... | nilq/small-lua-stack | null |
-- Microsoft Visual Studio 2010 Solution/Project file generation
module(..., package.seeall)
local msvc_common = require "tundra.ide.msvc-common"
msvc_common.setup("11.00", "2010")
| nilq/small-lua-stack | null |
pg = pg or {}
pg.enemy_data_statistics_11 = {
[262] = {
cannon = 0,
name = "隼鹰",
type = 7,
speed_growth = 0,
battle_unit_type = 60,
air = 0,
air_growth = 0,
durability = 99999,
friendly_cld = 0,
armor = 0,
id = 262,
bubble_fx = "",
dodge_growth = 0,
icon = "sunying",
star = 0,
torpedo =... | nilq/small-lua-stack | null |
function widget:GetInfo()
return {
name = "Take Reminder II",
desc = "Improved Take Reminder",
author = "Niobium",
date = "April 2011",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true -- loaded by default?
}
end
local checkEvery = 1.0
local buttonW... | nilq/small-lua-stack | null |
local Font = Object:extend()
Font.sizes = {}
function Font:new(size, offset, clock)
if not Font.shader then
Font.shader = love.graphics.newShader([[
extern float seed;
extern float offset;
vec4 position(mat4 matrix, vec4 vertex) {
float random = fract(sin(dot(vertex.xy, vec2(12.3, 45.6)) + seed) * 789... | nilq/small-lua-stack | null |
-------------------------------------------------------------------------------
-- Mob Framework Mod by Sapier
--
-- You may copy, use, modify or do nearly anything except removing this
-- copyright notice.
-- And of course you are NOT allow to pretend you have written it.
--
--! @file main_flee.lua
--! @brief componen... | nilq/small-lua-stack | null |
function fileExists(fileName)
local f=io.open(fileName);
if f==nil then
return false;
else
io.close(f);
return true;
end
end
function alert(title, msg)
print(title .. ": " .. msg);
end
function print2Console(msg)
print(msg);
end
function getDefaultScriptPath()
return ".";
end
| nilq/small-lua-stack | null |
--------------------------------
-- @module CCSafeNotificationCenter
-- @parent_module
--------------------------------
--
-- @function [parent=#CCSafeNotificationCenter] removeObserver
-- @param self
-- @param #cc.Ref target
-- @param #char name
-- @return CCSafeNotificationCenter#CCSafeNotificationCenter self (r... | nilq/small-lua-stack | null |
ESX = nil
local cachedData = {}
TriggerEvent("esx:getSharedObject", function(library)
ESX = library
end)
ESX.RegisterServerCallback("garage:fetchPlayerVehicles", function(source, callback, garage)
local player = ESX.GetPlayerFromId(source)
if player then
local sqlQuery = [[SELECT plate, vehicle FROM owned_ve... | nilq/small-lua-stack | null |
slot0 = class("GuildShipEquipmentsPage", import("....base.BaseSubView"))
slot0.getUIName = function (slot0)
return "GuildShipEquipmentsPage"
end
slot0.OnLoaded = function (slot0)
slot0.shipNameTxt = slot0:findTF("frame/ship_info/shipname"):GetComponent(typeof(Text))
slot0.userNameTxt = slot0:findTF("frame/ship_inf... | nilq/small-lua-stack | null |
-- Manifest Version
resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
-- UI
ui_page "ui/index.html"
files {
"ui/index.html",
"ui/assets/test.png",
"ui/assets/hunger.svg",
"ui/assets/thirst.svg",
"ui/assets/inventory.svg",
"ui/assets/battery.svg",
"ui/assets/reseau.svg",
"ui/assets/p... | nilq/small-lua-stack | null |
--[[
==README==
Gradient along clip edge
Expands a vector clip shape in order to create a freeform color gradient. You can use this to
create diagonal gradients, zigzag gradients, or gradients in the shape of a curve.
Use the vector clip tool to draw the shape of the gradient you want. If you only want one of
the ed... | nilq/small-lua-stack | null |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('BseRoleInfo_pb', package.seeall)
local BSEROLEINFO = protobuf.Descriptor();
local BSEROLEINFO_ROLENAME_FIELD = protobuf.FieldDescriptor();
local BSEROLEINFO_GENDER_FIELD = protobuf.FieldDescriptor();
local BSEROLEINFO_ROLELEVEL_FIE... | nilq/small-lua-stack | null |
-- Created by Elfansoer
--[[
Ability checklist (erase if done/checked):
- Scepter Upgrade
- Break behavior
- Linken/Reflect behavior
- Spell Immune/Invulnerable/Invisible behavior
- Illusion behavior
- Stolen behavior
]]
--------------------------------------------------------------------------------
storm_spirit_ball_... | nilq/small-lua-stack | null |
-- _.rearg.lua
--
-- Creates a function that invokes func with arguments arranged according
-- to the specified indexes where the argument value at the first index
-- is provided as the first argument, the argument value at the second
-- index is provided as the second argument, and so on.
-- @usage local rearged = ... | nilq/small-lua-stack | null |
ShzMaryMidItemCcsView = class("ShzMaryMidItemCcsView")
ShzMaryMidItemCcsView.onCreationComplete = function (slot0)
slot0.Spr_front:setVisible(false)
slot0.Spine:setVisible(false)
slot0.Spr_liang:setPosition(125, 80)
slot0.Spr_liang:stopAllActions()
createSetterGetter(slot0, "iconIndex", nil, nil, nil, nil, nil, h... | nilq/small-lua-stack | null |
local Root = script:GetCustomProperty("Root"):WaitForObject()
local PopupText = script:GetCustomProperty("PopupText")
local Panel
function openPanel()
Panel = World.SpawnAsset(PopupText,{parent = Root})
end
function ClosePanel()
if Object.IsValid(Panel) then
Panel:Destroy()
end
Panel = nil
e... | nilq/small-lua-stack | null |
------------------------------------------------------------
-- Localization.lua
--
-- Abin
-- 2010/10/24
------------------------------------------------------------
CompactRaid:RegisterLocale("Artwork", "enUS", {
["title"] = "Frame Artwork",
["desc"] = "Decorate your CompactRaid frames with customized art elements... | nilq/small-lua-stack | null |
object_tangible_loot_undead_decal_htchbrkn = object_tangible_loot_undead_shared_decal_htchbrkn:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_undead_decal_htchbrkn, "object/tangible/loot/undead/decal_htchbrkn.iff")
| nilq/small-lua-stack | null |
-- local DISCORD_WEBHOOK6 = "https://discord.com/api/webhooks/804496268751536199/L8ST1Cf5zkDTBL28Kgz8eVazjAnazhN0dJRn7z2Q0mHzNR27QJbjvzjkeAEa2BelGtVY"
-- local DISCORD_NAME6 = "Garbage Triggers"
-- local STEAM_KEY = "0C007CC382AB06D1D99D9B45EC3924B1"
-- local DISCORD_IMAGE = "https://i.imgur.com/zviw6oW.png" -- defaul... | nilq/small-lua-stack | null |
local shieldingname = {
[1] = {ID=1,Desc="傻逼"},
}
return shieldingname
| nilq/small-lua-stack | null |
local p = 'evgkulslualibs.'
local parser = require(p..'template.parser')
local compiler = require(p..'template.compiler')
local runtime = require(p..'template.runtime')
local api = {}
api.mkEnv = function(e,g)
local e = e or {}
local g = g or _G
local meta = {
__index = g
}
e.templateBuffer = runtime... | nilq/small-lua-stack | null |
local Errors = require "kong.dao.errors"
return {
fields = {
http_endpoint = { required = true, type = "url" },
sample_ratio = { default = 0.001, type = "number" },
},
self_check = function(schema, plugin, dao, is_updating) -- luacheck: ignore 212
if plugin.sample_ratio and (plugin.sample_ratio < 0 or plugin.... | nilq/small-lua-stack | null |
local GLayer = require("graphic.core.GLayer")
local JoystickLayer = class("JoystickLayer",GLayer)
function JoystickLayer:ctor()
GLayer.ctor(self)
end
function JoystickLayer:init()
GLayer.init(self)
self:bindTouchHandler()
self._ui = {}
local go = self:loadUiPrefab("Sandbox/Prefabs/UI/j... | nilq/small-lua-stack | null |
-- 0x0EA7 - 0x0EA9: dropped cards after battle, can probably intercept writes to this address to automatically patch randomized loot.
local max_character_id = 27
local character_start_address = 0x0C1D
local character_struct_size = 16
local UNLOCKED_AND_FORM_BYTE = 0x00
local GAME_UNLOCK_BYTE = 0x0E
local RANDOMIZER_UN... | nilq/small-lua-stack | null |
--吞式者的伴兽
local m=14000323
local cm=_G["c"..m]
cm.named_with_Aotual=1
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(cm.tg)
e1:SetOperation(cm.op)
c:RegisterEffect... | nilq/small-lua-stack | null |
-------------Password--------- | nilq/small-lua-stack | null |
local constant = {
--缓存key设置
}
-- Millisecond
constant.ONE_MILLISECOND = 1
constant.ONE_SECOND = 1000 * constant.ONE_MILLISECOND
constant.ONE_MINUTE = 60 * constant.ONE_SECOND
constant.ONE_HOUR = 60 * constant.ONE_MINUTE
constant.ONE_DAY = 24 * constant.ONE_HOUR
constant.ONE_WEAK = 7 * constant.ONE_DAY
constant.ONE... | nilq/small-lua-stack | null |
local config = require "assets.config"
function config.init()
if config.guiScale == 0 then
local width, height = love.window.getMode()
config.guiScale = 0.5
if width <= 640 or height <= 360 then -- 360p
config.guiScale = 0.5
elseif width < 1280 or height < 720 then -- 720p
config.guiScale... | nilq/small-lua-stack | null |
AddCSLuaFile()
SWEP.PrintName = "M60"
SWEP.Category = "Call of Pripyat"
SWEP.Base = "weapon_cop_base"
SWEP.Slot = 3
SWEP.SlotPos = 2
SWEP.Spawnable = true
SWEP.AdminOnly = false
SWEP.ViewModel = "models/weapons/wick/stcopwep/m60_model.mdl"
SWEP.WorldModel = "models/weapons/wick/stcopwep/m60_model_world.... | nilq/small-lua-stack | null |
local Import = require"Toolbox.Import"
local Object = Import.Module.Relative"Object"
local Transform = Import.Module.Relative"Transform"
return Object(
"Nested.PEG.Completable", {
Construct = function(self, Pattern, Function)
self.Pattern = -Pattern
self.Function = Function
end;
Decompose = function(self... | 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.