content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
-- @namespace foundation.com.binary_types
local ByteBuf = assert(foundation.com.ByteBuf.little)
-- @class Bytes
local Bytes = foundation.com.Class:extends("foundation.com.binary_types.Bytes")
local ic = Bytes.instance_class
function ic:initialize(length)
self.length = length
end
function ic:size()
return self.le... | nilq/small-lua-stack | null |
local CosineDistance, parent = torch.class('nn.CosineDistance', 'nn.Module')
function CosineDistance:__init()
parent.__init(self)
self.gradInput = {torch.Tensor(), torch.Tensor()}
end
function CosineDistance:updateOutput(input)
local input1, input2 = input[1], input[2]
if input1:dim() == 1 then
i... | nilq/small-lua-stack | null |
-- Copyright 2021 Tyler (@Mashend2468)
-- https://github.com/namatchi/mashend-ball
local RunService = game:GetService("RunService")
-- default values
local defaultUp = Vector3.new(0, 1, 0)
local defaultPower = 1
local defaultJumpPower = 50 -- like Humanoid (N/kg)
-- constants
local ZERO = Vector3.new(0, 0, 0)
local ... | nilq/small-lua-stack | null |
return {
Points = {
{
x = 920.7544,
scale = 0.63,
y = -128
},
{
outRandom = true,
x = 678.7249,
scale = 0.63,
y = -140
},
{
x = 454.6977,
scale = 0.63,
y = -54
},
{
x = -447.4121,
scale = 0.63,
y = -248
},
{
x = 76.65166,
scale = 0.63,
y = -14
}
},
... | nilq/small-lua-stack | null |
local Replicator = require(script.Replicator)
return function (rocs)
rocs.replicator = Replicator.new(rocs)
end
| nilq/small-lua-stack | null |
HUDTeammate = HUDTeammate or class()
function HUDTeammate:set_info_meter_fast(data)
local teammate_panel = self._panel:child("player")
local radial_health_panel = self._radial_health_panel
local radial_info_meter = radial_health_panel:child("radial_info_meter")
local radial_info_meter_bg = radial_health_panel:chil... | nilq/small-lua-stack | null |
object_draft_schematic_space_capacitor_mining_grade_capacitor = object_draft_schematic_space_capacitor_shared_mining_grade_capacitor:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_space_capacitor_mining_grade_capacitor, "object/draft_schematic/space/capacitor/mining_grade_capacitor.iff")
| nilq/small-lua-stack | null |
require ("recipes.vanilla")
if mods.bobplates then
log("detected bob plates")
require ("recipes.bobplates")
end
if mods.bobassembly then
require("recipes.bobassembly")
end | nilq/small-lua-stack | null |
local audiotriggerstate =
{
Properties =
{
TriggerOnEnter = { default = true },
TriggerOnExit = { default = false },
StateGroup = { default = "", description = "Name of the Wwise State Group" },
State = { default = "", description = "Name of the Wwise State within the Group" },
},
}
function audiotri... | nilq/small-lua-stack | null |
-- DO NOT EDIT THIS FILE
-- THIS IS SIMPLY A LIST OF CONSTANTS
-- https://pastebin.com/HPg8pYwi
Controls = {
INPUT_ENTER = 23, -- F
INPUT_VEH_EXIT = 75, -- F
INPUT_VEH_HORN = 86, -- H
INPUT_VEH_HEADLIGHT = 74,
INPUT_VEH_CIN_CAM = 80,
INPUT_VEH_NEXT_RADIO = 81... | nilq/small-lua-stack | null |
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, 0)
local spell = Spell("instant")
function spell.onCastSpell(creature, var)
creature:removeCondition(CONDITION_MANASHIELD)
return combat:execute(creature, var)
end
spell:group("suppor... | nilq/small-lua-stack | null |
local api = {}
local term = require("termutils")
api.noArgument = 0
api.requiredArgument = 1
api.optionalArgument = 2
api.notOpt = {}
--[[
longOpts format:
{
name = {
hasArg = 0|1|2,
val = <something>
}...
}
config:
{
printErrors = true,
noErrors = not printErrors
}
]]
function api.getopt(argTbl, o... | nilq/small-lua-stack | null |
--[[
Loot from mobs
]]--
local metadata = require("metadata")
local mod = {}
local loot = {}
loot["minecraft:ender_pearl[0]"] = true
loot["minecraft:ender_eye[0]"] = true
loot["actuallyadditions:item_solidified_experience[0]"] = true
loot["minecraft:string[0]"] = true
loot["minecraft:bone[0]"] = true
loot["minecraf... | nilq/small-lua-stack | null |
local nml = require'nml'
local PAIR_ADDR = "inproc://pair"
local msg
local count
local function poll_check(sockets, time_out)
local ready, sockets, err = nml.poll(sockets, time_out)
if not ready then
print("poll errored:", err)
else
print(("poll: %s, recv: %d, send: %d"):format(ready, #sockets.recv, #socket... | nilq/small-lua-stack | null |
-----------------------------------------
-- ID: 5998
-- Item: Bowl of Adoulin Soup
-- Food Effect: 180 Min, All Races
-----------------------------------------
-- HP % 3 Cap 40
-- Vitality 3
-- Defense % 15 Cap 70
-- HP Healing 6
-----------------------------------------
require("scripts/globals/status")
require("scri... | nilq/small-lua-stack | null |
module("luci.controller.openvpn-server", package.seeall)
function index()
if not nixio.fs.access("/etc/config/openvpn") then
return
end
entry({"admin", "vpn"}, firstchild(), "VPN", 45).dependent = false
local page
page = entry({"admin", "vpn", "openvpn-server"}, cbi("openvpn-server/openvpn-server"), _("Op... | nilq/small-lua-stack | null |
--[[
TheNexusAvenger
Implementation of a command.
--]]
local BaseCommand = require(script.Parent.Parent:WaitForChild("BaseCommand"))
local ScrollingTextWindow = require(script.Parent.Parent:WaitForChild("Resources"):WaitForChild("ScrollingTextWindow"))
local Command = BaseCommand:Extend()
--[[
Creates the command.... | nilq/small-lua-stack | null |
if SERVER then
AddCSLuaFile()
end
GM.Name = "Lambda"
GM.Author = "N/A"
GM.Email = "N/A"
GM.Website = "https://github.com/ZehMatt/Lambda"
GM.Version = "0.9.1 Beta"
DEFINE_BASECLASS( "gamemode_base" )
include("sh_debug.lua")
include("sh_convars.lua")
include("sh_string_extend.lua")
include("sh_interpvalue.lua")
in... | nilq/small-lua-stack | null |
local function run()
app.Audio_restart()
end
return {
description = "Restart Audio System",
batch = false,
run = run,
suppressReset = true
}
| nilq/small-lua-stack | null |
local menu = {}
menu.init = function ()
menu.m = menuconfig("featurelib", "Feature Libary")
end
return menu | nilq/small-lua-stack | null |
object_tangible_loot_creature_loot_generic_heroic_echo_at_at_junk_02 = object_tangible_loot_creature_loot_generic_shared_heroic_echo_at_at_junk_02:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_generic_heroic_echo_at_at_junk_02, "object/tangible/loot/creature/loot/generic/heroic_echo_at_at_jun... | nilq/small-lua-stack | null |
-- TODO: Genericize this module and replace with a common RECSContainer
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local common = ReplicatedStorage.common
local lib = ReplicatedStorage.lib
local event = ReplicatedStorage.event
local recsEvent = event.recs
local recsPlugins = common.recsplugins
lo... | nilq/small-lua-stack | null |
module(..., package.seeall)
-- binary tree for ip ranges
-- [[1, 1234], [2345, 214235], [3245466,24556677]]
-- nodevalue evaluated by lower-end of the range
-- TODO:
-- if during insertion, a broader range is evaluated, that is, a range that contains an existing one
-- it will replace the existing
function newnode(ra... | nilq/small-lua-stack | null |
res=handleIMsg(IMsg)
function createIAckMsg()
return structmsg2.createMsgFromFile("DescIA.txt",0,0);
end
function setIAFieldValues(handleIAck,GUID,PasswdC)
local valueInfos={}
valueInfos["1"]="@dst,"..Mcu..",0"
valueInfos["2"]="@src,"..Wifi..",0"
-- valueInfos["3"]="@cmdKey,73,0"
valueInfos["3"]="@cmdKey,".... | nilq/small-lua-stack | null |
exports('EnableIpl', function(ipl, activate)
EnableIpl(ipl, activate)
end)
exports('GetPedheadshotTexture', function(ped)
return GetPedheadshotTexture(ped)
end)
-- Load or remove IPL(s)
function EnableIpl(ipl, activate)
if IsTable(ipl) then
for key, value in pairs(ipl) do
... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Windurst Woods
-- NPC: Wije Tiren
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
local ID = require("scripts/zones/Windurst_Woods/IDs")
require("scripts/globals/shop")
-----------------------------------
function onTrade(p... | nilq/small-lua-stack | null |
#!/usr/bin/env lua5.1
local collect_iterator = function(it)
local results = {}
for v in it do table.insert(results, v) end
return results
end
local collect_set = function(set)
return collect_iterator(set.iterator())
end
local notexists = "object should not be considered present if not previously inserted"
local n... | nilq/small-lua-stack | null |
--[[ Copyright (c) 2009 Edvin "Lego3" Linge
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distr... | nilq/small-lua-stack | null |
local LevelInfo = script:GetCustomProperty("LevelInfo"):WaitForObject()
local AbilityDescription = script:GetCustomProperty("AbilityDescription"):WaitForObject()
local InfoButton = script:GetCustomProperty("InfoButton"):WaitForObject()
local HoverSymbol = script:GetCustomProperty("HoverSymbol"):WaitForObject()
local To... | nilq/small-lua-stack | null |
--[[
A whole bunch of shit to save in the global table across saves.
Note that while values can be Factorio objects, KEYS must be primitives
see http://lua-api.factorio.com/latest/Global.html
]]
local GlobalData = {}
local GLOBAL_TABLE_NAME = "chip_data"
--[[
An empty data object for marshalling
]]
functio... | nilq/small-lua-stack | null |
#@
-- Path of Building
--
-- Module: Update Check
-- Checks for updates
--
local proxyURL = ...
local xml = require("xml")
local sha1 = require("sha1")
local curl = require("lcurl.safe")
local lzip = require("lzip")
local globalRetryLimit = 10
local function downloadFileText(source, file)
for i = 1, 5 do
if i > 1 ... | nilq/small-lua-stack | null |
local script = Script()
local SavedPos = {}
local PrevPos = {}
local function TeleportBack()
if (PrevPos.x ~= nil) then
ScriptHook.Teleport(PrevPos.x, PrevPos.y, PrevPos.z)
ScriptHook.ShowNotification(1, "Teleported", "Back")
PrevPos = {}
end
end
local function TeleportSaved()
local entityId = GetLocalPlayer... | nilq/small-lua-stack | null |
local name = "gitleaks"
local release = "v8.2.4"
local version = "8.2.4"
food = {
name = name,
description = "Scan git repos (or files) for secrets using regex and entropy 🔑",
license = "MIT",
homepage = "https://github.com/zricethezav/gitleaks",
version = version,
packages = {
{
... | nilq/small-lua-stack | null |
basexx = require( "basexx" )
describe( "should handle base64 strings", function()
local longtxt = "Man is distinguished, not only by his reason, but by "..
"this singular passion from other animals, which is a "..
"lust of the mind, that by a perseverance of delight in "..
... | nilq/small-lua-stack | null |
local DATA = {}
TriggerServerEvent('entitydata:get-bulk')
RegisterNetEvent('entitydata:set')
AddEventHandler ('entitydata:set', function(netId, key, value)
if not DATA[netId] then
DATA[netId] = {}
end
DATA[netId][key] = value
end)
RegisterNetEvent('entitydata:set-bulk')
AddEventHandler ('entityda... | nilq/small-lua-stack | null |
local Data = require "nvim-lsp-installer.data"
local log = require "nvim-lsp-installer.log"
local process = require "nvim-lsp-installer.process"
local platform = require "nvim-lsp-installer.platform"
local M = {}
local function fetch(url, callback)
local stdio = process.in_memory_sink()
if platform.is_unix th... | nilq/small-lua-stack | null |
local _ = function(k,...) return ImportPackage("i18n").t(GetPackageName(),k,...) end
local HungerFoodHud
local ThirstHud
local HealthHud
local ArmorHud
local VehicleHud
-- local SpeakingHud
personalMenuIsOpen = 0
function OnPackageStart()
HungerFoodHud = CreateWebUI(0, 0, 0, 0, 0, 28)
SetWebAlignment(Hunger... | nilq/small-lua-stack | null |
local config = {} -- extension configuration
config.frontend = {
securityLoginUrl = "/security/login",
securityRegisterUrl = "/security/register",
securityLoginUserUrl = "/security/loginUser",
securityRegisterUserUrl = "/security/registerUser",
}
config.property = {
failedLoginAttempts = 7,
failedLog... | nilq/small-lua-stack | null |
local component = require("component")
local shell = require("shell")
local sides = require("sides")
local args, opts = shell.parse(...)
local function help()
print([=[
USAGE:
trans <SOURCE> <SINK> [<AMOUNT>] [<options>]
Transfers AMOUNT or all if not specified from SOURCE side to SINK side
Optio... | nilq/small-lua-stack | null |
--!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... | nilq/small-lua-stack | null |
-- Created by Elfansoer
--[[
Ability checklist (erase if done/checked):
- Scepter Upgrade
- Break behavior
- Linken/Reflect behavior
- Spell Immune/Invulnerable/Invisible behavior
- Illusion behavior
- Stolen behavior
]]
--------------------------------------------------------------------------------
modifier_midas_gol... | nilq/small-lua-stack | null |
local cmd_win = {
"./omnisharp/OmniSharp.exe",
"--languageserver",
"--hostPID",
tostring(vim.fn.getpid()),
}
local script_win = [[
$object = Invoke-WebRequest -UseBasicParsing https://api.github.com/repos/OmniSharp/omnisharp-roslyn/releases/latest | ConvertFrom-JSON
$object.assets | ForEach-Object {
if... | nilq/small-lua-stack | null |
local balloon_box = {}
function balloon_box.update(eid, delta)
local body = entities:get_component(eid, component.body)
local balloon = entities:get_component(eid, component.balloon)
local transform = entities:get_component(eid, component.transform)
if balloon.air >= 9 then
if body.accel.x == ... | nilq/small-lua-stack | null |
--! @param parcelpos position of the wanted parcel
--! @return whether this faction can claim a parcelpos
function factions.can_claim_parcel(name, parcelpos)
local fn = factions.parcels.get(parcelpos)
if fn == nil then
return true
end
local faction = factions.factions.get(name)
if fn then
local fac = factio... | nilq/small-lua-stack | null |
AnimatedSprite = {}
AnimatedSprite.__index = AnimatedSprite
function AnimatedSprite:create(file, width, height, frames, animations)
local object = {}
setmetatable(object, AnimatedSprite)
object.width = width
object.height = height
object.frames = frames
object.animations = animations
object.sprite_sheet = lov... | nilq/small-lua-stack | null |
--theguy=workspace.thejonathann NLS([[
loadstring(_G["RM"..'Lib'])()
Player,Backpack=pm:l(game:service'Players'.LocalPlayer.Name):load()
Pn=Player.Name
PlayerGui,Char,Backpack=Player.PlayerGui,Player.Character,Player.Backpack
Head,Torso,Huma=Char.Head,Char.Torso,Char.Humanoid
as={}
as.ring="3270017"
as.blast='20329976'... | nilq/small-lua-stack | null |
local text = require "text"
describe("text", function()
describe("given nil", function()
it("should error", function()
assert.has_error(function() text(nil) end, "invalid input, expected string")
end)
end)
describe("given a non-string", function()
it("should error", function()
assert.has_error(function... | nilq/small-lua-stack | null |
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor.
theme_park_reward_marauder_armor_bracer = {
description = "",
minimumLevel = 0,
maximumLevel = 0,
lootItems = {
{itemTemplate = "armor_marauder_bracer_l", weight = 10000000},
{itemTemplate = "armor_marauder_bracer_r", weight = 0}
}
}
addLootGr... | nilq/small-lua-stack | null |
-- Adjust display colors
VERSION = '0.2'
if original_colors == nil then
original_colors = {}
for i = 0, 15 do
original_colors[i] = {}
for j = 0, 2 do
original_colors[i][j] = df.global.enabler.ccolor[i][j]
end
end
end
utils = require 'utils'
function adjust_colors(comp... | nilq/small-lua-stack | null |
---@meta
---@class ccs.ComRender :cc.Component
local ComRender={ }
ccs.ComRender=ComRender
---*
---@param node cc.Node
---@return self
function ComRender:setNode (node) end
---*
---@return cc.Node
function ComRender:getNode () end
---@overload fun(cc.Node:cc.Node,char:char):self
---@overload fun():self
---@param... | nilq/small-lua-stack | null |
-- Internal variables
local swroot = "/sw/peak/xl/16.1.1-4"
local xlfbase = pathJoin(swroot, "xlf", "16.1.1")
local xlcbase = pathJoin(swroot, "xlC", "16.1.1")
local xlmassbase = pathJoin(swroot, "xlmass", "9.1.1")
local xlsmpbase = pathJoin(swroot, "xlsmp", "5.1.1")
-- Package family
family("compiler")
-- S... | nilq/small-lua-stack | null |
--[[
Swaggy Jenkins
Jenkins API clients generated from Swagger / Open API specification
The version of the OpenAPI document: 1.1.2-pre.0
Contact: blah@cliffano.com
Generated by: https://openapi-generator.tech
]]
-- github_respository_containerlinks class
local github_respository_containerlinks = {}
local g... | nilq/small-lua-stack | null |
-------------------------------------------------------------------
--------------------------- window:popup Yes-No ------------------
-------------------------------------------------------------------
--[[
PopUp Y-N window
win_popupyn.show () -- Show
win_popupy... | nilq/small-lua-stack | null |
data:extend
({
--laser axe
{
type = "mining-tool",
name = "laser-axe",
icon = "__military-extended__/graphics/tools/laser-axe.png",
flags = {"goes-to-main-inventory"},
action =
{
type="direct",
action_delivery =
{
type = "instant",
target_effects =
... | nilq/small-lua-stack | null |
Dialog = Dialog or ImportPackage("dialogui")
local inventoryMenu
local giveMenu
local inventoryItems = {}
local giveItem = ""
local function makePlayerOptions()
local buttons = {}
local playerList = GetPlayerPropertyValue(GetPlayerId(), "player_list")
local streamed = GetStreamedPlayers()
local x, y,... | nilq/small-lua-stack | null |
TOOL.Tab = "Aperture Science"
TOOL.Category = "Construction"
TOOL.Name = "#tool.aperture_fizzler.name"
TOOL.ClientConVar["model"] = "models/aperture/fizzler_emitter.mdl"
TOOL.ClientConVar["keyenable"] = "45"
TOOL.ClientConVar["startenabled"] = "0"
TOOL.ClientConVar["toggle"] = "0"
local PAINT_MAX_LAUNCH_SPEED = ... | nilq/small-lua-stack | null |
--[[
"This looks familiar", I hear you mumble, of it is, it's a copy of the yatm_spacetime network.
But this one is used specifically for the wireless components of mesecon_hubs.
In addition it also has an update step.
]]
local NetworkMeta = assert(yatm_mesecon_hubs.NetworkMeta)
local is_table_empty = assert(foundati... | nilq/small-lua-stack | null |
local StringUtils = require("lib.string-utils")
local Vector = require("lib.vector")
local Day05 = {}
function Day05.parse_line(line)
local split_line = {}
for group in line:gmatch("%d+") do
table.insert(split_line, group)
end
local origin_x = tonumber(split_line[1])
local origin_y = tonu... | nilq/small-lua-stack | null |
local floor = math.floor
local ceil = math.ceil
function seat_id(row, col) return row * 8 + col end
local function binwalk(lower, upper, is_up)
local mid = (upper + lower) / 2
if is_up then
lower = ceil(mid)
else
upper = floor(mid)
end
return lower, upper
end
function decode(s)
local upper = 127
... | nilq/small-lua-stack | null |
test["return"] = test.enter --- @local
| nilq/small-lua-stack | null |
local PLUGIN = PLUGIN
PLUGIN.name = "Business flags"
PLUGIN.author = "gumlefar"
PLUGIN.desc = "Implements the business flag library"
-- This plugin is not used in this gamemode,
-- however it can be very useful in a roleplay context
-- It allows string-based business flags, rather than just char based
-- These flags... | nilq/small-lua-stack | null |
local path = ARGV[1];
local score = tonumber(ARGV[2])
local key = KEYS[1]
local key_counter = key.."::Counter"
local key_amount = key.."::Amount"
local key_average = key.."::Average"
-- 记录最新一次请求的耗时
redis.call('zadd',key,score,path)
-- 记录某个path的请求次数
redis.call('hincrby',key_counter,path,1)
-- 记录某个path的请求总时长
redis.call(... | nilq/small-lua-stack | null |
-- 伤害来源
CONST_DAMAGE_SRC = {
unknown = "unknown",
attack = "attack",
skill = "skill",
item = "item",
}
CONST_DAMAGE_SRC_LABEL = {
unknown = "不明",
attack = "攻击",
skill = "技能",
item = "物品",
} | nilq/small-lua-stack | null |
if GUIMarineHUD.CHUDRepositionGUI then
local oldCHUDRepositionGUI = GUIMarineHUD.CHUDRepositionGUI
function GUIMarineHUD:CHUDRepositionGUI()
oldCHUDRepositionGUI(self)
self:UpdateScale()
end
else
CompMod:Print("Cannot override NS2+ function GUIMarineHUD.CHUDRepositionGUI !", CompMod:Ge... | nilq/small-lua-stack | null |
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
--
-- This file is compatible with Lua 5.3
local class = require("class")
require("kaitaistruct")
local enum = require("enum")
--
-- This spec can be used to disassemble raw stream of 6502 CPU machine
-- code into ind... | nilq/small-lua-stack | null |
local extensions = {}
-- extension for scoll bar
extensions.scrollbar_instance = function(scroll_bar_chars)
local current_line = vim.fn.line(".")
local total_lines = vim.fn.line("$")
local default_chars = { "__", "▁▁", "▂▂", "▃▃", "▄▄", "▅▅", "▆▆", "▇▇", "██" }
local chars = scroll_bar_chars or default_chars
... | nilq/small-lua-stack | null |
io.stdout:setvbuf'no'
local glue = require'glue'
local fs = require'fs'
local tests_dir = fs.exedir()..'/../../tests'
glue.luapath(tests_dir)
fs.chdir(tests_dir)
require'$log'
| nilq/small-lua-stack | null |
return {'qatar','qat','qatarees','qatari','qatarese'} | nilq/small-lua-stack | null |
--[[ ============================================================================================================
Author: Rook, tontyoutoure
Date: November 11, 2018
Soft projectile implementation
================================================================================================================= ]]
inv... | nilq/small-lua-stack | null |
local sys = require'sys'
local nvim = require'nvim'
local load_module = require'tools'.helpers.load_module
local executable = require'tools'.files.executable
local is_file = require'tools'.files.is_file
-- local set_autocmd = nvim.autocmds.set_autocmd
-- local set_command = nvim.commands.set_comma... | nilq/small-lua-stack | null |
modifier_bounty_hunter_statue_activatable = class({})
--------------------------------------------------------------------------------
function modifier_bounty_hunter_statue_activatable:IsPurgable()
return false
end
--------------------------------------------------------------------------------
function modifier... | nilq/small-lua-stack | null |
-- Mapping from categories of the dataset to numbers
-- For DYCE dataset
tagMap= {}
tagMap['ceiling']= 0;
tagMap['chair_tolix (2)']=1;
tagMap['fan']= 0;
tagMap['wall']= 0;
tagMap['walls']= 0;
tagMap['book 4']= 2;
tagMap['ball2']= 5;
tagMap['ball']= 5;
tagMap['microwave']= 3;
tagMap['default (1)']= 0;
tagMap['... | nilq/small-lua-stack | null |
local hook = require 'tersen.hook_exec'
local util = require 'tersen.util'
local M = {}
-- A string is uppercase if it consists only of one or more capital letters,
-- numbers, punctuation, and whitespace. Nil and the empty string are not
-- uppercase.
function M.is_upper(str)
return str ~= nil and str:match("^[... | nilq/small-lua-stack | null |
table.insert(emojichatHTML, [===[<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<style>
body {
background-color: transparent;
color: rgb(230, 230, 230);
position: absolute;
left: 0;
top: 0;
width: 100%;
height: ... | nilq/small-lua-stack | null |
module(..., package.seeall)
local timer = require("core.timer")
local engine = require("core.app")
local counter = require("core.counter")
CSVStatsTimer = {}
-- A timer that monitors packet rate and bit rate on a set of links,
-- printing the data out to a CSV file.
function CSVStatsTimer:new(filename)
local file... | nilq/small-lua-stack | null |
local PH_SCROLL = 1
local PH_ZECKWEAVER = 2
local defs = {
{
schematic = aurum.structures.f"temple_1.mts",
offset = -3,
},
}
for _,def in ipairs(defs) do
def = b.t.combine({
schematic = nil,
offset = 0,
}, def)
aurum.features.register_decoration{
place_on = {"group:soil"},
rarity = 1 / (18 ^ 3) / #d... | nilq/small-lua-stack | null |
local ui = require('esearch/nvim/appearance/ui')
local M = {
CURSOR_LINENR_NS = vim.api.nvim_create_namespace('esearch_cursor_linenr'),
}
function M.highlight_cursor_linenr()
local current_line = vim.api.nvim_get_current_line()
local _, last_col = current_line:find(ui.LINENR_RE)
local lnum = vim.api.nvim_win_... | nilq/small-lua-stack | null |
local cfg = {}
-- start wallet/bank values
cfg.open_wallet = 25000
cfg.open_bank = 25000
-- money display css
cfg.display_css = [[
@font-face {
font-family: 'hyperion';
src: url('https://byhyperion.net/stylesheet/fonts/american_captain1.ttf');
}
.div_money{
position: absolute;
top: 100px;
right: 20px;
font-size... | nilq/small-lua-stack | null |
--[[
Place this script at the top level of your hierarchy (or in any default context)
Edit properties in the "Respawn Settings" to your liking. The tooltips should explain how they all work.
~ Made by InsertYourself
Twitter: https://twitter.com/AnthonyRSaephan
YouTube: https://www.youtube.com/channel/UCdv7b... | nilq/small-lua-stack | null |
local IList = require("api.gui.IList")
local IUiElement = require("api.gui.IUiElement")
local IInput = require("api.gui.IInput")
return class.interface("IUiList",
{},
{IList, IUiElement, IInput})
| nilq/small-lua-stack | null |
-- KEYS[1]: the active consumers set
-- KEYS[2]: the active job list
-- KEYS[3]: this consumer's inflight set
-- KEYS[4]: the job data hash
-- KEYS[5]: the signal list
-- ARGV[1]: the max number of jobs to get
-- ARGV[2]: this consumer's inflight set
-- Returns: the jobs
-- Ensure the consumer is registered
local re... | nilq/small-lua-stack | null |
-- File : hello2-10.lua
-- Purpose : Returning lua dicts
-- See : ./examples/hello/hello2.erl
return {1,2,{3,'Hello World!'}}
| nilq/small-lua-stack | null |
#!/usr/bin/env tarantool
os = require('os')
-- local listen_port = os.getenv('LISTEN')
local listen_port = 33000
require('log').info(listen_port)
box.cfg{
listen = listen_port,
log_level = 7,
-- log = 'tarantool.log',
}
require('console').listen(os.getenv('ADMIN'))
fiber = requir... | nilq/small-lua-stack | null |
local tools = {}
local conf = require("modules.tools.config")
-- A UI enhance framwork for other plugins' popup windows
tools["RishabhRD/popfix"] = { opt = false }
-- Lua library
tools["nvim-lua/plenary.nvim"] = { opt = false }
-- Lua based searching framwork
-- Donnot know how to use
tools["nvim-telescope/telescope... | nilq/small-lua-stack | null |
local Dictionary = script.Parent
local Llama = Dictionary.Parent
local t = require(Llama.t)
local validate = t.tuple(t.table, t.callback)
local function some(dictionary, predicate)
assert(validate(dictionary, predicate))
for key, value in next, dictionary do
if predicate(value, key) then
return true
end
e... | nilq/small-lua-stack | null |
local _, CLM = ...
local MODULES = CLM.MODULES
local CONSTANTS = CLM.CONSTANTS
local UTILS = CLM.UTILS
local LOG = CLM.LOG
-- local MODELS = CLM.MODELS
local whoami = UTILS.whoami
local GuildInfoListener = MODULES.GuildInfoListener
local ACL = { }
function ACL:Initialize()
self.guildMaster = IsGuildLeader()
... | nilq/small-lua-stack | null |
includes("2d") | nilq/small-lua-stack | null |
local TableLibrary = { }
function TableLibrary:BinSearch(Data, Query)
assert(type(Data) == "table", "Data is not a table.")
local Left = 1
local Right = #Data
while Left <= Right do
local Middle = math.floor(0.5 * (Left + Right))
if Data[Middle] == Query then
return Middle
elseif Data[Middle] > Query then... | nilq/small-lua-stack | null |
-- // Militan tarafından baştan kodlandı.
local vehicles = { }
local vehicleInteriorGates = { }
local customVehInteriors = {
--model,x,y,z,rx,ry,rz,interior
--1: Andromada
[1] = {
{14548,-445.39999,87.3,1226.80005,13,0,0,1},
{3069,-445.39999,111.2,1224.69995,0,0,0,1}
},
--2: Shamal
[2] = {
{2924,2.40000009... | nilq/small-lua-stack | null |
-- Called OnDeath modifier_retribution_aura_effect
function RetributionStart(keys)
local caster = keys.caster
local unit = keys.unit
local ability = keys.ability
local buff_duration = ability:GetLevelSpecialValueFor("buff_duration", ability:GetLevel() - 1)
local modifier_name = "modifier_retribution_buff"
if... | nilq/small-lua-stack | null |
local S = technic.getter
local function deploy_node(inv, slot_name, pos, node, machine_node)
if node.param2 > 3 then return end
if node.name ~= "air" then
if node.name == "ignore" or
node.name == "default:lava_source" or
node.name == "default:lava_flowing" or
node.name == "default:water_source" or
... | 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 |
return {
version = "0.0.1",
baseURL = "http://kkmofang.cn:89/kk/kk.tinyurl."
}
| nilq/small-lua-stack | null |
object_tangible_loot_creature_loot_kashyyyk_loot_webweaver_poison_sac_01 = object_tangible_loot_creature_loot_kashyyyk_loot_shared_webweaver_poison_sac_01:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_kashyyyk_loot_webweaver_poison_sac_01, "object/tangible/loot/creature_loot/kashyyyk_loot/web... | nilq/small-lua-stack | null |
object_tangible_loot_npc_loot_answering_machine_generic = object_tangible_loot_npc_loot_shared_answering_machine_generic:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_answering_machine_generic, "object/tangible/loot/npc/loot/answering_machine_generic.iff")
| nilq/small-lua-stack | null |
local I=1
local D=12
local sejfid=2294
local oferta ={
{ name="Pizza", name_biernik="pizzę", itemid=83, count=1, cost=12},
{ name="Sok", name_biernik="sok", itemid=85, count=1, cost=4},
{ name="Drink", name_biernik="drink", itemid=22, count=1, cost=7},
{ name="Zimne piwo", name_biernik="zimne piwo", itemid=42,... | nilq/small-lua-stack | null |
local lynx = json.decode(LoadResourceFile(GetCurrentResourceName(), 'lynx.json'))
for k, v in pairs(lynx["TriggerServerEvent"]) do
RegisterNetEvent(v)
AddEventHandler(v, function(args)
--[[
if you want to kick the cheater, use this :]]--
DropPlayer(source, "cheater !")
... | nilq/small-lua-stack | null |
local COMMAND = Clockwork.command:New("Accept");
COMMAND.tip = "Accept a help request.";
COMMAND.arguments = 1;
COMMAND.text = "<integer Number>";
COMMAND.access = "o";
function COMMAND:OnRun(player, arguments)
local requestID = tonumber(arguments[1]);
if (!requestID) then
Clockwork.player:Notify(play... | nilq/small-lua-stack | null |
object_tangible_component_weapon_core_shared_weapon_core_base = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/component/weapon/core/shared_weapon_core_base.iff"
}
ObjectTemplates:addClientTemplate(object_tangible_component_weapon_core_shared_weapon_core_base, "object/tangible/component/... | nilq/small-lua-stack | null |
#!/usr/bin/lua
local format, concat = string.format, table.concat
-- Do not glob these files. (e.g. *.foo)
local noglobs = {
GNUmakefile = true,
Makefile = true,
makefile = true,
Rakefile = true,
['Rout.save'] = true,
['Rout.fail'] = true,
}
local alt_name = {
actionscript = 'flash',
ansi_c = 'c',
... | 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.