content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
AuctionatorShoppingTabRecentsContainerMixin = {}
function AuctionatorShoppingTabRecentsContainerMixin:OnLoad()
self.Tabs = {self.ListTab, self.RecentsTab}
self.numTabs = #self.Tabs
Auctionator.EventBus:RegisterSource(self, "List Search Button")
Auctionator.EventBus:Register(self, {
Auctionator.ShoppingLis... | nilq/small-lua-stack | null |
-- local DeskView = class("DeskView", function()
-- bg = ccui.ImageView:create("DowneyTang/koprokdice/bet/koprok_dice_bet.png")
-- return bg
-- end)
local DeskView = class("DeskView",cc.load("boyaa").mvc.BoyaaView);
local BehaviorExtend = cc.load("boyaa").behavior.BehaviorExtend;
BehaviorExtend(DeskView);
f... | nilq/small-lua-stack | null |
FrenchRP.addPlayerGesture = FrenchRP.stub{
name = "addPlayerGesture",
description = "Add a player gesture to the FrenchRP animations menu (the one that opens with the keys weapon.). Note: This function must be called BOTH serverside AND clientside!",
parameters = {
{
name = "anim",
... | nilq/small-lua-stack | null |
--
function init()
self.energyCost = config.getParameter("energyCost", 10)
self.initialEnergyCost = config.getParameter("initialEnergyCost", self.energyCost)
self.drainBoost = 0
end
function update(args)
--
if not self.specialLast and args.moves["special"] == 1 then
tryActivate()
end
self.spec... | nilq/small-lua-stack | null |
--@name cpuTime Example
--@author INP - Radon + Sparky
--@client
-- This function helps us check if we can run.
-- Use a mixture of quotaUsed() and quotaAverage()
-- quotaUsed() returns the value of the current buffer.
-- quotaAverage() gives the cpuTime average across the whole buffer.
-- Your chip will throw an erro... | nilq/small-lua-stack | null |
-- a version of pairs()-like iteration over a table,
-- which doesn't leak a reference to the table itself.
-- this can be useful to prevent unwanted modification to the table.
-- next :: Table -> Maybe Key -> Maybe (Key, Value)
local nextkey = next
-- pairs :: Table -> Iterator (Key, Value)
local f = function() retu... | nilq/small-lua-stack | null |
local collisionFixtures = {}
function init(b2worldProxy)
end
function loadMapObject(objectName, mapObject)
end
function getFixturesInterestedInCollisions()
return collisionFixtures
end
function update()
end
function beginCollision(b2Contact)
end
function endCollision(b2Contact)
end
| nilq/small-lua-stack | null |
--# Monster converted using Devm monster converter #--
local mType = Game.createMonsterType("Draken Elite")
local monster = {}
monster.description = "a draken elite"
monster.experience = 4200
monster.outfit = {
lookType = 362,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0... | nilq/small-lua-stack | null |
--[[
Author: tochonement
Email: tochonement@gmail.com
12.03.2021
--]]
function gfconsole.show()
if IsValid(gfconsole.frame) then
return
end
gfconsole.frame = vgui.Create("GFConsole")
end
function gfconsole.reload_frame()
local frame = gfconsole.frame
if IsValid(frame) then
fra... | nilq/small-lua-stack | null |
return require('lib.oop.generated.timerdialog')
| nilq/small-lua-stack | null |
local ObjectManager = require("managers.object.object_manager")
buff = ScreenPlay:new {
numberOfActs = 1,
questString = "buff",
questdata = Object:new {
activePlayerName = "initial",
}
}
registerScreenPlay("buff", true)
function buff:start()
self:spawnActiveAreas()
end
function buff:spaw... | nilq/small-lua-stack | null |
//-----------------------------------------------------------------------------
// Name: CC_StringToChars
// Desc: Converts a string or a single character into the appropriate character
// codes, can output as a list of codes or a packet for the E-Gate.
//------------------------------------------------------... | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- 81-717 Moscow controller panel
--------------------------------------------------------------------------------
-- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o.
-- Contains proprietary code. See license.txt for add... | nilq/small-lua-stack | null |
require 'torch'
require 'image'
require 'paths'
require 'nn'
require 'inn'
require 'image'
require 'xlua'
require 'nn'
require 'loadcaffe'
local gp = require 'gpath'
local nn_utils = {}
nn_utils.mean = torch.Tensor({129.67, 114.43, 107.26})
nn_utils.nmean = nn_utils.mean:clone():div(255)
----------... | nilq/small-lua-stack | null |
local exp_requirement_for_levelup={}
for i=1,100 do
exp_requirement_for_levelup[i]=200*i
end
local player=class()
function player:ctor()
self.class_name="player"
self.name="angus"
self.icon=nil
self.money=2000
self.level=1
self.exp=0
self.story=0
self.ship=_ship[1].new()
self.itembox={[... | nilq/small-lua-stack | null |
local null_ls = require("null-ls")
local helpers = require("null-ls.helpers")
return helpers.make_builtin({
name = "sqlfluff",
meta = {
url = "https://github.com/sqlfluff/sqlfluff",
description = "A SQL linter and auto-formatter for Humans",
notes = {
"SQLFluff needs a manda... | nilq/small-lua-stack | null |
require "common/class"
require "Entity"
Camera = buildClass(Entity)
function Camera:_init( )
Entity._init(self)
-- auto-calculated values
self.scale = 1
self.offset = {}
self.offset.x = 0
self.offset.y = 0
self.width = 1
self.height = 1
self.subject = nil
self.bound = {}
self.bound.xmin = 0
s... | nilq/small-lua-stack | null |
------------------------
-- Graphics functions.
-- @util graphics
local graphics = {}
local lg = love.graphics
-- http://love2d.org/forums/viewtopic.php?f=4&t=77599
function graphics.roundRectangle(mode, x, y, w, h, rd, s)
local r, g, b, a = lg.getColor()
local rd = rd or math.min(w, h)/4
local s = s or 32
local ... | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- ZASM2 compatible syntax
--------------------------------------------------------------------------------
-- Syntax lookup for vector definitions
local VectorSyntax = {
FLOAT = { {} },
SCALAR = { {} },
VECTOR1F = { {"x"} }... | nilq/small-lua-stack | null |
ESX = nil
local PlayerLoaded = false
vip = false
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
PlayerLoaded = true
ESX.PlayerData = ESX.GetPlayerData()
end)
RegisterNetEvent('esx:playerLoaded')
AddEventHandler('esx:pla... | nilq/small-lua-stack | null |
include("shared.lua")
-- Define GM12 fonts for compatibility
surface.CreateFont("DefaultBold", {
font = "Tahoma",
size = 13,
weight = 1000
})
surface.CreateFont("TabLarge", {
font = "Tahoma",
size = 13,
weight = 700,
shadow = true,
antialias = false
})
surface.CreateFont("Trebuchet22", {
font = "Trebuchet MS"... | nilq/small-lua-stack | null |
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by heyqule.
--- DateTime: 9/6/2021 1:34 AM
---
local Table = require('__stdlib__/stdlib/utils/table')
local ErmConfig = require('__enemyracemanager__/lib/global_config')
local ErmForceHelper = require('__enemyracemanager__/lib/helper/force_helper')
... | nilq/small-lua-stack | null |
local image_component = {
image_component = "image",
load_image = function(self, name)
self._image = love.graphics.newImage(name)
self._image:setFilter("nearest", "nearest")
end,
draw_image = function(self, x, y)
love.graphics.draw(self._image, x, y)
end,
image_width = function(self) return se... | nilq/small-lua-stack | null |
-- Run this test with :source %
local idx = 1
local cases = {
{
prompt = "Complete file: ",
completion = "file",
},
{
prompt = "Complete cmd: ",
completion = "command",
},
{
prompt = "Complete custom: ",
completion = "custom,CustomComplete",
},
{
prompt = "Complete customlist:... | nilq/small-lua-stack | null |
local function doTransformCoalBasins(cbPos)
local tile = Position(cbPos):getTile()
if tile then
local thing = tile:getItemById(1485)
if thing then
thing:transform(1484)
end
end
end
local config = {
[0] = 50015,
[1] = 50016,
[2] = 50017,
[3] = 50018,
[4] = 50019,
coalBasins = {
{x = 32214, y = 31850... | nilq/small-lua-stack | null |
local LoginSelectRoleView = BaseClass()
function LoginSelectRoleView:DefaultVar( )
require("Game/Login/LoginSceneBgView"):SetActive(true)
return {
UIConfig = {
prefab_path = "Assets/AssetBundleRes/ui/login/LoginSelectRoleView.prefab",
canvas_name = "Normal",
components = {
{UI.HideOtherView},
{UI.... | nilq/small-lua-stack | null |
function orcworg_OnCombat(pUnit, event)
pUnit:RegisterEvent("orcworg_Transform",1000,0)
end
function orcworg_Transform(pUnit, event)
if pUnit:GetHealthPct() < 45 then
pUnit:RemoveEvents()
pUnit:FullCastSpell(14202)
pUnit:SetModel(11419)
pUnit:SetScale(2)
end
end
function orcworg_OnDied(pUnit, event)
pUnit:Remove... | nilq/small-lua-stack | null |
return {
dice = {
grims = 0,
tomes = 0,
bonus = 0
},
short_title = "",
title_placement = "after",
difficulty_levels = {
"easy",
"normal",
"hard",
"harder",
"hardest",
"survival_hard",
"survival_harder",
"survival_hardest"
},
incompatible_with_all = false,
com... | nilq/small-lua-stack | null |
return {'aan','aanaarden','aanaarding','aanaardploeg','aanbakken','aanbaksel','aanbedene','aanbeeld','aanbeeldsblok','aanbehoren','aanbelanden','aanbelang','aanbelangen','aanbellen','aanbenen','aanberming','aanbesteden','aanbesteder','aanbesteding','aanbestedingsbeleid','aanbestedingsprocedure','aanbestedingsregel','aa... | nilq/small-lua-stack | null |
-- Copyright (c) 2021 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
local factory = require "game.rules.character.factory"
return {
actions = require "game.rules.character.actions",
attributes = require "game.rules.character.attributes",
... | nilq/small-lua-stack | null |
#!/usr/bin/env texlua
-- Build script for "biblatex-ext" files
-- Identify the bundle and module
module = "biblatex-ext"
unpackfiles = { }
-- Install biblatex style files and use these as the sources
installfiles = {"*.cbx", "*.bbx", "*.def", "*.sty", "blxextdoiapi.lua"}
sourcefiles = installfiles
typesetfiles = ... | nilq/small-lua-stack | null |
-- Author : Bobby
-- Create Date : 8/5/2012 4:28:09 PM
BobsActionBars = BobbyCode:CreateFrame("BobsActionBarsFrame", UIParent);
local UnitEventHandlers = {};
function BobsActionBars:Initialize()
for eventname, _ in pairs(UnitEventHandlers) do
BobsActionBars:RegisterEvent(eventname);
end
BobsActionBars:C... | nilq/small-lua-stack | null |
-----------------------------------------------------------------------------
-- configuration values which you can adjust according to your liking
-----------------------------------------------------------------------------
-- set to false if you do not want to have any villages spawning
mg_villages.ENABLE_VILLAGES =... | nilq/small-lua-stack | null |
object_tangible_furniture_all_uber_desk_map_table = object_tangible_furniture_all_shared_uber_desk_map_table:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_all_uber_desk_map_table, "object/tangible/furniture/all/uber_desk_map_table.iff")
| nilq/small-lua-stack | null |
local Plugin = SS.Plugins:New("Block")
// When player spawns
function Plugin.PlayerSpawn(Player)
Player:SetCollisionGroup(11)
end
Plugin:Create() | nilq/small-lua-stack | null |
the_curse_of_agony_the_curse_modifier = class({})
function the_curse_of_agony_the_curse_modifier:OnCreated( kv )
self.duration = self:GetAbility():GetSpecialValueFor("duration")
end
function the_curse_of_agony_the_curse_modifier:GetState( kv )
self.duration = self:GetAbility(... | nilq/small-lua-stack | null |
local example = {}
example.title = "Slider"
example.category = "Object Demonstrations"
function example.func(loveframes, centerarea)
local frame = loveframes.create("frame")
frame:setName("Slider")
frame:setSize(300, 275)
frame:centerWithinArea(unpack(centerarea))
local slider1 = loveframes.create("slider", ... | nilq/small-lua-stack | null |
local M = {}
function M.get_colors()
return require("catppuccin.core.color_palette")
end
return M
| nilq/small-lua-stack | null |
-- Note -- the prime factorization really needs to be made
-- much more efficient. This is good enough for this problem
-- but it lags far behind Python (sympy.factorint).
--
-- It would help if the division only used prime numbers
-- instead of trying every odd value
--
-- I improved it in fermat2.lua which uses prim... | nilq/small-lua-stack | null |
function love.load()
math.randomseed(os.time())
highscores = {}
love.graphics.setDefaultFilter("linear", "nearest")
require "load.rpc"
require "load.graphics"
require "load.fonts"
require "load.sounds"
require "load.bgm"
require "load.save"
require "load.bigint"
require "load.version"
loadSave()
require "f... | nilq/small-lua-stack | null |
--ナチュル・レディバグ
function c19605133.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(19605133,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetRange(LOCATION_GRAVE)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetConditio... | nilq/small-lua-stack | null |
depends_on("Dependency/5.6")
| nilq/small-lua-stack | null |
deepboof = {}
local function log10(n)
if math.log10 then
return math.log10(n)
else
return math.log(n) / math.log(10)
end
end
-- Converts the confusion matrix into an easy to parse string
function deepboof.confusionToString( confusion )
confusion:updateValids()
local str = {''}
local ncla... | nilq/small-lua-stack | null |
local skynet = require "skynet"
local mt19937 = require "extlib.mt19937"
skynet.start(function()
-- random seed
mt19937.init(tostring(os.time()):reverse():sub(1, 6))
-- random integer of range [1, 1000)
for i = 1, 10 do
print(mt19937.randi(1, 1000))
end
-- random real of range [0, 1)
... | nilq/small-lua-stack | null |
gl.setup(1024, 768)
local interval = 5
local json = require "json"
util.loaders.json = function(filename)
return json.decode(resource.load_file(filename))
end
util.auto_loader(_G)
local stats = {
function ()
bold:write(10, 150, "GSM", 150, 1,1,1,1)
regular:write(10, 350, gsm.active_subscrib... | nilq/small-lua-stack | null |
--- fs operations implemented with third-party tools for Windows platform abstractions.
-- Download http://unxutils.sourceforge.net/ for Windows GNU utilities
-- used by this module.
local tools = {}
local fs = require("luarocks.fs")
local dir = require("luarocks.dir")
local cfg = require("luarocks.core.cfg")
local ... | nilq/small-lua-stack | null |
local function test1()
local function plus(a, b)
return a + b
end
local function varargs(a, ...)
return a + plus(...)
end
return varargs(1, 2, 3) == 6
end
local function test2()
local function varargs(a, b, ...)
local i, j, k, l = a, b, ...
return i + j + k + l
... | nilq/small-lua-stack | null |
local K, _, L = unpack(KkthnxUI)
local Module = K:GetModule("AurasTable")
if K.Class ~= "ROGUE" then
return
end
local list = {
["Player Aura"] = { -- 玩家光环组
{ AuraID = 1784, UnitID = "player" }, -- 潜行
{ AuraID = 115191, UnitID = "player" }, -- 潜行
{ AuraID = 2983, UnitID = "player" }, -- 疾跑
{ AuraID = 36554, ... | nilq/small-lua-stack | null |
local bmp_exporter = require "bmp_exporter"
local CHIP_PICTURE_DEFS = {}
local NUM_COLORS_PER_PALETTE = 16
function convert_gba_to_argb(gba_color)
local red = bit.lshift(bit.band(gba_color, 31), 3)
local green = bit.lshift(bit.band(bit.rshift(gba_color, 5), 31), 3)
local blue = bit.lshift(bit.band(bit.rs... | nilq/small-lua-stack | null |
local Settings = {
--Should the scoreboard draw wanted level?
["WantedStars"] = false,
--Should the scoreboard draw player ID?
["PlayerID"] = true,
--Should the scoreboard draw voice indicator?
["VoiceIndicator"] = true,
--Display time in milliseconds
["DisplayTime"] = 5000,
--Keys that will a... | nilq/small-lua-stack | null |
turtles = {}
local modpath = minetest.get_modpath("turtle")
-- Database handler (for turtles and floppies)
dofile(modpath .. "/db.lua")
-- Initial computer state: bootloader
dofile(modpath .. "/computer_memory.lua")
-- Data for the forth floppy, created from forth.fth file by f.py
dofile(modpath .. "/forth_floppy.l... | nilq/small-lua-stack | null |
local row_mgmt = system_load("wm.lua")() -- 'mini-WM'
system_load("cells/shared/base.lua")() -- basic interface for a cell
return
function(anchor, conf)
local ctx = row_mgmt(anchor, conf)
ctx:add_cell_type("cli", system_load("cells/cli.lua")())
ctx:add_cell_type("terminal", system_load("cel... | nilq/small-lua-stack | null |
-------------------------------------------------
-- Controller hints/input handler for ConsolePort
-------------------------------------------------
-- This file manages support for controller input
-- using ConsolePort, providing input handler and
-- displaying on-screen hints.
--------------------------------------... | nilq/small-lua-stack | null |
--
-- hammerspoon.lua
-- hammerspoon basic keybindings
--
local helpers = require("helpers")
local hyper = require("modules.hyper")
-- =============================================================================
-- Definitions
-- =============================================================================
-- reloa... | nilq/small-lua-stack | null |
-- Helper module for 200_to_210 migration operations.
--
-- Operations are versioned and specific to a migration so they remain
-- fixed in time and are not modified for use in future migrations.
--
-- If you want to reuse these operations in a future migration,
-- copy the functions over to a new versioned module.
l... | nilq/small-lua-stack | null |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
ESX.RegisterServerCallback('esx_roubarnpc:giveMoney', function(source, callback)
local xPlayer = ESX.GetPlayerFromId(source)
local money = math.random(Config.MinMoney, Config.MaxMoney)
xPlayer.addMoney(money)
callback(money)
en... | nilq/small-lua-stack | null |
local require = using("BodyEditor.Script")
local CCScene = require("CCScene")
local oVec2 = require("oVec2")
local oContent = require("oContent")
local CCScheduler = require("CCScheduler")
local oWorld = require("oWorld")
local CCDirector = require("CCDirector")
local CCNode = require("CCNode")
local CCMenu = require("... | nilq/small-lua-stack | null |
-- Copyright (c) Jérémie N'gadi
--
-- All rights reserved.
--
-- Even if 'All rights reserved' is very clear :
--
-- You shall not use any piece of this software in a commercial product / service
-- You shall not resell this software
-- You shall not provide any facility to install this particular software in a c... | nilq/small-lua-stack | null |
--scripts/modtools/transform-unit.lua
--author expwnent
--based on shapechange by Putnam
--[[=begin
modtools/transform-unit
=======================
Transforms a unit into another unit type, possibly permanently.
Warning: this will crash arena mode if you view the unit on the
same tick that it transforms. If ... | nilq/small-lua-stack | null |
function onCreate()
-- background shit
makeLuaSprite('black', 'black', -600, -300);
setScrollFactor('black', 0.9, 0.9);
addLuaSprite('black', false);
close(true); --For performance reasons, close this script once the stage is fully loaded, as this script won't be used anymore after loading the stage
end | nilq/small-lua-stack | null |
object_tangible_food_spice_spice_yarrock_01 = object_tangible_food_spice_shared_spice_yarrock_01:new {
}
ObjectTemplates:addTemplate(object_tangible_food_spice_spice_yarrock_01, "object/tangible/food/spice/spice_yarrock_01.iff")
| nilq/small-lua-stack | null |
--[[
Copyright (c) 2019 igor725, scaledteam
released under The MIT license http://opensource.org/licenses/MIT
]]
local sc = {
global = true
}
function sc:load()
registerSvPacket(0x1A, '>bbc64hhhhhhhhhh')
registerSvPacket(0x1B, 'bb')
end
function sc:create(player, id, label, p1, p2, r, g, b, a)
if not player:is... | nilq/small-lua-stack | null |
-- not sure how to approach this
local m = {}
m.data = {
["CVarDocumentation.lua"] = {
GetCVar = {ParamType = "Arguments", Index = 1, Type = "CVar"},
GetCVarBitfield = {ParamType = "Arguments", Index = 1, Type = "CVar"},
GetCVarBool = {ParamType = "Arguments", Index = 1, Type = "CVar"},
GetCVarDefault = {Para... | nilq/small-lua-stack | null |
--[[
Copyright (c) 2014 Francisco Zamora-Martinez (pakozm@gmail.com)
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 ... | nilq/small-lua-stack | null |
--- Secure wrapper for raw cdata buffers.
--
-- Note: This is very experimental.
--
-- See `RawBuffer`.
--
-- @module dslib:raw_buffer
-- TODO: fill, memcpy, memmove, write_and_append_buf
-- TODO: string buffers (read and copy from)
-- TODO: fixed-size buffer with faster, non-atomar functions
local load_vars = ...
l... | nilq/small-lua-stack | null |
local t = ...;
assert( type(t) == "table" );
return t .. {
InitCommand=NOTESKIN:GetMetricA('ReceptorArrow', 'InitCommand');
MissCommand=NOTESKIN:GetMetricA('ReceptorArrow', 'MissCommand');
NoneCommand=NOTESKIN:GetMetricA('ReceptorArrow', 'NoneCommand');
HitMineCommand=NOTESKIN:GetMetricA('ReceptorArrow', 'HitMineC... | nilq/small-lua-stack | null |
function apply_target(keys)
local caster = keys.caster
local modifier = "berserker_ignite_target"
local ability = keys.ability
local level = (ability:GetLevel()-1)
local duration_d = ability:GetLevelSpecialValueFor("duration_target", level)
local target = keys.target
ability:ApplyDataDrivenModifier(caster, targ... | nilq/small-lua-stack | null |
--Designed by Donrskbb--
Config = {}
Config.Locale = 'en' --EN is the Dutch Translated Version. Would you like the English Version,replace the EN with EN-EN version and rename it--
Config.green = 56108
Config.grey = 8421504
Config.red = 16711680
Config.orange ... | nilq/small-lua-stack | null |
---------------------------------------------------------------------------
-- DPI detection code. --
---------------------------------------------------------------------------
local capi = {screen = screen}
local gtable = require("gears.table")
local grect = re... | nilq/small-lua-stack | null |
if AkDebugLoad then print("[#Start] Loading ak.data.AkSlotNamesParser ...") end
local SlotNamesParser = {}
local function isModuleAvailable(name)
if package.loaded[name] then
return true
else
for _, searcher in ipairs(package.searchers) do
local loader = searcher(name)
i... | nilq/small-lua-stack | null |
local local0 = 0.3
local local1 = 0.3 - local0
local local2 = 0.3 - local0
local local3 = 0.3 - local0
local local4 = 0.3 - local0
local local5 = 3.4 - local0
local local6 = 0.3 - local0
local local7 = 4.2 - local0
local local8 = 0.3 - local0
local local9 = 0.3 - local0
local local10 = 0.3 - local0
local local11 = 6.6 ... | nilq/small-lua-stack | null |
Variable = class()
function Variable:GetValue()
return -1;
end
function Variable:GetMinValue()
return 0;
end
function Variable:GetMaxValue()
return -1;
end
function Variable:OnActivate(variableId)
--Debug.Log(variableId);
--if( self.VariableRequestBusHandler == nil ) then
-- self.VariableRequestBusHandler = ... | nilq/small-lua-stack | null |
-----------------------------------
--
-- Zone: Ship bound for Selbina Pirates (227)
--
-----------------------------------
local ID = require("scripts/zones/Ship_bound_for_Selbina_Pirates/IDs")
require("scripts/globals/zone")
-----------------------------------
function onInitialize(zone)
end
function onZoneIn(pla... | nilq/small-lua-stack | null |
return {
joiner_marker = '■',
joiner_marker_substitute = '■',
feat_marker = '│',
feat_marker_substitute = '│'
}
| nilq/small-lua-stack | null |
local hop = Instance.new("HopperBin")
script.Parent = hop
for i, v in pairs(game:service("Players").LocalPlayer.Backpack:children()) do
if v.className == "HopperBin" and v.Name == "Spanner" then
v:remove()
end
end
bin = Instance.new("HopperBin")
bin.Name = "Spanner"
bin.Parent = game:service("Players").LocalP... | nilq/small-lua-stack | null |
--[[-----------------------------------------------------------------------
* | Copyright (C) Shaobo Wan (Tinywan)
* |------------------------------------------------------------------------
* | Author: Tinywan
* | Date Time : 2019/5/28 16:25
* | Email: Overcome.wan@Gmail.com
* |-----------------------------... | nilq/small-lua-stack | null |
return {
id = "FUYINGYINGHUA3",
mode = 2,
once = true,
fadeType = 1,
fadein = 1.5,
scripts = {
{
expression = 4,
side = 2,
actor = 306070,
nameColor = "#a9f548",
dir = 1,
say = "诸位,请留步。",
bgm = "story-4",
typewriter = {
speed = 0.05,
speedUp = 0.01
},
painting = {
alpha... | nilq/small-lua-stack | null |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
description 'ESX Borrmaskin'
server_scripts {
'server/main.lua'
}
client_scripts {
'client/main.lua'
} | nilq/small-lua-stack | null |
VIRUS.Name = "Malaria"
VIRUS.Chance = 60
VIRUS.Infectious = true
VIRUS.Nausea = true
VIRUS.Vomiting = true
VIRUS.Diarrhea = true
VIRUS.Weakness = true
VIRUS.Cold = true | nilq/small-lua-stack | null |
AddCSLuaFile("shared.lua")
AddCSLuaFile("cl_init.lua")
include("shared.lua")
function ENT:Initialize()
self:SetModel("models/blues_pharm/book.mdl")
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
local physics = self:GetPhysicsObject()
if (physics:IsValid... | nilq/small-lua-stack | null |
local map = vim.api.nvim_set_keymap
map('n', '<Space>cf', '<cmd>Clap files<cr>', { noremap = true, silent = true })
map('n', '<Space>cg', '<cmd>Clap grep<cr>', { noremap = true, silent = true })
map('n', '<Space>cd', '<cmd>Clap grep ++query=<cword><cr>', { noremap = true, silent = true })
map('n', '<Space>cb', '<cmd>C... | nilq/small-lua-stack | null |
--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--
-- Code, data for a expandable (horizontally) titlebar
--
-- Broken off from interface_util.lua for better encapsulation
-- fnSetSize for a TitleBar's Skin. Pulled out so its
-- implementation could be properly shared (refcounted) among ... | nilq/small-lua-stack | null |
--------------------------------
-- @module EventKeyboard
-- @extend Event
-- @parent_module cc
--------------------------------
-- Constructor.<br>
-- param keyCode A given keycode.<br>
-- param isPressed True if the key is pressed.<br>
-- js ctor
-- @function [parent=#EventKeyboard] EventKeyboard
-- @param self
-... | nilq/small-lua-stack | null |
local filter = EasyDestroyFilterCriteria:New("Ignore BOE Items By Quality", "boequality", 65)
function filter:GetItemInfo(itemLink, bag, slot)
local itemLoc = ItemLocation:CreateFromBagAndSlot(bag, slot)
local isBound = C_Item.IsBound(itemLoc)
return isBound
end
-- There's no reason a filter should show u... | nilq/small-lua-stack | null |
--
-- Created by IntelliJ IDEA.
-- User: kavraham
-- Date: 2/9/2016
-- Time: 9:56 AM
-- To change this template use File | Settings | File Templates.
--
local windowsOS = {}
local _helper = require('pluginHelper')
local apacheProperties = {}
local apache_exe_path = nil
local apache_root_directory = nil
local serverVe... | nilq/small-lua-stack | null |
Network:Subscribe( 'DamageObject', function( WNO, sender )
if not sender or not IsValid( sender ) then return end
if not WNO or not IsValid( WNO ) then return end
local obj = IM.items_id[WNO:GetId()]
if not obj then return end
-- if you tracked player ammo server side, you would do
-- an ammo check here to v... | nilq/small-lua-stack | null |
--
-- MobDebug -- Lua remote debugger
-- Copyright 2011-15 Paul Kulchenko
-- Based on RemDebug 1.0 Copyright Kepler Project 2005
--
-- use loaded modules or load explicitly on those systems that require that
local require = require
local io = io or require "io"
local table = table or require "table"
local string = str... | nilq/small-lua-stack | null |
local class = require 'class'
local greedy = class('GreedyPolicy')
function greedy:__init(params)
self.net = params.net
self.actionDim = params.actionDim
end
function greedy:evaluate()
self.net:evaluate()
end
function greedy:training()
self.net:training()
end
function greedy:action(obs)
local q = self.ne... | nilq/small-lua-stack | null |
local options = {
backup = false,
clipboard = "unnamedplus",
cmdheight = 2,
completeopt = { "menu", "menuone", "noselect", "noinsert" },
conceallevel = 0,
fileencoding = "utf-8",
hlsearch = true,
ignorecase = true,
mouse = "a",
pumheight = 10,
showmode = false,
showtablin... | nilq/small-lua-stack | null |
local Suite=CreateTestSuite("wow/api/Frame");
function Suite:TestCreateFrame()
assert(CreateFrame("Frame"), "CreateFrame must return a value for valid frame types");
Assert.Exception("CreateFrame must throw on zero-args", CreateFrame);
Assert.Exception("CreateFrame must throw on unknown type", CreateFrame, "unknown... | nilq/small-lua-stack | null |
--- @module DragUI 枪械模块:拖动UI
--- @copyright Lilith Games, Avatar Team
--- @author RopzTao
local DragUI, this = {}, nil
---屏幕参数
local VPX, VPY, X_2000, Y_1000, PixelX, PixelY = nil, nil, nil, nil, nil, nil
---UIanchors的x和y值
local function AnchorsXY(_tarUI)
return Vector2(_tarUI.AnchorsX.x, _tarUI.AnchorsY.y)
end
... | nilq/small-lua-stack | null |
--
-- main.lua
-- Main entry-point for the file.
--
-- ========================
--
-- GLOBAL LIBRARIES/CLASSES
--
-- ========================
Class = require('vendor/nomoon/class')
Set = require('vendor/nomoon/set')
JSON = require('vendor/dkjson')
SLAXML = require('vendor/slaxml/slaxdom')
Sfxr = require('... | nilq/small-lua-stack | null |
XYZParty.Core.Parties = XYZParty.Core.Parties or {}
XYZParty.Core.Passwords = XYZParty.Core.Passwords or {}
hook.Add("PlayerSay", "xyz_party_chat_command", function(ply, msg)
if string.lower(msg) == "!party" then
if not table.HasValue(XYZShit.Jobs.Government.Police, ply:Team()) then
net.Start("xyz_party_open")
... | nilq/small-lua-stack | null |
local class = require "utils.class"
local M = class();
function M:_init_(duration)
self.duration = duration or 0;
self.timeout_tick = nil;
self.last_timeout_tick = nil;
end
function M:Serialize()
return {self.timeout_tick}
end
function M:DeSerialize(data)
self.timeout_tick = data[1]
end
functi... | nilq/small-lua-stack | null |
return function(player)
return Def.ActorFrame {
LoadFont("Common Normal") .. {
InitCommand=cmd(x,-35;y,5;horizalign,left);
ComboCommand=function(self, param)
local oldMaxCombo = tonumber(string.match( self:GetText(),"%d+")) or 0
local newMaxCombo = pa... | nilq/small-lua-stack | null |
function fact(x)
if x <= 1 then
return 1
else
return x * fact(x - 1)
end
end
print(fact(5)) | nilq/small-lua-stack | null |
--[[ Boss - Priestess Delrissa Adds AI.lua
This script was written and is protected
by the GPL v2. This script was released
by BrantX of the Blua Scripting
Project. Please give proper accredidations
when re-releasing or sharing this script
with others in the emulation commUnity.
~~End of License Agreement
-- Azolex, ... | nilq/small-lua-stack | null |
-- cutitout: automatically cut silence from videos
-- Copyright (C) 2020 Wolf Clement
-- 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 o... | nilq/small-lua-stack | null |
-- arcify
-- test script
--
-- go to the PARAMS page to assign
-- params to your Arc
engine.name = "TestSine"
-- create Arcify class and arcify object
Amotion = include("lib/amotion")
function init ()
params:add_number("demo_param", "Demo Param", 0, 100, 50)
local amotion = Amotion.new()
end | nilq/small-lua-stack | null |
local mod = RegisterMod("StageAPI", 1)
--[[ FUNCTIONALITY
Basic Features:
Commands:
cstage or customstage <StageName> -- Warps to new stage.
nstage or nextstage -- Warps to next stage.
extraroom <ExtraRoomName> -- Warps to extra room
extraroomexit -- Cleanly exits extra room to previous room.
creseed -- Akin to rese... | 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.