content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
local Players = game:GetService("Players")
local Promise = require(script.Parent.Promise)
local function PromiseClone(Parent)
return Promise.Defer(function(Resolve)
local NewModel = Instance.new("Model")
for _, Descendant in ipairs(Parent:GetDescendants()) do
if Descendant:IsA("BasePart") and not Descendant:Is... | nilq/small-lua-stack | null |
#!/usr/bin/env lua5.1
--[[
/****************************************************************
* Copyright (c) Neptunium Pvt Ltd., 2014.
* Author: Neptunium Pvt Ltd..
*
* This unpublished material is proprietary to Neptunium Pvt Ltd..
* All rights reserved. The methods and techniques described herein
* are conside... | nilq/small-lua-stack | null |
-- class
function Location(x, y)
-- private members
local _x = x
local _y = y
-- public members
return {
type = "Location",
getX = function(self)
return _x
end,
getY = function(self)
return _y
end,
}
end
| nilq/small-lua-stack | null |
let a = 1
pprint a
| nilq/small-lua-stack | null |
--===== CHECK START ARGS =====--
local serverName = (...) or false
if serverName then
serverName = "ENDER_ITEM:"..tostring(serverName)
else
serverName = "ENDER_ITEM"
end
--===== LOAD API(S) =====--
if not messageHandlerServer then
if not os.loadAPI("messageHandlerServer") then
error("Could not load API: messageHa... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Aydeewa Subterrane
-- NPC: ??? (Spawn Nosferatu(ZNM T3))
-- !pos -199 8 -62 68
-----------------------------------
local ID = require("scripts/zones/Aydeewa_Subterrane/IDs")
require("scripts/globals/npc_util")
-----------------------------------
function onTrade(player, np... | nilq/small-lua-stack | null |
blue_fire = class({})
function blue_fire:GetDuration()
return -1
end
function blue_fire:GetEffectName()
return "particles/econ/courier/courier_hyeonmu_ambient/courier_hyeonmu_ambient_blue_plus.vpcf"
end
function blue_fire:GetEffectAttachType()
return PATTACH_ABSORIGIN_FOLLOW
end
function blue_fire:Allow... | nilq/small-lua-stack | null |
object_tangible_wearables_cybernetic_cybernetic_crafted_s02_hand_r = object_tangible_wearables_cybernetic_shared_cybernetic_crafted_s02_hand_r:new {
}
ObjectTemplates:addTemplate(object_tangible_wearables_cybernetic_cybernetic_crafted_s02_hand_r, "object/tangible/wearables/cybernetic/cybernetic_crafted_s02_hand_r.iff... | nilq/small-lua-stack | null |
// Generated by github.com/davyxu/tabtoy
// Version: 2.8.10
module table {
export var TurnBrand : table.ITurnBrandDefine[] = [
{ Id : 1, Name : "皇上", Head : "Image/Head/2_round.png", Type : 5, RewardId : 1, Value : 1, Dialogue : 0, Weight : 50 },
{ Id : 2, Name : "皇后", Head : "Image/Head/1_round.png", Type : 2, R... | nilq/small-lua-stack | null |
local function Color(hex, value)
return {
tonumber(string.sub(hex, 2, 3), 16)/256,
tonumber(string.sub(hex, 4, 5), 16)/256,
tonumber(string.sub(hex, 6, 7), 16)/256,
value or 1
}
end
return Color | nilq/small-lua-stack | null |
local image = require 'image'
local path = require 'path'
local function rgbto16( r, g, b )
r = r * 31 // 255
g = g * 63 // 255
b = b * 31 // 255
return ( r << 11 ) | ( g << 5 ) | b
end
return function( args )
if #args == 0 then
io.write[[
Creates a .h header file with the tile ready to be used in ti... | nilq/small-lua-stack | null |
--[[
- SKYNET SIMPLE ( https://github.com/viticm/skynet-simple )
- $Id main.lua
- @link https://github.com/viticm/skynet-simple for the canonical source repository
- @copyright Copyright (c) 2020 viticm( viticm.ti@gmail.com )
- @license
- @user viticm( viticm.ti@gmail.com )
- @date 2020/08/19 17:08
- @uses The ... | nilq/small-lua-stack | null |
local function ThunkMiddleware(store)
return function(nextDispatch)
return function(action)
if typeof(action) == "function" then
action(store.dispatch, store.getState)
return
end
nextDispatch(action)
end
end
end
return ThunkMiddleware | nilq/small-lua-stack | null |
-- tells which ships count as squad leaders
-- these ships should all have shipholds
flagShips =
{
"hgn_mothership",
"hgn_battlecruiser",
"hgn_carrier",
"hgn_shipyard",
"hgn_shipyard_elohim",
"hgn_shipyard_spg",
"vgr_mothership",
"vgr_mothership_makaan",
"vgr_battlecruiser",
"vgr_carrier",
"vgr_shipyard",
}
... | nilq/small-lua-stack | null |
--@return number numSites
--[Documentation](https://wow.gamepedia.com/API_ArchaeologyMapUpdateAll)
--function ArchaeologyMapUpdateAll() end
--@return string fonts
--[Documentation](https://wow.gamepedia.com/API_GetFonts)
--function GetFonts() end
--[Documentation](https://wow.gamepedia.com/API_GetItemCount)
--functio... | nilq/small-lua-stack | null |
project "Im3d"
kind "StaticLib"
language "C++"
cppdialect "C++17"
staticruntime "On"
targetdir ("Binaries/" .. outputdir .. "/%{prj.name}")
objdir ("Intermediate/" .. outputdir .. "/%{prj.name}")
files
{
"im3d.h",
"im3d_config.h",
"im3d_math.h",
"im3d.cpp"
}
optimize "on"
symbols "off"
filte... | nilq/small-lua-stack | null |
-- Settings lifted from agriffis
-- The utils and plugins have heavily been lifted from
-- https://github.com/alpha2phi/neovim-for-beginner,
-- with an assist from https://codevion.github.io/#!vim/treelsp.md
require "settings"
require "utils"
require("plugins").setup()
| nilq/small-lua-stack | null |
--[[ Element: Master Looter Icon
Toggles visibility of the master looter icon.
Widget
MasterLooter - Any UI widget.
Notes
The default master looter icon will be applied if the UI widget is a texture
and doesn't have a texture or color defined.
Examples
-- Position and size
local MasterLooter = self:... | nilq/small-lua-stack | null |
-- eLua platform interface - PIO
data_en =
{
-- Title
title = "eLua platform interface - PIO",
-- Menu name
menu_name = "PIO",
-- OverviewA
overview = "This part of the platform interface deals with PIO (Programmable Input Output) operations, thus letting the user access the low level input/output facil... | nilq/small-lua-stack | null |
---------------------------------------------
-- Nerve Gas
--
-- Description: Inflicts curse and powerful poison tpz.effect.
-- Type: Magical
-- Wipes Shadows
-- Range: 10' Radial
---------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/globals/settings")
require("scripts... | nilq/small-lua-stack | null |
local GameMode = require 'tetris.modes.gamemode'
local MarathonA2Game = require 'tetris.modes.marathon_a2'
local BigA2Game = MarathonA2Game:extend()
BigA2Game.name = "Big A2"
BigA2Game.hash = "BigA2"
BigA2Game.tagline = "Big blocks in the most celebrated TGM mode!"
function BigA2Game:new()
BigA2Game.super:new()
se... | nilq/small-lua-stack | null |
--[[
AvorionControl - data/scripts/lib/avocontrol-discord.lua
--------------------------------------------------------
Discord helper functions for Avorion
License: BSD-3-Clause
https://opensource.org/licenses/BSD-3-Clause
]]
include("avocontrol-utils")
do
local data = FetchConfigData("Discord", {
... | nilq/small-lua-stack | null |
require "strangepan.util.class"
require "strangepan.util.type"
require "entities.Player"
require "entities.Direction"
PlayerController = buildClass()
local Class = PlayerController
function PlayerController:_init(player)
self:setPlayer(player)
end
function Class:setPlayer(player)
if player then
assertClass(p... | nilq/small-lua-stack | null |
return {'nota','notabedrag','notabedragen','notabel','notabele','notabelen','notaboek','notaboekje','notanummer','notanummers','notariaat','notarieel','notaris','notarisambt','notariskantoor','notarisklerk','notariskosten','notariswet','notariszoon','notatie','notationele','notawisseling','notebook','notelaar','notelar... | nilq/small-lua-stack | null |
local viewerOn = false
function ToggleViewer()
viewerOn = not viewerOn
local DRAW_LINE = GetHashKey("DRAW_LINE")
local RANGE = 50.0
local crosshair_size = 0.15
if viewerOn then
Citizen.CreateThread(
function()
while viewerOn do
Citizen.Wai... | nilq/small-lua-stack | null |
---------------------------------------------------------------------
-- SF Instance class.
-- Contains the compiled SF script and essential data. Essentially
-- the execution context.
---------------------------------------------------------------------
local dsethook, dgethook = debug.sethook, debug.gethook
if SERVE... | nilq/small-lua-stack | null |
---@meta
---@class resty.websocket.client : resty.websocket
local client = {
_VERSION = "0.09"
}
---Instantiates a WebSocket client object.
---
---In case of error, it returns nil and a string describing the error.
---
---An optional options table can be specified.
---
---@param opts? resty.webso... | nilq/small-lua-stack | null |
project "miniz"
uuid "B5E0C06B-8121-426A-8FFB-4293ECAAE29C"
language "C"
location ( "../../build/" .. mpt_projectpathname .. "/ext" )
mpt_projectname = "miniz"
dofile "../../build/premake/premake-defaults-LIBorDLL.lua"
dofile "../../build/premake/premake-defaults.lua"
targetname "openmpt-miniz"
filter... | nilq/small-lua-stack | null |
require('./util')
require('./request')
require('./response')
local Http = require('http')
local Stack = require('stack')
local Path = require('path')
local parse_url = require('url').parse
local parse_query = require('querystring').parse
Stack.errorHandler = function(req, res, err)
if err then
local reason = err
... | nilq/small-lua-stack | null |
-- MUSHclient localization file
-- Written: Friday, 03 February 2017 at 13:07:42
-- Static messages
messages = {
-- /cygdrive/c/source/mushclient/ActivityView.cpp:122
["Activity List"] =
"",
-- /cygdrive/c/source/mushclient/DDV_validation.cpp:41
["This field may not be blank"] =
"",
--... | nilq/small-lua-stack | null |
local key_input = ECS.System({COMPONENTS.key_input}, {"replay", COMPONENTS.record})
function key_input:update(dt)
local e
for i = 1, self.pool.size do
e = self.pool:get(i)
local inputs = e:get(COMPONENTS.key_input).inputs
for key, func in pairs(inputs.down) do
if love.keyboard.isDown(key) then
GAME.curr... | nilq/small-lua-stack | null |
local _, L = ...;
if GetLocale() == "enUS" then
L["Insert QuestID for info:"] = "";
L["Check"] = "";
L["Cancel"] = "";
L["Quest ID \124cff9d9d9d[%s]\124r %s"] = "";
L["has already been completed"] = "";
L["has not yet been completed"] = "";
L["NO DATABASE INFO FOUND"] = "";
L[": wrong type va... | nilq/small-lua-stack | null |
--[[
Author: Miqueas Martinez (miqueas2020@yahoo.com)
Date: 2020/09/10
License: MIT (see it in the repository)
Git Repository: https://github.com/M1que4s/TermColors
]]
local TermColors = {}
local Tokens = {
-- Attributes
"None", "Bold", "Dim", "Italic", "Underline", "DobleU", "Blink", "Reverse", "Hidden", ... | nilq/small-lua-stack | null |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local common = ReplicatedStorage:WaitForChild("common")
local AssetCatagories = require(common:WaitForChild("AssetCatagories"))
local Assets = require(common:WaitForChild("Assets"))
return function(equipped, action, cataId)
equipped = equipped or {}
... | nilq/small-lua-stack | null |
return {'smeden','smeder','smederij','smedig','smeedbaar','smeedbaarheid','smeedijzer','smeedijzeren','smeedkunst','smeedstaal','smeedtang','smeedwerk','smeekbede','smeekbrief','smeekdicht','smeekgebed','smeekolen','smeekschrift','smeer','smeerbaar','smeerboel','smeerbuik','smeerder','smeergeld','smeergeldaffaire','sme... | nilq/small-lua-stack | null |
--[[
A biome map (bm_*) collects a group of biomes from biome definition files (could be all from the
same or could be from different ones) and decides how to map them to the world surface.
A biome map provides a list of biomes, and a biome function that maps those biomes to the surface.
Like most biome maps, this one ... | nilq/small-lua-stack | null |
--
-- blat 36 modulefile
--
-- "URL: https://www.psc.edu/resources/software"
-- "Category: Biological Sciences"
-- "Description: BLAT produces two major classes of alignments (1) at the DNA level between two sequences that are of 95% or greater identity, but which may include large inserts; (2) at the protein or transl... | nilq/small-lua-stack | null |
local t = require('luatest')
local g = t.group()
local http_lib = require('http.lib')
g.test_template = function()
t.assert_equals(http_lib.template("<% for i = 1, cnt do %> <%= abc %> <% end %>",
{abc = '1 <3>&" ', cnt = 3}),
' 1 <3>&" 1 <3>&" 1 <3>&&quo... | nilq/small-lua-stack | null |
local _, private = ...
if private.isClassic then return end
--[[ Lua Globals ]]
-- luacheck: globals
--[[ Core ]]
local Aurora = private.Aurora
local Base, Hook, Skin = Aurora.Base, Aurora.Hook, Aurora.Skin
local Color = Aurora.Color
do --[[ AddOns\Blizzard_TokenUI\Blizzard_TokenUI.lua ]]
function Hook.TokenFram... | nilq/small-lua-stack | null |
function event_say(e)
if(e.message:findi("Hail")) then
e.self:Say("Greetings, " .. e.other:GetCleanName() .. ", Perhaps you've come to purchase some of my rare supplies? I have a special blend of eleven herbs and spices......oh wait.....I'm sold out of that......anyway. What can I do for you?");
elseif(e.message:f... | nilq/small-lua-stack | null |
local gauntlet_data = require "gauntlet_data"
local BATTLE_STAGE_DEFS = {}
-- Taken from http://forums.therockManexezone.com/topic/8831451/1/
BATTLE_STAGE_DEFS.NUM_STAGES = 127
function BATTLE_STAGE_DEFS.is_lava_panel(x, y, battle_stage)
if battle_stage == 0x0B then
return
(x == 2 and y == 1... | nilq/small-lua-stack | null |
--
-- option.lua
-- Work with the list of registered options.
-- Copyright (c) 2002-2009 Jason Perkins and the Premake project
--
premake.option = { }
--
-- The list of registered options.
--
premake.option.list = { }
--
-- Register a new option.
--
-- @param opt
-- The new option object.
--
function prema... | nilq/small-lua-stack | null |
io.stdout:setvbuf("no")
love.filesystem.load("libs/mini_core.lua")()
love.filesystem.load("libs/escena.lua")()
love.filesystem.load("libs/utf8.lua")()
love.filesystem.load('libs/ayowoki.lua')()
love.filesystem.load('libs/delepanto.lua')()
love.filesystem.load('libs/boton.lua')()
love.filesystem.load('libs/dial... | nilq/small-lua-stack | null |
workspace "RayTracerChallange"
configurations { "Debug", "Release" }
platforms {"x64"}
language "C++"
cppdialect "C++17"
targetdir "bin/%{cfg.buildcfg}"
location ("build/" .. _ACTION)
filter "action:vs*"
toolset "msc-ClangCL"
filter "platforms:x64"
architecture "x64"
filter { "configu... | nilq/small-lua-stack | null |
local skynet = require "skynet"
local socket = require "skynet.socket"
-- 简单echo服务
function echo(c_id, addr)
socket.start(c_id)
local str
while true do
str = socket.readline(c_id)
if str then
skynet.fork(function()
skynet.error("recv "..str)
skynet.sleep(math.random(1, 5)*100)
socket.write(c_id,... | nilq/small-lua-stack | null |
local createEnum = import("../createEnum")
return createEnum("MouseBehavior", {
Default = 0,
LockCenter = 1,
LockCurrentPosition = 2,
}) | nilq/small-lua-stack | null |
-- MIT License
--
-- Copyright (c) Ruvann Beukes
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, mod... | nilq/small-lua-stack | null |
--Is daygame worth it? A little model designed to find that out.
--Also, calculating the optimal number of approaches.
--TODO: Sources for nearly all of these numbers
--TODO: How often do people who do daygame sleep with their lays?
--Probably has quadratically diminishing returns on each time they have sex.
--A bit ... | nilq/small-lua-stack | null |
-- видеоскрипт для запросов потоков Rezka по ID кинопоиска и IMDB (31/01/22)
-- nexterr, west_side
-- ## открывает подобные ссылки ##
-- https://voidboost.net/embed/1227967
-- https://voidboost.net/embed/tt0108778
-- ##
if m_simpleTV.Control.ChangeAddress ~= 'No' then return end
if not m_simpleTV.Control.Cur... | nilq/small-lua-stack | null |
--[[
seq_logger, created by Nathan C (Era#1337)
Version: 1.0
seq_logger is a logging framework that can send events to Seq (https://datalust.co/seq),
a powerful logging aggregation tool.
PLEASE READ README.md AND IMPORTANT CONFIGURATION BEFORE USING.
MIT License
Copyright (c) 2020 Nathan C
Permission is hereby gr... | nilq/small-lua-stack | null |
slot0 = class("WSPortLeft", import("...BaseEntity"))
slot0.Fields = {
map = "table",
rtVanguard = "userdata",
rtFleet = "userdata",
gid = "number",
rtShip = "userdata",
transform = "userdata",
rtBG = "userdata",
rtMain = "userdata",
fleet = "table"
}
slot0.Listeners = {
onUpdateSelectedFleet = "OnUpdateSelect... | nilq/small-lua-stack | null |
-----------------------------------------------
--- LDB:Init(): Initialize registry tables and metatable function closures.
--
function LibDataBroker.Init(lib)
-- One dataobject metatable (domt) for all dataobjects. Versions: 1 <= MINOR <= 4
lib.domt = lib.domt or {}
local domt = lib.domt
domt.NOTE = lib.MetaTable... | nilq/small-lua-stack | null |
return{
Name="DragonEngine.ListModules",
Aliases={"de.listmod"},
Description="Dispalys a list of currently loaded modules.",
Group="DefaultAdmin",
Args={},
Run=function(Context)
Context:Reply(string.format("%-24s│ %-24s","Module Name","Module Type"))
Context:Reply(string.rep("▬",48))
for ModuleName,_ in... | nilq/small-lua-stack | null |
local hsl = require('lib.hsl')
local map
local function staleViewStencil()
local w, h = map.tile_width, map.tile_height
local seen = map.seen
for y=1,map.grid_height do
for x=1,map.grid_width do
if seen[y][x] then
g.rectangle('fill', (x - 1) * w, (y - 1) * h, w, h)
end
end
end
end
... | nilq/small-lua-stack | null |
local PANEL = {}
AccessorFunc( PANEL, "m_iSelectedNumber", "SelectedNumber" )
Derma_Install_Convar_Functions( PANEL )
function PANEL:Init()
self:SetSelectedNumber( 0 )
self:SetSize( 60, 30 )
end
function PANEL:UpdateText()
local str = input.GetKeyName( self:GetSelectedNumber() )
if ( !str ) then str = "NONE... | nilq/small-lua-stack | null |
local tostring, tonumber, select, type, getmetatable, setmetatable, rawget = tostring, tonumber, select, type, getmetatable, setmetatable, rawget
local Types = require('types')
local Any, Array = Types.Any, Types.Array
local OMeta = require('ometa')
local utils = require('utils')
local asc = require('abstractsyntax_com... | nilq/small-lua-stack | null |
ConstraintMotion = {}
---@type number
ConstraintMotion.Free = 0
---@type number
ConstraintMotion.Locked = 2
---@type number
ConstraintMotion.Limited = 1
| nilq/small-lua-stack | null |
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local GP = LibStub("LibGearPoints-1.2")
local DLG = LibStub("LibDialog-1.0")
DLG:Register("EPGP_CONFIRM_GP_CREDIT", {
text = "Unknown Item",
icon = [[Interface\DialogFrame\UI-Dialog-Icon-AlertNew]],
buttons = {
{
text = _G.ACCEPT,
on_click = fu... | nilq/small-lua-stack | null |
-- Objects
local GuiService = Instance.new("ScreenGui")
local Menu = Instance.new("TextButton")
local Chat = Instance.new("Frame")
local MenuBG = Instance.new("ImageLabel")
local Close = Instance.new("TextButton")
local SetBounty = Instance.new("TextButton")
local Namee = Instance.new("TextBox")
local DeleteEnvironme... | nilq/small-lua-stack | null |
local ffi = require "ffi"
local bit = require "bit"
local base = require "eelua.core.base"
local C = ffi.C
local ffi_new = ffi.new
local ffi_cast = ffi.cast
local send_message = base.send_message
ffi.cdef [[
typedef struct {
HMENU hmenu;
} Menu;
static const UINT MF_STRING = 0x00000000;
st... | nilq/small-lua-stack | null |
addEventHandler("onResourceStart", resourceRoot,function()
setJetpackMaxHeight(101.82230377197)
setWaveHeight(0)
setFPSLimit(60)
setMapName("PSZ Freeroam")
setGameType("PSZ Freeroam")
setRuleValue("Gamemode", "PSZ Freeroam")
setRuleValue("WWW", "https://pszmta.pl")
setCloudsEnabled(false)
... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Northern San d'Oria
-- NPC: Excenmille
-- Type: Ballista Pursuivant
-- !pos -229.344 6.999 22.976 231
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)... | nilq/small-lua-stack | null |
require("framework.shared.debug")
require("framework.shared.functions")
require("framework.shared.errors")
json = require("framework.shared.json")
| nilq/small-lua-stack | null |
--//////////////////////////////////////////////////////////////////////
--************************
--MessageLog
--************************
MessageLog = {}
MessageLog.__index = MessageLog
function MessageLog.new()
self = setmetatable({}, MessageLog)
self.messageQueue = {}
self.messageActive = {}
self.timer =... | nilq/small-lua-stack | null |
--- Test yielding within a tail call
run(function()
local function yieldTail(n)
assertEquals(1, coroutine.yield(1))
assertEquals(2, coroutine.yield(2))
if n > 0 then
return yieldTail(n - 1)
end
end
yieldTail(5)
end)
| nilq/small-lua-stack | null |
local config = require 'config'
local function getRange(start, finish, lines)
local start_row, start_col = lines:rowcol(start)
local finish_row, finish_col = lines:rowcol(finish)
return {
start = {
line = start_row - 1,
character = start_col - 1,
},
['end']... | nilq/small-lua-stack | null |
local s_find = string.find
local s_sub = string.sub
local t_insert = table.insert
--将hash表的key值转换为number类型输出
local _M = function(str,p,ismatch)
local r = {}
local last = str
local s,e = s_find(last,p,1,not ismatch)
while s do
local s1 = s_sub(last,1,s-1)
if #s1 > 0 then
t_insert(r,s1)
end
last = s_sub(la... | nilq/small-lua-stack | null |
local CUSTOMFAILSTR = GetModConfigData("CUSTOMFAILSTR")
local AddPlayerPostInit = AddPlayerPostInit
local AddPrefabPostInit = AddPrefabPostInit
-- local AddPrefabPostInitAny = AddPrefabPostInitAny
local AddClassPostConstruct = AddClassPostConstruct
local modimport = modimport
GLOBAL.setfenv(1, GLOBAL)
STRCODE_HEADER ... | nilq/small-lua-stack | null |
local http = require "http"
local io = require "io"
local nmap = require "nmap"
local shortport = require "shortport"
local stdnse = require "stdnse"
local string = require "string"
local table = require "table"
description = [[
Enumerates usernames in Wordpress blog/CMS installations by exploiting an
information disc... | nilq/small-lua-stack | null |
AddCSLuaFile();
ENT.Base = "base_anim";
ENT.Type = "anim";
ENT.PrintName = "";
ENT.Author = "";
ENT.Contact = "";
ENT.Purpose = "";
ENT.Instructions = "";
ENT.Spawnable = false;
ENT.AdminSpawnable = false;
ENT.AutomaticFrameAdvance = true;
function ENT:PostEntityPaste( ply, ent, tab )
GAMEMODE:LogSe... | nilq/small-lua-stack | null |
local paq = require("paq")
local g = vim.g
local opt = vim.opt
local cmd = vim.api.nvim_command
g.mapleader = "\\"
g.maplocalleader = ","
paq {
"savq/paq-nvim",
"nvim-lualine/lualine.nvim",
"ckipp01/stylua-nvim",
"rktjmp/lush.nvim",
}
opt.runtimepath:append("~/kitchen/teaspoon.nvim")
opt.termguicolors = tr... | nilq/small-lua-stack | null |
local M = {}
local g = vim.g
local config = vim.g
M.get_theme_tb = function(name, type)
local default_path = "base46.themes." .. name
local user_path = "custom.themes." .. name
local present1, default_theme = pcall(require, default_path)
local present2, user_theme = pcall(require, user_path)
if presen... | nilq/small-lua-stack | null |
local name = 'icons'
local utils = require('utils').start_script(name)
local M = {}
M.sign_icons = {
Error = "",
Warn = "",
Hint = "",
Info = "",
Okay = "✅",
}
M.kind_icons = {
Text = "",
Method = "m",
Function = "",
Constructor = "",
Field = "",
Variable = "",
Class = "",
Interfac... | nilq/small-lua-stack | null |
slot0 = class("AmusementParkShopMediator", import("view.base.ContextMediator"))
slot0.ON_ACT_SHOPPING = "AmusementParkShopMediator:ON_ACT_SHOPPING"
slot0.GO_SCENE = "GO_SCENE"
slot0.register = function (slot0)
slot2 = getProxy(ActivityProxy).getActivityByType(slot1, ActivityConst.ACTIVITY_TYPE_SHOP_PROGRESS_REWARD)
... | nilq/small-lua-stack | null |
--[[
file:gameEnum.lua
desc:游戏枚举
auth:Caorl Luo
]]
local mgrEnum = require("managerEnum")
local class = require("class")
---@class gameEnum:managerEnum @游戏枚举
local enum = class(mgrEnum)
local this = enum
---构造
function enum:ctor()
end
---清除数据
function enum:dataClear()
end
---游戏单元
---@return senum
func... | nilq/small-lua-stack | null |
sptbl["biquad"] = {
files = {
module = "biquad.c",
header = "biquad.h",
--example = "ex_tone.c",
},
func = {
create = "sp_biquad_create",
destroy = "sp_biquad_destroy",
init = "sp_biquad_init",
compute = "sp_biquad_compute",
},
params = {
... | nilq/small-lua-stack | null |
-- * _JOKER_VERSION: 0.0.1 ** Please do not modify this line.
--[[----------------------------------------------------------
Joker - Jokes, Riddles, Fun Facts, & Other Tomfoolery
----------------------------------------------------------
*
* COMPILATION: Your Custom Ready Check messages!
*
* SOURCES:
* It's... | nilq/small-lua-stack | null |
local item_dao = LoadApplication('models.dao.item'):new()
local page_dao = LoadApplication('models.dao.page'):new()
local ItemService = {}
function ItemService:getItem(uid)
return item_dao:getItem(uid)
end
function ItemService:save(data)
return item_dao:save(data)
end
function ItemService:getPage(item_id)
return i... | nilq/small-lua-stack | null |
local typedefs = require "kong.db.schema.typedefs"
local strings_array = {
type = "array",
default = {},
elements = { type = "string" },
}
local strings_array_record = {
type = "record",
fields = {
{ body = strings_array },
{ headers = strings_array },
{ querystring = strings_array },
},
}
... | nilq/small-lua-stack | null |
local json = require 'json-beautify'
local VERSION = "2.4.2"
local package = require 'package.package'
local fsu = require 'fs-utility'
package.version = VERSION
package.__metadata = {
id = "3a15b5a7-be12-47e3-8445-88ee3eabc8b2",
publisherDisplayName = "sumneko",
publisherId = "fb626675-24cf-4881-8c1... | nilq/small-lua-stack | null |
local json = require("lib/json")
barrel = {}
barrel.new = function(x, y, physicsWorld)
local self = {}
self.x = x
self.y = y
self.playerX = 0
self.playerY = 0
self.scale = 0
self.enemySize = 1
self.enemyOffsetX = 32
self.enemyOffsetY = 32
self.visible = true
self.physics =... | nilq/small-lua-stack | null |
ITEM.name = "Light body armor"
ITEM.desc = ""
ITEM.model = "models/Items/BoxMRounds.mdl"
ITEM.defDurability = 1000
ITEM.damageReduction = 0.15
ITEM.replacement = nil
ITEM.noCollisionGroup = true
ITEM.price = 50000
ITEM.speedModify = -10
ITEM.rarity = { weight = 20 }
-- ix.anim.SetModelClass(ITEM.replacement, "play... | nilq/small-lua-stack | null |
resource_type 'gametype' { name = 'DevoNetwork' }
client_script 'fivem_client.lua' | nilq/small-lua-stack | null |
DefineClass.XCreditsWindow = {
__parents = { "XScrollArea" },
paused = false,
time_step = 100,
Clip = "self",
Background = RGBA(0, 0, 0, 58),
Margins = box(0, 0, 0, -200),
ChildrenHandleMouse = false,
VScroll = "idScrollCredits",
}
function XCreditsWindow:Init()
XText:new({
Id = "idCredits",
HAlign = ... | nilq/small-lua-stack | null |
--[[*]]-- RotatorsLib --[[*]]--
require "rLib.Shared"
require "rLib.Commands"
require "rLib.ContextMenu"
require "rLib.SidePanel"
require "rLib.UI"
require "rLib.Vehicles.Armor"
require "rLib.Events/Debug"
require "rLib.Events/Vehicle"
require "rLib.UI/VehicleOverlayEditor"
return rLib
| nilq/small-lua-stack | null |
if require("Internet").run("https://raw.githubusercontent.com/XaverXD/OSBX/master/Installer/Main.lua") == nil then
computer.shutdown(true)
end
| nilq/small-lua-stack | null |
mystical_agriculture.register_normal_ore_crop("lapis_stone","lapis:lapis_stone","Lapis",2,4,mystical_agriculture.get_inv_image("lapis:lapis_stone"))
mystical_agriculture.register_normal_ore_crop("pyrite_lump","lapis:pyrite_lump","Pyrite",2,4,mystical_agriculture.get_inv_image("lapis:pyrite_lump")) | nilq/small-lua-stack | null |
-- EFM clipboard? - http://www.extrabit.com/copyfilenames/
-- =============================================================
-- Copyright Roaming Gamer, LLC. 2009-2016
-- =============================================================
-- License
-- =============================================================... | nilq/small-lua-stack | null |
local path = (...):gsub('%.[^%.]+$', '')
local util = require(path .. '.util')
local ffi = require('ffi')
local format = string.format
local function error(...)
return _G.error(..., 0)
end
local types = {}
local registered_types = {}
local global_schema = '__global__'
function types.get_env(schema_name)
if sch... | nilq/small-lua-stack | null |
local Migration = {}
function Migration.pack(data, migrations)
return {
data = data,
migrationVersion = #migrations,
}
end
local function assertValidMigration(oldValue, migrated, migrationVersion)
if typeof(migrated) ~= "table" then
error(string.format("Migration %i must return a table", migrationVersion))
... | nilq/small-lua-stack | null |
#!/usr/bin/env tarantool
local inspect = require 'libs/inspect'
local box = box
local scripts = require 'scripts'
local http_system = require 'http_system'
local scripts_drivers = require 'scripts_drivers' --TODO: переименовать в соотвествии с официальной семантикой
local scripts_webevents = require 'scripts_webevent... | nilq/small-lua-stack | null |
-- hypercube.
--
-- @eigen
--
--
-- K1 held is SHIFT
--
-- E1: zoom in/out
-- E2: camera x axis
-- E3: camera y axis
--
-- SHIFT+K2: toggle multi-axis
-- SHIFT+E1: rotate x axis
-- SHIFT+E2: rotate y axis
-- SHIFT+E3: rotate z axis
-- K2: toggle auto-rotate
-- K3: emmergency stop
-- ----------------------------------... | nilq/small-lua-stack | null |
-- StandService.lua
-- Coltrane Willsey
-- 2022-03-13 [13:33]
local common = game:GetService("ReplicatedStorage").common
local Packages = common.Packages
local Promise = require(Packages.promise)
local Trove = require(Packages.trove)
local Tween = require(Packages.tween)
local Knit = require(Packages.knit)
local new ... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: North Gustaberg
-- NPC: Hunting Bear
-- Involved in Quest "The Gustaberg Tour"
-- !pos -232.415 40.465 426.495 106
-----------------------------------
function onTrade(player, npc, trade)
end
function onTrigger(player, npc)
player:startEvent(20)
end
function onEvent... | nilq/small-lua-stack | null |
-- two library
-- bgfx dependency module
group "bgfx"
if _OPTIONS["webgpu"] then
_OPTIONS["with-webgpu"] = ""
end
dofile(path.join(BX_DIR, "scripts/bx.lua"))
dofile(path.join(BIMG_DIR, "scripts/bimg.lua"))
dofile(path.join(BIMG_DIR, "scripts/bimg_decode.lua"))
dofile(path.join(BIMG_DIR, "scripts/bimg_encode.lua"... | nilq/small-lua-stack | null |
-- This file is part of SUIT, copyright (c) 2016 Matthias Richter
local BASE = (...):match('(.-)[^%.]+$')
local theme = {}
theme.cornerRadius = 4
theme.color = {
normal = {bg = { 0.25, 0.25, 0.25}, fg = {0.73,0.73,0.73}},
hovered = {bg = { 0.19,0.6,0.73}, fg = {1,1,1}},
active = {bg = {1,0.6, 0}, fg = {1,1,... | nilq/small-lua-stack | null |
-- Sentry.io integration for remote error monitoring
-- @filtering Server
-- @author Validark
--[[
Example, client:
local Try = require("Try")
local Sentry = require("Sentry")
Try(function(x) error("test client error " .. x) end, "1")
:Catch(Sentry.Post)
--]]
-- Configuration
local DSN = "https://c65bfdd4c080... | nilq/small-lua-stack | null |
local SyntaxKind = require("lunar.ast.syntax_kind")
local SyntaxNode = require("lunar.ast.syntax_node")
local SequentialFieldDeclaration = setmetatable({}, {
__index = SyntaxNode,
})
SequentialFieldDeclaration.__index = setmetatable({}, SyntaxNode)
function SequentialFieldDeclaration.new(value)
return SequentialFie... | nilq/small-lua-stack | null |
local theme = {}
function theme.highlights(colors, config)
local function remove_background(group)
group["bg"] = colors.none
end
local function load_syntax()
-- Syntax highlight groups
local syntax = {
-- int, long, char, etc.
Type = { fg = colors.yellow },
-- static, register, vo... | nilq/small-lua-stack | null |
local bytecode = require "luavm.bytecode"
require "luavm.compiler"
require "luavm.vm51"
local hello = io.open("hello.bcasm","r"):read("*a")
hello = compiler.compile(hello)
print(assert(loadstring(bytecode.save(hello)))())
print(vm.lua51.run(hello))
| 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.