content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
local config = require('config')
local Vector2D = require('utils/vector2d')
local tlm = {}
local quad = love.graphics.newQuad
-- TODO: take config from tilemap
local y = 6
local x = 8
local tileWidth = config.tileWidth
local tileHeight = config.tileHeight
local tilesheetWidth = config.tilesheetWidth
local tilesheet... | nilq/small-lua-stack | null |
local jid_bare = require "util.jid".bare;
local xmlns_pubsub = "http://jabber.org/protocol/pubsub";
local xmlns_pubsub_event = "http://jabber.org/protocol/pubsub#event";
local xmlns_pubsub_errors = "http://jabber.org/protocol/pubsub#errors";
local pubsub = {};
local pubsub_mt = { __index = pubsub };
function verse.p... | nilq/small-lua-stack | null |
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- Integrator options -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- Algorithmic paramters (for rho_infinity = 0.9)
alpha_m = 8/ 19
alpha_f = 9/ 19
beta = 100/361
gamma = 21/ 38
-- Use c... | nilq/small-lua-stack | null |
ROOKI = ROOKI or {}
local ply = FindMetaTable("Player")
function ply:getJob()
if (self.getJobTable and isfunction(self.getJobTable)) then return self:getJobTable() or {} end
return false
end
function ply:getJobName()
if (self.getJobTable and isfunction(self.getJobTable)) then return self:getJobTa... | nilq/small-lua-stack | null |
-- Lua stuff
function onCreate()
-- triggered when the lua file is started
-- create a lua sprite called "sexualintercourse"
end
-- Gameplay interactions
function onBeatHit()
-- triggered 4 times per section
if curBeat == 196 or curBeat == 312 then
makeAnimatedLuaSprite('sexualintercourse', 'characters/uh', 0, ... | nilq/small-lua-stack | null |
local MODNAME = minetest.get_current_modname()
local api = rawget(_G, MODNAME)
function api.also_register_loaded_tool(name, def, user_loaded_def)
local loaded_def = table.copy(def)
if user_loaded_def then
user_loaded_def(loaded_def)
end
loaded_def.unloaded_name = name
def.loaded_name = name.."_loaded"
minet... | nilq/small-lua-stack | null |
local config = require('orgmode.config')
local highlights = require('orgmode.colors.highlights')
---@class TodoState
---@field current_state string
---@field hl_map table
---@field todos table
local TodoState = {}
---@param data table
function TodoState:new(data)
local opts = {}
opts.current_state = data.current_... | nilq/small-lua-stack | null |
--[[
/*
* V4L2 video capture example
*
* This program can be used and distributed without restrictions.
*
* This program is provided with the V4L2 API
* see http://linuxtv.org/docs.php for more information
*/
--]]
require ("videodev2")()
local int = ffi.typeof("int")
local function CLEAR(x)
libc... | nilq/small-lua-stack | null |
require "initenv"
function create_network(args)
local net = nn.Sequential()
net:add(nn.Reshape(unpack(args.input_dims)))
--- first convolutional layer
local convLayer = nn.SpatialConvolution
net:add(convLayer(args.hist_len*args.ncols, args.n_units[1],
args.filter_size[1],... | nilq/small-lua-stack | null |
local ffi = require("ffi")
local levee = require("levee")
local _ = levee._
return {
test_spawn = function()
local h = levee.Hub()
local beats = {}
h:spawn(function()
for i = 1, 2 do
h:sleep(10)
table.insert(beats, "tick")
end
end)
for i = 1, 2 do
h:sleep(10)
table.insert(beats, "to... | nilq/small-lua-stack | null |
--
-- LANES.LUA
--
-- Multithreading and -core support for Lua
--
-- Author: Asko Kauppi <akauppi@gmail.com>
--
-- History:
-- Jun-08 AKa: major revise
-- 15-May-07 AKa: pthread_join():less version, some speedup & ability to
-- handle more threads (~ 8000-9000, up from ~ 5000)
-- 26-Feb-07 AK... | nilq/small-lua-stack | null |
--[[
This file is part of ClearTables
@author Paul Norman <penorman@mac.com>
@copyright 2016 Paul Norman, MIT license
]]--
require "landform"
print("landform.lua tests")
print("TESTING: accept_landform_point")
assert(not accept_landform_point({}), "test failed: untagged")
assert(not accept_landform_point({foo="bar"}... | nilq/small-lua-stack | null |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
files {}
server_scripts {"server.lua"}
client_scripts {"client.lua"} | nilq/small-lua-stack | null |
data:extend({
{
type = "selection-tool",
name = "ore-move-planner",
icon = "__KingsOmniMatterMove__/graphics/planner.png",
icon_size = 32,
stack_size = 1,
stackable = false,
subgroup = "tool",
order = "c[automated-construction]-d[dirty-planner]",
flags = {"only-in-cursor", "spawnabl... | nilq/small-lua-stack | null |
----------------------------------------------------------------------
-- sys - a package that provides simple system (unix) tools
----------------------------------------------------------------------
local os = require 'os'
local io = require 'io'
local paths = require 'paths'
sys = {}
----------------------------... | nilq/small-lua-stack | null |
return {'bjorn','bjorn','bjorns','bjorns'} | nilq/small-lua-stack | null |
--Commands
COMM_INIT = "\27@"
COMM_CLR = "\12"
COMM_HOM = "\11"
COMM_CSR_OFF = "\31\67\00"
COMM_CSR_ON = "\31\67\01"
--Constants
PORT = 2342
ROW_LENGTH = 20
--State variables
first_msg = true
function info(ip, port)
uart.write(0, COMM_CLR)
uart.write(0, COMM_CSR_OFF)
local sIP = "IP"
local sPORT = "PORT"... | nilq/small-lua-stack | null |
-- Docfarming Cucumber imported into Farming_Plus by MTDad
-- main `S` code in init.lua
local S
S = farming.S
minetest.register_craftitem("farming_plus:cucumber_seed", {
description = S("Cucumber Seeds"),
inventory_image = "farming_cucumber_seed.png",
on_place = function(itemstack, placer, pointed_thing)
return ... | nilq/small-lua-stack | null |
local M = {}
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
M.prefix = {
bufferline = '<leader>b',
coderunner = '<leader>c',
hop = '<leader>h',
lsp = '<leader>l',
nvimtree = '<leader>n',
playground = '<leader>p',
telescope = '<leader>t',
visualmulti = '<leader>v',
}
M.register_prefix = function(plu... | nilq/small-lua-stack | null |
data:extend(
{
{
type = "recipe",
name = "MOX-recipe",
icon = graphics .. "MOX.png",
icon_size = 64, mipmap_count = 4,
category = "centrifuging",
energy_required = 20,
enabled = false,
order = "d",
subgroup = "resources",
ingred... | nilq/small-lua-stack | null |
-- Nuclear Winter
--------------------------------------------------------------
function CountFalloutPlots() -------Count the Fallout plots on the map
local iFallout = 0
for plotLoop = 0, Map.GetNumPlots() - 1, 1 do
local plot = Map.GetPlotByIndex(plotLoop);
local featureType = plot:GetFeatureType();
if ( ... | nilq/small-lua-stack | null |
local beautiful = require("beautiful")
local mstab = require(... .. ".mstab")
beautiful.layout_mstab = mstab.get_icon()
local vertical = require(... .. ".vertical")
beautiful.layout_vertical = vertical.get_icon()
local horizontal = require(... .. ".horizontal")
beautiful.layout_horizontal = horizontal.get_icon()
lo... | nilq/small-lua-stack | null |
local chatSharp = clr.ChatSharp
local client = chatSharp.IrcClient('irc.rizon.net', chatSharp.IrcUser('citimate', 'mateyate'), false)
-- temporary workaround for connections that never triggered playerActivated but triggered playerDropped
local activatedPlayers = {}
client.ConnectionComplete:add(function(s : ... | nilq/small-lua-stack | null |
--flee.lua
local SUCCESS = luabt.SUCCESS
local RUNNING = luabt.RUNNING
local Flee = class()
function Flee:__init(tick_num)
self.name = "flee"
self.tick_num = tick_num
end
function Flee:open(tree)
if self.tick_num <= 0 then
return SUCCESS
end
print(self.tick_num, "start flee....")
end
fun... | nilq/small-lua-stack | null |
function plugindef()
-- This function and the 'finaleplugin' namespace
-- are both reserved for the plug-in definition.
finaleplugin.RequireSelection = true
finaleplugin.Author = "Robert Patterson"
finaleplugin.Copyright = "CC0 https://creativecommons.org/publicdomain/zero/1.0/"
finaleplugin.Versi... | nilq/small-lua-stack | null |
local a=game.Players.LocalPlayer;repeat wait()until a.Character;local b=a.Character;local c=game.Workspace.CurrentCamera;local d=b:WaitForChild('Head')local e=game:GetService('UserInputService')local f=1337;local g=true;local h=Enum.KeyCode.LeftAlt;local function i(a)if a and a.Character and a.Character:FindFirstChild(... | nilq/small-lua-stack | null |
---------------------------------------------------
-- Statistics collecting module.
-- Calling the module table is a shortcut to calling the `init` function.
-- @class module
-- @name luacov.runner
local runner = {}
--- LuaCov version in `MAJOR.MINOR.PATCH` format.
runner.version = "0.14.0"
local stats = require("lu... | nilq/small-lua-stack | null |
--[[--
text = -- text with the value formatted as a percentage
format.percentage(
value, -- a number, a fraction or nil
{
nil_as = nil_text -- text to be returned for a nil value
digits = digits, -- digits before decimal point ... | nilq/small-lua-stack | null |
-- maps.lua
-- source https://icyphox.sh/blog/nvim-lua/
local map = vim.api.nvim_set_keymap
-- map the leader key
map('n', '<Space>', '', {})
vim.g.mapleader = ' ' -- 'vim.g' sets global variables
options = { noremap = true }
map('n', '<leader><esc>', ':nohlsearch<cr>', options)
map('n', '<leader>n', ... | nilq/small-lua-stack | null |
addEvent( "mdc.vehiclesearch", true )
addEventHandler( "mdc.vehiclesearch", getRootElement( ),
function( plate, owner, model, stolen, page )
local where = { }
if plate and #plate > 0 then
table.insert( where, "v.plate LIKE '" .. mysql_escape_string( handler, plate ):gsub('%*', '%%') .. "'" )
end
... | nilq/small-lua-stack | null |
return {
{
effect_list = {
{
type = "BattleBuffCastSkill",
trigger = {
"onAllInStrikeSteady"
},
arg_list = {
rant = 7000,
target = "TargetSelf",
skill_id = 105120
}
}
}
},
{
effect_list = {
{
type = "BattleBuffCastSkill",
trigger = {
"onAllInStrikeS... | nilq/small-lua-stack | null |
local spawnedVehicles = {}
function OpenVehicleSpawnerMenuSociety(authorizedVehicles, type, playerData, options)
local insideShop = options.insideShop or Config.InsideShop
local playerCoords = GetEntityCoords(PlayerPedId())
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'vehicle', {
title ... | nilq/small-lua-stack | null |
--- Turbo.lua Mustache test
--
-- Copyright 2013 John Abrahamsen
--
-- 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 |
meta.name = "More Frog Types"
meta.description = [[More frog types have been added in this mod.
There is currently just the Anubian frog, which shoots a normal Anubis shot upon death.]]
meta.version = "0.1"
meta.author = "C_ffeeStain"
local anubian_frog_texture = get_texture_definition(TEXTURE.DATA_TEXTURES_MONSTERS03... | nilq/small-lua-stack | null |
------------------------------------------------------------------------------
-- ImageRGB class
------------------------------------------------------------------------------
local ctrl = {
nick = "imagergb",
parent = iup.WIDGET,
creation = "nns", -- fake definition
funcname = "ImageRGB",
callback ... | nilq/small-lua-stack | null |
local cwd = (...):gsub('%.init$', '') .. "."
return {
math = require(cwd .. "math"),
graphics = require(cwd .. "graphics")
}
| nilq/small-lua-stack | null |
--[[
name: Connect Four
author: Charlie Cheever <ccheever@expo.io>
description: An implementation of the classic game Connect Four
]]
local sync = require "https://raw.githubusercontent.com/expo/sync.lua/master/sync.lua"
local Controller = sync.registerType("Controller")
local server, client
function love.draw... | nilq/small-lua-stack | null |
-- https://modit.store
-- ModFreakz
SqlFetch = function(statement,payload,callback)
exports['ghmattimysql']:execute(statement,payload,callback)
end
SqlExecute = function(statement,payload,callback)
exports['ghmattimysql']:execute(statement,payload,callback)
end | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Kazham
-- NPC: Kakapp
-- Standard Info NPC
-----------------------------------
function onTrade(player,npc,trade)
-- item IDs
-- 483 Broken Mithran Fishing Rod
-- 22 Workbench
-- 1008 Ten of Coins
-- 1157 Sands of Silence
-- 1... | nilq/small-lua-stack | null |
local source = {}
local cmp = require("cmp")
local luv = vim.loop
local utf8 = require("cmp_dictionary.lib.utf8")
local caches = require("cmp_dictionary.caches")
local config = require("cmp_dictionary.config")
local util = require("cmp_dictionary.util")
function source.new()
return setmetatable({}, { __index = s... | nilq/small-lua-stack | null |
-- vim: set tabstop=2 softtabstop=2 shiftwidth=2 expandtab:
use "tpope/vim-commentary"
| nilq/small-lua-stack | null |
-----------------------------------------
-- Spell: Queasyshroom
-- Additional effect: Poison. Duration of effect varies with TP
-- Spell cost: 20 MP
-- Monster Type: Plantoids
-- Spell Type: Physical (Piercing)
-- Blue Magic Points: 2
-- Stat Bonus: HP-5, MP+5
-- Level: 8
-- Casting Time: 2 seconds
-- Recast Time: 15 ... | nilq/small-lua-stack | null |
SKIN = {}
SKIN.PrintName = "PERP3"
SKIN.Author = ""
SKIN.DermaVersion = 1
SKIN.colOutline = Color(0, 0, 0, 250)
SKIN.control_color = Color( 100, 100, 100, 200 )
SKIN.control_color_highlight = Color( 130, 130, 130, 200 )
SKIN.control_color_active = Color( 90, 130, 230, 200 )
SKIN.control_color_bright =... | nilq/small-lua-stack | null |
scenes.title = Level.create()
titlefont = love.graphics.newFont("fonts/pixelfont.ttf", 6)
titlefont:setFilter( "nearest", "nearest")
love.graphics.setFont(titlefont)
function scenes.title:load()
--create world boundaries
drawWalls()
--Load backround Sprites
titleimg = GameObject.create()
titleimg.n... | nilq/small-lua-stack | null |
-- Requirement summary:
-- [PTU] Trigger: kilometers
--
-- Description:
-- Describe correctly the CASE of requirement that is covered, conditions that will be used.
-- 1. Used preconditions: The odometer value was "1234" when previous PTU was successfully applied.
-- Policies DataBase contains "exchange_after_x_kilomet... | nilq/small-lua-stack | null |
local mod = DBM:NewMod(1997, "DBM-AntorusBurningThrone", nil, 946)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 17522 $"):sub(12, -3))
mod:SetCreatureID(122369, 122333, 122367)--Chief Engineer Ishkar, General Erodus, Admiral Svirax
mod:SetEncounterID(2070)
mod:SetZone()
mod:SetBossHPInfoToH... | nilq/small-lua-stack | null |
require 'gnuplot'
if arg[1] == nil then
print('-draw\tdraw epoc - error rate graph')
print('-print\tprint error rate for each fold, and total error rate')
os.exit(1)
end
errSum = 0.0
M = {}
table.insert(M, 'log152_1')
table.insert(M, 'log200_1')
--for i = 1,5 do
for i, f in pairs(M) do
errRates = {}
... | nilq/small-lua-stack | null |
--[[
__ __ _______ __ __ __ __ ________
/ \ / / / _____/ \ \ / / \ \ \ \ \ _____\
/ /\ \ / / / /____ \ \/ / \ \ \ \ \ \_____
/ / \ \ / / / _____/ / /\ \ \ \ \ \ \_____ \
/ / \ \/ / / /____ / / \ \ \ \__\ \ ____\ \
/_/ \__/ /______/ /... | nilq/small-lua-stack | null |
--[[
==README==
Layer Increment
Basic utility that will make selected lines have increasing or decreasing layer numbers.
]]
script_name = "Layer increment"
script_description = "Makes increasing or decreasing layer numbers."
script_version = "1.1.0"
script_author = "lyger"
script_namespace = "lyger.LayerIncrement"
... | nilq/small-lua-stack | null |
Class = require("lib/class")
Json = require("lib/json")
require("src/Constants")
require("src/Utils")
require("src/StateMachine")
require("src/States/BaseState")
require("src/States/MenuState")
require("src/States/PlayState")
require("src/States/GameOverState")
require("src/LevelEditor/LevelEditor")
require("src/Leve... | nilq/small-lua-stack | null |
local c2e = require("c2etrigger")("Control+t", require("c2e"))
c2e_translator = c2e.translator
c2e_processor = c2e.processor
local e2c = require("e2ctrigger")("Control+e", require("e2c"))
e2c_translator = e2c.translator
e2c_processor = e2c.processor
| nilq/small-lua-stack | null |
local Class = require 'lib.hump.class'
local Event = getClass 'wyx.event.Event'
-- Game Start - fires when the game starts, before drawing or updating
local GameStartEvent = Class{name='GameStartEvent',
inherits=Event,
function(self)
Event.construct(self, 'Game Start Event')
end
}
-- the class
return GameStartEv... | nilq/small-lua-stack | null |
--- === bit.hyper ===
---
--- (only works with https://github.com/lodestone/hyper-hacks)
--- Sets up that pressing the caps-lock key is the same as pressing
--- SHFT-CTRL-ALT-CMD so that it can be used as a 'hyper' key
local hyper = {}
local hotkey = require 'hs.hotkey'
local eventtap = require 'hs.eventtap'
local hy... | nilq/small-lua-stack | null |
return function(self, keyword)
local ret = {}
for _, v in pairs(self) do
if type(v) == "table" and v.name and v.name:match(keyword) then
table.insert(ret, v)
end
end
return ret
end
| nilq/small-lua-stack | null |
DUNGEONEER_VERSION = "3.0"
DEBUG = false
if IsInToolsMode() then
DEBUG = true
end
if GameMode == nil then
_G.GameMode = class({})
end
require('libraries/timers')
require('libraries/physics')
require('libraries/projectiles')
require('libraries/notifications')
require('libraries/animations')
require('libraries/playe... | nilq/small-lua-stack | null |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local require = require(ReplicatedStorage:WaitForChild("Nevermore", 5))
local rq = require("rquery")
local TimeManager = {}
-- Local Variables
local StartTime = 0
local Duration = 0
-- Initialization
local MapPurgeProof = rq.GetOrAddItem("MapPurgeProof"... | nilq/small-lua-stack | null |
package.path = (package.path or "") .. ";/home/irocha/.luarocks/share/lua/5.1/?.lua;"
package.cpath = (package.cpath or "") .. ";/home/irocha/.luarocks/lib/lua/5.1/?.so;"
function d(o)
if type(o) == "table" then
for k, v in pairs(o) do
print(k,v)
end
else
print(o)
end
en... | nilq/small-lua-stack | null |
--[[
eofnewline.lua
makes sure file ends with newline
version: 20200703_112529
originally by bokunodev
https://github.com/bokunodev/lite_modules/blob/master/plugins/eofnewline.lua?raw=1
--]]
local core = require "core"
local command = require "core.command"
local Doc = require "core.doc"
local function eof_newlin... | nilq/small-lua-stack | null |
EditorSpawnEnemyGroup = EditorSpawnEnemyGroup or class(MissionScriptEditor)
EditorSpawnEnemyGroup.RANDOMS = {"amount"}
function EditorSpawnEnemyGroup:create_element()
self.super.create_element(self)
self._element.class = "ElementSpawnEnemyGroup"
self._element.values.spawn_type = "ordered"
self._element.values.ignor... | nilq/small-lua-stack | null |
local m = {}
local meshFormat = {{'lovrPosition', 'float', 3},
{'lovrNormal', 'float', 3}}
-- note that texcoord (UV mapping) is missing, currently not implemented
local function listappend(t1, t2) -- mutates t1 in place
for i,v in ipairs(t2) do table.insert(t1, v) end
return t1
end
-- us... | nilq/small-lua-stack | null |
att.PrintName = "Hunter FLIR (2-5x)"
att.Icon = Material("entities/acwatt_optic_hunterflir.png")
att.Description = "Adjustable medium-long range sniper optic with a FLIR vision device attached."
att.SortOrder = 4
att.Desc_Pros = {
"Precision sight picture",
"Increased zoom",
"Thermal vision",
}
... | nilq/small-lua-stack | null |
--[[
Collections.lua
This file contains a few collection classes that are
useful for many things. The most basic object is the
simple list.
From the list is implemented a queue
--]]
local setmetatable = setmetatable;
--[[
A bag behaves similar to a dictionary.
You can add values to it using simple array ind... | nilq/small-lua-stack | null |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remotes = ReplicatedStorage.Remotes
local Profile = require(ReplicatedStorage.Profile)
local profile = Profile.Deserialize(remotes.GetProfile:InvokeServer())
return profile | nilq/small-lua-stack | null |
Game.ImportLibrary("gui/scripts/Menu.lua")
MainMenu = class.New(Menu, function(_ARG_0_, _ARG_1_)
Menu.init(_ARG_0_, _ARG_1_)
end)
function MainMenu.GoToInitScreen(_ARG_0_)
_ARG_0_:PopAllItems()
_ARG_0_:PushItemByClassName("MainMenuFrontScreen", {}, false)
end
| nilq/small-lua-stack | null |
-- gather ingredients
-- go to distillery
-- have still craft moonshine
-- pick it up when its done
-- moonshine gives +str
-- deliver to various saloons
-- deliver to varior homesteads
-- moonshine cart is robbable by other players | nilq/small-lua-stack | null |
object_tangible_food_generic_drink_kylessian_fruit_distillate = object_tangible_food_generic_shared_drink_kylessian_fruit_distillate:new {
}
ObjectTemplates:addTemplate(object_tangible_food_generic_drink_kylessian_fruit_distillate, "object/tangible/food/generic/drink_kylessian_fruit_distillate.iff")
| nilq/small-lua-stack | null |
function onUpdate()
if getPropertyFromClass('flixel.FlxG', 'keys.justPressed.SEVEN') then
endSong();
end
end
--THANKS AGAIN L'Étranger#9279 YOU FUCKING LEGEND | nilq/small-lua-stack | null |
---
-- RegionHandler.client.lua - Handling for region changed popup
--
local popup = script.Parent.Parent.MainGui.RegionPopup
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDire... | nilq/small-lua-stack | null |
object_static_structure_content_meatlump_sewer_pipe_multi_elbow_s01 = object_static_structure_content_meatlump_shared_sewer_pipe_multi_elbow_s01:new {
}
ObjectTemplates:addTemplate(object_static_structure_content_meatlump_sewer_pipe_multi_elbow_s01, "object/static/structure/content/meatlump/sewer_pipe_multi_elbow_s01.i... | nilq/small-lua-stack | null |
local L = BigWigs:NewBossLocale("Freehold Trash", "koKR")
if not L then return end
if L then
-- L.sharkbait = "Sharkbait"
-- L.enforcer = "Irontide Enforcer"
-- L.bonesaw = "Irontide Bonesaw"
-- L.crackshot = "Irontide Crackshot"
-- L.corsair = "Irontide Corsair"
-- L.duelist = "Cutwater Duelist"
-- L.oarsman = ... | nilq/small-lua-stack | null |
arrowTable = arrowTable or {}
--[[Author: Pizzalol
Date: 04.01.2015.
Initializes the caster location for the arrow stun and damage calculation]]
function LaunchArrow( keys )
local caster = keys.caster
local caster_location = caster:GetAbsOrigin()
arrowTable[caster] = arrowTable[caster] or {}
arrowTable[caster]... | nilq/small-lua-stack | null |
--[[---------------------------------------------------------
Super Cooking Panic for Garry's Mod
by Xperidia (2020)
-----------------------------------------------------------]]
--[[---------------------------------------------------------
Name: gamemode:CookingPotHaloListThink()
Desc: Make halo ready tables ... | nilq/small-lua-stack | null |
local K, C = unpack(select(2, ...))
if C["ActionBar"].Enable ~= true then
return
end
local _G = _G
local select = select
local CreateFrame = _G.CreateFrame
local GetActionTexture = _G.GetActionTexture
local HasOverrideActionBar = _G.HasOverrideActionBar
local HasVehicleActionBar = _G.HasVehicleActionBar
local InComb... | nilq/small-lua-stack | null |
--[[
测试函数返回值个数
--]]
function foo2()
return 1,2
end
--[[
x,y,z = foo2(),4
print(x..y..z) -- 此时z为nil
--]]
x,y,z = foo2(),3,4
print(x..y..z) -- 此时输出1,3,4
print("1111111")
local a = 0
while 1 do
print(string.format("%d", a))
a = a + 1
end
| nilq/small-lua-stack | null |
local function onTextMessageEvent(serverConnectionHandlerID, targetMode, toID, fromID, fromName, fromUniqueIdentifier, message, ffIgnored)
return receiveMessage(serverConnectionHandlerID, fromID, fromName, fromUniqueIdentifier, message)
end
local function onClientPokeEvent(serverConnectionHandlerID, pokerID, poker... | nilq/small-lua-stack | null |
local listURL = "https://raw.githubusercontent.com/TxN/MC-WarpMaster/master/Installer/FileList.cfg"
local errorFlag = false
local c = require("component")
local term = require("term")
local filesystem = require("filesystem")
local x,y = c.gpu.maxResolution()
c.gpu.setResolution(x,y)
c.gpu.fil... | nilq/small-lua-stack | null |
local MinersHavenGui = Instance.new("ScreenGui")
local DecoFrame = Instance.new("Frame")
local CratesFrame = Instance.new("Frame")
local Deco = Instance.new("ImageLabel")
local NumberOfBoxes = Instance.new("TextLabel")
local TPCrates = Instance.new("TextButton")
local LoopTPCrates = Instance.new("TextButton")
local Dec... | nilq/small-lua-stack | null |
dofile('../Resource/scripts/ogreConfig.lua')
rootnode =RE.ogreRootSceneNode()
if rootnode then
lightnode=RE.createChildSceneNode(rootnode, "LightNode")
RE.ogreSceneManager():setAmbientLight(0.4, 0.4, 0.4)
if RE.getOgreVersionMinor()==12 then
local function randomNormal()
return (math.random()-0.5)*2
end
loca... | nilq/small-lua-stack | null |
require "busted.runner"()
describe("Assertion", function()
describe("True", function()
it("should have an error message", function()
local function some_test()
local assertion = require "ptable.assertion"
assertion.True("test", "some error message", false)
... | nilq/small-lua-stack | null |
-- script that retrieves an authentication token to send in all future requests and adds a body for those requests
-- keep this file and getWithToken.lua in sync with respect to token handling
-- do not use wrk's default request
local req = nil
-- use token for at most maxRequests, default throughout test
local coun... | nilq/small-lua-stack | null |
--[[
desc: UpperSlash, a state of Swordman.
author: SkyFvcker
since: 2018-7-30
alter: 2019-5-16
]]--
local _SOUND = require("lib.sound")
local _TABLE = require("lib.table")
local _FACTORY = require("actor.factory")
local _RESMGR = require("actor.resmgr")
local _ASPECT = require("actor.service.aspect")
local _STATE... | nilq/small-lua-stack | null |
---@class IsoRegions : zombie.iso.areas.isoregion.IsoRegions
---@field public SINGLE_CHUNK_PACKET_SIZE int
---@field public CHUNKS_DATA_PACKET_SIZE int
---@field public PRINT_D boolean
---@field public CELL_DIM int
---@field public CELL_CHUNK_DIM int
---@field public CHUNK_DIM int
---@field public CHUNK_MAX_Z int
---@f... | nilq/small-lua-stack | null |
--[[
Humor API
Awesome Humor API.
The version of the OpenAPI document: 1.0
Contact: mail@humorapi.com
Generated by: https://openapi-generator.tech
]]
--package humorapi
local http_request = require "http.request"
local http_util = require "http.util"
local dkjson = require "dkjson"
local basexx = requir... | nilq/small-lua-stack | null |
local GEN_OTHERNAME = 0
local GEN_EMAIL = 1
local GEN_DNS = 2
local GEN_X400 = 3
local GEN_DIRNAME = 4
local GEN_EDIPARTY = 5
local GEN_URI = 6
local GEN_IPADD = 7
local GEN_RID = 8
local default_types = {
OtherName = GEN_OTHERNAME, -- otherName
RFC822Name = GEN_EMAIL, -- email
RFC822 = GEN_EMAIL,
Email = GEN_... | 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"); ... | nilq/small-lua-stack | null |
local Chara = Elona.require("Chara")
local GUI = Elona.require("GUI")
local I18N = Elona.require("I18N")
local Internal = Elona.require("Internal")
local Item = Elona.require("Item")
local Map = Elona.require("Map")
local Rand = Elona.require("Rand")
return {
id = "slan",
root = "core.locale.talk.unique.slan",
... | nilq/small-lua-stack | null |
local UTILS = require "tests.test_utils"
return function()
describe("World", function()
before(function()
UTILS.set_env(getfenv(1))
end)
after(function() end)
test("create", function()
local w = box2d.NewWorld()
assert_not_nil(w)
asse... | nilq/small-lua-stack | null |
local M = {}
M.url = 'folke/trouble.nvim'
M.description = 'Fancy problem list'
-- ways to activate this
M.activation = {
wanted_by = {
'target.basic'
},
}
function M.config()
require('trouble').setup {
auto_close = true,
auto_fold = true,
use_diagnostic_signs = true,
}
-- key setup
end
re... | nilq/small-lua-stack | null |
-----------
-- Snake --
-----------
-- Website creator's forum name: mabako
local active = false
local lost = false
local screenX, screenY = guiGetScreenSize( )
local lastupdate = getTickCount( )
local moving = 0
local backgroundColor = tocolor( 20, 20, 20, 255 )
local lineColor = tocolor( 80, 80, 80, 2... | nilq/small-lua-stack | null |
Formation = "double";
formationSlot({
0,
0.5,
0,
},{
0,
0,
1,
},{
0,
1,
0,
})
formationSlot({
0,
-0.5,
0,
},{
0,
0,
1,
},{
0,
1,
0,
})
| nilq/small-lua-stack | null |
-- TODO: **URGENT** Fix #21
-- Remake graphics again
require('prototypes.entity.remnants')
require("prototypes.entity.inserters") -- Inserters
require("prototypes.entity.miners") -- Hardened electric mining drill. Sitting alone in its own file. How sad.
require("prototypes.entity.assemblerpipes") -- Thingie for ... | nilq/small-lua-stack | null |
return {'ril','rild','rillen','rillerig','rillettes','rillijn','rilling','rillaar','riley','rill','rilde','rilden','rille','rillend','rillerige','rilletje','rilletjes','rillijnen','rillingen','rilst','rilt','rillende','rileys','rillaarse'} | nilq/small-lua-stack | null |
class "PhysicsScreenEntity"
ENTITY_RECT = 1
ENTITY_CIRCLE = 2
ENTITY_MESH = 3
function PhysicsScreenEntity:__index__(name)
if name == "collisionOnly" then
return Physics2D.PhysicsScreenEntity_get_collisionOnly(self.__ptr)
end
end
function PhysicsScreenEntity:__set_callback(name,value)
if name == "collisionOnl... | nilq/small-lua-stack | null |
-- realcompass 1.23
-- This fork written by David_G (kestral246@gmail.com)
--
-- 2020-02-20
local activewidth=8 --until I can find some way to get it from minetest
minetest.register_globalstep(function(dtime)
local players = minetest.get_connected_players()
for i,player in ipairs(players) do
local gotacompass=f... | nilq/small-lua-stack | null |
mp = Map("pptpd", translate("PPTP VPN Server"))
mp.description = translate("PPTP VPN Server connectivity using the native built-in VPN Client on Windows/Linux or Andriod")
mp:section(SimpleSection).template = "pptp/pptp_status"
s = mp:section(NamedSection, "pptpd", "service")
s.anonymouse = true
enabled = s:option... | nilq/small-lua-stack | null |
--[[
This file loads and pre-processes cifar10 data
Kui Jia, Dacheng Tao, Shenghua Gao, and Xiangmin Xu, "Improving training of deep neural networks via Singular Value Bounding", CVPR 2017.
http://www.aperture-lab.net/research/svb
This code is based on the fb.resnet.torch package (https://github.com/facebook/fb.res... | nilq/small-lua-stack | null |
local CorePackages = game:GetService("CorePackages")
local AppTempCommon = CorePackages.AppTempCommon
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local ShareGame = Modules.Settings.Pages.ShareGame
local Immutable = require(AppTempCommon.Common.Immutable)
local ReceivedUserInviteStatus = require(Share... | nilq/small-lua-stack | null |
local K = unpack(KkthnxUI)
local Module = K:GetModule("Auras")
if K.Class ~= "HUNTER" then
return
end
local playerGUID = _G.UnitGUID("player")
local CreateFrame = _G.CreateFrame
local GetSpecialization = _G.GetSpecialization
local IsPlayerSpell = _G.IsPlayerSpell
local GetSpellTexture = _G.GetSpellTexture
local IsEq... | nilq/small-lua-stack | null |
for i,v in ipairs(a) do print(v) end | nilq/small-lua-stack | null |
--[[ Copyright (c) 2017 David-John Miller AKA Anoyomouse
* rewritten by Optera 2019
*
* Part of the Warehousing mod
*
* See License.txt in the project directory for license information.
--]]
local warehouse_slots = 1800
local storehouse_slots = 450
local storage_warehouse_slots = 2000
local storage_storehouse_slo... | 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.