content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
--[[ редактор окон нужен для удобства их создания и редактирования. возможности: последовательное создание нескольких окон или кнопок с использованием единого набора стилей (темы) ]] function InitWindowEditor() assert(CreateXML~=nil, "ERROR: InitWindowEditor - CreateXML() - is nil") WindowEdito...
nilq/small-lua-stack
null
AddCSLuaFile() if not LIB_APERTURE then error("Error: Aperture lib does not exist!!!") return end -- ================================ PIPES DATA ============================ local FilterRoutesColor = { [1] = Color(255, 0, 0), [2] = Color(0, 255, 0), [3] = Color(0, 0, 255), [4] = Color(255, 255, 0), [5] = Color(...
nilq/small-lua-stack
null
local h = require 'controller_helpers' local MiddlewareSpec = require 'models.middleware_spec' return { index = function(params) MiddlewareSpec:ensure_defaults_exist() h.send_json(MiddlewareSpec:all()) end, show = function(params) h.send_json(MiddlewareSpec:find(params.id)) end, create = func...
nilq/small-lua-stack
null
local Class = require 'lib/middleclass' local Level = Class('Level') local Player = require 'player' local Wolf = require 'wolf' local Sheep = require 'sheep' local Cabbage = require 'cabbage' local overlay = require 'overlay' local MAX_LEVEL_SIZE = 16 local TILE_IMAGE = love.graphics.newImage('asset/tile...
nilq/small-lua-stack
null
local Prop = {} Prop.Name = "Furniture Gallery" Prop.Government = true Prop.Doors = { Vector( 2236, 2030, 596.2509765625 ), Vector( 2236, 1938, 596.2509765625 ), } GM.Property:Register( Prop )
nilq/small-lua-stack
null
if SERVER then AddCSLuaFile("scoreboard/scoreboard.lua") AddCSLuaFile("scoreboard/team_panel.lua") AddCSLuaFile("scoreboard/player_panel.lua") AddCSLuaFile("scoreboard/connecting_team.lua") include("scoreboard/connecting_team.lua") include("scoreboard/rating.lua") AddCSLuaFile("scoreboard/rating.lua") else inc...
nilq/small-lua-stack
null
return { version = "1.1", luaversion = "5.1", orientation = "orthogonal", width = 100, height = 100, tilewidth = 32, tileheight = 32, properties = {}, tilesets = { { name = "tilemap2", firstgid = 1, tilewidth = 32, tileheight = 32, spacing = 0, margin = 0, ...
nilq/small-lua-stack
null
ITEM.name = "Case" ITEM.desc = "A Case." ITEM.model = "models/props_c17/BriefCase001a.mdl" ITEM.width = 2 ITEM.height = 2 ITEM.invWidth = 3 ITEM.invHeight = 3 ITEM.price = 500
nilq/small-lua-stack
null
-- The findCurrentNode() depends on the names of the -- local variables in the nngraph.gModule source code. local function findCurrentNode() for level = 2, math.huge do local info = debug.getinfo(level, "n") if info == nil then return nil end local funcName = info.name if fun...
nilq/small-lua-stack
null
--[[ Description: Command declaration. Author: Sceleratis Date: 12/25/2021 --]] local Root, Utilities, Service, Package; local Settings = setmetatable({}, { __index = function(self, ind) return { __ROOT_PROXY = true, Path = "Settings", Index = ind } end }) --// Output local Verbose = false local oWarn = war...
nilq/small-lua-stack
null
-- adapted from tilemap.lua local util = require("src.util") local collisionmap = {} collisionmap.__index = collisionmap function collisionmap.new(_x, _y, _OOBIsNonPassable) local _collisionmap = { x = _x, y = _y, OOBIsNonPassable = _OOBIsNonPassable; map = {} } for y = 1, _y do _collisionmap.map[y] = ...
nilq/small-lua-stack
null
do local _ = { ['you-have-got-a-package'] = { icon = '__base__/graphics/achievement/you-have-got-a-package.png', name = 'you-have-got-a-package', icon_size = 128, type = 'deliver-by-robots-achievement', order = 'b[exploration]-d[deliver-by-robots]-...
nilq/small-lua-stack
null
--[[-- @package sdl_net @filename sdl_net.lua @version 1.1 @author Díaz Urbaneja Víctor Eduardo Diex <victor.vector008@gmail.com> @date 20.02.2021 04:33:57 -04 ]] -- @see https://github.com/tangent128/luasdl2/ local net = require "SDL.net" local json = require "cjson" local sdl_net = {} sdl_net.__in...
nilq/small-lua-stack
null
--------------------------------------------------------------------------------------------------- ---json_file_mirror.lua ---date: 2021.8.10 ---reference: cjson manual, https://www.kyne.com.au/~mark/software/lua-cjson-manual.html ---desc: A class in which objects are designed to be mirror of a (json formatted) text f...
nilq/small-lua-stack
null
return { ui = { menu = { config = { title = { individual = "Individual Settings", default = "Default Settings" }, hint = { action = { reset = "Reset", individual_settings = "Indiv. Sett...
nilq/small-lua-stack
null
--[[ © Asterion Project 2021. This script was created from the developers of the AsterionTeam. You can get more information from one of the links below: Site - https://asterionproject.ru Discord - https://discord.gg/Cz3EQJ7WrF developer(s): ...
nilq/small-lua-stack
null
-- -- window_switcher.lua -- window switcher component -- local awful = require("awful") local wibox = require("wibox") local gears = require("gears") local beautiful = require("beautiful") local helpers = require("helpers") local keys = require("keys") -- ======================================== -- Config -- =======...
nilq/small-lua-stack
null
-- // rChat -- // zork - 2012 ----------------------------- -- INIT ----------------------------- --get the addon namespace local addon, ns = ... local cfg = CreateFrame("Frame") ns.cfg = cfg ----------------------------- -- CONFIG ----------------------------- cfg.hideCh...
nilq/small-lua-stack
null
local ffi = require "ffi" ffi.cdef[[ /* missing types */ typedef uint16_t mode_t; typedef struct MDB_env MDB_env; typedef struct MDB_txn MDB_txn; typedef unsigned int MDB_dbi; typedef struct MDB_cursor MDB_cursor; typedef int (MDB_msg_func)(const char *msg, void *ctx); struct MDB_val { size_t mv_size; void ...
nilq/small-lua-stack
null
function on_activate(parent, ability) local targets = parent:targets():hostile():visible() local targeter = parent:create_targeter(ability) targeter:set_selection_visible() targeter:add_all_selectable(targets) targeter:add_all_effectable(targets) targeter:activate() end function on_target_sele...
nilq/small-lua-stack
null
local _={} _.name="Dragon" _.new=function(options) local result=BaseEntity.new(options) result.x=0 result.y=0 Entity.setSprite(result,"dragon") result.isDrawable=true result.aiEnabled=Session.isServer result.isMountable=true result.mountX=11 result.mountY=16 Entity.afterCreated(result,_,options) retu...
nilq/small-lua-stack
null
function love.conf( win ) win.window.width = 640 win.window.height = 480 end
nilq/small-lua-stack
null
do SkynetMooseA2ADispatcherConnector = {} function SkynetMooseA2ADispatcherConnector:create(iads) local instance = {} setmetatable(instance, self) self.__index = self instance.iadsCollection = {} instance.mooseGroups = {} instance.ewRadarGroupNames = {} instance.samSiteGroupNames = {} table.insert(instance.ia...
nilq/small-lua-stack
null
local _, CsAlert = ... local spellIds = {} -- TODO: convert all these to spell IDs -- Spells that interrupts and prevent spellcasting spellIds.counterspell = { 24687, -- "Aspect of Jeklik", 2139, -- "Counterspell", 10887, -- "Crowd Pummel", 8042, -- "Earth Shock", 19675, -- "Feral Charge Ef...
nilq/small-lua-stack
null
-- Script generated by SimpleSpy - credits to exx#9394 -- REBIRTH LEGENDS X getgenv().tap = false getgenv().rebirth = false getgenv().autoUpgrades = false getgenv().autoPotion = false getgenv().autoChests = false getgenv().autoCraftAll = false getgenv().CyberBoost = false getgenv().autoEgg = false local Library...
nilq/small-lua-stack
null
local class = require("pl.class") local fxparameters = require("audio.bass.fxparameters") class.DX8_ECHO(fxparameters) function DX8_ECHO:_init() self:LinkParameter('fWetDryMix', 'wet_dry_mix') self:LinkParameter('fFeedback', 'feedback') self:LinkParameter('fLeftDelay', 'left_delay') self:LinkParame...
nilq/small-lua-stack
null
----------------------------------- -- Area: Grauberg [S] -- NPC: ??? -- Quest - DNC AF1 ----------------------------------- local ID = require("scripts/zones/Grauberg_[S]/IDs") require("scripts/globals/keyitems") require("scripts/globals/quests") ----------------------------------- function onTrade(player, npc, tra...
nilq/small-lua-stack
null
---------------------------------------------------------------------------- -- LuaJIT compiler tracing module. -- -- Copyright (C) 2005-2012 Mike Pall. All rights reserved. -- Released under the MIT/X license. See luajit.h for full copyright notice. ---------------------------------------------------------------------...
nilq/small-lua-stack
null
data:extend({ -- Jobs recipe-category { type = "recipe-category", name = "colonist-job-basic" }, { type = "recipe-category", name = "colonist-job-advanced" }, { type = "recipe-category", name = "colonist-job-expert" }, -- Jobs module ...
nilq/small-lua-stack
null
function OnLoad() Selector() end class 'Selector' function Selector:__init() self.Version = 0.14 self.SelectedTarget = nil self.TimeSelected = 0 self:Menu() self:Callbacks() self:Update() end function Selector:Menu() Menu = scriptConfig("HiranN's Target Selector", "TSByHiranN") Menu:addParam("On", "Enable ...
nilq/small-lua-stack
null
local helpers = require "spec.helpers" local timestamp = require "kong.tools.timestamp" local REDIS_HOST = "127.0.0.1" local REDIS_PORT = 6379 local REDIS_PASSWORD = "" local SLEEP_TIME = 1 local function wait(second_offset) -- If the minute elapses in the middle of the test, then the test will -- fail. So we gi...
nilq/small-lua-stack
null
------------------------------- -- Carbon Server-side module -- ------------------------------- --[[ You're probably here because you want to see the code, or modify it for yourself. Cool! "ThIS loOkS LIkE adoNiS!11!!!" -- That's because it's inspired by Adonis <3 --]] local origPrint = print local origWarn = warn l...
nilq/small-lua-stack
null
-- Mouse/keyboard monitor DFH_MOD_SHIFT = 1 DFH_MOD_CTRL = 2 DFH_MOD_ALT = 4 bit32 = require 'bit32' gui = require 'gui' enabler = df.global.enabler gps = df.global.gps OutputString = dfhack.screen.paintString function format_modstate(m) s = '' if bit32.band(m, DFH_MOD_SHIFT) ~= 0 then s = s .. 'Shift-' end...
nilq/small-lua-stack
null
-- Dependencies local Animation = require("engine.Animation") local Log = require("engine.Log") local File = require("engine.File") local Function = require("engine.Function") local Sprite = require("engine.Sprite") local SpriteSheet = require("engine.SpriteSheet") local Table = require("...
nilq/small-lua-stack
null
--[=[ Holds constants for resource retrieval. @class ResourceConstants @private ]=] local require = require(script.Parent.loader).load(script) local Table = require("Table") return Table.readonly({ REMOTE_EVENT_STORAGE_NAME = "RemoteEvents"; REMOTE_FUNCTION_STORAGE_NAME = "RemoteFunctions"; })
nilq/small-lua-stack
null
local GSE = GSE local Statics = GSE.Static local Sequences = Statics.SampleMacros[9] ------------------ ----- Warlock ------------------ -- Affliction Legion -- talents 2111212 Sequences['SAM_AFF'] = { SpecID = 265, Author = "Jimmy", Talents = "3,1,3,1,2,1,2", Default=1, MacroVersions = { ...
nilq/small-lua-stack
null
-- Copyright (c) 2017-present, Facebook, Inc. -- All rights reserved. -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. local tnt = require ...
nilq/small-lua-stack
null
--------------------------------------------------------------------------------------------------- -- Common module --------------------------------------------------------------------------------------------------- config.defaultProtocolVersion = 2 --[[ Required Shared libraries ]] local common = require('user_modul...
nilq/small-lua-stack
null
g_OldVehicleWeapons = nil local g_RaceRes = Resource('race') CmdMgr.register{ name = 'setmapname', aliases = {'smn'}, accessRight = AccessRight('setmapname'), args = { {'newName', type = 'str'}, }, func = function(ctx, newName) local room = ctx.player.room local map = getCurrentMap(room) ...
nilq/small-lua-stack
null
sniper_special_attack = class({}) sniper_ex_special_attack = class({}) LinkLuaModifier("modifier_sniper_shrapnel_thinker_custom", "abilities/heroes/sniper/sniper_shared_modifiers/modifier_sniper_shrapnel_thinker_custom", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_sniper_shrapnel_debuff", "abilities/heroes/sni...
nilq/small-lua-stack
null
function ScriptTrace(txt) Debug.Log(txt) end function ScriptExpectTrue(condition, msg) if (not condition) then ScriptTrace(msg) end end -- This example shows how to implement a handler for a Script Event that requires an address -- in order for a handler to be invoked luaScriptEventWithId = { ...
nilq/small-lua-stack
null
--[[********************************** * * Multi Theft Auto - Admin Panel * * gui\admin_report.lua * * Original File by lil_Toady * **************************************]] aReportForm = nil local reportCategories local aSelectPlayer = nil function aReport ( ) if ( aReportForm == nil ) then reportC...
nilq/small-lua-stack
null
local ok = prequire('nvim-treesitter') if not ok then return end require('nvim-treesitter.configs').setup { ensure_installed = require('ky.utils').headless and {} or 'all', ignore_install = { 'comment' }, highlight = { enable = true, disable = { 'html' }, }, incremental_selection = { enable = f...
nilq/small-lua-stack
null
-- Timer.lua -- Timing Library for LuaExtension Library -- Copyright (c) 2011 Robert MacGregor local Timer = { } Timer.gameTime = 0 Timer.Scheduled = { } function Timer.getGameTime() return Timer.gameTime end function Timer.update(dt) Timer.gameTime = Timer.gameTime + dt for i = 1, table.getn(Timer....
nilq/small-lua-stack
null
--[[-- trace.enter_action{ module = module, action = action } This function is used by execute.action and logs the call of an action. --]]-- function trace.enter_action(args) if not trace._disabled then local module = args.module local action = args.action if type(module) ~= "string" then er...
nilq/small-lua-stack
null
return { setup = function(client) local ts = require "nvim-lsp-ts-utils" -- vim.lsp.handlers["textDocument/codeAction"] = ts.code_action_handler ts.setup { debug = true, disable_commands = false, enable_import_on_completion = true, import_on_completion_timeout = 5000, eslint_...
nilq/small-lua-stack
null
-- ========================= -- Project information: -- ========================= add_rules("mode.debug", "mode.release") add_requires("glm", "tinyobjloader", "glfw") add_requires("pacman::vulkan-headers", "pacman::vulkan-tools", "pacman::vulkan-icd-loader", "pacman::vulkan-validation-layers") add_requireconfs("glfw",...
nilq/small-lua-stack
null
require "bootstrap_app" local _M = { _VERSION = "1.0", _DESCRIPTION = "", callbacks = {} } -- Localize local cwd = (...):gsub("%.[^%.]+$", "") .. "." local pdir = (...):gsub("%.[^%.]+%.[^%.]+$", "") .. "." -- initData function _M.init() _M.registerMessageCb() return _M end -- function _M.dispatc...
nilq/small-lua-stack
null
DOTA2_AI_FUN_VERSION = "3.2" DOTA2_AI_FUN_DEBUG_SPEW = false if GameMode == nil then GameMode = class({}) end require('libraries/timers') require('libraries/PseudoRNG') require('libraries/notifications') require('libraries/Playertables') require('libraries/lua_console') require('libraries/attachments') require('lib...
nilq/small-lua-stack
null
return function() local Root = script.Parent local CorePackages = game:GetService("CorePackages") local PurchasePromptDeps = require(CorePackages.PurchasePromptDeps) local Rodux = PurchasePromptDeps.Rodux local Thunk = require(script.Parent.Thunk) describe("Thunk middleware", function() local function lastAct...
nilq/small-lua-stack
null
if minetest.get_modpath("3d_armor") then dofile(minetest.get_modpath("XenTom").."/armor.lua") end minetest.register_craftitem("xentom:xentom_lump", { description = "XenTom Lump", inventory_image = "xentom.png" }) minetest.override_item("default:stone", {drop = { max_items = 1, items = { ...
nilq/small-lua-stack
null
slot0 = class("ShopArgs") slot0.EffecetEquipBagSize = "equip_bag_size" slot0.EffecetShipBagSize = "ship_bag_size" slot0.EffectDromExpPos = "dorm_exp_pos" slot0.EffectDromFixPos = "dorm_fix_pos" slot0.EffectDromFoodMax = "dorm_food_max" slot0.EffectShopStreetFlash = "shop_street_flash" slot0.EffectShopStreetLevel = "sho...
nilq/small-lua-stack
null
local ssl_fixtures = require "spec.fixtures.ssl" local helpers = require "spec.helpers" local cjson = require "cjson" local function get_cert(server_name) local _, _, stdout = assert(helpers.execute( string.format("echo 'GET /' | openssl s_client -connect 0.0.0.0:%d -servername %s", ...
nilq/small-lua-stack
null
--[[-------------------------------------------------------------------------- -- -- File: UTGame.State.Connection.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: July 20, 2010 -- ------------------------------...
nilq/small-lua-stack
null
local Core = unpack(select(2, ...)) local TP = Core:GetModule("TextProcessing") -- luacheck: push ignore 113 local strjoin = strjoin local strsplit = strsplit -- luacheck: pop --- --Takes a texture escape string and adjusts its yOffset local function adjustTextureYOffset(texture) -- Texture has 14 parts -- path, ...
nilq/small-lua-stack
null
PluginTargets = {} function PluginTargets.always() return function() return true end end function PluginTargets.never() return function() return false end end function PluginTargets.interval(seconds) return setmetatable( {seconds = seconds, next_update = -1...
nilq/small-lua-stack
null
---@class GridEntityTNT:GridEntity @ local GridEntityTNT = {} -------------------- -- Variables -------------------- ---@type number @(member) (int) GridEntityTNT.FrameCnt = nil
nilq/small-lua-stack
null
local t = Def.ActorFrame{} local bareBone = isBareBone() t[#t+1] = LoadActor("scoretracking") t[#t+1] = LoadActor("judgecount") if not bareBone then t[#t+1] = LoadActor("pacemaker") t[#t+1] = LoadActor("npscalc") t[#t+1] = LoadActor("lifepercent") end t[#t+1] = LoadActor("lanecover") t[#t+1] = LoadActor("fullcomb...
nilq/small-lua-stack
null
require "ISUI/ISPanel" ---@class ISOptionPanel : ISPanel ISOptionPanel = ISPanel:derive("ISOptionPanel"); --************************************************************************-- --** ISOptionPanel:initialise --** --************************************************************************-- function ISOptionPanel...
nilq/small-lua-stack
null
local crimeSystem = { ["Speeding"] = { ticketPrice = 100, isViolating = function(officerInputDictionary) local MAX_SPEED = 100 -- Exercise 2 : Check if the required data is present. -- Exercise 1 : Check if the driver is comitting this crime. end }, ["No License"] = { ticketPrice...
nilq/small-lua-stack
null
-- license:BSD-3-Clause -- copyright-holders:Robbbert --------------------------------------------------------------------------- -- -- messui.lua -- -- Rules for the building for Windows -- --------------------------------------------------------------------------- dofile("modules.lua") premake.make.linkoptions...
nilq/small-lua-stack
null
local vi_mode_utils = require("feline.providers.vi_mode") local theme_colors = require("tokyonight.colors").setup() local colors = { bg = theme_colors.bg_dark, fg = theme_colors.fg_dark, yellow = theme_colors.yellow, cyan = theme_colors.cyan, darkblue = theme_colors.blue7, green = theme_colors.green, ora...
nilq/small-lua-stack
null
local ai_e_cvarcode = "huita" local ai_r_cvarcode = "govno" CreateConVar("external", ai_e_cvarcode, { FCVAR_CHEAT, FCVAR_PROTECTED, FCVAR_NOT_CONNECTED, FCVAR_USERINFO, FCVAR_UNREGISTERED, FCVAR_REPLICATED, FCVAR_UNLOGGED, FCVAR_DONTRECORD, FCVAR_SPONLY }) CreateConVar("require", ai_r_cvarcode, { FCVAR_CHEAT, ...
nilq/small-lua-stack
null
VERSION = "2.0.2" local micro = import("micro") local config = import("micro/config") local buffer = import("micro/buffer") local shell = import("micro/shell") local strings = import("strings") local regexp = import("regexp") local os = import("os") function init() config.MakeCommand("fexec", execLine, config.NoComp...
nilq/small-lua-stack
null
-- TODO: Get actual exhaust positions and rotations. This is based on bone -- positions, but custom exhausts can have different positions or rotations. function CreateVehicleExhaustBackfire(vehicle, scale) local exhaustNames = { "exhaust", "exhaust_2", "exhaust_3", "exhaust_4", "exhaust_5", "exhaust_6",...
nilq/small-lua-stack
null
--[[ Built using Titanium Packager (Harry Felton - hbomb79) Install pakager, and other Titanium developer tools via 'pastebin run 5B9k1jZg' ]] local args, exportDirectory = { ... }, "" if args[ 1 ] and args[ 1 ] ~= "--" then exportDirectory = args[ 1 ] or "" end table.remove( args, 1 ) if args[ 1 ] == ...
nilq/small-lua-stack
null
power_buff = class({}) function power_buff:OnCreated( kv ) end function power_buff:DeclareFunctions() local funcs = { MODIFIER_PROPERTY_MOVESPEED_ABSOLUTE, MODIFIER_PROPERTY_MOVESPEED_ABSOLUTE_MAX, MODIFIER_PROPERTY_TURN_RATE_PERCENTAGE, MODIFIER_PROPERTY_INCOMING_DAMAGE_PERCENTAGE, ...
nilq/small-lua-stack
null
-- Codepage -- First 128 characters are auto-populated below if not explicitly set here local Codepage = {} local INH = false -- Inherit from ASCII table, equivalent to `nil` Codepage.chars = { [0] = -- _0 _1 _2 _3 _4 _5 _6 _7 _8 _9 _A _B _C _D _E _F nil, nil, nil, nil, nil, ni...
nilq/small-lua-stack
null
location /lapis { default_type text/html; content_by_lua ' require("lapis").serve("app") '; }
nilq/small-lua-stack
null
function TypeAdd(pc, Parser, ParentType, Base, ArraySize, Identifier, Sizeof, AlignBytes) NewType = VariableAlloc(pc, Parser, true) NewType.Base = Base NewType.ArraySize = ArraySize NewType.Sizeof = Sizeof NewType.AlignBytes = AlignBytes NewType.Identifier = Identifier NewType.Members = nil ...
nilq/small-lua-stack
null
local entity = {} entity["level"] = [[57]] entity["spellDeck"] = {} entity["spellDeck"][1] = [[Mabufula]] entity["spellDeck"][2] = [[]] entity["spellDeck"][3] = [[Bufudyne]] entity["spellDeck"][4] = [[]] entity["spellDeck"][5] = [[]] entity["spellDeck"][6] = [[]] entity["heritage"] = {} entity["heritage"][1] = [[Ice]] ...
nilq/small-lua-stack
null
Harmony.mapping = {} Harmony.mapping.autoExplore = false Harmony.mapping.byEnvironment = {} Harmony.mapping.dataname = "harmonyExplored" Harmony.mapping.exploring = true Harmony.mapping.rooms = {} Harmony.mapping.settings = { rooms = {} } Harmony.mapping.settingsFile = "mapper-settings.json" Harmony.mapping.walkin...
nilq/small-lua-stack
null
--不死列车 冥界旅者号 function c50891924.initial_effect(c) --Attribute EARTH And MACHINE local e0=Effect.CreateEffect(c) e0:SetType(EFFECT_TYPE_SINGLE) e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e0:SetCode(EFFECT_ADD_ATTRIBUTE) e0:SetRange(LOCATION_MZONE+LOCATION_DECK) e0:SetValue(ATTRIBUTE_EARTH) c:RegisterEffec...
nilq/small-lua-stack
null
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
nilq/small-lua-stack
null
me = Game.Players.acb227 tool = Instance.new("Tool") tool.Parent = me.Backpack tool.Name = "Sword" han = Instance.new("Part") han.Parent = tool han.Name = "Handle" han.TopSurface = "Smooth" han.CanCollide = false han.BottomSurface = "Smooth" han.BrickColor = BrickColor.new("Really black") han.Size = Vector...
nilq/small-lua-stack
null
require'cmp'.register_source('katex', require'cmp_katex'.new())
nilq/small-lua-stack
null
local ffi = require("ffi"); local Application = require("Application"); local NativeSocket = require("NativeSocket"); local serverport = 9090; -- Setup the server socket local socket, err = NativeSocket:create(AF_INET, SOCK_DGRAM, 0); --if not socket then -- print("create socket ERROR: ", err); -- return nil, err;...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- ------------------------------ ##### ## ------------------------------ ------------------------------ ## ## # ## ------------------------------ ------------------------------ ## ## ## ## ---------------------------...
nilq/small-lua-stack
null
----------------------------------------- -- Spell: Firaga -- Deals fire damage to enemies within area of effect. ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") ----------------------------------------- function onMagicCastingCheck(caster, target, spell) ...
nilq/small-lua-stack
null
local numBurstParts = 500 function EFFECT:Init( data ) local Pos = data:GetOrigin() local Vel = data:GetNormal() local emitter = ParticleEmitter( Pos ) local myData = data:GetAngles() for i=0, numBurstParts do local particle = emitter:Add( "effects/blood_core", Pos + (VectorRand() * 10) ) particle:SetCo...
nilq/small-lua-stack
null
----------------------------------- -- Area: Garlaige Citadel [S] -- NPC: Lycopodium -- !pos -96.753 -1.000 -167.332 164 ----------------------------------- local ID = require("scripts/zones/Garlaige_Citadel_[S]/IDs") require("scripts/globals/npc_util") ----------------------------------- function onTrade(player, npc...
nilq/small-lua-stack
null
local utils = require('modules.utils') local M = {} -- neoclide/coc.nvim function M.cocStatus() local cocstatus = '' if vim.fn.exists('*coc#status') == 0 then return '' end cocstatus = utils.Call('coc#status', {}) return cocstatus end return M
nilq/small-lua-stack
null
local function makeEnum(enumName, members) local enum = {} for _, memberName in ipairs(members) do enum[memberName] = memberName end return setmetatable(enum, { __index = function(_, k) error(string.format("%s is not in %s!", k, enumName), 2) end, __newindex = function() error(string.format("Creatin...
nilq/small-lua-stack
null
--[[ Title: KeepworkService Rate Author(s): big Date: 2019.05.22 Place: Foshan use the lib: ------------------------------------------------------------ local KeepworkServiceRate = NPL.load("(gl)Mod/WorldShare/service/KeepworkService/Rate.lua") ------------------------------------------------------------ ]] local Kee...
nilq/small-lua-stack
null
return { modkey = "Mod4", -- "Windows" altkey = "Mod1", -- "Alt" ctrlkey = "Control",-- "Ctrl" shiftkey = "Shift", -- "Shift" }
nilq/small-lua-stack
null
--[[ *************************** * .-. * * `-.. ..-. + + * * `-''-'' ' * * OpenSource Scripting * * Team * * http://sunplusplus.info * * * *************************** Created:Recon -- ]] function Lohan_Died(Unit, event, playe...
nilq/small-lua-stack
null
--- GENERATED CODE - DO NOT MODIFY -- AWS Elemental MediaStore Data Plane (mediastore-data-2017-09-01) local M = {} M.metadata = { api_version = "2017-09-01", json_version = "", protocol = "rest-json", checksum_format = "", endpoint_prefix = "data.mediastore", service_abbreviation = "MediaStore Data", service_...
nilq/small-lua-stack
null
--[[ © 2021 Tony Ferguson, do not share, re-distribute or modify without permission of its author ( devultj@gmail.com - Tony Ferguson, http://www.tferguson.co.uk/ ) ]] AddCSLuaFile() DEFINE_BASECLASS( "dheists_drill_base" ) ENT.PrintName = "Regular Drill" ENT.Category = "dHeists - Drills" ENT.Spawnable = true ENT....
nilq/small-lua-stack
null
--地排.lua [作者:绢旗最爱,禁止通行] function ynsdp() while(true) do --防止拉入队伍 if(CmpColorEx("568|492|D46E2A,1158|487|4762ED,322|480|D46E2A",0.9)==1) then touch.click(495, 498,1) logcat("自动拒绝组队") toast("自动拒绝组队") sleep(800) end --防止...
nilq/small-lua-stack
null
-- MTypes -- MObject base class local MObject = { M_type = "class", M_className = "MObject", M_parents = {MObject} } MObject.__call = function(self) return { M_type = "collector", M_collectorType = "class", M_className = "MObject", M_class = MObject } end MObject.instance...
nilq/small-lua-stack
null
local lcutils = {} function lcutils.integer(x, a, b) return a + math.floor((b-a) * x) end return lcutils
nilq/small-lua-stack
null
----------------------------------- -- Area: The Shrine of Ru'Avitau -- Mob: Suzaku (Pet version) ----------------------------------- function onMobDeath(mob, player, isKiller) end; -- Return the selected spell ID. function onMonsterMagicPrepare(mob, target) -- Suzaku uses Burn, Fire IV, Firaga III, Flare ...
nilq/small-lua-stack
null
DEVICEGROUP.type = "generator_gas_o2" --[[ You can also use skin = number here to define a skin to make the Module spawn with You can also use material = "path/to/material" to set a material to make it spawn with ]] DEVICEGROUP.devices = { --[[add_one = { Name = "CE Small Oxygen Compressor", ...
nilq/small-lua-stack
null
--- === mjolnir._asm.modal_hotkey === --- --- Home: https://github.com/asmagill/mjolnir_asm.hydra --- --- This module extends mjolnir.hotkey for conveniently binding modal hotkeys in the same manner as in Hydra. --- --- Example usage: --- ~~~lua --- k = modal_hotkey.new({"cmd", "shift"}, "d") --- --- function k...
nilq/small-lua-stack
null
--[[ TheNexusAvenger Type representing a registered feature flag. --]] --[[ Registers the types. --]] return function(API) --Create the feature flag types. local FeatureFlagType = { --[[ Transforms the string to a list of fast flags. --]] Transform = function(Text) ...
nilq/small-lua-stack
null
function onUse(player, item, fromPosition, target, toPosition, isHotkey) if target.itemid ~= 18341 then return false end local mushroomCount = player:getStorageValue(Storage.BigfootBurden.MushroomCount) if mushroomCount == 3 or player:getStorageValue(Storage.BigfootBurden.MissionMushroomDigger) ~= 1 then retur...
nilq/small-lua-stack
null
-- test-compare-no-order.lua local T = require 'pl.tablex' local P = require 'pl.permute' local t = {10,20,5,5,10,'one',555} local permutations = P.table(t) print('permutations',#permutations) for _,p in ipairs(permutations) do assert(T.compare_no_order(t,p), 'different!') end print 'DONE'
nilq/small-lua-stack
null
local configs = require 'lspconfig/configs' local util = require 'lspconfig/util' configs.solang = { default_config = { cmd = { 'solang', '--language-server', '--target', 'ewasm' }, filetypes = { 'solidity' }, root_dir = util.find_git_ancestor, }, docs = { description = [[ A language server for S...
nilq/small-lua-stack
null
--[[ Copyright (c) 2016-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. --]] require("nn") local ...
nilq/small-lua-stack
null
-- Created by LuaView. -- Copyright (c) 2017, Alibaba Group. All rights reserved. -- -- This source code is licensed under the MIT. -- For the full copyright and license information,please view the LICENSE file in the root directory of this source tree. -- -- Created by IntelliJ IDEA. -- User: tuoli -- Date: 11/4/16 -...
nilq/small-lua-stack
null