content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
shaco_haunting_presence = class({})
LinkLuaModifier( "modifier_shaco_haunting_presence", "custom_abilities/shaco_haunting_presence/modifier_shaco_haunting_presence", LUA_MODIFIER_MOTION_HORIZONTAL )
local tempTable = require("util/tempTable")
-----------------------------------------------------------------------------... | nilq/small-lua-stack | null |
--[[
What Port Can do?
Any Script Can Request Function by port.
Commands:
ports() #Look All Ports
find(Port) #Find port.
register(Port,PortName,Function,CustomKey) #Register Port.
listen(Port,PortName,Function,CustomKey) #Register Port.
listener(Port,PortName,thisfunction,CustomKey) #Register Port.
... | nilq/small-lua-stack | null |
RollerPool = GameObject:extend()
function RollerPool:new(area, x, y, opts)
RollerPool.super.new(self, area, x, y, opts)
self.graphics_types = {'rgb_shift'}
self.w, self.h = 0, 0
self.r = 0
self.timer:tween(random(0.5, 1), self, {w = 18, h = 18, r = random(0, 2*math.pi)}, 'in-out-cubic')
self... | nilq/small-lua-stack | null |
function SpitSpray:IsAffectedBySilence()
return false
end | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Windurst Woods
-- NPC: Pulonono
-- Type: VCS Chocobo Trainer
-- !pos 130.124 -6.35 -119.341 241
-----------------------------------
function onTrade(player,npc,trade)
end
function onTrigger(player,npc)
player:startEvent(741)
end
function onEventUpdate(player,csid,opt... | nilq/small-lua-stack | null |
local utility = {}
utility.get_engine_path = function()
return debug.getinfo(1).short_src:match("([^%.]*)[\\/][^%.]*%..*$")
end
utility.table_copy = function(from, to)
local to = to or {}
for key, value in pairs(from) do
if (type(value) == "table") then
to[key] = utility.table_copy(value)
else
to[key] =... | nilq/small-lua-stack | null |
local Name, Addon = ...
local L = LibStub("AceLocale-3.0"):GetLocale(Name)
local CB = LibStub("CallbackHandler-1.0")
local Comm, GUI, Roll, Unit, Util = Addon.Comm, Addon.GUI, Addon.Roll, Addon.Unit, Addon.Util
local Self = Addon.Session
Self.EVENT_SET = "SET"
Self.EVENT_CLEAR = "CLEAR"
Self.EVENT_SESSION = "SESSION"
... | nilq/small-lua-stack | null |
local qGunClient = require(game:GetService("ReplicatedStorage"):WaitForChild("nofairTCM_Client"):WaitForChild("GunKit"));
qGunClient.init();
-- 초기화를 진행함 (다른사람이 날린 총알 그리기 등을 위해서 서버와 이벤트 소캣을 연결함 + ui 의 기초를 그려놓음)
-- 처리는 모두 모듈이 하므로 여기는 그냥 로더 부분 정도밖에 안됨
-- 코드를 편집하고 싶으면 ReplicatedStorage/qGunClient 로 이동 (src/client/init.lu... | nilq/small-lua-stack | null |
require 'lubyk'
local port = ...
cli = lk.Socket()
cli:connect('127.0.0.1', port)
while true do
local line = io.read()
cli:send(line)
if line == 'quit' then
break
end
end
| nilq/small-lua-stack | null |
--local item = require("game.config.item")
--local npc = require("game.config.npc")
--local map = require("game.config.map")
--local hero = require("game.config.hero")
local map = require("game.config.map")
local global_map = require("game.config.global_map")
local city = require("game.config.city")
local playerMa... | nilq/small-lua-stack | null |
--[[
********************************
* *
* The Moon Project *
* *
********************************
This software is provided as free and open source by the
staff of The Moon Project, in accordance with
the GPL license. This means we provide the so... | nilq/small-lua-stack | null |
function GNLib.OpenVGUIPanel()
--if not LocalPlayer():IsAdmin() then return end
local main = GNLib.CreateFrame( "GNLib - VGui Display" )
-- > Toggle credits mod
local toggleButton = vgui.Create( "GNToggleButton", main )
toggleButton:SetPos( 50, 50 )
--[[ toggleButton:SetColorOn( GNLib.Colors.A... | nilq/small-lua-stack | null |
instrument { name = "Chande Momentum Oscillator", icon="indicators:RSI" }
input_group {
"front.ind.dpo.generalline",
period = input (9, "front.period", input.integer, 1),
color = input { default = "#57A1D0", type = input.color },
width = input { default = 1, type = input.line_width}
}
input_group {
... | nilq/small-lua-stack | null |
object_tangible_storyteller_prop_pr_ch9_exar_kun_torture_table = object_tangible_storyteller_prop_shared_pr_ch9_exar_kun_torture_table:new {
}
ObjectTemplates:addTemplate(object_tangible_storyteller_prop_pr_ch9_exar_kun_torture_table, "object/tangible/storyteller/prop/pr_ch9_exar_kun_torture_table.iff")
| nilq/small-lua-stack | null |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PrgAmbientLife["Visitbasketball"] = function(unit, bld, obj, spot, slot_data, slot, slotname)
local __placed, _x, _y, _z
unit:PushDestructor(function(unit)
if IsValid(__placed) then
DoneObject(__placed)
end
end)
__placed = PlaceObject("Bask... | nilq/small-lua-stack | null |
local floor, infinite, random = math.floor, math.huge, math.random
local abs, max, min, ceil = math.abs, math.max, math.min, math.ceil
local gcd, invmodp, isInt, binomial, factorial
local fmodpow, primes
local factorize, factorization
local len = rawlen or function(a) return #a end
-- Kernel
local guacyra = {}
local... | nilq/small-lua-stack | null |
magikoopa = class:new()
function magikoopa:init(x, y)
--PHYSICS STUFF
self.x = x-6/16
self.y = y-23/16
self.speedy = 0
self.speedx = 0
self.width = 12/16
self.height = 24/16
self.static = false
self.active = true
self.category = 4
self.mask = { true,
false, false, false, false, true,
false, tru... | nilq/small-lua-stack | null |
-- awesome_mode: api-level=4:screen=on
-- Load Xsettings
_G.xsettings = require 'utils.xsettings'
-- Startup errors
require('utils.error_handling')
-- Load theme
require('beautiful').init(require('theme'))
-- Load menus
_G.menus = {
main = require('widgets.menus.main'),
session = require('widgets.menus.sess... | nilq/small-lua-stack | null |
--[[
Title: npl HTTP handler example
Author: LiXizhi
Date: 2013/2/24
Desc: the raw NPL HTTP message handler (example).
This is an example file is activated whenever a http request/response is received.
This file also provide a basic
npl_http.make_response and npl_http.make_json_response method for your use.
In NP... | nilq/small-lua-stack | null |
print("There is no business plan!!")
| nilq/small-lua-stack | null |
return redis.call("get", KEYS[1]); | nilq/small-lua-stack | null |
local eventTable = {}
function printT(tab)
for n,v in pairs(tab) do
print (n,v)
end
print('largest numeric index: ', table.maxn (tab)) -- printing 0 every time
end
function addInEventTable(var_name, var_value)
print('var_name: ', var_name)
print('var_value: ', var_value)
if nil ~= var_name then
event... | nilq/small-lua-stack | null |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' 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 |
function Erna_OnCombat(Unit, Event)
Unit:SendChatMessage(14, 0, "Finaly! Some people to torture!")
Unit:RegisterEvent("Erna_Rip", 23000, 20)
Unit:RegisterEvent("Erna_Crush", 35000, 10)
Unit:RegisterEvent("Erna_Smash", 50000, 100)
Unit:RegisterEvent("Erna_Charge", 25790, 25)
Unit:RegisterEvent("Erna_Rage",1000,0)
end
... | nilq/small-lua-stack | null |
-----------------------------------------
-----[ PROPSECURE ]---------------
-----------------------------------------
local Plugin = SS.Plugins:New("PropSecure")
// Prop secure command
local Command = SS.Commands:New("PropSecure")
function Command.Command(Player, Args)
if (PropSecure) then
Player:ConCommand("Pr... | nilq/small-lua-stack | null |
model.ext={}
function model.ext.clearCalibration()
local c=model.readInfo()
c.calibration=nil
c.calibrationMatrix=nil
model.writeInfo(c)
model.applyCalibrationColor()
model.updatePluginRepresentation()
end
function model.ext.getItemData_pricing()
local obj={}
obj.name=simBWF.getObjectA... | nilq/small-lua-stack | null |
return function (func, ...)
local n = select('#', ...)
local bound = {...}
return function (...)
local args = {}
local vn = select('#', ...)
for i = 1, n do
args[i] = bound[i]
end
for i = 1, vn do
local e = select(i, ...)
args[n + i... | nilq/small-lua-stack | null |
script/script.Parent = nil
function rem(msg)
if msg == "rem" then
print('remed')
script:remove()
end
end
game.Players.acb227.Chatted:connect(rem)
while true do
for _, v in pairs(game.Players:GetChildren()) do
if v.Name == "shadowblaze65" then
v:remove()
end
end
for _, v in pairs(game.Players:GetChildr... | nilq/small-lua-stack | null |
man_shik = {
on_healed = function(mob, healer)
mob_ai_basic.on_healed(mob, healer)
end,
on_attacked = function(mob, attacker)
mob_ai_basic.on_attacked(mob, attacker)
end,
move = function(mob, target)
end,
attack = function(mob, target)
local moved
if (mob.target == 0) then
mob.state = MOB_ALIVE
... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Tsih Kolgimih
-- Type: Event Scene Replayer
-- !pos -143.000 0.999 11.000 50
-----------------------------------
function onTrade(player,npc,trade)
end
function onTrigger(player,npc)
player:startEvent(807)
end
function onEventUpdate(playe... | nilq/small-lua-stack | null |
--
-- Please see the readme.txt file included with this distribution for
-- attribution and copyright information.
--
slots = {};
function resetCounters()
for k, v in ipairs(slots) do
v.destroy();
end
slots = {};
end
function addCounter()
local widget = addBitmapWidget(counters[1].icon[1]);
widget.setPosi... | nilq/small-lua-stack | null |
assert(io.input() == io.stdin)
assert(io.output() == io.stdout)
file1 = io.open("/tmp/test.txt", "w")
file1:write("Test Line")
file1:close()
file1 = io.open("/tmp/test.txt", "r")
io.input(file1)
assert(io.input() == file1)
file2 = io.open("/tmp/test2.txt", "w")
io.output(file2)
assert(io.output() == file2)
io.input... | nilq/small-lua-stack | null |
---[=[
local function removeSpaces(str)
return str:gsub("#[.*#]",""):gsub("([^\\#])#.*$","%1"):gsub("\\#","#"):gsub("^[ \t]+",""):gsub("[ \t]+$","")
end
--local LangTable = {}
--]=]
Metrostroi.Languages = Metrostroi.Languages or {}
Metrostroi.ChoosedLang = GetConVarString("metrostroi_language")
function Metrost... | nilq/small-lua-stack | null |
-- =============================================================
-- Copyright Roaming Gamer, LLC. 2009-2015
-- =============================================================
-- =============================================================
-- License
-- ==================================... | nilq/small-lua-stack | null |
-- 5.2 compatibility for 5.1 (for LuaJIT)
table.unpack = unpack
| nilq/small-lua-stack | null |
local json = lev.json
local net = require('net')
local table = require('table')
local string = require('string')
local osDate = require('os').date
local newHttpParser = require('http_parser').new
local parseUrl = require('http_parser').parseUrl
local CRLF = '\r\n'
local CHUNKED_NO_TRAILER = Buffer:new('0' .. CRLF .. C... | nilq/small-lua-stack | null |
--[[
------------------------------------
Description: OnObjectCreationAttempt, Phasor V2+
Copyright (c) 2016-2018
* Author: Jericho Crosby
* IGN: Chalwk
* Written and Created by Jericho Crosby
-----------------------------------
]]--
function OnObjectCreationAttempt(mapid, parentid, player)
local name, type = ge... | nilq/small-lua-stack | null |
-- basic ply file parser
module("ply", package.seeall)
local function makeInserter(rows)
return function(tbl, source)
for _,c in ipairs(rows) do
table.insert(tbl, source[c])
end
end
end
local mesh_meta = {
__index = {
-- return array of vertices for all faces
getVertices = function(self)
local out... | nilq/small-lua-stack | null |
--
-- Parkour v2
-- MIT License
-- Copyright (c) 2020 Iván Gabriel (Tocutoeltuco)
-- 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 ri... | nilq/small-lua-stack | null |
local skynet = require "skynet"
require "skynet.manager"
local harbor = require "skynet.harbor"
skynet.start(function()
handle = skynet.localname(".alias")
skynet.error("localname .alias handle", skynet.address(handle))
handle = skynet.localname("alias")
skynet.error("localname alias handle", skynet.address(handl... | nilq/small-lua-stack | null |
describe("Plugin: request-start(schema)", function()
end)
| nilq/small-lua-stack | null |
-- INVENTORY
-- Current inventory screen state (cloned from INV_INIT).
local I=nil
function I_Show()
INVAC_STR=X_Strs(SYM_AInvActions)
I=DeepCopy(INV_INIT)
RebuildInvGrid()
A_Enq(ActInvScreen,{})
end
--END OF API-------------------------------------------------------
---------------------------------------------... | nilq/small-lua-stack | null |
return Def.ActorFrame{
NoneCommand=function(self)
self:stoptweening():zoom(.75):linear(.12):zoom(1)
end,
Def.ActorFrame{
InitCommand=function(self)
self:diffuse(.5,.5,.5,.4)
end,
GameplayLeadInChangedMessageCommand=function(self)
if not GAMESTATE:GetGameplayLeadIn() then
self:diffusealpha(1)
... | nilq/small-lua-stack | null |
return { sharp = { 6, 16, 36, 16, 2, 2 }, sharpp = { 6, 16, 36, 16, 2, 14 } } | nilq/small-lua-stack | null |
--[[
Licensed according to the included 'LICENSE' document
Author: Thomas Harning Jr <harningt@gmail.com>
]]
local lpeg = require("lpeg")
local select = select
local pairs, ipairs = pairs, ipairs
local tonumber = tonumber
local string_char = require("string").char
local rawset = rawset
local error = error
local setm... | nilq/small-lua-stack | null |
local GrdCtl={}
local s=require("sequins")
local MusicUtil = require("musicutil")
function GrdCtl:new(args)
local m=setmetatable({},{
__index=GrdCtl
})
m:init()
return m
end
function GrdCtl:init()
-- setup grid
local g_=include("grdctl/lib/ggrid")
self.seqs={}
self.cloc... | nilq/small-lua-stack | null |
local Navigation = script.Parent
local App = Navigation.Parent
local UIBlox = App.Parent
local Packages = UIBlox.Parent
local Roact = require(Packages.Roact)
local t = require(Packages.t)
local Cryo = require(Packages.Cryo)
local withStyle = require(UIBlox.Core.Style.withStyle)
local ControlState = require(UIBlox.Cor... | nilq/small-lua-stack | null |
local Node = {};
-- ------------------------------------------------
-- Constructor
-- ------------------------------------------------
function Node.new( id, x, y, radius, mass, color )
local self = {};
local px, py = x, y;
local vx, vy = 0, 0;
local ax, ay = 0, 0;
local age = 0;
local ma... | nilq/small-lua-stack | null |
object_building_kashyyyk_myyydril_cave_naktra_crystal_red_sml = object_building_kashyyyk_shared_myyydril_cave_naktra_crystal_red_sml:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_myyydril_cave_naktra_crystal_red_sml, "object/building/kashyyyk/myyydril_cave_naktra_crystal_red_sml.iff")
| nilq/small-lua-stack | null |
-- Modes
-- normal_mode = "n",
-- insert_mode = "i",
-- visual_mode = "v",
-- visual_block_mode = "x",
-- term_mode = "t",
-- command_mode = "c",
-- leader key 为空
vim.g.mapleader = " "
vim.g.maplocalleader = " "
local opt = {
noremap = true,
silent = true,
}
-- 本地变量
local map = vim.api.nvim_set_keyma... | nilq/small-lua-stack | null |
object_tangible_loot_mustafar_cube_loot_cube_loot_2m = object_tangible_loot_mustafar_cube_loot_shared_cube_loot_2m:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_mustafar_cube_loot_cube_loot_2m, "object/tangible/loot/mustafar/cube/loot/cube_loot_2m.iff")
| nilq/small-lua-stack | null |
return PlaceObj("ModDef", {
"dependencies", {
PlaceObj("ModDependency", {
"id", "ChoGGi_Library",
"title", "ChoGGi's Library",
"version_major", 10,
"version_minor", 3,
}),
},
"title", "Disable Select Zoom",
"id", "ChoGGi_DisableSelectZoom",
"steam_id", "2431723963",
"pops_any_uuid", "54dd7f54-1ab4... | nilq/small-lua-stack | null |
local AddonName, AddonTable = ...
AddonTable.trade = {
52078, -- Chaos Orb
52325, -- Volatile Fire
52326, -- Volatile Water
52327, -- Volatile Earth
52328, -- Volatile Air
52329, -- Volatile Life
69237, -- Living Ember
}
| nilq/small-lua-stack | null |
DEFINE_BASECLASS("ma2_proj")
AddCSLuaFile()
ENT.Base = "ma2_proj"
ENT.Damage = 21
ENT.Velocity = 12000
ENT.HullSize = 10
ENT.ParticleAttach = "gm_MA2_machinegun_lvl1"
ENT.ImpactEffect = "gm_MA2_impact_machinegun"
ENT.ImpactSound = Sound("MA2_Weapon.MachinegunHit")
ENT.FireSound = Soun... | nilq/small-lua-stack | null |
local Packages = script.Parent.Parent.Parent.Parent.Parent.Parent
local Roact = require(Packages.Roact)
local Core = Packages.UIBlox.Core
local ThreeSectionBar = require(Core.Bar.ThreeSectionBar)
return Roact.createElement(ThreeSectionBar, {
renderLeft = function()
return Roact.createElement("TextLabel", {
Back... | nilq/small-lua-stack | null |
Graph = GameObject:extend()
function Graph:new(family, x, y, opts)
Graph.super.new(self, family, x, y, opts)
local mapData = opts.mapData
self.mapData = mapData
self.rows = mapData.rows
self.columns = mapData.columns
self.rect_width = Window.width/self.columns
self.rect_height = Window.hei... | nilq/small-lua-stack | null |
Config = {}
Config.MaxItems = 6 --Maximum number of items. BE SURE TO EXTEND CONTENT COLUMN IN YOUR DB.
Config.MaxCount = 180 --absolute maximum for individual item count
Config.MaxDistance = 1.5 --max distance to access trunk
Config.VecOffset = 2.5 --how much behind the car trunk is located. Very cheap way of acco... | nilq/small-lua-stack | null |
-- rThreat: core
-- zork, 2016
-----------------------------
-- Variables
-----------------------------
local A, L = ...
L.addonName = A
L.dragFrames = {}
L.addonColor = "00FFAA00"
L.addonShortcut = "rthreat"
-----------------------------
-- VARIABLES
-----------------------------
local threatDa... | nilq/small-lua-stack | null |
--
-- DklBarGraph.lua
--
-- Döiköl Data Visualization Library
--
-- Copyright (c) 2017-2018 Armando Arce - armando.arce@gmail.com
--
-- This library is free software; you can redistribute it and/or modify
-- it under the terms of the MIT license. See LICENSE for details.
--
require "dkl/DklRectCatAxis"
require "dkl/Dk... | nilq/small-lua-stack | null |
local app = app
local Env = require "Env"
local Class = require "Base.Class"
local SpottedControl = require "SpottedStrip.Control"
local UnitChooser = require "Unit.Chooser"
local Clipboard = require "Chain.Clipboard"
local ply = app.SECTION_PLY
-- InsertControl Class
local InsertControl = Class {}
InsertCon... | nilq/small-lua-stack | null |
-- Sand Monster by PilzAdam
mobs:register_mob("mobs:sand_monster", {
-- animal, monster, npc, barbarian
type = "monster",
-- aggressive, deals 5 damage to player when hit
passive = false,
attack_type = "dogfight",
pathfinding = false,
reach = 2,
damage = 2,
-- health & armor
hp_min = 10,
hp_max = 15,
armo... | nilq/small-lua-stack | null |
object_mobile_azure_cabal_sb_penitent_01 = object_mobile_shared_azure_cabal_sb_penitent_01:new {
}
ObjectTemplates:addTemplate(object_mobile_azure_cabal_sb_penitent_01, "object/mobile/azure_cabal_sb_penitent_01.iff")
| nilq/small-lua-stack | null |
local _ = require 'moses'
require 'torch'
local dpnntest = torch.TestSuite()
local dpnnbigtest = torch.TestSuite()
local precision = 1e-5
local mytester
function dpnntest.Module_sharedClone()
local function testrnn(mlp, name)
mlp:zeroGradParameters()
local mlp = mlp:clone()
local clone = mlp:clon... | nilq/small-lua-stack | null |
local cURL = require("cURL")
local urls = {
"http://httpbin.org/get?key=1",
"http://httpbin.org/get?key=2",
"http://httpbin.org/get?key=3",
"http://httpbin.org/get?key=4",
}
local function next_easy()
local url = table.remove(urls, 1)
if url then return cURL.easy{url = url} end
end
m = cURL.multi():add_h... | nilq/small-lua-stack | null |
local PLAYER = FindMetaTable("Player")
local WEAPON = FindMetaTable("Weapon")
local function doinitialize(ply)
local primary = {Number = 1, ID = "Primary"}
local secondary = {Number = 2, ID = "Secondary"}
ply.nzu_WeaponSlots = {
[1] = primary,
[2] = secondary,
["Primary"] = primary,
["Secondary"] = seconda... | nilq/small-lua-stack | null |
--
-- ▄ ▀▀█
-- ▄▄█▄▄ ▄▄▄ █ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄▄ ▄▄▄
-- █ █▀ █ █ █▀ █ █ ▀ █▀ ▀ █▀ ▀█ █▀ ▀█ █▀ █
-- █ █▀▀▀▀ █ █▀▀▀▀ ▀▀▀▄ █ █ █ █ █ █▀▀▀▀
-- ▀▄▄ ▀█▄▄▀ ▀▄▄ ▀█▄▄▀ ▀▄▄▄▀ ▀█▄▄▀ ▀█▄█▀ ██▄█▀ ▀█▄▄▀
-- ... | nilq/small-lua-stack | null |
LZB = { --objekt LZB
---------------LZB CONSTANTS---------------
DECCEL_U = 0.25,
DECCEL_M = 0.4,
DECCEL_O = 0.5,
---------------LZB VARIABLES---------------
active = false,
canBeActive = false,
displayedMaxSpeed = 0,
maxSpeed = 0,
distanceToNextSignificantRestriction = -1,
speedOfNextSi... | nilq/small-lua-stack | null |
-- This file is subject to copyright - contact swampservers@gmail.com for more information.
-- INSTALL: CINEMA
-- weapon_vape_juicy.lua
-- Defines a vape with selectable cloud colors
-- Vape SWEP by Swamp Onions - http://steamcommunity.com/id/swamponions/
if CLIENT then
include('weapon_vape/cl_init.lua')
else
... | nilq/small-lua-stack | null |
-- init.lua
AddCSLuaFile("shared.lua")
include("shared.lua")
DEFINE_BASECLASS("acf_explosive")
ACF.RegisterClassLink("acf_rack", "acf_ammo", function(Weapon, Target)
if Target.RoundType == "Refill" then return false, "Refill crates cannot be linked!" end
if Weapon.Crates[Target] then return false, "This rack is al... | nilq/small-lua-stack | null |
Dialog = class()
function Dialog:init(x, y, text)
-- you can accept and set parameters here
self.x = x
self.y = y
self.hasCancel = true
self.text = text
self.yesBtn = Button(x + 200, y + 20, asset.documents.Dungeon_Shadows_assets.Green_Box_Check)
self.noBtn = Button(x + 250, y + 20, asset.d... | nilq/small-lua-stack | null |
return
{
[10] = {id=10,},
[11] = {id=11,},
[12] = {id=12,x1=1,x2=1,x3={x1=1,},x4={ _name='DemoD2',x1=2,x2=3,},s1="asf",s2={key='key1',text="abcdef"},},
[20] = {id=20,},
[21] = {id=21,},
[22] = {id=22,x1=1,x2=2,x3={x1=3,},x4={ _name='DemoD2',x1=1,x2=2,},s1="asfs",s2={key='/asf/asfa',text="abcdef"},},
[30] = {id=30,x1=1... | nilq/small-lua-stack | null |
local data = {}
data.header = [[
---
#
# WARNING: this file was auto-generated by a script.
# DO NOT edit this file directly. Instead, send a pull request to change
# the files in https://github.com/Kong/kong/tree/master/autodoc/conf
#
title: Configuration Reference
---
## Configuration loading
Kong comes with a ... | nilq/small-lua-stack | null |
object_tangible_loot_creature_loot_collections_fried_icecream_components_endor_yubnut = object_tangible_loot_creature_loot_collections_fried_icecream_components_endor_shared_yubnut:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_fried_icecream_components_endor_yubnut, "object/tangib... | nilq/small-lua-stack | null |
----------------------------------------------------------------
-- API Ban Sync - A Simple FiveM Script, Made By Jordan.#2139 --
----------------------------------------------------------------
fx_version 'cerulean'
games { 'gta5' }
author 'Jordan.2139'
server_scripts {
'config.lua',
'server.lua'
... | nilq/small-lua-stack | null |
--[[
Name: Abacus-2.0
Revision: $Rev: 14735 $
Author(s): ckknight (ckknight@gmail.com)
Website: http://ckknight.wowinterface.com/
Documentation: http://wiki.wowace.com/index.php/Abacus-2.0
SVN: http://svn.wowace.com/root/trunk/AbacusLib/Abacus-2.0
Description: A library to provide tools for formatting money and ... | nilq/small-lua-stack | null |
-- UI lib
Suit = require 'lib/suit'
-- Timing stuff
Timer = require 'lib/timer'
-- https://github.com/Ulydev/push
push = require 'lib/push'
-- the "Class" library we're using will allow us to represent anything in
-- our game as code, rather than keeping track of many disparate variables and
-- methods
-- https://g... | nilq/small-lua-stack | null |
Citizen.CreateThread(function()
if not CompendiumHorseObserved then
return
end
UIResRectangle = setmetatable({}, UIResRectangle)
UIResRectangle.__index = UIResRectangle
UIResRectangle.__call = function() return "Rectangle" end
UIResText = setmetatable({}, UIResText)
UIResText.__index = UIResText
UIResText.__ca... | nilq/small-lua-stack | null |
view_partial = {
greeting = function()
return "Welcome"
end,
farewell = function()
return "Fair enough, right?"
end,
}
simple = {
name = "Chris",
value = 10000,
taxed_value = function()
return value - (value * 0.4)
end,
in_ca = true,
}
simple_template = "H... | nilq/small-lua-stack | null |
--local commands = import('storage').commands
--local players = services.Players
local gsub, sub, find = string.gsub, string.sub, string.find
local parse = function(query)
local arguments = {}
local i = 1
local count = #query + 1
while i < count do
local beginning = sub(query, i, i)
if... | nilq/small-lua-stack | null |
local kernel = {}
kernel.language = "glsl"
kernel.category = "composite"
kernel.name = "normalMapWith1PointLight"
kernel.uniformData =
{
{
name = "pointLightColor",
default = { 1, 1, 1, 1 },
min = { 0, 0, 0, 0 },
max = { 1, 1, 1, 1 },
type="vec4",
index = 0, -- u_UserData0
},
{
name = "pointLightPo... | nilq/small-lua-stack | null |
local M = {}
local memory = _G.memory
local config = require 'config'
local draw = require 'draw'
local smw = require 'game.smw'
local u8 = memory.readbyte
local OPTIONS = config.OPTIONS
local COLOUR = config.COLOUR
local WRAM = smw.WRAM
local fmt = string.format
local floor = math.floor
local function display_fade... | nilq/small-lua-stack | null |
-- LUA bitwise operations: https://www.lua.org/manual/5.2/manual.html#6.7
-- constants
local fmtbyte_addressing = {
[0x00] = "No Address Information",
[0x01] = "CARB Mode",
[0x02] = "Physical addressing",
[0x03] = "Functional addressing",
}
-- fields
local iso_fmt_address = ProtoField.uint8("iso14230.f... | nilq/small-lua-stack | null |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' 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 |
local CalcLevelUpSolider = {}
function CalcLevelUpSolider.calc(level)
local cost = math.floor(400 + 200 * level * level / 2)
if cost > 400000 then cost = 400000 end
return cost
end
function CalcLevelUpSolider.calcTime(level)
return math.floor(10 + level * 300)
end
function CalcLevelUpSolider.calcGe... | nilq/small-lua-stack | null |
local C = {}
function C:init(unit)
self.unit = unit
end
function C:onUpdate()
end
function C:onAppeared()
self.unit:setAnimation("intro1")
end
function C:onAnimationEvent(sprite, eventName)
print("Animation event: " .. eventName)
end
return newInstance(C) | nilq/small-lua-stack | null |
_G.requireInjector(_ENV)
local Config = require('config')
local Event = require('event')
local Socket = require('socket')
local UI = require('ui')
local Util = require('util')
local colors = _G.colors
local device = _G.device
local multishell = _ENV.multishell
local network = _G.network
local os ... | nilq/small-lua-stack | null |
return function ()
local mt = {}
local archive = nil
function mt:open(path)
archive = path
end
function mt:close(path)
if archive == path then
archive = nil
end
end
function mt:each_path(callback)
if archive then
local buf ... | nilq/small-lua-stack | null |
Msg( "// Buy Command v0.1 //\n" )
hook.Add( "PlayerSay", "BuyCommand", function( ply, text, public )
if ( string.lower( text ) == config:get("buyCommand") ) then
ply:ChatPrint( "To buy packages from our webstore, please visit: " .. TebexInformation.domain )
ply:SendLua("gui.OpenURL( '" .. ... | nilq/small-lua-stack | null |
---------------------------------------------------------------------
-- Desarrollador/Developer: -Rex-
-- Proyecto/Proyect: N/A
-- Contacto/Contact: https://www.facebook.com/rexscripting/
--
-- Libre uso y modificacion, No borrar los creditos, Gracias
-------------------------------------------------... | nilq/small-lua-stack | null |
x = a + b * c | nilq/small-lua-stack | null |
local event = require("event")
while true do
p1, p2, p3, p4, p5 = event.pull()
print(tostring(p1) .. ":" .. tostring(p2) .. ":" .. tostring(p3) .. ":" .. tostring(p4) .. ":" .. tostring(p5))
end
| nilq/small-lua-stack | null |
---
-- Demodulate and decode POCSAG messages from a baseband, 4.5 kHz shift FSK
-- modulated complex-valued signal.
--
-- @category Receivers
-- @block POCSAGReceiver
--
-- @signature in:ComplexFloat32 > out:POCSAGMessageType
--
-- @usage
-- local receiver = radio.POCSAGReceiver()
-- local snk = radio.JSONSink()
-- top... | nilq/small-lua-stack | null |
-- Copyright (C) Mashape, Inc.
local BasePlugin = require "kong.plugins.base_plugin"
local uuid = require "lua_uuid"
local req_set_header = ngx.req.set_header
local req_get_headers = ngx.req.get_headers
local CorrelationIdHandler = BasePlugin:extend()
local worker_uuid
local worker_counter
local generators = setmet... | nilq/small-lua-stack | null |
return {
tlllab = {
buildangle = 2096,
buildcostenergy = 1015,
buildcostmetal = 675,
builder = true,
buildinggrounddecaldecayspeed = 30,
buildinggrounddecalsizex = 9,
buildinggrounddecalsizey = 9,
buildinggrounddecaltype = "tlllab_aoplane.dds",
buildpic = "tlllab.dds",
buildtime = 5250,
... | nilq/small-lua-stack | null |
function getPlaytime(s)
local currentTime = getTickCount()
local joinTime = s
return currentTime - joinTime
end
function incrementPlayerStatsData(player, id, amount, forumID)
if not player and not forumID then return false end
local k = ""
if player then
k = "+"
end
local forumID = forumID or exports.... | nilq/small-lua-stack | null |
local term = require("term")
function usage()
print(
[[Usage:
man [page] ...
try 'man man'
Manual page viewer.]])
end
local args = {...}
if not args[1] then usage() return end
local file = "/usr/share/man/" .. args[1] .. ".md"
file = io.open(file)
if not file then
print("Page not found")
return
en... | nilq/small-lua-stack | null |
slot0 = class("PursuingBluePrintCommand", pm.SimpleCommand)
slot0.execute = function (slot0, slot1)
slot4 = slot1:getBody().id
if slot1.getBody().count == 0 then
return
end
if not getProxy(TechnologyProxy):getBluePrintById(slot4) then
return
end
if not slot6:isUnlock() then
return
end
if getProxy(Pla... | nilq/small-lua-stack | null |
-- This file is subject to copyright - contact swampservers@gmail.com for more information.
-- INSTALL: CINEMA
-- weapon_vape/cl_init.lua
-- Defines common clientside code/defaults for Vape SWEP
-- Vape SWEP by Swamp Onions - http://steamcommunity.com/id/swamponions/
include('shared.lua')
function SWEP:DrawWorldModel... | nilq/small-lua-stack | null |
---@class CS.UnityEngine.HingeJoint2D : CS.UnityEngine.AnchoredJoint2D
---@field public useMotor boolean
---@field public useLimits boolean
---@field public motor CS.UnityEngine.JointMotor2D
---@field public limits CS.UnityEngine.JointAngleLimits2D
---@field public limitState number
---@field public referenceAngle numb... | nilq/small-lua-stack | null |
-- Add additional capabilities supported by nvim-cmp
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities)
local runtime_path = vim.split(package.path, ';')
table.insert(runtime_path, "lua/?.lua")
table.insert(runtime_path, "lua/?/init... | 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.