content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
position = {x = 47.3906326293945, y = 0.947854518890381, z = 14.9340381622314}
rotation = {x = 2.68935082203825E-07, y = 270.004608154297, z = -1.25960523291724E-05}
| nilq/small-lua-stack | null |
--
-- tiledmaphandler.lua
-- lua-astar
--
-- Created by Jay Roberts on 2011-01-12.
-- Copyright 2011 GloryFish.org. All rights reserved.
--
require 'middleclass'
TiledMapHandler = class('TiledMapHandler')
function TiledMapHandler:initialize()
self.tiles = {
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,... | nilq/small-lua-stack | null |
-- SPI PinAssign Table
-- PIO[0]: MOSI(Out) : FlashAir Pin2 CMD
-- PIO[1]: SCLK(Out) : FlashAir Pin7 DAT0
-- PIO[2]: /SS(Out) : FlashAir Pin8 DAT1
-- PIO[3]: MISO(In) : FlashAir Pin9 DAT2
-- PIO[4]: INT(In) : FlashAir Pin1 CD/DAT3
-- g_spi_cs: SPI CS IO state(0,1)
-- g_spi_mode: SPI mode (0,1,2,3)
g_spi_m... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Inner Horutoto Ruins (192)
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[tpz.zone.INNER_HORUTOTO_RUINS] =
{
text =
{
PORTAL_SEALED_BY_3_MAGIC = 8, -- The Sealed Portal ... | nilq/small-lua-stack | null |
local detectives = {};
local detective_color = Color(0, 0, 255);
net.Receive("Detectives", function()
table.Empty(detectives);
detectives = net.ReadTable();
end);
hook.Add("PreDrawHalos", "DetectiveHalos", function()
local ply_role = LocalPlayer():GetRole();
if (ply_role == ROLE_DETECTIVE and LocalPlayer():A... | nilq/small-lua-stack | null |
require 'class'
require 'sprite'
class 'gui'
gui.children = {}
gui.atlas = Sprite( 'data/sprites', 'gui' )
function gui:addChild( child )
-- should check all the methods are present ...
table.insert( self.children, child )
end
function mouseMoved(b,time,x,y)
for _,child in pairs( gui.children ) do
... | nilq/small-lua-stack | null |
-- test_journal_cursor.lua
--[[
Test using SDJournal as a cursor over the journal entries
In this case, we want to try the various cursor positioning
operations to ensure the work correctly.
--]]
package.path = package.path..";../src/?.lua"
local SDJournal = require("SDJournal")
local sysd = require("systemd_ffi"... | nilq/small-lua-stack | null |
local view = {}
view.__index = view
local player = game.Players.LocalPlayer
local RunService = game:GetService("RunService")
view.DistanceFromCharacter = 5
local offsets = setmetatable({}, {
__call = function(_, mode, Chrt, distance)
distance = distance or view.DistanceFromCharacter
if mode:lower() == "front" t... | nilq/small-lua-stack | null |
object_tangible_component_reverse_engineering_power_bit = object_tangible_component_reverse_engineering_shared_power_bit:new {
}
ObjectTemplates:addTemplate(object_tangible_component_reverse_engineering_power_bit, "object/tangible/component/reverse_engineering/power_bit.iff")
| nilq/small-lua-stack | null |
if not loadStatFile then
dofile("statdesc.lua")
end
loadStatFile("stat_descriptions.txt")
local itemClassMap = {
["LifeFlask"] = "Flask",
["ManaFlask"] = "Flask",
["HybridFlask"] = "Flask",
["Amulet"] = "Amulet",
["Ring"] = "Ring",
["Claw"] = "Claw",
["Dagger"] = "Dagger",
["Wand"] = "Wand",
["One Hand Sword... | nilq/small-lua-stack | null |
return {'acacia','acaciahout','acacialaan','academica','academicus','academie','academiegebouw','academiejaar','academiestad','academietijd','academievergadering','academievriend','academisch','academisme','acajou','acajouboom','acanthus','acanthusblad','academielid','academieopleiding','academieburger','acacias','acac... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Miuseloir B Enchelles
-- !pos 120 0 104 80
-----------------------------------
------------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
player:startEvent(154);
end;
function onEventUpdate... | nilq/small-lua-stack | null |
--[[
Workstealing architecture
**************************************** PUC-RIO 2014 ****************************************
Implemented by:
- Breno Riba
Implemented on October 2014
**********************************************************************************************
]]--
local workstealing... | nilq/small-lua-stack | null |
local update_formspec = function(meta)
local text = meta:get_string("text")
meta:set_string("infotext", "Dialogue block: '" .. text .. "'")
meta:set_string("formspec", "size[8,2;]" ..
"field[0.2,0.5;8,1;text;Text;" .. text .. "]" ..
"button_exit[0.1,1.5;8,1;save;Save]" ..
"")
end
-- player -> {}
local active... | nilq/small-lua-stack | null |
--------------------------------
-- @module CheckBox
-- @extend AbstractCheckButton
-- @parent_module ccui
--------------------------------
-- Add a callback function which would be called when checkbox is selected or unselected.<br>
-- param callback A std::function with type @see `ccCheckBoxCallback`
-- @function [... | nilq/small-lua-stack | null |
local Events = require "scripts/ToolKit/events"
local Utilities = require "scripts/ToolKit/utilities"
local PlayerAnimationController = {
Properties = {
Debug = true,
Animations = {
Right = EntityId(),
Left = EntityId(),
Up = EntityId(),
Down = EntityId(),
WalkDown = EntityId(),
WalkUp = EntityI... | nilq/small-lua-stack | null |
local Prop = {}
Prop.Name = "Mesa 3-315 Grif Dr"
Prop.Cat = "Apartments"
Prop.Price = 750
Prop.Doors = {
Vector( 254, 8190, 804 ),
Vector( -78, 7938, 804 ),
Vector( -198, 7982, 804 ),
Vector( -78, 8066, 804 ),
Vector( -50, 8446, 804 ),
}
GM.Property:Register( Prop ) | nilq/small-lua-stack | null |
fx_version "cerulean"
games { "gta5" }
ui_page "html/index.html"
files {
"html/index.html",
"html/script.js",
"html/style.css",
"html/doorL1.png",
"html/doorL2.png",
"html/doorR1.png",
"html/doorR2.png",
"html/hood.png",
"html/trunk.png",
"html/seat.png",
"html/windowL1.png... | nilq/small-lua-stack | null |
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
local beautiful = require("beautiful")
local naughty = require("naughty")
local menubar = require("menubar")
local hotkeys_popup = require("awful.hotkeys_popup")
require("awful.hotkeys_popup.keys")
--local mymainmenu = require("wi... | nilq/small-lua-stack | null |
-- Start this file with a command like:
-- >lua launchPlotServer.lua "PARENT PORT" portNum
local args = {...} -- arguments given by parent
-- Search for PARENT PORT number and store it in parentPort global variable
for i=1,#args,2 do
--print(args[i],args[i+1],args[i]=="PARENT PORT",#args[i])
if args[i] == "P... | nilq/small-lua-stack | null |
function SpawnPoints()
return {
constructionworker = {
{ worldX = 30, worldY = 21, posX = 297, posY = 177, posZ = 0 },
{ worldX = 30, worldY = 21, posX = 297, posY = 123, posZ = 0 }
},
fireofficer = {
{ worldX = 30, worldY = 21, posX = 297, posY = 177, posZ = 0 },
{ worldX = 30, worldY = 21, posX ... | nilq/small-lua-stack | null |
local utils = require "utils"
-- For debugging purposes
_G.dump = function(...)
print(vim.inspect(...))
end
_G.warn= function(msg, name)
utils.log(msg, name, "DiagnosticWarn")
end
_G.error = function(msg, name)
utils.log(msg, name, "DiagnosticError")
end
_G.info = function(msg, name)
utils.log(msg, name, "D... | nilq/small-lua-stack | null |
return function()
local ScreenSize = require(script.Parent.ScreenSize)
local AvatarEditorPrompts = script.Parent.Parent
local Actions = AvatarEditorPrompts.Actions
local ScreenSizeUpdated = require(Actions.ScreenSizeUpdated)
it("should have the correct default value", function()
local defaultState = ScreenSize... | nilq/small-lua-stack | null |
local bin = require "bin"
local nmap = require "nmap"
local shortport = require "shortport"
local stdnse = require "stdnse"
local string = require "string"
local table = require "table"
description = [[
Enumerates Siemens S7 PLC Devices and collects their device information. This
script is based off PLCScan that was ... | nilq/small-lua-stack | null |
#!/usr/bin/env lua5.3
local awful = require("awful")
local wibox = require("wibox")
local gears = require("gears")
local easing = require("modules.libraries.backend.easing")
local naughty = require("naughty")
local animation = {
mt = {},
}
local function create_animation(args)
if type(args) ~= "table" then
... | nilq/small-lua-stack | null |
//________________________________
//
// NS2 Combat Mod
// Made by JimWest and MCMLXXXIV, 2012
//
//________________________________
// combat_Utility.lua
// Used to send messages to all players.
function SendGlobalChatMessage(message)
local allPlayers = Shared.GetEntitiesWithClassname("Player")
if (allPlay... | nilq/small-lua-stack | null |
--[[
Copyright (c) 2011-2014 chukong-inc.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 use, copy, modify, merge, publi... | nilq/small-lua-stack | null |
return {'hysop','hysterica','hystericus','hysterie','hysterisch','hystericae','hysterici','hysterische','hysterischer'} | nilq/small-lua-stack | null |
local linkBodyToBone = {
[3] = 4,
[4] = 1,
[5] = 23,
[6] = 33,
[7] = 52,
[8] = 42,
[9] = 5,
}
local linkBodyToFly = {
[3] = 0,
[4] = 1,
[5] = 1,
[6] = 0,
[7] = 1,
[8] = 0,
[9] = 1,
}
-- 1 = Text flows Left side
-- 0 = Text flows Right Side
local drawTextQueue = ... | nilq/small-lua-stack | null |
--[[ =================================================================
Description:
All strings (German) used by MailTips.
================================================================= --]]
-- Strings used within MailTips
if (GetLocale()=="deDE") then
MT_STARTUP_MESSAGE = MT_NAME.." ("..C_GREEN... | nilq/small-lua-stack | null |
--[[
A very simple wrapper for the DataStore methods.
Do you ever find yourself typing the word "Async" over and over again every
time you work with DataStores? There's got to be a better way!
Well now there is! With this simple module you will never need to type the
word "Async" again. Thaaat's right, for ... | nilq/small-lua-stack | null |
slot2 = "DdzRoomBgAutoAdaptWidthCcsPane"
DdzRoomBgAutoAdaptWidthCcsPane = class(slot1)
DdzRoomBgAutoAdaptWidthCcsPane.onCreationComplete = function (slot0)
slot4 = BgAutoAdaptWidthCcsPane
ClassUtil.extends(slot2, slot0)
BgAutoAdaptWidthCcsPane.onCreationComplete(slot2)
slot4 = slot0._newTxt
slot0._newTxt._posX ... | nilq/small-lua-stack | null |
------------------------------
local a,b; return 1,a,b
------------------------------
success compiling learn.lua
; source chunk: learn.lua
; x86 standard (32-bit, little endian, doubles)
; function [0] definition (level 1) 0
; 0 upvalues, 0 params, is_vararg = 2, 5 stacks
.function 0 0 2 5
.local "a" ; 0
.local "... | nilq/small-lua-stack | null |
--[[
Author: Miqueas Martinez (miqueas2020@yahoo.com)
Date: 2020/04/30
Git repository: https://github.com/Miqueas/Self
zlib License
Copyright (c) 2020 - 2022 Miqueas Martinez
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any ... | nilq/small-lua-stack | null |
fio = require('fio')
net = require('net.box')
fiber = require('fiber')
ext = (jit.os == "OSX" and "dylib" or "so")
build_path = os.getenv("BUILDDIR")
reload1_path = build_path..'/test/box/reload1.'..ext
reload2_path = build_path..'/test/box/reload2.'..ext
reload_path = "reload."..ext
_ = fio.unlink(reload_path)
c = ... | nilq/small-lua-stack | null |
--------------------------------
---- Created by Cheglalw83 -----
--------------------------------
Locales['fr'] = {
['vending'] = 'Attend un peu.',
['machine'] = 'Machine à boissons',
['machines'] = 'Machine à boissons',
['press_context'] = 'Appuyez sur ~INPUT_CONTEXT~ pour acheter dans la machine',
['bought'] =... | nilq/small-lua-stack | null |
local beautiful = require('beautiful')
local gears = require('gears')
local icons = require('theme.icons')
local theme_dir = gears.filesystem.get_configuration_dir() .. 'theme/'
local xresources = beautiful.xresources
local colors = xresources.get_current_theme()
local dpi = xresources.apply_dpi
local theme = {
--#... | nilq/small-lua-stack | null |
--[[
actionBar.lua
the code for Dominos action bars and buttons
--]]
--[[ globals ]]--
local Dominos = _G['Dominos']
local ActionButton = Dominos.ActionButton
local HiddenFrame = CreateFrame('Frame'); HiddenFrame:Hide()
local MAX_BUTTONS = 120
local ceil = math.ceil
local min = math.min
local format = string.fo... | nilq/small-lua-stack | null |
-- scaffolding entry point for EASTL
return dofile("EASTL.lua")
| nilq/small-lua-stack | null |
return {'zich','zicht','zichtas','zichtbaar','zichtbaarheid','zichten','zichter','zichtlijn','zichtlocatie','zichtlocaties','zichtrekening','zichtzending','zichzelf','zichttermijn','zichtveld','zichtdekking','zichtvermogen','zichtzijde','zichtbeton','zichem','zico','zichtbaarder','zichtbaars','zichtbaarst','zichtbare',... | nilq/small-lua-stack | null |
package 'gluon-web-mesh-vpn-fastd'
entry({"admin", "mesh_vpn_fastd"}, model("admin/mesh_vpn_fastd"), _("Mesh VPN"), 50)
| nilq/small-lua-stack | null |
fx_version "cerulean"
games {"gta5"}
dependencies {
'yarn',
'PolyZone'
}
files {
'nui/ui.html',
'nui/ui.css',
'nui/ui.js'
}
ui_page "nui/ui.html"
-- Common Scripts
client_scripts {
'@PolyZone/client.lua',
'@PolyZone/BoxZone.lua',
'@PolyZone/EntityZone.lua',
'@PolyZone/CircleZone.lua',
'@Po... | nilq/small-lua-stack | null |
describe("TestAttacks", function()
before_each(function()
newBuild()
end)
teardown(function()
-- newBuild() takes care of resetting everything in setup()
end)
it("adds envy, ensures +1 level keeps level 25 Envy", function()
build.itemsTab:CreateDisplayItemFromRaw("New Item\... | nilq/small-lua-stack | null |
qtun = {
log = {
syslog = function (level, fmt, ...)
_syslog(level, string.format(fmt, ...))
end
}
}
function trim(s)
return s:gsub('^%s*(.-)%s*$', '%1')
end
function is_numeric(s)
return tonumber(s) ~= nil
end
function is_string(s)
return not is_numeric(s)
end | nilq/small-lua-stack | null |
SetSunLightingCommand = Command:extends{}
SetSunLightingCommand.className = "SetSunLightingCommand"
function SetSunLightingCommand:init(opts)
self.opts = opts
self._execute_unsynced = true
self.mergeCommand = "MergedCommand"
end
function SetSunLightingCommand:execute()
if not self.old then
sel... | nilq/small-lua-stack | null |
require "string_helper"
local M = {}
--print((" asd sad a dsa "):trim() .. ',')
M.escape = function ( data , doTrim)
if data and type(data) == 'string' then
return data:gsub("[<>&\"]",
{
["&"]="&", --特殊符号必须用[]
["<"]="<",
[">"]=">",
["\""]="""
... | nilq/small-lua-stack | null |
hook.Add("Initialize", "gmod_tool_override", function()
local SWEP = weapons.GetStored("gmod_tool")
function SWEP:DoShootEffect(hitpos, hitnormal, entity, physbone, bFirstTimePredicted)
local left = math.random(1, 2) == 1
local snd
if left then
snd = "npc/stalker/stalker_footstep_left" .. math.random(1, 2)... | nilq/small-lua-stack | null |
tigris.mobs.register("tigris_mobs_monsters:wolf", {
description = "Wolf",
collision = {-0.4, -0.4, -0.4, 0.4, 0.4, 0.4},
box = {
{-0.25, 0, -0.5, 0.25, 0.6, 0.5},
{-0.25, -0.5, -0.5, -0.1, 0, -0.35},
{0.1, -0.5, -0.5, 0.25, 0, -0.35},
{-0.25, -0.5, 0.35, -0.1, 0, 0.5},
... | nilq/small-lua-stack | null |
local kAddonName, addon = ...
addon.actions = {}
local L = LibStub('AceLocale-3.0'):GetLocale(kAddonName)
addon.actions.commandExecutor = _G.ChatEdit_SendText
addon.actions.delayedCommandExecutor = _G.C_Timer.After
local actionEditbox = _G.CreateFrame('EditBox', kAddonName .. '_ActionEditBox')
actionEditbox:Hide()
... | nilq/small-lua-stack | null |
local FunctionNode = require("luasnip.nodes.node").Node:new()
local util = require("luasnip.util.util")
local types = require("luasnip.util.types")
local function F(fn, args, ...)
return FunctionNode:new({
fn = fn,
args = util.wrap_value(args),
type = types.functionNode,
mark = nil,
user_args = { ... },
})... | nilq/small-lua-stack | null |
--This bot is heavily dependent on file operations, therefore this library exists.
local file = {}
local json
if pcall(import,"json") then
json = import("json")
elseif pcall(require,"json") then
json = require("json")
end
file.safe = true
file.read = function(filename,mode)
assert(type(filename) == "string"... | nilq/small-lua-stack | null |
Ship = require "game/Ship"
-- Ship MODEL: WD-1
local WD1 = {}
WD1.__index = WD1
function WD1:create(world, player)
local ship = Ship:create(world, player)
-- Load ship image
ship.image = love.graphics.newImage("asset/ship1.png")
-- Create animation properties
ship.sprite = newAnimation(ship.imag... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Port Bastok
-- NPC: Latifah
-- Involved in Quest: Stamp Hunt
-----------------------------------
require("scripts/globals/quests")
-----------------------------------
function onTrade(player, npc, trade)
end
function onTrigger(player, npc)
local StampHunt = player:get... | nilq/small-lua-stack | null |
local tArgs = { ... }
if not commands then
printError("Requires a Command Computer.")
return
end
if #tArgs == 0 then
local programName = arg[0] or fs.getName(shell.getRunningProgram())
printError("Usage: " .. programName .. " <command>")
return
end
local function printSuccess(text)
if term.isCo... | nilq/small-lua-stack | null |
me = game.Players.luxulux
char = me.Character
selected = false
attacking = false
hurt = false
DERPTRAIN = false
ULTRADURPMODE = false
if ULTRADURPMODE == true then
normaldmg = 1234567891011121314151617181920
normaldmg = 0
else
normaldmg = 1000
end
splashdmg = normaldmg * 2
dmg = normaldmg
function moo1()
loca... | nilq/small-lua-stack | null |
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
Clockwork was created by Conna Wiles (also known as kurozael.)
http://cloudsixteen.com/license/clockwork.html
--]]
local PANEL = {};
-- Called when the panel is initialized.
function PANEL:Init()
... | nilq/small-lua-stack | null |
local oo = require("oo")
local ui = require("ui")
local MenuButton = oo.class("ui.MenuButton", ui.Button)
-- TODO
return MenuButton
| nilq/small-lua-stack | null |
object_mobile_dressed_ep3_forest_npc_greeter = object_mobile_shared_dressed_ep3_forest_npc_greeter:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_ep3_forest_npc_greeter, "object/mobile/dressed_ep3_forest_npc_greeter.iff")
| nilq/small-lua-stack | null |
AddCSLuaFile("shared.lua")
include("shared.lua")
/*-----------------------------------------------
*** Copyright (c) 2012-2018 by DrVrej, All rights reserved. ***
No parts of this code or any of its contents may be reproduced, copied, modified or adapted,
without the prior written consent of the author, unless other... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Cloister of Storms
-- NPC: Lightning Protocrystal
-- Involved in Quests: Trial by Lightning
-- !pos 534.5 -13 492 202
-----------------------------------
require("scripts/globals/missions");
local ID = require("scripts/zones/Cloister_of_Storms/IDs");
require("scripts/global... | nilq/small-lua-stack | null |
local holeId = {
294, 369, 370, 383, 392, 408, 409, 410, 427, 428, 429, 430, 462, 469, 470, 482,
484, 485, 489, 924, 1369, 3135, 3136, 4835, 4837, 7933, 7938, 8170, 8249, 8250,
8251, 8252, 8254, 8255, 8256, 8276, 8277, 8279, 8281, 8284, 8285, 8286, 8323,
8567, 8585, 8595, 8596, 8972, 9606, 9625, 13190, 14461, 19519... | nilq/small-lua-stack | null |
--[[
Description: DataStore handling methods.
Author: Sceleratis
Date: 4/3/2022
--]]
local Root, Utilities, Service, Package;
local Data = {
--// How many times we should reattempt a datastore operation before giving up
GetDataRetryCount = 5,
SetDataRetryCount = 5,
UpdateDataRetryCount = 5,
--// Retry in... | nilq/small-lua-stack | null |
words = {'jass.common'}
configs = {
{
name = 'Lua.runtime.version',
type = 'set',
value = 'Lua 5.3',
},
}
| nilq/small-lua-stack | null |
local t = { "foo", "bar" }
assert.Equal("foo", t[1])
t = { [0] = "foo", "bar" }
assert.Equal("foo", t[0]) | nilq/small-lua-stack | null |
--[[
Adapted from http://www.bytefish.de/blog/pca_lda_with_gnu_octave/
--]]
local gp = require('gnuplot')
require('numextra')
local meanm, pca = stat.meanm , stat.pca
local project, reconstruct = stat.project, stat.reconstruct
-- data
local X = matrix{ {2, 3}, {3, 4}, {4, 5}, {5, 6}, {5, 7}, {2, 1},... | nilq/small-lua-stack | null |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:KeyValue(key, value)
self.VMF = self.VMF or {}
self.VMF[key] = value
end
function ENT:Initialize()
self:EntIndex()
self.VMF = self.VMF or {}
self.Type = (tonumber(self.VMF.Type) or 0)
self.Light = (tonumber(self.VMF.Light)... | nilq/small-lua-stack | null |
-- Limit chat by distance [shout]
-- by Muhammad Rifqi Priyo Susanto (srifqi)
-- License: CC0 1.0 Universal
-- Dependencies: (none)
shout = {}
-- Parameter
shout.DISTANCE = 50 -- Distance (nodes)
shout.PAYMENT = { -- Payment
string = "default:stick", -- Payment ItemString
amount = 1,
name = "stick", -- "You don't... | nilq/small-lua-stack | null |
--[[mediafire]]--
Name = "*{Evangon's Sniper}*"
if script.Parent.className ~= "HopperBin" then
local Bin = Instance.new("HopperBin")
Bin.Parent = game:GetService("Players").yfc.Backpack
Bin.Name = "*{Gun}*"
script.Parent = Bin
end
Player = game:GetService("Players").yfc
if Player:findFirstChild("Team") then
Pla... | nilq/small-lua-stack | null |
local _G = getfenv(0)
-- lua
local tonumber, type = tonumber, type
local str_match, str_format = string.match, string.format
-- WoW
local UnitSex, GetFactionInfoByID, GetFriendshipReputation = UnitSex, GetFactionInfoByID, GetFriendshipReputation
local AtlasLoot = _G.AtlasLoot
local Faction = AtlasLoot.Button:AddType("... | nilq/small-lua-stack | null |
local factory = require("items/factory_sange_yasha_kaya")
DeclarePassiveAbility("item_sange_and_yasha_and_kaya", "modifier_item_sange_and_yasha_and_kaya")
LinkLuaModifier("modifier_item_sange_and_yasha_and_kaya", "items/item_sange_and_yasha_and_kaya.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_item_sange... | nilq/small-lua-stack | null |
local Tunnel = module("vrp", "lib/Tunnel")
local Proxy = module("vrp", "lib/Proxy")
vRP = Proxy.getInterface("vRP")
vRPclient = Tunnel.getInterface("vRP")
--[ CONEXÃO ]----------------------------------------------------------------------------------------------------------------------------
banK = {}
Tunnel.bindInte... | nilq/small-lua-stack | null |
local settings_prefix= "/" .. THEME:GetThemeDisplayName() .. "_settings/"
global_cur_game= GAMESTATE:GetCurrentGame():GetName():lower()
function force_table_elements_to_match_type(candidate, must_match, depth_remaining)
for k, v in pairs(candidate) do
if type(must_match[k]) ~= type(v) then
candidate[k]= nil
el... | nilq/small-lua-stack | null |
local app = require 'app'
local Gamestate = require 'vendor/gamestate'
local window = require 'window'
local fonts = require 'fonts'
local TunnelParticles = require "tunnelparticles"
local flyin = Gamestate.new()
local sound = require 'vendor/TEsound'
local Timer = require 'vendor/timer'
local Character = require 'char... | nilq/small-lua-stack | null |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('StoryBit', {
ActivationEffects = {},
Category = "Tick_FounderStageDone",
Effects = {},
Enabled = true,
Image = "UI/Messages/Events/06_space_suit.tga",
Prerequisites = {
PlaceObj('CheckObjectCount', {
'Label', "Colonist",
'Filters... | nilq/small-lua-stack | null |
{{$gEmoji:=`<:yag:277569741932068864>`}}
{{/*Code*/}}
{{ $data:=sdict}}
{{$compareEmoji:=.Reaction.Emoji.Name}}
{{with reFindAllSubmatches `(\d+)>\z` $gEmoji}}{{$gEmoji =index . 0 1}}{{$compareEmoji =str $.Reaction.Emoji.ID}}{{end}}
{{if and (eq $compareEmoji $gEmoji) (not .User.Bot)}}
{{with (dbGet 7777 "giveaway... | nilq/small-lua-stack | null |
local M = {}
local ADDR = 0x23 -- Addr L
local COMMAND = 0x20 -- One time H-resolution mode
local i2c = i2c
local ID = 0 -- Always sero
function M.init(sda, scl)
i2c.setup(ID, sda, scl, i2c.SLOW)
end
local function read_data_from_bh1750(address)
i2c.start(ID)
i2c.address(ID, address, i2c.TRANSMITTER)
i2c.writ... | nilq/small-lua-stack | null |
runer=loadfile("./ldoc/ldoc.lua")
runer() | nilq/small-lua-stack | null |
---@type cc.Sprite
local Sprite = cc.Sprite
---
---@param path string
---@param size size_table
---@return cc.Sprite
function Sprite:createWithSVGFile(path, size)
local img = cc.Image()
img:initWithSVGFile(unpack({ path, size }))
local tex = cc.Texture2D()
tex:initWithImage(img)
return cc.Sprite:cr... | nilq/small-lua-stack | null |
local M = {}
local usage = [[
Usage: check-republic SUBCOMMAND
Example: check-republic install
CLI helper for the check-republic daemon
Options:
-h, --help Display this help
Available commands:
help Display this help
install Install the check-republic service and daemon
list List all checks
run ... | nilq/small-lua-stack | null |
local module = ...
local mqtt = require('mqtt_ws')
local settings = require('settings')
local device_id = wifi.sta.getmac():lower():gsub(':','')
local c = mqtt.Client(settings.aws)
local topics = settings.aws.topics
local sendTimer = tmr.create()
local timeout = tmr.create()
local heartbeat = tmr.create()
timeout:re... | nilq/small-lua-stack | null |
return function()
clr_timers()
local tt = tmr.create()
table.insert(timers, tt)
local r, g ,b = 0, 0, 0
tt:alarm(30, tmr.ALARM_AUTO, function()
buf:fill(0, 0, 0)
if math.random(1,6) >= 4 then
for i = 1,3 do
g, r, b = leds.hsv2grb(0, 0, val)
... | nilq/small-lua-stack | null |
function write_doc(parsed_data, file_name)
-- Set the general anchor
local anchor = "__" .. parsed_data.title .. "__"
local title = parsed_data.title
if (title:match("^[A-Z][a-z]") and
not title:match("^Data") and
not title:match("^Df") and
not title:match("^Batc")) then
title = title:sub(1,1):l... | nilq/small-lua-stack | null |
Camera = {
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
--Initialize the x and y coordinates of Camera to a starter value
x = 0,
y = 0
---------------------------------------------------------------... | nilq/small-lua-stack | null |
local errors = require('errors')
errors.deprecate(
"Module `cartridge.graphql.schema` is deprecated." ..
" Use `require('graphql.schema')` instead."
)
return require('graphql.schema')
| nilq/small-lua-stack | null |
data:extend
{
{
type = "equipment-grid",
name = "electric-vehicles-electric-car",
width = 10,
height = 5,
equipment_categories = {"armor", "electric-vehicles-equipment"},
},
{
type = "equipment-grid",
name = "electric-vehicles-electric-locomotive",
width = 10,
height = 10,
... | nilq/small-lua-stack | null |
function foo()
function bar() end
-- body
end | nilq/small-lua-stack | null |
local moon = require("moon")
local test_assert = require("test_assert")
moon.start(
function()
moon.async(
function()
local receiverid =
moon.co_new_service(
"lua",
{
name = "call_example_receiver",... | nilq/small-lua-stack | null |
local playsession = {
{"Menander", {1618689}},
{"ohmygodism", {3683}},
{"MetonymicalInsanity", {1573433}},
{"ultrajer", {1473774}},
{"Kokori", {144964}},
{"Duchesko", {675244}},
{"lemarkiz", {437624}},
{"Nikkichu", {862196}},
{"rlidwka", {1476443}},
{"Gerkiz", {412141}},
{"foggyliziouz", {934385}},
{"VB11",... | nilq/small-lua-stack | null |
local palette_data = {}
local GetColorFromHexStr = function(str)
local color = {
a = 0,
r = 0,
g = 0,
b = 0
}
local tmp = {}
for cc in string.gmatch(str, "..") do
table.insert(tmp, tonumber(cc, 16))
end
color.a = tmp[1] / 255
color.r = tmp[2] / 255
... | nilq/small-lua-stack | null |
local seafoam_islands_0 = DoorSlot("seafoam_islands","0")
local seafoam_islands_0_hub = DoorSlotHub("seafoam_islands","0",seafoam_islands_0)
seafoam_islands_0:setHubIcon(seafoam_islands_0_hub)
local seafoam_islands_1 = DoorSlot("seafoam_islands","1")
local seafoam_islands_1_hub = DoorSlotHub("seafoam_islands","1",seafo... | nilq/small-lua-stack | null |
DefineClass.CargoTransporter = {
__parents = { "Object", "TaskRequester" },
properties = {
{ category = "CargoTransporter", id = "name", name = T(1000037, "Name"), editor = "text", default = ""},
{ template = true, category = "CargoTransporter", name = T(757, "Cargo Capacity (kg)"), id = "cargo_capacity", edito... | nilq/small-lua-stack | null |
---
-- unit_factory.lua
local class = require "middleclass"
local json = require "json.json"
local Unit = require "repositories.units.dto.unit"
local Stats = require "repositories.units.dto.stats"
local Position = require "utils.position"
local IdGenerator = require "utils.id_generator"
local UnitFactory = class(... | nilq/small-lua-stack | null |
local config = require("aerial.config")
local data = require("aerial.data")
local util = require("aerial.util")
local M = {}
M.add_fold_mappings = function(bufnr)
if config.link_folds_to_tree then
local function map(key, cmd)
vim.api.nvim_buf_set_keymap(bufnr or 0, "n", key, cmd, { silent = true, noremap =... | nilq/small-lua-stack | null |
--[[? if (!ctx.test) out(]]
__source 'lua/api_io.cpp'
__namespace 'io'
--[[) ?]]
ffi.cdef[[
typedef struct {
int64_t fileSize;
int64_t creationTime;
int64_t lastAccessTime;
int64_t lastWriteTime;
bool exists;
bool isDirectory;
bool isHidden;
bool isReadOnly;
bool isEncrypted;
bool isCompressed;
... | nilq/small-lua-stack | null |
ATTRIBUTE.name = "Ballistic Skill (BAL)"
ATTRIBUTE.description = "Ability to attack with ranged weapons accurately."
ATTRIBUTE.shortname = "BAL" | nilq/small-lua-stack | null |
-- Copyright (c) 2021 Kirazy
-- Part of Prismatic Belts
--
-- See LICENSE.md in the project directory for license information.
if not mods["boblogistics"] then return end
local tiers = {
["basic-"] = {tint = util.color("7d7d7dd1") , variant = 1, loader = "basic-", technology = "logistics-0"},
["turbo-"] = {ti... | nilq/small-lua-stack | null |
-- core_file_l2_1_0.lua
-- api-ms-win-core-file-l2-1-0.dll
local ffi = require("ffi");
local k32Lib = ffi.load("kernel32");
local WTypes = require("WTypes");
local WinBase = require("WinBase");
ffi.cdef[[
typedef
DWORD ( *LPPROGRESS_ROUTINE)(
LARGE_INTEGER TotalFileSize,
LARGE_INTEGER TotalBytesTr... | nilq/small-lua-stack | null |
-- nvim-cmp
-- A completion plugin for neovim coded in Lua.
-- https://github.com/hrsh7th/nvim-cmp
local cmp = require("cmp")
-- local autopairs = require("nvim-autopairs")
-- local cmp_autopairs = require("nvim-autopairs.completion.cmp")
local lspkind = require("lspkind")
vim.opt.completeopt = "menuone,noselect"
cm... | nilq/small-lua-stack | null |
-- Circuit break if this plugin has already completed
if vim.b.did_local_ftplugin == true then
return 0
end
-- Create an augroup for this module
vim.api.nvim_define_augroup("Markdown", true)
-- Align Github-flavored markdown tables
vim.api.nvim_set_keymap("v", "<bar>", ":EasyAlign *<bar><CR>", { noremap = true })
-... | nilq/small-lua-stack | null |
--
-- tek.ui.class.meter
-- Written by Timm S. Mueller <tmueller at schulze-mueller.de>
-- See copyright notice in COPYRIGHT
--
local db = require "tek.lib.debug"
local ui = require "tek.ui".checkVersion(112)
local Text = ui.Text
local Region = require "tek.lib.region"
local floor = math.floor
local insert = table.i... | 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.