content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
-- Cutter: A Spiderling that can cut existing Webs.
-- DO NOT MODIFY THIS FILE
-- Never try to directly create an instance of this class, or modify its member variables.
-- Instead, you should only be reading its variables and calling its functions.
local class = require("joueur.utilities.class")
local Spiderling = r... | nilq/small-lua-stack | null |
require('abilities/swiper/boss_swiper_swipe')
function Spawn( entityKeyValues )
if thisEntity == nil then
return
end
if IsServer() == false then
return
end
thisEntity.hThrustAbility = thisEntity:FindAbilityByName( "boss_swiper_thrust" )
thisEntity.hFrontswipeAbility = thisEntity:FindAbilityByName( "boss_sw... | nilq/small-lua-stack | null |
local Name, Addon = ...
local L = LibStub("AceLocale-3.0"):GetLocale(Name)
local AceGUI = LibStub("AceGUI-3.0")
local GUI, Models, Options, Store, Util = Addon.GUI, Addon.Models, Addon.Options, Addon.Store, Addon.Util
local Self = GUI.Main.Tasks
Self.COLOR_SELECTED = {1, 1, 1, .5}
Self.COLOR_CHECKED = {1, 1, 1, .2}
S... | nilq/small-lua-stack | null |
--[[
How does the script work?
When the function useDrug() is called, it will check to see if the selected drug is already running. If
the drug is already running, then it'll kill the timer and create a new timer with the doce time + the
remaining time. If the drug isn't running, then it'll just create a new time... | nilq/small-lua-stack | null |
#!/usr/bin/env tarantool
local clock = require("clock")
local fiber = require("fiber")
local test = require("tap").test("clock")
test:plan(36)
test:ok(clock.time() > 0, "time")
test:ok(clock.realtime() > 0, "realtime")
test:ok(clock.thread() > 0, "thread")
test:ok(clock.monotonic() > 0, "monotonic")
test:ok(clock.pr... | nilq/small-lua-stack | null |
local fs = fs
local matches = {
["^"] = "%^",
["$"] = "%$",
["("] = "%(",
[")"] = "%)",
["%"] = "%%",
["."] = "%.",
["["] = "%[",
["]"] = "%]",
["*"] = "%*",
["+"] = "%+",
["-"] = "%-",
["?"] = "%?",
["\0"] = "%z",
}
--- Escape a string for using in a pattern
-- @tparam string pattern The string to escap... | nilq/small-lua-stack | null |
--
-- find api -- a simple api for querying actors and components
--
-- usage:
--
-- you can specify the actor as directly or through an id
--
-- local actor, comp1, comp2 = find(id , name1, name2)
-- local comp1, comp2 = find(actor, name1, name2)
--
-- if you want to bundle items together, you can use findp... | nilq/small-lua-stack | null |
--[[
gamevar.lua
version: 19.01.16
Copyright (C) 2018, 2019 Jeroen P. Broks
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this softwar... | nilq/small-lua-stack | null |
local helpers = require('test.unit.helpers')
local cimport = helpers.cimport
local internalize = helpers.internalize
local eq = helpers.eq
local neq = helpers.neq
local ffi = helpers.ffi
local lib = helpers.lib
local cstr = helpers.cstr
local to_cstr = helpers.to_cstr
local NULL = helpers.NULL
local OK = helpers.OK
lo... | nilq/small-lua-stack | null |
CatalogueClearAll();
CreateNewMetricProject();
local liqcat =AddNewCatalogue("Fluid Process", "");
CatalogueAddType(liqcat, 'PIPE','PIPE_FITTING', 'PIPE_INSULATION','PIPE_FLANGE');
CatalogueAddType(liqcat ,"RECT_AS_TANK","VCYL_AS_TANK","HCYL_AS_TANK");
CatalogueAddType(liqcat , 'HYDRAULIC_APPLIANCE',"PUMP");
Cat... | nilq/small-lua-stack | null |
--[[
Name: car_dealer.lua
-----------------------------------------------------------------
-- @package VrZn - Custom Gamemode (SRP BASE)
-- @author Nodge
-- @build Beta 1
-----------------------------------------------------------------
]]--
local NPCMeta = {}
NPCMeta.Name = "Car Dealer"
NPCMeta.UID =... | nilq/small-lua-stack | null |
return {
id = "S002",
mode = 2,
scripts = {
{
actor = 900005,
nameColor = "#a9f548",
side = 0,
say = "哇,萨福克萨福克,我们好厉害呀~一口气就解决了这么多敌人",
shake = {
speed = 1,
number = 3
},
typewriter = {
speed = 0.05,
speedUp = 0.01
},
painting = {
alpha = 0.3,
time = 0.5
}
},
... | nilq/small-lua-stack | null |
help(
[[
BWA is a software package for mapping low-divergent sequences against a large reference genome, such as the human genome. It consists of three algorithms: BWA-backtrack, BWA-SW and BWA-MEM. The first algorithm is designed for Illumina sequence reads up to 100bp, while the rest two for longer sequences ranged f... | nilq/small-lua-stack | null |
--[[
Pixel Vision 8 - Boot Tool
Copyright (C) 2017, Pixel Vision 8 (http://pixelvision8.com)
Created by Jesse Freeman (@jessefreeman)
Please do not copy and distribute verbatim copies
of this license document, but modifications without
distributing is allowed.
]]--
LoadScript("sb-sprites")
LoadScript("boot-text... | nilq/small-lua-stack | null |
--
-- vs200x_vcproj_user.lua
-- Generate a Visual Studio 2002-2008 C/C++ project .user file
-- Copyright (c) Jason Perkins and the Premake project
--
local p = premake
local m = p.vstudio.vc200x
--
-- Generate a Visual Studio 200x C++ user file, with support for the new platforms API.
--
m.elements.user = funct... | nilq/small-lua-stack | null |
object_static_worldbuilding_terminal_wall_monitorscreen_text_01 = object_static_worldbuilding_terminal_shared_wall_monitorscreen_text_01:new {
}
ObjectTemplates:addTemplate(object_static_worldbuilding_terminal_wall_monitorscreen_text_01, "object/static/worldbuilding/terminal/wall_monitorscreen_text_01.iff")
| nilq/small-lua-stack | null |
----------/|\ /|\----------
----------\|/ Nak's Server Shield \|/----------
--[[Thank you for using. So far this grants protection from the most popular viruses on roblox currently:
Vaccine
Fire Spread Virus
Common Renamers
Outdated Viruses
enjoy.
NIS = not in script.
]]
-----... | nilq/small-lua-stack | null |
if vim.g.colors_name then
vim.api.nvim_command [[highlight clear]]
end
vim.g.colors_name = "randombones"
local util = require "zenbones.util"
local colorschemes = util.get_colorscheme_list()
math.randomseed(os.time())
local index = math.random(#colorschemes)
local colorscheme = colorschemes[index]
vim.g.randombone... | nilq/small-lua-stack | null |
name = "Elemental Quests"
desc = function(self, who)
local desc = {}
desc[#desc+1] = "Complete all the elemental quests."
if self:isCompleted("earth-quest") then
desc[#desc+1] = "#LIGHT_GREEN#* You have completed the Earth Quest!#WHITE#"
else
desc[#desc+1] = "#SLATE#* You must explore Murmon, in the middle of ... | nilq/small-lua-stack | null |
local _State_Die = require("core.class")()
function _State_Die:Ctor(FSM, entity)
self.FSM = FSM
self._entity = entity
self.name = "die"
end
function _State_Die:Enter()
self.avatar:Play("down")
self.avatar:SetFrame(4)
self._entity:Update(love.timer.getDelta())
end
function _State_Die:Upda... | nilq/small-lua-stack | null |
if not Holo:ShouldModify("Menu", "Lobby") then
return
end
Holo:Post(HUDMissionBriefing, "init", function(self)
if not alive(self._job_schedule_panel) then
return
end
local text_font_size = tweak_data.menu.pd2_small_font_size - (BigLobbyGlobals and 3 or 0)
local num_player_slots = BigLobbyGlobals and BigLo... | nilq/small-lua-stack | null |
minetest.register_privilege("worldedit", "Can use WorldEdit commands")
worldedit.pos1 = {}
worldedit.pos2 = {}
worldedit.set_pos = {}
worldedit.inspect = {}
worldedit.prob_pos = {}
worldedit.prob_list = {}
local safe_region, reset_pending = dofile(minetest.get_modpath("worldedit_commands") .. "/safe.lu... | nilq/small-lua-stack | null |
--[[
MIT License
Copyright (c) 2020 LeoDeveloper
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,... | nilq/small-lua-stack | null |
local RunService = game:GetService("RunService")
local rs = require(script.Parent["RocketSysIII"].MainModule)
local stage1 = {
name = "stage1";
model = workspace.RocketStages.Stage1;
specificImpulseASL =282;
specificImpulseVac =311;
wetMass = 410365.5;
dryMass = 93490.5;
burnRate = 1956;... | nilq/small-lua-stack | null |
--[[----------------------------------------------------------------------------
MyMetadataTagsetAll.lua
MyMetadata.lrplugin
--------------------------------------------------------------------------------
ADOBE SYSTEMS INCORPORATED
Copyright 2008 Adobe Systems Incorporated
All Rights Reserved.
NOTICE: Adobe perm... | nilq/small-lua-stack | null |
Cannon = Entity:extend()
Cannon.shotFrame = Assets.load("data/images/shot.png")
function Cannon:new(tank)
Cannon.super.new(self)
self.tank = tank
self:loadImage("data/images/" .. self.tank.name .. ".png", 16, 20)
self:addAnimation("main", { 2 }, 20)
self:playAnimation("main")
self.rotationAngle = 0
self.spee... | nilq/small-lua-stack | null |
return {
id = "WorldG001",
events = {
{
alpha = 0,
code = {
"playStory"
},
stories = {
"GWORLDX001A"
}
},
{
alpha = 0.3,
code = {
"chooseCamp"
},
style = {
text = "请选择要加入的阵营",
mode = 2,
posY = -189.51,
dir = -1,
posX = 0
}
}
}
}
| nilq/small-lua-stack | null |
H.keymap('n', '<leader>tq', ':lua require("harpoon.term").gotoTerminal(0)<cr>', { silent = true })
H.keymap('n', '<leader>tw', ':lua require("harpoon.term").gotoTerminal(1)<cr>', { silent = true })
H.keymap('n', '<leader>te', ':lua require("harpoon.term").gotoTerminal(2)<cr>', { silent = true })
H.keymap('n', '<leader>... | nilq/small-lua-stack | null |
VariantResearch =
{
kus_allshipbuildspeed =
{
KUS_ALLSHIPBUILDSPEED,
},
kus_allshipbuildspeedexpert =
{
KUS_ALLSHIPBUILDSPEEDEXPERT,
},
kus_allshipbuildspeedhard =
{
KUS_ALLSHIPBUILDSPEEDHARD,
},
kus_cpuplayers_aggressive =
{
KUS_CPUPLAYERS_AGGRESSIVE,
},
kus_cpuplayers_defensive =
{
KUS_CPUPLAY... | nilq/small-lua-stack | null |
jester.help_map.tracker = {}
jester.help_map.tracker.description_short = [[Track various states in the channel.]]
jester.help_map.tracker.description_long = [[This module provides actions assist in tracking various states in a channel.]]
jester.help_map.tracker.actions = {}
jester.help_map.tracker.actions.counter = {... | nilq/small-lua-stack | null |
-- Copyright: 2015-2020, Björn Ståhl
-- License: 3-Clause BSD
-- Reference: http://durden.arcan-fe.com
-- Description: Main event-handlers for different external connections
-- and their respective subsegments. Handles registering new windows,
-- hinting default sizes, update timers etc.
-- Every connection can get a ... | nilq/small-lua-stack | null |
--- Nested data file format and nested tables functionality.
-- @module nested
--- Current version string
-- @field _VERSION
--- Postorder key to be passed to @{iterate} options (`'postorder'`)
-- @field POSTORDER
--- Postorder only value to be passed to @{iterate} options (`'only'`)
-- @field POSTORDER_ONLY
--- Ta... | nilq/small-lua-stack | null |
local _, Addon = ...
local DDBL = Addon.DethsDBLib
if DDBL.__loaded then return end
local consts = DDBL.consts
consts.PLAYER_KEY = ("%s-%s"):format(_G.UnitName("PLAYER"), _G.GetRealmName())
consts.TOC_ENTRY = "X-DethsDBLib"
consts.TOC_ERROR_MSG = [=[
%s.toc must contain:
## SavedVariables: my_addon_sv_key
## X-Det... | nilq/small-lua-stack | null |
--[[ FileName: AnimationTemplate.lua ]]
--[[ Author: Godcat567/GodCat856 ]]
print[[
BSD 3-Clause License
Copyright (c) 2021, PixeledLuaWriter (Godcat567)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions ar... | nilq/small-lua-stack | null |
-- strategyPA.lua
module("strategyPA", package.seeall)
-- strategy performance assessment
-- distributes requests between default instances and SUTs according to some weight
-- applies then different strategies depending on target instance type
local config = require("config")
local servers = require("servers")
local... | nilq/small-lua-stack | null |
--region *.lua
--Date
--此文件由[BabeLua]插件自动生成
require "app.views.reward_history_cell_ui"
game.CRewardHistoryUI = class("game.CRewardHistoryUI", dxm.CDialogUI)
local CRewardHistoryUI = game.CRewardHistoryUI
function CRewardHistoryUI:ctor()
CRewardHistoryUI.super.ctor(self)
end
function CRewardHistoryUI:Init()
... | nilq/small-lua-stack | null |
---
-- Luanode.Net _doflush was not handling correctly errors on write_callback handlers
--
module(..., lunit.testcase, package.seeall)
local common = dofile("common.lua")
local net = require "luanode.net"
function test()
local server = net.createServer(function (self, socket)
self:close()
end)
server:listen(com... | nilq/small-lua-stack | null |
local R = require "rigel"
local RM = require "generators.modules"
local C = require "generators.examplescommon"
local types = require "types"
local harness = require "generators.harness"
W = 128
H = 64
T = 8
-------------
RAWTYPE = types.array2d( types.uint(8), T )
inp = R.input( types.rv(types.Par(RAWTYPE)) )
convLB... | nilq/small-lua-stack | null |
--[[
-- Awesome WM status bar config
--]]
local gears = require("gears")
local lain = require("lain")
local awful = require("awful")
local wibox = require("wibox")
local markup = lain.util.markup
local separators = lain.util.separators
local os = os
local dpi = require("beautiful.xresources").apply_dpi
local ta... | nilq/small-lua-stack | null |
object_building_mustafar_terrain_must_rock_round_med_s01 = object_building_mustafar_terrain_shared_must_rock_round_med_s01:new {
}
ObjectTemplates:addTemplate(object_building_mustafar_terrain_must_rock_round_med_s01, "object/building/mustafar/terrain/must_rock_round_med_s01.iff")
| nilq/small-lua-stack | null |
ITEM.name = "Sprig Eye"
ITEM.model ="models/spitball_small.mdl"
ITEM.description = "A small, hardened eye from a sprig. It feels like a glass marble."
ITEM.longdesc = "Sprigs can lie completely motionless for days at a time, being able to perceive everything around them with its eyes. It seems like it's capable of gett... | nilq/small-lua-stack | null |
--@name Hello World
--@author INP
print("Hello World!")
| nilq/small-lua-stack | null |
-- Dois hífens começam um comentário de uma linha.
--[[
Adicionar dois [ ] (colchetes) criam um comentário
de múltiplas linhas.
--]]
----------------------------------------------------
-- 1. Variáveis e fluxo de controle.
----------------------------------------------------
num = 42 -- Todos os números... | nilq/small-lua-stack | null |
-- All the net messages defined here
util.AddNetworkString("tax_office")
util.AddNetworkString("XYZ_PRES_OPEN_TAX")
util.AddNetworkString("XYZ_PRES_UP_TAX")
util.AddNetworkString("XYZ_PRES_MANAGE_LICENSE")
util.AddNetworkString("tax_office_payout")
| nilq/small-lua-stack | null |
--[[
██╗░░░██╗███████╗██╗░░░██╗ ░██████╗░█████╗░██████╗░██╗██████╗░████████╗░██████╗
██║░░░██║╚════██║██║░░░██║ ██╔════╝██╔══██╗██╔══██╗██║██╔══██╗╚══██╔══╝██╔════╝
██║░░░██║░░███╔═╝██║░░░██║ ╚█████╗░██║░░╚═╝██████╔╝██║██████╔╝░░░██║░░░╚█████╗░
██║░░░██║██╔══╝░░██║░░░██║ ░╚═══██╗██║░░██╗██╔══██╗██║█... | nilq/small-lua-stack | null |
-- "imports"
local cjson = require "cjson"
local cjson2 = cjson.new()
local cjson_safe = require "cjson.safe"
-- Bicycle profile
api_version = 2
Set = require('lib/set')
Sequence = require('lib/sequence')
Handlers = require("lib/way_handlers")
find_access_tag = require("lib/access").find_access_tag
limit = require("... | nilq/small-lua-stack | null |
function eventNewGame()
if gameStarted then
--parsing the map's xml and getting the land points
local mapDom = parseXml(map, true)
local cloudId = tostring(tfm.enum.ground.cloud)
for _, o in next, path(mapDom, "Z", "S", "S") do
--getting normal land points
... | nilq/small-lua-stack | null |
--[[
Example Lua Object for using Windows Managment and Instrumentation via LuaCom
This object is meant to be used as a class to create other objects.
Contributed by Michael Cumming
--]]
require("luacom")
cWMI = {
New = function (self)
o = {}
setmetatable (o,self)
self.__index = self
return o
end,... | 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 IsJailed = false
local unjail = false
JailTime = 0
fastTimer = 0
local JailLocation = 3372.48, -667.09, 46.41
RegisterNetEvent('FRP:JAIL:jail')
AddEventHandler('FRP:JAIL:jail', function(jailTime)
if IsJailed then -- don't allow multiple jails
return
end
JailTime = jailTime
local playerPed = PlayerPedId(... | nilq/small-lua-stack | null |
--====================================================================--
-- dmc_corona/dmc_gesture/longpress_gesture.lua
--
-- Documentation: http://docs.davidmccuskey.com/dmc-gestures
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2015 David McCuske... | nilq/small-lua-stack | null |
-- WRAPPER FUNCTION FOR REQUIRE [BEGIN] --------------------------------------
return function(global)
print "[LOAD] -> client/Game/init"
-- PRIVATE DATA AND HELPER FUNCTIONS [BEGIN] ---------------------------------
local Assert = global.Assert
local Require = global.Require
local logger = Require.module('/s... | nilq/small-lua-stack | null |
data:extend
(
{
{
type = "recipe",
name = "RW_concrete-bridge",
energy_required = 10,
enabled = false,
ingredients =
{
{"concrete", 50},
{"steel-plate", 10}
},
result = "RW_concrete-bridge"
}
}
)
| nilq/small-lua-stack | null |
--- A package provider that uses a local file.
-- @module howl.modules.packages.file
local class = require "howl.class"
local mixin = require "howl.class.mixin"
local fs = require "howl.platform".fs
local Manager = require "howl.packages.Manager"
local Package = require "howl.packages.Package"
local Source = require ... | nilq/small-lua-stack | null |
local setfenv = setfenv
local error = error
local M = {}
M.EMPTY_TABLE = setmetatable({}, {
__index = function(_, k)
error("Accessing on EMPTY table: " .. k)
end,
__newindex = function(_, k)
error("Assigning on EMPTY table: " .. k)
end,
})
function M.setmodenv()
set... | nilq/small-lua-stack | null |
-- jump game
function setup()
end
count = 0
x = 16
y = 100
yv = 0
jumpflag = false
enemy = {}
preventcount = 0
modetitle = 0
modegame = 1
modeover = 2
mode = modetitle
function mkenemy(x, y)
return {x = x, y = y}
end
enemy[#enemy] = mkenemy(128, 100);
test = {x=0, y=0}
function loop()
if mode == modetitle t... | nilq/small-lua-stack | null |
-- StoreForLater.lua
-- Implements a test Cuberite plugin that stores an instance from a command callback for later
local function onCmdTest(a_Split, a_Player)
g_Player = a_Player
end
function Initialize()
cPluginManager:BindCommand("test", "", onCmdTest)
return true
end
| nilq/small-lua-stack | null |
Locales['de'] = {
--Global menus
['belongs'] = ' gehört jetzt dir',
['bleach amount'] = 'Betrag zum waschen',
['broke_company'] = 'du hast nicht genug Geld auf dem Firmenkonto',
['buy'] = 'kaufen',
['buy_vehicle'] ... | nilq/small-lua-stack | null |
return {
armbeaver = {
acceleration = 0.0528,
brakerate = 1.3992,
buildcostenergy = 2647,
buildcostmetal = 172,
builddistance = 180,
builder = true,
buildpic = "armbeaver.dds",
buildtime = 5000,
canguard = true,
canmove = true,
canpatrol = true,
canreclamate = 1,
canstop = 1,
... | nilq/small-lua-stack | null |
Init = Init ~= nil and Init or {}
Init.EnableDebugger = false
Init.DEBUG = Game.IsDebug()
Game.ImportLibrary("system/scripts/class.lua")
Game.ImportLibrary("gui/scripts/scenariomenu_game.lua", false)
Game.ImportLibrary("system/scripts/logiccallbacks.lua", false)
Init.aBlkCharacterPackages = {
Samus = {
aSce... | nilq/small-lua-stack | null |
-- This module should automatically make 800x600 viewport fit into a letterboxed window of a larger
-- size. Just run LetterboxInit whenever you update window size, run LetterboxStart before draw
-- calls and after they finish, run LetterboxFinish
local viewW, viewH, viewRatio = 800, 600, 4 / 3
local winW, winH, winRa... | nilq/small-lua-stack | null |
-- basic NB. discretized data. class is last thing on each lone
local _,the = require"tricks", require"the"
local copy,inc,inc3,has3, lines = _.copy, _.inc, _.inc3, _.has3, _.lines
local o,oo,push,inc, inc3 = _.o, _.oo, _.push, _.inc, _.inc3
local map,sort,firsts, stsrif = _.map,_.sort, _.firsts,_.stsrif
local f... | nilq/small-lua-stack | null |
----------------------------------------------------------------
-- Tpp SupportHelicopter
----------------------------------------------------------------
CharaTppSupportHelicopter = {
----------------------------------------
--各システムとの依存関係の定義
--
-- GeoやGrなどの各システムのJob実行タイミングを
-- 「キャラクタのJob実行後」に合わせ、
-- システムを正常に動作させるために必... | nilq/small-lua-stack | null |
--[[
operacoes matematicas
Soma +
Subtracao -
Multiplicacao *
Divisao /
Resto da divisao %
]]
print(1 + 1)
print(2 -1)
print(3 * 3)
print(4 / 2)
print(9%2) | nilq/small-lua-stack | null |
---
-- @author wesen
-- @copyright 2020 wesen <wesen-ac@web.de>
-- @release 0.1
-- @license MIT
--
local Object = require "classic"
---
-- Base class for ArgumentList filters.
--
-- If a filter is added to a ArgumentListWrapper its matches() method will be called whenever
-- a raw list of arguments need to be filtere... | nilq/small-lua-stack | null |
local TaskItem = require "TaskItem"
local M = Class(DisplayScroll)
function M:init(width, height)
self.super:init(width, height, false)
self:reload()
end
function M:setWidth(width)
return self
end
function M:setHeight(height)
return self
end
function M:setSize(width, height)
return self
end... | nilq/small-lua-stack | null |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
util.PrecacheSound("Airboat_engine_idle")
util.PrecacheSound("Airboat_engine_stop")
include("shared.lua")
local Energy_Increment = 100 --60
DEFINE_BASECLASS("base_rd3_entity")
function ENT:Initialize()
BaseClass.Initialize(self)
self.Active = 0
self.damaged = ... | nilq/small-lua-stack | null |
#!/usr/bin/env tarantool
test = require("sqltester")
test:plan(59)
--!./tcltestrunner.lua
-- 2014 January 11
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive other... | nilq/small-lua-stack | null |
-- init.lua
-- SSID="FrontierHSI" -- SSID
-- PASSWORD="passfire" -- SSID password
HOSTNAME="MQTT-DHT22-shop-furnace"
-- TIMEOUT=100000 -- timeout to check the network status
-- EXSENSOR1="tempumid.lua" -- module to run
-- MQTTSERVER="192.168.254.220" -- mqtt broker address
-- MQTTPORT="1883" -- mqtt broker po... | nilq/small-lua-stack | null |
local lfs = require "lfs"
local Util = require("Util/Util")
local apidoc = require("Util/apidoc_nontoc")
-- run this script, then FindFrameXmlEvent and then this script again
local framexml_data = loadfile("out/lua/API_info.patch.event_retail_framexml.lua")()
local flavors = {
retail = {
id = "retail",
input = "... | nilq/small-lua-stack | null |
local condition = Condition(CONDITION_FIRE)
condition:setParameter(CONDITION_PARAM_DELAYED, true)
condition:addDamage(20, 9000, -10)
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
combat:setArea(createCombatArea(AREA_CIRCLE... | nilq/small-lua-stack | null |
package("openssl")
set_homepage("https://www.openssl.org/")
set_description("A robust, commercial-grade, and full-featured toolkit for TLS and SSL.")
add_urls("https://www.openssl.org/source/openssl-$(version).tar.gz", {alias = "home", excludes = "*/fuzz/*"})
add_urls("https://github.com/openssl/opens... | nilq/small-lua-stack | null |
test_run = require('test_run')
inspector = test_run.new()
engine = inspector:get_cfg('engine')
-- https://github.com/tarantool/tarantool/issues/1109
-- Update via a secondary key breaks recovery
s = box.schema.create_space('test', { engine = engine })
i1 = s:create_index('test1', {parts = {1, 'unsigned'}})
i2 = s:crea... | nilq/small-lua-stack | null |
project("RED4ext.ExecuteFunctions")
targetdir(red4ext.paths.build("examples"))
kind("SharedLib")
language("C++")
dependson({ "RED4ext.SDK" })
includedirs(
{
".",
red4ext.paths.include()
})
files(
{
"**.cpp",
"**.hpp"
})
| nilq/small-lua-stack | null |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... | nilq/small-lua-stack | null |
-- Implementation helper for metatable-based "classes"
return function(class_table, superclass_table)
if superclass_table then
class_table.super = superclass_table
setmetatable(class_table, superclass_table.metatable)
end
local new = assert(class_table.new)
local metatable = { __index = class_table }
function ... | nilq/small-lua-stack | null |
-- protoplug.lua
-- basic globals for every protoplug script
-- luaJIT
ffi = require "ffi"
bit = require "bit"
-- load protoplug as a dynamic library using ffi
protolib = ffi.load(protoplug_path)
juce = require "include/protojuce"
midi = require "include/core/midi"
script = require "include/core/script"
plugi... | nilq/small-lua-stack | null |
local skynet = require "skynet.manager"
local dc = require 'skynet.datacenter'
local coroutine = require 'skynet.coroutine'
local log = require 'utils.log'
local function exec_all(cmd)
local cmd = cmd..' 2>/dev/null'
local f, err = io.popen(cmd)
if not f then
return nil, err
end
local s = f:read('*a')
f:close... | nilq/small-lua-stack | null |
ITEM.name = "Controller's Hand"
ITEM.model ="models/lostsignalproject/items/parts/controler_hand.mdl"
ITEM.description = "The hand of a dead controller."
ITEM.longdesc = "The controller seems to use its hand when mentally attacking its prey. The scientists will gladly examine it in the hope of finding the source of mut... | nilq/small-lua-stack | null |
function Client_SaveConfigureUI(alert)
Mod.Settings.AllowAIDeclaration = AIDeclerationcheckbox.GetIsChecked();
if(Mod.Settings.AllowAIDeclaration == nil)then
Mod.Settings.AllowAIDeclaration = true;
end
Mod.Settings.AIsdeclearAIs = AIsdeclearAIsinitcheckbox.GetIsChecked();
if(Mod.Settings.AIsdeclearAIs == nil)... | nilq/small-lua-stack | null |
Locales['br'] = {
-- Global
['del_vehicle'] = '%s Enviou um veículo para o estacionamento.',
['hijack_vehicle'] = '%s tentou roubar um carro',
['reboot'] = 'Servidor aberto',
['sendBill'] = '%s deu uma conta para %s de "%s"(%s)',
-- es_admin2
['setbankmoney'] = '%s have set bank money of %s to %s.',
['s... | nilq/small-lua-stack | null |
--[[
s:UI Unit Frame Layout Generation: Role Element
Martin Karer / Sezz, 2014
http://www.sezz.at
--]]
local S = Apollo.GetPackage("Gemini:Addon-1.1").tPackage:GetAddon("SezzUI");
local UnitFramesLayout = S:GetModule("UnitFramesCore"):GetModule("Layout");
-- Lua API
local tinsert = table.insert;
... | nilq/small-lua-stack | null |
local assets =
{
--Asset("ANIM", "anim/arrow_indicator.zip"),
}
local prefabs =
{
"babybeefalo",
}
local function InMood(inst)
if inst.components.periodicspawner then
inst.components.periodicspawner:Start()
end
if inst.components.herd then
for k,v in pairs(inst.components.herd.member... | nilq/small-lua-stack | null |
SOUND_BUSINESS_BUY = "buttons/button14.wav"
SOUND_BUSINESS_PREVENT_BUY = "buttons/button11.wav"
SOUND_BUSINESS_PREVENT_RESPONSE = "buttons/button3.wav"
SOUND_BUSINESS_PREVENT_TIMEOUT = "buttons/button11.wav"
SOUND_CUSTOM_CHAT_SOUND = ""
SOUND_F1_MENU_UNANCHOR = "buttons/lightswitch2.wav"
SOUND_MENU_BUTTON_ROLLOVER = "u... | nilq/small-lua-stack | null |
C_Reputation = {}
---[Documentation](https://wowpedia.fandom.com/wiki/API_C_Reputation.GetFactionParagonInfo)
---@param factionID number
---@return number currentValue
---@return number threshold
---@return number rewardQuestID
---@return boolean hasRewardPending
---@return boolean tooLowLevelForParagon
function C_Rep... | nilq/small-lua-stack | null |
local snips, autosnips = {}, {}
snips = {
s(
{ trig = '*([2-6])', name = 'Heading', dscr = 'Add Heading', regTrig = true, hidden = true },
{ f(function(_, snip)
return string.rep('*', tonumber(snip.captures[1])) .. ' '
end, {}) },
{ condition = conds.line_begin }
),
s(
{ trig = 'q([2-6])', name = 'Quot... | nilq/small-lua-stack | null |
local _, Engine = ...
-- Lua functions
local rawget = rawget
-- WoW API / Variables
local locale = GetLocale()
local L = {}
Engine.L = setmetatable(L, {
__index = function(t, s) return rawget(t, s) or s end,
})
if locale == 'zhCN' then
L["Explosive Orbs"] = "爆炸物"
L["Hit: "] = "击: "
L["Show how many explosive o... | nilq/small-lua-stack | null |
-----------------------------------
-- Dragon Kick
-- Hand-to-Hand weapon skill
-- Skill Level: 225
-- Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Breeze Gorget & Thunder Gorget.
-- Aligned with the Breeze Belt & Thunder Belt.
-- Element: None
-- Modifiers: STR:50% VIT:50%
-- 100%TP ... | nilq/small-lua-stack | null |
--
-- Please see the readme.txt file included with this distribution for
-- attribution and copyright information.
--
function getEffectStructures(nodeAbility)
-- ACTOR
local nodeChar = nil;
if nodeAbility then
nodeChar = nodeAbility.getChild(".......");
end
local rActor = CombatCommon.getActor("pc", nodeCha... | nilq/small-lua-stack | null |
local names = {
"Color3",
"Rect",
"UDim",
"UDim2",
"Vector2",
"Vector3",
}
local types = {}
for _, name in ipairs(names) do
types[name] = import("./" .. name)
end
return types | nilq/small-lua-stack | null |
local Keys = {
["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57,
["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACK... | nilq/small-lua-stack | null |
local strfind = string.find
local strsub = string.sub
--- Split a string into substrings according to a provided separator.
-- @param sep The separator string.
-- @param patterned If this parameter evaluates to true the separation is performed on search patterns, otherwise plain strings.
-- @return A table with all st... | nilq/small-lua-stack | null |
if keyboard == nil then
keyboard = {}
end
function keyboard.update( )
keyboard.up = love.keyboard.isDown("up")
keyboard.down = love.keyboard.isDown("down")
keyboard.left = love.keyboard.isDown("left")
keyboard.right = love.keyboard.isDown("right")
keyboard.space = love.keyboard.isDown(" ")
end | nilq/small-lua-stack | null |
fx_version 'bodacious'
game 'gta5'
author 'Nosmakos'
description 'TGO Vending Machines'
version '1.0.0'
client_scripts {
'client/main.lua',
'config.lua'
}
server_scripts {
'server/main.lua',
'config.lua'
}
| nilq/small-lua-stack | null |
object_ship_yt1300_tier6 = object_ship_shared_yt1300_tier6:new {
}
ObjectTemplates:addTemplate(object_ship_yt1300_tier6, "object/ship/yt1300_tier6.iff")
| nilq/small-lua-stack | null |
slot0 = class("FriendScene", import("..base.BaseUI"))
slot0.FRIEND_PAGE = 1
slot0.SEARCH_PAGE = 2
slot0.REQUEST_PAGE = 3
slot0.BLACKLIST_PAGE = 4
slot0.getUIName = function (slot0)
return "FriendUI"
end
slot0.setFriendVOs = function (slot0, slot1)
slot0.friendVOs = slot1
end
slot0.setPlayer = function (slot0, slot... | nilq/small-lua-stack | null |
soldiers = {}
function spawnSoldier(x, y)
soldier = world:newCircleCollider(x, y, 20, {collision_class = "Soldier"})
soldier:setType('static')
soldier.dead = false
soldier.life = 2
soldier.maxTime = 0.4
soldier.timer = soldier.maxTime
table.insert(soldiers, soldier)
end
funct... | nilq/small-lua-stack | null |
if not modules then modules = { } end modules ['char-utf'] = {
version = 1.001,
comment = "companion to char-utf.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
--[[ldx--
<p>When a seq... | nilq/small-lua-stack | null |
local L = LibStub("AceLocale-3.0"):NewLocale("EPGP", "ruRU")
if not L then return end
L["%+d EP (%s) to %s"] = "%+d EP (%s) для %s"
L["%+d GP (%s) to %s"] = "%+d GP (%s) для %s"
L["'%s' - expected 'on' or 'off', or no argument to toggle."] = "'%s' - ожидает 'on', 'off' или отсутствие аргумента при переключении."
L["'%... | nilq/small-lua-stack | null |
mgmini.zero_noise = {
offset = 0,
scale = 0,
seed = 0,
spread = {x=80,y=80,z=80},
octaves = 1,
persistance = 0.5,
lacunarity = 1.5,
--flags = nil,
}
mgmini.ave_val_def = function(value)
minetest.log("error", "Average value noise used")
local noise = table.copy(mgmini.zero_noise)
noise.offset = value
return... | 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.