content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
-- Action
local setmetatable = setmetatable
local _M = { _VERSION = '0.0.1' }
local mt = { __index = _M }
function _M.new(name, action)
return setmetatable({
name = name,
action = action
}, mt)
end
function _M.execute(self, rule_name, decision)
local name = self.name
local action = s... | nilq/small-lua-stack | null |
module("moonscript.data", package.seeall)
local stack_t = {}
local _stack_mt = { __index = stack_t, __tostring = function(self)
return "<Stack {"..table.concat(self, ", ").."}>"
end}
function stack_t:pop()
return table.remove(self)
end
function stack_t:push(value)
table.insert(self, value)
return value
end
fun... | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- Kui Nameplates
-- By Kesava at curse.com
-- All rights reserved
--------------------------------------------------------------------------------
-- Base element script handler & base frame element registrar
-- Update registered elements... | nilq/small-lua-stack | null |
local hotkey = require "hs.hotkey"
local grid = require "hs.grid"
local window = require "hs.window"
local application = require "hs.application"
local appfinder = require "hs.appfinder"
local fnutils = require "hs.fnutils"
hs.application.enableSpotlightForNameSearches(true)
local logger = hs.logger.new('Launcher', '... | nilq/small-lua-stack | null |
--------------------------------
-- @module ContourData
-- @extend Ref
-- @parent_module ccs
---@class ccs.ContourData:ccs.Ref
local ContourData = {}
ccs.ContourData = ContourData
--------------------------------
---
---@return boolean
function ContourData:init()
end
--------------------------------
---
---@para... | nilq/small-lua-stack | null |
--- SETUP
local tool = script.Parent;
local server = require(game:GetService("ServerStorage"):WaitForChild("nofairTCM_Server"):WaitForChild("GunKit"));
local this = server:setup():setGun {
tool = tool;
settings = require(tool.settings);
};
--- BIND EVENT
-- setupClient 에 설명을 확인해주세요 (이건 이제 서버에서 작동하는 부분)
-- 웹훅... | nilq/small-lua-stack | null |
-- Biological cell simulation
-- Disclaimer: I am not a molecular biologist! (Nor am I a computer scientist.)
foobar: Cell {
cell: self
dna: [
foo: 40
]
rna: Queue new
ribosomes: Set new
transcribe: '(value)' => {
instructions: {
-- ...
}
... | nilq/small-lua-stack | null |
-- Common Localizations - Finnish
-- Localizations are licensed under the MIT License, from http://goo.gl/fhnw1t
lang_dict = {}
lang_dict["app"] = {}
lang_dict["app"]["button"] = ""
lang_dict["app"]["button.abort"] = ""
lang_dict["app"]["button.accept"] = "Hyväksy"
lang_dict["app"]["button.back"] = "Takaisin"
lang_dict... | nilq/small-lua-stack | null |
dofile'../../include.lua'
os.execute('clear')
--try_torch = true
if try_torch then
T = require'libTransform'
else
T = require'Transform'
end
q = require'quaternion'
v = require'vector'
util = require'util'
angle0 = 45*DEG_TO_RAD
axis0 = {0,1,0}
angle1 = 45*DEG_TO_RAD
axis1 = {1,0,0}
t = 0
print(angle0*RAD_TO_DEG... | nilq/small-lua-stack | null |
-- NOTE: CLove has 'different' API than Love. Be careful!
box = {}
box.x = 100
box.y = 100
box.s = 32
function love.load()
end
function love.update(dt)
if love.joystick.isDown(0, "b", "dpright") then
box.x = box.x + 100 * dt
end
if love.joystick.isDown(0, "x", "dpleft") then
box.x = b... | nilq/small-lua-stack | null |
return {
Inventory = {
-- MILITECH "FALCON" SANDEVISTAN MK.5 / Cyberware / Operating System / Legendary
-- Manufactured by Militech, the "Falcon" is hands down the best and most advanced Sandevistan model out there. Previously used only by elite Militech soldiers, its now available to the average consumer. The nic... | nilq/small-lua-stack | null |
local cfg = {}
-- paycheck and bill for users
cfg.message_paycheck = "Você recebeu seu salario: R$~g~" -- message that will show before payment of salary
cfg.message_bill = "Pagamento de contas: R$~r~" -- message that will show before payment of bill
cfg.post = "." -- message that will show after payment
cfg.bank = ... | nilq/small-lua-stack | null |
-----------------------------------------------
-- detail.lua
-- Represents a detail when it is in the world
-- Created by HazardousPeach
-----------------------------------------------
local game = require 'game'
local collision = require 'hawk/collision'
local Item = require 'items/item'
local utils = require 'util... | nilq/small-lua-stack | null |
--
-- Please see the license.html file included with this distribution for
-- attribution and copyright information.
--
local sortLocked = false;
function setSortLock(isLocked)
sortLocked = isLocked;
end
function onInit()
onEncumbranceChanged();
registerMenuItem(Interface.getString("list_menu_cre... | nilq/small-lua-stack | null |
local Tileset = Class()
function Tileset:init(data, path)
self.id = data.id
self.name = data.name
self.tile_count = data.tilecount or 0
self.tile_width = data.tilewidth or 40
self.tile_height = data.tileheight or 40
self.margin = data.margin or 0
self.spacing = data.spacing or 0
self.co... | nilq/small-lua-stack | null |
-----------------------------------------------------------------------------
-- Name: plugin_interface.lua
-- Purpose: Plugin Interface library project script.
-- Author: Andrea Zanellato zanellato.andrea@gmail.com
-- Modified by:
-- Created: 2011/10/20
-- Copyright: (c) wxFormBuilder... | nilq/small-lua-stack | null |
object_intangible_pet_beast_master_bm_snorbal_mount = object_intangible_pet_beast_master_shared_bm_snorbal_mount:new {
}
ObjectTemplates:addTemplate(object_intangible_pet_beast_master_bm_snorbal_mount, "object/intangible/pet/beast_master/bm_snorbal_mount.iff")
| nilq/small-lua-stack | null |
local array = require "util.array";
describe("util.array", function ()
describe("creation", function ()
describe("from table", function ()
it("works", function ()
local a = array({"a", "b", "c"});
assert.same({"a", "b", "c"}, a);
end);
end);
describe("from iterator", function ()
it("works", fun... | nilq/small-lua-stack | null |
Talk(6, "魔教妖邪,来我峨嵋山有何贵事.", "talkname6", 0);
Talk(0, "上回看你手中那把宝剑,寒芒吞吐,电闪星飞,想必就是传说中的”倚天剑”?小侠我想向你借来用用.", "talkname0", 1);
Talk(6, "光明顶上被你侥幸获胜,你现在还敢来我峨嵋撒野,莫非真视我峨嵋无人.", "talkname6", 0);
if AskBattle() == true then goto label0 end;
Talk(0, "那里,那里.我只不过是来劝师太,与明教间的事能和就和.自古以来冤家宜解不宜结.", "talkname0", 1);
Talk(6, "阁下未免管的太多了... | nilq/small-lua-stack | null |
class("MetaCharacterTacticsRequestCommand", pm.SimpleCommand).execute = function (slot0, slot1)
print("63313 request tactics info")
pg.ConnectionMgr.GetInstance():Send(63313, {
ship_id = slot1:getBody().id
}, 63314, function (slot0)
print("63314 requset success")
slot1 = {}
slot2 = ipairs
slot3 = slot0.ta... | nilq/small-lua-stack | null |
-- Created by Elfansoer
--[[
Ability checklist (erase if done/checked):
- Scepter Upgrade
- Break behavior
- Linken/Reflect behavior
- Spell Immune/Invulnerable/Invisible behavior
- Illusion behavior
- Stolen behavior
]]
--------------------------------------------------------------------------------
windranger_focus_f... | nilq/small-lua-stack | null |
local getEnemyTeam = { RED = "BLUE", BLUE = "RED" }
local blipColors = { RED = {255,0,0}, BLUE = {0,0,255} }
local playerBlips = {}
local blipInfo = {}
--Setup our playerblips
addEventHandler ( "onClientPlayerSpawn", root,
function()
if isElement ( playerBlips[source] ) then
destroyElement ( playerBlips... | nilq/small-lua-stack | null |
include("shared.lua")
function ENT:Initialize()
self.speed = 1
self.particleSys = ParticleEmitter(self:GetPos(), true)
end
function ENT:Draw()
if not self:GetIsActive() then return end
self:DrawModel()
end
function ENT:Think()
if not self:GetIsActive() then return end
if not LocalPlayer():IsLineOfSightClear(... | nilq/small-lua-stack | null |
package.path = './spec/?.lua;../lua/?.lua;'..package.path
local path = require "path"
local utils = require "utils"
local LUA, ARGS = utils.lua_args(arg)
local PATH = path.fullpath(".")
local DATE_PAT = "%d%d%d%d%-%d%d%-%d%d %d%d:%d%d:%d%d"
local TESTDIR = ".test_log"
local function exec_file(file)
as... | nilq/small-lua-stack | null |
--------------------Made by TobyPlowy-----------------------
minetest.register_node('ruins:old_skeleton', {
description = 'Old Skeleton',
drawtype = 'mesh',
mesh = 'decoblocks_old_skeleton.obj',
tiles = {name='decoblocks_old_skeleton.png'},
visual_scale = 0.5,
groups = {cracky=2, oddly_breakable_by_hand=5}... | nilq/small-lua-stack | null |
--////////////////////////////////////////////////////////////////////////
--
-- LuaCwrap - Lua <-> C
-- Copyright (C) 2011-2021 Klaus Oberhofer. See Copyright Notice in luacwrap.h
--
-- unit tests for LuaCwrap
--
--////////////////////////////////////////////////////////////////////////
lu = require("luaunit")
luacw... | nilq/small-lua-stack | null |
--------------------
-- Sassilization
-- By Sassafrass / Spacetech / LuaPineapple
--------------------
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:Initialize()
end
function ENT:Setup(ProjModel)
self:SetModel(ProjModel)
self:SetSolid(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_N... | nilq/small-lua-stack | null |
--************************
--name : ppid_001.lua
--ver : 0.1
--author : Ferron
--date : 2004/09/21
--lang : en
--desc : General Faction Information
--npc : Hacknet Broadcast Daemon v0.1.1
--************************
--changelog:
--2004/09/21(0.1): built from snows template
--*********************... | nilq/small-lua-stack | null |
-- SPDX-FileCopyrightText: 2020 Henri Chain <henri.chain@enioka.com>
--
-- SPDX-License-Identifier: Apache-2.0
local BasePlugin = require "kong.plugins.base_plugin"
local UpstreamOAuth2 = BasePlugin:extend()
local tokens = require "kong.plugins.upstream-oauth2.tokens"
local socket = require "socket"
UpstreamOAuth2.PR... | nilq/small-lua-stack | null |
require "tundra.syntax.osx-bundle"
Program {
Name = "foo",
Sources = { "main.m", "delegate.m" },
Frameworks = { "Cocoa" },
}
local mybundle = OsxBundle {
Depends = { "foo" },
Target = "$(OBJECTDIR)/MyApp.app",
InfoPList = "Info.plist",
Executable = "$(OBJECTDIR)/foo",
Resources = {
CompileNib { Source = "ap... | nilq/small-lua-stack | null |
local M = {}
M.cmd = "vusted"
M.working_dir = require("cmdhndlr.util").working_dir.upward_pattern(".git")
local handler = require("cmdhndlr.handler.test_runner.lua.busted")
return setmetatable(M, {
__index = function(_, k)
return rawget(M, k) or handler[k]
end,
})
| nilq/small-lua-stack | null |
--[[---------------------------------------------
AdvLib (C) Mijyuoon 2014-2020
Contains various helper functions
-----------------------------------------------]]
adv = {
-- Constants here
HttpCache = {},
Markup = {},
}
----- Config section ----------------------------
local Use_MoonScript = true
local Use_Prin... | nilq/small-lua-stack | null |
local t = Def.ActorFrame{};
local frameWidth = 280
local frameHeight = 20
local frameX = SCREEN_WIDTH-5
local frameY = 15
local sortTable = {
SortOrder_Preferred = 'Preferred',
SortOrder_Group = 'Group',
SortOrder_Title = 'Title',
SortOrder_BPM = 'BPM',
SortOrder_Popularity = 'Popular',
SortO... | nilq/small-lua-stack | null |
#!/usr/bin/env tarantool
test = require("sqltester")
test:plan(3)
--!./tcltestrunner.lua
-- 2008 January 13
--
-- 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 others... | nilq/small-lua-stack | null |
--[[
psz-sklepy: Kupno obiektow przyczepialnych, zapis do EQ gracza
@author Jakub 'XJMLN' Starzak <jack@pszmta.pl
@package PSZMTA.psz-sklepy
@copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl>
Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie.
]]--
local sw, sh = guiGetScreenSize... | nilq/small-lua-stack | null |
-- Copyright (C) Izio, Inc - All Rights Reserved
-- Unauthorized copying of this file, via any medium is strictly prohibited
-- Proprietary and confidential
-- Written by Romain Billot <romainbillot3009@gmail.com>, Jully 2017
allJob = {}
allZoneJob = {}
addCapactity = 10
timeCapactity = 300000
timePay = 180000
minTime... | nilq/small-lua-stack | null |
--[[
Lua XML parser. Originally created by Paul Chakravarti (paulc@passtheaardvark.com).
Modified to work with Garry's Mod.
This code is freely distributable under the terms of the Lua license
(http://www.lua.org/copyright.html)
]]
local function simpleTreeHandler()
local obj = {}
obj.root = ... | nilq/small-lua-stack | null |
-- Developer
-- MIT License © 2019 Arthur Corenzan
-- More on https://github.com/haggen/wow
local function ParseQuery(message)
local query = {
patterns = {},
};
for term in string.gmatch(message, "%S+") do
if (string.sub(term, 0, 5) == "type:") then
query.type = string.sub(term,... | nilq/small-lua-stack | null |
--Regen doesn't heal in combat anymore
kAlienRegenerationCombatModifier = 0
function Alien:UpdateAutoHeal()
PROFILE("Alien:UpdateAutoHeal")
if self:GetIsHealable() and ( not self.timeLastAlienAutoHeal or self.timeLastAlienAutoHeal + kAlienRegenerationTime <= Shared.GetTime() ) then
local healRate = 1
local ha... | nilq/small-lua-stack | null |
sk=net.createConnection(net.TCP, 0)
sk:on("receive", function(sck, c) ledmate.push_msg(c) end )
sk:connect(3344,"149.210.234.62")
--sk:connect(3344,"192.168.1.100")
| nilq/small-lua-stack | null |
--[[
Project: SA-MP-API
Author: Tim4ukys
My url: vk.com/tim4ukys
]]
local sys = require 'SA-MP API.kernel'
sys.safely_include 'SA-MP API.samp.0_3_7-R4-2.stGangzone'
sys.ffi.cdef[[
struct stGangzonePool {
stGangzone *pGangzone[1024];
int iIsListed[1024];
}__attribute__ ((packed));
]]
| nilq/small-lua-stack | null |
local obs = obslua;
local var = {}
--
-- Helpers
--
local info = function(msg)
obs.script_log(obs.LOG_INFO, "INFO: "..msg)
end
local warn = function(msg)
obs.script_log(obs.LOG_WARNING, "WARNING: "..msg)
end
local split = function(s, sep)
local fields = {}
local sep = sep or " "
local pa... | nilq/small-lua-stack | null |
local M = {}
function M.file_exists(name)
local f = io.open(name, "r")
return f ~= nil and io.close(f)
end
function M.esc(x)
return (x:gsub('%%', '%%%%')
:gsub('^%^', '%%^')
:gsub('%$$', '%%$')
:gsub('%(', '%%(')
:gsub('%)', '%%)')
:gsub('%.', '%%.')
:gsub('%[', '%%[')
:gsub('%]', ... | nilq/small-lua-stack | null |
require 'torch'
local argcheck = require "argcheck"
local doc = require "argcheck.doc"
local tnt
if (doc.__record) then
doc.stop()
tnt = require "torchnet"
doc.record()
else
v = require "torchnet"
end
doc[[
## Df_Subset
The subset class contains all the information for a specific subset of an
associated Datafra... | nilq/small-lua-stack | null |
--[[
FiveM Scripts
Copyright C 2018 Sighmir
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
at your option any later version.
... | nilq/small-lua-stack | null |
if select("#", ...) == 0 then
io.stderr:write "usage: lua client.lua <time of client 1>, <time of client 2>, ..."
os.exit(-1)
end
local arg = {...}
--------------------------------------------------------------------------------
require "oil"
oil.main(function()
local orb = oil.init()
------------------------------... | nilq/small-lua-stack | null |
CobralHideoutScreenPlay = ScreenPlay:new {
numberOfActs = 1,
screenplayName = "CobralHideoutScreenPlay",
lootContainers = {
6475949,
6475950,
6475951,
6475952,
6475953,
6475954
},
lootLevel = 13,
lootGroups = {
{
groups = {
... | nilq/small-lua-stack | null |
--
-- Copyright (c) 2016, 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 in the PATENTS file in the same directory.
--
-- The ResNet m... | nilq/small-lua-stack | null |
--- Utility methods for JSON
-- @module JSONUtils
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local HttpService = game:GetService("HttpService")
local Promise = require("Promise")
local JSONUtils = {}
function JSONUtils.promiseJSONDecode(str)
if type(str) ~= "string" th... | nilq/small-lua-stack | null |
--- 场景控制器 非必需,对于一些复杂的场景建议使用,把场景中一些处理挪到这里实现
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by yzx.
--- DateTime: 2019/5/30 13:25
--- 使用方法:对应场景如XX场景, 建立XXSceneCtrl 继承BaseSceneCtrl
--- 在XXScene中持有,跟随XXScene生命周期
---@class BattleSceneCtrl:BaseSceneCtrl
local BattleSceneCtrl = BaseClass("BattleSceneCtrl",... | nilq/small-lua-stack | null |
local panelName = "autoParty"
local autopartyui = setupUI([[
Panel
height: 38
BotSwitch
id: status
anchors.top: parent.top
anchors.left: parent.left
text-align: center
width: 130
height: 18
text: Auto Party
Button
id: editPlayerList
anchors.top: prev.top
anchors.left: pre... | nilq/small-lua-stack | null |
local sprotoparser = require "sprotoparser"
local proto = {}
proto.c2s = sprotoparser.parse [[
.package {
type 0 : integer
session 1 : integer
}
handshake 1 {
response {
msg 0 : string
}
}
get 2 {
request {
what 0 : string
}
response {
result 0 : string
}
}
set 3 {
request {
what 0 : string
val... | nilq/small-lua-stack | null |
hook.Add("PopulatePropMenu", "SupinePandora43_Hook_SpawnList", function()
local contents = {}
table.insert(
contents,
{
type = "header",
text = "Hello World!"
}
)
table.insert(
contents,
{
type = "model",
model = "models/props_c17/oildrum001.mdl"
}
)
if CustomizableWeaponry... | nilq/small-lua-stack | null |
if not AI then
return false
end
local Stack = {}
local PriorityQueue = {}
local function lessThan(a, b) return a < b end
-- Stack
function Stack:New()
local stack = {}
setmetatable(stack, {__index = Stack})
return stack
end
function Stack:Push(v)
table.insert(self, v)
end
function Stack:Pop()
local val = self... | nilq/small-lua-stack | null |
local dr = require "deadReckoner"
local loc= Locus.new(0,0,0)
local function testBearTo()
dr.bearTo(dr.PORT)
assert(dr.heading==dr.PORT,
"should be PORT now; instead"..
" it's ".. dr.WAYS[dr.heading] )
dr.bearTo(dr.FORE)
assert(dr.heading==dr.FORE,
"should be FORE; instead"..
" it's "... | nilq/small-lua-stack | null |
function EFFECT:Init(data)
self.Origin = data:GetOrigin()
local emitter = ParticleEmitter( self.Origin + Vector( 0, 0, 16 ) )
local light = DynamicLight(self:EntIndex())
if (light) then
light.Pos = self:GetPos()
light.r = 225
light.g = 155
light.b = 200
... | nilq/small-lua-stack | null |
local vgc = vgui.Create
function CreateWindowFrame(parent)
parent = parent or nil
local window = vgc("DFrame", parent)
window.lblTitle:SetFont("VBFONT_DERMANORMAL")
window.lblTitle:SetTextColor(COLOR_WHITE)
function window:Paint()
draw.RoundedBoxEx(5, 0, 25, window:GetWide(), window:GetTall() - 25, COLOR_... | nilq/small-lua-stack | null |
return {
shocker = {
areaofeffect = 192,
avoidfeature = 0,
avoidfriendly = 0,
collidefriendly = 0,
craterboost = 0,
cratermult = 0,
edgeeffectiveness = 0.5,
explosiongenerator = "custom:FLASHSMALLBUILDING",
heightboostfactor = 2.8,
impulseboost = 0.5,
impulsefactor = 0.5,
name = "ShockerHeavyCa... | nilq/small-lua-stack | null |
app:DoAction("App_CustomizeHotkeys", {})
| nilq/small-lua-stack | null |
local Frame = script.Parent
local NotesButton = Frame:WaitForChild("HomeScreenApps"):WaitForChild("Notes")
local BackButton = Frame.NotesPage:WaitForChild("Back")
local SaveButton = Frame.NotesPage:WaitForChild("Save")
local Notes = Frame.NotesPage:WaitForChild("Notes")
local Notes = Frame.NotesPage:WaitForChild("Notes... | nilq/small-lua-stack | null |
---------------------------------------------------------------------------------------------------
-- Item: Use Case: request is allowed by policies but app is already subscribed for specified parameter
--
-- Requirement summary:
-- [SubscribeVehicleData] As a mobile app wants to send a request to subscribe for specif... | nilq/small-lua-stack | null |
mass_res = {
cast = function(player)
check = player:getObjectsInArea(BL_PC)
if (#check > 0) then
for i = 1, #check do
if (check[i].state == 1) then
check[i].state = 0
check[i].health = check[i].maxHealth
check[i].magic = check[i].maxMagic
check[i]:sendStatus()
check[i]:updateState()... | nilq/small-lua-stack | null |
--[[
Copyright 2020 Samarth Ramesh & wsor4035
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, dis... | nilq/small-lua-stack | null |
object_tangible_deed_vehicle_deed_havoc_ship_deed = object_tangible_deed_vehicle_deed_shared_havoc_ship_deed:new {
}
ObjectTemplates:addTemplate(object_tangible_deed_vehicle_deed_havoc_ship_deed, "object/tangible/deed/vehicle_deed/havoc_ship_deed.iff")
| nilq/small-lua-stack | null |
local function getFirework()
local firework = {}
firework.isInitialized = false
firework.x = nil
firework.y = nil
firework.particles = {}
firework.totalParticles = 120
firework.particlesSpeedRange = {min = 100, max = 300}
firework.radius = 100
firework.rangeX = {min = firework.radius... | nilq/small-lua-stack | null |
local file = io.open("GLOBAL rev4.lua")
local content = file:read("*a")
io.close(file)
-- note: there is event skip at event 511 in rev4
local replacements =
{
["evt%.CanShowTopic%[(%d+)%]"] = eventNumberReplacements("evt.CanShowTopic[%d]"),
["evt%.global%[(%d+)%]"] = eventNumberReplacements("evt.global[%d]"),
["e... | nilq/small-lua-stack | null |
GM.Name = "Cataclysm"
GM.Author = "Thendon.exe"
GM.Website = "sneaky.rocks"
DeriveGamemode( "base" )
_G.TEAM_BLACK = 1
_G.TEAM_WHITE = 2
include("sh_loader.lua")
function GM:CreateTeams()
team.SetUp( TEAM_BLACK, "Black", _COLOR.BLACK, true)
team.SetClass( TEAM_BLACK, { "player_earth", "player_fire", "player... | nilq/small-lua-stack | null |
--
-- Author: zen.zhao88@gmail.com
-- Date: 2015-12-03 16:54:06
--
local Error = class("Error",b3.Action)
function Error:onTick(tick)
return b3.Com.ERROR
end
return Error | nilq/small-lua-stack | null |
--[[
Made by toonrun123V2
9.12.2021 (m/d/y).
Custom physics (not newton's law)
understand uself.
SCALE-ONLY
]]
local tweenservice = game:GetService("TweenService")
local mouse:Mouse = game.Players.LocalPlayer:GetMouse()
local info = TweenInfo.new(0.1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0)
l... | nilq/small-lua-stack | null |
local Ansi = setmetatable({ }, {
__call = function(self, ...)
local str = '\027['
for k,v in ipairs({ ...}) do
if k == 1 then
str = str .. v
else
str = str .. ';' .. v
end
end
return str .. 'm'
end
})
Ansi.codes = {
reset = 0,
white = 1,
orange ... | nilq/small-lua-stack | null |
-- gperftools.cpu
local ffi = require('ffi')
local status, profiler = pcall(ffi.load, 'profiler')
if not status then
error('Failed to load libprofiler. Please install gperftools!')
end
ffi.cdef[[
int ProfilerStart(const char* fname);
void ProfilerStop();
void ProfilerFlush();
]]
local function start... | nilq/small-lua-stack | null |
GuildGearRulesCache = GuildGearRules:NewModule("GuildGearRulesCache", "AceEvent-3.0")
function GuildGearRulesCache:Initialize(core)
self.Core = core;
self.Queue = {};
self.Queue = GuildGearRulesTable:New{ };
self:RegisterEvent("GET_ITEM_INFO_RECEIVED", "OnItemInfoReceived");
self.Core:Log(tostrin... | nilq/small-lua-stack | null |
-- SPDX-License-Identifier: BSD-3-Clause
--
-- Copyright 2016 Raritan Inc. All rights reserved.
-- Print some information from the PDU data model.
-- load the "Pdu" library and all dependencies
require "Pdu"
-- Acquire the single instance of the Pdu interface
local pdu = pdumodel.Pdu:getDefault()
-- Get and print s... | nilq/small-lua-stack | null |
local PluginRoot = script:FindFirstAncestor("PicularPlugin")
local Components = PluginRoot.Components
local Roact: Roact = require(PluginRoot.Packages.Roact)
local Controls = require(Components.Controls)
local e = Roact.createElement
local Component = Roact.PureComponent:extend("PicularSearchBar")
function Compone... | nilq/small-lua-stack | null |
addEvent("onPlayerAcceptTrade",true)
addEventHandler("onPlayerAcceptTrade",root,function(koszt)
local character = getElementData(source,"character")
if (not character or not character.id) then
outputDebugString("Zadanie onPlayerAcceptTrade dla niezalogowanego gracza.")
return false
end
if (not getPlayerMoney(so... | nilq/small-lua-stack | null |
local lua = require "lapis.lua"
local lapis = require "lapis.init"
local lapis_application = require "lapis.application"
local respond_to = lapis_application.respond_to
local yield_error = lapis_application.yield_error
local capture_errors = lapis_application.capture_errors
local lapis_validate = require "lapis.valid... | nilq/small-lua-stack | null |
-- Language Server Protocol configuration.
local utils = require 'utils'
utils.debug('S LSP configuration sequence started')
require('lsp.bash')
require('lsp.lua')
require('lsp.python')
require('lsp.rust')
require('lsp.common').lsputils()
utils.debug('S LSP configuration sequence finished')
| nilq/small-lua-stack | null |
local PANEL
--[[---------------------------------------------------------------------------
Hitman menu
---------------------------------------------------------------------------]]
PANEL = {}
AccessorFunc(PANEL, "hitman", "Hitman")
AccessorFunc(PANEL, "target", "Target")
AccessorFunc(PANEL, "selected", "Selected")
... | nilq/small-lua-stack | null |
--[[
--------------------------------------------------
Update Checker for Rainmeter
v6.1.0
By raiguard
Implements 'semver.lua' by kikito (https://github.com/kikito/semver.lua)
Implements 'JSON.lua' by rxi (https://github.com/rxi/json.lua)
--------------------------------------------------
Release Notes:
v6.1.0 - 2... | nilq/small-lua-stack | null |
local theme = {}
theme.font = "Terminus 9"
--theme.bg_normal = "#222222"
theme.bg_normal = "#CCCCCC"
theme.bg_focus = theme.bg_normal
theme.bg_urgent = "#ff0000"
theme.bg_minimize = "#444444"
theme.bg_systray = theme.bg_normal
theme.fg_normal = "#000000"
theme.fg_focus = "#fff... | nilq/small-lua-stack | null |
local skinSwapTrigger = {}
skinSwapTrigger.name = "SkinModHelper/SkinSwapTrigger"
skinSwapTrigger.placements = {
{
name = "normal",
data = {
width = 16,
height = 16,
skinId = "Default";
revertOnLeave = false;
}
}
}
return skinSwapTrigger | nilq/small-lua-stack | null |
object_tangible_furniture_decorative_event_lifeday07_banner_kit = object_tangible_furniture_decorative_shared_event_lifeday07_banner_kit:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_decorative_event_lifeday07_banner_kit, "object/tangible/furniture/decorative/event_lifeday07_banner_kit.iff")
| nilq/small-lua-stack | null |
-- Minimal controller draw ent. Inherit and override "guideline" function to control pointer line display
namespace "standard"
local Hand = classNamed("Hand", Ent)
local desktop = lovr.headset.getDriver() == "desktop"
local platform = require "skategirl.engine.platform"
-- If first value is false, no guideline. If ... | nilq/small-lua-stack | null |
local cmd = vim.cmd
local global_theme = "themes/" .. vim.g.nvchad_theme
local colors = require(global_theme)
local white = colors.white
local darker_black = colors.darker_black
local black = colors.black
local black2 = colors.black2
local one_bg = colors.one_bg
local one_bg2 = colors.one_bg2
local grey = colors.grey... | nilq/small-lua-stack | null |
local pl
local create_retry
local trex, pol, apikeys
local arb
local dump_orderbook = function (o, name, depth)
local min = math.min
io.write (string.format ("[%s - %s]\n", name, tostring(o)))
io.write (string.format ("%12s %12s %14s %13s\n",
"sell price", "sell amount",
... | nilq/small-lua-stack | null |
-- Copy of the bot_nevermore.lua. It is used in the recording mode and
-- Dota 2 client requires the files to have this structure.
require(GetScriptDirectory() .. '/util/json')
local Observation = require(GetScriptDirectory() .. '/agent_utils/observation')
local Reward = require(GetScriptDirectory() .. '/agent_utils/... | nilq/small-lua-stack | null |
local function make(p)
if p > 10 then
local n = p + 1
return {
incr = function(i) n = n + i end,
mult = function(i) n = n * i end,
get = function() return n end,
}
else
local n = 2*p
return {
incr = function(i) n = n + i end,
mult = function(i) n = n * i end,
get = function() return n en... | nilq/small-lua-stack | null |
--[[
animationUI.lua
Copyright (C) 2016 Kano Computing Ltd.
License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPLv2
]]--
local CircleWipeIn = require 'game.ui.animation.circleWipeIn'
local CircleWipeOut = require 'game.ui.animation.circleWipeOut'
local RectangleWipeIn = require 'game.ui.animation.rectangleWipeIn... | nilq/small-lua-stack | null |
game.ReplicatedStorage.Click.OnServerEvent:connect(function(Player,Target)
if Target:IsDescendantOf(script.Parent) then
game.ReplicatedStorage.Boom:FireClient(Player,script.Parent)
game.ServerStorage.AwardItem:Invoke(Player,501,1)
end
end) | nilq/small-lua-stack | null |
if (system.getPreference('locale', 'identifier') == 'pt_BR') then
return {
applicationName = 'JUMRUN',
developedByTitle = 'Desenvolvido por:',
developerName = 'AFG',
developerGithubLink = 'github.com/arturfgirao',
developerEmail = 'arturfgirao@gmail.com',
designedByTi... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Phomiuna_Aqueducts
-- NM: Tres Duendes
-----------------------------------
function onMobDeath(mob, player, isKiller)
end
function onMobDespawn(mob)
mob:setRespawnTime(math.random(75600, 86400)) -- 21 to 24 hours
end
| nilq/small-lua-stack | null |
local completeLifecycleOrderTests = require(script:FindFirstAncestor("lifecycle").completeLifecycleOrderTests)
return function()
describe("never run", function()
it("SHOULD FAIL", function()
fail("This should have never ran. Check testNamePattern")
end)
end)
describe("super specific describe block"... | nilq/small-lua-stack | null |
local switch = {
[1] = function()
LoadStory(4060101,function() end)
end
}
if module.TeamModule.GetTeamInfo().id > 0 then
local stage = module.CemeteryModule.GetTeam_stage(106)
stage = stage + 1
--ERROR_LOG("STAGE:",stage)
local f = switch[stage]
print("------------",stage)
if(f)... | nilq/small-lua-stack | null |
-- Aaahhh (screams of terror, not a yawn)
function color (r, g, b)
return {r, g, b}
end
function fromFile (filename)
-- file extensions of different length
filetype3 = string.sub(filename, -4)
filetype4 = string.sub(filename, -5)
filetype5 = string.sub(filename, -6)
filetype7 = string.sub(filename, -8)
-- "l... | nilq/small-lua-stack | null |
local luaunit = require("luaunit")
require("eos_exception_u4")
TestEosExceptionU4 = {}
function TestEosExceptionU4:test_eos_exception_u4()
luaunit.assertError(EosExceptionU4.from_file, "src/term_strz.bin")
end
| nilq/small-lua-stack | null |
--
-- Author: Alexey Melnichuk <mimir@newmail.ru>
--
-- Copyright (C) 2013-2014 Alexey Melnichuk <mimir@newmail.ru>
--
-- Licensed according to the included 'LICENCE' document
--
-- This file is part of lua-lzqm library.
--
return require "lzmq.impl.threads"("lzmq") | nilq/small-lua-stack | null |
function MineSection.OnInit()
end
function MineSection.OnEnable()
end
function MineSection.Update(dt)
local moveSpeed = this.manager.moveSpeed + this.manager.boostSpeed;
GameObject.TranslateZ(-dt * moveSpeed);
if GameObject.GetTransformZ() < -9.0 then
this.GameObject:Delete();
end
end
function Min... | nilq/small-lua-stack | null |
function DarknessMinion_Corruption(pUnit, Event)
if pUnit:GetHealthPct() < 70 then
pUnit:FullCastSpell(25419)
pUnit:RegisterEvent("DarknessMinion_Shadowbolt", 1000, 0)
end
end
function DarknessMinion_Shadowbolt(pUnit, Event)
if pUnit:GetHealthPct() < 30 then
pUnit:FullCastSpell(29640)
end
end
function DarknessMinion_... | nilq/small-lua-stack | null |
require 'Util'
require 'Constants'
require 'Menu'
require 'Music'
require 'Skill'
require 'Triggers'
Battle = class('Battle')
GridSpace = class('GridSpace')
PULSE = 0.4
function GridSpace:initialize(sp)
self.occupied = nil
if sp then
self.occupied = sp
end
self.assists = {}
self.n_assis... | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.