content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
print(" ______ ______ __ ______ ______ ______ __ __ ")
print("/\\ ___\\/\\ ___\\/\\ \\ /\\ ___\\/\\__ _\\/\\ __ \\/\\ \\-./ \\ ")
print("\\ \\___ \\ \\ __\\\\ \\ \\___\\ \\___ \\/_/\\ \\/\\ \\ __ \\ \\ \\-./\\ \\ ")
print(" \\/\\_____\\ \\_____\\ \\_____\\/\\_____\\ \\ \\_\\ \\ \\_\\ \\_... | nilq/small-lua-stack | null |
#! /usr/bin/env lua
local basedir = ""
if arg[0]:find("[/\\]") then
basedir = arg[0]:gsub("(.*[/\\]).*$", "%1"):gsub("\\", "/")
end
if basedir == "" then basedir = "./" end
-- Required by load_strings()
function string.trim(s) -- luacheck: ignore
return s:gsub("^%s*(.-)%s*$", "%1")
end
dofile(basedir.."/../lib.lua... | nilq/small-lua-stack | null |
-- IMPORT @ DEFAULT
-- PRIORITY 0
--[[
Mod: Mod Utility
Author: MagicGonads
Library to allow mods to be more compatible with eachother
To include in your mod you must tell the user that they require this mod.
Use the mod importer to import this mod to ensure it is loaded in the right position.
Or... | nilq/small-lua-stack | null |
GlobalVar("MarsScreenLandingSpots", false)
GlobalVar("SortedMarsScreenLandingSpots", false)
GlobalVar("MarsScreenMapParams", false)
local function _SortMarsPointsOfInterest()
local rivals = {}
local anomalies = {}
local special_projects = {}
for _, poi in ipairs(MarsScreenLandingSpots) do
if poi.spot_type == "r... | nilq/small-lua-stack | null |
function momoTweak.recipe.Gold()
local AddIng = momoIRTweak.recipe.SafeAddIngredient
local ITEM = momoIRTweak.FastItem
local components = momoTweak.components
local FLUID = momoIRTweak.FastFluid
local NEWComplex = momoIRTweak.recipe.NewComplexRecipe
local UnlockAt = momoIRTweak.recipe.UnlockAtRef
local fluidName... | nilq/small-lua-stack | null |
package.path = "./src/?.lua;./unittest/?.lua;"..package.path
local lunit = require "lunit"
require "test"
local stats = lunit.main()
if stats.failed > 0 or stats.errors > 0 then
os.exit(1)
end
| nilq/small-lua-stack | null |
if SERVER then
AddCSLuaFile("init_weaponalert.lua")
print("---LOADING--- sn_weaponalert")
end
if CLIENT then
armedWarningMat = Material("materials/textures/sn_weaponalert/gunalert.png")
armedPlayers = {}
validWeapons = {"cw_ak74","cw_ar15","cw_extrema_ratio_official","cw_flash_grenade", "cw_five... | nilq/small-lua-stack | null |
local test = {}
local Class = require('charon.oop.Class')
local ActiveRecord = require('charon.ActiveRecord')
local Employee = Class.new("Employee", "ActiveRecord")
local Task = Class.new("Task", "ActiveRecord")
Employee.hasMany {
name = 'tasks',
record = 'Task',
foreignKey = 'employee_id'
}
Task... | nilq/small-lua-stack | null |
vim.g.UltiSnipsEditSplit="vertical"
vim.g.UltiSnipsExpandTrigger="<C-/>"
| nilq/small-lua-stack | null |
vim.g.localvimrc_ask = 0
vim.g.localvimrc_sandbox = 0
| nilq/small-lua-stack | null |
return function()
local ddlt = {}
ddlt.appName = 'dd-lua-tester'
ddlt.version = '0.0.1'
ddlt.publish = print
ddlt.subscribe = function()
end
return ddlt
end
| nilq/small-lua-stack | null |
PathSearchNode = {}
PathSearchNode.__index = PathSearchNode
function PathSearchNode:new(x, y, index, parentIndex)
parentIndex = parentIndex or 0
local node = {
x = x,
y = y,
index = index,
parentIndex = parentIndex,
g = 0,
h = 0,
f = 0
}
setmetatable(node, self)
return node
end
function PathSearchN... | nilq/small-lua-stack | null |
--- The player_manager library lets you manage players, such as setting their models or creating player classes.
_G.player_manager = {}
--- Assigns view model hands to player model.
--- @param name string @Player model name
--- @param model string @Hands model
--- @param skin number @Skin to apply to the hands
--- ... | nilq/small-lua-stack | null |
return function()
local Queue = require(script.Parent)
local function TypeOf(Value)
local ValueType = typeof(Value)
if ValueType == "table" then
local Metatable = getmetatable(Value)
if type(Metatable) == "table" then
local CustomType = Metatable.__type or Metatable.ClassName
if CustomType then
... | nilq/small-lua-stack | null |
object_tangible_component_weapon_new_weapon_enhancement_ranged_slot_one_base = object_tangible_component_weapon_new_weapon_shared_enhancement_ranged_slot_one_base:new {
}
ObjectTemplates:addTemplate(object_tangible_component_weapon_new_weapon_enhancement_ranged_slot_one_base, "object/tangible/component/weapon/new_wea... | nilq/small-lua-stack | null |
require 'rnn'
require 'nnx' -- for CTCCriterion
require 'math'
local cmd = torch.CmdLine()
cmd:text()
cmd:text('Option:')
cmd:option('-dataset', 'fullset.dat', 'fullset for training and validation')
cmd:option('-lang', 'number', 'to recognize numbers or Chinese Character')
cmd:option('-model', '', 'load existed model'... | nilq/small-lua-stack | null |
-- internationalization boilerplate
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
-- formspec
local function get_hopper_formspec(pos)
local spos = hopper.get_string_pos(pos)
local formspec =
"size[8,9]"
.. hopper.formspec_bg
.. "list[nodemeta:" .. spos... | nilq/small-lua-stack | null |
-- Settings
vim.g.coq_settings = {
auto_start = "shut-up",
clients = {
tabnine = {
enabled = true,
},
},
display = {
mark_highlight_group = "COQMarks",
},
keymap = {
recommended = false,
jump_to_mark = "<C-s>",
},
}
local coq = require("co... | nilq/small-lua-stack | null |
object_tangible_furniture_decorative_community_tcg_gcw_photo_contest_painting_2010_02 = object_tangible_furniture_decorative_shared_community_tcg_gcw_photo_contest_painting_2010_02:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_decorative_community_tcg_gcw_photo_contest_painting_2010_02, "object/tangible... | nilq/small-lua-stack | null |
--[[
pbInfo - Locales/lang.FR.lua
Traduit par Juki de la guilde <Carpe Diem> serveur Claiomh FR
v0.49
by p.b. a.k.a. novayuna
released under the Creative Commons License By-Nc-Sa: http://creativecommons.org/licenses/by-nc-sa/3.0/
thx to wolf79400 and Yogg for the translation!
-- commented lines need translations... | nilq/small-lua-stack | null |
mob_spawn_chance_multiplier = 1.0
dofile(minetest.get_modpath("mobs").."/api.lua")
mobs:register_mob("mobs:dirt_monster", {
type = "monster",
hp_max = 5,
collisionbox = {-0.4, -1.0, -0.4, 0.4, 1.9, 0.4},
visual = "upright_sprite",
textures = {"mobs_dirt_monster.png", "mobs_dirt_monster_back.png"},
visual_size =... | nilq/small-lua-stack | null |
-----------------------------------------
-- ID: 4218
-- Item: Air Rider
-- A goblin in a Santa outfit rides a sleigh in a downward spiral
-----------------------------------------
function onItemCheck(target)
return 0
end
function onItemUse(target)
end
| nilq/small-lua-stack | null |
MapProjectManager = MapProjectManager or class()
local U = BeardLib.Utils
local EU = BLE.Utils
local XML = U.XML
local Project = MapProjectManager
local CXML = "custom_xml"
function Project:init()
self._diffs = {"Normal", "Hard", "Very Hard", "Overkill", "Mayhem", "Death Wish", "Death Sentence"}
self._t... | nilq/small-lua-stack | null |
-------------------------------------------------------------------------------
-- Module Declaration
--
local mod, CL = BigWigs:NewBoss("Mage-Lord Urom", 578, 624)
if not mod then return end
mod:RegisterEnableMob(27655)
mod.engageId = 2014
-- mod.respawnTime = 0 -- resets, doesn't respawn
--------------------------... | nilq/small-lua-stack | null |
local Tunnel = module("vrp", "lib/Tunnel")
local Proxy = module("vrp", "lib/Proxy")
vRP = Proxy.getInterface("vRP")
vRPclient = Tunnel.getInterface("vRP","vrp_bilskrot")
local scrapprices = {
{id = 0, price = 3600}, --compacts
{id = 1, price = 4000}, --sedans
{id = 2, price = 5200}, --SUV's
{id = 3, price = 6400}... | nilq/small-lua-stack | null |
--- @module flattable
local BASE = (...):match("(.-)[^%.]+$")
local core = require( BASE .. "core" )
local style = require( BASE .. "style" )
-------------------------------------------------------------------------------
local function keyboardOn( id, uistate )
if core.hasKeyboardFocus( id ) then
if uistate.keyen... | nilq/small-lua-stack | null |
slot0 = require("protobuf")
slot1 = require("common_pb")
module("p25_pb")
SC_25001 = slot0.Descriptor()
CS_25002 = slot0.Descriptor()
SC_25003 = slot0.Descriptor()
CS_25004 = slot0.Descriptor()
SC_25005 = slot0.Descriptor()
CS_25006 = slot0.Descriptor()
SC_25007 = slot0.Descriptor()
CS_25008 = slot0.Descriptor()
SC_2... | nilq/small-lua-stack | null |
describe("http.client module", function()
local client = require "http.client"
it("invalid network parameters return nil, err, errno", function()
-- Invalid network parameters will return nil, err, errno
local ok, err, errno = client.connect{host="127.0.0.1", port="invalid"}
assert.same(nil, ok)
assert.same("... | nilq/small-lua-stack | null |
-- IMPORTANT NOTE : This is the user config, can be edited. Will be preserved if updated with internal updater
-- This file is for NvChad options & tools, custom settings are split between here and 'lua/custom/init.lua'
local M = {}
local opt = vim.opt
-- NOTE: To use this, make a copy with `cp example_chadrc.lua chad... | nilq/small-lua-stack | null |
project "abl"
kind "SharedLib"
language "C"
includedirs { "include" }
defines { "ABL_DLL", "ABL_DLL_EXPORTS" }
files { "include/**.h", "abl/**.h", "abl/**.c" }
function libabl()
links { "abl" }
end
| nilq/small-lua-stack | null |
-- http://regex.info/blog/lua/json
JSON = (loadfile "parsers/test_Lua_JSON/JSON.lua")() -- one-time load of the routines
function readAll(file)
local f = io.open(file, "rb")
local content = f:read("*all")
f:close()
return content
end
local data = readAll(arg[1])
local lua_value = JSON:decode(data)
i... | nilq/small-lua-stack | null |
local lush = require 'lush'
local v = vim.g -- this must be done, because lush is executed in a bare environment
v.colors_name = 'nord'
local theme = require 'base'
-- {'gitcommit'}
v.nord_langs = v.nord_langs or {
'asciidoc',
'awk',
'c',
'cmake',
'cs',
'css',
'dosini',
'dt',
'gitconfig',
'go',
... | nilq/small-lua-stack | null |
return function(LevelEntites)
return function(x, y)
--print("WALL", x, y, LevelEntites)
local obj = setmetatable({
quad = function(self)
return LevelEntites.sprites["wall"]
end,
x = (x-1) * 128,
y = (y-1) * 128,
... | nilq/small-lua-stack | null |
-- Copyright 2017 Yousong Zhou <yszhou4tech@gmail.com>
-- Licensed to the public under the Apache License 2.0.
local ds = require "luci.dispatcher"
local ss = require("luci.model.shadowsocks-libev")
local m, s
m = Map("shadowsocks-libev",
translate("Remote Servers"),
translate("Definition of remote shadowsocks ser... | nilq/small-lua-stack | null |
local osmose = require 'osmose'
local et = osmose.Model 'FreshWaterGenerator'
----------
-- User parameters
----------
et.inputs = {
-- Heat exchangers
EX1_TIN = {default=15, unit='°C'},
EX1_TOUT = {default=61, unit='°C'},
EXEVA_T = {default=61, unit='°C'},
EXCOND_T = {default=59, unit... | nilq/small-lua-stack | null |
--@import see.event.Event
--@extends see.event.Event
--[[
For compatibility's sake only. Use ModemMessageEvent instead.
]]
function RednetMessageEvent:init(sender, message, protocol)
self:super(Event).init("rednet_message")
self.sender = sender
self.message = message
self.protocol = protocol
end | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- cookie.lua, v1.1: lib for cookies
-- This file is a part of Sailor project
-- Copyright (c) 2014 Etiene Dalcol <dalcol@etiene.net>
-- License: MIT
-- http://sailorproject.org
-------------------------------------------------------------... | nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- This is a class to draw the texture. <br>
-- Base Classes => DisplayObject, TextureDrawable, Resizable <br>
--------------------------------------------------------------------------------
local table = require("hp/lang/tab... | nilq/small-lua-stack | null |
--[[
Copyright (c) 2015 深圳市辉游科技有限公司.
--]]
local Parser = {}
Parser.parse = function(protos)
local maps = {}
for key, obj in pairs(protos) do
maps[key] = Parser.parseObject(obj)
end
return maps
end
Parser.parseObject = function(obj)
local proto = {}
local nestProtos = {}
local tags = {}
for ... | nilq/small-lua-stack | null |
function add_furnace_entity(name, loader, energy_usage)
return {
type = "assembling-machine",
name = name,
icon = "__Loader-Furnaces__/graphics/icon/loader-furnace/" .. name .. ".png",
icon_size = 32,
flags = {"placeable-player", "player-creation", "fast-replaceable-no-build-while-moving"},
mi... | nilq/small-lua-stack | null |
local adapter_api = ...
return function(proxy)
return
{
beep = {write=adapter_api.createWriter(proxy.beep, 0, "number", "number")},
running = adapter_api.create_toggle(proxy.isRunning, proxy.start, proxy.stop),
}
end
| nilq/small-lua-stack | null |
project "AcceptanceTests"
kind "ConsoleApp"
language "C"
files { "*.c" }
excludes { "performance_test.c" }
includedirs { "../include", "../../include", "../../src" }
libdirs { "../../src" }
links { "pthread", "InstrumentsLibrary" }
linkoptions { "-Wl,-rpath,../../src" }
targetname "run_tests"
co... | nilq/small-lua-stack | null |
local UiTheme = {}
local Log = require("api.Log")
local fs = require("util.fs")
local data = require("internal.data")
local asset_drawable = require("internal.draw.asset_drawable")
local assets = {}
local cache = {}
local holder_cache = {}
local theme_proxy = class.class("theme_proxy")
function theme_proxy:init(na... | nilq/small-lua-stack | null |
--[[ Lokasenna_GUI - Slider class
---- User parameters ----
(name, z, x, y, w, caption, min, max, steps, handles[, dir])
Required:
z Element depth, used for hiding and disabling layers. 1 is the highest.
x, y Coordinates of top-left corner
w Width of the slider track. Height is fixed.
caption Label shown... | nilq/small-lua-stack | null |
mysql = exports.mysql
reports = { }
function resourceStart(res)
for key, value in ipairs(exports.pool:getPoolElementsByType("player")) do
removeElementData(value, "report")
removeElementData(value, "reportadmin")
end
end
addEventHandler("onResourceStart", getResourceRootElement(), resourceStart)
fu... | nilq/small-lua-stack | null |
#!/usr/bin/env tarantool
local test = require("sqltester")
test:plan(10)
box.execute("DROP TABLE IF EXISTS t1")
box.execute("DROP TABLE IF EXISTS t2")
box.execute("CREATE TABLE t1 (s0 INT PRIMARY KEY, s1 INT UNIQUE, s2 INT);")
box.execute("CREATE TABLE t2 (s0 INT PRIMARY KEY, s1 INT UNIQUE, s2 INT);")
box.execute("I... | nilq/small-lua-stack | null |
local socket = require "socket"
local serpent = require "serpent"
local bencode = require "bencode"
local load = loadstring or load
local timeout = 0.001
local d = function(_) end
local serpent_pp = function(p) return function(x)
local serpent_opts = {maxlevel=8,maxnum=64,nocode=true}
p(serpent.block(x, ... | nilq/small-lua-stack | null |
ESX = nil
TriggerEvent("esx:getSharedObject", function(obj) ESX = obj end)
Hackers = {}
deep = {
kimlik = function(player, source)
if player ~= nil then
local dat = MySQL.Sync.fetchAll("SELECT firstname, lastname FROM users WHERE identifier = @identifier", {["@identifier"] = player.ide... | nilq/small-lua-stack | null |
package.path = string.format("../lua/?.lua;./?.lua;%s",package.path)
local compat = require("flatbuffers.compat")
local performBenchmarkTests = false
if #arg > 1 then
print("usage: lua luatests [benchmark]");
return
elseif #arg > 0 then
if(arg[1] == "benchmark") then
performBenchmarkTests = true
... | nilq/small-lua-stack | null |
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
--
-- This file is compatible with Lua 5.3
local class = require("class")
require("kaitaistruct")
local stringstream = require("string_stream")
local str_decode = require("string_decode")
--
-- See also: Source (https... | nilq/small-lua-stack | null |
-- Created by Elfansoer
--[[
Ability checklist (erase if done/checked):
- Scepter Upgrade
- Break behavior
- Linken/Reflect behavior
- Spell Immune/Invulnerable/Invisible behavior
- Illusion behavior
- Stolen behavior
]]
--------------------------------------------------------------------------------
modifier_medusa_st... | nilq/small-lua-stack | null |
local tracery = (function ()
local rng = Math.random
local setRng = (function --[[setRng]](newRng)
rng = newRng
end)
local TraceryNode = (function (parent, childIndex, settings)
self.errors = {}
if settings.raw == nil then
self.errors.push("Empty input for node")
settings.raw = ""
en... | nilq/small-lua-stack | null |
os.execute("luarocks install luacheck")
| nilq/small-lua-stack | null |
object_tangible_quest_murmur_1_exec1_personal_console = object_tangible_quest_shared_murmur_1_exec1_personal_console:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_murmur_1_exec1_personal_console, "object/tangible/quest/murmur_1_exec1_personal_console.iff")
| nilq/small-lua-stack | null |
--[[--------------------------------------------------------------------------
File name:
sv_netwrapper.lua
Author:
Mista-Tea ([IJWTB] Thomas)
License:
The MIT License (copy/modify/distribute freely!)
Changelog:
- March 9th, 2014: Created
- April 5th, 2014: Added to GitHub
- August 15t... | nilq/small-lua-stack | null |
local DbgPrint = GetLogging("NPCMaker")
DEFINE_BASECLASS( "lambda_npcmaker" )
ENT.Base = "lambda_npcmaker"
ENT.Type = "point"
local TS_YN_YES = 0
local TS_YN_NO = 1
local TS_YN_DONT_CARE = 2
local TS_DIST_NEAREST = 0
local TS_DIST_FARTHEST = 1
local TS_DIST_DONT_CARE = 2
function ENT:PreInitialize()
DbgPrint(s... | nilq/small-lua-stack | null |
kCystMaturationTime = 15
kAlienRegenerationCombatModifier = 0
kAlienHealRatePercentLimit = .16
kAlienHealRateOverLimitReduction = .2
kCystUnconnectedDamage = 10
kDrifterSupply = 10 -- from 15 to 10
kWhipSupply = 15
kCragSupply = 10
kShadeSupply = 10
kShiftSupply = 10
kMACSupply = 10
kArmorySupply = 10
kARCSupply = ... | nilq/small-lua-stack | null |
help(
[[
This module loads Rucio 1.6.6 into the environment. Rucio is a
distributed data movement system.
]])
whatis("Loads Rucio")
local version = "1.6.6"
local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/rucio/"..version
prepend_path("PATH", pathJoin(base, "bin"))
prepend_path("PYTHONPATH", pathJoin(bas... | nilq/small-lua-stack | null |
THB_LevelRaces = 0
THB_Parameters = 1
SCAR_ATITemplates =
{
THB_Template =
{
{
stringParam = THB_LevelRaces,
text =
{
colour = {1,1,1,1},
dropshadow = 1,
renderFlags = {"justifyLeft"},
LODs = {1,"HWClassicLevelFont",},
},
placement2D =
{
factorX = -1,
factorY = -1,
v... | nilq/small-lua-stack | null |
--*********************************************************************************************
-- ====================================================================
-- Corona SDK "Native Social Popup" Sample Code
-- ====================================================================
--
-- File: main.lua
--
-- Versi... | nilq/small-lua-stack | null |
Menu = {}
function Menu:SetData(key, value)
SendNUIMessage({
setter = {
key = key,
value = value
}
})
end
function Menu:Commit(type, payload, options)
SendNUIMessage({
commit = {
type = type,
payload = payload,
options = options
}
})
end
function Menu:Focus(value)
self.hasFocus = value
... | nilq/small-lua-stack | null |
local oldProcessMove = Onos.OnProcessMove
function Onos:OnProcessMove(input)
oldProcessMove(self, input)
if self:GetIsBoneShieldActive() then
-- we already know our active weapon is boneshield at this point
local boneshield = self:GetActiveWeapon()
local speedScalar = self:GetVelocity(... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Cloister of Gales
-- Mob: Ogmios
-- Involved in Quest: Carbuncle Debacle
-----------------------------------
require("scripts/globals/settings")
require("scripts/globals/keyitems")
-----------------------------------
function onMobDeath(mob, player, isKiller)
player:s... | nilq/small-lua-stack | null |
local scheme = {}
scheme.guile = {
command = {"guile"},
}
scheme.csi = {
command = {"csi"},
}
return scheme
| 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
]]
--------------------------------------------------------------------------------
storm_spirit_elect... | nilq/small-lua-stack | null |
bgm = {
credit_roll = {
gm3 = love.audio.newSource("res/bgm/tgm_credit_roll.mp3", "stream"),
},
pacer_test = love.audio.newSource("res/bgm/pacer_test.mp3", "stream"),
}
local current_bgm = nil
local bgm_locked = false
function switchBGM(sound, subsound)
if current_bgm ~= nil then
current_bgm:stop()
end
if b... | nilq/small-lua-stack | null |
-- Urho2D tile map example.
-- This sample demonstrates:
-- - Creating an isometric 2D scene with tile map
-- - Displaying the scene using the Renderer subsystem
-- - Handling keyboard to move a character and zoom 2D camera
-- - Generating physics shapes from the tmx file's objects
-- - Displaying debug ... | nilq/small-lua-stack | null |
imenilac1 = math.random(6) + 1;
imenilac2 = imenilac1 + math.random(4);
brojilac = math.random(imenilac1);
| nilq/small-lua-stack | null |
-- Drive from any seat by Devieth
-- Script for SAPP
drive_as_gunner = true -- Lets the gunner drive the hog (if there is no driver)
drive_as_passenger = false -- Lets the passender drive the hog (if there is no driver)
set_passenger_in_driver_seat = false-- Sets the passenger in the driver seat (if there is no d... | nilq/small-lua-stack | null |
function love.conf(t)
t.author = "James Johnston"
t.identity = "Pokem0n"
t.console = true
--t.screen = false
t.modules.physics = false
--t.version = "0.10.1"
end
| nilq/small-lua-stack | null |
--------------------------------------------------------------------------------
-- "IPAV" autodrive commands receiver
--------------------------------------------------------------------------------
-- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o.
-- Contains proprietary code. See license.txt for... | nilq/small-lua-stack | null |
CATEGORY_NAME = "Fun Round"
function ulx.kniferound( calling_ply, target_plys )
for i=1, #target_plys do
for _, v in ipairs( target_plys ) do
v:SpawnForRound(true)
v:Stripweapons()
v:give(weapon_ttt_knife)
end
ulx.fancyLogAdmin( calling_ply, true, "#A Started a special knife ... | nilq/small-lua-stack | null |
-- basic program to be an example to eload.lua
--
-- `fileenc encrypt 123456 prog.lua prog.elua`
--
for i = 1, 100 do
print("Hello ", i)
end | nilq/small-lua-stack | null |
Dntgtest_Special = {
FishKing = {
{
Probability = 30,
VisualScale = 1,
VisualAttach = 600,
CatchProbability = 10,
BoundingBox = 600,
LockLevel = 3,
MaxScore = 200,
TypeID = 1
},
{
Probability = 30,
VisualScale = 1,
VisualAttach = 600,
CatchProbability = 10,
BoundingBox = 60... | nilq/small-lua-stack | null |
--
-- Public domain
--
local socket = require("socket")
local ssl = require("ssl")
local function readfile(filename)
local fd = assert(io.open(filename))
local dh = fd:read("*a")
fd:close()
return dh
end
local function dhparam_cb(export, keylength)
print("---")
print("DH Callback")
print("Export", ex... | nilq/small-lua-stack | null |
return {'cito','citaat','citaatrecht','citadel','citatenboek','citatie','citeerdrift','citeertitel','citer','citeren','citerne','cito','citroen','citroenappel','citroenboom','citroengeel','citroengeranium','citroengras','citroenhout','citroenijs','citroenjenever','citroenkruid','citroenlimonade','citroenmelisse','citro... | nilq/small-lua-stack | null |
--- Adds a 25% (multiplicative) chance to fail when searching areas via
-- the automatic scan from a move.
-- @classmod MoveSearchAddChanceToFailListener
-- region imports
local class = require('classes/class')
local prototype = require('prototypes/prototype')
require('prototypes/listener')
local adventurers = requi... | nilq/small-lua-stack | null |
file_magic =
{
{ type = 'XLW', id = 1, category = 'Office Documents', msg = 'Excel spreadsheet subheader (MS Office)', rev = 1, group = 'office', magic = { { content = '| 09 08 10 00 00 06 05 00 |', offset = 512, }, }, },
{ type = 'POSIX_TAR', id = 2, category = 'Archive', msg = 'POSIX Tape Archive file', rev ... | nilq/small-lua-stack | null |
--Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | nilq/small-lua-stack | null |
target("lcurses")
set_kind("static")
add_deps(get_config("runtime"))
if is_plat("windows") and has_config("pdcurses") then
add_deps("pdcurses")
add_defines("XM_CONFIG_API_HAVE_CURSES", {public = true})
elseif has_config("curses") then
add_defines("XM_CONFIG_API_HAVE_CURSES", {pub... | nilq/small-lua-stack | null |
local Object = require("object")
local Action = require("action")
local Definition = Object:new();
function Definition:new (obj)
obj = Object.new( self, obj )
obj.tags = {}
obj.actions = {}
return obj
end
function Definition:action (name, f, tag)
if f == nil then error("Name and Function couldn't be n... | nilq/small-lua-stack | null |
--[[
Multicolor Awesome WM config 2.0
github.com/copycat-killer
--]]
-- {{{ Required libraries
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
local wibox = require("wibox")
local beautiful = require("beautiful")
local naught... | nilq/small-lua-stack | null |
-- (c) 2009-2011 John MacFarlane. Released under MIT license.
-- See the file LICENSE in the source for details.
--- Copyright © 2009-2011 John MacFarlane.
--
-- Released under the MIT license (see LICENSE in the source for details).
--
-- ## Description
--
-- Lunamark is a lua library for conversion of markdown... | nilq/small-lua-stack | null |
local Controller = require('charon.Controller')
local test = {}
local env = {}
env.field = function()
return 'localhost'
end
test.should_return_http_status_headers_and_body_nil = function()
local c = Controller.new{ _env = env, controllerName = 'index' }
local http, headers, body = c:redirect{ acti... | nilq/small-lua-stack | null |
for n,e in pairs({(function(e,...)local M="This file was obfuscated using PSU Obfuscator 4.0.A | https://www.psu.dev/ & discord.gg/psu";local H=e["eepRF"];local N=e[(600852055)];local p=e[(921427140)];local Z=e[(288658720)];local h=e['dYvOGsoT'];local Y=e[((#{}+543910516))];local T=e[(852822498)];local F=e[(271775793)]... | nilq/small-lua-stack | null |
return Def.Quad {
InitCommand = function(self)
self:xy(SCREEN_CENTER_X, SCREEN_CENTER_Y):zoomto(SCREEN_WIDTH, SCREEN_HEIGHT)
end,
OnCommand = function(self)
self:diffuse(color("0,0,0,1")):sleep(0.1):linear(0.1):diffusealpha(0)
end
}
| nilq/small-lua-stack | null |
Player = GameObject:extend()
SP = 0
function Player:new(area, x, y, opts)
Player.super.new(self, area, x, y, opts)
self.w, self.h = 12, 12
self.collider = self.area.world:newCircleCollider(self.x, self.y, self.w)
self.collider:setObject(self)
self.collider:setCollisionClass("Player")
self.r... | nilq/small-lua-stack | null |
local component = require("component")
local modem = component.modem
local event = require("event")
local ttf = require("tableToFile")
local settingsLocation = "/dns/data/DNS_SETTINGS.cfg"
local settings = ttf.load(settingsLocation)
local internal = {}
function internal.tableReply(rAddr, port, service, request, resp... | nilq/small-lua-stack | null |
--initialization
-- ensure imports are from file instead of cache
local function import(path)
package.loaded[path] = nil
local imported = require (path)
package.loaded[path] = nil
return imported
end
-- import dependencies
local botTools = ... | nilq/small-lua-stack | null |
--[[
Name: init.lua
For: SantosRP
By: TalosLife
]]--
AddCSLuaFile "cl_init.lua"
AddCSLuaFile "shared.lua"
include "shared.lua"
function ENT:Initialize()
self.m_vecEffectPos = Vector( -7.283790, -2.089086, -1.120362 )
self.m_tblShadowParams = {}
self:SetModel( "models/props_junk/garbage_bag001a.mdl" )
self:Phy... | nilq/small-lua-stack | null |
function wsRecvProcess(msg)
--msg='{"type":"SetConfig","data":{"has_lock":"1","open_stay_time":"4","lock_delay_time":"5","wifi_mode":"ap","wifi-ssid":"zy_em","wifi-pwd":"12345678","token":""}}'
ok,t = sjson.decode(msg)
if ok then
if t["type"]=="SetConfig" and t["data"]~=nil then
print(t... | nilq/small-lua-stack | null |
seven = 7;
str = "str";
seven_point_five = 7.5;
unrelated = 1;
unrelated2 = "two";
int_list = {144, 2, 3, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6};
double_list = {1.414, 3.14};
bool_list = {true, false};
sample_vector2f = {1.2, 3.4};
sample_vector2f_list = {{1.2, 3.4}, {5.6, 7.8}};
wrapper = {
another = {
sample_vect... | nilq/small-lua-stack | null |
local site = matches[1]
if string.ends(site, "'") then
site = site:sub(1, - 2)
end
selectString(site, 1)
if not string.starts(string.lower(site), "http") then
site = "http://" .. string.lower(site)
end
local command = string.format([[openWebPage("%s")]], site)
setUnderline(true)
setLink(command, "Open link in brows... | nilq/small-lua-stack | null |
local application = require('ext.application')
local cache = {}
local module = { cache = cache }
module.start = function()
cache.filter = hs.window.filter.new({ 'Safari', 'Google Chrome' })
cache.filter:subscribe({
hs.window.filter.windowFocused,
hs.window.filter.windowUnfocused
}, function(_, appName... | nilq/small-lua-stack | null |
local Core = unpack(select(2, ...))
local C = Core:GetModule("Config")
local CT = Core:GetModule("ChatTabs")
local EB = Core:GetModule("EditBox")
local M = Core:GetModule("Mover")
local MC = Core:GetModule("MainContainer")
local SMF = Core:GetModule("SlidingMessageFrame")
local AceConfig = Core.Libs.AceConfig
local Ac... | nilq/small-lua-stack | null |
function PreviousPosition()
-- Local variables of the object / Variáveis locais do objeto
local self = {}
local data
-- Global functions of the object / Funções Globais do objeto
function self.getF()
return data.f
end
function self.setF(f)
data.f = f
end
function self.getY()
return dat... | nilq/small-lua-stack | null |
-- This file supplies refrigerators
local S = homedecor.gettext
-- steel-textured fridge
homedecor.register("refrigerator_steel", {
mesh = "homedecor_refrigerator.obj",
tiles = { "homedecor_refrigerator_steel.png" },
inventory_image = "homedecor_refrigerator_steel_inv.png",
description = S("Refrigerator (stainles... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Upper Jeuno
-- NPC: Olgald
-- Type: Standard NPC
-- !pos -53.072 -1 103.380 244
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
function onTrade(player, npc, trade)
end
function onTrigger(player, npc)
if (player:get... | nilq/small-lua-stack | null |
local AddonName, AddonTable = ...
-- LFR is different loot to the other difficulties.
-- N/HC/M all share loot id's however.
AddonTable.brf = {
-- Oregorger
119448,
113874,
113879,
113880,
113882,
113884,
113878,
113883,
113881,
113876,
113875,
113877,
119194,
... | nilq/small-lua-stack | null |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
ESX.RegisterUsableItem('bread', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem('bread', 1)
TriggerClientEvent('esx_status:add', source, 'hunger', 200000)
TriggerClientEvent('esx_basicneeds:onEat',... | 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.