content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
-- This is the was ripped straight outta pokemon, ghetto style.
-- This UI is designed to display a pop-up message - requires specific size, and if a title should be used
ui = {
border = {
left = {
top = 1,
bottom = 2
},
right = {
top = 3,
bot... | nilq/small-lua-stack | null |
--
-- Licensed to the Apache Software Foundation (ASF) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional information regarding copyright ownership.
-- The ASF licenses this file to You under the Apache License, Version 2.0
-- (the "License"); you may ... | nilq/small-lua-stack | null |
local loader = require '../include/loader'.loadDir
local type = require '../include/utils'.classType
local Command = require '../objects/Command'
--- TODO: Expose FILES_PATT to the end-user, allowing customizing
local FILES_PATT = '([^%/]+)%.command%.lua$'
local baseErr = 'Commands Loader (Command "%s") | %s'
return... | nilq/small-lua-stack | null |
--[[
Copyright (C) 2013-2018 Draios Inc dba Sysdig.
This file is part of sysdig.
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 ... | nilq/small-lua-stack | null |
-- Author: philh30
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, so... | nilq/small-lua-stack | null |
TabLeftItem = setmetatable({}, TabLeftItem)
TabLeftItem.__index = TabLeftItem
TabLeftItem.__call = function()
return "TabLeftItem", "TabLeftItem"
end
function TabLeftItem.New(label, _type, mainColor, highlightColor)
local data = {
Label = label or "",
ItemType = _type,
Focused = false,
... | nilq/small-lua-stack | null |
---
-- Override global(_G) namepace, inspired by kong
--
return function(opts)
-- For further setting
opts = opts or {}
-- Add a special randomseed for math, no arguments
do
local utils = require "core.utils.utils"
local randomseed = math.randomseed
local seed
_G.math.r... | nilq/small-lua-stack | null |
-- NetHack 3.7 Barb.des $NHDT-Date: 1432512784 2015/05/25 00:13:04 $ $NHDT-Branch: master $:$NHDT-Revision: 1.9 $
-- Copyright (c) 1989 by Jean-Christophe Collet
-- Copyright (c) 1991 by M. Stephenson
-- NetHack may be freely redistributed. See license for details.
--
des.level_flags("mazelevel", "outdoors", "hardflo... | nilq/small-lua-stack | null |
-- Based on https://github.com/minetest-mods/homedecor_modpack/blob/master/computer/tetris.lua
local shapes = {
{ { x = {0, 1, 0, 1}, y = {0, 0, 1, 1} } },
{ { x = {1, 1, 1, 1}, y = {0, 1, 2, 3} },
{ x = {0, 1, 2, 3}, y = {1, 1, 1, 1} } },
{ { x = {0, 0, 1, 1}, y = {0, 1, 1, 2} },
{ x = {1, 2... | nilq/small-lua-stack | null |
ys = ys or {}
slot1 = ys.Battle.BattleConst
ys.Battle.BattleDepthChargeUnit = class("BattleDepthChargeUnit", ys.Battle.BattleWeaponUnit)
ys.Battle.BattleDepthChargeUnit.__name = "BattleDepthChargeUnit"
slot3 = ys.Battle.BattleTargetChoise
ys.Battle.BattleDepthChargeUnit.Ctor = function (slot0)
slot0.super.Ctor(slot0)... | nilq/small-lua-stack | null |
local _M = {}
function _M.filter(args)
local cjson = require "cjson"
local util = require("util")
local RedisManager = require("RedisManager")
local rurl = ngx.var.url
local jsonbody = args.jsonbody
local args = args.args
local urlStr = args.urlMapStr
if urlStr == "" then
n... | nilq/small-lua-stack | null |
local skynet = require "skynet"
require "Common.Util.util"
require "ECS.ECS"
require "common.helper"
RequireAllLuaFileInFolder("./game/System")
local NORET = {}
local CMD = {}
local this = {
--the scene object includes the role monster npc
cur_scene_id = 0,
scene_uid = 0,
role_list = {},
npc_list = {},
monster_l... | nilq/small-lua-stack | null |
local Condition = require('condition')
local Field = require('field')
local set = require('set')
local ConditionMatchTests = test.declare('ConditionMatchTests', 'condition')
local _DEFINES = Field.get('defines')
local _KIND = Field.get('kind')
local _PROJECTS = Field.get('projects')
local _WORKSPACES = Field.get('wor... | nilq/small-lua-stack | null |
solution "zdb"
targetdir (".")
newoption {
trigger = 'debug-validation',
description = "Log changes during certificate validation jobs (deprecated)"
}
configurations { "Debug", "Release" }
if _OPTIONS["debug-validation"] then
defines { "VALIDATION_DEBUG" }
end
fil... | nilq/small-lua-stack | null |
local JSON = require('json')
local Curl = require('curl')
local transports = {
polling = {
send = function (self, data, callback)
self:finish(data, callback)
end,
receive = function (req, res, callback)
Curl.parse_request(req, function (err, data)
callback(data)
-- data is ... | nilq/small-lua-stack | null |
-- Original Credits: Path of Guardians
--[[ Available triggers:
* OnMoveOrder
* OnAttackOrder
* OnBuyback
* OnDeath
* OnSpawn
* OnFirstSpawn
* OnTakeDamage
* OnHeroKill
* OnCreepKill
* OnCreepDeny
* OnAbilityCast
* OnArcaneRune
* OnDoubleDamageRune
* OnBountyRune
* OnHasteRune
* OnIllusionRune
* OnInvisibilityRune
* O... | nilq/small-lua-stack | null |
function f(...)
return arg
end
| nilq/small-lua-stack | null |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
lua54 'yes'
description 'ESX Police Job'
version '1.0.0'
server_scripts {
'@es_extended/locale.lua',
'translation/sv.lua',
'translation/en.lua',
'config.lua',
'server/main.lua',
}
client_scripts {
'@es_extended/locale.lua',
... | nilq/small-lua-stack | null |
local expander_approx_frequent = require 'Q/OPERATORS/APPROX/FREQUENT/lua/expander_approx_frequent'
local function approx_frequent(x, min_freq, err)
assert(type(x) == 'lVector', 'x must be a lVector')
assert(type(min_freq) == 'number' and min_freq > 0,
'min_freq must be a positive number')
assert(type(e... | nilq/small-lua-stack | null |
local _, C = unpack(select(2, ...))
if C["ActionBar"].Enable ~= true then
return
end
-- Lua API
local _G = _G
local unpack = unpack
-- Wow API
local ActionHasRange = _G.ActionHasRange
local hooksecurefunc = _G.hooksecurefunc
local IsActionInRange = _G.IsActionInRange
local IsUsableAction = _G.IsUsableAction
local TO... | nilq/small-lua-stack | null |
local tileSize = 32
local gravity = 600
_G.tileSize = tileSize
_G.gravity = gravity
local LevelEditor = require "leveleditor"
local World = require "world"
function love.load()
love.graphics.setBackgroundColor(255,255,255)
LevelEditor:initialize()
World:initialize()
end
function love.update(dt)
if World.state ==... | nilq/small-lua-stack | null |
--[[
* The MIT License
* Copyright (C) 2012 Derick Dong (derickdong@hotmail.com). All rights reserved.
*
* 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
* with... | nilq/small-lua-stack | null |
local playerMeta = FindMetaTable("Player")
function playerMeta:IsEmpire()
return true
end
| nilq/small-lua-stack | null |
-- tnp_player_cursorstack()
-- Returns the item name under the cursor stack, or nil
function tnp_player_cursorstack(player)
if not player or not player.valid then
return
end
if player.cursor_stack and player.cursor_stack.valid and player.cursor_stack.valid_for_read then
return player.curs... | nilq/small-lua-stack | null |
require "suproxy.utils.stringUtils"
require "suproxy.utils.pureluapack"
local ok,cjson=pcall(require,"cjson")
local tableUtils=require "suproxy.utils.tableUtils"
local extends=tableUtils.extends
if not ok then cjson = require("suproxy.utils.json") end
local logger=require "suproxy.utils.compatibleLog"
local unic... | nilq/small-lua-stack | null |
local rcall = redis.call
local key = KEYS[1] .. ':' .. KEYS[2]
return rcall('lpush', key, unpack(ARGV)) | nilq/small-lua-stack | null |
local Text = require "widgets/text"
local Image = require "widgets/image"
local Widget = require "widgets/widget"
local UIAnim = require "widgets/uianim"
local SBItemTile = Class(Widget, function(self, itemt)
Widget._ctor(self, "Tipbox")
self.bg = self:AddChild(Image())
self.bg:SetTexture(HUD_ATLAS, "inv_... | nilq/small-lua-stack | null |
--[[-------------------------------------------------------------------]]--[[
Copyright wiltOS Technologies LLC, 2020
Contact: www.wiltostech.com
----------------------------------------]]--
wOS = wOS or {}
include( "wos/advswl/storage/core/cl_core.lua" )
include( "wos/advswl/storage/core/cl_net.lua"... | nilq/small-lua-stack | null |
local suit = require('modules.suit')
local options = {}
options = Gamestate.new() -- Menu de opções do menu principal
return options
| nilq/small-lua-stack | null |
f {c=3}
f {c=5,zindex=40,bg='#FF0000'}
f {c=7,zindex=60, bg='#00FF00'}
| nilq/small-lua-stack | null |
--[[
lua tokenizer simplified to
1 All tokens that have a special meaning in Lua return type "Atom"
2 You can add constant keywords that override anything, their type is "Special"
3 to always return a type, value and processed value with the idea that the processed value will be the one used
3 The other usable ty... | nilq/small-lua-stack | null |
local has_value = require("doom.utils").has_value
local doomrc = require("doom.core.config.doomrc").load_doomrc()
local functions = require("doom.core.functions")
local function get_ts_parsers(languages)
local langs = {}
for _, lang in ipairs(languages) do
-- If the lang is config then add parsers for JSON, Y... | nilq/small-lua-stack | null |
include('shared.lua')
function ENT:Initialize()
local gun = ents.CreateClientProp(self.GunModel)
local ang = self:GetAngles()
gun:SetPos(self:GetPos() +ang:Up() *22 +ang:Right() *3.2)
gun:SetAngles(ang)
gun:SetParent(self)
gun:Spawn()
self.GunTurret = gun
self.Target = NULL
local mn, mx = self:GetRenderBounds... | nilq/small-lua-stack | null |
if not ConVarExists("nzu_sandbox_enable") then CreateConVar("nzu_sandbox_enable", 1, {FCVAR_REPLICATED, FCVAR_ARCHIVE, FCVAR_SERVER_CAN_EXECUTE}) end
if GetConVar("nzu_sandbox_enable"):GetBool() then
if engine.ActiveGamemode() == "sandbox" then
print("NZOMBIES UNLIMITED: Loading Sandbox...")
AddCSLuaFile("nzombies... | nilq/small-lua-stack | null |
if not zen then zen = {} end
if not zen.chemistry then zen.chemistry = {} end
require("prototypes.fluid")
require("prototypes.item")
require("prototypes.technology")
require("prototypes.recipe")
| nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- Module Declaration
--
local mod, CL = BigWigs:NewBoss("Naltira", 1516, 1500)
if not mod then return end
mod:RegisterEnableMob(98207, 98759) -- Naltira, Vicious Manafang
mod.engageId = 1826
--------------------------------------------... | nilq/small-lua-stack | null |
local endpoint_url = os.getenv("APILITYIO_URL") .. "/badip/"
local cache_ttl = tonumber(os.getenv("APILITYIO_LOCAL_CACHE_TTL"))
local x_auth_token = os.getenv("APILITYIO_API_KEY")
local all_headers = {}
if x_auth_token then
all_headers = { ["X-Auth-Token"] = x_auth_token }
end
local ip = ngx.var.remote_add... | nilq/small-lua-stack | null |
object_tangible_quest_computer_terminal = object_tangible_quest_shared_computer_terminal:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_computer_terminal, "object/tangible/quest/computer_terminal.iff")
| nilq/small-lua-stack | null |
DoorTable = {
Lock = {}
}
DoorCoOwners = {}
local meta = FindMetaTable( "Player" )
function meta:CanUseDoor( index )
if !DoorTable[index] then return false end
return DoorRestrictions[DoorTable[index]].CheckFunction( self )
end | nilq/small-lua-stack | null |
require("firecast.lua");
local __o_rrpgObjs = require("rrpgObjs.lua");
require("rrpgGUI.lua");
require("rrpgDialogs.lua");
require("rrpgLFM.lua");
require("ndb.lua");
require("locale.lua");
local __o_Utils = require("utils.lua");
local function constructNew_frmL5A5_svg()
local obj = GUI.fromHandle(_obj_newObject("... | nilq/small-lua-stack | null |
exports.name = "bitmap"
exports.version = "0.0.1"
exports.author = "Niklas Kühtmann"
exports.description = "Utility for working with bitmaps"
local bit = require('bit')
local mt = {}
mt.__index = function(self, k)
return rawget(self, k) or self.bits[k] or 0
end
mt.__newindex = function(self, k, v)
if tonumbe... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Kazham
-- NPC: Eron-Tomaron
-- Title Change NPC
-- !pos -22 -4 -24 250
-----------------------------------
require("scripts/globals/titles")
-----------------------------------
local eventId = 10013
local titleInfo =
{
{
cost = 200,
title =
{
... | nilq/small-lua-stack | null |
---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
-- * (c) org-awesome, Damien Leone
---------------------------------------------------
-- {{{ Grab environment
local io = { lines = io.lines }
local setmetatable = set... | nilq/small-lua-stack | null |
ModifyEvent(-2, -2, -1, -1, -1, -1, -1, 2468, 2468, 2468, -2, -2, -2);
AddItem(8, 6);
do return end;
| nilq/small-lua-stack | null |
local antig = {
affectid="antig",
name="Anti Gravity",
stages={
{
time=60,
physics = { gravity = .3 }
},
{
time=60,
physics = { gravity = .5 }
},
{
time=60,
physics = { gravity = .9 }
}
},
onremove = functio... | nilq/small-lua-stack | null |
object_tangible_loot_creature_loot_collections_space_booster_mark_05_kessel = object_tangible_loot_creature_loot_collections_space_shared_booster_mark_05_kessel:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_space_booster_mark_05_kessel, "object/tangible/loot/creature/loot/collecti... | nilq/small-lua-stack | null |
function love.conf(t)
t.window.title = 'title'
end
| nilq/small-lua-stack | null |
--------- [ Element Data returns ] ---------
local function getData( theElement, key )
local key = tostring(key)
if isElement(theElement) and (key) then
return exports['[ars]anticheat-system']:callData( theElement, tostring(key) )
else
return false
end
end
--------- [ Resource System ] ---------
local func... | nilq/small-lua-stack | null |
modifier_elementalbuilder_passive_void_negative_lua = class({})
--------------------------------------------------------------------------------
function modifier_elementalbuilder_passive_void_negative_lua:IsHidden()
if self:GetStackCount() < 1 then return true else return false end
end
--------------------------... | nilq/small-lua-stack | null |
---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0216-widget-support.md
--
-- Description: Check that SDL transfer `OnSystemCapabilitiesUpdated` notification from HMI to an App
-- which... | nilq/small-lua-stack | null |
includeFile("dungeon/death_watch_bunker/black_sun_assassin.lua")
includeFile("dungeon/death_watch_bunker/black_sun_guard.lua")
includeFile("dungeon/death_watch_bunker/black_sun_henchman.lua")
includeFile("dungeon/death_watch_bunker/black_sun_thug.lua")
includeFile("dungeon/death_watch_bunker/death_watch_battle_droid.lu... | nilq/small-lua-stack | null |
object_mobile_dressed_gcw_rebel_buff_officer = object_mobile_shared_dressed_gcw_rebel_buff_officer:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_gcw_rebel_buff_officer, "object/mobile/dressed_gcw_rebel_buff_officer.iff")
| nilq/small-lua-stack | null |
local M = {}
local h = require('helper')
function M.setup()
vim.g.table_mode_always_active = 1
h.map("n", "<Leader><Leader>a", "<cmd>TableModeRealign<CR>")
end
return M
| nilq/small-lua-stack | null |
--[[ Copyright (c) 2010 Manuel "Roujin" Wolf
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, modify, merge, publish, dist... | nilq/small-lua-stack | null |
local grid = require("src.grid")
local palette = require("src.palette.pigment")
local sounds = require("src.sounds")
local state = class()
local use_shader = true
--setup instance
function state:new()
self.background_colour = palette.dark
local function screen_canvas()
return love.graphics.newCanvas(love.graphi... | nilq/small-lua-stack | null |
function div(a, b) return math.floor(a/b) end
XOR_l = {{0,1}, {1,0}}
function xor(a, b)
pow, c = 1, 0
while a > 0 or b > 0 do
c = c + (XOR_l[(a % 2)+1][(b % 2)+1] * pow)
a, b, pow = div(a, 2), div(b, 2), pow * 2
end
return c
end
local ff = 2^32 - 1
function band(a,b) return (a + b - xor(a, b))/... | nilq/small-lua-stack | null |
local nmap = require "nmap"
local shortport = require "shortport"
local snmp = require "snmp"
local stdnse = require "stdnse"
local table = require "table"
description = [[
Checks for SCADA Siemens <code>SCALANCE</code> modules.
The higher the verbosity or debug level, the more disallowed entries are shown.
]]
---
-... | nilq/small-lua-stack | null |
local bloomd = require("resty.bloomd")
local function debug(name, ok, err)
if type(err) == 'table' then
local t = {}
for k, v in pairs(err) do
table.insert(t, k .. ":" .. tostring(v))
end
err = table.concat(t, ",")
end
ngx.say(string.format("%15s -- ok: %5s, err: %s", name, tostring(ok), tostr... | nilq/small-lua-stack | null |
JackpotConfig = {}
JackpotConfig.MaxBet = 500000 --This is the max bet a user can bet
JackpotConfig.MinBet = 10 -- This is the minimum amount a user can bet
| nilq/small-lua-stack | null |
local f = string.format
local t = My.Translator.translate
My.Translator:register("de", {
comms_generic_hail = function(person)
return Util.random({
"Hallo.",
"Servus.",
"Guten Tag.",
"Seien Sie gegrüßt.",
}) .. " " .. t("comms_generic_introduction", p... | nilq/small-lua-stack | null |
Config = {}
Config.Styles = {
{
label = 'Arrogant',
value = 'move_f@arrogant@a'
},
{
label = 'Casual',
value = 'move_m@casual@a'
},
{
label = 'Casual 2',
value = 'move_m@casual@b'
},
{
label = 'Casual 3',
value = 'move_m@casual@c'
},
{
label = 'Casual 4',
value ... | nilq/small-lua-stack | null |
fs_village_area = SharedObjectTemplate:new {
clientTemplateFileName = "",
planetMapCategory = "",
planetMapSubCategory = "",
autoRegisterWithPlanetMap = 1,
zoneComponent = "ZoneComponent",
objectMenuComponent = "ObjectMenuComponent",
containerComponent = "ContainerComponent",
gameObjectType = 33554442
}
Obje... | nilq/small-lua-stack | null |
require'nvim-treesitter.configs'.setup {
ensure_installed = {"bash", "c", "cmake", "cpp", "css", "html", "javascript", "json",
"latex", "make", "python", "rust", "toml", "typescript", "yaml", "vim"} ,
highlight = {
enable = true,
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.... | nilq/small-lua-stack | null |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('AmbientLife', {
group = "VisitSpot",
id = "Playground",
param1 = "unit",
param2 = "bld",
param3 = "obj",
param4 = "spot",
param5 = "slot_data",
param6 = "slot",
param7 = "slotname",
PlaceObj('XPrgCheckExpression', {
'expression', "... | nilq/small-lua-stack | null |
--[[
Name: electronics_store.lua
For: SantosRP
By: Ultra
]]--
local MapProp = {}
MapProp.ID = "electronics_store"
MapProp.m_tblSpawn = {
{ mdl = 'models/props/cs_office/phone_p2.mdl',pos = Vector('-2401.705078 -1995.842773 112.655205'), ang = Angle('0.000 77.278 -90.000') },
{ mdl = 'models/props/cs_office/phone_... | nilq/small-lua-stack | null |
--[[
Name: speed_test-ain_ef.lua
Desc: This example will read a thermocouple connected to AIN0 as fast as possible
Note: In most cases, users should throttle their code execution using the
functions: "LJ.IntervalConfig(0, 1000)", and "if LJ.CheckInterval(0)"
On a T7 (FW 1.0282) this exa... | nilq/small-lua-stack | null |
local min, max, sqrt, abs, atan2, pi = math.min, math.max, math.sqrt, math.abs,
math.atan2, math.pi
--- Contains some basic math functions.
--- The reason for the naming is to avoide the standard `math` module from lua.
local Maph = {}
function Maph.moveToward(from, to, delta)
... | nilq/small-lua-stack | null |
local templates = require "atlas.templates"
local render = templates.render
local controllers = {}
function controllers.home(request) return render(request, "home.html", {}) end
function controllers.about(request) return render(request, "about.html", {}) end
return controllers
| nilq/small-lua-stack | null |
_G.my = {
shell = function (command)
local handle = io.popen(command)
local result = handle:read("*a")
handle:close()
return result
end,
SyncAndRestartConfig = function ()
_G.my.shell('bash ~/main/src/dotfiles/sync.sh')
vim.cmd('PackerCompile')
end,
... | nilq/small-lua-stack | null |
---@class CS.UnityEngine.Vector4 : CS.System.ValueType
---@field public kEpsilon number
---@field public x number
---@field public y number
---@field public z number
---@field public w number
---@field public Item number
---@field public normalized CS.UnityEngine.Vector4
---@field public magnitude number
---@field publ... | nilq/small-lua-stack | null |
-- KillZoneServer.lua
-- Kills any player that enters this component
-- Created by Nicholas Foreman (https://www.coregames.com/user/f9df3457225741c89209f6d484d0eba8)
local Void = script:GetCustomProperty("Trigger"):WaitForObject()
local function enteredVoid(trigger, player)
if(not player:IsA("Player")) then return e... | nilq/small-lua-stack | null |
local CmdLine = torch.class('torch.CmdLine')
local function strip(str)
return string.match(str, '%-*(.*)')
end
local function pad(str, sz)
return str .. string.rep(' ', sz-#str)
end
function CmdLine:error(msg)
print('')
io.stderr:write(msg)
print('')
self:help()
os.exit(1)
end
function CmdLine:... | nilq/small-lua-stack | null |
local ok, telescope = pcall(require, "telescope")
if not ok then
return
end
telescope.setup({})
telescope.load_extension("fzf")
telescope.load_extension("gh")
local r = require("user.remap").nnoremap
r("<leader>ff", ":Telescope find_files<CR>")
r("<C-p>", ":Telescope git_files<CR>")
r("<leader>of", ":Telescope oldfi... | nilq/small-lua-stack | null |
--- RP Revive, Made by DEJSU ---
local reviveWait = 0 -- Change the amount of time to wait before allowing revive (in seconds)
local isDead = false
local timerCount = reviveWait
-- Turn off automatic respawn here instead of updating FiveM file.
AddEventHandler('onClientMapStart', function()
Citizen.Trace... | nilq/small-lua-stack | null |
debug_print("Application: " .. get_application_name())
debug_print("Window: " .. get_window_name());
| nilq/small-lua-stack | null |
-----------------------------------
-- Area: Metalworks
-- NPC: Moyoyo
-- Type: Standard NPC
-- !pos 19.508 -17 26.870 237
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
player:startEvent(2... | nilq/small-lua-stack | null |
local table = require 'ext.table'
local range = require 'ext.range'
local greekSymbolsAndNames = table{
{alpha = 'α'}, --άλφα [a] [aː] [a]
{beta = 'β'}, --βήτα [b] [v]
{gamma = 'γ'}, --γάμμα [ɡ], [ŋ][ex 1] [ɣ] ~ [ʝ], [ŋ][ex 2] ~ [ɲ][ex 3]
{delta = 'δ'}, --δέλτα [d] [ð]
{epsilon = 'ε'}, --έψιλον [e]
... | nilq/small-lua-stack | null |
local _E
local function player(index)
local slotFrame = index and _G["TradePlayerItem"..index.."ItemButton"]
local slotLink = index and GetTradePlayerItemLink(index)
SyLevel:CallFilters("trade", slotFrame, _E and slotLink)
end
local function target(index)
local slotFrame = index and _G["TradeRecipientItem"..inde... | nilq/small-lua-stack | null |
--[[
For easy composition, UDVListEntry function simply turns a
'struct udev_list_entry' into a table with two named fields.
If either of the fields is NULL on the C side, it will not
show up within the table.
safeffistring is used to ensure we don't crash in case a
NULL value is present. Instead it will simpl... | nilq/small-lua-stack | null |
require "prototypes.global-robot-combinator"
| nilq/small-lua-stack | null |
-----------------------------------------
-- ID: 18270, 18271, 18638, 18652, 18666, 19747, 19840, 20555, 20556, 20583
-- Item: Mandau
-- Additional Effect: Poison
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------... | nilq/small-lua-stack | null |
require "app.game.gm.gm"
require "app.game.gm.helper"
require "app.game.gm.sys"
require "app.game.gm.admin"
| nilq/small-lua-stack | null |
-- --------------------
-- TellMeWhen
-- Originally by Nephthys of Hyjal <lieandswell@yahoo.com>
-- Other contributions by:
-- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol,
-- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune
-- Currently maintained by
-- Cybeloras of Aerie ... | nilq/small-lua-stack | null |
local config = require("config")
local ltn = {}
function ltn.save_stop_update(logistic_train_stops)
global.last_ltn_update = logistic_train_stops
end
function ltn.get_network(stop_id)
if ltn.is_ltn_stop(stop_id) then
return global.last_ltn_update[stop_id].network_id
end
end
function ltn.is_ltn_s... | nilq/small-lua-stack | null |
function fire_effect(keys)
local target = keys.target
local particleName =
"particles/units/heroes/hero_zuus/zuus_lightning_bolt.vpcf"
local particle = ParticleManager:CreateParticle(particleName,
PATTACH_WORLDORIGIN, target)
local vec = target... | nilq/small-lua-stack | null |
-- 从httpc库导入并且使用
local httpc = require "httpc"
local basic_key, basic_value = httpc.basic_authorization("myusername", "mypassword")
print(basic_key, basic_value)
local jwt_header_key, jwt_header_value = httpc.jwt("mysecret", [[{"key1":"value1","key2":"value2"}]])
print(jwt_header_key, jwt_header_value)
-- 从httpc类库中... | nilq/small-lua-stack | null |
local planet = require("Planet")
local vehicle = Class({
topSpeed = 60;
name = "";
value = 100;
manufacturer = "";
engineStatus = "off";
start = function(self) self.engineStatus = "on" end;
stop = function(self) self.engineStatus = "off" end;
})
local car = Class({
value = 200;
hor... | nilq/small-lua-stack | null |
local function LoadCustomLibrary(Name)
return require(script.Parent[Name])
end
local Promise = LoadCustomLibrary("Promise")
local Signal = LoadCustomLibrary("Signal")
local MakeMaid = LoadCustomLibrary("Maid").MakeMaid
local HttpPromise = LoadCustomLibrary("HttpPromise")
local LongPoll = {}
LongPoll.__index = LongP... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Silver Sea Remnants
-- NM: Long-Armed Chariot
-----------------------------------
require("scripts/globals/titles")
-----------------------------------
function onMobDeath(mob, player, isKiller)
player:addTitle(tpz.title.MOON_CHARIOTEER)
end
| nilq/small-lua-stack | null |
return {
["GH0001"] = {
category = "book",
title = "Rhythmic Illusions",
subtitle = "for drums",
author = "Gavin Harrison",
publisher = "Warner",
isbn = "1576236870",
year = "1996",
comment = "plus cd",
},
["GH0002"] = { --... | nilq/small-lua-stack | null |
--[[
Flying Saucer Training
This is a training mission which teaches many basic (and not-so-basic) moves
with the flying saucer.
Lesson plan:
- Taking off
- Basic flight
- Landing safely
- Managing fuel
- Changing saucers in mid-flight
- Diving
- Dropping weapons from flying saucer
- Firing from flying sau... | nilq/small-lua-stack | null |
local base = require 'http.adapters.nginx.base'
local describe, it, assert = describe, it, assert
describe('http.adapters.nginx.base', function()
describe('response writer', function()
it('get or set status code', function()
local w = setmetatable({ngx={}}, {__index=base.ResponseWriter})
... | nilq/small-lua-stack | null |
--
-- Please see the readme.txt file included with this distribution for
-- attribution and copyright information.
--
--
-- DATA STRUCTURES
--
-- rCreature
-- sType
-- sName
-- nodeCreature
-- sCreatureNode
-- nodeCT
-- sCTNode
-- rEffect
-- sName = ""
-- sExpire = ""
-- nInit = #
-- sSource = ""
-- ... | nilq/small-lua-stack | null |
require('actors/space/vehicles/Ship')
local image = passion.graphics.getImage('images/image.png')
LensCulinaris = class('LensCulinaris', Ship)
function LensCulinaris:initialize(ai, x, y, quadTree)
super.initialize(self, ai, x,y, 16,16,
-- Shapes
{ circle={0,0,16} },
-- Slots
{ frontLeft= { x=6, y=-... | nilq/small-lua-stack | null |
MaskMaterialModule = MaskMaterialModule or class(ItemModuleBase)
MaskMaterialModule.type_name = "MaskMaterial"
function MaskMaterialModule:init(...)
self.clean_table = table.add(clone(self.clean_table), {{param = "pcs", action = "no_number_indexes"}})
return MaskMaterialModule.super.init(self, ...)
end
functi... | nilq/small-lua-stack | null |
-- SPDX-License-Identifier: MIT
local version = '1.1.7'
hexchat.register(
'Unhighlight Channels',
version,
'Allows you to convert highlights to regular text events for each channel'
)
----------------------------------------------------
-- Utility functions and variables
--------------------------------------------... | nilq/small-lua-stack | null |
local torch = require "torch"
-- Lua 5.2 compatibility
local unpack = unpack or table.unpack
local HDF5DataSet = torch.class("hdf5.HDF5DataSet")
--[[ Get the sizes and max sizes of an HDF5 dataspace, returning them in Lua tables ]]
local function getDataspaceSize(nDims, spaceID)
local size_t = hdf5.ffi.typeof("h... | nilq/small-lua-stack | null |
require('constants')
require('quest')
-- Bagra will use her black magic to create an unholy dagger from the three
-- relics. This dagger can be given to Amaurosis to split the universe in
-- two and cause its destruction.
local function bagra_shrine_precond_fn()
return not (is_quest_completed("blacksmith_shrine"))
... | nilq/small-lua-stack | null |
-- A "condition machine" scheduler.
--
-- Not quite sure yet if this is meaningful, but here is the idea: On
-- a uC, it is very convenient to work with round robin polling tasks.
-- E.g. instead of using an explicit scheduler, resume each task and
-- let it inspect its environment and decide if it is ready to
-- conti... | nilq/small-lua-stack | null |
require "luaScript/ActionsTest/ActionsName"
local ActionIdx = -1
local size = CCDirector:sharedDirector():getWinSize()
local titleLabel = nil
local subtitleLabel = nil
local function BackAction()
ActionIdx = ActionIdx - 1
if ActionIdx < 0 then
ActionIdx = ActionIdx + Action_Table.ACTION_LAYER_COUNT
end
re... | 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.