content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
object_building_general_boss_nass_dungeon = object_building_general_shared_boss_nass_dungeon:new {
}
ObjectTemplates:addTemplate(object_building_general_boss_nass_dungeon, "object/building/general/boss_nass_dungeon.iff")
| nilq/small-lua-stack | null |
--CN汉化Jiao1911、Crazy
-- define all language properties
local lang = {
common = {
welcome = "歡迎來到服務器,按K來使用菜單.~n~",
no_player_near = "~r~你附近沒有玩家.",
invalid_value = "~r~無效的值.",
invalid_name = "~r~無效的名字.",
not_found = "~r~沒有找到.",
request_refused = "~r~請求被拒絕.",
wearing_uniform = "~r~小心, 你穿著... | nilq/small-lua-stack | null |
-- Prepare the current save for devel/find-offsets
--[====[
devel/prepare-save
==================
.. warning::
THIS SCRIPT IS STRICTLY FOR DFHACK DEVELOPERS.
This script prepares the current savegame to be used
with `devel/find-offsets`. It CHANGES THE GAME STATE
to predefined values, and initiates an immediate... | nilq/small-lua-stack | null |
#!/usr/bin/lua
--[[
Offline generator of module MovePokés-data.
Running this locally creates automatically the data module in the parent
directory. Supposing this is inside the "static" subdir of wiki-lua-modules
this creates the module in the right place for local testing, and of course
the result can be uploaded by... | nilq/small-lua-stack | null |
local surface_SetDrawColor = surface.SetDrawColor
local surface_DrawRect = surface.DrawRect
local surface_SetMaterial = surface.SetMaterial
local surface_DrawTexturedRectRotated = surface.DrawTexturedRectRotated
local surface_DrawTexturedRect = surface.DrawTexturedRect
local surface_SetTextColor = surface.SetTextC... | nilq/small-lua-stack | null |
-- Begin
os.loadAPI("/script/util/common")
os.loadAPI("/script/util/fileutil")
-- Setup our variables
local monitor = common.monitor
local modem = common.modem
local writeLine = common.writeLine
-- Begin Server Startup
rednet.open("back")
rednet.host("AUTH", "AUTH-SERVER")
runScript = os.run({}, "/script/run-server"... | nilq/small-lua-stack | null |
-- Before we start modifying dice, let's remember that in Lua you can save values in variables. This can be useful to store a die you created, and then use it in multiple places. For instance you could create a Fudge die, and then print it, plot it, and compute the sum of 5 of them:
fudge = d{-1, 0, 1}
print "A fudge... | nilq/small-lua-stack | null |
local customDebugLines = {}
local isDebugging = false
function LSP.AddDebugLines(startp, endp, col)
if isDebugging then
local customDebug = {}
customDebug.start = startp
customDebug.endpos = endp
customDebug.life = CurTime() + 1
customDebug.color = col or Color(255,255,0,50)
table.insert(customDebugLines,... | nilq/small-lua-stack | null |
--[[
Clock Rings by londonali1010 (2009)
This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua script.
IMPORTANT: if you are using the 'cpu'... | nilq/small-lua-stack | null |
local startsWith = StringStartsWith
local prefixMap
local gameModeMap
local tempFileName = "mapPrefix.json"
function Server.GetMapNameWithIndex(index, mapCycle)
local mapCycle = mapCycle or MapCycle_GetMapCycle()
local name = mapCycle.maps[index]
local mode
if type(name) == "table" then
name... | nilq/small-lua-stack | null |
#!/usr/bin/env lua
--
-- Lists the logged user's followers and finds new follows/unfollows.
--
local cfg = require "_config"()
local twitter = require "luatwit"
local util = require "luatwit.util"
local pl_file = require "pl.file"
local tablex = require "pl.tablex"
-- initialize the twitter client
local oauth_params =... | nilq/small-lua-stack | null |
local spawnedCocaLeaf = 0
local CocaPlants = {}
local isPickingUp, isProcessing = false, false
Citizen.CreateThread(function()
while true do
Citizen.Wait(10)
local coords = GetEntityCoords(PlayerPedId())
if GetDistanceBetweenCoords(coords, Config.CircleZones.CokeField.coords, true) < 50 then
SpawnCocaPlant... | nilq/small-lua-stack | null |
cc.FileUtils:getInstance():setPopupNotify(false)
cc.FileUtils:getInstance():addSearchPath("src/")
cc.FileUtils:getInstance():addSearchPath("res/")
cc.FileUtils:getInstance():addSearchPath("src/app/views/")
cc.FileUtils:getInstance():addSearchPath("src/app/common/")
cc.FileUtils:getInstance():addSearchPath("src/app/pro... | nilq/small-lua-stack | null |
--- nekowin: OpenGL and Vulkan compatible library for context / surface window generation
--- licence: Apache, see LICENCE.md
--- file: premake5 - main premake configuration file
--- author: Karl-Mihkel Ott
workspace "nwin"
cleancommands { "make clean %{cfg.buildcfg}" }
configurations { "Debug", "Release" }
... | nilq/small-lua-stack | null |
object_tangible_furniture_technical_guild_screen_imp_1 = object_tangible_furniture_technical_shared_guild_screen_imp_1:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_technical_guild_screen_imp_1, "object/tangible/furniture/technical/guild_screen_imp_1.iff")
| nilq/small-lua-stack | null |
-- Copyright (C) 2018 The Dota IMBA Development Team
-- Copyright (C) 2015 bmddota
--
-- 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
--
--... | nilq/small-lua-stack | null |
--[[
< CATHERINE > - A free role-playing framework for Garry's Mod.
Development and design by L7D.
Catherine 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 3 of the License, or
(at your option) an... | nilq/small-lua-stack | null |
local g = vim.g
local cmd = vim.cmd
cmd[[
set termguicolors
let g:equinusocio_material_style = 'default'
set fillchars+=vert:│
colorscheme equinusocio_material
set background=dark
]]
| nilq/small-lua-stack | null |
-- << shop_menu
local wesnoth = wesnoth
local creepwars = creepwars
local T = wesnoth.require("lua/helper.lua").set_wml_tag_metatable {}
local ipairs = ipairs
local math = math
local string = string
local table = table
local tostring = tostring
local event_side
local event_unit
local err = function(message)
creep... | nilq/small-lua-stack | null |
local NAMESPACE = "METAER."
------------------------------------------------------------------------------------------------------------------------
-- Meta End Rewards Server Controller
-- Author Morticai (META) - (https://www.coregames.com/user/d1073dbcc404405cbef8ce728e53d380)
-- Date: 2021/4/22
-- Version 0.2.0
---... | nilq/small-lua-stack | null |
local ffi = require "ffi"
local bit = require "bit"
local bor = bit.bor
require "OpenVG"
local OpenVG = {
Lib = ffi.load "OpenVG";
}
ffi.cdef[[
typedef struct {
VGPaint Handle;
} OVGPaint;
typedef struct {
VGPath Handle;
} OVGPath;
]]
--[[
Paint object
--]]
Paint = ffi.typeof("OVGPaint")
Paint_mt = {
__new ... | nilq/small-lua-stack | null |
--[[
MIT License
Copyright (c) 2018 JWRR.COM
git clone https://github.com/jwrr/lued.git
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 righ... | nilq/small-lua-stack | null |
CollectionatorRecipeScannerFrameMixin = CreateFromMixins(CollectionatorScannerFrameMixin)
function CollectionatorRecipeScannerFrameMixin:OnLoad()
CollectionatorScannerFrameMixin.OnLoad(self)
self.SCAN_START_EVENT = Collectionator.Events.RecipeLoadStart
self.SCAN_END_EVENT = Collectionator.Events.RecipeLoadEnd
... | nilq/small-lua-stack | null |
---@type Plugin
local plugin = ...
local shared = plugin:require('shared')
local persistence = plugin:require('persistence')
---@param minutes integer
---@return string
local function getCleanReadableTime (minutes)
local str = ''
local hours = math.floor(minutes / 60)
if hours > 0 then
minutes = minutes - (hour... | nilq/small-lua-stack | null |
-- Toggles if the issuing player is cloaked or uncloaked
minetest.register_chatcommand("cloak", {
privs = {
interact = true,
cloak = true -- Require our cloak priv
},
func = function(name, param)
local player = minetest.get_player_by_name(name) or nil
if player == nil then
... | nilq/small-lua-stack | null |
----------------------------------------------------------------
-- Copyright (c) 2012 Klei Entertainment Inc.
-- All Rights Reserved.
-- SPY SOCIETY.
----------------------------------------------------------------
local resources = include( "resources" )
local unitrig = include( "gameplay/unitrig" )
local doorrig2 =... | nilq/small-lua-stack | null |
ITEM.name = "Key for handcuffs"
ITEM.model = Model("models/mosi/fallout4/props/junk/tritool.mdl")
ITEM.description = "Key for open a handcuffs"
ITEM.category = "Miscellaneous"
ITEM.width = 1
ITEM.height = 1
ITEM.chance = 42
ITEM.rare = true
| nilq/small-lua-stack | null |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( "shared.lua" )
function ENT:Initialize()
self.Entity:PhysicsInit( SOLID_VPHYSICS )
self.Entity:SetMoveType( MOVETYPE_VPHYSICS )
self.Entity:SetSolid( SOLID_VPHYSICS )
local phys = self.Entity:GetPhysicsObject()
... | nilq/small-lua-stack | null |
--漆黒の薔薇の開華
function c99092624.initial_effect(c)
aux.AddCodeList(c,73580471)
--activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c99092624.target)
e1:SetOperation(c99092624.activate)
... | nilq/small-lua-stack | null |
-- Copyright 2018-2019 Lienol <lawlienol@gmail.com>
module("luci.controller.pppoe-server", package.seeall)
function index()
if not nixio.fs.access("/etc/config/pppoe-server") then return end
entry({"admin", "nas", "pppoe-server"},
alias("admin", "nas", "pppoe-server", "settings"),
_("PPPoE... | nilq/small-lua-stack | null |
return {
["memuse-ipv4-frag-reassembly-buffer"] = 463482888,
["memuse-ipv6-frag-reassembly-buffer"] = 464549592,
}
| nilq/small-lua-stack | null |
local ADDON, namespace = ...
local db, dataobj
local ldb = LibStub:GetLibrary("LibDataBroker-1.1",true)
dataobj = ldb:NewDataObject("Broker_simpleAP", {
type = "data source",
icon = "Interface\\Addons\\"..ADDON.."\\icon.tga",
label = "Simple AP",
text = "-",
OnClick = function(self, button, ...)
if button == "R... | nilq/small-lua-stack | null |
local lsp = vim.lsp
local lspconfig = require "lspconfig"
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true
local on_attach = function(client, server)
-- require'completion'.on_attach(client)
-- let efm server handles lintin... | nilq/small-lua-stack | null |
ESX = nil
IsAdmin = nil
Blacklist = {
`adder`,
`prototipo`,
}
SavedVehicles = {}
SavedClothes = {}
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
while true do
if IsControlJustPressed(0, 182) then
OpenMenu()
... | nilq/small-lua-stack | null |
local helpers = require('test.functional.helpers')(after_each)
local Screen = require('test.functional.ui.screen')
local clear, feed = helpers.clear, helpers.feed
local source = helpers.source
describe('ui/ext_popupmenu', function()
local screen
before_each(function()
clear()
screen = Screen.new(60, 8)
... | nilq/small-lua-stack | null |
local startingboss = {}
local startingdng = {}
local playertracker = {}
local hub = {}
local modname = minetest.get_current_modname()
local modpath = minetest.get_modpath(modname)
local function myremove(tbl, key)
tbl[key]=nil
end
local function myinsert(tbl,val)
local i =1
while tbl[i] do
... | nilq/small-lua-stack | null |
--local Node = require "espalier/node"
--local Grammar = require "espalier/grammar"
local require = assert(require)
local L = require "espalier/elpatt"
local Node = require "espalier/node"
local Grammar = require "espalier/grammar"
local P, R, E, V, S, D = L.P, L... | nilq/small-lua-stack | null |
--!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... | nilq/small-lua-stack | null |
--Transport_Drones
appmod.blacklist['request-depot'] = true
appmod.blacklist['supply-depot'] = true
appmod.blacklist['fuel-depot'] = true
appmod.blacklist['fluid-depot'] = true
appmod.blacklist['buffer-depot'] = true
--Transport_Drones_Addon_PPD
appmod.blacklist['passive-supply-depot'] = true
| nilq/small-lua-stack | null |
if not love then love = {} end
if not love.math then love.math = {} end
return {
["random-normal"] = { tag = "var", contents = "love.math.randomNormal", value = love.math.randomNormal},
["triangulate"] = { tag = "var", contents = "love.math.triangulate", value = love.math.triangulate},
["noise"] = { tag = "var", con... | nilq/small-lua-stack | null |
-- require('nvim-autopairs').setup({
-- --- map_cr = true --- for when not using completion plugin
-- check_ts = true
-- })
--
-- -- with cmp auto completion
-- local cmp_autopairs = require('nvim-autopairs.completion.cmp')
-- local cmp = require('cmp')
-- cmp.event:on(
-- 'confirm_done',
-- cmp_autopairs.on_co... | nilq/small-lua-stack | null |
---------------------------------------------------
-- @Author: Emil Zhai (root@derzh.com)
-- @Date: 2018-03-19 11:00:29
-- @Last Modified by: Emil Zhai (root@derzh.com)
-- @Last Modified time: 2018-03-19 17:17:06
---------------------------------------------------
--------------------------------------------------... | nilq/small-lua-stack | null |
---@brief [[
--- Support for abbreviations (unicode character replacement).
---@brief ]]
---@tag lean.abbreviations
local set_augroup = require('lean._util').set_augroup
local abbreviations = {}
local _MEMOIZED = nil
local _CURSOR_MARKER = '$CURSOR'
--- Load the Lean abbreviations as a Lua table.
function abbrevia... | nilq/small-lua-stack | null |
return {
id = "ufo",
name = "UFO",
description = "Silly aliens are trying to abduct you!",
type = "hat",
rarity = 1,
hidden = false,
}
| nilq/small-lua-stack | null |
timer.Create("nutLifeGuard", 1, 0, function()
if (not nut.config.get("drownEnabled")) then return end
for k, v in ipairs(player.GetAll()) do
if (not v:getChar() or not v:Alive()) then continue end
if (hook.Run("ShouldPlayerDrown", v) == false) then continue end
local damage = nut.config.get("drownDamage")
if... | nilq/small-lua-stack | null |
--[[
-- added by wsh @ 2017-11-28
-- 单元测试
-- 修改或者添加核心、公共脚本以后最好写并跑一遍单元测试,确保没问题,降低错误和调试难度
--]]
local ClassTest = require "UnitTest.ClassTest"
local SingletonTest = require "UnitTest.SingletonTest"
local MessengerTest = require "UnitTest.MessengerTest"
--local ProtobufTest = require "UnitTest.ProtobufTest"
local LoggerTe... | nilq/small-lua-stack | null |
return function(color3: Color3): {R: number, G: number, B: number}
return {
R = color3.R,
G = color3.G,
B = color3.B
}
end | nilq/small-lua-stack | null |
--- === cp.i18n.localeID ===
---
--- As per [Apple's documentation](https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPInternational/LanguageandLocaleIDs/LanguageandLocaleIDs.html#//apple_ref/doc/uid/10000171i-CH15-SW6),
--- a `local ID` is a code which identifies either a language used acros... | nilq/small-lua-stack | null |
object_mobile_mara_jade_empire_day = object_mobile_shared_mara_jade_empire_day:new {
}
ObjectTemplates:addTemplate(object_mobile_mara_jade_empire_day, "object/mobile/mara_jade_empire_day.iff")
| nilq/small-lua-stack | null |
local root = script.Parent.Parent
local PluginModules = root:FindFirstChild("PluginModules")
local Color = require(PluginModules:FindFirstChild("Color"))
local PluginEnums = require(PluginModules:FindFirstChild("PluginEnums"))
local Style = require(PluginModules:FindFirstChild("Style"))
local Util = require(PluginModu... | nilq/small-lua-stack | null |
local function OptionNameString(str)
return THEME:GetString('OptionNames',str)
end
function JudgeFileShortName(str)
return LoadModule("Options.JudgmentsFileShortName.lua")(str)
end
LoadModule("Prefs.Insert.lua")()
function TheStream()
local STE = {"Nope","4th","8th","12th","16th","24th","32th","AUTO"}
loca... | nilq/small-lua-stack | null |
require("loveos.loveos")
function love.load()
loveos:load()
end
function love.update(dt)
loveos:update(dt)
end
function love.draw()
love.graphics.setColor(255,255,255)
love.graphics.rectangle("fill", 0, 0, 1024, 640)
loveos:draw()
end
function love.keypressed(key, unicode)
loveos:keypressed(key, unicod... | nilq/small-lua-stack | null |
fx_version 'cerulean'
games { 'gta5' }
author 'Blumlaut'
description 'a free and open anticheat.'
server_scripts {
"ac_config.lua",
"ac_s.lua"
}
client_scripts {
"ac_config.lua",
"ac_c.lua"
} | nilq/small-lua-stack | null |
--[[
Name: civilian.lua
For: TalosLife
By: TalosLife
]]--
local Job = {}
Job.ID = 23
Job.Enum = "JOB_SEGURANCA"
Job.TeamColor = Color( 255, 255, 255, 255 )
Job.Name = "Segurança"
Job.Cat = "Serviços"
Job.Pay = {
{ PlayTime = 0, Pay = 15 },
{ PlayTime = 0, Pay = 15 },
{ PlayTime = 0, Pay = 15 },
{ PlayTime = 0, ... | nilq/small-lua-stack | null |
function love.draw()
love.graphics.print("Goodbye, World!", 400, 300)
end
| nilq/small-lua-stack | null |
--Inviting Cat
function c600013.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c600013.condition)
e1:SetOperation(c600013.activate)
c:RegisterEffect(e1)
end
function c60... | nilq/small-lua-stack | null |
#!/usr/bin/env lua5.3
print("Hello World!")
-- It can also be written as
io.write('Hello World!\n')
-- or, the example given on the Lua website
io.write("Hello world, from ", _VERSION, "!\n")
| nilq/small-lua-stack | null |
#! /usr/bin/lua
-- global
filename = "upgrade.bin"
DEAL_BUF_LEN = 1024*10
STATE_START = 0
STATE_GET_FILE_START = 1
STATE_GET_FILE_CONTENT = 2
STATE_END = 3
logfile = io.open("/tmp/logfile","w")
logfile:write("log start\n")
-- get signcode -- use to judge end
function get_signcode(line)
local i,j = string.find(li... | nilq/small-lua-stack | null |
return {'mammoetwet','mam','mama','mamba','mamma','mammeluk','mammelukken','mammen','mammie','mammoet','mammoetbedrijf','mammoetschool','mammoettand','mammoettank','mammoettanker','mammografie','mammografisch','mammogram','mammon','mams','mamzel','mammoetorder','mampier','mamadou','mamas','mamaatje','mammas','mammetje'... | nilq/small-lua-stack | null |
--[[
Synapse Xen v1.1.2 by Synapse GP
VM Hash: 9aa5394197795a3f4479d3ac2dd12af646b8d5d8e0753562691c32d6892d755d
]]
local SynapseXen_IlIlIiIiIIlIli=select;local SynapseXen_IillIIIi=string.byte;local SynapseXen_IIiiliIlIiiIiiIl=string.sub;local SynapseXen_IliIIIlllIIiiIiIl=string.char;local SynapseXen_iiIlIiilIl... | nilq/small-lua-stack | null |
local xtitle=0
local btn1 = sys.btn.img(100,100,sys.asset["Image11.png"])
local ni=1
local canvas = sys.canvas()
canvas.set( function()
sys.color.set("rouge")
sys.text("yato RPG",24,23+xtitle,100)
love.graphics.draw(sys.asset["Image11.png"],12,12)
sys.color.set("blanc")
sys.text("play",101,13)
end)
return {
... | nilq/small-lua-stack | null |
local Prop = {}
Prop.Name = "Scrap Yard House"
Prop.Cat = "Houses"
Prop.Price = 250
Prop.Doors = {
Vector( -4099, -8039.08984375, 383.20999145508 ),
Vector( -3808.9099121094, -8027, 383.20999145508 ),
}
GM.Property:Register( Prop ) | nilq/small-lua-stack | null |
-----------------------------------------------------------------------------------------------
-- 'PPet' v0.3 [11/11/2016]
-----------------------------------------------------------------------------------------------
require "Window"
require "CollectiblesLib"
-----------------------------------------------------... | nilq/small-lua-stack | null |
require "/interface/cockpit/cockpitutil.lua"
require "/scripts/messageutil.lua"
require "/scripts/quest/player.lua"
require "/scripts/quest/text_generation.lua"
require "/quests/bounty/bounty_portraits.lua"
require "/quests/bounty/stages.lua"
function init()
local parameters = quest.parameters()
storage... | nilq/small-lua-stack | null |
--
-- User: pv
-- Date: 3/14/16
--
require 'torch'
local TacEvalCmdArgs = torch.class('TacEvalCmdArgs')
local cmd = torch.CmdLine()
cmd:option('-candidates', '', 'input candidate file')
cmd:option('-outFile', '', 'scored candidate out file')
cmd:option('-vocabFile', '', 'txt file containing vocab-index map')
cmd:opt... | nilq/small-lua-stack | null |
NDefines.NGame.END_DATE = "1950.1.1.1"
NDefines.NCountry.BASE_MAX_COMMAND_POWER = 200
NDefines.NCountry.POLITICAL_POWER_CAP = 50000
NDefines.NMilitary.MAX_ARMY_EXPERIENCE = 50000
NDefines.NMilitary.MAX_NAVY_EXPERIENCE = 50000
NDefines.NMilitary.MAX_AIR_EXPERIENCE = 50000
NDefines.NBuildings.MAX_SHARED_SLOTS =... | nilq/small-lua-stack | null |
-- Created by Elfansoer
--[[
Ability checklist (erase if done/checked):
- Scepter Upgrade
- Break behavior
- Linken/Reflect behavior
- Spell Immune/Invulnerable/Invisible behavior
- Illusion behavior
- Stolen behavior
]]
--------------------------------------------------------------------------------
modifier_spirit_br... | nilq/small-lua-stack | null |
object_mobile_coa_aclo_saboteur_human_m = object_mobile_shared_coa_aclo_saboteur_human_m:new {
}
ObjectTemplates:addTemplate(object_mobile_coa_aclo_saboteur_human_m, "object/mobile/coa_aclo_saboteur_human_m.iff")
| nilq/small-lua-stack | null |
--- Sets a mechanisms cframe
-- @module setMechanismCFrame
local require = require(script.Parent.loader).load(script)
local getMechanismParts = require("getMechanismParts")
return function(originParts, relativeTo, newCFrame)
assert(typeof(originParts) == "Instance" or typeof(originParts) == "table", "Bad originPart... | nilq/small-lua-stack | null |
local vim = vim
local renderer = require("neo-tree.ui.renderer")
local utils = require("neo-tree.utils")
local file_items = require("neo-tree.sources.common.file-items")
local M = {}
---Get a table of all open buffers, along with all parent paths of those buffers.
---The paths are the keys of the table, and all the v... | nilq/small-lua-stack | null |
local Class = require("lib.class")
-- local Vector2 = require("lib.Vector2")
local SM = Class:derive("state_machine")
local transition = {
enter = "_enter",
none = "",
exit = "_exit"
}
function SM:new(state_table, start_state_name)
self:reset()
self.state_table = state_table
self:change(sta... | nilq/small-lua-stack | null |
-- Native support of NetCDF in Lua
-- Reader module
-- NetCDF constant namespace
local NC = {
BYTE = 1,
CHAR = 2,
SHORT = 3,
INT = 4,
FLOAT = 5,
DOUBLE = 6,
DIMENSION = 10,
VARIABLE = 11,
ATTRIBUTE = 12,
}
-- File class
local NCReaderClass = {}
-- shortcuts
local sunpack = string.unpack
l... | nilq/small-lua-stack | null |
--Created by Alex Crowley
--On November 3, 2016
--Copyright (c) 2016, TBD
--Licensed under the MIT license
--See LICENSE file for terms
--[[
Runs a validation check on function parameters to make sure
variable names are not duplicated and types are valid
Returns:
Error code, 0 if successful
--]]
fu... | nilq/small-lua-stack | null |
-- merge a bunch of tables into the target
-- util.merge({}, { {foo='bar'}, {bing='bong'} }) -> { foo='bar', bing='bong' }
function util.merge(target, sources)
for _, source in pairs(sources) do
for k, v in pairs(source) do
target[k] = v
end
end
return target
end
| nilq/small-lua-stack | null |
--
-- Product Event Handler
-- Handle data events
-- PUT DATA INTO TIME SERIES DATABASE STORAGE:
-- ============================
-- Write All Device Resource Data to timeseries database
Timeseries.write({
query = data.alias .. ",identifier=" .. data.device_sn .. " value=" .. data.value[2]
})
-- PUT DATA INTO KEY VA... | nilq/small-lua-stack | null |
local RoutingPolicy = require('apicast.policy.routing')
local UpstreamSelector = require('apicast.policy.routing.upstream_selector')
local Request = require('apicast.policy.routing.request')
local Upstream = require('apicast.upstream')
describe('Routing policy', function()
describe('.content', function()
describ... | nilq/small-lua-stack | null |
-- Static data.
-- Color tables!
local c = {
t = { -- Transparent colors..
["red"] = 0x88FF00000,
["orange"] = 0x88F3784A,
["yellow"] = 0x88FFFF00,
["green"] = 0x8800FF00
};
o = { -- Opaque colors..
["red"] = 0xFFFF00000,
["orange"] = 0xFFF3784A,
["yellow"] = 0xFFFFFF00,
["green"] = 0xFF00FF00
}
}... | nilq/small-lua-stack | null |
--
-- THIS FILE HAS BEEN GENERATED AUTOMATICALLY
-- DO NOT CHANGE IT MANUALLY UNLESS YOU KNOW WHAT YOU'RE DOING
--
-- GENERATED USING @colyseus/schema 1.0.0-alpha.58
--
local schema = require 'colyseus.serialization.schema.schema'
local Player = require 'test.schema.InheritedTypes.Player'
local Entity = require 'te... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Riverne Site #A01
-- NPC: Unstable Displacement
-----------------------------------
local RIVERNE_SITE_A01 = require("scripts/zones/Riverne-Site_A01/globals");
-----------------------------------
function onTrade(player,npc,trade)
RIVERNE_SITE_A01.unstableDisplacementT... | nilq/small-lua-stack | null |
local function print_table(t)
local function parse_array(key, tab)
local str = ''
for _, v in pairs(tab) do
str = str .. key .. ' ' .. v .. '\r\n'
end
return str
end
local str = ''
for k, v in pairs(t) do
if type(v) == "table" then
str = str .. parse_array(k, v)
else
... | nilq/small-lua-stack | null |
local x11 = require '../x11'
local ClW = require '../clw'
local ewmh = {
type = 'ewmh';
}
ewmh.xwin = x11.xcb.xcb_generate_id(x11.conn)
x11.xcb.xcb_create_window(x11.conn,
0, -- depth: copy from parent
ewmh.xwin, -- window
x11.screen.root, -- parent
0, 0, -- x, y
1, 1, -- width, height
0, -- border width
x11.... | nilq/small-lua-stack | null |
do
--> update quest type max when a new type of world quest is added to the filtering
WQT_QUESTTYPE_MAX = 10 --[[global]]
--> all quest types current available
WQT_QUESTTYPE_GOLD = "gold" --[[global]]
WQT_QUESTTYPE_RESOURCE = "resource" --[[global]]
WQT_QUESTTYPE_APOWER = "apower" --[[global]]
WQ... | nilq/small-lua-stack | null |
object_mobile_nexus_militia_sgt = object_mobile_shared_nexus_militia_sgt:new {
}
ObjectTemplates:addTemplate(object_mobile_nexus_militia_sgt, "object/mobile/nexus_militia_sgt.iff")
| nilq/small-lua-stack | null |
Locales['sv'] = {
-- Cloakroom
['cloakroom'] = 'omklädningsrum',
['citizen_wear'] = 'civila kläder',
['police_wear'] = 'polisuniform',
['gilet_wear'] = 'reflektiv väst',
['bullet_wear'] = 'skottsäker väst',
['no_outfit'] = 'det finns ingen uniform som passar dig!',
['open_cloackroom'] = 'tryck ~INPUT_CO... | nilq/small-lua-stack | null |
HedgewarsScriptLoad("/Scripts/SimpleMission.lua")
HedgewarsScriptLoad("/Scripts/Locale.lua")
local enemyAmmo = {
[amDEagle] = 100, [amShotgun] = 100, [amGrenade] = 100, [amBazooka] = 100, [amDrill] = 100
}
SimpleMission({
missionTitle = loc("Nobody Laugh"),
missionIcon = 0,
goalText =
loc("Eliminate the enemy.... | nilq/small-lua-stack | null |
do --- stack-gc
local t = setmetatable({}, { __index=function(t, k)
k = k - 1
if k == 0 then
collectgarbage() -- Mark stack, including holes.
return 0
else
return t[k] -- Leaves holes in each frame.
end
do local a,b,c,d,e,f,g,h,i,j,k,l,m,n end -- Ensure bigger frame size.
end}... | nilq/small-lua-stack | null |
local env=env
local snap=env.class(env.snapper)
function snap:ctor()
self.db=env.getdb()
self.command="snap"
self.script_dir=self.db.ROOT_PATH.."snap"
end
--[[
function snap:before_exec_action()
--self.db:internal_call("BEGIN DBMS_FLASHBACK.ENABLE_AT_TIME(systimestamp);END;")
if self.db:is_connect... | nilq/small-lua-stack | null |
-- Minkowski Distance distance implementation
-- See: http://en.wikipedia.org/wiki/Minkowski_distance
-- Returns the Minkowski distance between two vectors
-- p : a first vector
-- q : a second vector
-- n : the distance order
-- returns : the distance between p and q
local function minkowski_distanc... | nilq/small-lua-stack | null |
local awful = require("awful")
local beautiful = require("beautiful")
local wibox = require("wibox")
local gears = require("gears")
local naughty = require("naughty")
local lain = require("lain")
local http = require("socket.http")
local json = require("JSON")
local ltn12 = require("ltn12")
local markup = lain.util.ma... | nilq/small-lua-stack | null |
local playsession = {
{"vvictor", {247}},
{"Antonitto", {24207}},
{"TiTaN", {57480}}
}
return playsession | nilq/small-lua-stack | null |
--[[
Mojang API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
OpenAPI spec version: 2020-06-05
Generated by: https://openapi-generator.tech
]]
--[[
Unit tests for openapiclient.api.name_history_api
Automatically generated by openapi-generator ... | nilq/small-lua-stack | null |
-- local base16 = {
-- base00; base01; base02; base03;
-- base04; base05; base06; base07;
-- base08; base09; base0A; base0B;
-- base0C; base0D; base0E; base0F;
-- }
-- local base16 = {
-- "0e0e1b"; "262641"; "393975"; "dc4f9d";
-- "6c45e1"; "1c87f2"; "dc4f9d"; "ea8773";
-- "64994c"; "1c87f2"; "6c45e1"; "5... | nilq/small-lua-stack | null |
local Schcastspells = Class(function(self, inst)
self.inst = inst
self.periodic = nil
self.myvictim = nil
self.enabled = true
self.warning = false
end)
local function NoHoles(pt)
return not TheWorld.Map:IsPointNearHole(pt)
end
function Schcastspells:Sorcery()
local rads = 18
local x,y,z = se... | nilq/small-lua-stack | null |
resource_manifest_version '05cfa83c-a124-4cfa-a768-c24a5811d8f9'
client_script 'client/client.lua'
server_script 'server/server.lua'
-- ui_page('client/html/index.html')
-- files({
-- 'client/html/index.html',
-- 'client/html/sounds/alarm.ogg'
-- })
| nilq/small-lua-stack | null |
local playsession = {
{"liquidblue", {570754}},
{"HYPPS", {1546177}},
{"LeeFactor", {825585}},
{"Rezz", {493237}},
{"rjdunlap", {730886}},
{"xbalistixx", {840863}},
{"teomarx", {1366454}},
{"Krono", {814537}},
{"dr_root", {760089}},
{"NappingYG", {14151}},
{"joe32", {194439}},
{"JJDude1205", {206801}},
{"p... | nilq/small-lua-stack | null |
local v2 = require 'dokidoki.v2'
function on_screen(pos)
return pos.x >= game.constants.screen_left and
pos.x <= game.constants.screen_right and
pos.y >= game.constants.screen_bottom and
pos.y <= game.constants.screen_top
end
-- returns the closest target of the given type
function get_ne... | nilq/small-lua-stack | null |
-- * Metronome IM *
--
-- This file is part of the Metronome XMPP server and is released under the
-- ISC License, please see the LICENSE file in this source package for more
-- information about copyright and licensing.
-- This module implements a part of XEP-273 and XEP-352 to queue and filter
-- incoming presences ... | nilq/small-lua-stack | null |
local InGame = { entered = false }
function InGame:enter()
if not entered then
self.objects = {}
self.objects.player = Player("player", Vector(WATER_WIDTH + 2, WATER_HEIGHT - 16))
self.objects.lure = Lure("L", Vector(WATER_WIDTH + 1, WATER_HEIGHT - 16))
self.objects.fish = {}
for i = 1, FISH_COUNT do
... | nilq/small-lua-stack | null |
local eachObjectHasTag = function(fixture1, fixture2, tag1, tag2)
local firstTagExists = false
local secondTagExists = false
if fixture1:getUserData().tag == tag1 then
firstTagExists = true
if fixture2:getUserData().tag == tag2 then
secondTagExists = true
end
elsei... | nilq/small-lua-stack | null |
local map = vim.api.nvim_set_keymap
local modules = require("autoclose.modules")
local M = {}
M.auto_close = function()
map("i", "{", "{}<ESC>i", {noremap = true})
map("i", "[", "[]<ESC>i", {noremap = true})
map("i", "(", "()<ESC>i", {noremap = true})
map("i", "'", "''<ESC>i", {noremap = true})
ma... | 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.