content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
local util = require 'lspconfig.util'
return {
default_config = {
-- `foam-ls` can be a shell script executing:
-- node /path/to/foam-language-server/lib/foam-ls.js --stdio
cmd = { 'foam-ls' },
filetypes = { 'foam', 'OpenFOAM' },
root_dir = util.root_pattern('system/controlDict'),
log_level =... | nilq/small-lua-stack | null |
function disableDefaultChat(message, messageType)
cancelEvent()
end
addEventHandler ("onPlayerChat", getRootElement(), disableDefaultChat) | nilq/small-lua-stack | null |
nut.bar = nut.bar or {}
nut.bar.list = {}
nut.bar.delta = nut.bar.delta or {}
nut.bar.actionText = ""
nut.bar.actionStart = 0
nut.bar.actionEnd = 0
function nut.bar.get(identifier)
for i = 1, #nut.bar.list do
local bar = nut.bar.list[i]
if (bar and bar.identifier == identifier) then
return bar
end
end
en... | nilq/small-lua-stack | null |
-- Tips and tricks with Lua scripts - bfxdev 2020
-- Lists global variables
for key, value in pairs(_G) do
print("Global " .. type(value) .. ": " .. key .. " = " .. tostring(value))
end
--- Returns a data URI representing a BMP RGBA picture of dimension `width` and `height`, and with bitmap `data` provided
--- as ... | nilq/small-lua-stack | null |
-- mapping
local bind = require("core.bind")
local map = bind.map
local keymap = {
-- vim switch options
["n|<F3>"] = map(":set hlsearch!<CR>"):with_noremap():with_silent(),
["n|<F4>"] = map(":set paste!<CR>"):with_noremap():with_silent(),
-- buffer options
["n|<C-J>"] = map(":BufferLineCyclePrev<C... | nilq/small-lua-stack | null |
local lsp_methods = {
INITIALIZE = "initialize",
SHUTDOWN = "shutdown",
EXIT = "exit",
CODE_ACTION = "textDocument/codeAction",
EXECUTE_COMMAND = "workspace/executeCommand",
PUBLISH_DIAGNOSTICS = "textDocument/publishDiagnostics",
FORMATTING = "textDocument/formatting",
RANGE_FORMATTING ... | nilq/small-lua-stack | null |
local Observable = require 'observable'
--- Returns an Observable that terminates when the source terminates but does not produce any
-- elements.
-- @returns {Observable}
function Observable:ignoreElements()
return Observable.create(function(observer)
local function onError(message)
return observer:onErro... | nilq/small-lua-stack | null |
---@type number
local aNumber
---@type boolean
local aBoolean
---@class Vector
---@field x number
---@field y number
---@field z number
---@field [1] number
---@field [2] number
---@field [3] number
---@field [number] boolean
---@type Vector
local vector
aNumber = vector.x
aNumber = vector.y
aNumber = vector.z
aBo... | nilq/small-lua-stack | null |
local negotiator = require 'restia.negotiator'
describe("Content negotiator", function()
it("Should parse headers correctly", function()
local accepted = negotiator.parse 'text/html' [1]
assert.same({q=1, s=3, type='text/html'}, accepted)
end)
it("Should order types alphabetically", function()
-- To make the... | nilq/small-lua-stack | null |
local helpers = require "spec.helpers"
local json = require "cjson"
local statusses = setmetatable({
[200] = "200 OK",
[404] = "404 NOT FOUND",
}, {
__index = function(self, key)
error("'"..tostring(key)"' is not a known status code")
end
})
local port = 4000
-- rotate ports to prevent ports being in us... | nilq/small-lua-stack | null |
function ResetPlayerBody(ply)
SetPlayerNetworkedCustomClothes(ply,{
body = {"/Game/CharacterModels/SkeletalMesh/BodyMerged/HZN_CH3D_Normal01_LPR"},
clothing0 = {nil},
clothing1 = {nil},
clothing2 = {nil},
clothing3 = {nil},
clothing4 = {nil},
clothing5 = {nil... | nilq/small-lua-stack | null |
surface.CreateFont("RAM_VoteFont", {
font = "Trebuchet MS",
size = 19,
weight = 700,
antialias = true,
shadow = true
})
surface.CreateFont("RAM_VoteFontCountdown", {
font = "Tahoma",
size = 32,
weight = 700,
antialias = true,
shadow = true
})
local TIMER_NAME = "rtv_failsafe"
... | nilq/small-lua-stack | null |
--!The Make-like Build Utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache L... | nilq/small-lua-stack | null |
local hop = require 'hop'
hop.setup()
| nilq/small-lua-stack | null |
describe("Compositions", function()
local fun = require 'ltrie.fun'
local T = {}
local function reset()
T = {}
end
local function p(...)
T[#T+1] = {...}
end
local function check(t)
assert.are.same(T, t)
end
it('map', function()
local f = function(...)
return 'map', ...
end
reset()
fun.each(... | nilq/small-lua-stack | null |
mario = class:new()
function mario:init(x, y, i, animation, size, t, properties)
self.playernumber = i or 1
if bigmario then
self.size = 1
elseif size and size == 8 then
self.size = 1
else
self.size = size or 1
end
self.t = t or "portal"
--custom character
self.character = mariocharacter[self.playernum... | nilq/small-lua-stack | null |
--[=[
@Author: Gavin "Mullets" Rosenthal
@Desc: Deliver, a Roblox command line interface plugin to deliver content, commands, and simplicity within Roblox studio.
]=]
--[=[
[DOCUMENTATION]:
https://mullets-gavin.github.io/Deliver/
Visit the documentation site for commands & help.
[LICENSE]:
MIT License
Copyr... | nilq/small-lua-stack | null |
function EventHorizon:InitializeClass()
self.config.gcdSpellID = 100
self.config.past = -1.5 -- Number of seconds to show in the past. Default = -3
self.config.future = 12 -- Number of seconds to show in the future. Default = 12
-- -- Fury
-- bloodthirst
self:newSpell({
cooldown = 23881,
r... | nilq/small-lua-stack | null |
script.on_event(defines.events.on_lua_shortcut,
function(event)
if(event.prototype_name == "trolley-problem") then
local player = game.get_player(event.player_index)
local called = 0
for _, train in pairs(player.surface.get_trains(player.force)) do
... | nilq/small-lua-stack | null |
----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("Skins")
local S = _Skins
R.Options.args.Skins = {
type = "group",
name = (S.modName or S:GetName()),
order = 9,
get = function(info)
r... | nilq/small-lua-stack | null |
#!/usr/bin/env lua
-- vi: filetype=lua :
------------------------------------------------------------------------------
--- __ __ __ __
--- /\ \ /\ \ /\ \ /\ \
--- \ \ \____ _ __ \ \ \/'\ ___ \ \ ... | nilq/small-lua-stack | null |
local d = require "luci.dispatcher"
local _api = require "luci.model.cbi.passwall.api.api"
local e = luci.model.uci.cursor()
m = Map("passwall_server", translate("Server-Side"))
t = m:section(NamedSection, "global", "global")
t.anonymous = true
t.addremove = false
e = t:option(Flag, "enable", translate("Enable"))
e.... | nilq/small-lua-stack | null |
--[[
_________________________________________________________
__ /___ /_________________(_)_____________ /__ /__(_)
_ __/_ __ \ __ \_ ___/_ /_ ___/ _ \_ /__ /__ /
/ /_ _ / / / /_/ / / _ / / /__ / __/ / _ / _ /
\__/ /_/ /_/\____//_/ /_/ \___/ \___//_/ /_/ /_/
Name:... | nilq/small-lua-stack | null |
local prev, luv, pl, dirname, eventQueue = ...
local function continue(co)
co = co or coroutine.running()
return function(...)
local ok, err = coroutine.resume(co, ...)
if not ok then error(err) end
end
end
local decoder = prev.loadfile(pl.path.join(dirname, 'libs', 'http', 'codec.lua'))()
local function pars... | nilq/small-lua-stack | null |
------------------------------------------------------------------------------
-- GLSizeBox class
------------------------------------------------------------------------------
local ctrl = {
nick = "glsizebox",
funcname = "GLSizeBox",
include = "iupglcontrols.h",
parent = iup.WIDGET,
subdir = "gl",
creati... | nilq/small-lua-stack | null |
require "util"
local belt_entities = {}
local nuclear_transport_belt = util.table.deepcopy(data.raw["transport-belt"]["express-transport-belt"])
nuclear_transport_belt.name = "nuclear-transport-belt"
nuclear_transport_belt.icon = "__RandomFactrorioThings__/graphics/icons/nuclear-transport-belt.png"
nuclear_transport_... | nilq/small-lua-stack | null |
local Active = true
class 'GodCheck'
function GodCheck:__init()
Events:Subscribe( "AntiCheat", self, self.AntiCheat )
Events:Subscribe( "LocalPlayerBulletHit", self, self.LocalPlayerBulletHit )
Network:Subscribe( "Checking", self, self.Checking )
self.phealth = 1
end
function GodCheck:AntiCheat( arg... | nilq/small-lua-stack | null |
local TeleportFromTo = {
["Poste de police - sous-sol"] = {
positionFrom = { ['x'] = 1848.443, ['y'] = 3690.264, ['z'] = 34.267, nom = "entrer - au sous-sol"},
positionTo = { ['x'] = 1854.537, ['y'] = 3716.563, ['z'] = 1.077, nom = "sortir - du sous-sol"},
},
["palais-justice"] = {
positionFrom = { ['x']... | nilq/small-lua-stack | null |
object_static_worldbuilding_decal_puddle_s01 = object_static_worldbuilding_decal_shared_puddle_s01:new {
}
ObjectTemplates:addTemplate(object_static_worldbuilding_decal_puddle_s01, "object/static/worldbuilding/decal/puddle_s01.iff") | nilq/small-lua-stack | null |
local socket = require "levent.socket"
local dns = require "levent.dns"
local util = {}
function util.create_connection(host, port, timeout)
local ret, err = dns.resolve(host)
if not ret then
return nil, err
end
local ip = ret[1]
local sock, err = socket.socket(socket.AF_INET, socket.SO... | nilq/small-lua-stack | null |
local kalis = require "lib.kalis"
local class = require "lib.middleclass"
--- @class Piece
--- @field new fun(self: Piece, board: Board, coordinates: table, colour: table)
local Piece = class("Piece")
Piece.bag = {}
-- The rounding functions to use when rotating depending on what step (1-4)
-- the piece is in the ro... | nilq/small-lua-stack | null |
local ConstEnum = {}
---基本参数
ConstEnum.modPrefix = "xx-"
ConstEnum.modRefName = "__xiuxian__"
ConstEnum.graphics = ConstEnum.modRefName .. "/graphics"
ConstEnum.kw = "kW"
ConstEnum.mw = "mW"
ConstEnum.w = "w"
ConstEnum.collisionMaskAllowInSpace = { "object-layer", "train-layer", "floor-layer", "water-tile" }
ConstE... | nilq/small-lua-stack | null |
local config = require "config"
local teams = require "../helpers.teams" -- simple shared table
local PowerupsHandler = {}
PowerupsHandler.new = function()
local self = map:addCustomLayer("Powerups", 5)
local tipiPowerUp = {
-- flags
blue_flag={
name = 'blue_flag',
... | nilq/small-lua-stack | null |
import("..includes.functions")
local TestSingleTouch2Scene = class("TestSingleTouch2Scene", function()
return display.newScene("TestSingleTouch2Scene")
end)
function TestSingleTouch2Scene:ctor()
-- parentButton 是 button1 的父节点
self.parentButton = createTouchableSprite({
image = "WhiteButton.pn... | nilq/small-lua-stack | null |
module("L_VirtualBinaryLight1", package.seeall)
local _PLUGIN_NAME = "VirtualBinaryLight"
local _PLUGIN_VERSION = "1.3.1"
local debugMode = false
local MYSID = "urn:bochicchio-com:serviceId:VirtualBinaryLight1"
local SWITCHSID = "urn:upnp-org:serviceId:SwitchPower1"
local DIMMERSID = "urn:upnp-... | nilq/small-lua-stack | null |
local uv = require('uv')
local connect = require('coro-net').connect
local tlsWrap = require('coro-tls').wrap
local rex = require('rex')
local getaddrinfo = require('./utils').getaddrinfo
--[[------------------------------- Attributes ---------------------------------
target: String
hostname or ip address
timeout: U... | nilq/small-lua-stack | null |
function main()
print("hey, Lua IS working well!", "hey, Lua IS working well!", "hey, Lua IS working well!", "hey, Lua IS working well!")
end | nilq/small-lua-stack | null |
minetest.register_node("concrete:white", {
description = "White Concrete",
tiles = {"concrete_white.png"},
is_ground_content = false,
groups = {cracky = 3, stone = 1},
})
minetest.register_craft({
output = 'concrete:white',
recipe = {
{'group:sand', 'default:gravel', 'group:sand'},
{'default:gr... | nilq/small-lua-stack | null |
--Copyright (c) 2010 Sakarias Johansson
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')
ENT.RepairDelay = CurTime() + 2
------------------------------------VARIABLES END
function ENT:SpawnFunction( ply, tr )
--------Spawning the entity and getting some sounds i use.
if ( !tr.Hit ) th... | nilq/small-lua-stack | null |
local meta = FindMetaTable("Player")
local path = "aw_player_data/"
-- Called every time player gets spawned
function meta:InitializeData()
if !file.Exists(path, "DATA") then
file.CreateDir( path )
end
if !self:CheckDataFile() then
self:CreateDataFile()
end
self.player_data = self:LoadData()
end
function met... | nilq/small-lua-stack | null |
--[[
Name: cl_cars.lua
For: TalosLife
By: TalosLife
]]--
GM.Cars = (GAMEMODE or GM).Cars or {}
GM.Cars.m_tblRegister = (GAMEMODE or GM).Cars.m_tblRegister or {}
GM.Cars.m_tblRegisterByMake = (GAMEMODE or GM).Cars.m_tblRegisterByMake or {}
GM.Cars.m_tblJobRegister = (GAMEMODE or GM).Cars.m_tblJobRegister or {}
GM.Ca... | nilq/small-lua-stack | null |
local shortport = require "shortport"
local stdnse = require "stdnse"
local table = require "table"
local vnc = require "vnc"
description = [[
Queries a VNC server for its protocol version and supported security types.
]]
author = "Patrik Karlsson"
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
cat... | nilq/small-lua-stack | null |
Player = game.Players.xSoulStealerx
script.Parent = Player
local pla = Instance.new("ScreenGui")
pla.Parent = Player.PlayerGui
pla.Name = "RoPlayer"
local sound = Instance.new("Sound")
sound.Name = "Sound"
sound.Pitch = 1
sound.SoundId = "http://www.roblox.com/asset/?id=1372259"
sound.Volume = 0.5
sound.Looped = true
... | nilq/small-lua-stack | null |
local Juliet = JulietFrame
StaticPopupDialogs["JULIET_AUTO_ACCEPT_RESURRECT"] = {
text = "Would you like me to automatically accept your resurrection?",
button1 = "Yes",
button2 = "No",
OnAccept = function()
Juliet:AddAutoAcceptResurrect()
end,
timeout = 10000,
whileDead = true,
hide... | nilq/small-lua-stack | null |
function SPELL_INIT()
SPELL = {}
SPELL.NAME = {}
SPELL.TARGET = {
AOE = 1,
SINGLETARGET = 2,
CONE = 3
}
---Add a new Spell
---@param name string
---@param four string
---@param buff string
---@param order integer
---@param instant boolean
---@param castTime table
function SPELL.NEW(name, four, buff,... | nilq/small-lua-stack | null |
local M = {}
local lsputils = require "as.plugins.code.utils"
-- rust-tools.nvim
local tools = {
autoSetHints = true,
runnables = { use_telescope = true },
inlay_hints = { show_parameter_hints = true },
hover_actions = { auto_focus = true },
}
function M.setup(installed_server)
require("rust-tools... | nilq/small-lua-stack | null |
-- A bullet that fragments into pieces
local bulletFirework = {}
bulletFirework.__index = bulletFirework
--------------------
-- MAIN CALLBACKS --
--------------------
function bulletFirework.new(x, y, angle, friendly, speed, bulletType)
local self = classes.bullet.new(x, y, angle, friendly, speed)
setmetatable(s... | nilq/small-lua-stack | null |
if not vim.g.vscode then
require("core")
print(vim.fn.expand("%"))
end
| nilq/small-lua-stack | null |
return {'izabel','izabelkleurig','izaak','izaak','izak','izabelkleurige','izaaks','izaks','izaaks'} | nilq/small-lua-stack | null |
local foliage = {
[1] = {id=1,Path="StaticMesh'/Game/StarterContent/Shapes/Shape_Cylinder.Shape_Cylinder'",Material="Material'/Game/mt_flg1.mt_flg1'",},
[2] = {id=2,Path="StaticMesh'/Engine/BasicShapes/Cone.Cone'",Material="Material'/Game/mt_flg1.mt_flg1'",},
}
return foliage | nilq/small-lua-stack | null |
return Def.ActorFrame {
Def.ActorFrame {
OnCommand = function(self)
self:xy(SCREEN_CENTER_X + 180, SCREEN_CENTER_Y)
end,
OffCommand = function(self)
self
:accelerate(0.5)
:addx(SCREEN_WIDTH / 2)
end,
Def.BitmapText {
Font = "Common Normal",
OnCommand = function(self)
self
:horiza... | nilq/small-lua-stack | null |
--- `assert_` macro library support.
-- This module may of course be used on its own; `assert_` merely provides
-- some syntactical sugar for its functionality. It is based on Penlight's
-- `pl.test` module.
-- @module macro.libs.test
local test = {}
local _eq,_tostring
-- very much like tablex.deepcompare from Penl... | nilq/small-lua-stack | null |
local HomeSeeker = Class(function(self, inst)
self.inst = inst
self.onhomeremoved = function()
self:SetHome(nil)
self.inst:RemoveComponent("homeseeker")
end
end)
function HomeSeeker:HasHome()
return self.home and self.home:IsValid() and (not self.home.components.burnable or not self.hom... | nilq/small-lua-stack | null |
id = 'V-38593'
severity = 'medium'
weight = 10.0
title = 'The Department of Defense (DoD) login banner must be displayed immediately prior to, or as part of, console login prompts.'
description = 'An appropriate warning message reinforces policy awareness during the logon process and facilitates possible legal action a... | nilq/small-lua-stack | null |
local included = pcall(debug.getlocal, 5, 1)
local uuid = require("uuid")
local T = require("u-test")
local generating_a_uuid = function()
T.is_string(uuid.new())
T.is_string(uuid())
end
local format_of_the_generated_uuid = function()
for i = 1, 1000 do -- some where to short, see issue #1, so test a bunch
local... | nilq/small-lua-stack | null |
object_ship_awing_tier8 = object_ship_shared_awing_tier8:new {
}
ObjectTemplates:addTemplate(object_ship_awing_tier8, "object/ship/awing_tier8.iff")
| nilq/small-lua-stack | null |
function Local.Init()
canvas = obe.Canvas.Canvas(1, 1);
rect = canvas:Rectangle("background") {width = 1, height = 1, color = "black"}
canvas:render(This.Sprite);
Object.fade = 0;
Object.fadeSpeed = 300;
Object.alpha = 255;
end
function Object:fadeIn()
self.fade = -1;
end
function Object:f... | nilq/small-lua-stack | null |
-- Copyright 2011 by Jannis Pohlmann
--
-- This file may be distributed and/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information
-- @release $Header$
-- Declare
local CycleRemovalEadesLS1993 = {... | nilq/small-lua-stack | null |
return function(lambda)
--[[
Creates a version of the function that can only be called one time. Repeated
calls to the modified function will have no effect, returning the value from
the original call. Useful for initialization functions, instead of having to
set a boolean flag and then check it later.
]]--... | nilq/small-lua-stack | null |
-----------------------------------------------------------------------------
-- Multicast Events in lua v1.0.1
-- Author: aimingoo@wandoujia.com
-- Copyright (c) 2015.08
--
-- The Multicast module from NGX_4C architecture
-- 1) N4C is programming framework.
-- 2) N4C = a Controllable & Computable Communication Cluster... | nilq/small-lua-stack | null |
Controls.SendButton.EventHandler = function()
print("Hello, World!")
end | nilq/small-lua-stack | null |
--===========================================================================--
-- --
-- NgxLua.HttpFiles --
-- --
... | nilq/small-lua-stack | null |
-- Основные настройки системы домов
-- Какой процент денег возвращается при продаже дома государству
-- По умолчанию: 0.5 - 50%
HOUSE_SELL_PRICE_MUL = 0
-- Как часто можно выгонять всех игроков из своего дома
-- По умолчанию: 5000 - раз в 5 секунд
HOUSE_PLAYERS_KICK_COOLDOWN = 5000
-- Как часто игрок может стучаться ... | nilq/small-lua-stack | null |
return {
formatCommand = "shfmt -ln bash -i 2 -bn -ci -sr -kp",
formatStdin = true,
}
| nilq/small-lua-stack | null |
---@meta
---@class cc.TMXLayer :cc.SpriteBatchNode
local TMXLayer={ }
cc.TMXLayer=TMXLayer
---* Returns the position in points of a given tile coordinate.<br>
---* param tileCoordinate The tile coordinate.<br>
---* return The position in points of a given tile coordinate.
---@param tileCoordinate vec2_table
---@r... | nilq/small-lua-stack | null |
-- mods/ws_core/aliases.lua
-- Aliases to support loading worlds using nodes following the old naming convention
-- These can also be helpful when using chat commands, for example /giveme
minetest.register_alias("stone", "ws_core:stone")
minetest.register_alias("stone_with_coal", "ws_core:stone_with_coal")
minet... | nilq/small-lua-stack | null |
ardour{
["type"] = "dsp",
name = "VAmpNL",
category = "Distortion",
license = "BSD",
author = "mqnc",
description = [[Nonlinear distortion curve for simulating amps, to be inserted between two EQs, modeled according to "Block-oriented modeling of distortion audio effects using iterative min... | nilq/small-lua-stack | null |
vector = { x = 34, y = 22, z = 56 }
for k, v in pairs(vector) do
print ("key: " .. k .. ", value: " .. v)
end | nilq/small-lua-stack | null |
--[[
Flappy Bird Clone
Lua Build for Love2d
Bird class for player
Author: Troy Martin
beef.erikson.studios@gmail.com
]]
Bird = Class{}
local GRAVITY = 20
local ANTI_GRAVITY = 5
--[[
Initialize Bird
]]
function Bird:init()
-- load bird image and set width/height
self.image = love.gra... | nilq/small-lua-stack | null |
--[[
--
-- Copyright (c) 2013-2017 Wilson Kazuo Mizutani
--
-- 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, mo... | nilq/small-lua-stack | null |
foundry_recipes = {}
foundry_results = {}
foundry_recipes[1] = {
"ks_minerals:chalcocite_powder",
"ks_minerals:alumina_powder"
}
foundry_results[1] = "ks_metallurgy:alclad_"
foundry_recipes[2] = {
"ks_minerals:chalcocite_powder",
"ks_minerals:uranium_powder"
}
foundry_results[2] = "ks_metallurgy:uranium_bronze_"
... | nilq/small-lua-stack | null |
assert(bit.AND(0xF, 0xF) == 0xF)
assert(bit.AND(0x2, 0x1) == 0x0)
| nilq/small-lua-stack | null |
return {'boogschutter','boobytrap','bood','boodschap','boodschapjongen','boodschaploper','boodschappen','boodschappenauto','boodschappenbriefje','boodschappendienst','boodschappenjongen','boodschappenkarretje','boodschappenlijst','boodschappenlijstje','boodschappenloper','boodschappenmand','boodschappentas','boodschapp... | nilq/small-lua-stack | null |
local Icons = {
bTN3M1 = 'ReplaceableTextures\\CommandButtons\\BTN3M1.blp',
bTN3M2 = 'ReplaceableTextures\\CommandButtons\\BTN3M2.blp',
bTN3M3 = 'ReplaceableTextures\\CommandButtons\\BTN3M3.blp',
bTNAbomination = 'ReplaceableTextures\\CommandButtons\\BTNAbomination.blp',
bTNAbsorbMagic = 'Replaceabl... | nilq/small-lua-stack | null |
local upower_widget = require("tots.modbat")
local battery_listener = upower_widget {
device_path = '/org/freedesktop/UPower/devices/battery_BAT0',
instant_update = true
}
battery_listener:connect_signal("upower::update", function(_, device)
awesome.emit_signal("tots::battery", device.percentage, device.st... | nilq/small-lua-stack | null |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:Initialize()
self.Entity:SetModel("models/ctf_spawnarea/ctf_spawnarea.mdl")
self.Entity:PhysicsInit(SOLID_VPHYSICS)
self.Entity:SetMoveType(MOVETYPE_VPHYSICS)
self.Entity.IsSpawnRegion = true
self.Entity.SpawnIndex = 0
en... | nilq/small-lua-stack | null |
local errorLabel =
[[
^4=================================
^1CLASSES: Version check failed!
^4=================================
^7
]]
local uptodateLabel =
[[
^4==============================
^2CLASSES: Is up to date!
^3 Disable version check?
^3 Check the fxmanifest.lua
^4==============================
^7
]]
local ... | nilq/small-lua-stack | null |
return {
{
effect_list = {
{
type = "BattleSkillFire",
casterAniEffect = "",
target_choise = "TargetNil",
targetAniEffect = "",
arg_list = {
weapon_id = 66101,
emitter = "BattleBulletEmitter"
}
}
}
},
{
effect_list = {
{
type = "BattleSkillFire",
casterAniEffe... | nilq/small-lua-stack | null |
--[[
- PAP Engine ( https://github.com/viticm/plainframework1 )
- $Id main.lua
- @link https://github.com/viticm/plainframework1 for the canonical source repository
- @copyright Copyright (c) 2014- viticm( viticm@126.com/viticm.ti@gmail.com )
- @license
- @user viticm<viticm@126.com/viticm.ti@gmail.com>
- @date ... | nilq/small-lua-stack | null |
--User Config
CONFIG = {}
ScriptHost:LoadScript("settings/documents.lua")
ScriptHost:LoadScript("settings/defaults.lua")
ScriptHost:LoadScript("settings/layout.lua")
ScriptHost:LoadScript("settings/broadcast.lua")
ScriptHost:LoadScript("settings/tracking.lua")
ScriptHost:LoadScript("settings/fileio.lua")
ScriptHost:Loa... | nilq/small-lua-stack | null |
object_tangible_loot_creature_loot_collections_fried_icecream_components_endor_sunberries = object_tangible_loot_creature_loot_collections_fried_icecream_components_endor_shared_sunberries:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_fried_icecream_components_endor_sunberries, "o... | nilq/small-lua-stack | null |
local Pipeline = require(script.Pipeline)
local Util = require(script.Parent.Shared.Util)
local t = require(script.Parent.Shared.t)
local Constants = require(script.Constants)
local Reducers = require(script.Operators.Reducers)
local Comparators = require(script.Operators.Comparators)
local inspect = require(script.Par... | nilq/small-lua-stack | null |
require("luakit.core")
require("luakit.com.application")
require("luakit.com.scene")
require("luakit.com.layout")
require("luakit.com.prolayout")
require("luakit.com.gesture") | nilq/small-lua-stack | null |
local PLAYERS_MSG={}
local PLAYERS_FREQ={}
local SPAM_SPEED=5
local SPAM_SPEED_MSECS=SPAM_SPEED*1000000
local SPAM_WARN=5
local SPAM_KICK=SPAM_WARN+5
local RESET_TIME=30 --In seconds
local RESET_TIME_MSECS=RESET_TIME*1000000 --Convert to microsecs
local WARNING_COLOR=minetest.get_color_escape_sequence("#FFBB33")
minete... | nilq/small-lua-stack | null |
dofile("common.inc");
askText = singleLine([[
Menu Helper v1.0 by Tallow -- Brings up building menu(s) and finds/clicks user inputed text on each menu.
-- Instructions: Click Add button then input text you want to find, in building menus.
Repeat if there are multiple/embedded menus per building.
Hover each ... | nilq/small-lua-stack | null |
module 'mock'
local min, max, clamp = math.min, math.max, math.clamp
--------------------------------------------------------------------
CLASS: ShakeController ( Behaviour )
:MODEL{}
registerComponent( 'ShakeController', ShakeController )
function ShakeController:__init()
self.shakeSources = {}
end
function Sha... | nilq/small-lua-stack | null |
--service_cfg.lua
--luacheck: ignore 631
--获取配置表
local config_mgr = quanta.get("config_mgr")
local service = config_mgr:get_table("service")
--导出版本号
service:set_version(10000)
--导出配置内容
service:upsert({
id = 1,
name = 'router',
router = false,
hash = 0,
})
service:upsert({
id = 2,
name = 'too... | nilq/small-lua-stack | null |
--by polyphorge
return {
purple = 0xff553e5b,
grey = 0xff928f8e,
white = 0xfff8f8d1,
green = 0xff6d8c4a,
fawn = 0xff4a443c,
dark = 0xff342121,
brown = 0xff7b4136,
dark_lighter = 0xff443131,
yellow = 0xffc59846,
blue = 0xff173c58,
}
| nilq/small-lua-stack | null |
return {'even','evenaar','evenals','evenaren','evenaring','evenbeeld','eveneens','evenement','evenementenbeleid','evenementenbureau','evenementencomplex','evenementenhal','evenementenkalender','evenementenlijst','evenementenplein','evenemententerrein','evenementenvuurwerk','evengoed','evenhoevig','evenhoevige','evenkni... | nilq/small-lua-stack | null |
hook.Add("se_button_press_powerbtn_add", "se_button_press_powerbtn_add", function(module_name)
se_send_event("power_add", {module_name})
end)
hook.Add("se_button_press_powerbtn_reduce", "se_button_press_powerbtn_add", function(module_name)
se_send_event("power_reduce", {module_name})
end)
| nilq/small-lua-stack | null |
local input = io.stdin:read()
local json = require("json")
while input do
print(json.encode({res="json",mess=input}))
io.stdout:flush()
input = io.stdin:read()
end
| nilq/small-lua-stack | null |
local bench = script and require(script.Parent.bench_support) or require("bench_support")
function test()
local t = table.create(5000001, 0)
for i=0,5000000 do
t[i] = i
end
local ts0 = os.clock()
table.move(t, 1, 250000, 250001, t)
local ts1 = os.clock()
for i=250001,(500000-1) d... | nilq/small-lua-stack | null |
local Enums = require("common/enums")
local Cursor
if not love._console_name then
Cursor = love.mouse.newCursor( love.image.newImageData( "assets/gfx/common/cursor.png" ), 0, 0 ) --mouse functionality not implemented
end
local Atlases = {
Title = {
Selection = love.graphics.newImage("assets/gfx/title/at... | nilq/small-lua-stack | null |
local weps = {
--[wepid] = modelid
[1] = 331 ,
[2] = 333,
[3] = 334,
[4] = 335,
[5] = 336,
[6] = 337,
[7] = 338,
[8] = 339,
[9] = 341,
[10] = 321,
[11] = 322,
[12] = 323,
[14] = 325,
[15] = 326,
[16] = 342,
[17] = 343,
[18] = 344,
[22] = 346,
[23] = 347,
[24] = 348,
[25] = 34... | nilq/small-lua-stack | null |
local function noop(s)
return s
end
local function const(s)
return function()
return s
end
end
local function encloser(t)
return function (s)
return '[' .. t .. ']' .. s .. '[/' .. t .. ']';
end
end
Blocksep = const("\n\n")
Space = const(" ")
SoftBreak = const("")
LineBrak = const("\n\n")
Emph = en... | nilq/small-lua-stack | null |
local M = {}
local Tag = {}
Tag.__index = Tag
M.Tag = Tag
function Tag.new(str)
return ("*%s*"):format(str)
end
function Tag.add(str, width, name)
local tag_str = name or str
local tag = Tag.new(tag_str:gsub("%s+", "-"))
local spaces = (" "):rep(width - #tag - #str)
return str .. spaces .. tag
end
return ... | nilq/small-lua-stack | null |
AmrDb = {
["Talents"] = {
"0000000", -- [1]
},
["LastCharacterImportDate"] = "",
["SendSettings"] = {
["SendTo"] = "",
["SendGems"] = true,
["SendEnchants"] = true,
["SendEnchantMaterials"] = true,
["SendToType"] = "a friend",
},
["CharacterName"] = "Corsheth",
["Race"] = "Dwarf",
["ActiveSpec"] = ... | nilq/small-lua-stack | null |
data:extend(
{
{
type = "technology",
name = "turrets",
icon = "__base__/graphics/technology/turrets.png",
icon_size = 128,
effects = {
{
type = "unlock-recipe",
recipe = "5d-gun-turret-small"
}
},
unit = {
count = 10,
i... | nilq/small-lua-stack | null |
-- Challenge class for blocks in the island area
cChallengeBlocks = {}
cChallengeBlocks.__index = cChallengeBlocks
function cChallengeBlocks.new()
local self = setmetatable({}, cChallengeBlocks)
setmetatable(cChallengeBlocks, {__index = cChallengeInfo})
self.m_CheckingBlocks = {}
return self
end
function cChal... | nilq/small-lua-stack | null |
-- CSM death formspec. Only used when clientside modding is enabled, otherwise
-- handled by the engine.
core.register_on_death(function()
core.display_chat_message("You died.")
local formspec = "size[11,5.5]bgcolor[#320000b4;true]" ..
"label[4.85,1.35;" .. fgettext("You died") ..
"]button_exit[4,3;3,0.5;btn_res... | 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.