content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
-----------------------------------
-- Area: South San d'Oria
-- NPC: Alivatand
-- Type: Guildworker's Union Representative
-- !pos -179.458 -1 15.857 230
-----------------------------------
local ID = require("scripts/zones/Southern_San_dOria/IDs")
require("scripts/globals/crafting")
require("scripts/globals/keyitems... | nilq/small-lua-stack | null |
--[[
A Classic Fairytale: First Blood
= SUMMARY =
Simple introduction to the most basic aspects of gameplay.
Basically a story-driven mini-tutorial. Does not replace
a real tutorial, however.
= GOAL =
To complete the various tasks the chief gives to the player.
= FLOW CHART =
This section explains how this mission i... | nilq/small-lua-stack | null |
PLAYER_DATA = {}
function OnPlayerSpawned(a_Player)
local data = {}
PLAYER_DATA[a_Player:GetUUID()] = data
for _, module in pairs(MODULES) do
if (module.onSpawn ~= nil) then
module.onSpawn(a_Player, data)
end
end
end
function OnPlayerDestroyed(a_Player)
PLAYER_DATA[a_Pl... | nilq/small-lua-stack | null |
-- coc extensions
vim.g.coc_global_extensions = {
"coc-snippets",
"coc-highlight",
"coc-git",
"coc-yaml",
"coc-sh",
"coc-pyright",
"coc-markdownlint",
"coc-json",
"coc-cmake",
"coc-clangd",
}
| nilq/small-lua-stack | null |
--[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the
License.
This program is dis... | nilq/small-lua-stack | null |
--- Intended for classes that extend BaseObject only
-- @module PromiseRemoteFunctionMixin
-- @author Quenty
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local promiseChild = require("promiseChild")
local PromiseRemoteFunctionMixin = {}
function PromiseRemoteFunctionMixin:... | nilq/small-lua-stack | null |
local ga = gajosframework
ga.VehicleModel = classExtends(Model, function(controller)
self.controller = controller
end)
| nilq/small-lua-stack | null |
g_gen_large_win_s01_loot_deed = {
description = "Large Generic House Style 1 (Windowed) Blueprint",
minimumLevel = 0,
maximumLevel = 0,
lootItems = {
{itemTemplate = "gen_large_win_s01_loot_deed", weight = 10000000}
}
}
addLootGroupTemplate("g_gen_large_win_s01_loot_deed", g_gen_large_win_s01_loot_deed)
| nilq/small-lua-stack | null |
local BaseTile = script.Parent
local Tile = BaseTile.Parent
local App = Tile.Parent
local UIBlox = App.Parent
local UIBloxConfig = require(UIBlox.UIBloxConfig)
if UIBloxConfig.useTileThumbnailV2 then
return require(script.Parent.TileThumbnailV2)
end
local Packages = UIBlox.Parent
local Roact = require(Packages.R... | nilq/small-lua-stack | null |
cc = cc or {}
---EventMouse object
---@class EventMouse : Event
local EventMouse = {}
cc.EventMouse = EventMouse
--------------------------------
--- Returns the previous touch location in screen coordinates.<br>
---return The previous touch location in screen coordinates.<br>
---js NA
---@return vec2_table
function E... | nilq/small-lua-stack | null |
object_mobile_dressed_wod_ghost_clan_mother = object_mobile_shared_dressed_wod_ghost_clan_mother:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_wod_ghost_clan_mother, "object/mobile/dressed_wod_ghost_clan_mother.iff")
| nilq/small-lua-stack | null |
--[[----------------------------------------------------------------------------
Info.lua
Summary information for custom metadata sample plugin
--------------------------------------------------------------------------------
ADOBE SYSTEMS INCORPORATED
Copyright 2008 Adobe Systems Incorporated
All Rights Reserved.
... | nilq/small-lua-stack | null |
----------------------------------------------------------------
-- Copyright (c) 2012 Klei Entertainment Inc.
-- All Rights Reserved.
-- SPY SOCIETY.
----------------------------------------------------------------
---------------------------------------------------------------------------
-- Placeholder FX functiona... | nilq/small-lua-stack | null |
--
-- Provides:
-- bling::playerctl::status
-- playing (boolean)
-- bling::playerctl::title_artist_album
-- title (string)
-- artist (string)
-- album_path (string)
-- bling::playerctl::position
-- interval_sec (number)
-- length_sec (number)
-- bling::playerctl::player_stopped
--
local... | nilq/small-lua-stack | null |
--
-- creature.lua
--
local Creature = {}
Creature.__index = Creature
--[[setmetatable (Creature, {
__call = function (cls, ...)
local self = setmetatable ({}, cls)
self:_init (...)
return self
end.
})]]
-- MODULES --
-- END --
function Creature:setHealth (health)
if (healt... | nilq/small-lua-stack | null |
-- This file is generated; DO NOT EDIT.
local colors = {
depth = {
first = {
background = "#21252B"
},
second = {
background = "#1D2026"
}
},
alacritty = {
primary = {
background = "#282c34",
foreground = "#DFDFDF"
... | nilq/small-lua-stack | null |
-- Copyright (c) 2020, The Pallene Developers
-- Pallene is licensed under the MIT license.
-- Please refer to the LICENSE and AUTHORS files for details
-- SPDX-License-Identifier: MIT
-- INVOKING THE C COMPILER
-- =======================
-- Functions for calling the system C compiler.
-- Currently, the MacOS function... | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- Define the restrictions and set the number of initial states.
--------------------------------------------------------------------------------
InitialRestrictions = {NFermions, NBosons, {"11 0000000000", NElectrons_#i, NElectrons_#i},
... | nilq/small-lua-stack | null |
local CONSTANTS_API = require(script:GetCustomProperty("MetaAbilityProgressionConstants_API"))
function UnpackChallengeInfo(player)
player.serverUserData.CHALLENGE = {}
if player.serverUserData.CHALLENGES ~= "" then
local challengeNumber = 1
local section = 1
for c in string.gmatch(player.serverUserData.C... | nilq/small-lua-stack | null |
local BaseLoginDialog = require("hall/login/widget/baseLoginDialog");
local login_autoVerifyFailed = require("view/kScreen_1280_800/hall/login/login_autoVerifyFailed");
--手机号自动验证未成功
local AutoVerifyFailedDialog = class(BaseLoginDialog,false);
local h_index = 0;
local getIndex = function(self)
h_index = h_ind... | nilq/small-lua-stack | null |
--[[
brokerDisplay.lua
A databroker plugin
--]]
local ADDON, Addon = ...
local LDB = LibStub('LibDataBroker-1.1')
local L = LibStub('AceLocale-3.0'):GetLocale(ADDON)
Addon:NewModule('LDB', LDB:NewDataObject(ADDON .. 'Launcher', {
type = 'launcher',
icon = [[Interface\Icons\INV_Misc_Bag_07]],
label = ADDON,
On... | nilq/small-lua-stack | null |
LootItems = {
["gold coin"] = 1,
["platinum coin"] = 100,
["crystal coin"] = 10000,
["abyss hammer"] = 20000,
["acorn"] = 10,
["albino plate"] = 1500,
["alloy legs"] = 11000,
["alptramun's toothbrush"] = 270000,
["amber"] = 20000,
["amber staff"] = 8000,
["amber with a bug"] ... | nilq/small-lua-stack | null |
--TEMP, save support
function ExplorationTick(city)
return city:ExplorationTick()
end
function OnMsg.ClassesPreprocess()
Drone.GetResourceUnit = function(self, resource)
return DroneResourceUnits[resource]
end
Building.OnUnitLeadOut = empty_func
Building.OnUnitLeadOutEnd = empty_func
Unit.OnLeadOutEnd = empty... | nilq/small-lua-stack | null |
local gl = require 'gl'
assert(from, 'missing from argument')
assert(to, 'missing to argument')
assert(duration, 'missing duration argument')
callback = callback or function () end
local counter = 0;
function update()
counter = counter + 1
if counter > duration then
callback()
self.dead = true
end
end... | nilq/small-lua-stack | null |
if tweak_data and tweak_data.SCSuiteConfiguration.bank_buster_toggle then
--AUTOMATIC STEALTH BANKBUSTER by hejoro, original Bankbuster by Harfatus
--If you've successfully stealthed and opened the vault, automatically open all lockboxes
bankbuster = bankbuster or function()
local depositboxes = {} ... | nilq/small-lua-stack | null |
--
-- Notion main configuration file
--
-- This file only includes some settings that are rather frequently altered.
-- The rest of the settings are in cfg_notioncore.lua and individual modules'
-- configuration files (cfg_modulename.lua).
--
-- When any binding and other customisations that you want are minor, it is ... | nilq/small-lua-stack | null |
Proto4z.register(55000,"ClientPulse")
Proto4z.ClientPulse = {} --客户端脉冲请求
Proto4z.ClientPulse.__protoID = 55000
Proto4z.ClientPulse.__protoName = "ClientPulse"
Proto4z.register(55001,"ClientAuthReq")
Proto4z.ClientAuthReq = {} --认证请求
Proto4z.ClientAuthReq.__protoID = 55001
Proto4z.ClientAuthReq.__pro... | nilq/small-lua-stack | null |
local tools = require('app.helpers.tools')
local app = require("app.App"):instance()
local SoundMng = require "app.helpers.SoundMng"
local cjson = require('cjson')
local CertifyView = {}
function CertifyView:initialize()
end
function CertifyView:layout(data)
local MainPanel = self.ui:getChildByName('M... | nilq/small-lua-stack | null |
local player = ...
-- machineProfile contains the overall high scores per song
local machineProfile = PROFILEMAN:GetMachineProfile()
-- get the number of stages that were played
local NumStages = SL.Global.Stages.PlayedThisGame
local durationPerSong = 4
local months = {}
for i=1,12 do
months[#months+1] = ScreenStri... | nilq/small-lua-stack | null |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('BceGuildContributeQuery_pb', package.seeall)
local BCEGUILDCONTRIBUTEQUERY = protobuf.Descriptor();
local BCEGUILDCONTRIBUTEQUERY_GUILDID_FIELD = protobuf.FieldDescriptor();
local BCEGUILDCONTRIBUTEQUERY_YUANBAO_FIELD = protobuf.Fi... | nilq/small-lua-stack | null |
Scorpio "AshToAsh.BlizzardSkin" ""
namespace "AshToAsh.Skin.Blizzard"
import "Scorpio.Secure.UnitFrame"
L = _Locale
_Core = _M
SKIN_NAME = "AshToAsh.BlizzardSkin"
Style.RegisterSkin(SKIN_NAME)
__Sealed__()
interface "AshBlzSkinApi" {}
class "LruCache"(function(_ENV)
__Arguments__(NaturalNumber)
function ... | nilq/small-lua-stack | null |
local bin = require "bin"
local nmap = require "nmap"
local shortport = require "shortport"
local stdnse = require "stdnse"
local string = require "string"
local table = require "table"
description = [[
This nmap NSE will send a command to query through the first 100 addresses of
DNP3 to see if a valid response is g... | nilq/small-lua-stack | null |
local function run(msg, matches)
if is_momod(msg) and msg.to.type == "channel" then
local text = [[
🔴لیست کامند های سوپر گروه حفاظت شده توسد بات نورت
💢 !info
تمامی اطلاعات راجبع سوپر گروه را نشان میدهد
💢 !admins
لیست ادمین های سوپر گروه
💢!owner
نام صاحب سوپر گروه
💢 !modlist
لیست مدیر های سوپر گروه
�... | nilq/small-lua-stack | null |
object_tangible_collection_reward_col_reward_meatlump_doll_officer = object_tangible_collection_reward_shared_col_reward_meatlump_doll_officer:new {
}
ObjectTemplates:addTemplate(object_tangible_collection_reward_col_reward_meatlump_doll_officer, "object/tangible/collection/reward/col_reward_meatlump_doll_officer.iff... | nilq/small-lua-stack | null |
local ane = {
stand = {
row = 1,
range = 1,
downRow = 2,
downRange = 1,
upRow = 3,
upRange = 1,
delay = 0.1,
priority = 1,
attachMod = {{"neck",{angle=0,x=0,y=0}},
{"hand1",{angle=80,x=1,y=-1}}
},
attachDown = {{"neck",{angle=0,x=3,y=0,z=1}},
{"hand1",{angle=0,x=-1,y=0,z=1}}
... | nilq/small-lua-stack | null |
ProfilesScene = inheritsFrom(SceneClass)
local PROFILE_TITLE_HEIGHT = 78
local DETAIL_BOX_HEIGHT = 200
local PROFILE_TITLE_WIDTH = 793
-- Get profiles
local profiles = {}
for i=0,PROFILEMAN:GetNumLocalProfiles()-1 do
profiles[#profiles+1] = PROFILEMAN:GetLocalProfileFromIndex(i)
end
-- Create scene
function Profil... | nilq/small-lua-stack | null |
object_static_particle_particle_snow_machine_medium = object_static_particle_shared_particle_snow_machine_medium:new {
}
ObjectTemplates:addTemplate(object_static_particle_particle_snow_machine_medium, "object/static/particle/particle_snow_machine_medium.iff")
| nilq/small-lua-stack | null |
local config = {
[50070] = {storageKey = Storage.RookgaardTutorialIsland.SantiagoNpcGreetStorage, storageValue = 12, text = 'You have no business in this part of the island anymore. Continue by solving Santiago\'s quest!', storageValue2 = 12, text2 = 'You have no business in this area of the island anymore. Talk to Sa... | nilq/small-lua-stack | null |
-- adapted from https://github.com/jeffreyling/seq2seq-hard/blob/summary/hard_attn.lua
-- From dpnn library
--
require 'nn'
function nn.Module:reinforce(reward)
if self.modules then
for i, module in ipairs(self.modules) do
module:reinforce(reward)
end
end
end
--
-------------------------------------... | nilq/small-lua-stack | null |
p1 = {}
p2 = {}
env = {}
physics = {}
debug = true
function love.load()
env.width = love.graphics.getWidth()
env.height = love.graphics.getHeight()
env.collideDown = 100
physics.fallMultiplier = 80
physics.lowJumpMultiplier = 60
physics.grav = -15
p1.xpos = 300
p1.ypos = 300
p1.xve... | nilq/small-lua-stack | null |
-- Translation support
local S = minetest.get_translator("virtual_key")
keyring.form.register_allowed("virtual_key:virtual_keys_registerer",
virtual_key.craft_common.base_form_def)
local def = {}
for k, v in pairs(virtual_key.craft_common.base_craft_def) do
def[k] = v
end
def.description = S("Virtual keys registere... | nilq/small-lua-stack | null |
local MediaPlayerClass = "mediaplayer_tv"
local function AddMediaPlayerModel( spawnName, name, model, playerConfig )
list.Set( "SpawnableEntities", spawnName, {
PrintName = name,
ClassName = MediaPlayerClass,
Category = "Media Player",
DropToFloor = true,
KeyValues = {
model = model
}
} )
list.Set( ... | nilq/small-lua-stack | null |
--
local M = {}
local lib = require('_lib')
local ffi = require("ffi")
local function tostr(s)
local p = lib.mono_string_new_len(lib.domain, s, #s)
return check_ptr(p, 'failed to create mono string')
end
function M.string(s)
local ty = type(s)
if ty == 'table' then
if iskindof(s, 'MonoInstance... | nilq/small-lua-stack | null |
Config = {}
Config.MaxDistance = 1.5
Config.Debug = false
Config.Interactables = {
'prop_bench_01a',
'prop_bench_01b',
'prop_bench_01c',
'prop_bench_02',
'prop_bench_03',
'prop_bench_04',
'prop_bench_05',
'prop_bench_06',
'prop_bench_05',
'prop_bench_08',
'prop_bench_09',
'prop_bench_10',
'prop_bench_11'... | nilq/small-lua-stack | null |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... | nilq/small-lua-stack | null |
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_SOUND_PURPLE)
local condition = Condition(CONDITION_ATTRIBUTES)
condition:setParameter(CONDITION_PARAM_TICKS, 4000)
condition:setParameter(CONDITION_PARAM_SKILL_MELEEPERCENT, 25)
local area = createCombatArea(AREA_BEAM1)
combat:setArea(area)
co... | nilq/small-lua-stack | null |
local ffi = require('ffi')
local bit = require('bit')
local rotl, xor, shr = bit.rol, bit.bxor, bit.rshift
local uint32_t = ffi.typeof("uint32_t")
-- Prime constants
local P1 = uint32_t(0x9E3779B1)
local P2 = uint32_t(0x85EBCA77)
local P3 = (0xC2B2AE3D)
local P4 = (0x27D4EB2F)
local P5 = (0x165667B1)
-- multiplicati... | nilq/small-lua-stack | null |
-- default angle
defineProperty("angle", 0)
-- no image
defineProperty("image")
function draw(self)
local w, h = getTextureSize(get(image))
local max = w
if h > max then
max = h
end
local rw = (w / max) * 100
local rh = (h / max) * 100
drawRotatedTexture(get... | nilq/small-lua-stack | null |
local l_sys = require("l_sys")
local l_net_a = require("l_net_a")
local l_nmps_a = require("l_nmps_a")
local l_skdr_a = require("l_skdr_a")
local l_nsm_a = require("l_nsm_a")
local util = require("base.util")
local np_id = require("base.np_id")
local upgrade = require("ipc.upgrade.upgrade")
l_net_a.init()
local skd... | nilq/small-lua-stack | null |
--[[
desc:俱乐部管理成员
auth:Carol Luo
]]
return {
---切换数据库使用
[[ USE `dbclubs`;]],
---构造系统联盟
[[
#超级管理员
SELECT `rid` INTO @leaderRID FROM `dbusers`.`users` WHERE `office` = "root";
#系统盟主号
INSERT INTO `clubs`
(`name`,`personality`, `rid`, `assignRule`, `gameInf... | nilq/small-lua-stack | null |
-- Base16 Unikitty Light color
-- Author: Josh W Lewis (@joshwlewis)
-- to be use in your theme.lua
-- symlink or copy to config folder `local color = require('color')`
local M = {}
M.base00 = "#ffffff" -- ----
M.base01 = "#e1e1e2" -- ---
M.base02 = "#c4c3c5" -- --
M.base03 = "#a7a5a8" -- -
M.base04 = "#89878b" -- +... | nilq/small-lua-stack | null |
--local lsp = vim.lsp
local d = vim.diagnostic
local sign_define = vim.fn.sign_define
local hi = vim.highlight
d.config({
signs = true,
underline = false,
update_in_insert = false,
severity_sort = false,
virtual_text = {
spacing = 2,
source = "always"
}
}, nil)
-- custom signs
sign... | nilq/small-lua-stack | null |
name="air"
template="tool"
| nilq/small-lua-stack | null |
-- Scroll handles all text that shows text letter-by-letter
scroll = {}
scroll.text = "" -- Text currently on screen
scroll.fullMessage = "" -- Full message that will be displayed
scroll.messageObj = nil -- Message object pulled from messages.lua
scroll.charTimer = 0 -- Timer until next letter is displa... | nilq/small-lua-stack | null |
hospitals = {
--{ x, y, z, rot},
--LS
{ 1190.9, -1366.46, 8572, 1, "All Saints"}, --All Saints
{ 2040.7, -1417.03, 8572 ,4, "Jefferson"}, --Jefferson
{ 1240.54, 333.18, 8572, 2, "Montgomery"}, --Montgomery
--SF
{ -2209.08, -2315.81, 8572, 0.5, "Whetstone"}, --Whetstone
{ -2659.04, 633.36, 8572 , 0.2, "Santa Flo... | nilq/small-lua-stack | null |
-- Configuration --------------------------------------
AUTOTRACKER_ENABLE_DEBUG_LOGGING = false
-------------------------------------------------------
print("")
print("Active Auto-Tracker Configuration")
print("---------------------------------------------------------------------")
print("Enable Item Tracking: ... | nilq/small-lua-stack | null |
space = box.schema.space.create('test', { engine = 'sophia' })
index = space:create_index('primary', { type = 'tree', parts = {1, 'str'} })
box.sophia['sophia.version']
space:drop()
| nilq/small-lua-stack | null |
-- supporting testfile; belongs to 'cl_spec.lua'
describe('Tests --lpath prepends to package.path', function()
it('require test module', function()
local mod = require('cl_test_module')
assert.is_equal('test module', mod)
end)
end)
| nilq/small-lua-stack | null |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:Initialize()
self:SetModel("models/props_phx/construct/metal_plate2x2.mdl")
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(SOLID_VPHYSICS)
self:SetWeight(210)
self:Se... | nilq/small-lua-stack | null |
local animation = require"animation"
local player = {x = 110, y = 110, isMoving = false, maxSpeed = 28}
local floor = math.floor
local sprite = love.graphics.newImage("Resources/player.png")
local tmpImage
player.tmpImageDuration = -1
player.motion = animation.newAnimation(sprite, 10, 20, 0.4)
local function collide()... | nilq/small-lua-stack | null |
--====================================================================--
-- dmc_widget/widget_background/rounded_view.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2015 David McCuskey
Permissi... | nilq/small-lua-stack | null |
local lockExists = redis.call('hexists', @lock_key, @lock_id);
if (lockExists == 0) then
return;
end;
-- 增加当前permits数量
redis.call('hincrby', @lock_key, 'count', @quantity);
redis.call('hincrby', @lock_key, @lock_id, 0 - @quantity);
local counter = redis.call('incrby', @timeout_key 0 - @quantity);
if (counter == 0) ... | nilq/small-lua-stack | null |
-- Получает опыт оффлайн игрока
-- в каллбэке будет nil, если у чела нет записи в БД
function LVL.getOfflineData(callback,sid)
Q(
"SELECT `exp` FROM `leveling_system` WHERE steamid = ?",
sid,function(dat)
callback(dat[1])
end
)
end
-- Сохраняет опыт в базу, как в даркрп деньги
function LVL.storeXP(sid,amoun... | nilq/small-lua-stack | null |
-- Main script: main.lua
local sdl = require("lunasdl")
local host = "www.w3.org" -- web site where to download the pages
local pages = { -- list of desired pages
"/TR/html401/html40.txt",
"/TR/2002/REC-xhtml1-20020801/xhtml1.pdf",
"/TR/REC-html32.html",
"/TR/2000/REC-DOM-Level-2-Core-20001113/DOM2-Core.txt"
}
... | nilq/small-lua-stack | null |
local io = require "io"
local nrpc = require "nrpc"
local shortport = require "shortport"
local stdnse = require "stdnse"
local table = require "table"
local unpwdb = require "unpwdb"
description = [[
Attempts to discover valid IBM Lotus Domino users and download their ID files by exploiting the CVE-2006-5835 vulnerab... | nilq/small-lua-stack | null |
-- The until failure task will keep executing its child task until the child task returns failure.
local Status = require('bt.task.task_status')
local Decorator = require('bt.decorator.decorator')
local mt = {}
mt.__index = mt
function mt.new(cls)
local self = Decorator.new(cls)
self.run_status = Status.inactive
... | nilq/small-lua-stack | null |
require('Lee2013MuscleDyn')
require("utilfunc")
OsModel = LUAclass()
-----------------------------------------------------
-- constructor
-----------------------------------------------------
function OsModel:__init(wrlpath, luamsclpath, model)
local luamsclpath = luamsclpath or ''
local model = model or nil
-- l... | nilq/small-lua-stack | null |
--[[
Copyright 2016 Roelof Roos (SirQuack)
Part of Particle Maker Garry's Mod Tool
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 app... | nilq/small-lua-stack | null |
C_BattleNet = {}
---@param guid string
---@return BNetAccountInfo? accountInfo
---[Documentation](https://wow.gamepedia.com/API_C_BattleNet.GetAccountInfoByGUID)
function C_BattleNet.GetAccountInfoByGUID(guid) end
---@param id number
---@param wowAccountGUID? string
---@return BNetAccountInfo? accountInfo
---[Documen... | nilq/small-lua-stack | null |
local API_A = require(script:GetCustomProperty("APIAbility"))
API_A.Initialize(false)
| nilq/small-lua-stack | null |
local JSON = require("Libraries.JSON")
--Load the font image.
local fimg = imagedata(fs.read("D:/rpi_font.png"))
local font = {}
local fontchars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!?[](){}.,;:<>+=%#^*~/\\|$@&`"\'-_ '
local charsIter = string.gmatch(fontchars,".")
print("Parsing Chars...... | nilq/small-lua-stack | null |
object_building_mustafar_dungeon_obiwan_finale_shared_lair_of_the_crystal = SharedBuildingObjectTemplate:new {
clientTemplateFileName = "object/building/mustafar/dungeon/obiwan_finale/shared_lair_of_the_crystal.iff"
}
ObjectTemplates:addClientTemplate(object_building_mustafar_dungeon_obiwan_finale_shared_lair_of_the_c... | nilq/small-lua-stack | null |
--
-- Copyright (c) 2015, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
local ztorch = {}... | nilq/small-lua-stack | null |
HeightmapObject = nil
function init()
settings = {
width=20,
x=10.0,
y=5.5,
z=-10.0,
widthDensity=10
}
HeightmapObject = Heightmap.Build(settings)
HeightmapObject:getSettings()
end
| nilq/small-lua-stack | null |
package.path="?/init.lua;"..package.path
require("bin")
require("multi")
require("net.aft")
client=net:newCastedClient("Lua_Server") -- searches the lan for this server name
-- Both udp and tcp clients can be broadcasted
client.OnClientReady(function(self)
self:send("Hello!")
end) -- For a tcp client the client is alr... | nilq/small-lua-stack | null |
local util = require 'lspconfig.util'
local bin_name = 'typescript-language-server'
if vim.fn.has 'win32' == 1 then
bin_name = bin_name .. '.cmd'
end
return {
default_config = {
init_options = { hostInfo = 'neovim' },
cmd = { bin_name, '--stdio' },
filetypes = {
'javascript',
'javascriptre... | nilq/small-lua-stack | null |
#!/usr/bin/env lua
--[[
launch with:
lua -lffi_test -e 'main()'
]]
local p4_workspace = os.getenv("P4_WORKSPACE")
if (p4_workspace) then
package.path = package.path .. ";" .. p4_workspace .. "/DebLua/?.lua"
end
-- shell utils
require "lua_shell"
local ffi = require("ffi")
local CWD = ""
---- Main -------------... | nilq/small-lua-stack | null |
-- Embark underground.
-- author: Atomic Chicken
--@ module = true
local usage = [====[
deep-embark
===========
Moves the starting units and equipment to
a specific underground region upon embarking.
This script can be run directly from the console
at any point whilst setting up an embark.
Alternatively, create a ... | nilq/small-lua-stack | null |
return function()
local replicatedStorage = game:GetService("ReplicatedStorage")
local modules = require(replicatedStorage:WaitForChild("modules"))
local network = modules.load("network")
local firetime = 0
local DURATION = 300
local fireLoop
local fireIgnite
--[[
local fireLoop = Instance.new("Sound")
fireLoop.Soun... | nilq/small-lua-stack | null |
local Enum = require "plenary.enum"
local function should_fail(fun)
local stat = pcall(fun)
assert(not stat, "Function should fail")
end
describe("Enum", function()
it("should be able to define specific values for members", function()
local E = Enum {
{ "Foo", 2 },
{ "Bar", 4 },
"Qux",
... | nilq/small-lua-stack | null |
_=loadfile and loadfile("TQAE.lua"){
user="admin",
pwd="admin",
host="192.168.1.57",
refreshStates = true,
debug = { refreshStates=true },
temp = "temp/",
startTime="12/24/2024-07:00",
}
--FILE:lib/fibaroExtra.lua,fibaroExtra;
--%%name="Test FibaroExtra"
--%%type="com.fibaro.sprinkler"
--%%quickVars =... | nilq/small-lua-stack | null |
--ダウジング・フュージョン
--Scripted by nekrozar
function c100260017.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,100260017+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c1... | nilq/small-lua-stack | null |
if not vRP.modules.edible then
return
end
local lang = vRP.lang
local ActionDelay = module("vrp", "lib/ActionDelay")
local Edible = class("Edible", vRP.Extension)
-- SUBCLASS
Edible.User = class("User")
function Edible.User:__construct()
self.edible_action = ActionDelay()
end
-- PRIVATE METHODS
local functio... | nilq/small-lua-stack | null |
local filesystem = require("gears.filesystem")
local with_dpi = require("beautiful").xresources.apply_dpi
local get_dpi = require("beautiful").xresources.get_dpi
return {
-- List of apps to start by default on some actions
default = {
-- Default programs
browser = os.getenv("BROWSER") or "brave",
termi... | nilq/small-lua-stack | null |
local Opcodes = require("runtime/vm/opcodes")
local Throw = require("util/throw")
local VM = {}
function VM.Execute(inst, state)
local action = Opcodes[inst:Opcode() + 1].action
if action ~= nil then
action(inst, state)
else
Throw:error(inst:OpName().." is not implemented.")
end
end
... | nilq/small-lua-stack | null |
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)... | nilq/small-lua-stack | null |
util.AddNetworkString("FAdmin_retrievebans")
util.AddNetworkString("FADMIN_SendGroups")
local function AddDir(dir) // recursively adds everything in a directory to be downloaded by client
local files, folders = file.Find(dir.."/*", "GAME")
for _, fdir in pairs(folders) do
if fdir != ".svn" then // don't spam peop... | nilq/small-lua-stack | null |
print("begin...")
TestGoFunc("123123",2,14.2)
print("end...") | nilq/small-lua-stack | null |
--[[
� 2016 CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
--]]
local ITEM = Clockwork.item:New("weapon_base");
ITEM.name = "Capitain Black Cigarette";
ITEM.cost = 40;
ITEM.model = "models/mordeciga/mordes/pachkabla... | nilq/small-lua-stack | null |
local git = {}
git.__index = git
function git:new()
local o = {}
setmetatable(o, {__index = self})
return o
end
function git:plugins() return {'f-person/git-blame.nvim'} end
function git:config() end
function git:mapping() end
return git
| nilq/small-lua-stack | null |
--[[
UPCOMMING ADDITIONS
AUDP - advance udp. Ensures packets arrive and handles late packets.
P2P - peer to peer (Server to set up initial connection)
Relay - offput server load (locally)
Threading - Simple threading ~~(UDP/AUDP Only)~~ Thanks to an updated multi library we can thread with ease
Priority handling
... | nilq/small-lua-stack | null |
local M = {}
M.STATE_MENU = 1
M.STATE_CONTROLS = 2
M.STATE_GETREADY = 3
M.STATE_PLAYING = 4
M.STATE_LEVELCLEAR = 5
M.STATE_GAMEOVER = 6
M.state = M.STATE_MENU
M.TILE_SIZE = 16
M.PIXEL_SIZE = 4
M.SCREEN_W = 320
M.SCREEN_H = 180
M.level = 1
M.maxlevel = 1
M.lives = 3
M.fuel = 100
M.score = 0
M.hiscore = 0
M.bosses = ... | nilq/small-lua-stack | null |
CDxButton = inherit(CDxElement)
addEventHandler("onClientResourceStart", getRootElement(),
function(startedResource)
if (startedResource == getThisResource()) then
btnl = dxCreateTexture("res/images/dxGui/dxButtonLeft.png", "argb", true, "clamp")
btnr = dxCreateTexture("res/images/dxGui/dxButtonRight.png", "... | nilq/small-lua-stack | null |
--MoveCurve
--B_30101/curve_Skill_1_4_1 curve_Skill_1_4_1
return
{
filePath = "B_30101/curve_Skill_1_4_1",
startTime = Fixed64(53477376) --[[51]],
startRealTime = Fixed64(1265632) --[[1.207]],
endTime = Fixed64(62914560) --[[60]],
endRealTime = Fixed64(1488978) --[[1.42]],
isZoom = false,
isCompensate = false,
... | nilq/small-lua-stack | null |
object_tangible_quest_talus_genetic_potential_datapad_08 = object_tangible_quest_shared_talus_genetic_potential_datapad_08:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_talus_genetic_potential_datapad_08, "object/tangible/quest/talus_genetic_potential_datapad_08.iff")
| nilq/small-lua-stack | null |
local loadLocalShaders = false
appearanceOptions = {}
configOptions = {}
previewOptions = {}
previewDir = 2
filterText = ""
currentCategory = "outfit"
outfitWindow = nil
outfitCreatureBox = nil
currentColorBox = nil
currentClotheButtonBox = nil
colorBoxes = {}
dataTables = {
outfits = {},
mounts = {},
auras = {}... | nilq/small-lua-stack | null |
local m = require("api")
-- client: path, password, if create
local wallet = client.new("keystore.dat", "123", false)
-- account
local addr = wallet:get_address()
local pubkey = wallet:get_publickey()
print(addr)
print(pubkey)
-- deposit params
local node_publickey = "032895050b7de1a9cf43416e6e5310f8e909249dcd9c4166... | nilq/small-lua-stack | null |
-- Buildat: builtin/voxelworld/client_lua/module.lua
-- http://www.apache.org/licenses/LICENSE-2.0
-- Copyright 2014 Perttu Ahola <celeron55@gmail.com>
local log = buildat.Logger("voxelworld")
local magic = require("buildat/extension/urho3d")
local replicate = require("buildat/extension/replicate")
local cereal = requi... | nilq/small-lua-stack | null |
local function join(table, separator)
local string = ""
local table_size = vim.fn.len(table)
local iteration = 1
for _, value in pairs(table) do
local is_last_element = iteration == table_size
string = string .. value .. (not is_last_element and separator or "")
iteration = iter... | nilq/small-lua-stack | null |
return "3.3.0-master"
| 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.