content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
--インフェルニティ・サプレッション --Scripted by mallu11 function c101102075.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(101102075,0)) e1:SetCategory(CATEGORY_DISABLE+CATEGORY_DAMAGE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_CHAINING) e1:SetCountLimit(1,1011020...
nilq/small-lua-stack
null
local tabler = require 'nelua.utils.tabler' local class = require 'nelua.utils.class' local sstream = require 'nelua.utils.sstream' local traits = require 'nelua.utils.traits' local console = require 'nelua.utils.console' local types = require 'nelua.types' local primtypes = require 'nelua.typedefs'.primtypes local Att...
nilq/small-lua-stack
null
--[[ © 2013 GmodLive private project do not share without permission of its author (Andrew Mensky vk.com/men232). --]] local greenCode = greenCode; local math = math; local PLUGIN = PLUGIN or greenCode.plugin:Loader(); ECONOMIC_TAX = 0; PLUGIN.stored = PLUGIN.stored or {}; function PLUGIN:GetStatus()...
nilq/small-lua-stack
null
local Ans = select(2, ...); local Utils = Ans.Utils; local Config = Ans.Config; local EventManager = Ans.EventManager; EventManager:On("BAG_UPDATE_DELAYED", function() if (UnitIsDead("player") or InCombatLockdown()) then return; end if (AnsDestroyWindow and Config.Crafting().a...
nilq/small-lua-stack
null
---------------------------------------------------------------------------------- --- Total RP 3 --- Prat plugin --- --------------------------------------------------------------------------- --- Copyright 2014-2019 Morgane "Ellypse" Parize <ellypse@totalrp3.info> @EllypseCelwe --- --- Licensed under the Apache Licen...
nilq/small-lua-stack
null
local EventEmitter = require('colyseus.events').EventEmitter local protocol = require('colyseus.protocol') Room = {} Room.__index = Room function Room.create(client, name) local room = EventEmitter:new({ id = nil, state = {} }) setmetatable(room, Room) room:init(client, name) return room end functi...
nilq/small-lua-stack
null
-- -- Author: wangdi -- Date: 2016-02-09 00:13:55 -- local GameManager = {} buffVector = {} enemyVector = {} local buffPanel = nil local attribution = { specialWaveNum = 10, maxBuffNum = 5, maxBulletShootNum = 10, maxBulletSplitNum = 10, moreEnemiesDuration = 10, specialBulletDuration = 10, freeBulletDuratio...
nilq/small-lua-stack
null
local Root = script:FindFirstAncestor('MazeGeneratorPlugin') local Plugin = Root.Plugin local Roact = require(Root:WaitForChild('Roact')) local M = require(Root.M) local UICorner = require(Plugin.Components.UICorner) local e = Roact.createElement local materialIconsAsset = 'rbxassetid://3926305904' local materialIco...
nilq/small-lua-stack
null
GrailDatabasePlayer = { ["controlCompletedQuests"] = { }, ["spellsCast"] = { [27] = 262144, [2] = 1024, [4605] = 2, [1770] = 1, [2130] = 262144, [2170] = 4096, [24] = 4096, [5963] = 16384, [5601] = 2048, [95] = 8, [159] = 671088640, [1988] = 402653184, [3716] = 512, [82] = 262144, [222...
nilq/small-lua-stack
null
--[[ ******************************************************* * LASP - LUA AREA SCRIPTING PROJECT * * License * ******************************************************* This software is provided as free and open source by the staff of The Lua Area Scripting Pr...
nilq/small-lua-stack
null
local MainMenu = {} local crystalW = 226; local crystalH = 512; local maskExpansionTime = 350; local popInTime = 550; function MainMenu:new(rootGroup,contentGroup, context, returningFromGame) local newMainMenu = {}; setmetatable(newMainMenu, self); self.__index = self; newMainMen...
nilq/small-lua-stack
null
cf.suffuse = function(pos) minetest.add_particlespawner({ amount = 1, time = 0.1, minpos = {x=pos.x-0.2, y=pos.y-0.4, z=pos.z-0.2}, maxpos = {x=pos.x+0.2, y=pos.y-0.4, z=pos.z+0.2}, minvel = {x=0, y=0, z=0}, maxvel = {x=0, y=0.01, z=0}, minacc = {x=0, y=0, z=0...
nilq/small-lua-stack
null
--[[ libs --]] --[[-- 载入一个模块 import() 与 require() 功能相同,但具有一定程度的自动化特性。 假设我们有如下的目录结构: ~~~ app/ app/classes/ app/classes/MyClass.lua app/classes/MyClassBase.lua app/classes/data/Data1.lua app/classes/data/Data2.lua ~~~ MyClass 中需要载入 MyClassBase 和 MyClassData。如果用 require(),MyClass 内的代码如下: ~~~ lua local MyClass...
nilq/small-lua-stack
null
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmFicha_HdA2_svg() local obj = GUI.fromHandle(_obj_newOb...
nilq/small-lua-stack
null
if not MusicManager.playlist then return end CustomSoundManager:CreateSourceHook("BeardLibCustomMenuTrackFix", function(name, source) if name == "HUDLootScreen" or name == "cleanup" then source:pre_hook("FixCustomTrack", function(event) managers.music:attempt_play(nil, event) end) end end) funct...
nilq/small-lua-stack
null
local CreateClass = LibStub("Poncho-1.0"); TrackerHelperFrame = CreateClass("Frame", "TrackerHelperFrame", nil, nil, TrackerHelperBase); local Frame = TrackerHelperFrame; function Frame:OnCreate() TrackerHelperBase.OnCreate(self); local setWidth = self.SetWidth; function self:SetWidth(width) setW...
nilq/small-lua-stack
null
CUSTOM_GOLD_PER_TICK = 2 CUSTOM_GOLD_TICK_TIME = 0.5 Gold = Gold or class({}) Events:Register("activate", function () GameRules:SetGoldPerTick(0) GameRules:SetGoldTickTime(0) GameRules:SetStartingGold(0) GameRules:SetUseBaseGoldBountyOnHeroes(true) end) function Gold:UpdatePlayerGold(unitvar) local playerId = U...
nilq/small-lua-stack
null
-- -- Created by IntelliJ IDEA. -- User: nander -- Date: 01/03/2019 -- Time: 20:57 -- To change this template use File | Settings | File Templates. -- local renderTrain = function(from, to, travelPercentage) local x = (from.x * (1 - travelPercentage) + to.x * (travelPercentage)) local y = (from.y * (1 - travel...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Main Server Loader -------------------------------------------------------------------------------- local serverTab = "Main" setDefaultTab(serverTab) Server = {} Server.Extensions = {} ---------------------------------------------------...
nilq/small-lua-stack
null
local addonName, ns, _ = ... local BNET_PREFIX = "(OQ)" -- GLOBALS: BNFeaturesEnabledAndConnected, BNConnected, BNGetInfo, BNGetNumFriends, BNGetFriendInfo, BNSetCustomMessage, BNSendFriendInvite, BNGetFriendInfoByID function ns.GetBnetFriendInfo(searchBattleTag) searchBattleTag = searchBattleTag:lower() for i = 1...
nilq/small-lua-stack
null
#!/usr/bin/env tarantool local fio = require('fio') local log = require('log') local rpc = require('cartridge.rpc') local checks = require('checks') local yaml = require('yaml') local helpers = require('test.helper') local t = require('luatest') local g = t.group() function g.setup() g.server = t.Server:new({ ...
nilq/small-lua-stack
null
local gift = { { Name = "封印", Art = "war3mapImported\\icon_pas_Slow_Grey.blp", _remarks = "[奇]字技,特别神奇且怪异的技能|n当前正处于封印状态", _attr = nil, }, { Name = "无我", Art = "war3mapImported\\icon_pas_Arcane_MindMastery.blp", _attr = { sight = "+500", ...
nilq/small-lua-stack
null
emu.keypost('RUN"CAS:"\n')
nilq/small-lua-stack
null
require("torch") require("utils") local tds = require("tds") local class = require("class") local comp = require 'pl.comprehension' . new() local QPlayer = class("QPlayer") function QPlayer:__init(opt) opt = opt or {} self.Q = tds.Hash({}) self.epsLearning = tonumber(opt.epsLearning) or 0.1 self.epsEvalu...
nilq/small-lua-stack
null
local morsealphabet = { ["a"] = ".-", ["b"] = "-...", ["c"] = "-.-.", ["d"] = "-..", ["e"] = ".", ["f"] = "..-.", ["g"] = "--.", ["h"] = "....", ["i"] = "..", ["j"] = ".---", ["k"] = "-.-", ["l"] = ".-..", ["m"] = "--", ["n"] = "-.", ["o"] = "---", ["p"] = ".--.", ["q"] = "--.-", ["r"] = ".-.", ["s"]...
nilq/small-lua-stack
null
local _inspect_ = require "inspect" local _M = {} function _M.url_encode(s) s = string.gsub(s, "([^%w%.%- ])", function(c) return string.format("%%%02X", string.byte(c)) end) return string.gsub(s, " ", "+") end function _M.url_decode(s) s = string.gsub(s, '%%(%x%x)', function(h) return string.char(tonumber(h...
nilq/small-lua-stack
null
local Prop = {} Prop.Name = "Nº731 Bairro Capitalista" Prop.Cat = "House" Prop.Price = 340 Prop.Doors = { Vector(260, -7901, -3), Vector(73, -7563, -2), Vector(110, -7767, -3), } GM.Property:Register( Prop )
nilq/small-lua-stack
null
function update() print("updated!") end
nilq/small-lua-stack
null
local OnEvents = require("optpack.core.loader.event") local OnFileTypes = {} OnFileTypes.__index = OnFileTypes function OnFileTypes.set(plugin_name, group_name, filetypes) local events = vim.tbl_map(function(filetype) return { "FileType", filetype } end, filetypes) OnEvents.set(plugin_name, group_name, even...
nilq/small-lua-stack
null
require "date_format_europe"; require "serial_api_clock" require "serial_api_open_weather" require "blink" require "scheduler" require "credentials" require "ram_watchdog" function scmd.GFR() collectgarbage() sapi.send("RAM: " .. tostring(node.heap() / 1000)) end local gtc = { last_weather_sync_sec = -1, ...
nilq/small-lua-stack
null
-------------------------------------------------- -- SneakerIdle -------------------------- -- created: Mikko Mononen 21-6-2006 local Behavior = CreateAIBehavior("Cover2IdleST","HBaseIdle", { Constructor = function(self,entity) --AI.LogEvent(entity:GetName().." Cover2Idle constructor"); entity:InitAIRelaxed...
nilq/small-lua-stack
null
--[[for i, prototype in pairs (data.raw["electric-pole"]) do if (prototype.maximum_wire_distance >= 30 and prototype.supply_area_distance <= 5) then prototype.max_health = 19999 end end for i, prototype in pairs (data.raw["straight-rail"]) do prototype.max_health = 19999 end for i, prot...
nilq/small-lua-stack
null
local backgroundColor = Color(0, 0, 0, 66) local PANEL = {} AccessorFunc(PANEL, "maxWidth", "MaxWidth", FORCE_NUMBER) function PANEL:Init() self:SetWide(180) self:Dock(LEFT) self.maxWidth = ScrW() * 0.2 end function PANEL:Paint(width, height) surface.SetDrawColor(backgroundColor) surface.DrawRect(0, 0, width...
nilq/small-lua-stack
null
function execute(sender, commandName, ...) Player(sender):addScriptOnce("cmd/disttocore.lua") return 0, "", "" end function getDescription() return "Display distance to galaxy core from current sector." end function getHelp() return "Display distance to galaxy core from current sector. Usage...
nilq/small-lua-stack
null
F = {} local kutils = require ("kong.plugins.keystone.utils") local unistd = require "posix.unistd" local Chars = {} for Loop = 0, 255 do Chars[Loop+1] = string.char(Loop) end local String = table.concat(Chars) local Built = {['.'] = Chars} local AddLookup = function(CharSet) local Substitute = string.gsub(St...
nilq/small-lua-stack
null
package = "blunty666.nodes.gui" imports = "blunty666.nodes.MasterNode" class = "ScreenHandler" local mainTerminalEvents = { char = true, key = true, key_up = true, mouse_click = true, mouse_drag = true, mouse_scroll = true, mouse_up = true, paste = true, term_resize = true, terminate = true, } variables =...
nilq/small-lua-stack
null
local json = require("json") local path = require("path") local patterns = require("sg.patterns") local recognizers = require("sg.recognizers") local shared = loadfile("shared.lua")() local util = loadfile("util.lua")() local indexer = "sourcegraph/lsif-typescript:autoindex" local typescript_nmusl_command = "N_NODE_...
nilq/small-lua-stack
null
local cbe = CraftBagExtended local util = cbe.utility local class = cbe.classes local debug = false class.TransferQueue = ZO_Object:Subclass() function class.TransferQueue:New(...) local controller = ZO_Object.New(self) controller:Initialize(...) return controller end fu...
nilq/small-lua-stack
null
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by Dylan Malandain. --- DateTime: 27/02/2019 12:49 --- ---@type table UIProgressBarItem = setmetatable({}, UIProgressBarItem) ---@type table UIProgressBarItem.__index = UIProgressBarItem ---@type table UIProgressBarItem.__call = function() retu...
nilq/small-lua-stack
null
-- -- Copyright (C) 2022 Masatoshi Fukunaga -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, ...
nilq/small-lua-stack
null
function SotSActionUI(iPlayerID, iUnitID, PlotX, PlotY) -- Core UI code of the Statue of the Seven local pPlayer = Players[iPlayerID]; local pCity = Cities.GetCityInPlot(PlotX, PlotY); local SotSRemainingHP = pPlayer:GetProperty("SotSHealCapability"); if SotSRemainingHP then if (SotSRemainingHP >0 and pCity ~= n...
nilq/small-lua-stack
null
---------------------------------------------------------------------------------------------------- -- localized Spanish (database module) strings -- --get the add-on engine local AddOnName = ...; --Spanish or Latin America Spanish local L = LibStub("AceLocale-3.0"):NewLocale(AddOnName, "esES") if not L then L = L...
nilq/small-lua-stack
null
local url_count = 0 local tries = 0 wget.callbacks.download_child_p = function(urlpos, parent, depth, start_url_parsed, iri, verdict, reason) local url = urlpos["url"]["url"] if verdict and string.match(url, "webcache%.googleusercontent%.com") then return false elseif verdict and string.match(url, "data:im...
nilq/small-lua-stack
null
-- Copyright (c) 2021 Kirazy -- Part of Artisanal Reskins: Bob's Mods -- -- See LICENSE in the project directory for license information. -- Check to see if reskinning needs to be done. if not (reskins.bobs and reskins.bobs.triggers.logistics.entities) then return end if reskins.lib.setting("bobmods-logistics-trains")...
nilq/small-lua-stack
null
return {'abactis','abacus','abandon','abandonnement','abandonneren','abattoir','abaja','abaci','abactissen','abandonneert','abattoirs','abandonneerde','abajas'}
nilq/small-lua-stack
null
--[[ This sets up the LeaderStats and non-LeaderStats data that is relayed to the players. ]] local ReplicatedPlayerData = require(game.ReplicatedStorage.ReplicatedPlayerData) local PlayerData = require(game.ServerScriptService.PlayerData) local PlayerUtils = require(game.ServerScriptService.PlayerUtils) local Utils = ...
nilq/small-lua-stack
null
local TextHandler = require("api.gui.TextHandler") local Ui = require("api.Ui") local Gui = require("api.Gui") local IInput = require("api.gui.IInput") local IUiLayer = require("api.gui.IUiLayer") local InputHandler = require("api.gui.InputHandler") local UiTextEditor = require("mod.ui_console.api.gui.UiTextEditor") l...
nilq/small-lua-stack
null
local cmp = require("cmp") local luasnip = require("luasnip") local check_back_space = function() local col = vim.fn.col(".") - 1 return col == 0 or vim.fn.getline("."):sub(col, col):match("%s") end local t = function(str) return vim.api.nvim_replace_termcodes(str, true, true, true) end local function co...
nilq/small-lua-stack
null
--[[ Project: SA Memory (Available from https://blast.hk/) Developers: LUCHARE, FYP Special thanks: plugin-sdk (https://github.com/DK22Pac/plugin-sdk) for the structures and addresses. Copyright (c) 2018 BlastHack. ]] local shared = require 'SAMemory.shared' shared.require 'vector3d' shared.ffi.cdef[[ typed...
nilq/small-lua-stack
null
-- Valid town id list app.Custom.ValidTownList = {1,2,3,4} -- Valid vocation id list app.Custom.ValidVocationList = {1, 2, 3, 4} -- New character values app.Custom.NewCharacterValues = { [1] = { -- no voc (vocation ID -1) level = 1, experience = 0, health = 150, healthmax = 150, mana = 0, ...
nilq/small-lua-stack
null
configuration "macosx" -- OS X frameworks need the extension to be handled properly links { "Cocoa.framework", "OpenGL.framework", "IOKit.framework" } defines { "PLATFORM_MAC" } configuration "windows" defines { "PLATFORM_WINDOWS" } debugdir "$(SolutionDir)" --> Set working dir for VS to root fo...
nilq/small-lua-stack
null
local Board = require "src.board" local Sidebar = require "src.ui.sidebar" local Settings = require "src.settings" local class = require "lib.middleclass" --- @class Game --- @field new fun(self: Game) local Game = class("Game") function Game:initialize() self.start_time = 0 self.time = 0 self.level = 0 self...
nilq/small-lua-stack
null
-- Copyright (C) 2017-2018 by chrono -- modify response headers ngx.header["Host-Name"] = ngx.var.hostname -- we should set content-length for keep alive -- send headers must before say or print ngx.send_headers() assert(ngx.headers_sent) -- send response body data ngx.say("openresty test req params\n") ngx.say("n...
nilq/small-lua-stack
null
isMinigolfGamemodeActive = function() local gm = gmod.GetGamemode() return gm and gm.IsMinigolf == true end hook.Add("OnGamemodeLoaded", "Minigolf.OnlyLoadDevKitAfterGamemode", function() if(isMinigolfGamemodeActive())then print("Minigolf DevKit not loading: Minigolf gamemode is active!") return e...
nilq/small-lua-stack
null
-- Constructors -- Patterns have the following, optional fields: -- -- - type: the pattern type. ~1 to 1 correspondance with the pattern constructors -- described in the LPeg documentation. -- - pattern: the one subpattern held by the pattern, like most captures, or -- `#pt`, `-pt` and `pt^n`. -- - aux: any o...
nilq/small-lua-stack
null
local config = require("aerial.config") describe("config", function() before_each(function() pcall(vim.api.nvim_del_var, "aerial") end) it("falls back to default options", function() assert.equals(config.close_behavior, "auto") end) it("reads options from g:aerial dict var", function() vim.g.ae...
nilq/small-lua-stack
null
local M = {} function M.get(cp) return { NeogitBranch = { fg = cp.pink }, NeogitRemote = { fg = cp.pink }, NeogitHunkHeader = { bg = cp.blue, fg = cp.white }, NeogitHunkHeaderHighlight = { bg = cp.black4, fg = cp.blue }, NeogitDiffContextHighlight = { bg = cp.gray2, fg = cp.green }, NeogitDiffDeleteHighli...
nilq/small-lua-stack
null
local playsession = { {"Olekplane1", {71483}}, {"vad7ik", {9561}}, {"Jemlinski", {663}}, {"kajkaj123", {2975}}, {"dr_evil", {32283}}, {"Gerkiz", {20383}}, {"Diangeres", {19556}} } return playsession
nilq/small-lua-stack
null
function switch(c) local swtbl = { casevar = c, caseof = function (self, code) local f if (self.casevar) then f = code[self.casevar] or code.default else f = code.missing or code.default end if f then if type(f)=="function" then return f(self.cas...
nilq/small-lua-stack
null
local self = ... local ud = u(self) local p = ud.parent return ud.shown and (not p or m(p, 'IsVisible'))
nilq/small-lua-stack
null
-------------------------------------------------- -- DIRETIDE Roshan AI -------------------------------------------------- -- Author: zimberzimber -- Date: 30.8.2017 if imba_roshan_ai_diretide == nil then imba_roshan_ai_diretide = class({}) end LinkLuaModifier("modifier_imba_roshan_ai_diretide", "components/modifi...
nilq/small-lua-stack
null
local csv = require("csv") local inspect = require("inspect") local argparse = require("argparse") local sia = require("sia") local parser = argparse("download_sia_vac_all", "Download all VAC of french AD from SIA.") parser:option("-i --input", "Input file (France.cup).", "France.cup") local args = parser:parse...
nilq/small-lua-stack
null
return Def.ActorFrame { Def.Quad { InitCommand = function(self) self :xy(SCREEN_CENTER_X, SCREEN_TOP) :vertalign(bottom) :diffuse(color("#000000")) :zoomto(SCREEN_WIDTH, SCREEN_HEIGHT) end, BeginCommand = function(self) self :zwrite(1) :z(1) :blend("BlendMode_NoEffect") end, ...
nilq/small-lua-stack
null
return {'username','usernames'}
nilq/small-lua-stack
null
--[[ Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local translate = {} local mattata = require('mattata') local https = require('ssl.https') local url = require('socket.url') local json = require('dkjson') function translate:init...
nilq/small-lua-stack
null
local BTConnection = bt.Class("BTConnection") bt.BTConnection = BTConnection function BTConnection:ctor() self.id = 0 self.name = "BTConnection" self.sourceNode = nil self.targetNode = nil self.isDisabled = false self.status = bt.Status.Resting end function BTConnection:setActive(flag) if ...
nilq/small-lua-stack
null
local spy = require "luassert.spy" local lspconfig = require "lspconfig" local configs = require "lspconfig.configs" local servers = require "nvim-lsp-installer.servers" describe("automatic_installation_exclude", function() it( "should install servers set up via lspconfig", async_test(function() ...
nilq/small-lua-stack
null
local ADJUST_SOUND = SoundDuration("npc/metropolice/pain1.wav") > 0 and "" or "../../hl2/sound/" -- Emits sounds one after the other from an entity. function nut.util.emitQueuedSounds( entity, sounds, delay, spacing, volume, pitch ) -- Let there be a delay before any sound is played. delay = delay or 0 spac...
nilq/small-lua-stack
null
msg_min = "minuta" msg_hour = "časa"
nilq/small-lua-stack
null
require 'astronauta.keymap' local nnoremap = vim.keymap.nnoremap nnoremap { '<F5>', '<Cmd>update|mkview|edit|TSBufEnable highlight<Cr>' }
nilq/small-lua-stack
null
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by Administrator. --- DateTime: 2021/2/23 17:51 --- extConf = {} extConf.placeTextWithPlayerJoining="KspTooi" extConf.placeTextWithPlayerSpawn = { text1= "欢迎加入KspTooi服务器", text2= "欢迎", text3= "回家" } --显示版本 extConf.displayVersion="开发版本...
nilq/small-lua-stack
null
local wezterm = require 'wezterm'; return { launch_menu = { { args = {"top"}, }, { args = {"source", "/Users/gongyu/Workspace/python-venvs/env-zeus/bin/activate", ";", "nvim"}, }, }, enable_scroll_bar = true, -- How many lines of scrollback you want to retain per tab scrollback_...
nilq/small-lua-stack
null
local luasnip = require "luasnip" local s = luasnip.snippet local sn = luasnip.snippet_node local t = luasnip.text_node local i = luasnip.insert_node local c = luasnip.choice_node luasnip.snippets = { all = {}, lua = { s("module", { t "local M = {}", t { "", "", "" }, t "function M.", ...
nilq/small-lua-stack
null
return { ["com.github.thetaepsilon.minetest.libmt_node_network"] = { search_dirs = { "nodenetwork", }, }, }
nilq/small-lua-stack
null
describe('contains', function() it('errors when its parent errors', function() expect(Rx.Observable.throw():contains(1)).to.produce.error() end) it('returns false if the source Observable produces no values', function() expect(Rx.Observable.empty():contains(3)).to.produce(false) end) it('returns tru...
nilq/small-lua-stack
null
--[[------------------------------------------------------------------------- WARDEN v2.1.0 by: Silhouhat (http://steamcommunity.com/id/Silhouhat/) ---------------------------------------------------------------------------]] WARDEN = WARDEN or {} WARDEN.Config = WARDEN.Config or {} WARDEN.API_KEY = WARDEN.API_KEY...
nilq/small-lua-stack
null
local __exports = LibStub:NewLibrary("ovale/Spells", 80000) if not __exports then return end local __class = LibStub:GetLibrary("tslib").newClass local __Debug = LibStub:GetLibrary("ovale/Debug") local OvaleDebug = __Debug.OvaleDebug local __Profiler = LibStub:GetLibrary("ovale/Profiler") local OvaleProfiler = __Profil...
nilq/small-lua-stack
null
local events = require("__flib__.event") local tables = require("__flib__.table") local MAX_KEEP = 60 * 60 * 60 * 24 -- ticks * seconds * minutes * hours local function clear_older_force(force_index, older_than) -- local old_size = table_size(global.history) global.history = tables.filter(global.history, funct...
nilq/small-lua-stack
null
require("marks").setup()
nilq/small-lua-stack
null
C_ChallengeMode = {} ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_ChallengeMode.CanUseKeystoneInCurrentMap) ---@param itemLocation ItemLocationMixin ---@return boolean canUse function C_ChallengeMode.CanUseKeystoneInCurrentMap(itemLocation) end ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_Ch...
nilq/small-lua-stack
null
--[[ TheNexusAvenger Registers commands on the client. --]] local Registry = require(script.Parent:WaitForChild("Common"):WaitForChild("Registry")) local ClientRegistry = Registry:Extend() ClientRegistry:SetClassName("ClientRegistry") --[[ Creates the client registry. --]] function ClientRegistry:__new(Cmdr,Autho...
nilq/small-lua-stack
null
local cmds = require('commands') local getopt = require('getopt') local lib14a = require('read14a') local utils = require('utils') local pre = require('precalc') local toys = require('default_toys') local lsh = bit32.lshift local rsh = bit32.rshift local bor = bit32.bor local band = bit32.band example =[[ script run...
nilq/small-lua-stack
null
--[[ flyboy By Haxmeister ]] flyboy.UI = flyboy.UI or {} flyboy.UI.Display = flyboy.UI.Display or {} flyboy.UI.NotifyTimer = Timer() flyboy.UI.Init = function() if (flyboy.UI.NotifyHolder==nil) then flyboy.UI.NotifyHolder = iup.vbox { margin="8x4", expand="YES", alignment="ALEFT" } f...
nilq/small-lua-stack
null
-- vscode theme configuration vim.g.vscode_style = "dark" vim.g.vscode_italic_comment = 1 -- vim.g.vscode_transparent = 1
nilq/small-lua-stack
null
teal_item = { codename = "excalibur", name = "Excalibur", description = "Legendary Sword", level = 1, icon = ":/game/items/swords/broadsword_fire", map_offset = { x = 12, y = -3 }, components = { damage_modifier = { attack = { fir...
nilq/small-lua-stack
null
function new_world() local w={} w.score=0 w.spawn_t=2000 w.spawn_dt=1000 w.ball={x=309/2-12, y=96, dx=0, dy=0} set_ball_image(w) w.ball.lethalt=0 w.bonuses={} w.plrbonus=0 if debug then w.plrbonus=10 end w.shifters={} w.spawners={} for i=1,5 do local ...
nilq/small-lua-stack
null
-- ref: -- https://www.lua.org/pil/1.2.html -- https://love2d.org/wiki/love.graphics leftx = 0 lefty = 0 rightx = love.graphics.getWidth() - 20 righty = 0 movement = 10 -- ref: -- https://love2d.org/wiki/love.load -- https://love2d.org/wiki/love.graphics function love.load() background = love.graphics.newImage(...
nilq/small-lua-stack
null
name = "Balloons 2 Wes" description = [[ EN: Wes character remake made by Ophaneom. Customizable mod. - STATUS: * Maximum life increased from 113 to 150. * Maximum hunger increased from 113 to 150. * Hunger multiplier changed from 1.25x to 1x. * Damage multiplier changed from 0.75x to 1x. - BALLOONS: * New craft...
nilq/small-lua-stack
null
function Teleporting_onUse1 (pUnit, Event, pMisc) pMisc:Teleport (0,1934.19,2124.14,141.566) end RegisterGameObjectEvent (5000000, 4, "Teleporting_onUse1")
nilq/small-lua-stack
null
--ヴァンパイア・デザイア --Script by nekrozar function c100408008.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,100408008+EFFECT_COUNT_CODE_OATH) e1:SetTarget(c100408008.target) e1:SetOp...
nilq/small-lua-stack
null
LinkLuaModifier("modifier_ardm", "modifiers/modifier_ardm.lua", LUA_MODIFIER_MOTION_NONE ) modifier_ardm = class(ModifierBaseClass) -- START IF SERVER if IsServer() then function modifier_ardm:ReplaceHero () -- this is not the total gold, this is only the gold on the hero... local parent = self:GetParent() loc...
nilq/small-lua-stack
null
if SERVER then AddCSLuaFile("shared.lua") end if CLIENT then SWEP.ViewModelFlip = false SWEP.PrintName = "FAMAS" SWEP.IconLetter = "v" SWEP.Slot = 4 SWEP.Slotpos = 2 end SWEP.HoldType = "ar2" SWEP.Base = "rad_base" SWEP.ViewModel = "models/weapons/v_rif_famas.mdl" SWEP.WorldModel = "models/weapons/w_r...
nilq/small-lua-stack
null
----------------------------------- -- Area: Alzadaal Undersea Ruins -- NPC: ??? (Spawn Armed Gears(ZNM T3)) -- !pos -42 -4 -169 72 ----------------------------------- local ID = require("scripts/zones/Alzadaal_Undersea_Ruins/IDs") require("scripts/globals/npc_util") ----------------------------------- function onTra...
nilq/small-lua-stack
null
object_tangible_saga_system_rewards_frn_fireplace = object_tangible_saga_system_rewards_shared_frn_fireplace:new { } ObjectTemplates:addTemplate(object_tangible_saga_system_rewards_frn_fireplace, "object/tangible/saga_system/rewards/frn_fireplace.iff")
nilq/small-lua-stack
null
local moduleName = "mcunode" local M = {} _G[moduleName] = M local handlers = {} local files = {} --plugin function ls() local l = file.list() for k,v in pairs(l) do print("name:"..k..", size:"..v) end end function cat(filename) local line file.open(filename, "r") while 1 do line = file.readline() if li...
nilq/small-lua-stack
null
cloud2 = class:new() function cloud2:init(y) self.x = math.random()*100 self.y = 120+y self.i = math.random(2) self.speed = -500 end function cloud2:update(dt) self.y = self.y + self.speed*dt if self.y < -20 then self.y = self.y+140 self.x = math.random()*100 self.i = math.random(2) end...
nilq/small-lua-stack
null
local tokens_key = KEYS[1] local timestamp_key = KEYS[2] --redis.log(redis.LOG_WARNING, "tokens_key " .. tokens_key) local rate = tonumber(ARGV[1]) local capacity = tonumber(ARGV[2]) local now = tonumber(ARGV[3]) local requested = tonumber(ARGV[4]) local fill_time = capacity/rate local ttl = math.floor(fill_time*2) ...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- Class used by the Server entity to control communication between components. -- -- The communication channel should be configured using the three ports: -- - com_port: Used to broadcast message to Client entities. -- - set_port: Used ...
nilq/small-lua-stack
null
return { summary = 'Enable or disable the Joint.', description = 'Enable or disable the Joint.', arguments = { { name = 'enabled', type = 'boolean', description = 'Whether the Joint should be enabled.' } }, returns = {} }
nilq/small-lua-stack
null
-- Version Checking down here, better don't touch this local CurrentVersion = '2.3.1' local GithubResourceName = 'DeathScreen' PerformHttpRequest('https://raw.githubusercontent.com/Flatracer/FiveM_Resources/master/' .. GithubResourceName .. '/VERSION', function(Error, NewestVersion, Header) PerformHttpRequest('h...
nilq/small-lua-stack
null