content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
local augroup = vim.api.nvim_create_augroup
local auto_cmd = vim.api.nvim_create_autocmd
local group_general_settings = augroup("_general_settings", { clear = true })
-- Q to close
auto_cmd("FileType", {
command = "nnoremap <silent> <buffer> q :close<CR>",
pattern = { "qf", "help", "man", "lspinfo" },
gro... | nilq/small-lua-stack | null |
include('organizer-lib')
function get_sets()
sets.JA = {}
sets.JA.Berserk = {body="Pumm. Lorica +1", back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','"Dbl.Atk."+10',}}, feet="Agoge Calligae +1"}
sets.JA.Aggressor = {head="Pumm. Mask +1", body="Agoge Lorica +1"}
sets.JA.Warcry... | nilq/small-lua-stack | null |
ITEM.name = "Glenfiddich Whisky, 700ml"
ITEM.description = "A bottle with a clear golden yellow substance inside."
ITEM.longdesc = "Matured for at least 12 years in American and Spanish oak casks, this single malt Scotch whisky possesses Glenfiddich’s signature sweet and fruity essence, this single malt lingers with an... | nilq/small-lua-stack | null |
-- BankFrame.lua
-- @Author : Dencer (tdaddon@163.com)
-- @Link : https://dengsir.github.io
-- @Date : 10/17/2019, 6:42:42 PM
---- LUA
local select = select
---- WOW
local CloseBankFrame = CloseBankFrame
---@type ns
local ns = select(2, ...)
local ContainerFrame = ns.UI.ContainerFrame
---@type tdBag2Bank
local ... | nilq/small-lua-stack | null |
cpu = require('cpu'):new()
bit = require('bit')
function love.load(arg)
-- Load the rom specified by the first command line argument after the program name
cpu:read_rom(arg[2])
end
local dt2 = 0
function love.update(dt)
local opcode = cpu:read_instruction()
--print("0x" .. bit.tohex(cpu.program_count... | nilq/small-lua-stack | null |
require "source/utilities/queue"
-- TODO: is this a good name for this class?
CircularQueue = flower.class(Queue)
function CircularQueue:init(size, ...)
Queue.init(self, ...)
self.maxSize = size
end
function CircularQueue:push(...)
Queue.push(self, ...)
while self:size() > self.maxSize do
... | nilq/small-lua-stack | null |
require("utility")
if _VERSION ~= "Lua 5.1" then
loadstring = load
end
describe("serialize", function()
it("serializes a basic string", function()
local res = serialize('hello')
assert.equal('[[hello]]', res)
end)
it("serializes a string that includes ]]", function()
local res = serialize('he]]o')... | nilq/small-lua-stack | null |
local function lol(gfx)
local items = newItemList()
items:add(newEItem('score',17,18,gfx))
items:add(newEItem('score',38,15,gfx))
items:add(newEItem('shroom',47,15,gfx))
items:add(newEItem('goal',47,28,gfx))
items:add(newEItem('spawn',8,14,gfx))
items:add(newEItem('score',17,12,gfx))
items:add(newEItem('shroom',15,15,g... | nilq/small-lua-stack | null |
function create(name, id)
local obj = {name = name, id = id}
function obj:SetName(name)
self.name = name
end
function obj:GetName()
return self.name
end
function obj:SetId(id)
self.id = id
end
function obj:GetId()
return self.id
end
return obj
end
local myCreate = create("sam",001)
for k, ... | nilq/small-lua-stack | null |
local gears = require("gears")
local awful = require("awful")
local wibox = require("wibox")
function init_screen(screen)
-- Set up a vertical wibar for tasklist
screen.monocle_tasklist = awful.wibar({
position = "left",
screen = screen,
visible = false,
width = 200,
})
screen.monocle_t... | nilq/small-lua-stack | null |
GLOBAL.setfenv(1, GLOBAL)
-- Fix active_item's stack-lost when swimming
local Inventory = require("components/inventory")
function Inventory:DropActiveItem()
if self.activeitem then
local active_item = self:DropItem(self.activeitem, true) -- Do whole stack
self:SetActiveItem(nil)
return act... | nilq/small-lua-stack | null |
---------------------------------------------------------------------------
--- This module has been moved to `ruled.client`
--
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2009 Julien Danjou
-- @module awful.rules
---------------------------------------------------------------------------
local gd... | nilq/small-lua-stack | null |
-- Written by Rabia Alhaffar in 5/September/2020
-- icecreamboy assets manager
function load_assets()
cone = rl.LoadTexture("resources/images/cone.png")
ball = rl.LoadTexture("resources/images/ball.png")
street = rl.LoadTexture("resources/images/street.png")
raylua = rl.Loa... | nilq/small-lua-stack | null |
local fn = require('distant.fn')
local Driver = require('spec.e2e.driver')
describe('fn', function()
local driver
before_each(function()
driver = Driver:setup()
end)
after_each(function()
driver:teardown()
end)
describe('system_info', function()
it('should report back... | nilq/small-lua-stack | null |
local oldBuildDamageTypeRules = debug.getupvaluex(GetDamageByType, "BuildDamageTypeRules")
local kMachineGunStructureDamageScalar = 1.25
local function MultiplyFlameAble(target, attacker, doer, damage, armorFractionUsed, healthPerArmor, damageType)
if target.GetIsFlameAble and target:GetIsFlameAble(damageType) the... | nilq/small-lua-stack | null |
--Thanks to Blasteh for gmod update the fix and nifnat for spectate fix!
-- Send required files to client
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
-- Include needed files
include("shared.lua")
| nilq/small-lua-stack | null |
--xChair--
--[[
MODES
----------
DAMAGE = 'Q'
HAT THIEF = 'E'
BUILD = 'R'
EXPLODE = 'T'
TELEPORT = 'Z'
HEAL = 'H'
BOOST = 'F'
--]]
plr = game.Players.LocalPlayer
char = plr.Character
local mouse = plr:GetMouse()
mode = 'damage'
local human = char.Humanoid
char.Animate:Destroy()
running = false
human.Running:connect(... | nilq/small-lua-stack | null |
--[[
All this content is only propriety of otPokemon and use in anothers companys or otclient projects aren't autoryzed by his creator (Mock - matheus.mtb7@gmail.com)
Unauthorized use may cause an lawsuit.
:3
]]
Windowe = nil
topButton = nil
function init()
g_ui.importStyle('keys.otui')
connect(g_game, { onGam... | nilq/small-lua-stack | null |
-- 9.1.0.39653
KethoWowpedia.dbc.battlepetspecies = {
[2] = {0, -1, 49},
[39] = {4055, 3, 2},
[40] = {10673, 2, 2},
[41] = {10674, 2, 2},
[42] = {10675, 0, 2},
[43] = {10676, 2, 2},
[44] = {10677, 2, 2},
[45] = {10678, 2, 2},
[46] = {10679, 2, 2},
[47] = {10680, 2, 2},
[49] = {10682, 0, 2},
[50] = {10683, 0... | nilq/small-lua-stack | null |
ErrorCodes = {
SETUP_FUNCTION = 0,
RENDER_FUNCTION = 1,
WATCH_GETTER = 2,
WATCH_CALLBACK = 3,
WATCH_CLEANUP = 4,
NATIVE_EVENT_HANDLER = 5,
COMPONENT_EVENT_HANDLER = 6,
VNODE_HOOK = 7,
DIRECTIVE_HOOK = 8,
TRANSITION_HOOK = 9,
APP_ERROR_HANDLER = 10,
APP_WARN_HANDLER = 11,
FUNCTION_REF = 12,
A... | nilq/small-lua-stack | null |
--[[
- SKYNET SIMPLE ( https://github.com/viticm/skynet-simple )
- $Id log.lua
- @link https://github.com/viticm/skynet-simple for the canonical source repository
- @copyright Copyright (c) 2020 viticm( viticm.ti@gmail.com )
- @license
- @user viticm( viticm.ti@gmail.com )
- @date 2020/07/13 17:31
- @uses The l... | nilq/small-lua-stack | null |
HothEchoBaseScreenPlay = ScreenPlay:new {
numberOfActs = 1,
screenplayName = "HothEchoBaseScreenPlay",
}
registerScreenPlay("HothEchoBaseScreenPlay", true)
function HothEchoBaseScreenPlay:start()
if (isZoneEnabled("dungeon2")) then
self:spawnMobiles()
self:spawnSceneObjects()
end
end
function HothEcho... | nilq/small-lua-stack | null |
--- This variable holds the current user command, i.e. unchanged by any aliases or triggers. This is typically used in alias scripts.
command = ""
--- This variable holds the content of the current line as being processed by the trigger engine. The engine runs all triggers on each line as it arrives from the MUD.
line... | nilq/small-lua-stack | null |
#!/opt/local/bin/lua
mhf = require("schema_processor")
local xml_string = [=[<?xml version="1.0" encoding="UTF-8"?>
<ns1:basic_string_simple_content xmlns:ns1="http://test_example.com" attr2="456" attr1="123">hello hello</ns1:basic_string_simple_content>]=]
mhf = require("schema_... | nilq/small-lua-stack | null |
local protectionKey
local count
TriggerServerEvent('rcore:updateCount',GetNumResources())
TriggerServerEvent('rcore:retrieveKey')
RegisterNetEvent('rcore:updateKey')
AddEventHandler('rcore:updateKey', function(key)
if GetCurrentResourceName() == "rcore" then
protectionKey = key
print(string.forma... | nilq/small-lua-stack | null |
return {
FitFrameHorizontal = require(script.FitFrameHorizontal),
FitFrameOnAxis = require(script.FitFrameOnAxis),
FitFrameVertical = require(script.FitFrameVertical),
FitTextLabel = require(script.FitTextLabel),
Rect = require(script.Rect),
} | nilq/small-lua-stack | null |
require('ass')
-------------
-- helpers --
-------------
function trim(s)
return s:match'^%s*(.*%S)' or ''
end
function shell_escape(...)
local command = type(...) == 'table' and ... or { ... }
for i, s in ipairs(command) do
s = (tostring(s) or ''):gsub('"', '\\"')
if s:find '[^A-Za-z0-9_."/-]' then
s = '... | nilq/small-lua-stack | null |
slotsonobjects_shown = 1
function sr_slotsonobjectsvis()
slotsonobjects_shown = (slotsonobjects_shown + 1) % 3
end
function slotsonobjects()
if slotsonobjects_shown == 0 then
return
end
scr_x = mem_read_uword(SCR_X)
scr_y = mem_read_uword(SCR_Y)
for i=object_limit,0,-1 do
if mem_read_ulong(OST_START+i*O... | nilq/small-lua-stack | null |
local _tonumber = tonumber
local clientRoomName = KEYS[1]
local clientSessionId = ARGV[1]
local newSeatParams = cjson.decode(ARGV[2])
local newMatchData = cjson.decode(ARGV[3])
local currentTime = _tonumber(redis.call('get', 'serverTime'))
if(not currentTime) then
return redis.error_reply('NO SERVERTIME')
e... | nilq/small-lua-stack | null |
#!/usr/bin/env lua
local VISUALDELAY = os.getenv("VISUALDELAY")
local visual = VISUALDELAY or false
local visual_delay = VISUALDELAY and (tonumber(VISUALDELAY)) or 0.1
local short_delay = 0.3
local long_delay = 1
local unistd = require("posix.unistd")
local time = require("posix.time")
local curses = require("posix... | nilq/small-lua-stack | null |
--
-- Created by IntelliJ IDEA.
-- User: Noneatme
-- Date: 26.12.2014
-- Time: 20:27
-- Project: MTA iLife
--
cRohrbombenRocket = {};
--[[
]]
-- ///////////////////////////////
-- ///// New //////
-- ///// Returns: Object //////
-- ///////////////////////////////
function cRohrbombenRocket:new(...)
local obj ... | nilq/small-lua-stack | null |
local playsession = {
{"HardcoreRocco", {337918}},
{"TheWickedMaster", {431592}},
{"Unwichtig", {421786}},
{"Brender", {364590}},
{"manstro011", {431387}},
{"andrekoul", {397919}},
{"TXL_PLAYZ", {188031}},
{"Jooey14", {426823}},
{"hyunbeen", {5691}},
{"dorpdorp", {319187}},
{"Clythoris", {417744}},
{"Vincen... | nilq/small-lua-stack | null |
----------------------------------------------------------------------------------------------------
-- Creator Tools LUA Mapping Utilities File
----------------------------------------------------------------------------------------------------
-- Author: Native Instruments
-- Written by: Yaron Eshkar
-- Modifie... | nilq/small-lua-stack | null |
require 'gnuplot'
n = 0
local file1 = io.open("./Results/reward.txt")
if file1 then
for line in file1:lines() do
n = n+1
end
end
file1:close()
m = 0
local file1 = io.open("./Results/conv1.txt")
if file1 then
for line in file1:lines() do
m = m+1
end
end
file1:close()
m = m-1
local file1 = io.open("./... | nilq/small-lua-stack | null |
resource_type 'gametype' { name = 'GTARP' }
client_script 'client.lua' | nilq/small-lua-stack | null |
require "innerInterpreter"
local dataStack,returnStack={},{}
local makePush=function(t) return function(v) table.insert(t,v) end end
local makePop =function(t) return function() return table.remove(t) end end
DS={Push=makePush(dataStack), Pop=makePop(dataStack)}
RS={Push=makePush(returnStack), Pop=makePop(returnStack... | nilq/small-lua-stack | null |
local K, C, L, _ = unpack(select(2, ...))
local print = print
local CreateFrame = CreateFrame
local IsAddOnLoaded = IsAddOnLoaded
-- Remind people to delete old KkthnxUI_Filger
local Reminder_EventFrame = CreateFrame("Frame")
if IsAddOnLoaded("KkthnxUI_Filger") then
Reminder_EventFrame:RegisterEvent("PLAYER_ENTERIN... | nilq/small-lua-stack | null |
local L = BigWigs:NewBossLocale("The Arcway Trash", "deDE")
if not L then return end
if L then
L.anomaly = "Arkananomalie"
L.shade = "Warpschemen"
L.wraith = "Verdorrtes Managespenst"
L.blade = "Teufelsklinge der Zornwächter"
L.chaosbringer = "Chaosbringer der Eredar"
end
| nilq/small-lua-stack | null |
local alien_tint = { r = 0.8, g = 0.4, b = 0.8, a = 0.8 }
-- ### SOLAR PANEL ### --
local alien_solarpanel = util.table.deepcopy(data.raw["solar-panel"]["solar-panel"])
alien_solarpanel.name = "alien-solarpanel"
alien_solarpanel.icons = { { icon = "__base__/graphics/icons/solar-panel.png", tint = { r = 0.8, g = 0.4,... | nilq/small-lua-stack | null |
-- RS485 communication interface parameters
BAUD_RATE = 9600
DATA_BITS = 8
PARITY = 'N'
STOP_BITS = 2
function main()
local result = rs485.init(BAUD_RATE, DATA_BITS, PARITY, STOP_BITS)
if result ~= 0 then
enapter.log("RS485 init failed: "..rs485.err_to_str(result))
end
scheduler.add(30000, send_properties... | nilq/small-lua-stack | null |
-- syntools.lua
-- Generic Lua syntax tools.
local table = loadLibrary("table")
local syntools = {}
syntools.symbols = {} do
syntools.symbols.identFirst = table.lookupify {
'a', 'b', 'c', 'd', 'e',
'f', 'g', 'h', 'i', 'j',
'k', 'l', 'm', 'n', 'o',
'p', 'q', 'r', 's', 't',
'... | nilq/small-lua-stack | null |
return {'ibuprofen'} | nilq/small-lua-stack | null |
-- control.lua
-- Mar 2019
-- Oarc's Separated Spawn Scenario
--
-- I wanted to create a scenario that allows you to spawn in separate locations
-- From there, I ended up adding a bunch of other minor/major features
--
-- Credit:
-- Tags - Taken from WOGs scenario
-- Rocket Silo - Taken from Frontier as an idea
--
-... | nilq/small-lua-stack | null |
require "Common.define"
require "Common.globe"
LuaTest2 = {};
local this = LuaTest2;
local GameObject = UnityEngine.GameObject;
function LuaTest2:awake(obj)
print("这是LuaTest2");
StartCoroutine(function() this:loadIE(); end);
end
--协成
function LuaTest2:loadIE()
--找到物体,修改值
local go = GameObject.Find("Canvas/Butt... | nilq/small-lua-stack | null |
local result = redis.call('SETNX', KEYS[1], ARGV[1])
if tonumber(result) == 1 then
redis.call('EXPIRE', KEYS[1], ARGV[2])
end
return tostring(result) | nilq/small-lua-stack | null |
local function testSpawnRegion()
if IsValid(sregion) then sregion:Remove() end
if IsValid(sponent) then sponent:Remove() end
local pos = player.GetAll()[1]:GetEyeTrace().HitPos
sregion = ents.Create("fite_spawnregion")
sregion:SetPos(pos)
sregion:Spawn()
sponent = ents.Create("prop_physics")
sponent:SetPos(... | nilq/small-lua-stack | null |
local flake = require 'flake'
local ops = require 'operatorBuilders'
local list = require 'list'
local testDirs = list:new {
'directory',
'copyToSelf',
}
local builds = testDirs:map(flake.importBuild)
local function main(ps)
return builds:map(function(bld) return bld.main(ps) end)
end
local functi... | nilq/small-lua-stack | null |
local path = require 'lib.path'
local sqlite = require 'lsqlite3complete'
local Logs = require 'lib.logs'
local i18n = require 'i18n'
local fun = require 'lib.fun'
---Reads data from a card database (.cdb file)
local DataFetcher = {}
---@alias CardData table<string, string|number>
local ESC_REPL = {['<'] = '<', [... | nilq/small-lua-stack | null |
local config = {
[10000000] = {
type_id = 10000000, name = [[道具1]], icon = 10000000, type = 1,
},
}
return config | nilq/small-lua-stack | null |
local awful = require 'awful'
local bling = require 'modules.bling'
awful.layout.layouts = {
awful.layout.suit.floating,
awful.layout.suit.tile,
awful.layout.suit.spiral.dwindle,
awful.layout.suit.max.fullscreen,
awful.layout.suit.magnifier,
-- awful.layout.suit.tile.left,
-- awful.layout.suit.tile.bottom,
-- awf... | nilq/small-lua-stack | null |
hour_str = {"sat", "sata"} | nilq/small-lua-stack | null |
-- Copyright (C) Asseco Poland SA
--[[ -------------------------------------------------
Plugin Description:
Copying JWT Key from request body to Authorization header.
Supported Content-Type: x-www-form-urlencoded.
Plugin Params:
- config.cloning_field - field name in body with JWT Key
- config.header_overwr... | nilq/small-lua-stack | null |
project "Sandbox"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
staticruntime "on"
targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}")
objdir ("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}")
files
{
"./**.h",
"./**.cpp"
}
includedirs
{
"%{wks.location}/src/external/spd... | nilq/small-lua-stack | null |
-- module: Application window actions
local m = {}
-- App/window actions are defined in appactions.lua
local A = require('appactions')
-- table for converting events to strings when debugging
local DEBUG = {
[0] = 'launching',
[1] = 'launched',
[2] = 'terminated',
[3] = 'hidden',
[4] = 'unhidden',
[5] = '... | nilq/small-lua-stack | null |
--クリスタルクリアウィング・シンクロ・ドラゴン
--Scripted by mallu11
function c100425004.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSynchroType,TYPE_SYNCHRO),aux.NonTuner(Card.IsSetCard,0xff),1,1)
c:EnableReviveLimit()
--immue
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.String... | nilq/small-lua-stack | null |
sudo={180191663,207213049,158955285}
| nilq/small-lua-stack | null |
-- デフォルト歌詞の設定
defaultlyrics = "la"
setdefaultlyrics = "la"
motiontype = {}
--[[
motiontype[1]: ノート追加場所
0: メインノートグループの後ろ
1: トラックの一番後ろ
]]
motiontype[1] = 1
Q = SV.QUARTER
function getClientInfo()
return {
name = SV:T("Move Back Lyrics"),
category = "Lyrics",
author = "Yukikazari",
... | nilq/small-lua-stack | null |
local settings = require './settings'
local Embed = require 'embed-constructor'
return function(msg)
local embed = Embed()
:setTitle 'Error :x:'
:setColor 'red'
:setDescription(msg)
:setFooter(settings.footer)
:setTimestamp()
:finish();
return embed
end | nilq/small-lua-stack | null |
print("**************************toLua调用CSharp中的ref和out方法*************")
--toLua和Xlua中对ref和out函数的使用基本类似
--通过多返回值形式进行处理
--如果 是out和ref函数
--第一个返回值 是函数的默认返回值
--之后的返回值 就是ref 和 out对应的结果 从左到右 一一对应
local obj = Lesson5()
print(obj:RefFun(10,0,0,1))
local a,b,c = obj:RefFun(10,0,0,1)
print("a:" .. a)
print("b:" .. b)
print(... | nilq/small-lua-stack | null |
-- luacheck: max line length 150
local sys = require'sys'
local nvim = require'nvim'
-- local split = require'tools'.strings.split
local iregex = require'tools'.strings.iregex
local executable = require'tools'.files.executable
local is_file = require'tools'.files.is_file
local writefile ... | nilq/small-lua-stack | null |
--[[
█▀▀█ █░░█ █▀▀█ █▀▀ █▀▀▄ ░▀░ █░█ █▀▀ ▀▀█▀▀ █░░█ █▀▀▄ ░▀░ █▀▀█
█░░█ █▀▀█ █░░█ █▀▀ █░░█ ▀█▀ ▄▀▄ ▀▀█ ░░█░░ █░░█ █░░█ ▀█▀ █░░█
█▀▀▀ ▀░░▀ ▀▀▀▀ ▀▀▀ ▀░░▀ ▀▀▀ ▀░▀ ▀▀▀ ░░▀░░ ░▀▀▀ ▀▀▀░ ▀▀▀ ▀▀▀▀
PROGRAMADOR: BYBLACKDEATH
]]--
resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
name 'Phoenix... | nilq/small-lua-stack | null |
local Deque = require 'Deque'
local cases = {
length = function()
local self = Deque()
self:enqueue( 'a' )
self:push( 'b' )
self:pushhead( 'c' )
self:pushtail( 'd' )
return #self == 4 and self:len() == 4
end,
enq_deq = function()
local self = Deque()
self:enqueue( 'a' )
self:enqueue( 'b' )
self... | nilq/small-lua-stack | null |
-- trail_flame
return {
["trail_flame"] = {
fakelight = {
air = false,
class = [[CSimpleGroundFlash]],
count = 4,
ground = true,
water = false,
properties = {
colormap = [[1 0.5 0.25 1 0 0 ... | nilq/small-lua-stack | null |
-- explosion_huge_tesla_base
-- explosion_huge_gok
-- explosion_hugelight_gok
return {
["explosion_gok"] = {
smoke = {
air = true,
class = [[CSimpleParticleSystem]],
count = 2,
ground = true,
water = true,
prope... | nilq/small-lua-stack | null |
function clamp(low, n, high) return math.min(math.max(n, low), high) end
function create() end
function update(dt)
-- general stuff
local speed = 5.0 * dt
local mouseSpeed = 35.0 * dt
local object = GameEntity.new(current_entity())
local transformation = object.transformation
local front = vec3Mul... | nilq/small-lua-stack | null |
-- this whole mod is just a thin wrapper around https://github.com/davidm/lua-matrix
local mod_path = minetest.get_modpath(minetest.get_current_modname())
complex = dofile(mod_path .. "/complex.lua")
-- that's it
| nilq/small-lua-stack | null |
require "nanovg"
local vg = require "vg"
local fontIcons,fontNormal,fontBold
local ICON_SEARCH = 0x1F50D
local ICON_CIRCLED_CROSS = 0x2716
local ICON_CHEVRON_RIGHT = 0xE75E
local ICON_CHECK = 0x2713
local ICON_LOGIN = 0xE740
local ICON_TRASH = 0xE729
local function clampf(a, mn, mx)
return a < mn and mn or (a > mx ... | nilq/small-lua-stack | null |
apo = require('actor_post_office')
p = print
function a1(self_addr, a, b, c)
print("a1", self_addr, a, b, c)
while true do
x, y, z = apo.recv()
p("a1 recv'ed ", x, y, z)
end
end
a1_addr = apo.spawn(a1, 111, 222, 333)
apo.send(a1_addr, 1, 2, 3)
apo.send(a1_addr, 2, 3, 4)
-----------------------------... | nilq/small-lua-stack | null |
--[[
strefy bez dm
@author Jakub 'XJMLN' Starzak <jack@pszmta.pl
@package PSZMTA.psz-strefy
@copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl>
Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie.
]]--
local strefy = {
{1637.84,1283.94,9.65,80,36.25,25,int=0,vw=0}, -- LV spawn
... | nilq/small-lua-stack | null |
--[[
- SKYNET SIMPLE ( https://github.com/viticm/skynet-simple )
- $Id init.lua
- @link https://github.com/viticm/skynet-simple for the canonical source repository
- @copyright Copyright (c) 2020 viticm( viticm.ti@gmail.com )
- @license
- @user viticm( viticm.ti@gmail.com )
- @date 2020/09/07 19:25
- @uses The ... | nilq/small-lua-stack | null |
-- Snippets
--[[
Textadept stores its built-in snippets in the global variable "snippets".
I don't want to erase those. Instead I want to _add_ to them, overwriting
defaults where necessary.
Also here (scroll down): Key Chains
--]]
-- a function to insert user defined snippets into the global snippets
function merge... | nilq/small-lua-stack | null |
-- Generated by CSharp.lua Compiler
local System = System
local SlipeMtaDefinitions
local SystemNumerics
System.import(function (out)
SlipeMtaDefinitions = Slipe.MtaDefinitions
SystemNumerics = System.Numerics
end)
System.namespace("Slipe.Client.Dx", function (namespace)
-- <summary>
-- Class representing a tex... | nilq/small-lua-stack | null |
function f8Pressed()
local name = getBufferName()
newBuffer()
setBufferName("error")
print2(getErrorText())
print2("")
print2("")
print2([[do]])
print2([[ closeBuffer()]])
print2([[ switchToBuffer("]] .. name .. [[")]])
print2([[end]])
edSetPosition(0)
clearError()
end
function f9Pressed()
... | nilq/small-lua-stack | null |
--------------------------------
-- @module Liquid
-- @extend Grid3DAction
-- @parent_module cc
---@class cc.Liquid:cc.Grid3DAction
local Liquid = {}
cc.Liquid = Liquid
--------------------------------
--- brief Set the amplitude rate of the effect.
--- param amplitudeRate The value of amplitude rate will be set.
--... | nilq/small-lua-stack | null |
SellOMatic_Destroy = LibStub("AceAddon-3.0"):NewAddon("SellOMatic_Destroy", "AceEvent-3.0", "AceConsole-3.0");
local SellOMatic = _G.SellOMatic;
local item_tooltip = LibStub("LibGratuity-3.0");
local L = LibStub("AceLocale-3.0"):GetLocale("SellOMatic");
local function getOption(info)
return (info.arg and SellOMatic.d... | nilq/small-lua-stack | null |
ITEM.name = "Duct Tape"
ITEM.description = "itemDuctTapeDesc"
ITEM.price = 12
ITEM.model = "models/mosi/fallout4/props/junk/ducttape.mdl" | nilq/small-lua-stack | null |
if GetBot():IsInvulnerable() or not GetBot():IsHero() or not string.find(GetBot():GetUnitName(), "hero") or GetBot():IsIllusion() then
return;
end
local ability_item_usage_generic = dofile( GetScriptDirectory().."/ability_item_usage_generic" )
local utils = require(GetScriptDirectory() .. "/util")
local mutil = req... | nilq/small-lua-stack | null |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
client_script "clientHospital.lua"
server_script "serverHospital.lua" | nilq/small-lua-stack | null |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf/protobuf"
module('FirstPassStageInfo_pb')
FIRSTPASSSTAGEINFO = protobuf.Descriptor();
local FIRSTPASSSTAGEINFO_FIRSTPASSID_FIELD = protobuf.FieldDescriptor();
local FIRSTPASSSTAGEINFO_ISGETREWARD_FIELD = protobuf.FieldDescriptor();
local FI... | nilq/small-lua-stack | null |
-- ======================================================================
-- Shuttle Search
-- Advent of Code 2020 Day 13 -- Eric Wastl -- https://adventofcode.com
--
-- lua implementation by Dr. Dean Earl Wright III
-- ======================================================================
-- =======================... | nilq/small-lua-stack | null |
require("runtime-core/src/h")
require("runtime-core/src/vnode")
describe('renderer: h', function()
test('type only', function()
expect(h('div')):toMatchObject(createVNode('div'))
end
)
test('type + props', function()
expect(h('div', {id='foo'})):toMatchObject(createVNode('div', {id='foo'}))
end
)
... | nilq/small-lua-stack | null |
woodworking = {
craft = function(player, npc, speech)
local t = {
graphic = convertGraphic(npc.look, "monster"),
color = npc.lookColor
}
player.npcGraphic = t.graphic
player.npcColor = t.color
player.dialogType = 0
player.lastClick = npc.ID
if speech == "wood" then
local choices = {
"Melee ... | nilq/small-lua-stack | null |
local S = minetest.get_translator("homedecor_foyer")
homedecor.register("coatrack_wallmount", {
tiles = { homedecor.plain_wood },
inventory_image = "homedecor_coatrack_wallmount_inv.png",
description = S("Wall-mounted coat rack"),
groups = {snappy=3},
sounds = default.node_sound_wood_defaults(),
node_box = {
t... | nilq/small-lua-stack | null |
return {'erlangs','erlings','erlecomse'} | nilq/small-lua-stack | null |
ts_vehicles_common.register_tank_compatibility = function(vehicle)
ts_vehicles.register_compatibility(vehicle, "ts_vehicles_common:gasoline_tank", {})
ts_vehicles.register_compatibility(vehicle, "ts_vehicles_common:hydrogen_tank", {})
ts_vehicles.register_compatibility(vehicle, "ts_vehicles_common:battery",... | nilq/small-lua-stack | null |
-- luacheck: globals GetLocale GetAddOnMetadata
if (GetLocale() == "zhCN") then
rggm = rggm or {}
rggm.L = {}
rggm.L["addon_name"] = "GearMenu"
-- console
rggm.L["help"] = "|cFFFFC300(%s)|r: 输入 |cFFFFC300/rggm|r 或 |cFFFFC300/gearmenu|r 打开选项列表"
rggm.L["opt"] = "|cFFFFC300opt|r - 显示设置菜单"
rggm.L["reload"] ... | nilq/small-lua-stack | null |
----
-- xl/Sound.lua
--
-- A sound engine for Reverie. That's really all there is to it.
----
local Timer = require "hump.timer"
-- Constant specifying how long to fade out the music
local MUSIC_FADE_TIME = 2
local effectsPath = "assets/sfx/"
local musicPath = "assets/music/"
local effects = {}
local music = {}
lo... | nilq/small-lua-stack | null |
-- This Source Code Form is subject to the terms of the MIT License
-- Copyright 2016 Frédéric VANNIÈRE <f.vanniere@planet-work.com>
--[[
# Syslog Basic Decoder Module
## Decoder Configuration Table
```lua
-- template (string) - The 'template' configuration string from rsyslog.conf
-- see http://rsyslog-5-8-6-doc.ne... | nilq/small-lua-stack | null |
-- NoticeForRecord.lua
-- Author:Demon
-- Date:2016/3/8
-- Last modification:
-- Description:
-- Note:
local newObjectCaseRecordNotice = require(ViewPath .. "hall/newObjectCase/newObjectCaseRecordNotice");
require("common/IPopDialogManager");
local hallLayerBaseWithName = require("hall/widget/hallLayerBaseWit... | nilq/small-lua-stack | null |
AddCSLuaFile()
DEFINE_BASECLASS("drivable_gun_ar2")
ENT.Base = "drivable_gun_ar2"
ENT.Author = "TankNut"
ENT.Model = Model("models/weapons/w_smg1.mdl")
ENT.HoldType = "smg1"
ENT.FireRate = 60 / 800
ENT.Spread = 5
function ENT:DoFire()
if CurTime() - self:GetLastFire() < self.FireRate then
... | nilq/small-lua-stack | null |
require('gitsigns').setup {
-- signs config
current_line_blame = false, --enable to see the person that made the last change.
current_line_blame_opts = {
virt_text_pos = 'right_align'
}
}
| nilq/small-lua-stack | null |
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local B = E:GetModule('Blizzard')
local Skins = E:GetModule('Skins')
local _G = _G
local CreateFrame = CreateFrame
local IsAddOnLoaded = IsAddOnLoaded
function B:Initialize()
self.Initialized = true
self:Enhance... | nilq/small-lua-stack | null |
--[[
LuCI - Lua Configuration Interface
Copyright 2009 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
lo... | nilq/small-lua-stack | null |
local t = Def.ActorFrame {};
t[#t+1] = StandardDecorationFromFileOptional("BackgroundFrame","BackgroundFrame");
return t | nilq/small-lua-stack | null |
local Roact = require(game.ReplicatedStorage.Roact)
local TweenService = game:GetService("TweenService")
local UpdateAlert = Roact.Component:extend("UpdateAlert")
local fade = TweenInfo.new(1, Enum.EasingStyle.Quint, Enum.EasingDirection.Out)
function UpdateAlert:init()
self.updateRef = Roact.createRef()
sel... | nilq/small-lua-stack | null |
object_tangible_component_weapon_new_weapon_enhancement_melee_slot_two_s07 = object_tangible_component_weapon_new_weapon_shared_enhancement_melee_slot_two_s07:new {
}
ObjectTemplates:addTemplate(object_tangible_component_weapon_new_weapon_enhancement_melee_slot_two_s07, "object/tangible/component/weapon/new_weapon/en... | nilq/small-lua-stack | null |
module("luci.controller.autoupdate",package.seeall)
function index()
entry({"admin","system","autoupdate"},cbi("autoupdate"),_("AutoUpdate"),99)
end
| nilq/small-lua-stack | null |
client_scripts {
"mapmanager_shared.lua",
"mapmanager_client.lua"
}
server_scripts {
"mapmanager_shared.lua",
"mapmanager_server.lua"
}
fx_version 'adamant'
games { 'gta5', 'rdr3' }
server_export "getCurrentGameType"
server_export "getCurrentMap"
server_export "changeGameType"
server_export "changeMa... | nilq/small-lua-stack | null |
local skynet = require 'skynet'
return {
get = function(self)
local get = ngx.req.get_uri_args()
local ioe_data = skynet.call(".upgrader", "lua", "latest_version", "freeioe", true)
assert(ioe_data)
local skynet_data = skynet.call(".upgrader", "lua", "latest_version", "skynet", true)
assert(skynet_data)
l... | nilq/small-lua-stack | null |
gl.setup(400, 400)
function readln()
return coroutine.yield()
end
if not N.clients then
N.clients = {}
end
node.event("connect", function(client)
local handler = coroutine.wrap(echo)
N.clients[client] = handler
handler(function(...)
node.client_write(client, ...)
end)
end)
node.event... | 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.