content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
return {
no_consumer = true,
fields = {
source_header = { type = "string", required = true },
placeholder = { type = "string", required = true },
log_only = { type = "boolean", default = false },
darklaunch_url = { type = "string", default = "" }
}
}
| nilq/small-lua-stack | null |
gg_rct_Boss_Spawn = nil
gg_rct_FightStart = nil
gg_rct_PlayerOneSpawn = nil
gg_rct_StatueNE = nil
gg_rct_StatueNW = nil
gg_rct_StatueSE = nil
gg_rct_StatueSW = nil
gg_rct_PlayerTwoSpawn = nil
gg_trg_Untitled_Trigger_001 = nil
function InitGlobals()
end
function CreateRegions()
local we
gg_rct_Boss_Spawn = Rect... | nilq/small-lua-stack | null |
slot0 = class("BackYardDecrationLayer", import("...base.BaseUI"))
slot1 = 1
slot2 = 2
slot3 = 3
slot4 = 4
slot5 = 5
slot6 = 6
slot7 = 7
slot8 = {
"word_theme",
"word_furniture",
"word_decorate",
"word_wallpaper",
"word_floorpaper",
"word_wall",
"word_collection"
}
function slot9(slot0)
return i18n(slot0[slot0]... | nilq/small-lua-stack | null |
--!A static injector of dynamic library for application
--
-- 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 appli... | nilq/small-lua-stack | null |
local state = {}
local DEFAULT_MODE = 'NORMAL'
local DEFAULT_HYSTERESIS = 0.5
local ERROR_SETPOINT = -1
local NO_MEASUREMENT = 0
local getState = function()
local freshState = {}
local files = file.list()
if not files['state'] then
print('Creating new config file...')
if file.open('stat... | nilq/small-lua-stack | null |
--
-- Chartboost Corona SDK
-- Created by: Chris
--
-- This class is used to create a loading status view.
-- Instantiate using CBLoadingView(cbProxy)
-- Field 'view.group' must be added to the stage to see this view
-- Call method 'view:destroy()' to remove the view from the stage and perform cleanup
--
local cla... | nilq/small-lua-stack | null |
-- © 2014 David Given
-- This file is redistributable under the terms of the
-- New BSD License. Please see the COPYING file in the
-- project root for the full text.
local Utils = require("Utils")
local AST = require("AST")
local function Resolve(ast)
local nodes =
{
}
AST.ForEachChild(ast,
function(node)
... | nilq/small-lua-stack | null |
if cond then
func()
end
if condition == true then
end
if condition == true then
local t = {
}
local t = {
asdf
}
local t = {
asdf,
foo,
}
end
-- vim: et sw=4 sts=4 ts=4
| nilq/small-lua-stack | null |
local spec_helper = require "spec.spec_helpers"
local http_client = require "kong.tools.http_client"
local STUB_POST_URL = spec_helper.STUB_POST_URL
describe("RequestSizeLimiting Plugin", function()
setup(function()
spec_helper.prepare_db()
spec_helper.insert_fixtures {
api = {
{ name = "test... | nilq/small-lua-stack | null |
local ComponentBase = cc.import(".ComponentBase")
local ButtonComponent = cc.class("cc.Button", ComponentBase)
local _STATE_DISABLED = "DISABLED"
local _STATE_IDLE = "IDLE"
local _STATE_PRESSED = "PRESSED"
local _SPRITES_MAP = {
[_STATE_DISABLED] = "_N$disabledSprite",
[_STATE_IDLE] = "_N$normalSpri... | nilq/small-lua-stack | null |
for i,v in ipairs({
{18450,1768.2998,-851.2998,68.5,0,341.99341,18.24829},
{18450,1839.5,-827.79999,95.8,0,337.99438,18.24829},
{18450,1902.5,-807,123.8,0,335.99487,18.24829},
{4573,1983.2998,-802,106.2,0,0,17.99561},
{9090,1976.19922,-751.7998,109.7,0,0,107.99011},
{4573,1964.89941,-745.19922,1... | nilq/small-lua-stack | null |
-- This file is never required by anything, and exists purely for the language server to determine types
-- This is just a typedef, think of it like a struct
global = {
next_task_id = 1,
--- @type PlayerTable[]
players = {},
--- @type table<number, Task>
tasks = {},
}
| nilq/small-lua-stack | null |
hp = 2500
attack = 200
defense = 300
speed = 80
mdefense = 300
luck = 80
float = 0
strength = ELEMENT_FIRE
weakness = ELEMENT_ICE
function initId(id)
myId = id
end
function start()
end
function get_action(step)
local n = getRandomNumber(2);
if (n == 0) then
return COMBAT_CASTING, "Fire2", ... | nilq/small-lua-stack | null |
--lua 5.3
local N = io.read("*n")
--print("N: " .. N)
local bag5Count = math.floor(N / 5)
local bag3Count = 0
while bag5Count >= 0 do
bag3Count = math.floor((N - 5 * bag5Count) / 3)
while bag3Count >= 0 do
--print("bag5Count: " .. bag5Count .. ", bag3Count: " .. bag3Count)
if N - 5 * bag5Count ... | nilq/small-lua-stack | null |
local class = {
list = {
warrior = {
attr = { str = 2, con = 1, dex = 1, wis = -1, int = -2 }
},
thief = {
attr = { dex = 2, con = 1, str = 1, int = -1, wis = -2 }
},
mage = {
attr = { int = 2, wis = 1, dex = 1, con = -1, str = -2 }
},
cleric = {
attr = { wis = 2, i... | nilq/small-lua-stack | null |
local skynet = require "skynet"
local queue = require "skynet.queue"
require "skynet.manager" -- import skynet.register
local CMD = {}
local x = ...
local HOURSEPEOPLE = 6
local lock
local hourses = {}--[hourseid]={zerocount=0,num=1}
local newhourseindex = {}
local hourselist = {head={tail=true}}--{head=nil,next}
func... | nilq/small-lua-stack | null |
--[[
Copyright 2018 American Megatrends Inc.
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 a... | nilq/small-lua-stack | null |
--[[
// File Name: Integral.lua
// Written by: Carlos Verastegui
// Description: Sub-class for computing the definite integral using Gauss-Legendre quadrature
--]]
-- External inheritence
local Function = require(script.Parent:WaitForChild("Function"))
-- Array containing roots for a 10-point quadrature
local root... | nilq/small-lua-stack | null |
function onCreate()
--Iterate over all notes
for i = 0, getProperty('unspawnNotes.length')-1 do
--Check if the note is an Instakill Note
if getPropertyFromGroup('unspawnNotes', i, 'noteType') == 'Blent Note' then
setPropertyFromGroup('unspawnNotes', i, 'texture', 'kyle/BLENTNOTE_assets'); --Change texture
s... | nilq/small-lua-stack | null |
local javaScript = {}
javaScript.clearelement = "clearMedia()"
javaScript.playelement = "playMedia()"
javaScript.pauseelement = "pauseMedia()"
javaScript.stopelement = "stopMedia()"
javaScript.fullscreen = "mediaFullScreen(REP1)"
javaScript.setFill = "mediaFill(REP1)"
javaScript.setSize = "resizeMedia(REP1,REP2)... | nilq/small-lua-stack | null |
--[[
Project: SA Memory (Available from https://blast.hk/)
Developers: LUCHARE, FYP
Special thanks:
plugin-sdk (https://github.com/DK22Pac/plugin-sdk) for the structures and addresses.
Copyright (c) 2018 BlastHack.
]]
local shared = require 'SAMemory.shared'
shared.require 'matrix'
shared.require... | nilq/small-lua-stack | null |
local params = {...}
local path = params[1]
local cm = require("cm")
local function parent_path(path)
local r = string.reverse(string.sub(path, 1))
local be = string.find(r, "\\")
if be == nil then
return ""
else
local b, _ = be
return string.reverse(string.sub(r, b))... | nilq/small-lua-stack | null |
-- Copyright (c) 2017 Lymia Alusyia <lymia@lymiahugs.com>
--
-- 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, m... | nilq/small-lua-stack | null |
object_mobile_vehicle_podracer_anakin = object_mobile_vehicle_shared_podracer_anakin:new {
templateType = VEHICLE,
decayRate = 15, -- Damage tick per decay cycle
decayCycle = 600 -- Time in seconds per cycle
}
ObjectTemplates:addTemplate(object_mobile_vehicle_podracer_anakin, "object/mobile/vehicle/podracer_anakin.... | nilq/small-lua-stack | null |
local lightGreyEscapeColor = string.format("|cff%02x%02x%02x", 115, 115, 115);
local goldEscapeColor = string.format("|cff%02x%02x%02x", 255, 255, 125);
local whiteEscapeColor = string.format("|cff%02x%02x%02x", 255, 255, 255);
local blueEscapeColor = string.format("|cff%02x%02x%02x", 225, 225, 255);
local winEscapeCol... | nilq/small-lua-stack | null |
local t = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0... | nilq/small-lua-stack | null |
includeFile("custom_content/draft_schematic/space/shields/elite_shields.lua")
includeFile("custom_content/draft_schematic/space/shields/gunship_shields.lua")
includeFile("custom_content/draft_schematic/space/shields/shield_high_capacity_projector_mk5.lua")
| nilq/small-lua-stack | null |
-- wibar.lua
-- Wibar (top bar)
local awful = require("awful")
local gears = require("gears")
local gfs = require("gears.filesystem")
local wibox = require("wibox")
local beautiful = require("beautiful")
local xresources = require("beautiful.xresources")
local dpi = xresources.apply_dpi
local helpers = require("helpers... | nilq/small-lua-stack | null |
CAR_EQUIPEMENT_GRID_NAME = "laser-car-equipment-grid"
TANK_EQUIPEMENT_GRID_NAME = "laser-tank-equipment-grid"
TRAIN_EQUIPEMENT_GRID_NAME = "electric-vehicles-electric-locomotive" | nilq/small-lua-stack | null |
object_draft_schematic_furniture_wod_ns_potted_plant_scem_02 = object_draft_schematic_furniture_shared_wod_ns_potted_plant_scem_02:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_furniture_wod_ns_potted_plant_scem_02, "object/draft_schematic/furniture/wod_ns_potted_plant_scem_02.iff")
| nilq/small-lua-stack | null |
local define = require 'proto.define'
local files = require 'files'
local guide = require 'core.guide'
local matchKey = require 'core.match-key'
local vm = require 'vm'
local getHover = require 'core.hover'
local config = require 'config'
local util = require 'utility... | nilq/small-lua-stack | null |
---- Roleplay: Prison
local function GetIllegalWeaponList(InTargetPlayer)
local OutWeaponList = {}
local PlayerWeapons = InTargetPlayer:GetWeapons()
for Index, Weapon in ipairs(PlayerWeapons) do
local ClassName = Weapon:GetClass()
--MsgN(ClassName)
if ClassName ~= "weapon_rpp_unarmed" and ClassName ~= "... | 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 |
--MoveCurve
--M_DEM_21103_01/HitAirSoft HitAirSoft
return
{
filePath = "M_DEM_21103_01/HitAirSoft",
startTime = Fixed64(0) --[[0]],
startRealTime = Fixed64(0) --[[0]],
endTime = Fixed64(31457280) --[[30]],
endRealTime = Fixed64(534773) --[[0.51]],
isZoom = true,
isCompensate = false,
curve = {
[1] = {
tim... | nilq/small-lua-stack | null |
return {
[1]={"role_detail_info", {[1]={[1]="RoleId",[2]="number",},[2]={[1]="Level",[2]="byte",},[3]={[1]="Exp",[2]="number",},[4]={[1]="AttrDetail",[2]="attr_detail",},[5]={[1]="PetLevel",[2]="byte",},[6]={[1]="PetExp",[2]="number",},[7]={[1]="Model",[2]="number",},}},
[2]={"friend_space_info", {[1]={[1]="Uid",[2]="n... | nilq/small-lua-stack | null |
local h = require("null-ls.helpers")
local methods = require("null-ls.methods")
local FORMATTING = methods.internal.FORMATTING
return h.make_builtin({
method = FORMATTING,
generator = {
fn = function(_, done)
local timeout = math.random(50)
vim.defer_fn(function()
... | nilq/small-lua-stack | null |
local handled = false
addCommandHandler("startmusic", function ( plr, commandName, url )
setTimer(triggerClientEvent, 1000, 1, "playmus", root, url)
end)
function startmusic(url, plr)
if (url and plr) then
if (handled == false) then
local name = getPlayerName(plr)
setTimer(triggerClientEvent, 1000, 1, "NGC... | nilq/small-lua-stack | null |
----------------------------------------
-- Sassilization
-- http://sassilization.com
-- By Sassafrass / Spacetech / LuaPineapple
-- Models By Jaanus
----------------------------------------
select_limit = 10 --how many armies can be selected at once. NOTICE: too many causes crashes.
unit_limit = select_limit... | nilq/small-lua-stack | null |
-- scaffolding entry point for llvm
return dofile("llvm.lua")
| nilq/small-lua-stack | null |
Term = {}
Term.CommandDetection = false -- Broken rn
Term.DamageModifierDetection = true
Term.AntiGodmode = false -- Broken
Term.NuiDetection = true
Term.MaxHealth = 201
Term.InvisibilityDetection = true
Term.SpectateDetection = true
Term.SuperJumpDetection = true
Term.ThermalVisionDetection = true
Term.Plank... | nilq/small-lua-stack | null |
---
-- @author wesen
-- @copyright 2019 wesen <wesen-ac@web.de>
-- @release 0.1
-- @license MIT
--
local EventEmitter = require "AC-LuaServer.Core.Event.EventEmitter"
local ExtensionTarget = require "AC-LuaServer.Core.Extension.ExtensionTarget"
local Object = require "classic"
---
-- Extends a ExtensionTarget and wil... | nilq/small-lua-stack | null |
local function default() end
local function switch(var)
-- TODO: Can we avoid recreating new function each time?
return function (map)
for case, value in pairs(map) do
local matches = false
if type(case) == "table" then
for _, v in pairs(case) do
if v == var then
matches = true
break
... | nilq/small-lua-stack | null |
--
-- lua-LIVR : <http://fperrad.github.com/lua-LIVR/>
--
local tointeger
if _VERSION >= 'Lua 5.3' then
tointeger = math.tointeger
else
local SIZEOF_NUMBER = 8
if not jit then
-- Lua 5.1 & 5.2
local loadstring = loadstring or load
local luac = string.dump(loadstring "a = 1")
... | nilq/small-lua-stack | null |
-------Sky School house-----------------------------------------------------------------------------------------------------------------------
-------Commands-----------------------------------------------------------------------------------------------------------------------
local admin = game.Players.acb227
functio... | nilq/small-lua-stack | null |
local M = {}
local toast = require "src.components.toast"
function M.fireOn(self, gs)
local scene = gs:current().scene
if scene == self.scene then
gs.toast = toast.new(gs, self.text)
gs.toast:showToast()
end
end
function M.new(scene, text)
local ret = { scene = scene, type = "RoomTextEvent", text = text... | nilq/small-lua-stack | null |
---
-- @module UIScrollbar
--
-- ------------------------------------------------
-- Required Modules
-- ------------------------------------------------
local UIElement = require( 'src.ui.elements.UIElement' )
local TexturePacks = require( 'src.ui.texturepacks.TexturePacks' )
local GridHelper = require( 'src.util.Gr... | nilq/small-lua-stack | null |
-- Swiped from Konamix; thank you!
-- ScreenGameplay in
local travelDist = SCREEN_WIDTH*1.7;
local LeftToRight = Def.ActorFrame{
LoadActor("_LeftToRight");
Def.Quad{
InitCommand=cmd(addx,64;diffuse,color("#000000FF");halign,0;zoomto,travelDist,32);
};
};
local RightToLeft = Def.ActorFrame{
LoadActor("_RightToLef... | nilq/small-lua-stack | null |
--[[
Adds a job to the queue by doing the following:
- Increases the job counter if needed.
- Creates a new job key with the job data.
- if delayed:
- computes timestamp.
- adds to delayed zset.
- Emits a global event 'delayed' if the job is delayed.
- if not delayed
- Adds th... | nilq/small-lua-stack | null |
local isLoggedIn = false
local CurrentCops = 0
local copsCalled = false
Citizen.CreateThread(function()
while true do
Citizen.Wait(1000 * 45 * 5)
if copsCalled then
copsCalled = false
end
end
end)
local requiredItemsShowed = false
local requiredItemsShowed2 = false
local re... | nilq/small-lua-stack | null |
--白の烙印
--Scripted by mallu11
function c101104055.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(101104055,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON+CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:Set... | nilq/small-lua-stack | null |
local config = nil
local function cfg(_config)
config = _config
end
local handlers = {
cfg = cfg
}
return handlers
| nilq/small-lua-stack | null |
gVersion = "2.0.12"
gVerbose = false
------------- Util
function Log(...)
if c.isVerbose() then
print(unpack(arg))
end
end
function key_sorted_pairs(t)
local sorted = {}
for k,_ in pairs(t) do
table.insert(sorted, k)
end
table.sort(sorted)
return coroutine.wrap(
function()
for _... | nilq/small-lua-stack | null |
local M = {}
local utils = require("rust-tools.utils.utils")
function M.open_external_docs()
utils.request(
0,
"experimental/externalDocs",
vim.lsp.util.make_position_params(),
function(_, url)
if url then
vim.fn["netrw#BrowseX"](url, 0)
end
end
)
end
return M
| nilq/small-lua-stack | null |
if SERVER then
AddCSLuaFile()
end
local GAMETYPE = {}
GAMETYPE.Name = "Half-Life 2: Episode 1"
GAMETYPE.BaseGameType = "hl2"
GAMETYPE.MapScript = {}
GAMETYPE.MapList =
{
"ep1_citadel_00",
"ep1_citadel_01",
"ep1_citadel_02",
"ep1_citadel_02b",
"ep1_citadel_03",
"ep1_citadel_04",
"ep1_c1... | nilq/small-lua-stack | null |
---------------------------------------------------------------------------
--- Watch widget.
-- Here is an example of simple temperature widget which will update each 15
-- seconds implemented in two different ways.
-- The first, simpler one, will just display the return command output
-- (so output is stripped by she... | nilq/small-lua-stack | null |
-- Copyright 2021 SmartThings
--
-- 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 ... | nilq/small-lua-stack | null |
require("busted.runner")()
local PrivateKey = require("norn.privatekey")
local PublicKey = require("norn.publickey")
local Wallet = require("norn.wallet")
describe("wallet", function ()
it("should be created empty", function ()
local wallet = Wallet.create()
assert.equals(wallet.balance, 0)
assert.is_not_nil(w... | nilq/small-lua-stack | null |
function UIItem:onDragEnter(mousePos)
if self:isVirtual() then return false end
local item = self:getItem()
if not item then return false end
self:setBorderWidth(1)
self.currentDragThing = item
g_mouse.pushCursor('target')
return true
end
function UIItem:onDragLeave(droppedWidget, mousePo... | nilq/small-lua-stack | null |
--[[
_________ _______ ___ _______ ___ __ ___ ________ _______ ________ ___ ________
|\___ ___\\ ___ \ |\ \ |\ ___ \ |\ \|\ \ |\ \|\ ___ \|\ ___ \ |\ ____\|\ \|\ ____\
\|___ \ \_\ \ __/|\ \ \ \ \ __/|\ \ \/ /|\ \ \ \ \\ \ \ \ __/|\ \ \___|\ \ \... | nilq/small-lua-stack | null |
--[[
Lua Cold Observables
MIT License
Copyright (c) 2019 Alexis Munsayac
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 limi... | nilq/small-lua-stack | null |
workspace "LilEngie2"
configurations {"Debug", "Release", "EditorGameDebug", "EditorGameRelease"}
architecture "x86_64"
startproject "LilEddie"
project "LilEngie"
configmap {
["EditorGameDebug"] = "Debug",
["EditorGameRelease"] = "Release"
}
location "%{prj.name}"
kind "StaticLib"
language ... | nilq/small-lua-stack | null |
--[[----------------------------------------------------------------------------
Information:
With this App standalone running you won't see anything.
If you want more or less cameras connected duplicate this app or remove some.
------------------------------------------------------------------------------]]
--St... | nilq/small-lua-stack | null |
-------------------------------------------------------------------------------
-- This file is part of the "Tyro"
--
-- @license The MIT License (MIT) Included in this distribution
-- @author Zaher Dirkey <zaherdirkey at yahoo dot com>
---------------------------------------------------------------------------... | nilq/small-lua-stack | null |
require("moonsc").import_tags()
-- Test that default initial state is first in document order.
-- If we enter s0 first we succeed, if s1, failure.
return _scxml{
_state{id='s0', _transition{target='pass'}},
_state{id='s1', _transition{target='fail'}},
_final{id='pass'},
_final{id='fail'},
}
| nilq/small-lua-stack | null |
-- @Author: hxsf
-- @Date: 2016-05-05 21:49:36
-- @Last Modified by: hxsf
-- @Last Modified time: 2016-05-05 22:01:54
require("prototypes.entities")
require("prototypes.items")
require("prototypes.recipes")
require("prototypes.technologies")
require("prototypes.category") | nilq/small-lua-stack | null |
-- MSVC for GLM
defines { "_ENABLE_EXTENDED_ALIGNED_STORAGE" }
if os.istarget('windows') then
flags { "LinkTimeOptimization" }
buildoptions '/fp:fast'
end | nilq/small-lua-stack | null |
local moon = require("moon")
moon.start(
function()
moon.async(
function()
local receiverid = moon.co_new_service(
"lua",
{
name = "call_example_receiver",
file = "call_example_receiver.lua"
... | nilq/small-lua-stack | null |
--[[
@author Sebastian "CrosRoad95" Jura <sebajura1234@gmail.com>
@copyright 2011-2021 Sebastian Jura <sebajura1234@gmail.com>
@license MIT
]]--
-- Kod odpowiadający za odejmowanie paliwa oraz dodawanie paliwa
-- Wszelkie inne rzeczy są w systemie pojazdów // Split
local time=getTickCount()
local isBike={[509]=true,[4... | nilq/small-lua-stack | null |
return {
[10001]="Login",
Login=10001,
[31002]="MatchAckP",
MatchAckP=31002,
[21001]="MatchR",
MatchR=21001,
[11002]="MatchAckCP",
MatchAckCP=11002,
[31001]="MatchP",
MatchP=31001,
[11001]="Match",
Match=11001,
[1001]="MatchPlayer",
MatchPlayer=1001,
[30001]="ErrorR",
ErrorR=30001,
[20001]="LoginR",
L... | nilq/small-lua-stack | null |
WARP_POINT = {
warp_tile_pt_1 = {point="warp_tile_pt_2", dir="up", cont=true},
warp_tile_pt_2 = {point="warp_tile_pt_1", dir="down", cont=true},
warp_tile_pt_3 = {point="warp_tile_pt_3", dir="down", cont=true},
warp_tile_pt_4 = {point="warp_tile_pt_5", dir="left", cont=true},
warp_tile_pt_5 = {point="warp_til... | nilq/small-lua-stack | null |
--[[
Name: init.lua
From roblox-trello v2
Description: Fetches and groups class constructors for Trello.
Copyright (c) 2019 Luis, David Duque
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to ... | nilq/small-lua-stack | null |
local path = (...):match('(.-)[^%./]+$')
return {
name = 'Font',
description = 'Defines the shape of characters that can be drawn onto the screen.',
constructors = {
'getFont',
'newFont',
'setNewFont',
'newImageFont',
},
supertypes = {
'Object',
},
fu... | nilq/small-lua-stack | null |
local awful = require("awful")
--EDITOR = os.getenv("EDITOR") or "vi"
KEY = {
CONTROL = "Control",
LEFT = "Left",
RETURN = "Return",
RIGHT = "Right",
SHIFT = "Shift",
MOD = "Mod4"
}
SCREEN_COUNT = screen.count()
TAG_COUNT = 9
TERMINAL = "xterm"
global_keys = {}
local layouts = {
awful.layout.suit.max
}
... | nilq/small-lua-stack | null |
solution "sodna"
configurations { "Debug", "Release" }
project "sodna"
kind "SharedLib"
language "C"
links { "m", "SDL2", }
files {
"src/sodna_sdl2.c",
"src/sodna_util.c",
}
includedirs { "include/" }
configuration { "windows" ... | nilq/small-lua-stack | null |
return {'talmoed','talmoedisch','talmoedist','tal','talaan','talen','talencursus','taleninstituut','talenkenner','talenkennis','talenknobbel','talenlaboratorium','talenonderwijs','talenpracticum','talenschool','talent','talentenbank','talentenjacht','talentenjager','talentloos','talentontwikkeling','talentrijk','talent... | nilq/small-lua-stack | null |
#!/usr/bin/env lua
-- MoonFLTK example: preferences.lua
--
-- Derived from the FLTK test/preferences.cxx example (http://www.fltk.org)
--
-- NOTE: The Fl_Preferences class is not used in MoonFLTK, because Lua itself
-- is already a flexible configuration language.
fl = require("moonfltk")
filename = "./myprefe... | nilq/small-lua-stack | null |
-- https://stackoverflow.com/questions/4525261/getting-relative-paths-in-vim
local function filepath ()
path = vim.fn.substitute(vim.fn.expand('%:p'), vim.fn.expand('%:p:h:h:h'), '..', ' ')
return path
end
return filepath
| nilq/small-lua-stack | null |
-- @Date : 2016-06-12 14:17:08
-- @Author : MiaoLian (mlian@ulucu.com)
-- @Version : 1.0
-- @Description :
local template = require "sim_ulucu_sys_lib.resty.template"
local error = error
local pairs = pairs
local setmetatable = setmetatable
local ngx_var = ngx.var
local View = {}
function View:ne... | nilq/small-lua-stack | null |
----------------------------------------------------------
-- Summary: Player class.
--
-- Description: Tables and functions for the player.
--
-- @author Tony Godfrey (tonygod@sharkappsllc.com)
-- @copyright 2015-2016 shark apps, LLC
-- @license all rights reserved.
----------------------------------------... | nilq/small-lua-stack | null |
--[[
Bomb Game Framework
v1.0
by: standardcombo
Starting point for a first-person, DE-style game where one team plants the bomb and the other
team defends or diffuses the bomb. Includes many components such as basic inventory, shop,
ADS weapons and even persistent storage of money earned.
To use, start a blank proje... | nilq/small-lua-stack | null |
local serverCommandHooks = {}
serverCommandHooks.commands = {}
serverCommandHooks.aliases = {}
serverCommandHooks.pid = -1
function serverCommandHooks.registerCommand(cmd, callback)
cmd = string.lower(cmd)
serverCommandHooks.commands[cmd] = callback
end
function serverCommandHooks.registerAlias(alias, cmd)
... | nilq/small-lua-stack | null |
require('constants')
require('move')
require('racemaster')
local turtle_ids_prop = "turtle_ids"
local function position_and_hostility_ok(turtle_id)
-- Check 1 - is the turtle even still alive?
if creature_exists(turtle_id) == false then
return false
end
-- Check 2 - is the turtle in roughly t... | nilq/small-lua-stack | null |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... | nilq/small-lua-stack | null |
return {
Name = "gethelp";
Description = "Get help.";
Args = {};
} | nilq/small-lua-stack | null |
-----------------------------------
-- Ability: Futae
-- Grants a bonus to your next elemental ninjutsu by expending two ninja tools.
-- Obtained: Ninja Level 77
-- Recast Time: 3:00
-- Duration: 1:00
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onA... | nilq/small-lua-stack | null |
function CreatePlayer(source, permission_level, money, bank, identifier, license, group, roles, inventory, job, jgrade, gang, fgrade, loadout, name, coords, status)
local self = {}
self.source = source
self.permission_level = permission_level
self.money = money
self.bank = bank
self.identifier = id... | nilq/small-lua-stack | null |
Card_0_0 = "Bridge Hit"
Card_0_1 = "Cargo Bay Hit"
Card_0_3 = "Direct Hit"
Card_0_4 = "Engine Room Hit"
Card_0_5 = "Engines Hit"
Card_0_6 = "Sickbay Hit"
Card_0_7 = "Weapon Systems Hit"
Card_0_45 = "Ace In The Hole"
Card_0_48 = "Never Say Die"
Card_0_54 = "Berlin"
Card_0_55 = "London"
Card_0_56 = "Moscow"
Card_0_57 = "... | nilq/small-lua-stack | null |
setfenv(1, require "sysapi-ns")
ffi.cdef [[
typedef enum _SYSTEM_INFORMATION_CLASS {
SystemBasicInformation,
SystemProcessorInformation,
SystemPerformanceInformation,
SystemTimeOfDayInformation,
SystemPathInformation,
SystemProcessInformation,
SystemCallCountInformation,
SystemDeviceI... | nilq/small-lua-stack | null |
local config = require 'lir.bookmark.config'
local M = {}
function M.setup(prefs)
-- Set preferences
config.set_default_values(prefs)
end
return M
| nilq/small-lua-stack | null |
local file = require 'ext.file'
local json = require 'dkjson'
local hygStars = assert(load('return '..file['simbad-data.lua']))()
local hygForOID = {}
for _,hygStar in pairs(hygStars) do
if hygStar.simbadOIDRef then
hygForOID[hygStar.simbadOIDRef] = hygStar
end
end
local exoplanets = json.decode(file['../exoplane... | nilq/small-lua-stack | null |
local List = require 'pandoc.List'
function Header(el)
local level = el.level
local identifier = el.attr.identifier
local caption_text = el.attributes["caption"]
local content = el.content
local header_text
if level == 1 then
size = "xl"
elseif level == 2 then
size = "l"
elseif level == 3 then... | nilq/small-lua-stack | null |
if Teleportation == nil then
Teleportation = {}
end
if Teleportation.config == nil then
Teleportation.config = {}
end
--[[Defines what should be shown in pager.
• "true" for pages (e.g. "2/4");
• "false" for beacons count (e.g. "11-20/37", if page_size is 10).
Default is "true". ]]
--Telepor... | nilq/small-lua-stack | null |
--- include-files.lua – filter to include Markdown files
---
--- Copyright: © 2019–2020 Albert Krewinkel
--- Copyright: © 2020 Michael Reed
--- License: MIT – see LICENSE file for details
---
--- Created by Albert Krewinkel. Slightly modified by Michael Reed for use in
--- generating the EPUB for "Programming La... | nilq/small-lua-stack | null |
local function a(b)if b>=1000*1000 then return math.floor(b/(100*1000))/10 .."MB"elseif b>=1000 then return math.floor(b/100)/10 .."KB"else return b.."B"end end;local c={{"Drive","Size","Used","Avail"}}local function d(e)local f=0;local g=fs.getDrive(e)local function h(i)if fs.getDrive(i)==g then if fs.isDir(i)then if ... | nilq/small-lua-stack | null |
local LiteralString
local lpeg
if game then
local pluginModel = script.Parent.Parent.Parent.Parent
LiteralString = require(pluginModel.com.blacksheepherd.compile.LiteralString)
lpeg = require(pluginModel.lulpeg.lulpeg)
else
LiteralString = require("com.blacksheepherd.compile.LiteralString")
lpeg = require("lp... | nilq/small-lua-stack | null |
do
print("scope")
end
| nilq/small-lua-stack | null |
local AddonName, AddonTable = ...
AddonTable.trade = {
-- Crafting General
180055,
180057,
180058,
180059,
180060,
173381,
183942,
173382,
-- Soul Cyphering
174942,
--
183701,
}
| nilq/small-lua-stack | null |
#!/usr/bin/env lua
-- luainspect.command - LuaInspect command-line interface.
-- This file can be invoked from the command line
package.path = package.path .. ';metalualib/?.lua'
package.path = package.path .. ';lib/?.lua'
local LA = require "luainspect.ast"
local LI = require "luainspect.init"
local function load... | nilq/small-lua-stack | null |
includeFile("custom_content/screenplay_mobs/generals_bunker/serverobjects.lua")
| nilq/small-lua-stack | null |
-- HEAD --
description = [[
This is a simple script example that determines if a port is open.
]]
author = "Kimberly Dills"
-- RULE --
portrule = function(host, port)
return port.protocol == "tcp"
and port.state == "open"
end
-- ACTION --
action = function(host, port)
return "This port i... | 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.