content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
include("names")
index_ime = math.random(#musko_ime_nom);
ime = musko_ime_nom[index_ime];
padez = musko_ime_gen[index_ime];
deo = math.random(4) + 1;
put1 = math.random(deo - 1);
put2 = put1 * (deo - 1);
put = put1 + put2
vreme = put2 * 6;
... | nilq/small-lua-stack | null |
--[[
Copyright 2015 MongoDB, Inc.
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
Unless required by applicable law or agreed to in writing, software
d... | nilq/small-lua-stack | null |
registerNpc(821, {
walk_speed = 140,
run_speed = 700,
scale = 130,
r_weapon = 0,
l_weapon = 0,
level = 54,
hp = 1542,
attack = 190,
hit = 166,
def = 141,
res = 58,
avoid ... | nilq/small-lua-stack | null |
--[[
MIT License
Copyright (c) 2021 Thales Maia de Moraes
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, ... | nilq/small-lua-stack | null |
return {
Throttle = Enum.KeyCode.ButtonR2,
Brakes = Enum.KeyCode.ButtonL2,
SecondaryBrakes = Enum.KeyCode.ButtonA,
SteerLeft = Enum.KeyCode.Thumbstick1,
SteerRight = Enum.KeyCode.Thumbstick1,
GearUp = Enum.KeyCode.ButtonB,
GearDown = Enum.KeyCode.ButtonX,
Clutch = Enum.K... | nilq/small-lua-stack | null |
ITEM.name = "ALIAS CS5"
ITEM.description = "A bolt-action integrally suppressed sniper rifle chambered for the 7.62x51mm round."
ITEM.model = "models/weapons/cs5/w_cs5.mdl"
ITEM.class = "cw_kk_ins2_cs5"
ITEM.weaponCategory = "primary"
ITEM.width = 4
ITEM.height = 2
ITEM.price = 72000
ITEM.weight = 12 | nilq/small-lua-stack | null |
package 'gluon-web-node-role'
entry({"admin", "noderole"}, model("admin/noderole"), "Node role", 60)
| nilq/small-lua-stack | null |
--
-- cuda_vstudio.lua
-- CUDA integration for vstudio.
-- Copyright (c) 2012-2015 Manu Evans and the Premake project
--
local p = premake
local m = p.modules.cuda
m.elements = {}
local vstudio = p.vstudio
local vc2010 = vstudio.vc2010
m.element = vc2010.element
---- C/C++ projects ----
function m.cudaPro... | nilq/small-lua-stack | null |
#!/usr/bin/env lua
--[[
usage: ./ipv4.lua 1.2.3.4/29
output:
Nicks-MacBook-Air:bits Fizzadar$ ./ipv4.lua 31.4.255.200/15
###### INFO ######
IP in: 31.4.255.200
Mask in: /15
=> Mask Wildcard: 0.1.255.255
=> in IP is network-ip: false
=> in IP is broadcast-ip: false
###### BLOCK ######
#IP's: 13107... | nilq/small-lua-stack | null |
--[[
key 1 -> rdb:schedule:waiting
key 2 -> rdb:schedule:name|||versionHash:timestamp
key 3 -> rdb:schedule:schedules - hash
arg 1 -> next timestamp
arg 2 -> next time - human readable
arg 3 -> occurrence lock time
arg 4 -> schedule
arg 5 -> schedule name
]]
local lock = redis.call('get', KEYS[... | nilq/small-lua-stack | null |
local user_dao = LoadApplication('models.dao.user'):new()
local UserService = {}
function UserService:login(username,password)
return user_dao:login(username,password)
end
function UserService:reg(username,password)
return user_dao:reg(username,password)
end
return UserService | nilq/small-lua-stack | null |
if a then
f()
else
g()
end
if b then
f()
if a then
g()
end
else
h()
end
if a then
if b then
f()
else
h()
end
g()
end
| nilq/small-lua-stack | null |
return Def.Actor {
OnCommand = function(self)
self:sleep(ScreenMetric("InDelay"))
end
}
| nilq/small-lua-stack | null |
object_intangible_beast_bm_mutated_rancor = object_intangible_beast_shared_bm_mutated_rancor:new {
}
ObjectTemplates:addTemplate(object_intangible_beast_bm_mutated_rancor, "object/intangible/beast/bm_mutated_rancor.iff")
| nilq/small-lua-stack | null |
x = 'MAIN';
function second() print(x) end
function first() local x = 'FIRST'; second() end
first()
| nilq/small-lua-stack | null |
local M = {}
local cmd = vim.cmd
local g = vim.g
local o = vim.o
local fn = vim.fn
local settings = {
modus_faint_syntax = 0,
modus_moody_enable = 0,
modus_yellow_comments = 0,
modus_green_strings = 0,
modus_termtrans_enable = 0,
modus_cursorline_intense = 0,
modus_italic_strings = 0,
}
for key, val in pairs(s... | nilq/small-lua-stack | null |
local RenderTargets = {
{model=`xm_prop_x17_tv_scrn_01`,name='prop_x17_tv_scrn_01'},
{model=`xm_prop_x17_tv_scrn_02`,name='prop_x17_tv_scrn_02'},
{model=`xm_prop_x17_tv_scrn_03`,name='prop_x17_tv_scrn_03'},
{model=`xm_prop_x17_tv_scrn_04`,name='prop_x17_tv_scrn_04'},
{model=`xm_prop_x17_tv_scrn_05`,... | nilq/small-lua-stack | null |
--OpenComputers Mining v1.0
--uploadscantoholo.lua v1.0
--Takes files generated during scan and displays the relative positions using the hologram projector.
--for use with geoscan.lua v2.0
--Takes the files generated by geoscan2 and represents the data on two holograms.
--Holograms are limited to 32 voxels in the y ... | nilq/small-lua-stack | null |
local TTY = require "ttysnap"
require "util.flags"
require "util.io"
require "util.string"
local options = lp.options(...) {
palette = '';
term_size = '80x24';
font = 'Cousine';
font_size = 16;
prefix = 'ttysnap/';
}
-- parse options that need parsing
options.palette = flags.mapOf(flags.number, flags.string... | nilq/small-lua-stack | null |
print([[ *Notices Bulge*
__ ___ _ _ _ _ _
\ \ / / |__ __ _| |_ ( ) ___ | |_| |__ (_) ___
\ \ /\ / /| '_ \ / _\`| __|// / __| | __| '_ \| |/ __|
\ V V / | | | | (_| | |_ \__ \ | |_| | | | |\__ \
\_/\_/ |_| |_|\__,_|\__| |___/ \___|_| |_|_|/___/]])
| nilq/small-lua-stack | null |
local drawableSprite = require("structs.drawable_sprite")
local summitCheckpoint = {}
summitCheckpoint.name = "MaxHelpingHand/CustomSummitCheckpoint"
summitCheckpoint.depth = 8999
summitCheckpoint.placements = {
name = "summit_checkpoint",
data = {
firstDigit = "zero",
secondDigit = "zero",
... | nilq/small-lua-stack | null |
addEvent ( "onClientVehicleHandlingChange", true )
| nilq/small-lua-stack | null |
local id, user = unpack(ARGV);
user = cjson.decode(user);
local reply = {};
if (redis.call('SISMEMBER', 'USER:'..user.id..':DEADDROPS', id) ~= 1) then
-- This is not your drop, gtfo
return {"This is not your drop, gtfo", false, 403};
end
local location = redis.call('HGET', "dd:" .. id, 'location');
local ... | nilq/small-lua-stack | null |
local _, Addon = ...
local t = Addon.ThreatPlates
---------------------------------------------------------------------------------------------------
-- Imported functions and constants
---------------------------------------------------------------------------------------------------
-- Lua APIs
local abs = abs
loca... | nilq/small-lua-stack | null |
function launchSpotify()
hs.application.open("Spotify", nil, true)
end
function playOrPauseSpotify()
if not hs.spotify.isRunning() then
launchSpotify()
end
if hs.spotify.getPlaybackState() == hs.spotify.state_playing then
hs.spotify.pause()
else
hs.spotify.play()
end
end
hs.hotkey.bind({}, "F... | nilq/small-lua-stack | null |
function __TS__ArrayShift(arr)
return table.remove(arr, 1)
end
| nilq/small-lua-stack | null |
-- Do not edit! This file was generated by blocks/signal/lowpassfilter_spec.py
local radio = require('radio')
local jigs = require('tests.jigs')
jigs.TestBlock(radio.LowpassFilterBlock, {
{
desc = "128 taps, 0.2 cutoff, 256 ComplexFloat32 input, 256 ComplexFloat32 output",
args = {128, 0.2},
... | nilq/small-lua-stack | null |
local saga = require 'lspsaga'
saga.init_lsp_saga()
| nilq/small-lua-stack | null |
local id_2_name_tbl = {}
local name_2_id_tbl = {}
local M = {}
function M.init()
M.register_mod("msg_define.protocol")
M.register_mod("msg_define.pdk")
M.register_mod("msg_define.nn")
M.register_mod("msg_define.dgnn")
M.register_mod("msg_define.nxphz")
M.register_mod("msg_define.csmj")
end
f... | nilq/small-lua-stack | null |
-- network gamepads protocol
print("Hello World")
-- do not modify this table
local debug_level = {
DISABLED = 0,
LEVEL_1 = 1,
LEVEL_2 = 2
}
-- set debug level
local DEBUG = debug_level.LEVEL_1
local default_settings = {
debug_level = DEBUG,
enabled = true,
port = 9292,
max_msg_len = 128,
}
lo... | nilq/small-lua-stack | null |
local Proxy = module("vrp","lib/Proxy")
local vRP = Proxy.getInterface("vRP")
local queries = {}
function onInit(cfg)
return MySQL ~= nil
end
function onPrepare(name, query)
queries[name] = query
end
function onQuery(name, params, mode)
local query = queries[name]
if mode == "execute" then
... | nilq/small-lua-stack | null |
local utils = require "limgui.utils"
local M = {}
---@class VertexLayout
M.VertexLayout = {}
M.VertexLayout.new = function(layout)
return utils.new(M.VertexLayout, layout)
end
return M
| nilq/small-lua-stack | null |
local client_functions = {
["engineRequestModel"] = "",
["engineLoadIFP"] = "",
["getLowLODElement"] = "",
["dxDrawMaterialSectionLine3D"] = "",
["setBlipColor"] = "",
["getPedStat"] = "",
["guiStaticImageLoadImage"] = "",
["isPlayerMapForced"] = "",
["setElementFrozen"] = "",
["... | nilq/small-lua-stack | null |
local compe = require'compe'
local util = require'vim.lsp.util'
local Source = {}
function Source.new(client, filetype)
local self = setmetatable({}, { __index = Source })
self.client = client
self.filetype = filetype
return self
end
function Source.get_metadata(self)
return {
priority = 1000;
dup ... | nilq/small-lua-stack | null |
local Concord = require("lib.concord")
local Class = require("lib.class")
local Vector = require("lib.vector")
local Camera = require("src.camera")
local SpellBase = require("src.classes.spells.spellBase")
local C = require("src.components")
local A = require("src.assemblages")
local SpellSwift = Class("SpellSwift"... | nilq/small-lua-stack | null |
--[[ spike_trap_ai.lua ]]
---------------------------------------------------------------------------
-- AI for the Spike Trap
---------------------------------------------------------------------------
local triggerActive = true
function Fire(trigger)
local triggerName = thisEntity:GetName()
--print(tostring(trig... | nilq/small-lua-stack | null |
local modes = {
{
name = "off",
desc = "Off",
texture = "arrowboards_bg.png^arrowboards_off.png",
},
{
name = "flashing_arrow_right",
desc = "Мигающ. стрел. вправо",
texture = {
name = "[combine:64x128:0,0=arrowboards_bg.png:0,0=arrowboards_off.png:0,64=arrowboards_bg.png:0,64=arrowboards_arrow3.png",... | nilq/small-lua-stack | null |
--[[
Super Mario Brothers: vertical keyboard
Script for FCEUX + Emstrument
This script turns the game world into a keyboard that is activated when Mario lands
after jumping or falling.
The key that is played depends on the height of the platform Mario is on. The key
is lifted when Mario ju... | nilq/small-lua-stack | null |
-- Copyright 2016 Christian Hesse
-- systemd unit file LPeg lexer.
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local M = {_NAME = 'systemd'}
-- Whitespace.
local ws = token(l.WHITESPACE, l.space^1)
-- Comments.
local comment = token(l.COMMENT, l.... | nilq/small-lua-stack | null |
--[[
Copyright (c) 2006-2014 LOVE Development Team
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial ... | nilq/small-lua-stack | null |
function register(state)
if not global.WB_states then
global.WB_states = {state}
else
table.insert(global.WB_states, state)
end
if #global.WB_states == 1 then
script.on_event(defines.events.on_tick, on_tick)
end
end
function on_tick(event)
if #global.WB_state... | nilq/small-lua-stack | null |
project "gts_malloc_static"
flags "FatalWarnings"
kind "StaticLib"
language "C++"
targetdir "%{prj.location}/%{cfg.buildcfg}_%{cfg.architecture}"
includedirs {
"../../../source/gts/include",
}
files {
"../../../source/config.h",
"../../../source/gts/include/gts/platfo... | nilq/small-lua-stack | null |
return {
id = 1000331,
stages = {
{
stageIndex = 1,
failCondition = 1,
timeCount = 180,
passCondition = 1,
backGroundStageID = 1,
totalArea = {
-75,
20,
90,
70
},
playerArea = {
-75,
20,
42,
68
},
enemyArea = {},
mainUnitPosition = {
{
Vector... | nilq/small-lua-stack | null |
require("firecast.lua");
local __o_rrpgObjs = require("rrpgObjs.lua");
require("rrpgGUI.lua");
require("rrpgDialogs.lua");
require("rrpgLFM.lua");
require("ndb.lua");
require("locale.lua");
local __o_Utils = require("utils.lua");
local function constructNew_dnd()
local obj = GUI.fromHandle(_obj_newObject("form"));... | nilq/small-lua-stack | null |
local Constants = {}
Constants.MODULE_MAGIC_NUMBER = 0x6D736100
Constants.SUPPORTED_VERSION = 0x1
Constants.VARUINT_PADDING = 0x80
Constants.VARINT_SIGN = 0x40
Constants.FUNCTION_BODY_END = 0x0B
Constants.ModuleSections = {}
Constants.ModuleSections.TYPE = 1
Constants.ModuleSections.FUNCTION = 3
Constants.... | nilq/small-lua-stack | null |
local mod_gui = require("mod-gui")
function doit(player)
for _, surface in pairs (game.surfaces) do surface.clear_pollution() end
game.forces["enemy"].reset_evolution()
game.forces["enemy"].kill_all_units()
log({'ResetEvolutionPollution_text', player.name})
game.print({'ResetEvolutionPollution_text', playe... | nilq/small-lua-stack | null |
--mobs_fallout v0.0.4
--maikerumine
--made for Extreme Survival game
--dofile(minetest.get_modpath("mobs_fallout").."/api.lua")
--REFERENCE
--fix
--mobs.npc_drops = { "cityscape:canned_food", "shooter:rocket_gun_loaded", "mobs_fallout:meat 4", "shooter:rifle", "default:shovel_steel", "farming:bread", "default:wood",... | nilq/small-lua-stack | null |
ITEM.name = "Железная сабля"
ITEM.desc = "Меч с искривленным лезвием."
ITEM.class = "nut_saber_iron"
ITEM.weaponCategory = "primary"
ITEM.price = 200
ITEM.category = "Оружие"
ITEM.model = "models/morrowind/iron/saber/w_iron_saber.mdl"
ITEM.width = 5
ITEM.height = 1
ITEM.iconCam = {
pos = Vector(0.06674175709486, 70.66... | nilq/small-lua-stack | null |
local AddonName, AddonTable = ...
-- Cataclysm Alchemy
AddonTable.alchemy = {
51950,
52303,
58480,
58483,
68776,
68777,
68775,
65891,
-- Recipe's
67538,
}
| nilq/small-lua-stack | null |
-- Clip the amplitudes in a real valued signal to be within lower and
-- upper limits
--
local block = require('radio.core.block')
local class = require('radio.core.class')
local types = require('radio.types')
local ClipBlock = block.factory("ClipBlock")
function ClipBlock:instantiate(lower, upper)
self.lower = ... | nilq/small-lua-stack | null |
local mode = redis.call('hget', @lock_key, 'mode');
if (mode == false) then
redis.call('hset', @lock_key, 'mode', 'write');
redis.call('hset', @lock_key, @lock_id, 1);
redis.call('pexpire', @lock_key, @expire);
return nil;
end;
if (mode == 'write') then
if (redis.call('hexists', @lock_key, @lock_id)... | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
--
-- This file is part of the Doxyrest toolkit.
--
-- Doxyrest is distributed under the MIT license.
-- For details see accompanying license.txt file,
-- the public copy of which is also available at:
-- http://tibbo.com/downloads/a... | nilq/small-lua-stack | null |
------------------------------------------------------------------------------
-- FILE: ResourceGenerator.lua
-- ORIGNIAL AUTHOR: Ed Beach
-- PURPOSE: Default method for resource placement
------------------------------------------------------------------------------
-- Copyright (c) 2014 Fi... | nilq/small-lua-stack | null |
object_ship_nova_orion_boss_minion_02_tier6 = object_ship_shared_nova_orion_boss_minion_02_tier6:new {
}
ObjectTemplates:addTemplate(object_ship_nova_orion_boss_minion_02_tier6, "object/ship/nova_orion_boss_minion_02_tier6.iff")
| nilq/small-lua-stack | null |
tpad = {}
tpad.version = "1.2"
tpad.mod_name = minetest.get_current_modname()
tpad.texture = "tpad-texture.png"
tpad.mesh = "tpad-mesh.obj"
tpad.nodename = "tpad:tpad"
tpad.mod_path = minetest.get_modpath(tpad.mod_name)
local PRIVATE_PAD_STRING = "Private (only owner)"
local PUBLIC_PAD_STRING = "Public (only owner's ... | nilq/small-lua-stack | null |
local module = {}
local switch = {}
setmetatable(switch, {
__call = function(self, item)
if not item then
warn("Switch statement needs a value to be compared")
else
return function(data)
for i, v in pairs(data) do
if item == module.convertFromString(i) then
if type(v) == "function"... | nilq/small-lua-stack | null |
function onCreate()
setProperty('dad.x',200)
setProperty('dad.y',260)
end | nilq/small-lua-stack | null |
isomap = require ("isomap")
function love.load()
--Variables
x = 0
y = 0
zoomL = 1
zoom = 1
--Set background to deep blue
love.graphics.setBackgroundColor(0, 0, 69)
love.graphics.setDefaultFilter("linear", "linear", 8)
--Decode JSON map file
isomap.decodeJson("JSONMap.json")
--Generate map from JSON file... | nilq/small-lua-stack | null |
local Dialog = ImportPackage("dialogui")
local _ = function(k,...) return ImportPackage("i18n").t(GetPackageName(),k,...) end
local policeNPC
local policeNpcMenu
local policeSearchMenu
local policeMenu
local isOnDuty = false
AddRemoteEvent("SetupPolice", function(policenpc)
policeNPC = policenpc
for key, np... | nilq/small-lua-stack | null |
return {
id = 2004,
value = "any",
} | nilq/small-lua-stack | null |
addon.name = 'LuAshitacast';
addon.author = 'Thorny';
addon.version = '1.23';
addon.desc = 'A lua-based equipment swapping system for Ashita';
addon.link = 'https://github.com/ThornyFFXI/LuAshitacast';
require('common');
chat = require('chat');
gBase = {};
gData = require('data');
gDefaultSettings... | nilq/small-lua-stack | null |
object_draft_schematic_genetic_engineering_combiner_housing = object_draft_schematic_genetic_engineering_shared_combiner_housing:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_genetic_engineering_combiner_housing, "object/draft_schematic/genetic_engineering/combiner_housing.iff")
| nilq/small-lua-stack | null |
function string.tohex(s,chunkSize)s=(type(s)=="string"and s or type(s)=="nil"and""or tostring(s))chunkSize=chunkSize or 2048 local rt={} string.tohex_sformat=(string.tohex_sformat and string.tohex_chunkSize and string.tohex_chunkSize==chunkSize and string.tohex_sformat)or string.rep("%02X",math.min(#s,chunkSize)) strin... | nilq/small-lua-stack | null |
local olua = require "typecls"
local typedef = olua.typedef
typedef {
CPPCLS = 'void',
CONV = '<NONE>',
}
typedef {
CPPCLS = [[
void *
GLvoid *
]],
LUACLS = 'void *',
CONV = 'olua_$$_obj',
}
typedef {
CPPCLS = 'bool',
CONV = 'olua_$$_bool',
}
typedef {
CPPCLS = [[... | nilq/small-lua-stack | null |
return {
-- Heavily inspired by https://github.com/KhronosGroup/glTF-WebGL-PBR/blob/master/shaders/pbr-vert.glsl
vertex = VFS.LoadFile("ModelMaterials/Shaders/pbr.vert"),
fragment = VFS.LoadFile("ModelMaterials/Shaders/pbr.frag"),
uniformInt = {
tex0 = 0,
tex1 = 1,
tex2 = 2,
tex3 = 3,
--tex4 = 4,
brdfL... | nilq/small-lua-stack | null |
clinkz_death_pact_oaa = class( AbilityBaseClass )
LinkLuaModifier( "modifier_clinkz_death_pact_oaa", "abilities/oaa_death_pact.lua", LUA_MODIFIER_MOTION_NONE )
LinkLuaModifier( "modifier_clinkz_death_pact_effect_oaa", "abilities/oaa_death_pact.lua", LUA_MODIFIER_MOTION_NONE )
-----------------------------------------... | nilq/small-lua-stack | null |
local allowedSpectatorSteamIds = {}
local NAME_PREFIX = "spec-"
local NAME_REMINDER_INTERVAL_IN_SECONDS = 400
local NAME_REMINDER_MESSAGE = "Remember to remove '" .. NAME_PREFIX .. "' from your name before reconnecting."
local DISCONNECT_REASON = "No Spectator slots open. You are being disconnected."
local clientConfir... | nilq/small-lua-stack | null |
local mainmenu = import(".MainMenu")
local LoadingScene = class("LoadingScene", function ()
return display.newScene("LoadingScene")
end)
function LoadingScene:ctor()
self.layer = display.newLayer()
local background = display.newSprite("logo.png", display.cx, display.cy):addTo(self.layer)
background:setScale(disp... | nilq/small-lua-stack | null |
local hotkey = require 'hs.hotkey'
local window = require 'hs.window'
local mouse = require 'hs.mouse'
local geometry = require 'hs.geometry'
local match_dialgoue = import('utils/match_dialogue')
local function module_init()
local function match_data_source()
local results = {}
for _, win in ipai... | nilq/small-lua-stack | null |
#! /usr/bin/env lua
--
-- main.lua
-- Copyright (C) 2021 Tyler Hart <admin@night.horse>
--
-- Distributed under terms of the MIT license.
--
DEBUG = true;
function print_dbg(str)
if DEBUG then print(str) end
end
function print_err(str)
print(str)
end
function file_into_arr(filepath, line_fn)
local file = io.open... | nilq/small-lua-stack | null |
require 'luacov'
local treap = require "treap"
context("treap.lua interface implements", function()
context('new()', function()
test('creates a new treap', function()
local root = treap.new(0)
assert_equal(root.key, 0)
end)
test('by default, it will have a random numeric priority', function(... | nilq/small-lua-stack | null |
UT.menus.construction = {
title = "construction menu",
button_list = {
{text = "save", callback_func = function() UT.Construction.save() end},
{text = "load", callback_func =
function()
local menu = {
title = "load",
bu... | nilq/small-lua-stack | null |
local mansion_0 = DoorSlot("mansion","0")
local mansion_0_hub = DoorSlotHub("mansion","0",mansion_0)
mansion_0:setHubIcon(mansion_0_hub)
local mansion_1 = DoorSlot("mansion","1")
local mansion_1_hub = DoorSlotHub("mansion","1",mansion_1)
mansion_1:setHubIcon(mansion_1_hub)
local mansion_2 = DoorSlot("mansion","2")
loca... | nilq/small-lua-stack | null |
F02 - 3P
F03 - 3P
F04 - 3P
F05 - 3P
F06 - 3P
F07 - 3P
F08 - 2P
F09 - 2P
F10 - 2P
F11 - 2P
F12 - 6P
F13 - 6P
F14 - 6P
F15 - 6P
F16 - 6P
F17 - 6P
F18 - 6P
F19 - 6P
F20 - 5P
F21 - 5P
F22 - 5P
F23 - 5P
F24 - 2P
F25 - 2P
F26 - 2P
F27 - 2P
F28 - 2P
F29 - 2P
F30 - 2P
F31 - 2P
F32 - 2P
F33 - 2P
F34 - 2P
F35 - 5P
F36 - 5P
F37 -... | nilq/small-lua-stack | null |
local mod = DBM:NewMod(1774, "DBM-BrokenIsles", nil, 822)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 17078 $"):sub(12, -3))
mod:SetCreatureID(109331)
mod:SetEncounterID(1952)
mod:SetReCombatTime(20)
mod:SetZone()
--mod:SetMinSyncRevision(11969)
mod:RegisterCombat("combat")
mod:Regi... | nilq/small-lua-stack | null |
-- This is a script made by FreakingHulk for the Intro GUI in Cops vs Robbers.
local gui = script.Parent.Parent -- The core gui
local frame = script.Parent -- The frame that all of this is parented to
local cops, prisoners, citizens = frame.Cops, frame.Prisoners, frame.Citizens -- These are each textbuttons
local play... | nilq/small-lua-stack | null |
function fromhex(s)
return tonumber(s, 16)
end
function fromhex_swapnibbles(s)
local x = fromhex(s)
return math.floor(x/16) + 16*(x%16)
end
local hext = { [0] = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'a', 'b', 'c', 'd', 'e', 'f'}
function tohex(b)
return hext[math.floor(b/16)]..hext[b%16]
end
function tohex_... | nilq/small-lua-stack | null |
-- Show list of studies / series that match query on passed date, modality, and patientID
-- allows: select, unselect, collect, submit at study or series level
-- allows: view at series level
-- 20130926 RvdB require 'Alea/split'
-- 20141031 mvh+svk: Split hierarchical query into 2 non-hier levels
-- 20141102 mvh+svk: ... | nilq/small-lua-stack | null |
local helpers = {}
function helpers.isZoomRunning()
return hs.application.get('zoom.us')
end
function helpers.logWindowInfo(w)
log.d("Id:", w:id())
log.d("Title:", w:title())
log.d("Size:", w:size())
log.d("Frame:", w:frame())
log.d("Role:", w:role())
log.d("Subrole:", w:subrole())
log.d(w)
end
funct... | nilq/small-lua-stack | null |
-- Mini Streams library
---@class DataStream
---@field content string # Reader only
---@field ptr integer # Reader only
---@field len number # Reader only
---@field index number # Writer only
---@field parts string # Writer only
local DataStream = {}
DataStream.__index = DataStream
---@param str string
---@return Dat... | nilq/small-lua-stack | null |
local importations = require(IMPORTATIONS)
local ads = require(importations.ADS)
local APP_KEY = 'b577d563-b843-447c-a470-fbb59dd075e4'
local PREFERENCES_BANNER = 'bottom-banner-320x50'
local GAME_OVER_BANNER = 'interstitial-1'
local ABOUT_BANNER = PREFERENCES_BANNER
local SUPPORTED_SCREENS = {
PREFERENCES = 'pr... | nilq/small-lua-stack | null |
return Def.Quad {
InitCommand=function(self)
self:horizalign(left)
:x(28.5)
:setsize(358.6, 30)
end
}
| nilq/small-lua-stack | null |
--[[
OperatorFunction = function(param, value, count) => newValue, acceptItem, mustContinue
]]
local function operatorFilter(predicate, value, count)
return value, (predicate(value) == true), true
end
local function operatorMap(mapper, value, count)
return mapper(value), true, true
end
local function opera... | nilq/small-lua-stack | null |
local COMMAND = {}
COMMAND.title = "AFK"
COMMAND.description = "Set yourself afk."
COMMAND.author = "Nub"
COMMAND.timeCreated = "Saturday, May 2, 2020 @ 9:16 PM"
COMMAND.category = "Utility"
COMMAND.call = "afk"
COMMAND.server = function(caller, args)
if not IsValid(caller) then return end
caller.n_A... | nilq/small-lua-stack | null |
dofile(minetest.get_modpath("checkpoints") .. DIR_DELIM .. "checkpoints_common.lua")
---------------------------------------------------
-- this section creates a floating lap indicator
---------------------------------------------------
minetest.register_node("checkpoints:lap_end", {
tiles = {"lap_end.png"},
... | nilq/small-lua-stack | null |
#!/usr/bin/lua
require 'ext'
local json = require 'myjson'
local staticIntro = 'horizonsStaticData = '
local static = json.decode(file['static-vars.json']:match(staticIntro..'(.*)'))
local dynamicIntro = 'horizonsDynamicData = '
local dynamic = json.decode(file['dynamic-vars.json']:match(dynamicIntro..'(.*)'))
prin... | nilq/small-lua-stack | null |
phantom_mobility = class({})
LinkLuaModifier("modifier_phantom_mobility_charges", "abilities/heroes/phantom/phantom_mobility/modifier_phantom_mobility_charges", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_phantom_mobility_displacement", "abilities/heroes/phantom/phantom_mobility/modifier_phantom_mobility_displa... | nilq/small-lua-stack | null |
--- @param targetlist table
function ents.FindByMagicTarget(targetlist)
local found_ents = {}
for _, target in ipairs(targetlist) do
if type(target) == "number" then
table.insert(found_ents, ents.GetMapCreatedEntity(target))
else
table.Add(found_ents, ents.FindByName(target))
end
end
return found_ents
e... | nilq/small-lua-stack | null |
-- Most of this code ripped directly from Xenia (github.com/benvanik/xenia)
include("tools/build")
require("third_party/premake-export-compile-commands/export-compile-commands")
require("third_party/premake-qt/qt")
if os.is("windows") and os.isdir("C:\\Qt\\5.8\\msvc2015_64") then
qtpath "C:\\Qt\\5.8\\msvc2015_64"
en... | nilq/small-lua-stack | null |
local camera_angles
local camera_angle_sensitivty = 0.25
local camera_angles_start
local camera_position
local camera_position_sensitivty = 60
local floor_alpha = 255
local floor_distance = 16
local floor_distance_buffer = 8
local floor_draw_bottom = true
local floor_scale = 0.125
local floor_size = 1024
local floor_si... | nilq/small-lua-stack | null |
------------------------------------------------------------------------------------------------
function TransAK()
IsOnClick = false
IsM16 = false
IsUWP9 = false
IsUZI = false
IsSC = false
IsM4 = false
IsAK = not IsAK
end
---------------------------------------------------------... | nilq/small-lua-stack | null |
SetupProject("Tut_14_Basic_Texture", "BasicTexture.cpp",
"data/PN.vert",
"data/ShaderGaussian.frag",
"data/TextureGaussian.frag")
SetupProject("Tut_14_Perspective_Interpolation", "PerspectiveInterpolation.cpp",
"data/SmoothVertexColors.vert",
"data/SmoothVertexColors.frag",
"data/NoCorrectVertexColors.vert",
"d... | nilq/small-lua-stack | null |
AddCSLuaFile( )
ENT.Type = "anim"
ENT.Base = "gasl_base_ent"
ENT.AutomaticFrameAdvance = true
function ENT:SetupDataTables()
self:NetworkVar( "Bool", 0, "Respawn" )
self:NetworkVar( "Int", 1, "DropType" )
end
if ( CLIENT ) then
function ENT:Initialize()
self.BaseClass.Initialize( self )
end
functio... | nilq/small-lua-stack | null |
-- iluaembed.lua
-- based on Steve Donovan's executable ilua.lua (2007)
-- "A more friendly Lua interactive prompt
-- doesn't need '='
-- will try to print out tables recursively, subject to the pretty_print_limit value."
--
-- version by osar.fr to embed the interactive Lua console in C/C++ programs
-- creates a glob... | nilq/small-lua-stack | null |
print('hello perilune')
print(Vector3)
local zero = Vector3.Zero()
print(zero)
print(zero.x)
local v = Vector3.New(1, 2, 3)
print(v)
print(v.x)
print(v.y)
print(v.z)
local n = v.sqnorm()
print(n)
local list = Vector3List.New()
print(list, #list)
list.push_back(v)
list.push_back(v)
list.push_back... | nilq/small-lua-stack | null |
megan_drlar_missions =
{
{
missionType = "escort",
primarySpawns =
{
{ npcTemplate = "salvager_quest_megan", npcName = "a Salvage Worker" }
},
secondarySpawns =
{
{ npcTemplate = "scavenger", npcName = "" },
{ npcTemplate = "scavenger", npcName = "" }
},
itemSpawns =
{
},
... | nilq/small-lua-stack | null |
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author.
--]]
PLUGIN.name = "New Intro";
PLUGIN.description = "Reverts ix intro into a customised version of the nutscript one.";
PLUGIN.author = "Adolphus"; | nilq/small-lua-stack | null |
require 'torch'
local ffi = require 'ffi'
local serialize = {}
local typenames = {}
local function serializePointer(obj, f)
-- on 32-bit systems double can represent all possible
-- pointer values, but signed long can't
if ffi.sizeof('long') == 4 then
f:writeDouble(torch.pointer(obj))
-- on 64-bit s... | nilq/small-lua-stack | null |
HPetSaves = {
["OnlyInPetInfo"] = false,
["FastForfeit"] = true,
["ShowBandageButton"] = false,
["ShowGrowInfo"] = true,
["ShowBreedID"] = false,
["EnemyAbility"] = true,
["ShowMsg"] = true,
["Sound"] = true,
["HighGlow"] = true,
["AbScale"] = 0.8,
["PetBreedInfo"] = false,
["ShowHideID"] = true,
["PetGre... | nilq/small-lua-stack | null |
-- Script for MAME that launches the vg5k emulator, waits for boot, injects
-- a binary program and launches it.
--
-- Copyright 2018 Sylvain Glaize
--
-- 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... | 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.