content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
--[[local Environment = {}
local ServerScriptService = game:GetService("ServerScriptService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local PhysicsService = game:GetService("PhysicsService")
local Debris = game:GetService("Debris")
local debug_module =... | nilq/small-lua-stack | null |
-- Test puzzle
local AquaShine = ...
local love = love
local flux = require("flux")
local stars = require("expanding_stars")
local lily = require("lily")
-- 1 2 3 6 9 18 27 54 81 162 243 486
local PuzzleMain = {Segments = 18}
local ButtonText = AquaShine.LoadModule("uielement.button_text")
PuzzleMain.Size = ... | nilq/small-lua-stack | null |
local Spell =
{
Name = "Spell",
Type = "System",
Namespace = "C_Spell",
Functions =
{
{
Name = "DoesSpellExist",
Type = "Function",
Arguments =
{
{ Name = "spellID", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "spellExists", Type = "bool", Nilable = false },
},
... | nilq/small-lua-stack | null |
local input = require('opus.input')
local colors = _G.colors
local fs = _G.fs
local multishell = _ENV.multishell
local os = _G.os
local shell = _ENV.shell
local term = _G.term
local textutils = _G.textutils
shell.setCompletionFunction(shell.getRunningProgram(), function(_, index, text)... | nilq/small-lua-stack | null |
local _
local LAM = LibAddonMenu2
local function Init(mId, moduleName)
local panelData = Init_ModulePanel(moduleName, "Writ Settings")
LAM:RegisterAddonPanel("BETTERUI_"..mId, panelData)
LAM:RegisterOptionControls("BETTERUI_"..mId, optionsTable)
end
function BETTERUI.Writs.InitModule(m_options)
return m_optio... | nilq/small-lua-stack | null |
local K, C, L = unpack(select(2, ...))
if C["Minimap"].Enable ~= true then
return
end
local _G = _G
local CreateFrame = _G.CreateFrame
local EasyMenu = _G.EasyMenu
local HideUIPanel = _G.HideUIPanel
local IsInGuild = _G.IsInGuild
local PlaySound = _G.PlaySound
local ShowUIPanel = _G.ShowUIPanel
-- Create the minima... | nilq/small-lua-stack | null |
do
function getModule(gui)
-- TODO: Vertical resizing?
local LineLayout = gui.internal.class()
function LineLayout:init(parent, params)
self.lines = {}
self.parent = parent
self.defaultParameters = {
["padding"] = 5,
["spac... | nilq/small-lua-stack | null |
#!/usr/bin/env luajit
local file = io.open(..., "rb")
-- This script handles the outer framing and encryption of a savefile.
local isHeader = true
local function hex(a)
io.write(string.format(" %02x", a))
end
while true do
local entryHead = file:read(5)
if not entryHead then return end
if isHeader then
print("h... | nilq/small-lua-stack | null |
local Game = require('main.game')
local migrators = {
{
version = 1,
func = function(games)
local gamesToRemove = { }
for i, game in ipairs(games) do
local remove = false
if type(game.title) ~= 'string' or game.title:trim() == '' then
remove = true
end
if ... | nilq/small-lua-stack | null |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf/protobuf"
local DRAGONGROUPRECORDS2C_PB = require("DragonGroupRecordS2C_pb")
local DRAGONGROUPROLELISTS2C_PB = require("DragonGroupRoleListS2C_pb")
module('DragonGroupDB_pb')
DRAGONGROUPDB = protobuf.Descriptor();
local DRAGONGROUPDB_RECORD... | nilq/small-lua-stack | null |
-- https://modit.store
-- ModFreakz
QBCore = nil
TriggerEvent("QBCore:GetObject", function(obj) QBCore = obj end)
QBCore.Commands.Add("create:vehshop", "Create a Veh Shop",{}, false, function(source)
TriggerClientEvent("VehicleShops:CreateNew",source)
end, "admin")
--[[ RegisterCommand("create:vehshop", function(so... | nilq/small-lua-stack | null |
require 'torch'
local ImageLoaderAsync = torch.class('ImageLoaderAsync')
local threads = require 'threads'
local ImageLoader = {}
local ImageLoader_mt = { __index = ImageLoader }
---- Asynchronous image loader.
local result = {}
local H, W
function ImageLoaderAsync:__init(dir, batchSize, options)
if not batchS... | nilq/small-lua-stack | null |
if myHero.charName ~= "Katarina" then return end
local player = myHero
local playerPos = myHero.pos
local Q = { Range = 625}
local W = { Range = 340 }
local E = { Range = 725 }
local R = { Range = 550}
local DaggerObj = { }
local DaggerCount = 0
local DaggerStart = 0
local DaggerEnd = 0
local RCasting = f... | nilq/small-lua-stack | null |
local client = {};
local DRPC = script:FindFirstAncestor("DRPC");
local ActivityCreator = require(DRPC.src.generators.activityCreator);
local Data = require(DRPC.src.dataHandler);
function client.new(Http, _debug)
local self = setmetatable({ Http = Http, _debug = _debug }, { __index = client });
return self;
end;... | nilq/small-lua-stack | null |
local FACTION = Clockwork.faction:New("Incognito");
local PLUGIN = PLUGIN;
FACTION.useFullName = true;
FACTION.whitelist = true;
FACTION.material = "halfliferp/factions/citizen";
-- Called when a player is transferred to the faction.
function FACTION:OnTransferred(player, faction, name)
if (Schema:PlayerIsCombine(pla... | nilq/small-lua-stack | null |
data:extend(
{
{
type = "item",
name = "explosives-gunpowder",
icon = "__base__/graphics/icons/explosives.png",
flags = {"goes-to-main-inventory"},
subgroup = "dynamite",
order = "a-1",
stack_size = 200
},
{
type = "recipe",
name = "explosives-gunpowder",
energy_required = 5... | nilq/small-lua-stack | null |
local o = vim.o
local bo = vim.bo
local wo = vim.wo
-- Add your packages
require "paq" {
"savq/paq-nvim"; -- Let Paq manage itself
"neovim/nvim-lspconfig"; -- Mind the semi-colons
'hrsh7th/nvim-cmp';
'hrsh7th/cmp-nvim-lsp';
'hrsh7th/cmp-buffer';
'hrsh7th/cmp-path';
... | nilq/small-lua-stack | null |
SmoothyPlates.getDefaultConfig = function()
return {
['version'] = SmoothyPlates.Vars.currVersion,
['options'] = {
['hideUnimportantPets'] = true,
['hideUnimportantTotems'] = true,
['absorbs'] = true
},
['modules'] = {
['Trinket'] = {
['active'] = true
},
['Interrupts'] = {
['active']... | nilq/small-lua-stack | null |
local elol = false
local sx, sy = guiGetScreenSize()
local w1PosX, w1PosY = 0, sy/2-300
local currmenuposition = 1
local coreside = "menu"
local kijelolt = 1
local animalva = false
local myfont = dxCreateFont("files/font.ttf", 10)
local current = 1
addEventHandler("onClientKey", root, function(k, v)
if not v or not ... | nilq/small-lua-stack | null |
SellOMatic2DB = {
["profileKeys"] = {
["熊奶奶 - 屠魔山谷"] = "Default",
},
}
| nilq/small-lua-stack | null |
local Commands = require("./Commands")
local function embed(message, color_code)
message:reply {
embed = {
title = "Commands List",
description = "Showing Basic Cmds & Mod Cmds",
fields = {
{
name = Commands[1].n... | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- Module Declaration
--
local mod, CL = BigWigs:NewBoss("The Violet Hold Trash", 608)
if not mod then return end
mod.displayName = CL.trash
mod:RegisterEnableMob(
30658, -- Lieutenant Sinclari
-- Bosses
29315, -- Erekem
29316, -- Mo... | nilq/small-lua-stack | null |
-- Example: Cursor Visibility
function love.load()
-- Hide mouse on startup.
love.mouse.setVisible(false)
local f = love.graphics.newFont(love._vera_ttf, 12)
love.graphics.setFont(f)
end
-- Toggle cursor visibility.
function love.keypressed(k)
if k == "v" then
if love.mouse.isVisible() then
... | nilq/small-lua-stack | null |
--------------------------------------------------------------------
--JoysticConfig
require 'mock.tools.SDLJoystickMapping'
--------------------------------------------------------------------
require 'mock.tools.TMXTool'
require 'mock.tools.InputRecorder'
require 'mock.tools.UserAction' --non coroutine action
-----... | nilq/small-lua-stack | null |
local utils = {}
utils.bg = "#000000"
utils.fg = "#ffffff"
utils.day_brightness = 0.3
---Print a warning message to the user
---@param... string
---@return table
function utils.warn(...)
for _, msg in ipairs({ ... }) do
vim.cmd('echohl WarningMsg | echom "OneDarkPro.nvim: ' .. msg .. '" | echohl NONE')
end
end
-... | nilq/small-lua-stack | null |
--[[
Desc: Avatar, a set of frame animations.
Author: SerDing
Since: 2018-09-22
Alter: 2020-03-11
]]
local _Frameani = require "entity.drawable.frameani"
local _Layer = require("engine.graphics.drawable.layer")
local _RESMGR = require("system.resource.resmgr")
local _RESOURCE = require("engine.resource")
---@clas... | nilq/small-lua-stack | null |
---------------------------------------------------------------------------------------------------
-- Proposal:
-- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0207-rpc-message-protection.md
-- Description:
-- Precondition:
-- 1) App registered and activated, OnHMIStatus(FULL)
-- 2) RPC needs... | nilq/small-lua-stack | null |
-- Thanks Lars -- https://github.com/webpro/dotfiles/blob/master/etc/hammerspoon
local function toggleApplication(name)
local app = hs.application.find(name)
if not app or app:isHidden() then
hs.application.launchOrFocus(name)
elseif hs.application.frontmostApplication() ~= app then
app:activate()
else... | nilq/small-lua-stack | null |
Weapon.PrettyName = "PP-19 Bizon"
Weapon.WeaponID = "fas2_pp19"
Weapon.DamageMultiplier = 1.5
Weapon.WeaponType = WEAPON_PRIMARY | nilq/small-lua-stack | null |
psAdjustMachine={
start=function()
_update60=updateInput
player.pos=getInteractPos()
player.vel=vec2(0,0)
player.facing=sgn(whipMachine.pos.x-player.pos.x)
player.anim=startAnim(pAnimAdjust)
adjustSpeed=0
makeProjVis()
end,
stop=function()
_upd... | nilq/small-lua-stack | null |
--[[
lvim is the global options object
Linters should be
filled in as strings with either
a global executable or a path to
an executable
]]
-- Plugins
lvim.plugins = {
{"fatih/vim-go"},
{"folke/todo-comments.nvim",
requires = "nvim-lua/plenary.nvim",
config = function()
require("todo-comments").setup... | nilq/small-lua-stack | null |
register_tile({
name = "gas_n_go_sign",
top_texture = "gas_n_go_sign_edge.png",
bottom_texture = "gas_n_go_sign_edge.png",
left_texture = "gas_n_go_sign_edge.png",
front_texture = "gas_n_go_sign_1.png",
back_texture = "gas_n_go_sign_2.png",
rotation = true,
})
register_tile({
name = "p... | nilq/small-lua-stack | null |
local gpick = require('gpick')
local options = {}
local optionsUpdate = function(params)
options.upperCase = params:getString('gpick.options.hex_case', 'upper') == 'upper'
end
gpick:setOptionChangeCallback(optionsUpdate)
return options
| nilq/small-lua-stack | null |
---
-- A demonstration of pipes.
--look for packages one folder up.
package.path = package.path .. ";;;../?.lua"
local sched=require 'sched'
--require "log".setlevel('ALL')
local stream=require 'stream'
local astream=stream.new()
-- sender --
sched.run(function()
for i=1, 10 do
local s='*'..i..'*'
print('writi... | nilq/small-lua-stack | null |
local allowCountdown = false;
function onCreate()
setProperty('gf.visible', false);
makeLuaSprite('black', 'stages/intros/black', 0,0)
setObjectCamera('black', 'camother')
addLuaSprite('black', false)
makeLuaSprite('circle', 'stages/intros/CircleTripleTrouble', 1280,0)
setObjectCamera... | nilq/small-lua-stack | null |
--- @classmod core.graphics.ShaderProgramSet
--- ShaderProgramSets group programs into families.
--
-- A model just needs to save the family name, which is then resolved by
-- the used shader program set.
-- E.g. there can be a family for static and one for animated models.
--
-- Some effects, like shadow mapping, requ... | nilq/small-lua-stack | null |
require("lib/core")
x = 0
for i=0, 10, 1 do
x = x + 5
print(i)
end
assert(x, 50) | nilq/small-lua-stack | null |
local Common = {}
function Common.MakeSoundHandler(state, fxSource, effectPath)
return function(self, eventType, eventData)
local fx = cache:GetResource("Sound", effectPath)
state:GetObject(fxSource):Play(fx)
end
end
function Common.ButtonEvents(state, element, buttonName, clickMethod, hoverM... | nilq/small-lua-stack | null |
--[[
module: NightState
author: DylanYang
time: 2021-02-23 14:20:25
idea:
advance:
]]
local DayState = require("patterns.behavioral.state.DayState")
local interface = require("patterns.behavioral.state.IState")
local _M = Class("NightState", interface)
_M.singleton = true
local public = _M.publ... | nilq/small-lua-stack | null |
local a = Const("a")
local f = Const("f")
local x = Var(0)
assert(not f(a):has_free_var(0))
assert(f(a, x):has_free_var(0))
assert(not f(a, x):has_free_var(1, 3))
assert(f(a, Var(1)):has_free_var(1, 3))
assert(f(a, Var(2)):has_free_var(1, 3))
assert(not f(a, Var(3)):has_free_var(1, 3))
assert(not f(a, Var(4)):has_free_... | nilq/small-lua-stack | null |
local this = {}
---------------------------------------------------------------------------------
-- Lists
---------------------------------------------------------------------------------
this.Times = {
}
this.RouteSets = {
}
---------------------------------------------------------------------------------
-- Inter... | nilq/small-lua-stack | null |
return {
name = "Quad9-Recommended",
label = _("Quad 9 (Recommended)"),
resolver_url = "https://dns.quad9.net/dns-query",
bootstrap_dns = "9.9.9.9,149.112.112.112"
}
| nilq/small-lua-stack | null |
--[[
Copyright (C) 2013 simplex
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 hope that ... | nilq/small-lua-stack | null |
-- Dorea Plugin Loader
-- YuKun Liu <mrxzx.info@gmail.com>
-- https://dorea.mrxzx.info/
if not ROOT_PATH then
ROOT_PATH = "."
end
if not PLUGIN_LOADER then
PLUGIN_LOADER = {}
end
if not LOGGER_IN then
LOGGER_IN = {}
LOGGER_IN.info = function (message)
print("[INFO] " .. message)
end
... | nilq/small-lua-stack | null |
local cjson = require 'cjson.safe'
local logger = require 'hj212.logger'
local base = require 'hj212.calc.base'
local mgr = require 'hj212.calc.manager'
local types = require 'hj212.types'
local data_list = require 'hj212.calc.data_list'
local LA = base:subclass('hj212.calc.LA')
--[[
-- The COU is couting all sample ... | nilq/small-lua-stack | null |
require 'nn'
require 'cunn'
require 'gvnn'
require 'optim'
grad = require 'autograd'
require('DataReader.lua')
require('createModelBasicSinglescale.lua')
require('createModelBasicMultiscale.lua')
require('createModelSiameseSinglescale.lua')
require('createModelSiameseMultiscale.lua')
local c = require 'trepl.coloriz... | nilq/small-lua-stack | null |
--Created by the QnEditor,do not modify.If not,you will die very nankan!
local MAP = {
var = {
Image_shiled = 1,
ImageBack = 2,
View_bagBlank = 3,
View_content_bag = 4,
Button_record = 5,
},
ui = {
[1] = {"Image_shiled"},
[2] = {"ImageBack"},
[3] = {"ImageBack","Image_bg2","View_bagBlank"},
[4] = {... | nilq/small-lua-stack | null |
local helper = {}
--- Creates a new empty mesh.
function helper.new_mesh()
local mesh = {}
mesh.vertexes = {}
mesh.segments = {}
mesh.colors = {}
return mesh
end
--- Adds a line to a mesh.
-- @params mesh table: a properly formated mesh. Possibly created with `new_mesh`.
-- @params vertex table: a list of e... | nilq/small-lua-stack | null |
-- vcrwire.lua
-- babyjeans
--
---
local VCRWire = VCRComponent:extend('VCRWire')
function VCRWire:init(name, from, to, x, y, resources)
self.super.init(self, name, x, y, resources)
self.componentType = 'wire'
end
return VCRWire | nilq/small-lua-stack | null |
--=============================================================================
-- 大脚动作条按键绑定
--=============================================================================
-- NULL_FUNCTION = function() end
if (GetLocale() == "zhCN") then
BINDING_HEADER_BIGFOOTBAR1 = "大脚1号动作条";
_G["BINDING_NAME_CLICK BigFootBar... | nilq/small-lua-stack | null |
local objc = require "objc/init"
objc.import "AppKit"
local NSPasteboardTypeString = "public.utf8-plain-text"
local pasteboard = objc.NSPasteboard:generalPasteboard()
pasteboard:declareTypes_owner_(objc.ns{NSPasteboardTypeString}, nil)
function get()
return pasteboard:stringForType_(NSPasteboardTypeString)
end
f... | nilq/small-lua-stack | null |
local class = require("pl.class")
local sfmt = string.format
---@class EntityLoader: Class
---@field dataSource DataSource
---@field config? table
local M = class()
function M:_init(dataSource, config)
self.dataSource = dataSource
self.config = config or {}
end
function M:setArea(name) self.config.area = na... | nilq/small-lua-stack | null |
object_tangible_deed_vehicle_deed_koro2_speeder_deed = object_tangible_deed_vehicle_deed_shared_koro2_speeder_deed:new {
}
ObjectTemplates:addTemplate(object_tangible_deed_vehicle_deed_koro2_speeder_deed, "object/tangible/deed/vehicle_deed/koro2_speeder_deed.iff")
| nilq/small-lua-stack | null |
local jobs = {}
local time = 0.0
core.register_globalstep(function(dtime)
time = time + dtime
if #jobs < 1 then
return
end
-- Iterate backwards so that we miss any new timers added by
-- a timer callback, and so that we don't skip the next timer
-- in the list if we remove one.
for i = #jobs, 1, -1 do
loc... | nilq/small-lua-stack | null |
-----------------------------------------------------------------------------
-- An icon an RSS feed.
--
-- Image (c) Mozilla Foundation
-- License: LGPL
-----------------------------------------------------------------------------
module(..., package.seeall)
NODE = {
prototype = "@Image",
file_name = "feed.png",
... | nilq/small-lua-stack | null |
function SpawnRegions() return { { name = "Woldren's Island", file = "media/maps/The Island/spawnpoints.lua" }, }
end | nilq/small-lua-stack | null |
--[[------------------------------------
LoveFS Dialogs v0.8
Pure Lua FileSystem Access - Loveframes interface
Under the MIT license.
copyright(c) 2012 Caldas Lopes aka linux-man
--]]------------------------------------
require 'loveframes'
local lovefs_dir = 'lovefs'
local function normalize(str)
local str2 = ''
... | nilq/small-lua-stack | null |
hello = 'hello'
-- local (accessible only in this scope)
local world = ' world!'
--
-- Functions
--
-- declaring our function
function say(text)
print(text)
end
-- calling our function (note the .. operator to concatenate strings!)
say(hello .. world)
--
-- If statements
--
if world == 'world' then
print('... | nilq/small-lua-stack | null |
--[[
Copyright 2018 JobTeaser
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, software
dis... | nilq/small-lua-stack | null |
---------------------------------------------------------------------------------------------------
-- User story: SubtleAlert cases
-- Use case: SubtleAlert
-- Item: VRSession interrupts SubtleAlert in progress
--
-- Requirement summary:
-- [SubtleAlert] ABORTED: request with UI portion interrupted by higher priority ... | nilq/small-lua-stack | null |
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); y... | nilq/small-lua-stack | null |
EFFECT.Mat = Material( "effects/tool_tracer" )
function EFFECT:Init( data )
self.Position = data:GetStart()
self.WeaponEnt = data:GetEntity()
self.Attachment = data:GetAttachment()
-- Keep the start and end pos - we're going to interpolate between them
self.StartPos = self:GetTracerShootPos( self.Position, sel... | nilq/small-lua-stack | null |
-- THIS CONTENTS OF THIS FILE IS AUTO-GENERATED BY THE WOWACE PACKAGER
-- Please use the Localization App on WoWAce to update this
-- at http://www.wowace.com/projects/omen-threat-meter/localization/
-- Translation courtesy of Ben (Aesyl - US Tanaris)
local AceLocale = LibStub:GetLibrary("AceLocale-3.0")
local L = Ac... | nilq/small-lua-stack | null |
-- ======= Copyright (c) 2003-2013, Unknown Worlds Entertainment, Inc. All rights reserved. =====
--
-- lua\Skulk.lua
--
-- Created by: Charlie Cleveland (charlie@unknownworlds.com)
-- Andreas Urwalek (andi@unknownworlds.com)
--
-- ========= For more information, visit us at http://www.unknownworl... | nilq/small-lua-stack | null |
local url = request.path:match("/request/body(.*)")
assert(url)
assert(request.body)
assert(type(request.body) == 'table')
assert(type(request.body.tostring) == 'function')
assert(type(request.body.toreader) == 'function')
assert(type(request.body.tofile) == 'function')
assert(not request.body.used)
if url ~= '' then
... | nilq/small-lua-stack | null |
tool_damage = 0.5
local modpath = minetest.get_modpath("ks_tools")
dofile(modpath.."/basic_materials.lua")
dofile(modpath.."/wood_adze.lua")
dofile(modpath.."/crafting.lua")
dofile(modpath.."/stone_toolheads.lua")
dofile(modpath.."/stone_tools.lua")
dofile(modpath.."/cooking_tools.lua")
minetest.register_tool("ks_to... | nilq/small-lua-stack | null |
local HttpMessage_t = {}
local HttpMessage_mt = {
__index = HttpMessage_t,
}
HttpMessage_t.AppendHeader = function(self, name, value)
local header = self.Headers[name];
if not header or not value then
return nil
end
self.Headers[name] = self.Headers[name]..value;
end
HttpMessage_t.AddHeader = function(s... | nilq/small-lua-stack | null |
function init()
connect(g_game, { onGameStart = refresh,
onGameEnd = hide })
ProtocolGame.registerExtendedOpcode(57, function(protocol, opcode, buffer) onTargetedHealthChange(protocol, opcode, buffer) end)
targetedWindow = g_ui.loadUI('targeted', modules.game_interface.getMapPanel())
healt... | nilq/small-lua-stack | null |
--
-- init.lua
-- Initialize components
--
require("components.topbar")
require("components.exit_screen")
require("components.lock_screen")
require("components.window_switcher")
require("components.floating_terminal")
| nilq/small-lua-stack | null |
local trim = require("lapis.util").trim_filter
local Model = require("lapis.db.model").Model
local Threads = Model:extend("threads")
--- Create thread
-- @tparam number board_id Board ID
-- @tparam table flags List of thread flags
-- @treturn boolean success
-- @treturn string error
function Threads:create_thread... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: FeiYin
-- NPC: Strange Apparatus
-- !pos -94 -15 220 204
-----------------------------------
function onTrade(player,npc,trade)
player:startEvent(27, 0, 0, 1474, 0, 0, 0, 0, player:getZoneID())
end
function onTrigger(player,npc)
player:startEvent(25, 0, 0, 1474, 0... | nilq/small-lua-stack | null |
--Child Folders
includeFile("custom_content/tangible/meatlump/event/serverobjects.lua")
includeFile("custom_content/tangible/meatlump/hideout/serverobjects.lua")
includeFile("custom_content/tangible/meatlump/reward/serverobjects.lua")
-- Server Objects
| nilq/small-lua-stack | null |
--- jit-uuid
-- Fast and dependency-free UUID library for LuaJIT/ngx_lua.
-- @module jit-uuid
-- @author Thibault Charbonnier
-- @license MIT
-- @release 0.0.7
local bit = require 'bit'
local tohex = bit.tohex
local band = bit.band
local bor = bit.bor
local _M = {
_VERSION = '0.0.7'
}
----------
-- seeding
... | nilq/small-lua-stack | null |
local FuzzyFinderPrompt = require("mod.tools.api.FuzzyFinderPrompt")
local Fs = require("api.Fs")
local Elona122Map = require("mod.elona_sys.map_loader.Elona122Map")
local UiMouseMenu = require("mod.mouse_ui.api.gui.UiMouseMenu")
local UiMouseButton = require("mod.mouse_ui.api.gui.UiMouseButton")
local IMapEditorPlugi... | nilq/small-lua-stack | null |
-- Load basic awesome libs.
local awful = require("awful")
local gears = require("gears")
local menubar = require("menubar")
local naughty = require("naughty")
-- Widgets
local wibox = require("wibox")
local widget_utils = require("wibox.widget.base")
local common = awful.widget.common
-- Theming utilities.
local layou... | nilq/small-lua-stack | null |
local M = require 'osprocess.core'
-- ex.parsecommandline
function M.parsecommandline(commandline)
local lpeg = require 'lpeg'
local field = lpeg.C('\"' * (lpeg.P(1) - '\"')^0 * '\"' + (1 - lpeg.P' ')^0)
return lpeg.Ct(field * (lpeg.P(' ')^1 * field)^0 * -1):match(commandline)
end
-- ex.popen
function M.popen(args... | nilq/small-lua-stack | null |
local Event = require 'utils.event'
local RPG_Settings = require 'rpg.table'
local RPG = require 'rpg.functions'
Event.on_init(
function()
RPG.rpg_reset_all_players()
end
)
Event.on_nth_tick(
60,
function()
if settings.global.comfy_enable_health_and_mana_bars.value then
RPG... | nilq/small-lua-stack | null |
Player = {}
Player.Kick = function(player, responsiblePlayer, reason)
kickPlayer(player, responsiblePlayer, reason)
end
| nilq/small-lua-stack | null |
--[[
Representation of a console, which can display
text, and act as the general canvas for a Terminal program
]]
local ffi = require("ffi")
local C = ffi.C
local bit = require("bit")
local band, bor = bit.band, bit.bor
local bnot = bit.bnot
local unicode = require("unicode")
local exports = {}
local TSM_SC... | nilq/small-lua-stack | null |
jsonInterface = require("jsonInterface")
Database = require("database")
local BaseCell = require("cell.base")
local Cell = class("Cell", BaseCell)
function Cell:__init(cellDescription)
BaseCell.__init(self, cellDescription)
-- Replace characters not allowed in filenames
self.cellFile = cellDescription
... | nilq/small-lua-stack | null |
--*****************************************************************************
--* Author: RJP Computing <rjpcomputing@gmail.com>
--* Date: 02/04/2007
--* Version: 1.00-beta
--* Copyright (C) 2007 RJP Computing
--*
--* This program is free software; you can redistribute it and/or
--* modify it under the terms... | nilq/small-lua-stack | null |
stdout = {}
function stdout.r(msg)
io.write("\r" .. msg)
io.flush()
end
| nilq/small-lua-stack | null |
-- Luagit2's Graph Module Tests
local fixer = require("Fixtures.fix_repo")
describe(" Graph Methods Tests ", function()
local luagit2 = require("luagit2")
local repo_path = "Fixtures/WORKON_REPO"
setup(function()
luagit2.init()
end)
before_each(function()
fixer.set_repo("... | nilq/small-lua-stack | null |
pfUI:RegisterModule("afkcam", 20400, function ()
local MARKED_AFK_CAPTURE = SanitizePattern(MARKED_AFK_MESSAGE)
local social_chats = {
"CHAT_MSG_SAY",
"CHAT_MSG_WHISPER",
"CHAT_MSG_PARTY",
"CHAT_MSG_RAID",
"CHAT_MSG_RAID_LEADER",
"CHAT_MSG_RAID_WARNING",
"CHAT_MSG_GUILD",
"CHAT_MSG_O... | nilq/small-lua-stack | null |
--
-- SmartMet NWC parameters
--
-- Create cloud layer data for SNWC from 'own' total cloudiness and
-- cloud layers from Smartmet data.
--
local MISS = missing
local editor_prod = producer(181, "SMARTMET")
editor_prod:SetCentre(86)
editor_prod:SetProcess(181)
local editor_origintime = raw_time(radon:GetLatestTime(... | nilq/small-lua-stack | null |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('Scenario', {
'name', "Mystery 6",
'file_name', "Mystery_6",
}, {
PlaceObj('ScenarioSequence', {
'name', "Start",
'autostart', true,
}, {
PlaceObj('SA_Exec', {
'expression', '_missionSponsor = GetMissionSponsor().display_name or ""... | nilq/small-lua-stack | null |
i = 0
while true do
i = i + 1
if i > 10 then break end
end
| nilq/small-lua-stack | null |
local abs, min, max, atan2 = math.abs, math.min, math.max, math.atan2
local push = table.insert
local tbl = Libs.tbl
local Vec = _Require_relative(..., 'lib.DeWallua.vector-light',1)
local Shape = _Require_relative(...,"Shape")
---@class ConvexPolygon : Shape
ConvexPolygon = Shape:extend()
ConvexPolygon.name = 'conve... | nilq/small-lua-stack | null |
local settings = {}
table.insert(settings,
{
type = "int-setting",
name = "spice-rack-turret-inspector-debug-mode",
order = "a",
setting_type = "runtime-global",
default_value = 0,
allowed_values = { 0, 1, 2, 3, 4 }
})
table.insert(settings,
{
type =... | nilq/small-lua-stack | null |
-- ----------------------------------------------------------------------------
-- Copyright (c) 2012-2020 HERE Global B.V. and its affiliate(s).
-- All rights reserved.
-- The use of this software is conditional upon having a separate agreement
-- with a HERE company for the use or utilization of this software. In the... | nilq/small-lua-stack | null |
--Take a signal (set in the first block) and turn it into it's corresponding signal (set in the second block).
--code is from UsefulCombinators and is a temporary reminder of what to do.
classes["transformer-combinator"] = {
on_click = function(player, object)
local gui = player.gui.center
if gui["uc"]["conv... | nilq/small-lua-stack | null |
--********************************************************************
--Source: https://github.com/rajarshd/ChainsofReasoning
--See Chains of Reasoning over Entities, Relations, and Text using Recurrent Neural Networks
--https://arxiv.org/abs/1607.01426
--***************************************************************... | nilq/small-lua-stack | null |
set('ninja_required_version', '1.8')
set('basedir', basedir)
set('builddir', config.builddir)
set('dir', '$basedir')
set('outdir', '$builddir')
set('repo', config.repo.path)
set('repo_flags', config.repo.flags)
set('repo_tag', config.repo.tag)
set('repo_branch', config.repo.branch)
include '$basedir/rules.ninja'
to... | nilq/small-lua-stack | null |
object_tangible_furniture_base_flag_city_base = object_tangible_furniture_base_shared_flag_city_base:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_base_flag_city_base, "object/tangible/furniture/base/flag_city_base.iff")
| nilq/small-lua-stack | null |
local U = require "togo.utility"
local O = require "Quanta.Object"
local Match = require "Quanta.Match"
local Measurement = require "Quanta.Measurement"
local Unit = require "Quanta.Unit"
local Entity = require "Quanta.Entity"
local Dialect = require "Dialect"
local M = U.module(...)
M.Property = U.class(M.Property)... | nilq/small-lua-stack | null |
--[[
Author: your name
Date: 2019-11-11 09:33:07
LastEditTime: 2021-01-14 18:50:06
LastEditors: Please set LastEditors
Description: In User Settings Edit
FilePath: \luci-app-vssr\luasrc\model\cbi\vssr\socks5.lua
--]]
local vssr = 'vssr'
local uci = luci.model.uci.cursor()
local server_table = {}
local sys = require 'l... | nilq/small-lua-stack | null |
---
--- JMQuickBanking
---
--[[
Variable declaration
]]
---
-- @field name
-- @field savedVariablesName
--
local Config = {
name = 'JMQuickBanking',
savedVariablesName = 'JMQuickBankingSavedVariables',
}
local SavedVariables = {}
-- QuickBankingLibrary
local QBL = {}
QBL.getItems = function (bagId... | nilq/small-lua-stack | null |
--- Example superclass for inheritance example. Intended for OOP.
-- @classmod Animal
-- @author colbert2677
local Animal = {}
Animal.ClassName = "Animal"
Animal.__index = Animal
function Animal:__tostring()
return self.ClassName
end
function Animal.new(name, species)
local self = setmetatable({
Species = speci... | nilq/small-lua-stack | null |
local Tree = {}
local index = 0
function Tree.initTree(rootValue)
if #Tree < 1 then
table.insert(Tree, {
index = index,
value = rootValue,
visited = false,
children = {}
})
index = index + 1
return true
else
print('Could not initialized Tree. Length greater than zero.')... | nilq/small-lua-stack | null |
-------简单数据-------
local tab ={}
tab["Himi"] = "himigame.com"
--数据转json
local cjson = require "cjson"
local jsonData = cjson.encode(tab)
print(jsonData)
-- 打印结果: {"Himi":"himigame.com"}
--json转数据
local data = cjson.decode(jsonData)
print(data.Himi)
-- 打印结果: himigame.com | 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.