content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
#!/usr/bin/env lua
-- Selecting component content
local cl = require('mooncl')
local function printf(...) io.write(string.format(...)) end
-- cl.trace_objects(true)
local source = [[
kernel void select_test(global float4 *s1, global uchar2 *s2)
{
/* select usage */
int4 mask1 = (int4)(-1, 0, -1, 0);
flo... | nilq/small-lua-stack | null |
setenv("intel_version", myModuleVersion())
add_property("arch","mic")
local base = pathJoin("/app", myModuleFullName())
setenv( "LMOD_INTEL_DIR", base)
setenv( "LMOD_INTEL_LIB", pathJoin(base,"lib"))
whatis("Name: " .. myModuleName())
whatis("Version: " .. myModuleVersion())
whatis("Category: library, mathematics")
w... | nilq/small-lua-stack | null |
-- Custom Codex UI by Xan the Dragon // Eti the Spirit [RBX 18406183]
-- Proposed by Sayter, approved of by Xan
-- And then made by Xan
-- Because starbound needs to up their game, like damn
-- To reference any ScrollArea children widgets in Lua scripts (widget.* table) use the following format: <ScrollArea name>.<C... | nilq/small-lua-stack | null |
include "app.ui.base.init"
_ENV=namespace "ui"
using_namespace "luaClass"
using_namespace "container"
class("SelectUI"){
super(cc.Layer);
super(LUIObject);
SINGAL.cellSelected("cellid","cell");
public{
FUNCTION.SelectUI(function(self,size)
self=self:__super()
self:LUIO... | nilq/small-lua-stack | null |
-- THIS FILE IS GENERATED. DO NOT EDIT MANUALLY.
-- stylua: ignore start
return {properties = {["grammarly.config.documentDialect"] = {default = "auto-text",enum = { "american", "australian", "british", "canadian", "auto-text" },enumDescriptions = { "", "", "", "", "An appropriate value based on the text." },markdownDe... | nilq/small-lua-stack | null |
local R = require "rigel"
local SOC = require "generators.soc"
local C = require "generators.examplescommon"
local harness = require "generators.harnessSOC"
local G = require "generators.core"
local RS = require "rigelSimple"
local types = require "types"
types.export()
local SDF = require "sdf"
local Zynq = require "g... | nilq/small-lua-stack | null |
local module, parent = torch.class('nn.StylePatchLossModule', 'nn.Module')
function module:__init(strength, normalize)
parent.__init(self)
self.strength = strength
self.normalize = normalize or false
self.target_patches = nil
self.stitched_patches = nil
self.conv_cc = nn.SpatialConvolution(1,1... | nilq/small-lua-stack | null |
require("Framework.event.Event")
local emptyOwner = {}
---@class EventHandler
---@field owner table
---@field handler fun(evt:Framework.event.Event)
local EventHandler = class("EventHandler")
function EventHandler:ctor(owner, handler)
self.owner = owner
self.handler = handler
end
---call
---@param evt Framewo... | nilq/small-lua-stack | null |
data:extend(
{
{
type = "item",
name = "lo-radio-transmitter",
icon = "__lo-radio-telemetry__/resources/icons/radio-transmitter.png",
flags = {"goes-to-quickbar"},
subgroup = "circuit-network",
order = "c[radio]-a[transmitter]",
place_result = "lo-radio-transmitter",
stack_size = 50,
icon_size = 32,
... | nilq/small-lua-stack | null |
local GM = GM or GAMEMODE
local entityMeta = FindMetaTable("Entity")
--- Clears all of the networked variables.
-- @realm server
-- @internal
-- @tab[opt=nil] receiver The players to clear the networked variable for
function entityMeta:ClearNetVars(receiver)
if (table.IsEmpty(ix.net.list) and table.IsEmpty(ix.net.lo... | nilq/small-lua-stack | null |
--------------------------------------------------
-- Declare Contants --
--------------------------------------------------
local constants = {
-- Request Headers
REQUEST_HEADERS = {
X_ACCESS_TOKEN = "X-Access-Token",
X_ID_TOKEN = "X-ID-Token",
X_USERINFO = "X-Userinfo",
... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Uleguerand Range
-- Mob: Molech
-- Note: PH for Magnotaur
-----------------------------------
local ID = require("scripts/zones/Uleguerand_Range/IDs")
require("scripts/globals/mobs")
-----------------------------------
function onMobDeath(mob, player, isKiller)
end
functi... | nilq/small-lua-stack | null |
local fio = require('fio')
local t = require('luatest')
local g = t.group()
local helpers = require('test.helper')
g.before_each(function()
t.skip_if(type(helpers) ~= 'table', 'Skip cartridge test')
g.cluster = helpers.init_cluster()
end)
g.after_each(function()
g.cluster:stop()
fio.rmtree(g.cluster.... | nilq/small-lua-stack | null |
require("app.init")
local MyApp = class("MyApp", cc.load("mvc").AppBase)
function MyApp:onCreate()
math.randomseed(os.time())
end
function MyApp:run()
display.runScene(views.MainScene:create())
end
return MyApp
| nilq/small-lua-stack | null |
file = 'example_config.json'
json = require 'cjson'
util = require 'cjson.util'
obj = json.decode(util.file_load(file))
require 'pl.pretty'.dump(obj) | nilq/small-lua-stack | null |
-- Use a protected call so we don't error out on first use
local status_ok, _ = pcall(require, "lspconfig")
if not status_ok then
return
end
local nvim_lsp = require('lspconfig')
-- Use an on_attach function to only map the following keys
-- after the language server attaches to the current buffer
local on_attach =... | nilq/small-lua-stack | null |
object_draft_schematic_weapon_lightsaber_two_handed_gen4 = object_draft_schematic_weapon_shared_lightsaber_two_handed_gen4:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_weapon_lightsaber_two_handed_gen4, "object/draft_schematic/weapon/lightsaber_two_handed_gen4.iff")
| nilq/small-lua-stack | null |
--region Base Require
require("Enumerators")
require("Utils")
--endregion
--region MsgDispatcher 测试
--require "SimpleMessageDispatcher.SimpleMsgDispatcher"
--
---- 初始化随机数种子
--math.randomseed(os.time())
--
--local msgName = { "Msg_1" }
--local guidList = {}
--
----region 生成测试数据
--
-----GenerateMsg
-----@param subscript... | nilq/small-lua-stack | null |
--
-- 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 Apache License, Version 2.0
-- (the "License"); you may ... | nilq/small-lua-stack | null |
-- ... haskell.lua
| nilq/small-lua-stack | null |
preferredtoolarchitecture "x86_64"
if _OPTIONS["win10"] and not _OPTIONS["clang"] then
filter {}
systemversion "10.0.16299.0"
end
filter { "platforms:x86" }
system "Windows"
architecture "x86"
filter { "platforms:x86_64" }
system "Windows"
architecture "x86_64"
filter { "platforms:arm" }
system "Wi... | nilq/small-lua-stack | null |
--MoveCurve
--H_Kotori/curve_Attack3 curve_Attack3
return
{
filePath = "H_Kotori/curve_Attack3",
startTime = Fixed64(15518925) --[[14.8]],
startRealTime = Fixed64(310379) --[[0.296]],
endTime = Fixed64(50331648) --[[48]],
endRealTime = Fixed64(1006632) --[[0.96]],
isZoom = false,
isCompensate = false,
curve = ... | nilq/small-lua-stack | null |
-- Dependencies
local Controller = require("engine.Controller")
local File = require("engine.File")
local Function = require("engine.Function")
local Log = require("engine.Log")
local Transition = require("engine.Transition")
-- State module
local State = {}
-- Variables
local statesPrefix = nil
local ... | nilq/small-lua-stack | null |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... | nilq/small-lua-stack | null |
local riak = require "resty.riak"
local client = riak.new()
local ok, err = client:connect("127.0.0.1", 8087)
if not ok then
ngx.log(ngx.ERR, "connect failed: " .. err)
end
local info, err = client:get_server_info()
ngx.say(type(info))
ngx.say(type(info.node))
ngx.say(type(info.server_version))
ngx.say(err)
local... | nilq/small-lua-stack | null |
f = SimpleForm("pushbot")
luci.sys.call("/usr/bin/pushbot/pushbot client")
f.reset = false
f.submit = false
f:append(Template("pushbot/pushbot_client"))
return f
| nilq/small-lua-stack | null |
//-----------------------------------------------------------------------------------------------
//
//shared file for tnl printsalot
//
//@author TotallyNotLuna </3 </3
//@version 10/9/17
//-----------------------------------------------------------------------------------------------
--[[------------------... | nilq/small-lua-stack | null |
local SKILL = include("shared.lua")
SKILL.Description = "You stay alive while down for an extra " .. SKILL.Mult .. " seconds per point invested."
SKILL.PrintName = "Persistent"
SKILL.Icon = Material("gui/nzombies_level_system/skillicons/wip.png")
SKILL.X = -300
SKILL.Y = 100
return SKILL | nilq/small-lua-stack | null |
-- StorageSQLite.lua
-- Implements the SQLite-backed database storage
--[[
Usage: Call SQLite_CreateStorage() to get an object that has all the functions implemented below.
g_DB = SQLite_CreateStorage(config)
...
local areas = g_DB:LoadAllPlayerAreas()
--]]
--- The SQLite backend namespace:
local StorageSQLite... | nilq/small-lua-stack | null |
local luasql = require "luasql.sqlite3"
local env = luasql.sqlite3()
local conn = env:connect("my.db")
conn:execute("CREATE TABLE <%= pluralize(name) %> (<% _.each(attrs, function (attr) { %><%= attr.attrName %> <% if (attr.attrType == 'Enum' || attr.attrType == 'Date') { %>STRING, <% } else { %><%= attr.attrType.toUpp... | nilq/small-lua-stack | null |
print("[NOTICE] svnupdate.lua is DEPRECATED.");
print("Please use gitupdate.lua instead. Here, I'll do it for you.\n");
rest(500);
dofile(getExecutionPath() .. '/gitupdate.lua'); | nilq/small-lua-stack | null |
fx_version 'cerulean'
game 'gta5'
description 'QB-Justice'
version '1.0.0'
shared_script '@qb-core/import.lua'
client_script 'client/main.lua'
server_script 'server/main.lua' | nilq/small-lua-stack | null |
local Container = require('containers/abstract/Container')
local Activity, get = require('class')('Activity')
function Activity:__init(data, parent)
Container.__init(self, data, parent)
return self:_loadMore(data)
end
function Activity:_load(data)
Container._load(self, data)
return self:_loadMore(data... | nilq/small-lua-stack | null |
-- luacheck: globals vim
--Bordet
-- local bordet = require("bordet")
local ui = require("ui")
--- Produces a random hexadecimal string
-- @param sz: Integer size in multiple of four (default 8)
-- @return String hexadecimal string
local randomhex = function(sz)
local gen = {
[[hexdump -n ]] .. (sz or 8) .. [[... | nilq/small-lua-stack | null |
VERSION = "0.1.4"
-- xo
-- A Micro plugin that lints Typescript and Javascript files using XO
-- Plugin source: https://github.com/gamemaker1/micro-plugin-xo
-- XOJS source: https://github.com/xojs/xo
local micro = import("micro")
local runtime = import("runtime")
-- Pre-initialization hook
function preinit()
-- R... | nilq/small-lua-stack | null |
-- npm install -g graphql-language-service-cli
local M = {}
function M.setup()
require("lspconfig").graphql.setup({ on_attach = require("lsp").common_on_attach })
end
return M
| nilq/small-lua-stack | null |
local res = require('responses')
----------------------
-- Decode URI
local function hex_to_char(x)
return string.char(tonumber(x, 16))
end
local function uri_decode(input)
return input:gsub("%+", " "):gsub("%%(%x%x)", hex_to_char)
end
local function parseArgs(args)
local r = {}
if args == nil or arg... | nilq/small-lua-stack | null |
-- ===========
-- MODE BUBBLE
-- ===========
-- Created by datwaft <github.com/datwaft>
local settings = {
tag = vim.g.bubbly_tags,
color = vim.g.bubbly_colors,
style = vim.g.bubbly_styles,
filter = vim.g.bubbly_filter,
}
---@type fun(settings: table, module_name: string): table
local process_settings = requi... | nilq/small-lua-stack | null |
local utils = require("utils")
local barrier = {}
barrier.name = "MaxHelpingHand/KevinBarrier"
barrier.depth = 0
function barrier.color(room, entity)
local color = {0.25, 0.25, 0.25, 0.8}
if entity.color then
local success, r, g, b = utils.parseHexColor(entity.color)
if success then
... | nilq/small-lua-stack | null |
--// Written by: R0bl0x10501050
--// Filename: TraversableTable.lua
----
local function checkDictionary(tbl)
local isDict = true
for i, v in pairs(tbl) do -- accurately get the "first" element to check
if i == 1 then
isDict = false
end
break
end
return isDict
end
local function safeGetLength(tbl)
if t... | nilq/small-lua-stack | null |
ITEM.Name = 'RPG'
ITEM.Price = 200
ITEM.Model = 'models/weapons/w_rocket_launcher.mdl'
ITEM.WeaponClass = 'weapon_rpg'
ITEM.SingleUse = true
ITEM.AllowedUserGroups = { "vip" }
function ITEM:OnBuy(ply)
if (!ply:HasWeapon(self.WeaponClass)) then
ply:Give(self.WeaponClass)
else
ply:GiveAmmo(3, "RPG_Ro... | nilq/small-lua-stack | null |
local lvl4=game.Players.LocalPlayer
local divName="NAMEHERE" - put name here
local StartMessageOn=true --\\leave this
local kovalue=100 --\\??????
local spamtext="ts" --\\default spam
local firecolor="Deep blue" -- might be broken?
local sp=50 --\\ default part spam amount
local decal1='156917878' --\\ def... | nilq/small-lua-stack | null |
minetest.register_craftitem("yatm_core:ic", {
description = "Integrated Circuit",
inventory_image = "yatm_materials_ic.png",
groups = {
ic = 1,
},
})
| nilq/small-lua-stack | null |
--[[
A faster variant of `nn.SparseLinear` that imposes stricter
preconditions to speed up `updateParameters`.
]]
local SparseLinear, parent = torch.class('fbnn.SparseLinear', 'nn.SparseLinear')
function SparseLinear:__init(inputSize, outputSize, useSparseUpdate)
parent.__init(self, inputSize, outputSize)
self.us... | nilq/small-lua-stack | null |
package.path = package.path..";".."../?.lua"
local ffi = require("ffi")
local bit = require("bit")
local bor, band, lshift, rshift = bit.bor, bit.band, bit.lshift, bit.rshift
local PE = require("perf_event")
local pfm = require("pfmlib")
local S = require("syscall")
local nr = require "syscall.linux.nr"
local _IO, _... | nilq/small-lua-stack | null |
--白の水鏡
--Scripted by nekrozar
function c100260018.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,100260018+EFFECT_COUNT_C... | nilq/small-lua-stack | null |
-- guitar
local af = Def.ActorFrame{}
af[#af+1] = LoadActor("./bg.png")..{
InitCommand=function(self) self:diffuse(1,1,1,0) end,
ShowCommand=function(self) self:smooth(1.666):diffuse(1,1,1,1) end,
}
af[#af+1] = LoadActor("./shading.png")..{
InitCommand=function(self) self:diffuse(1,1,1,0) end,
ShowCommand=functi... | nilq/small-lua-stack | null |
--[[
Nintendo Entertainment System emulator for Love2D
CPU Emulation
By Gamax92
--]]
-- Emulate Decimal mode? (NES doesn't)
_decimal = false
-- Stores CPU things like flags/registers/vectors
local _cpu
_cpu = {
running = false,
registers = {
A = 0x00,
X = 0x00,
Y = 0x00,
SP = 0xFF,
... | nilq/small-lua-stack | null |
Locales['sv'] = {
['cant_rob'] = '~r~Du kan inte råna den här',
['press_stop'] = 'Tryck på [DEL] för att stoppa',
['max_amount'] = '~r~Har nått maxbeloppet',
['min_police'] = 'Det måste finnas minst ~b~%s polis~s~ i staden för att man ska kunna råna',
['no_room'] = '~r~Du kan inte behålla bytet... | nilq/small-lua-stack | null |
-- Item related functions. Subset of gamefunctions.lua.
-- Load items from file
function game.initItems ()
game.items = {}
local itemsToLoad = table.load("assets/itemdefs/items.ldef")
for i,v in pairs(itemsToLoad) do
local _ = table.load("assets/itemdefs/"..v)
game.items[_.id] = _
end
end
-- ... | nilq/small-lua-stack | null |
-- incredible-gmod.ru
-- advanced Material function.
if not istable(Material) then
local OMaterial = Material
Material = setmetatable({
cache = {},
old = OMaterial
}, {
__call = function(self, path, ...)
if self.cache[path] then return self.cache[path] end
lo... | nilq/small-lua-stack | null |
local skynet = require "skynet"
local socket = require "socket"
skynet.start(function()
local agent = {}
for i=1,20 do
print("agent"..i)
agent[i]=skynet.newservice("agent")
end
local balence = 1
local id = socket.listen("0.0.0.0", 8001)
socket.start(id, function(id,addr)
skynet.send(agent[balence],"lua",... | nilq/small-lua-stack | null |
RegisterServerEvent('VaultDoorSystem:MoveDoorServer')
AddEventHandler('VaultDoorSystem:MoveDoorServer', function(Player, Heading)
TriggerClientEvent('VaultDoorSystem:MoveDoorClient', Player, Heading)
end)
| nilq/small-lua-stack | null |
local dtrequire = dtrequire
return function()
local newgt = setmetatable({}, {__index = _G})
setfenv(1, newgt)
-- Shenaniganize the global state
local unload = {}
for k, v in pairs(package.loaded) do
--print("unloading", k, v)
unload[k], package.loaded[k] = v, nil
end
-- T... | nilq/small-lua-stack | null |
Locales['fr'] = {
['trunk_closed'] = 'Ce coffre est ~r~fermé~s~.',
['no_veh_nearby'] = 'Il n\'y a pas de véhicule.',
['trunk_in_use'] = 'Quelqu\'un utilise déjà ce coffre.',
['trunk_weight'] = 'Poids du coffre: ~g~%s / %s kg~w~',
['trunk_full'] = 'Ce coffre est ~... | nilq/small-lua-stack | null |
--Necro Knight
function c700013.initial_effect(c)
--sp summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(700013,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFE... | nilq/small-lua-stack | null |
local wibox = require("wibox")
local gears = require("gears")
local dpi = require("beautiful").xresources.apply_dpi
-- Return function to create a progressbar
return function(thickness, bgColor, fgColor)
-- Create progessbar widget to display the bar
local bar =
wibox.widget {
max_value = 100,
value = ... | nilq/small-lua-stack | null |
bot.add_command("tag", {
description = "View a tag",
aliases = { "t" },
args = {
{
key = "tag",
name = "NAME",
description = "Tag name",
required = true,
}
},
callback = function(ctx)
local tag = tags.find_tag(ctx.msg.channel.se... | nilq/small-lua-stack | null |
object_ship_nova_orion_patrol_med_tier6 = object_ship_shared_nova_orion_patrol_med_tier6:new {
}
ObjectTemplates:addTemplate(object_ship_nova_orion_patrol_med_tier6, "object/ship/nova_orion_patrol_med_tier6.iff")
| nilq/small-lua-stack | null |
function Babbler:ModifyDamageTaken(damageTable, attacker, doer, damageType, hitPoint)
end | nilq/small-lua-stack | null |
slot0 = class("FormationMediator", import("..base.ContextMediator"))
slot0.OPEN_SHIP_INFO = "FormationMediator:OPEN_SHIP_INFO"
slot0.ON_CHANGE_FLEET = "FormationMediator:ON_CHANGE_FLEET"
slot0.CHANGE_FLEET_NAME = "FormationMediator:CHANGE_FLEET_NAME"
slot0.CHANGE_FLEET_SHIP = "FormationMediator:CHANGE_FLEET_SHIP"
slot0... | nilq/small-lua-stack | null |
wlScans = {
["heirlooms"] = "122349:1,122352:1,122366:0,122354:1,122367:1,122385:1,122386:1,122389:0,122351:0,122369:0,122365:0,122363:0,122353:1,122368:0,105690:0,122350:0,122364:0,122391:1,105680:0,122392:1,122387:1,122263:1,122264:1,122388:1,122381:1,122245:1,122251:1,122355:1,127010:0,127012:1,127011:0,122373:0... | nilq/small-lua-stack | null |
object_tangible_loot_creature_loot_collections_space_engine_mark_01_cygnus = object_tangible_loot_creature_loot_collections_space_shared_engine_mark_01_cygnus:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_space_engine_mark_01_cygnus, "object/tangible/loot/creature/loot/collections... | nilq/small-lua-stack | null |
if not zen then zen = {} end
if not zen.nuclear then zen.nuclear = {} end
require("prototypes.nuclear")
require("prototypes.technology")
require("prototypes.item")
require("prototypes.recipe")
| nilq/small-lua-stack | null |
object_mobile_skeleton_static = object_mobile_shared_skeleton_static:new {
}
ObjectTemplates:addTemplate(object_mobile_skeleton_static, "object/mobile/skeleton_static.iff")
| nilq/small-lua-stack | null |
if Server then
function RegenerationMixin:AddRegeneration(regen)
local max = self:GetMaxHealth() - self:GetHealth()
self.regenerationValue = regen
self.regenerationHealth = math.min(self.regenerationHealth + self.regenerationValue, max)
self.regenerating = true
end
end | nilq/small-lua-stack | null |
--[[
* Copyright (c) MZ3 Project Team All rights reserved.
* Code licensed under the BSD License:
* http://www.mz3.jp/license.txt
]]
--------------------------------------------------
-- MZ3 Script test
--
-- $Id$
--------------------------------------------------
module("test", package.seeall)
| nilq/small-lua-stack | null |
if GetLocale() ~= "deDE" then return end
local L
---------------
-- Gruul --
---------------
L= DBM:GetModLocalization(1161)
L:SetOptionLocalization({
MythicSoakBehavior = "Strategie für Infernoschlitzer im mythischen Schwierigkeitsgrad (für Spezialwarnungen)",
ThreeGroup = "3 Gruppen (jede 1 Stapel)",... | nilq/small-lua-stack | null |
-- Author : Ahmed A. Khfagy
-- made in CS50 into to Game Development
-- this class is for the changing mode state
ChooseModeState = Class{__includes = BasicState}
function ChooseModeState:enter(params)
self.players = params.players
self.players['player-1'].score = 0
self.players['player-2'].score = 0
... | nilq/small-lua-stack | null |
-- I decided to split this off because it's easiest that way.
-- We grow with timers, although we may change to ABM depending on what's less resource intensive/more accurate
local function tick_plant(pos)
minetest.get_node_timer(pos):start(math.random(67,69)) -- 67 -> 69 seconds
-- minetest.get_node_timer(pos):start... | nilq/small-lua-stack | null |
-- HypeMan BotID and Channel private API key files
-- Right now the discord bot uses two bots - one for general takeoff/landing/flight hours/deaths/ejections
-- and another bot/channel only for the LSO carrier landing grades
PRIVATE_HYPEMAN_BOT_CLIENT_ID = 'Bot private.bot.id.goes.here'
PRIVATE_HYPEMAN_CHANNEL_... | nilq/small-lua-stack | null |
--[[
----
---- PLEASE READ BEFORE DOING ANYTHING ----
----
Only "font"s should be added to this addon. If you wish to add textures, sounds, ... create your own addon or use an existing one if there is one.
All "font"s must be able to display special characters such as é, è, à, ü, É, Ç, ... Remember that not al... | nilq/small-lua-stack | null |
modifier_sniper_shrapnel_lua_thinker = class({})
--------------------------------------------------------------------------------
-- Classifications
function modifier_sniper_shrapnel_lua_thinker:IsHidden()
return true
end
function modifier_sniper_shrapnel_lua_thinker:IsPurgable()
return false
end
-----------------... | nilq/small-lua-stack | null |
require 'busted.runner'()
local win = vis.win
-- check that selection position remains unchanged after an invalid adjustment
local invalid_pos = function(place)
local pos = win.selection.pos
local line = win.selection.line
local col = win.selection.col
win.selection:to(line, col)
assert.has_error(place)
assert.... | nilq/small-lua-stack | null |
--
-- a simple pedt task management tool
--
-- usage:
-- > lua pedt.lua <action> [paraments]
-- > lua pedt.lua help
-- > lua pedt.lua
-- paraments:
-- for action 'add'/'run':
-- xxx : taskDef modName/fileName/context, or set stdin by '-'
-- -t modName : task_register_center module name
-- -c typeTag : context t... | nilq/small-lua-stack | null |
local util = require("spec.util")
describe("goto", function()
it("parses", util.check [[
local b = true
if b then
print(b)
goto my_label
end
::my_label::
print(b)
]])
it("rejects an invalid label", util.check_syntax_error([[
goto 123
::123:: print(... | nilq/small-lua-stack | null |
#!/usr/bin/env lua
local function with_command(command, fn)
io.stderr:write("> ", command, "\n")
local handle, err = io.popen(command)
if not handle then
io.stderr:write(err)
os.exit(1)
end
local result = fn(handle)
handle:close()
return result
end
if ... then io.output(...) end
io.write("loc... | nilq/small-lua-stack | null |
--Catche Eve L2 (Fix)
local s,id=GetID()
function s.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION+EFFECT_TYPE_TRIGGER_O)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,id)
e1:Set... | nilq/small-lua-stack | null |
package("mapbox_eternal")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/mapbox/eternal")
set_description("A C++14 compile-time/constexpr map and hash map with minimal binary footprint")
set_license("ISC")
set_urls("https://github.com/mapbox/eternal/archive/refs/tags/$(v... | nilq/small-lua-stack | null |
-- This module is added under the main virtual host domain
-- It needs a breakout rooms muc component
--
-- VirtualHost "jitmeet.example.com"
-- modules_enabled = {
-- "muc_breakout_rooms"
-- }
-- breakout_rooms_muc = "breakout.jitmeet.example.com"
-- main_muc = "muc.jitmeet.example.com"
--
-- C... | nilq/small-lua-stack | null |
local mod = DBM:NewMod(311, "DBM-DragonSoul", nil, 187)
local L = mod:GetLocalizedStrings()
local sndWOP = mod:SoundMM("SoundWOP")
mod:SetRevision(("$Revision: 79 $"):sub(12, -3))
mod:SetCreatureID(55265)
mod:SetModelSound("sound\\CREATURE\\MORCHOK\\VO_DS_MORCHOK_EVENT_04.OGG", "sound\\CREATURE\\MORCHOK\\VO_DS_... | nilq/small-lua-stack | null |
local WormHole = Class 'WormHole'
local UFO = require 'entities.UFO'
COOLING = 1.5
function WormHole:init(x, y)
self.name = 'wormhole'
self.cooling = COOLING
end
function WormHole:update(dt)
self.cooling = self.cooling - dt
if self.cooling < 0 then
local h = 50 + math.random() * 150
... | nilq/small-lua-stack | null |
local function copySet(set)
local copy = {}
for _, v in pairs(set) do
table.insert(copy, v)
end
return copy
end
local function selection_sort(set, order)
local set_copy = copySet(set)
local ordered = {}
for _ in pairs(set) do
local smallest, key
for k, v in pairs(set_copy) do
if smalle... | nilq/small-lua-stack | null |
validWalkingStyles = { [0]=false, [57]=true, [58]=true, [59]=true, [60]=true, [61]=true, [62]=true, [63]=true, [64]=true, [65]=true, [66]=true, [67]=true, [68]=true, [118]=true, [119]=true, [120]=true, [121]=true, [122]=true, [123]=true, [124]=true, [125]=true, [126]=true, [128]=true, [129]=true, [130]=true, [131]=true... | nilq/small-lua-stack | null |
assert(not pcall(function() name(mpz(10)) end))
assert(not pcall(function() name(function() return 1 end) end))
assert(name("x", 1):hash() == name("x", 1):hash())
| nilq/small-lua-stack | null |
local constants = {}
-- Delimiter variables. Changing preferences delimiter will invalidate preferences
constants.spaceDelimiter = '_,_,_,_'
constants.preferencesDelimiter = '{}}{{}'
constants.preferencesSubDelimiter = ';>;<;>'
-- Prefix for channel keys in preferences
constants.preferencesPrefix = 'ignoreTextEvents_t... | nilq/small-lua-stack | null |
-- https://share.goabstract.com/b4b09f34-438a-4d5e-ba7f-8f1f0657f4dd
local GuiService = game:GetService("GuiService")
local Menu = script.Parent
local App = Menu.Parent
local UIBlox = App.Parent
local Packages = UIBlox.Parent
local Roact = require(Packages.Roact)
local t = require(Packages.t)
local withStyle = requ... | nilq/small-lua-stack | null |
--- === mjolnir._asm ===
---
--- Home: https://github.com/asmagill/mjolnir_asm._asm
---
--- Shared functions for mjolnir._asm modules
---
--- At present this module does not provide any direct functionality which can be included in your Lua scripts, but it does contain C functions which are used in other modules and ar... | nilq/small-lua-stack | null |
resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
description 'PZ Medical System'
version '1.0.0'
client_scripts {
'config.lua',
'client.lua'
}
server_scripts {
'@mysql-async/lib/MySQL.lua',
'config.lua',
'server.lua'
}
| nilq/small-lua-stack | null |
--[[
main
]]--
function _init()
make_dots()
end
function _update60()
if origin_dot == nil and destination_dot == nil then
select_dots()
end
update_dots()
end
function _draw()
cls(color.dark_blue)
draw_dots()
end | nilq/small-lua-stack | null |
local ITEM = Clockwork.item:New("weapon_base");
ITEM.name = "HK45C";
ITEM.cost = 0;
ITEM.model = "models/weapons/w_hk45c.mdl";
ITEM.weight = 0.708738;
ITEM.uniqueID = "m9k_hk45";
ITEM.business = false;
ITEM.description = "A very light and compact handgun. chambers .45 ACP.";
ITEM.isAttachment = false;
ITEM.hasFlashlig... | nilq/small-lua-stack | null |
-- This is the Factorio Freeplay scenario
-- This code, and the freeplay locale files in the zip file, is the property of Wube
-- As this is part of the base mod, the developers have given permission for modders to use/adapt the assets therein, for modding Factorio
-- Any other use would require licensing/permission fr... | nilq/small-lua-stack | null |
game:GetService("ReplicatedStorage")["AdminRE"]:ClearAllChildren()
local StrucidV11 = Instance.new("ScreenGui")
local MainFrame = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local Frame1 = Instance.new("Frame")
local BackPG1 = Instance.new("TextButton")
local NextPG1 = Instance.new("TextButton")
local... | nilq/small-lua-stack | null |
local Control = require 'src.control'
local TextInput = Control:extend('TextInput')
local font = love.graphics.getFont()
local backspace_delay = 0.05
function TextInput:init(image_name, x, y, hidden)
self.image = ImageCache:getControl(image_name)
TextInput.super.init(self, x, y, self.image:getWidth(), self.image:g... | nilq/small-lua-stack | null |
--[[
tp8_bend
__ ______ __ __
| \ / \ | \ | \
_| $$_ ______ | $$$$$$\ | $$____ ______ _______ ____| $$
| $$ \ / \ | $$__/ $$ | $$ \ / \ | \ / ... | nilq/small-lua-stack | null |
--[[
Copyright 2012 The Luvit Authors. All Rights Reserved.
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 agr... | nilq/small-lua-stack | null |
IncludeFile("Lib\\TOIR_SDK.lua")
Pyke = class()
local ScriptXan = 3.16
local NameCreat = "Jace Nicky"
function OnLoad()
if myHero.CharName ~= "Pyke" then return end
__PrintTextGame("<b><font color=\"#00FF00\">Champion:</font></b> " ..myHero.CharName.. "<b><font color=\"#FF0000\"> Good Game!</font></... | nilq/small-lua-stack | null |
---by quuisiYT
--RULES: DO NOT MODIFIY, DO NOT COPY, DO NOT REUPLOAD(u can only cange ID of song)
--Thank you for reading this c:
--Variables
local plr = game.Players.LocalPlayer
repeat wait(.2) until plr.Character
local char = plr.Character
local song = Instance.new("Sound")
song.Parent = char.Torso
song.SoundId = ... | nilq/small-lua-stack | null |
loveframes = require("loveframes")
require 'lovefs/lovefs'
require 'lovefs/dialogs'
function love.load()
fsload = lovefs()
fssave = lovefs()
fslsnd = lovefs()
fslttf = lovefs()
btload = loveframes.Create('button', window)
btload:SetPos(0,5)
btload:SetSize(200, 25)
btload:SetText('Load Image')
btload.OnClick... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: The Celestial Nexus
-- Mob: Exoplates
-- Zilart Mission 16 BCNM Fight
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
function onMobInitialize(mo... | 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.