content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
target("xalgorithm_test")
set_languages("c11", "c++20")
add_rules("mode.debug", "mode.release")
set_kind("binary")
add_includedirs("include/")
add_headerfiles("include/*.h")
add_headerfiles("include/*.hpp")
add_headerfiles("include/*.inl")
add_files("test/*.cpp")
if is_mo... | nilq/small-lua-stack | null |
-- Copyright (c) 2008 Mikael Lind
--
-- 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, publis... | nilq/small-lua-stack | null |
------------------------CREDITS------------------------
--------- Script made by Vlad, DevStudios Owner -------
-- Script made for StreamForce Romania RP --
-- Site: https://devstudios.store --
-- Forum: http://forum.devstudios.store --
-- Copyright 2019 ©DevStudios. All rig... | nilq/small-lua-stack | null |
require "settings"
settingsState = {}
function settingsState.draw()
settingsDraw( true )
-- draw back button
local p = 10
local w = love.graphics.getWidth() / 6
local h = bigFont:getHeight()
local sy = p
local sx = love.graphics.getWidth() - w - p
local backButton = ui.button( { name... | nilq/small-lua-stack | null |
describe("validate primitive", function()
local expected = {
ZERO = {0, 0, 0},
UNIT_X = {1, 0, 0},
UNIT_Y = {0, 1, 0},
UNIT_Z = {0, 0, 1},
NEGATIVE_UNIT_X = {-1, 0, 0},
NEGATIVE_UNIT_Y = {0, -1, 0},
NEGATIVE_UNIT_Z = {0, 0, -1},
UNIT_SCALE = {1, 1, 1},
}
describe("Quaternion", fu... | nilq/small-lua-stack | null |
--[[--
text_with_br_tags = -- text with <br/> tags
encode.html_newlines(
text_with_lf_control_characters -- text with LF control characters
)
This function transforms LF control characters (\n) into <br/> tags.
--]]--
function encode.html_newlines(text)
return (string.gsub(text, '\n', '<br/>'))
e... | nilq/small-lua-stack | null |
return {
name = "shoot-em-up",
bricks = {
{11, 11, 11, 15, 15, 15, 11, 11},
{11, 11, 11, 23, 13, 23, 11, 11},
{11, 24, 24, 12, 12, 12, 24, 24},
{11, 25, 21, 12, 12, 12, 21, 25},
{11, 11, 24, 22, 12, 22, 24, 11},
{11, 15, 11, 24, 12, 24, 11, 15},
{11, 11, 11, 24, 12, 24, 1... | nilq/small-lua-stack | null |
-- ProtobufManage.lua
-- Description: protobuf编解码封装
local protobuf = require('.protobuf')
local ProtobufManage = {}
ProtobufManage.protobufConfig = {
-- 格式示例
-- [key] = {pb = protoPath, pkg = pkg, requestMsg = 'c2s_Message_Name', responseMsg = 's2c_Message_Name'}
-- key 表的index,推荐使用server端对应的 ... | nilq/small-lua-stack | null |
-- This file is subject to copyright - contact swampservers@gmail.com for more information.
-- INSTALL: CINEMA
SWEP.PrintName = "Pickaxe"
SWEP.DrawAmmo = false
SWEP.ViewModelFOV = 85
SWEP.Slot = 0
SWEP.SlotPos = 2
SWEP.Purpose = "Mine craft"
SWEP.Instructions = "Primary: Mine\nSecondary: Craft"
SWEP.ViewModel = Model(... | nilq/small-lua-stack | null |
-----------------------------------------
-- ID: 5971
-- Item: Plate of Mushroom Paella +1
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- HP 43
-- Mind 6
-- Magic Accuracy 6
-- Undead Killer 6
-----------------------------------------
require("scripts/globals/status")
require("scripts/glo... | nilq/small-lua-stack | null |
AddCSLuaFile( "shared.lua" )
SWEP.HoldType = "ar2"
if (CLIENT) then
SWEP.PrintName = "ACF Sniper Rifle"
SWEP.Author = "Bubbus"
SWEP.Slot = 3
SWEP.SlotPos = 3
SWEP.IconLetter = "f"
SWEP.DrawCrosshair = false
SWEP.Purpose = "Make tiny dudes disappear."
SWEP.Instructions = "Reload at 20m... | nilq/small-lua-stack | null |
slot0 = class("Challenge2Fleet", import(".Fleet"))
slot0.Ctor = function (slot0, slot1)
slot0.id = slot1.id
slot0:updateShips(slot1.ships)
slot0.commanderList = {}
slot2 = ipairs
slot3 = slot1.commanders or {}
for slot5, slot6 in slot2(slot3) do
slot0.commanderList[slot6.pos] = Commander.New(slot6.commander... | nilq/small-lua-stack | null |
mend_wounds_mage = {
cast = function(player, target)
local spellName = "Mend Wounds"
if not player:canCast(1, 1, 0) then
return
end
local worked = global_heal.cast(player, target, 100, 80, 0)
if worked ~= 0 then
player:sendMinitext("You cast " .. spellName .. ".")
end
if worked == 2 then
target:... | nilq/small-lua-stack | null |
ITEM.name = "Slime"
ITEM.model ="models/nasca/etherealsrp_artifacts/slime.mdl"
ITEM.description = "Slimey."
ITEM.longdesc = "An artifact connected by threads of slime. Common artifact."
ITEM.width = 1
ITEM.height = 1
ITEM.price = 2450
ITEM.flag = "A"
ITEM.value = ITEM.price*0.5 | nilq/small-lua-stack | null |
return function(parent, dir)
local lgi = require 'lgi'
local Gtk = lgi.Gtk
local window = Gtk.Dialog {
title = "Entry Buffer",
resizable = false,
on_response = Gtk.Widget.destroy,
buttons = {
{ Gtk.STOCK_CLOSE, Gtk.ResponseType.NONE },
},
}
local buffer = Gtk.EntryBuffer()
local content = Gtk.Bo... | nilq/small-lua-stack | null |
local map = {}
function map.load(name)
local file = io.open(name, 'r')
local data = {}
for line in file:lines() do
table.insert(data, line)
end
return data
end
function map.wall(line)
return string.gsub(line, '=', 'Muro ')
end
return map
--bY GHABRYEL | nilq/small-lua-stack | null |
concommand.Add( "ScrollTest", function()
local base = vgui.Create( "DFrame" )
base:SetSize( 200, 200 )
base:Center()
base:MakePopup()
local scroll = vgui.Create( "DScrollPanel", base )
scroll:Dock( FILL )
local tbl = {}
for i = 1, 3 do
tbl[ #tbl + 1 ] = vgui.Create( "DPanel", scroll )
tbl[ #tbl ]:Doc... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Kuftal Tunnel
-- NPC: ???
-- Involved in Mission: Bastok 8-2
-----------------------------------
local ID = require("scripts/zones/Kuftal_Tunnel/IDs")
require("scripts/globals/missions")
-----------------------------------
function onTrade(player, npc, trade)
end
function... | nilq/small-lua-stack | null |
local AS = unpack(AddOnSkins)
if not AS:CheckAddOn('Pawn') then return end
function AS:Pawn(event, addon)
local Texture = "Interface\\AddOns\\Pawn\\Textures\\PawnLogo"
if addon == 'Blizzard_InspectUI' or event == 'PLAYER_ENTERING_WORLD' and IsAddOnLoaded('Blizzard_InspectUI') then
AS:Delay(0.1, function()
AS:... | nilq/small-lua-stack | null |
describe("http1 stream", function()
local h1_connection = require "http.h1_connection"
local new_headers = require "http.headers".new
local cqueues = require "cqueues"
local ca = require "cqueues.auxlib"
local cc = require "cqueues.condition"
local ce = require "cqueues.errno"
local cs = require "cqueues.socket"... | nilq/small-lua-stack | null |
local light_meta = global_metatable("light", "entity")
function IsLight(e)
return IsEntity(e) and e.type == "light"
end
function Light(handle)
if handle > 0 then
return setmetatable({handle = handle, type = "light"}, light_meta)
end
end
function FindLightByTag(tag, global)
return Light(FindLi... | nilq/small-lua-stack | null |
local lfs = require"lfs";
local hg = { };
function hg.check_id(path)
if lfs.attributes(path, 'mode') ~= "directory" then
return nil, "not a directory";
end
local hg_dirstate = io.open(path.."/.hg/dirstate");
local hgid, hgrepo
if hg_dirstate then
hgid = ("%02x%02x%02x%02x%02x%02x"):format(hg_dirstate:read(6... | nilq/small-lua-stack | null |
local utils = require(GetScriptDirectory() .. "/util")
local bot = GetBot();
local RB = Vector(-7200,-6666)
local DB = Vector(7137,6548)
local CastDMDesire = 0
local CastCYDesire = 0
local CastWWDesire = 0
local CastHBDesire = 0
local AttackDesire = 0
local MoveDesire = 0
local RetreatDesire = 0
local castSCDesire = 0... | nilq/small-lua-stack | null |
-- Delete old skybox brushes
hook.Add( "InitPostEntity", "DeleteBrushNEntity", function()
for i, ent in ipairs( ents.GetAll() ) do
if not IsValid(ent) then continue end
if ent:GetClass() == "func_brush" and (ent:GetName() or "") == "daynight_brush" then
SafeRemoveEntity(ent)
elseif ent:CreatedByMap() and (en... | nilq/small-lua-stack | null |
-- make it looks like node-mysql semantics
local timer = require( "timer" ) -- luvit built-in
local MySQL = require( "./mysql" )
local client = MySQL.createClient( { database="test",user="passtestuser",port=3306,password="hoge", logfunc=nil } )
client:ping( function() print("ping received") end)
cl... | nilq/small-lua-stack | null |
do
local addon, namespace = ...
_G[addon] = _G[addon] or {}
setfenv(1, setmetatable(namespace, { __index = _G }))
end
local handlers = { --All known widget handlers from FrameXML/`strings Wow.exe` as of September 2015 (patch 6.2.2)
"OnAnimFinished",
"OnArrowPressed",
"OnAttributeChanged",
"OnButtonUpdate",
"OnC... | nilq/small-lua-stack | null |
a_mighty_boar_trample_modifier = class({})
function a_mighty_boar_trample_modifier:OnCreated( kv )
self.damage = self:GetAbility():GetSpecialValueFor("damage")
end
function a_mighty_boar_trample_modifier:DeclareFunctions()
local funcs = {
MODIFIER_PROPERTY_TOOLTIP,
}
return funcs
end
fu... | nilq/small-lua-stack | null |
local tostring, tonumber, select, type, getmetatable, setmetatable, rawget = tostring, tonumber, select, type, getmetatable, setmetatable, rawget
local Types = require('types')
local Any, Array = Types.Any, Types.Array
local OMeta = require('ometa')
local utils = require('utils')
local StdLib = require('ometa_stdlib')
... | nilq/small-lua-stack | null |
local module = {}
local common = game:GetService('ReplicatedStorage').Common
local playerData = require(common.PlayerData)
local map = playerData.map
local rate_limit = 1
local hour_unit = 3600
local hours_format = '%.1f'
local generation_format = '%s'
local nextUpdate = os.clock()
local open = false
local list
... | nilq/small-lua-stack | null |
local _0_0
do
local name_0_ = "conjure.linked-list"
local module_0_
do
local x_0_ = package.loaded[name_0_]
if ("table" == type(x_0_)) then
module_0_ = x_0_
else
module_0_ = {}
end
end
module_0_["aniseed/module"] = name_0_
module_0_["aniseed/locals"] = ((module_0_)["aniseed/local... | nilq/small-lua-stack | null |
-- This file is automatically generated, do not edit!
-- Item data (c) Grinding Gear Games
return {
["CRUEL"] = {
"Adds 16 to 24 Fire Damage if you've Killed Recently",
"Regenerate 1% of Life per second if you were Hit Recently",
"10% reduced Mana Cost of Skills if you've been Hit Recently",
"50% chance to Av... | nilq/small-lua-stack | null |
-- interface to reading data from 1-wire device (18b20 sensor)
local logger
if LOGGERGLOBAL then
logger = LOGGERGLOBAL
else
require "logging.console"
logger = logging.console()
end
local master_path
local master_map
local ssnmqttClient
local CONF
require "ssnUtils"
require "string"
SOCKET = require("socket")
re... | nilq/small-lua-stack | null |
-- Img/.
local Img={}
local baseDir="shared/res/img"
local _newImage=love.graphics.newImage
local i=function(path)
local fileInfo=love.filesystem.getInfo(path)
if fileInfo==nil then return nil end
return _newImage(path)
end
Img.get=function(id,ext)
if not ext then ext="png" end
local result=rawget(Img,id)
... | nilq/small-lua-stack | null |
--
-- path.lua
-- Path manipulation functions.
-- Copyright (c) 2002-2010 Jason Perkins and the Premake project
--
--
-- Get the absolute file path from a relative path. The requested
-- file path doesn't actually need to exist.
--
function path.getabsolute(p)
-- normalize the target path
p = path.translate(p,... | nilq/small-lua-stack | null |
local MinigameController = require("scenes.minigame.MinigameController")
local Controller = class("Controller", MinigameController)
-- Call self:onSuccess() when player wins
local speed = 80
local req = {
5, 6, 7, 9, 12
}
function Controller:initialize(level)
MinigameController.initialize(self, "BREAK THE DOOR")... | nilq/small-lua-stack | null |
HelpController = Class {
init = function(self, textLogOrigin)
self.textLogOrigin = textLogOrigin
self.textLog = {}
self.fontSize = 16
self.textTimer = Timer.new()
self.defaultTTL = 5
self.maxEntriesToShow = 6
end;
update = function(self, dt)
self.textT... | nilq/small-lua-stack | null |
-----------------------------------------------------------------------------------------
-- scene transitions
-----------------------------------------------------------------------------------------
local _scene_transitions = {
crossfade = cc.TransitionCrossFade,
fade = {cc.TransitionFade, cc... | nilq/small-lua-stack | null |
-------------------------------------
-- ADDON TABLES
-------------------------------------
local an, at = ...
-------------------------------------
-- VARIABLES
-------------------------------------
-- local variables
local G, L, C, DB = at.G, at.L, at.C, at.DB
------------------... | nilq/small-lua-stack | null |
--- logger is used to log information to the FTSE.log file for debugging Lua scripts.
-- The class is defined by a single global object named "logger". The global object is available for any Lua script function to use.
-- @classmod logger
--- log writes the given string to the FTSE.log file. Log messages are automati... | nilq/small-lua-stack | null |
local status_ok, _ = pcall(require, "lspconfig")
if not status_ok then
return
end
require("mitch.lsp.lsp-installer")
require("mitch.lsp.handlers").setup()
require("mitch.lsp.null-ls")
| nilq/small-lua-stack | null |
local KUI, E, L, V, P, G = unpack(select(2, ...))
local S = E:GetModule('Skins')
-- Cache global variables
-- Lua functions
local _G = _G
local select = select
local tostring = tostring
local find = find
local tinsert, twipe = table.insert, table.wipe
local strtrim = strtrim
local math_max, math_ceil = math.max, math.... | nilq/small-lua-stack | null |
-- PSCL sample script.
-- PSCL is a procedural-style scripting language that allows you to define
-- in great detail a physical definition of scene while keeping it human-readable.
-- For comments or questions contact John Ratcliff (jratcliff@infiniplex.net)
-- or James Dolan (james@6msoft.com).
-- Gears Demo 2.
-- Cr... | nilq/small-lua-stack | null |
-- form data module --
----------------------
local Main = script.Parent.Parent
local Lib = Main.lib
local Src = Main.src
---------------------------------
local httpservice = game:GetService("HttpService")
local MIME = require(Lib.mimetypes)
local b64 = require(Lib.b64)
--
local function randomString(l)
local s ... | nilq/small-lua-stack | null |
#!/usr/bin/env lua
status, ios = pcall(require, 'ios-icons')
if (not status) then
print "Could not find the 'ios-icons' library."
print "Check to verify it was installed."
os.exit(1)
end
status, conn = pcall(ios.connect)
if (not status) then
print "Could not detect a connected iOS device."
os.exit(1)
e... | nilq/small-lua-stack | null |
--[[
cel is licensed under the terms of the MIT license
Copyright (C) 2011 by Matthew W. Burk
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... | nilq/small-lua-stack | null |
local Fane = CreateFrame'Frame'
local inherit = GameFontNormalSmall
local updateFS = function(self, inc, flags, ...)
local fstring = self:GetFontString()
local font, fontSize = inherit:GetFont()
if(inc) then
fstring:SetFont(font, fontSize + 1, flags)
else
fstring:SetFont(font, fontSize, flags)
end
if((...)... | nilq/small-lua-stack | null |
addEventHandler("onClientResourceStart", resourceRoot,
function()
noDirtShader = dxCreateShader("fx/replace.fx")
engineApplyShaderToWorldTexture(noDirtShader, "vehiclegrunge*")
end) | nilq/small-lua-stack | null |
local Scene = {}
local Scene_mt = { __index = Scene }
Scene.create = function()
local obj = {
viewports = {},
layers = {},
props = {},
decks = {},
resources = {}
}
setmetatable(obj, Scene_mt)
return obj
end
function Scene:addViewport(viewport)
table.insert(self.viewports, viewport)
end
... | nilq/small-lua-stack | null |
local solids = require 'solids'
local primitives = {}
primitives.quad = solids.quad()
primitives.cube = solids.cube()
primitives.cubetrunc = solids.cubetrunc(0.7)
primitives.bipyramid = solids.bipyramid(6)
primitives.pyramid = solids.pyramid(6)
primitives.cylinder = solids.cylinder(12)
primitives.sphere = solids.sphe... | nilq/small-lua-stack | null |
-- get madatory module operators
VFS.Include("modules.lua") -- modules table
VFS.Include(modules.attach.data.path .. modules.attach.data.head) -- attach lib module
-- get other madatory dependencies
attach.Module(modules, "message") -- communication backend load
function getInfo()
return {
onNoUnits = SUC... | nilq/small-lua-stack | null |
local nocrap = require("Modules.Dregu.no_crap")
local death_blocks = require("Modules.JawnGC.death_blocks")
local monster_generators = require("Modules.JayTheBusinessGoose.monster_generator")
local signs = require("Modules.JayTheBusinessGoose.signs")
local neobabylon6 = {
identifier = "neobabylon 6",
title = "... | nilq/small-lua-stack | null |
spiked_slasher = Creature:new {
objectName = "@mob/creature_names:voritor_spiked_slasher",
socialGroup = "voritor",
faction = "",
level = 55,
chanceHit = 1.25,
damageMin = 480,
damageMax = 620,
baseXp = 11147,
baseHAM = 11500,
baseHAMmax = 14500,
armor = 1,
resists = {165,165,150,150,150,145,200,150,-1},
m... | nilq/small-lua-stack | null |
local playsession = {
{"Fudster", {323437}},
{"Creator_Zhang", {316081}},
{"TiTaN", {266342}},
{"liuzifa0000", {2221}},
{"qu1648387942", {49256}},
{"rocifier", {140429}}
}
return playsession | nilq/small-lua-stack | null |
-- Generated by CSharp.lua Compiler
local System = System
System.namespace("Slipe.Shared.Peds", function (namespace)
-- <summary>
-- Represents a player animation
-- </summary>
namespace.struct("Animation", function (namespace)
local getThrw_barl_thrw, getStepsit_in, getStepsit_loop, getStepsit_out, getBarc... | nilq/small-lua-stack | null |
local _M = {
_VERSION = "0.1"
}
local cjson = require "cjson"
local common = require "resty.cache.common"
local assert, type, tonumber = assert, type, tonumber
local pairs, ipairs = pairs, ipairs
local tinsert, tconcat = table.insert, common.concat
local min = math.min
local ngx_null = ngx.null
local json_encode = ... | nilq/small-lua-stack | null |
workspace "assec-renderer"
architecture "x64"
startproject "demo"
configurations
{
"Debug",
"Release"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
project "DirectXTK12"
location "assec-renderer"
kind "StaticLib"
language "C++"
cppdialect "C++20"
staticru... | nilq/small-lua-stack | null |
local mongo = require 'mongo'
local BSON = mongo.BSON
local testInt64 = math.maxinteger and math.maxinteger == 9223372036854775807
local function testV(v1, v2, h)
local a1 = v1.a
local b1, b2 = BSON(v1), BSON(v2)
assert(b1 == b2) -- Compare with overloaded equality operator
assert(b1:data() == b2:data()) -- Compa... | nilq/small-lua-stack | null |
-- Rect
-- author by Liu Hao
-- 2017/06/19
local Vector2 = require "Vector2"
local Lplus = require "Lplus"
local Rect = Lplus.Class("Rect")
local def = Rect.define
def.field("table").VecTopLeft = function () return {} end--Vector2.zero
def.field("table").VecBottomRight = function () return {} end--Vector2.... | nilq/small-lua-stack | null |
function from_hex(nr)
return tonumber(nr,16)
end
function to_hex(nr)
return string.format("%02x",nr)
end
function remote_init(manufacturer,model)
local global_items={}
local global_auto_inputs={}
local global_auto_outputs={}
----------------------------------------------- Button/LED masks ---------------------... | nilq/small-lua-stack | null |
require 'torch'
require 'nn'
require 'nngraph'
require 'optim'
require 'lfs'
require 'util.OneHot'
require 'util.misc'
cmd = torch.CmdLine()
cmd:text()
cmd:text('Measure the perplexity of a character-level language model on some test corpus')
cmd:text()
cmd:text('Options')
-- required:
cmd:argument('-model','model ch... | nilq/small-lua-stack | null |
---@type BuffomatAddon
local TOCNAME, BOM = ...
BOM.MinimapButton = BOM.MinimapButton or {}
local MinimapButton = BOM.MinimapButton
---Change minimap button texture position slightly
---@param button Control
local function minimap_button_texture_zoom(button)
local deltaX, deltaY = 0, 0
if not button.Lib_GPI_Mini... | nilq/small-lua-stack | null |
local scrw, scrh = ScrW(), ScrH()
hook.Add( 'HUDPaint', 'Cross', function()
local cr = GetConVar( 'crosshair_dm' ):GetInt()
if ( cr == 1 ) then
draw.RoundedBox( 8, scrw * 0.5 - 2, scrh * 0.5 - 2, 4, 4, Color(0,0,0) )
draw.RoundedBox( 8, scrw * 0.5 - 1, scrh * 0.5 - 1, 2, 2, Color(255,255,255) )
elseif ( cr == ... | nilq/small-lua-stack | null |
return function()
require("null-ls").setup(
{
sources = {
require("null-ls").builtins.diagnostics.eslint_d.with({ timeout = 10000 }),
require("null-ls").builtins.formatting.prettierd
}
}
)
end
| nilq/small-lua-stack | null |
-- Type
local Type = {}
function Type.isComponent(t)
return type(t) == "table" and t.__isComponent
end
function Type.isEntity(t)
return type(t) == "table" and t.__isEntity
end
function Type.isSystem(t)
return type(t) == "table" and t.__isSystem
end
function Type.isContext(t)
return type(t) == "table" a... | nilq/small-lua-stack | null |
return {
["trail"] = "трейл",
["show in firstperson"] = "показывать от 1-го лица",
["show only with active weapon"] = "показывать только с активным оружием",
["outfit backups"] = "копии костюма",
["copy global id"] = "копировать глобальный id",
["replace ogg with webaudio"] = "заменить ogg с помощью webaudio",
["gettin... | nilq/small-lua-stack | null |
Config = {}
Config.Blip = {sprite= 360, color = 75}
Config.Price = 0
Config.Garages = {
Garage_Air= {
Pos = {x = -1148.178, y=-2825.939, z=13.964 },
Marker = { w= 1.5, h= 1.0,r = 204, g = 204, b = 0},
Name = 'Garage',
HelpPrompt = "Appuyez sur ~INPUT_PICKUP~ pour ouvrir le garage",
Functionmenu = OpenM... | nilq/small-lua-stack | null |
require "Token"
require "ParserUtils"
require "Utils"
require "AST"
-- parser function : ( buffer, index ) -> ( successful, buffer, index, value )
-- parser function : ( buffer, index ) -> ( failure, index )
function literals( buffer, index )
return choice { match( tokenType.int, function ( v ) return { ty... | nilq/small-lua-stack | null |
drono_red_dragonkin_commander_chasing_flame = class({})
function drono_red_dragonkin_commander_chasing_flame:OnSpellStart()
--- Get Caster, Victim, Player, Point ---
local caster = self:GetCaster()
local caster_loc = caster:GetAbsOrigin()
local playerID = caster:GetPlayerOwnerID()
local player = PlayerResourc... | nilq/small-lua-stack | null |
local librarycard = {}
librarycard.assets = {
default = {
path="assets/gfx/library_card.png",
frame_width=32,
frames='1-6'
},
}
librarycard.system = tiny.processingSystem()
librarycard.system.filter = tiny.requireAll('librarycard')
function librarycard.system:process(entity, dt)
if entity.collisio... | nilq/small-lua-stack | null |
Monsters = {}
function Monsters:GetMonsterObject(idMonster)
local data = self.api.localAPI:GetMonster(idMonster)
if data then
local parseGrade = function(grades)
local parseBonusCharacteristics = function(bonusCharacteristics)
return self.tools.object({
l... | nilq/small-lua-stack | null |
save_manager_uniqueid = 0x02C23200
save_manager_filename = "/0004000002C23200.sav"
save_manager_name = "JKSM"
config_default = [[save_manager_uniqueid = 0x02C23200
save_manager_filename = "/0004000002C23200.sav"
save_manager_name = "JKSM"]]
co = Console.new(TOP_SCREEN)
function add(t)
Screen.waitVblankStart()
... | nilq/small-lua-stack | null |
------------------------------------------
-- iEnsomatic RealisticVehicleFailure --
------------------------------------------
--
-- Created by Jens Sandalgaard
--
-- This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
--
-- https://github.com/iEns/RealisticVehicleFailure
-... | nilq/small-lua-stack | null |
local pubsub;
setup(function ()
pubsub = require "util.pubsub";
end);
--[[TODO:
Retract
Purge
auto-create/auto-subscribe
Item store/node store
resize on max_items change
service creation config provides alternative node_defaults
get subscriptions
]]
describe("util.pubsub", function ()
describe("simple node c... | nilq/small-lua-stack | null |
----
-- xl/Background.lua
--
-- This represents a background. Backgrounds can, and should, be added to
-- Scenes.
----
local Scene = require "xl.Scene"
local Background = Class("Background")
Background.__lt = Scene.lessThan
Background.__le = Scene.lessThan
----
-- Utility function for rounding x upwards to the near... | nilq/small-lua-stack | null |
-- @todo
-- @module native
-- @submodule decisionevent
-- @see SET_DECISION_MAKER
-- @usage void SET_DECISION_MAKER(Ped ped, Hash name);
-- @param ped Ped
-- @param name Hash
-- @return void
function SetDecisionMaker(ped, name) end
-- @todo
-- @module native
-- @submodule decisionevent
-- @see CLEAR_DECIS... | nilq/small-lua-stack | null |
local path = GetParentPath(...)
local menu = require(path.."lib/menu")
local selected = require(path.."lib/selected")
local getSelectedPawn = selected.getSelectedPawn
local escMenuIsClosed = menu.isClosed
local vanillaRepairIcon = sdlext.getSurface{ path = "img/weapons/repair.png" }
local vanillaRepairFrozenIcon = sd... | nilq/small-lua-stack | null |
if hero == nil then
hero = PlayerResource:GetPlayer(0):GetAssignedHero()
Physics:Unit(hero)
end
--[[if true then
boxcollider4 = Physics:AddCollider("aabox2", Physics:ColliderFromProfile("aaboxreflect"))
boxcollider4.box = {Vector(-400,-800,0), Vector(-200,-200,500)}
boxcollider4.draw = true
boxcollider4.te... | nilq/small-lua-stack | null |
local helpers = require "spec.helpers"
local pl_file = require "pl.file"
local TEST_CONF = helpers.test_conf
local MESSAGE = "echo, ping, pong. echo, ping, pong. echo, ping, pong.\n"
local function find_in_file(pat, cnt)
local f = assert(io.open(TEST_CONF.prefix .. "/" .. TEST_CONF.proxy_error_log, "r"))
local ... | nilq/small-lua-stack | null |
local Screen = require "widgets/screen"
local AnimButton = require "widgets/animbutton"
local Spinner = require "widgets/spinner"
local ImageButton = require "widgets/imagebutton"
local TextButton = require "widgets/textbutton"
local Text = require "widgets/text"
local Image = require "widgets/image"
local NumericSpinn... | nilq/small-lua-stack | null |
config = {
connectionString = 'Server=localhost;Uid=root;Pwd=;Database=test_import',
scriptPath = 'C:\\Users\\nilph\\source\\repos\\Excel Data Import (MySql)\\Excel Data Import (MySql)\\bin\\Debug\\netcoreapp3.1\\main.lua'
} | nilq/small-lua-stack | null |
require('marks').setup({
force_write_shada = true
})
| nilq/small-lua-stack | null |
local Util = require(script.Parent.Parent.Shared.Util)
local unitTable = {
Years = 31556926,
Months = 2629744,
Weeks = 604800,
Days = 86400,
Hours = 3600,
Minutes = 60,
Seconds = 1
}
local searchKeyTable = {}
for key, _ in pairs(unitTable) do
table.insert(searchKeyTable, key)
end
local... | nilq/small-lua-stack | null |
include("sh_rounds.lua")
local stuckInputController = CustomInputController.new(function (entity)
local inputs = entity:GetOwner():GetInputs()
inputs.isAttacking = false
inputs.isMovingLeft = false
inputs.isMovingRight = false
return inputs
end)
local gamemode = ScriptedGamemode()
gamemode.PlayerRoundCount = ... | nilq/small-lua-stack | null |
Talk(0, "<咦!这是什么?>吸..星..大..法..", "talkname0", 1);
AddItem(64, 1);
Talk(0, "这块令牌乌漆麻黑的,不知有什么用?", "talkname0", 1);
AddItem(125, 1);
ModifyEvent(-2, -2, -2, -2, -1, -1, -1, -1, -1, -1, -2, -2, -2);
do return end;
| nilq/small-lua-stack | null |
--[[ File
@description:
This file is for training a perception module using supervised learning with simulated data.
@version: V0.22
@author: Fangyi Zhang email:gzzhangfangyi@gmail.com
@acknowledgement:
ARC Centre of Excellence for Robotic Vision (ACRV)
Queensland Univsersity of Technology (QUT)
@history:... | nilq/small-lua-stack | null |
Telegram.Config = {}
Telegram.Config.BotID = "" -- Bot id, the first part of xxxxxxx:xxxxxxx, get from the @BotFather
Telegram.Config.BotToken = "" -- Bot token, the second part of xxxxxxx:xxxxxxx, get from the @BotFather
Telegram.Config.Password = "" -- Admin access password.
Telegram.Config.Delay = 1 -- Delay... | nilq/small-lua-stack | null |
tutorial = {}
tutMap = {}
tutMap.width = 7
tutMap.height = 7
for i = 0, tutMap.width+1 do
tutMap[i] = {}
end
tutMap[1][1] = "C"
tutMap[1][2] = "C"
tutMap[1][3] = "C"
tutMap[1][4] = "C"
tutMap[1][5] = "C"
tutMap[1][6] = "C"
tutMap[1][7] = "C"
tutMap[7][1] = "C"
tutMap[7][2] = "C"
tutMap[7][3] = "C"
tutMap[7][4] = "... | nilq/small-lua-stack | null |
if mods["angelssmelting"] and mods["Yuoki"] and mods["yi_engines"] then
data:extend(
{
{
type = "recipe",
name = "molten-hmetal-smelting",
category = "induction-smelting",
subgroup = "angels-hmetal-casting",
energy_required = 4,
ingredients =
{
{type = "item", name = "ingot-steel... | nilq/small-lua-stack | null |
--基本
require "import"
import "android.app.*"
import "android.os.*"
import "android.widget.*"
import "android.view.*"
activity.setTitle('LIST')
activity.ActionBar.hide()--隐藏标题栏
--values and your run library
import"mods.runbase"
import"values.url.gits"
import"values.color.softcolor"
set_flagcolor(to0x(maincolor))
act... | nilq/small-lua-stack | null |
local function inplace_filter(arr, p)
local j, n = 0, #arr
for i = 1, n do
if p(arr[i], i, arr) then
j = j + 1
arr[j] = arr[i]
end
end
for i = j+1, n do
arr[i] = nil
end
return arr
end
return inplace_filter
| nilq/small-lua-stack | null |
--[[----------------------------------------------------------------------------
Copyright (c) 2016-present, Facebook, Inc. All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found... | nilq/small-lua-stack | null |
object_draft_schematic_furniture_furniture_structure_customization_kit = object_draft_schematic_furniture_shared_furniture_structure_customization_kit:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_furniture_furniture_structure_customization_kit, "object/draft_schematic/furniture/furniture_structure_custo... | nilq/small-lua-stack | null |
package.path = package.path .. ";/libs/?.lua"
local Container = {}
function Container.countItems(stacks)
local numItems = 0
for _, stack in pairs(stacks) do
numItems = numItems + stack.count
end
return numItems
end
return Container
| nilq/small-lua-stack | null |
sprite =
{
arquivo = "dados/berrybush.png",
altura_quadro = 0,
largura_quadro = 0
}
| nilq/small-lua-stack | null |
local TEXT_HEIGHT = screen.height - 300
local lines = {}
local speaker = {}
local lineNumber = 1
local font = love.graphics.newFont("FORCED_SQUARE.ttf", 40)
local tbox = {}
tbox.w = 800
tbox.h = 0
local picScale = 3
local donPic = love.graphics.newImage("gfx/portrait/don.png")
local fellowPic = love.graphics.newIma... | nilq/small-lua-stack | null |
if not turtle then
printError("Requires a Turtle")
return
end
local tArgs = { ... }
if #tArgs ~= 1 then
local programName = arg[0] or fs.getName(shell.getRunningProgram())
print("Usage: " .. programName .. " <diameter>")
return
end
-- Mine in a quarry pattern until we hit something we can't dig
lo... | nilq/small-lua-stack | null |
--
-- Each entry of "syntax" describe a node of the AST tree.
-- The "properties" field gives the specification for the properties
-- of each node.
--
-- Each "properties" entry is of the form:
--
-- <name> = <ast_element_type>
--
-- where <ast_element_type> is a recursive type defined as follow:
-- it can be:
--
-- "E... | nilq/small-lua-stack | null |
--[[
LuCI - Lua Configuration Interface
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
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
]]--
requi... | nilq/small-lua-stack | null |
ui_page 'html/form.html'
files {
'html/form.html',
'html/img/seal.png',
'html/img/document.jpg',
'html/img/signature.png',
'html/img/cursor.png',
'html/css.css',
'html/language_en.js',
'html/language_gr.js',
'html/language_br.js',
'html/language_de.js',
'html/language_fr.js',
'html/script.js',
'html/jquer... | nilq/small-lua-stack | null |
-- The Computer Language Benchmarks Game
-- http://benchmarksgame.alioth.debian.org/
-- contributed by Jim Roseborough
-- modified by Victor Tang
-- optimized & replaced inefficient use of gsub with gmatch
-- partitioned sequence to prevent extraneous redundant string copy
-- modified to use Lpeg's re module for matchi... | 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.