content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
crash = {{{{{{{{ {}, {}, {} }}}}}}}}
-----------------------------------------------------------------------
------------------------ Settings ---------------------------------
-----------------------------------------------------------------------
crash = {{{{{{{{ {}, {}, {} }}}}}}}}
Rules = {
{"Egyptian"},
{"Engli... | nilq/small-lua-stack | null |
local _G = _G
local K = _G.unpack(_G.select(2, ...))
local Module = K:GetModule("Unitframes")
local SpellRange = _G.LibStub("SpellRange-1.0")
local pairs, ipairs = _G.pairs, _G.ipairs
local CheckInteractDistance = _G.CheckInteractDistance
local UnitCanAttack = _G.UnitCanAttack
local UnitInParty = _G.UnitInParty
loca... | nilq/small-lua-stack | null |
class "ScorecardClient"
local NavGrid = require("__shared/NavGrid")
Events:Subscribe('Extension:Loaded', function()
WebUI:Init()
end)
function ScorecardClient:DrawPolyline(Polyline)
for idx, line in pairs(Polyline) do
if idx < #Polyline then
local start_point = Polyline[idx]
lo... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: The Garden of Ru'Hmet
-- Mob: Aw'ghrah
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onMobSpawn(mob)
-- Set core Skin and mob elemental resist/weakness; other elements set to 0.
-- Set to non aggr... | nilq/small-lua-stack | null |
local Language = {PrettyName = "Español Argentino",
Values =
{
Server = {
ZombiesWin = "Los zombies han ganado!",
HumansWin = "Los humanos han derrotado a la plaga!",
RoundDraw = "Empate",
RoundSimple = "La infeccion a comenzado!",
RoundSimpleName = "Modo de infeccion unica",
RoundMultiInfectionN... | nilq/small-lua-stack | null |
-------------------------
-- oUF_Swing, by p3lim
-- This version was updated for NDui by siweia
-- https://github.com/siweia/NDuiClassic/blob/master/Interface/AddOns/NDui/Libs/oUF/Plugins/Swing.lua
-------------------------
local _, ns = ...
local oUF = ns.oUF or oUF
local GetTime = GetTime
local GetInventoryItemID = ... | nilq/small-lua-stack | null |
--
-- Created by IntelliJ IDEA.
-- User: Administrator
-- Date: 2017/5/23
-- Time: 16:57
-- To change this template use File | Settings | File Templates.
--__newindex 元方法用来对表更新,__index则用来对表访问
--当你给表的一个缺少的索引赋值,解释器就会查找__newindex 元方法:如果存在则调用这个函数而不进行赋值操作
--mymetatable = {}
--mytable = setmetatable({key1 = "Value1"}, {__ne... | nilq/small-lua-stack | null |
function love.load()
animation = newAnimation(love.graphics.newImage("oldHero.png"), 16, 18, 0.5)
av={
x=200,
y=200,
xscale=4,
yscale=4
}
end
function newAnimation(image, width, height, duration)
local animation = {}
animation.spriteSheet = image;
animation.qua... | nilq/small-lua-stack | null |
--[[
Copyright (c) 2009-2017, Hendrik "Nevcairiel" Leppkes < h.leppkes at gmail dot com >
All rights reserved.
]]
local _, Bartender4 = ...
local L = LibStub("AceLocale-3.0"):GetLocale("Bartender4")
local BT4ActionBars = Bartender4:NewModule("ActionBars", "AceEvent-3.0")
local select, ipairs, pairs, tostring... | nilq/small-lua-stack | null |
--- Builds card backings for GUI elements
-- @classmod MaterialCardBuilder
local MaterialCardBuilder = {}
MaterialCardBuilder.__index = MaterialCardBuilder
MaterialCardBuilder.ClassName = "MaterialCardBuilder"
MaterialCardBuilder.CardColor = Color3.fromRGB(235, 235, 235)
MaterialCardBuilder.ShadowColor = Color3.new(0,... | nilq/small-lua-stack | null |
game:GetService("Chat"):Chat(Workspace.FIuffz.Head,"INSERT CHAT HERE")
wait(3)
| nilq/small-lua-stack | null |
TEST [[
function mt:<!a!>()
end
function mt:b()
mt:<?a?>()
end
]]
TEST [[
function mt:<!m1!>()
end
function mt:m2()
self:<?m1?>()
end
]]
TEST [[
function mt:m3()
mt:<?m4?>()
end
function mt:<!m4!>()
end
]]
TEST [[
function mt:m3()
self:<?m4?>()
end
function mt:<!m4!>()
end
]]
TEST [[
local mt
funct... | nilq/small-lua-stack | null |
-- Copyright (c) 2016 Kim Alvefur
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local pkey = require "openssl.pkey";
local json = require "cjson.safe";
local jws = require "jws";
local jwk = require "jwk";
local parse_error = require "acme.error"... | nilq/small-lua-stack | null |
-- Author: berezaa
-- Handles chest opening and makes previously-accessed chests already open
local replicatedStorage = game:GetService("ReplicatedStorage")
local modules = require(replicatedStorage:WaitForChild("modules"))
local network = modules.load("network")
local tween = modules.load("tween")
local utilities = m... | nilq/small-lua-stack | null |
SPTick = {}
tdmaSPTimer = {}
function endOfSpawnProtection ( player, marker )
if ( isElement(marker) ) then
if ( isElement(player) ) then
detachElements ( marker, player )
end
destroyElement ( marker )
end
if ( isElement(player) ) then
--local theTimer = getElementData ( player, "tdma.SPTimer"... | nilq/small-lua-stack | null |
-------------------------------------------------------------------------------------------
--
-- raylib [text] example - TTF loading and usage
--
-- This example has been created using raylib 1.6 (www.raylib.com)
-- raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
--
-- Copyri... | nilq/small-lua-stack | null |
TIME_FOREVER = 4294967295 -- Largets possible int 32 value
-- Actor properties
SEX_UNKNOWN = 0
SEX_FEMALE = 1
SEX_MALE = 2
-- Creature states -------------------------------------------------------------
CREATURESTATE_UNKNOWN = 0
CREATURESTATE_IDLE = 1
CREATURESTATE_MOVING = 2
CREATURESTATE_USINGSKILL = 3
CREATURE... | nilq/small-lua-stack | null |
dofilepath("data:scripts/debug.lua")
dout("Loading Crate_ships.lua of Keeper")
crate_Ships =
{
{
class = "cruiser",
prob = 0.00,
types =
{
{prob = 1.00, item = "Kpr_ArsenalShip", name = "$8236"},
{prob = 0.90, item = "kpr_Dreadnaught", name =... | nilq/small-lua-stack | null |
measure1 = {"дан", "седмице", "месец новембар", "месец мај"}
measure2 = {"дана", "седмица", "месец новембар", "месец мај"}
last = {"најкраћи", "најдужи"}
| nilq/small-lua-stack | null |
local glfw = require '../glfw' ('glfw3')
local GLFW = glfw.const
-- Initialize the library
if glfw.Init() == 0 then
return
end
-- Create a windowed mode window and its OpenGL context
local window = glfw.CreateWindow(640, 480, "Hello World")
if window == GLFW.NULL then
glfw.Terminate()
return
end
-- Make the wi... | nilq/small-lua-stack | null |
--!A cross-platform build utility based on Lua
--
-- 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... | nilq/small-lua-stack | null |
local app = app
local libcore = require "core.libcore"
local Class = require "Base.Class"
local ClockBase = require "core.Timing.ClockBase"
local GainBias = require "Unit.ViewControl.GainBias"
local Encoder = require "Encoder"
local ClockInHertz = Class {}
ClockInHertz:include(ClockBase)
function ClockInHer... | nilq/small-lua-stack | null |
local has_telescope, telescope = pcall(require, "telescope")
if not has_telescope then
error("This plugin requires nvim-telescope/telescope.nvim")
end
local pickers = require("telescope.pickers")
local finders = require("telescope.finders")
local conf = require("telescope.config").values
local actions = require("... | nilq/small-lua-stack | null |
local gears = require("gears")
local awful = require("awful")
local awful_rules = require("awful.rules")
local awful_autofocus = require("awful.autofocus")
local wibox = require("wibox")
local beautiful = require("beautiful")
local naughty = require("n... | nilq/small-lua-stack | null |
-- Configuration --------------------------------------
OOA_AUTOTRACKER_DEBUG = true
OOA_DISABLE_TREE_TRACKING = false
-------------------------------------------------------
print("")
print("Active Auto-Tracker Configuration")
print("---------------------------------------------------------------------")
if OOA_AUTOT... | nilq/small-lua-stack | null |
_G.MUtils = {}
local map = vim.api.nvim_set_keymap
local ok, autopairs = pcall(require, 'nvim-autopairs')
if not ok then return end
autopairs.setup { map_bs = false }
MUtils.CR = function ()
if vim.fn.pumvisible() ~= 0 then
if vim.fn.complete_info({ 'selected' }).selected ~= -1 then
return autopairs.esc... | nilq/small-lua-stack | null |
local M = { }
local name = "test_run"
local FX = require("FunctionalX")
local TK = require("PackageToolkit")
local m1 = FX.module.initimport(..., "m1")
local m2 = FX.module.initimport(..., "m2")
local m3 = FX.module.initimport(..., "m3")
local m4 = FX.module.initimport(..., "m4")
local case = TK.test.case
M[name] = fun... | nilq/small-lua-stack | null |
require("trycatch")
require("@vue/runtime-test")
require("runtime-core/src/errorHandling")
require("@vue/shared")
describe('error handling', function()
mockWarn()
beforeEach(function()
setErrorRecovery(true)
end
)
afterEach(function()
setErrorRecovery(false)
end
)
test('propagation', function()... | nilq/small-lua-stack | null |
title = 'IV - The Only One'
chapter = 'Part 1 - Like Sheep'
function run()
warnEnemies = true
warnEnemiesTime = 0.7
local simple = 'simpleball'
local divide1 = 'multiball'
local grey = 'grayball'
local super = 'superball'
local horizontalr = formation {
type = 'horizontal',
from = 'right'
}
local horiz... | nilq/small-lua-stack | null |
gr_desert_razorback = Creature:new {
objectName = "@mob/creature_names:desert_razorback",
socialGroup = "boar",
faction = "",
level = 80,
chanceHit = 0.98,
damageMin = 350,
damageMax = 450,
baseXp = 856,
baseHAM = 12000,
baseHAMmax = 16000,
armor = 0,
resists = {20,20,20,20,-1,20,-1,-1,-1},
meatType = "mea... | nilq/small-lua-stack | null |
local inspect = require 'Data.lua.inspect'
eyeDisableSkyBox();
eyeSetSkyBoxColor({0,255,0,255});
local unitColor = {255,0,0,255};
local allUnitIDs = eyeGetAllUnits();
for key, value in pairs(allUnitIDs) do
print(key, " -- ", value)
eyeSetUnit(value);
local bp = eyeGetBlueprint(value)
print("BP" .. type... | nilq/small-lua-stack | null |
function getIdentity(source)
local identifier = GetPlayerIdentifiers(source)[1]
local result = MySQL.Sync.fetchAll("SELECT * FROM users WHERE identifier = @identifier", {['@identifier'] = identifier})
if result[1] ~= nil then
local identity = result[1]
return {
identifier = identity['identifier'],
firstna... | nilq/small-lua-stack | null |
-- FS API
-- A save fs api, jailed to fsdir
-- This isn't the best spot for this, but make it so _makePath can see our current ID
-- needs to be before first use of the function!
function _makePath(path)
local r = string.find(path,"%.%.")
if r ~= nil then
print("Illegal path: "..path.." ("..r..")")
return ""
en... | nilq/small-lua-stack | null |
-- Loads up a slew of objects to load into the screen, like how 3.9 does.
-- I prefer to keep these optional, incase another screen wants to hide
-- these elements.
local t = Def.ActorFrame {};
t[#t+1] = StandardDecorationFromFileOptional("Header","Header");
t[#t+1] = StandardDecorationFromFileOptional("Footer","Foote... | nilq/small-lua-stack | null |
-- example config for prusaslicer sandbox, which is created on top of external debian chroot, prepared by debian-setup.cfg.lua
-- using debian-sandbox.cfg.lua config file as base
-- if using nvidia GPU, you also need to install same proprietery nvidia driver version into sandbox,
-- also you may need to install libc6-... | nilq/small-lua-stack | null |
#!/usr/bin/env lua
dofile("mods/noita-mp/files/scripts/init/init_.lua")
local lu = require("luaunit")
local Guid = require("guid")
TestGuid = {}
function TestGuid:setUp()
print("\nsetUp")
end
function TestGuid:tearDown()
print("tearDown\n")
end
function TestGuid:testGetGuid()
local guid = Guid:getGuid(... | nilq/small-lua-stack | null |
----------------------------------------------------------------------------------
--
-- LibCompress.lua
--
-- Authors: jjsheets and Galmok of European Stormrage (Horde)
-- Email : sheets.jeff@gmail.com and galmok@gmail.com
-- Licence: GPL version 2 (General Public License)
-- Revision: $Revision: 75 $
-- Date:... | nilq/small-lua-stack | null |
local dimensions = require("Functions")
ObjectSizes = {
Material = 128
}
Resources = {
GlobalResources = {
UBO = {
Type = "UniformBuffer",
Members = {
model = { "mat4", 0 },
view = { "mat4", 1 },
projectionClip = { "mat4", 2 },
... | nilq/small-lua-stack | null |
local _, ns = ...
local L = ns.L
local moss = L["Moss-Covered Chest"]
local sturdy = L["Sturdy Chest"]
local smoldering = L["Smoldering Chest"]
local skull = L["Skull-Covered Chest"]
local blazing = L["Blazing Chest"]
ns.points = {
-- http://www.wowhead.com/achievement=8729/treasure-treasure-everyw... | nilq/small-lua-stack | null |
local RUF = RUF or LibStub("AceAddon-3.0"):GetAddon("RUF")
local LSM = LibStub("LibSharedMedia-3.0")
local _, ns = ...
local oUF = ns.oUF
RUF.Indicators = RUF.Indicators or {}
RUF.IndicatorGlyphs = {
['Assist'] = '',
['InCombat'] = '',
['Lead'] = '',
['LootMaster'] = '',
['MainAssist'] = '',
['MainTank'] = ... | nilq/small-lua-stack | null |
local ngx_log = ngx.log
local _NGX_LOG_LEVELS = {
debug = ngx.DEBUG,
info = ngx.INFO,
notice = ngx.NOTICE,
warn = ngx.WARN,
error = ngx.ERR,
crit = ngx.CRIT,
alert = ngx.ALERT,
emerg = ngx.EMERG,
}
local _M = {}
for log_name, log_level in pairs(_NGX_LOG_LEVELS) do
_M[l... | nilq/small-lua-stack | null |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' 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 Player = game.Players.LocalPlayer
local cas = game:GetService("ContextActionService")
local UIS = game:GetService("UserInputService")
local Heartbeat = game:GetService("RunService").Stepped
local Camera = workspace.CurrentCamera
local Gui
local Base
local Draggable
local Origin
local MousePosition
local Draggin... | nilq/small-lua-stack | null |
----------------------------------------------------------------------------
-- $Id: md5.lua,v 1.4 2006/08/21 19:24:21 carregal Exp $
----------------------------------------------------------------------------
local string = string or require"string"
local md5 = _G.md5
-----------------------------------------------... | nilq/small-lua-stack | null |
local gps = require("nvim-gps")
require("lualine").setup({
options = {
theme = "tokyonight",
},
sections = {
lualine_c = {
"filename",
{ gps.get_location, cond = gps.is_available },
},
},
})
| nilq/small-lua-stack | null |
-- Automatically generated by build.lua, do not edit
return [[
A6AC;BAMUM LETTER RII;Lo;0;L;;;;;N;;;;;
A6AD;BAMUM LETTER RIEE;Lo;0;L;;;;;N;;;;;
A6AE;BAMUM LETTER LEEEE;Lo;0;L;;;;;N;;;;;
A6AF;BAMUM LETTER MEEEE;Lo;0;L;;;;;N;;;;;
A6B0;BAMUM LETTER TAA;Lo;0;L;;;;;N;;;;;
A6B1;BAMUM LETTER NDAA;Lo;0;L;;;;;N;;;;;
A6B2;BAMUM ... | nilq/small-lua-stack | null |
--[[-----------------------------------------------------------------------
* | Copyright (C) Shaobo Wan (Tinywan)
* | Github: https://github.com/Tinywan
* | Blog: http://www.cnblogs.com/Tinywan
* |------------------------------------------------------------------------
* | Date: 2017/5/20 9:29
* | Function: helpe... | nilq/small-lua-stack | null |
return redis.call('ping')
| nilq/small-lua-stack | null |
local COMMAND = Command.new('whitelist')
COMMAND.name = 'Whitelist'
COMMAND.description = 'command.whitelist.description'
COMMAND.syntax = 'command.whitelist.syntax'
COMMAND.permission = 'moderator'
COMMAND.category = 'permission.categories.player_management'
COMMAND.arguments = 2
COMMAND.player_arg = 1
COMMAND.aliases... | nilq/small-lua-stack | null |
---
-- @classmod Ragdollable
-- @author Quenty
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local BaseObject = require("BaseObject")
local RagdollRigging = require("RagdollRigging")
local RagdollableConstants = require("RagdollableConstants")
local CharacterUtils = require("... | nilq/small-lua-stack | null |
return function(data)
return {
type = "SetGroupData",
data = data,
}
end
| nilq/small-lua-stack | null |
return LoadActor(THEME:GetPathB("","_wait"),0.8); | nilq/small-lua-stack | null |
ATTRIBUTE.name = "Handy"
ATTRIBUTE.description = "The skill to craft some things, specially with the hands."
ATTRIBUTE.category = "Proffesions" | nilq/small-lua-stack | null |
local class = require('middleclass')
local Controller = require('mvc.Controller')
local HasSignals = require('HasSignals')
local MessageController = class("MessageController", Controller):include(HasSignals)
function MessageController:initialize()
Controller.initialize(self)
HasSignals.initialize(self)
end... | nilq/small-lua-stack | null |
local singlelineW = require 'watchlog.watchlogfilesingleline'
local tableutil = require 'util.tableutil'
local json = require 'rapidjson'
local watchlogfilesinglelinejson = {
---- CONSTANTS ----
---- Core Data ----
---- Temp Data ----
}
setmetatable(watchlogfilesinglelinejson , singlelineW)
watchlogfilesi... | nilq/small-lua-stack | null |
--[[
Lua configuration file.
Meant to be added to lua/ subdirectory.
All paths are relative from there.
--]]
return {
modulesPath = ADD_YOUR_PATH_HERE
}
| nilq/small-lua-stack | null |
require('plugins.coc-nvim.functions')
require('plugins.coc-nvim.variables')
require('plugins.coc-nvim.options')
require('plugins.coc-nvim.keybinds')
| nilq/small-lua-stack | null |
require "ml.mltls"
require "ml.mlexc"
algos = {}
function algos.fibonacci(Number)
local X = 0
local Y = 1
for _ = 1, Number do
X, Y = Y, X + Y
end
return X
end
function algos.nextint(Number)
return Number + 1
end
function algos.prevint(Number)
return Number... | nilq/small-lua-stack | null |
local wstr=require("wetgenes.string")
local chatdown=require("wetgenes.gamecake.fun.chatdown") -- conversation trees
local bitdown=require("wetgenes.gamecake.fun.bitdown") -- ascii to bitmap
local chipmunk=require("wetgenes.chipmunk") -- 2d physics https://chipmunk-physics.net/
--------------------------------... | nilq/small-lua-stack | null |
describe('reduce', function()
it('fails if the first argument is not a function', function()
local observable = Rx.Observable.of(0)
expect(observable:reduce()).to.fail()
expect(observable:reduce(1)).to.fail()
expect(observable:reduce('')).to.fail()
expect(observable:reduce({})).to.fail()
expec... | nilq/small-lua-stack | null |
#!/usr/bin/env lua
local pcf = require "pcf"
local bmp = require "bmp"
local img, config
local function die(msg)
print(msg)
os.exit(1)
end
-- Repeat a value n times
local function rep(v, n)
local result = {}
for i=1,n do
result[i] = v
end
return result
end
local function basename(path)
return path:match("([^... | nilq/small-lua-stack | null |
function widget:GetInfo()
return {
name = "Mouse FX",
desc = "Adds glow effect at mouse clicks",
author = "Floris",
date = "13 may 2015",
license = "GNU GPL, v2 or later",
layer = 2,
enabled = false,
}
end
-----------------------... | nilq/small-lua-stack | null |
function Test()
do
local pattern
if Platform == 'win32' then
pattern = [[
$ = $
$
$(TEMP) - ]] .. os.getenv("TEMP") .. [[
M__UFFILENAME_UFFILENAME__F
]]
else
local tmpdir = os.getenv('TMPDIR')
if not tmpdir or tmpdir == '' then tmpdir = '/tmp' end
pattern = [[
$ = $
$
$(TMPDIR) - ]] .. tmp... | nilq/small-lua-stack | null |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' 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 |
require "FairyGUI"
--UI窗口基类
--窗口类,名副其实,在FairyGUI中都是以窗口的形式显示的
WindowBase = {}
WindowBase = fgui.window_class()
WindowBase.window = nil
WindowBase.ItemRenderer = nil
local ResHelper = CS.MyABSys.ResHelper
--构建函数
function WindowBase:ctor(packageName)
local index = string.find(packageName,"/")
WindowBase.packageName = ... | nilq/small-lua-stack | null |
object_tangible_content_wod_crafting_alter_2 = object_tangible_content_shared_wod_crafting_alter_2:new {
}
ObjectTemplates:addTemplate(object_tangible_content_wod_crafting_alter_2, "object/tangible/content/wod_crafting_alter_2.iff")
| nilq/small-lua-stack | null |
-----------------------------------
-- Area: Bastok Markets
-- NPC: Gulldago
-- Type: Tutorial NPC
-- !pos -364.121 -11.034 -167.456 235
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
player:startEvent(535);
end;
function onEventUpdate(player,csid,opti... | nilq/small-lua-stack | null |
local path = ({reaper.get_action_context()})[2]:match('^.+[\\//]')
local lr = dofile(path .. 'liverigFunctions.lua')
lr.setSong({
clean = "clean amp Fender",
drive = "basic drive amp",
solo = "solo overdrive",
ext = "ext amp 2"
}) | nilq/small-lua-stack | null |
function fibonacci(n)
if(n == 1) then return 1 end
if(n == 2) then return 1 end
function iterator()
local f1 = fibonacci(n-1)
local f2 = fibonacci(n-2)
output = f1 + f2
return output
end
return iterator
end
resposta = fibonacci(1)
print(resposta(1))
| nilq/small-lua-stack | null |
#!/usr/bin/env lua
local gd = require("gd")
local im = gd.createTrueColor(80, 80)
assert(im)
local black = im:colorAllocate(0, 0, 0)
local white = im:colorAllocate(255, 255, 255)
im:filledEllipse(40, 40, 70, 50, white)
im:png("out.png")
os.execute("xdg-open out.png")
| nilq/small-lua-stack | null |
-- =======================================================================================
-- Plugin: CALLER.lua
-- Programmer: Cooper Santillan
-- Last Modified: September 30, 2021 11:15pm
-- =======================================================================================
-- Description: Interfaces between the ... | nilq/small-lua-stack | null |
-- this file is used to define additional static blips and markers to the map
-- some lists: https://wiki.gtanet.work/index.php?title=Blips
local cfg = {}
-- list of blips
-- {x,y,z,idtype,idcolor,text}
cfg.blips = {
-- Gangs
{-1388.7412109375, -586.31683349609, 30.219205856323, 93, 73, "Bar"},
{-565.171, 276.... | nilq/small-lua-stack | null |
local skynet = require "skynet"
local c = require "skynet.core"
function skynet.launch(...) -- ... 为要启动的服务名加上参数组成的字符串 参数以空格分隔
local addr = c.command("LAUNCH", table.concat({...}," "))
if addr then
return tonumber("0x" .. string.sub(addr , 2))
end
end
function skynet.kill(name)
if type(name) == "number" then
s... | nilq/small-lua-stack | null |
--[[
MIT License
Copyright (c) 2022 Michael Wiesendanger
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, mod... | nilq/small-lua-stack | null |
if not lrm.globals then lrm.globals = {} end
function lrm.globals.init()
global = global or {}
global["preset-data"] = global["preset-data"] or {}
global["preset-names"] = global["preset-names"] or {}
global["presets-selected"] = global["presets-selected"] or {}
global[... | nilq/small-lua-stack | null |
slot0 = class("StoryAwardPage", import("...base.BaseActivityPage"))
slot0.OnInit = function (slot0)
slot0.bg = slot0:findTF("bg")
slot0.itemTpl = slot0:findTF("Item")
slot0.taskItemTpl = slot0:findTF("TaskItem")
slot0.scrollTF = slot0:findTF("Mask/ScrollView")
slot0.container = slot0:findTF("Mask/ScrollView/Conte... | nilq/small-lua-stack | null |
-- This script is an example of an owner-filter. It replaces the
-- usual query link with one to a fictional homepage. This script may
-- be used with the owner-filter or repo.owner-filter settings in
-- cgitrc with the `lua:` prefix.
function filter_open()
buffer = ""
end
function filter_close()
html(string.form... | nilq/small-lua-stack | null |
module(...,package.seeall)
local buffer = require("core.buffer")
local freelist = require("core.freelist")
local lib = require("core.lib")
local packet = require("core.packet")
local datagram = require("lib.protocol.datagram")
local ethernet = require("lib.protocol.ethernet")
local g_ethernet = require("apps.fuzz.ethe... | nilq/small-lua-stack | null |
local function main()
db:setmaxinstructions(100000)
local dbtab = db:prepare("insert into prepare values(@i, @j, @s)")
local max = 2000
local i = 1
db:begin()
for i = 1, max do
local j = max - i
dbtab:bind("i", i)
dbtab:bind("j", j)
dbtab:bind("s", i .. j)
dbtab:exec()
end
db:commit()
dbtab = db:ex... | nilq/small-lua-stack | null |
-- Copyright (c) 2019 teverse.com
-- camera.lua
local cameraController = {}
local selectionController = require("tevgit:create/controllers/select.lua")
cameraController.zoomStep = 3
cameraController.rotateStep = -0.003
cameraController.moveStep = 0.5 -- how fast the camera moves
cameraController.camera = workspace.c... | nilq/small-lua-stack | null |
----------------------------------------------------------
-- Server Utils is a util namespace for wrapping server --
-- specific actions into clean and easilly read funcs. --
----------------------------------------------------------
local S = {}
function S.setupNewConnection( client )
local new_dm = DataManager... | nilq/small-lua-stack | null |
--[[ Class containing unicode data table summarized information]]
local unidata = {}
unidata.maplower = {}
-- the following sections have been generated from UnicodeData.txt and should not be modified manually
unidata.Number = {}
unidata.Number[0x0030] = {
0xFFC0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0... | nilq/small-lua-stack | null |
local util = require "gumbo.dom.util"
local assert = assert
local _ENV = nil
local Attribute = {getters = {}}
Attribute.__index = assert(util.indexFactory(Attribute))
local escmap = {
["\194\160"] = " ",
["&"] = "&",
['"'] = """
}
function Attribute.getters:localName()
return self.name
... | nilq/small-lua-stack | null |
local M = {}
-- If the content too long.
-- auto wrap according width
function M.wrap_line(text,width)
local line = ''
local ret = {}
-- if text width < width just return it
if #text < width then
table.insert(ret,text)
return ret
end
local content = vim.fn.split(text)
for idx,word in pairs(conte... | nilq/small-lua-stack | null |
ITEM.name = "Wine"
ITEM.desc = "A bottle of Red Wine"
ITEM.model = "models/fallout 3/wine.mdl"
ITEM.price = 14
ITEM.duration = 300
ITEM.attribBoosts = {
["end"] = 1,
}
ITEM:hook("_drink", function(item)
item.player:EmitSound("npc/barnacle/barnacle_gulp1.wav")
item.player:ScreenFade(1, Color(255, 255, 255... | nilq/small-lua-stack | null |
-----------------------------------------------------------------------------------------
--
-- main.lua
--
-----------------------------------------------------------------------------------------
-- Your code here
local composer = require("composer") -- load all of the information about the Composer scene
audio.res... | nilq/small-lua-stack | null |
local succeed = require 'validation.rules.succeed'
local setmetatable = setmetatable
local check_min = {__index = {
msg = 'Required to be greater or equal to %d.',
validate = function(self, value, model, translations)
if value and value < self.min then
return translations:gettext(self.msg... | nilq/small-lua-stack | null |
local Search = require('orgmode.parser.search')
describe('Search parser', function()
it('should parse search term and check value value', function()
local result = Search:new('TODO|PROJECT|MAYBE')
assert.Is.True(result:check({ tags = {'TODO'} }))
assert.Is.True(result:check({ tags = {'PROJECT'} }))
a... | nilq/small-lua-stack | null |
local t = ...;
t = Def.ActorFrame{
LoadActor("ScreenOptions line highlightPP2")..{
InitCommand=cmd(diffuserightedge,color("1,1,1,0"));
};
LoadActor("ScreenOptions line highlightPB2")..{
InitCommand=cmd(addx,200);
};
Def.Sprite {
Texture="ScreenPlayerOptions LineHighlight P1 1x2";
Frame0000=0;
Delay0000=0.5;... | nilq/small-lua-stack | null |
getglobal game
getfield -1 GetService
pushvalue -2
pushstring Players
pcall 2 1 0
getfield -1 LocalPlayer
getfield -1 MewVIP
pushnumber 1
setfield -2 Value
getglobal game
getfield -1 GetService
pushvalue -2
pushstring Players
pcall 2 1 0
getfield -1 LocalPlayer
getfield -1 OtherLegendary
pushnumber 1
setfield -2 Value
... | nilq/small-lua-stack | null |
--[[
Author: tochonement
Email: tochonement@gmail.com
24.07.2021
--]]
whoi.round = whoi.round or {}
local round = whoi.round
function round.getRespondents()
local result = {}
for _, ply in ipairs(player.GetAll()) do
if round.getGuesser() ~= ply then
table.insert(result, ply)
e... | nilq/small-lua-stack | null |
function options (opts)
local dir = opts:script_dir()
opts:define_string("file", "Banned words file", dir .. "/banned.txt")
end
function kinds (kinds, opts)
kinds:define_error(
"comment",
"Comment",
"banned word used in comment",
"Banned words are not allowed in comments."
)
kinds:define_err... | nilq/small-lua-stack | null |
local _ENV = mkmodule('dfhack.workshops')
local utils = require 'utils'
input_filter_defaults = {
item_type = -1,
item_subtype = -1,
mat_type = -1,
mat_index = -1,
flags1 = {},
-- Instead of noting those that allow artifacts, mark those that forbid them.
-- Leaves actually enabling artifac... | nilq/small-lua-stack | null |
function love.conf (t)
t.screen.width = 800
t.screen.height = 600
t.identity = 'zoetrope-test'
end
| nilq/small-lua-stack | null |
-- ************************************************************************** --
--[[
Dusk Engine
The main Dusk library.
--]]
-- ************************************************************************** --
local Library = require("CoronaLibrary")
local dusk = Library:new({name = "dusk", publisherId = "com.gymbyl"})... | nilq/small-lua-stack | null |
object_static_installation_mockup_clothing_factory_style_1 = object_static_installation_shared_mockup_clothing_factory_style_1:new {
}
ObjectTemplates:addTemplate(object_static_installation_mockup_clothing_factory_style_1, "object/static/installation/mockup_clothing_factory_style_1.iff")
| nilq/small-lua-stack | null |
require("prototypes.Categories.categories")
require("prototypes.Technology.technology")
require("prototypes.SandMiner.categories")
require("prototypes.SandMiner.entities")
require("prototypes.SandMiner.items")
require("prototypes.SandMiner.recipes")
require("prototypes.BioSolarPanel.categories")
require("prototypes.B... | nilq/small-lua-stack | null |
-- Parser generator
local cheese_parsers = require"cheese.parsers"
module("cheese", package.seeall)
parse_error = cheese_parsers.parse_error
local rule_mt
local function make_rule(tab)
setmetatable(tab, rule_mt)
return tab
end
function concat (tab)
if type(tab) == "table" then
local res = {}
for i, ... | nilq/small-lua-stack | null |
ITEM.name = "Bobby Pins"
ITEM.desc = "A small box of bobbypins used for picking locks"
ITEM.model = "models/props_lab/box01a.mdl"
ITEM.price = 50
function ITEM:getDesc()
return L("A small box of bobbypins used for picking locks", self:getData("amount", 5))
end
function ITEM:onInstanced(index, x, y, item)
... | 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
]]
--------------------------------------------------------------------------------
test_knockback = 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.