content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
return function() local sort = require(script.Parent.sort) it("should return a new table", function() local a = {} expect(sort(a)).never.to.equal(a) end) it("should not mutate the given table", function() local a = {77, "foo", 2} local function order(first, second) return tostring(first) < tostring(se...
nilq/small-lua-stack
null
local InviteKey = {"111", "+++", "inv",} local GuildInviteKey = {"g++", "ginv", "加公會", "加公会",} local strlower = string.lower local C_BattleNet_GetAccountInfoByID = C_BattleNet.GetAccountInfoByID local InviteToGroup = C_PartyInfo.InviteUnit -- [[ 按alt組隊邀請,ctrl公會邀請 ]] -- hooksecurefunc("ChatFrame_OnHyperlinkS...
nilq/small-lua-stack
null
--- The Help Modul -- @module lib2 -- -- --require for compatibility require"classes"; cli = require"cli"; -- loading the main framework include("TaskTimer.class.lua"); include("TaskStack.class.lua"); --- -- Any type of var including lists -- @type var --- -- One or more incoming argument. -- @type vars -- @list <#v...
nilq/small-lua-stack
null
-- clear cache so this reloads changes. -- useful for development -- -- package.loaded['onedark'] = nil -- package.loaded['onedark.theme'] = nil -- package.loaded['onedark.colors'] = nil -- package.loaded['onedark.util'] = nil package.loaded['onedark.config'] = nil require('onedark').colorscheme()
nilq/small-lua-stack
null
local function FlattenTable(tbl) local result = { } local function flatten(tbl) for _, v in ipairs(tbl) do if type(v) == "table" then flatten(v) else table.insert(result, v) end end end flatten(tbl) return result end local function PrintIndex(k, indexMap) if indexMap ~= nil and type(ind...
nilq/small-lua-stack
null
-- This file is part of SA MoonLoader package. -- Licensed under the MIT License. -- Copyright (c) 2016, BlastHack Team <blast.hk> local keys_onfoot = { GOLEFT_GORIGHT = 0, GOFORWARD_GOBACK = 1, ANSWERPHONE_FIREWEAPONALT = 4, CYCLEWEAPONLEFT_SNIPERZOOMIN = 5, LOCKTARGET = 6, CYCLEWEAPONRIGHT_SNIPERZOOMOUT = 7, ...
nilq/small-lua-stack
null
local lspconfig = require("lspconfig") local u = require("utils") local ts_utils_settings = { debug = true, enable_import_on_completion = true, import_all_scan_buffers = 100, eslint_bin = "eslint_d", eslint_enable_diagnostics = true, eslint_opts = { condition = function(utils) return utils.root_has_file("....
nilq/small-lua-stack
null
-- @param: region, channel begin/end -- cache current region, channel, rxagc, rxgain -- set scscan trigger, set region, channel, set rxagc=0, rxgain=0 -- > scan each channel -- > print format: <rgn>,<ch>,<freq>,<noise>,<ts> -- clean chscan trigger -- set region, channel, rxagc, rxgain -- by Qige @ 2017.03.24 local fm...
nilq/small-lua-stack
null
require "lmkbuild" local append_table = lmkbuild.append_table local exec = lmkbuild.exec local file_newer = lmkbuild.file_newer local get_build_number = lmkbuild.get_build_number local get_var = lmkbuild.get_var local io = io local ipairs = ipairs local is_dir = lmkbuild.is_dir local is_valid = lmkbuild.is_valid local...
nilq/small-lua-stack
null
local on_attach = require('lsp.on_attach') local lsp = vim.lsp -- config that activates keymaps and enables snippet support local function base_config() local capabilities = require('cmp_nvim_lsp').update_capabilities( lsp.protocol.make_client_capabilities() ) capabilities.textDocument.completion.completion...
nilq/small-lua-stack
null
slot2 = "DdzGameCcsView" DdzGameCcsView = class(slot1) DdzGameCcsView.onCreationComplete = function (slot0) slot4 = BaseGameCcsView ClassUtil.extends(slot2, slot0) slot3 = slot0 BaseGameCcsView.onCreationComplete(slot2) slot4 = not IS_IOS_VERIFY slot0.layerNotice.setVisible(slot2, slot0.layerNotice) slot5...
nilq/small-lua-stack
null
-- @Author:pandayu -- @Version:1.0 -- @DateTime:2018-09-09 -- @Project:pandaCardServer CardGame -- @Contact: QQ:815099602 local config = require "game.config" local s_sub = string.sub local cjson = require "include.cjson" local _M = {} _M.data = config.template.pay _M.month_card_count_reward = 10 --10次之后无奖励 _M.pay_t...
nilq/small-lua-stack
null
---------------------------------------------------------------------------------- --- Total RP 3 --- Localization system --- --- This new system is based on a meta-table. --- The goal here is to have IDE auto-completion by directly using the table and --- accessing its indexes in the code, but actually having the meta...
nilq/small-lua-stack
null
local db addEventHandler("onResourceStart",resourceRoot,function() db = dbConnect("sqlite","global/sql.db") if db then outputDebugString("Database baglantisi basarili. - nox") end end) function getConnection() return db end
nilq/small-lua-stack
null
local player = Game.GetLocalPlayer() while true do local pos = (player:GetViewWorldRotation() * Vector3.FORWARD) CoreDebug.DrawLine(player:GetWorldPosition(), player:GetWorldPosition()+(pos*100)) Task.Wait() end
nilq/small-lua-stack
null
require('nn') require('image') local utils = {} function utils.center2Corners(g, delta, N, dim_size) local p1 = math.floor(g + (1 - N/ 2 - 0.5) * delta) p1 = math.max(math.min(p1, dim_size), 1) local p2 = math.ceil(g + (N / 2 - 0.5) * delta) p2 = math.max(math.min(p2, dim_size), 1) return p1, p2 end funct...
nilq/small-lua-stack
null
local qt = require "qtest" -- @require fsu --local fsu, xrelpathto = qt.magicload "fsu.lua" local fsu, _fsu = qt.load("fsu.lua", {"xrelpathto"}) local nix, win = fsu.nix, fsu.win local T = qt.tests function T.nix_cleanpath() local function tcp(a,b) qt._eq(nix.cleanpath(a), b, 2) end tcp("a/.", "a")...
nilq/small-lua-stack
null
local zmq = require('zmq'); local core= require('core'); local utils= require('utils'); local timer= require('timer'); local encode = require('msgpack').encode; local decode = require('msgpack').decode; local rpc_svr = core.Emitter:extend(); -- linkaddr bind listen addr -- dispaddr send response addr fun...
nilq/small-lua-stack
null
SCREEN_RESOLUTION="640x960" SCREEN_COLOR_BITS=32 count=1 round=1 saveStars=0 protecter=0 -- 0 default, 1 blood first, 2 force first mode=0 REGION_SIZE=2 -- purple,red,yellow,blue,green status={}; FUZZY_NUM=98 ENHANCE_FUZZY_NUM=60 BLOOD_BTN=0xE26554 BLOOD_BTN_X=130 BLOOD_BTN_Y=260 HARD_BTN=0xE86549 HARD_BTN_X=130 H...
nilq/small-lua-stack
null
ITEM.name = "SVT 40" ITEM.description= "A semi-automatic battle rifle that fires 7.62x54mm rounds." ITEM.longdesc = "The SVT-40 is a Soviet semi-automatic battle rifle.\nThe SVT-40 saw widespread service during and after World War II.\nAfter the war, SVTs were mostly withdrawn from service and refurbished in arsenals, ...
nilq/small-lua-stack
null
local Witch = {} function Witch.set(colorscheme, variant) Witch.setColorscheme(colorscheme, variant) Witch.setLualineTheme(colorscheme, variant) end function Witch.mappings() return { ['ayu'] = { name = "ayu", variants = { "mirage", "dark", "light" }, mode = "global_variable", variab...
nilq/small-lua-stack
null
local Factory = require("support.factory") Factory.define("entity", function(attributes) return CBaseEntity(attributes) end)
nilq/small-lua-stack
null
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') function ENT:Initialize() self.Entity:SetMoveType(MOVETYPE_NONE) self.Entity:SetSolid(SOLID_NONE) self:DrawShadow(false); //self:SetModel("models/props_wasteland/cargo_container01.mdl"); end
nilq/small-lua-stack
null
local playsession = { {"mewmew", {1811616}}, {"nizzy", {583223}}, {"TheHarlander", {107153}}, {"JustBull", {1016282}}, {"Default_Sound", {1181988}}, {"EPO666", {927632}}, {"Digzol", {2423953}}, {"saneman", {159436}}, {"Namelesshunter", {9722}}, {"Grillzange", {1138697}}, {"Mikeymouse1", {205311}}, {"nankina...
nilq/small-lua-stack
null
function draw_quad(p,tex,w,h,tra,is_map) tra=tra or -1 is_map=is_map or false local u1=(tex%16)*8 local v1=(tex//16)*8 local u2=(tex%16)*8+(w*8) local v2=(tex//16)*8+(h*8) textri( p.x1,p.y1,p.x2,p.y2,p.x3,p.y3, u1, v1, u2, v1, u2, v2, use_map, tra) textri( p.x1,p.y1,p.x...
nilq/small-lua-stack
null
local mod = get_mod("SpawnTweaks") mod.invis_mut = {} mod.invis_mut.invis_update = function() if not mod:get(mod.SETTING_NAMES.INVISIBLE_TEAMMATES_MUTATOR) then return end local reverse = mod:get(mod.SETTING_NAMES.INVISIBLE_TEAMMATES_MUTATOR_REVERSE) local hide_distance_sq = mod:get(mod.SETTING_NAMES.INVISIBLE...
nilq/small-lua-stack
null
--- 模块功能:lcddemo -- @module lcd -- @author Dozingfiretruck -- @release 2021.01.25 -- LuaTools需要PROJECT和VERSION这两个信息 PROJECT = "lcddemo" VERSION = "1.0.0" log.info("main", PROJECT, VERSION) -- sys库是标配 _G.sys = require("sys") --[[ -- LCD接法示例, 以Air101开发板的SPI0为例 LCD管脚 Air101管脚 GND GND VCC 3.3V S...
nilq/small-lua-stack
null
allowCountdown = false; function onCreate() setPropertyFromClass('GameOverSubstate', 'characterName', 'Majinbf'); --Character json file for the death animation setPropertyFromClass('GameOverSubstate', 'deathSoundName', 'fnf_loss_sfx'); --put in mods/sounds/ setPropertyFromClass('GameOverSubstate', 'loopSoundName', '...
nilq/small-lua-stack
null
-- -- Copyright (c) 2018 Milos Tosic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- -- https://github.com/bkaradzic/bimg local params = { ... } local BIMG_ROOT = params[1] local ASTC_CODEC_DIR = BIMG_ROOT .. "3rdparty/astc-codec/" local BIMG_INCLUDE = { BIMG_ROOT ...
nilq/small-lua-stack
null
--- -- @author wesen -- @copyright 2021 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- -- -- Add the path to the AC-ClientOutput classes to the package path list -- in order to be able to omit this path portion in require() calls -- package.path = package.path .. ";../src/?.lua" local ClientOutputFactory ...
nilq/small-lua-stack
null
a=Map("zerotier",translate("ZeroTier"),translate("Zerotier is an open source, cross-platform and easy to use virtual LAN")) a:section(SimpleSection).template = "zerotier/zerotier_status" t=a:section(NamedSection,"sample_config","zerotier") t.anonymous=true t.addremove=false e=t:option(Flag,"enabled",translate("Enab...
nilq/small-lua-stack
null
TULLARANGE_COLORS = { }
nilq/small-lua-stack
null
local utf8 = require('utf8') local lg = love.graphics local concat, len, sub, offset, byte = table.concat, utf8.len, string.sub, utf8.offset, string.byte local cos, max, min, floor = math.cos, math.max, math.min, math.floor local intersects = require('src/utils').intersects local textbox = {} textbox.__index = textbo...
nilq/small-lua-stack
null
local new = require "LuaObservable.src.new" local isObservable = require "LuaObservable.src.is" local subscribe = require "LuaObservable.src.subscribe" local function defaultFilter() return true end return function (observable, criteria) criteria = isFunction(criteria) and criteria or defaultFilter retu...
nilq/small-lua-stack
null
----------------------------------------------------------------------------------------------- -- Client Lua Script for SimpleVolatility -- Copyright (c) NCsoft. All rights reserved ----------------------------------------------------------------------------------------------- require "Apollo" require "GameLib" requ...
nilq/small-lua-stack
null
data:extend({ { type = "item", name = "storage-tank9", icon = "__base__/graphics/icons/storage-tank.png", icon_size = 64, subgroup = "storage", order = "b[fluid]-a[storage-tank]", place_result = "storage-tank9", stack_size = 50 }, })
nilq/small-lua-stack
null
-- Compiled from https://github.com/dotnet/corefx/blob/master/src/System.Runtime.Numerics/src/System/Numerics/Complex.cs -- Generated by CSharp.lua Compiler -- Licensed to the .NET Foundation under one or more agreements. -- The .NET Foundation licenses this file to you under the MIT license. -- See the LICENSE file in...
nilq/small-lua-stack
null
-- game.lua -- metroidvanian platformer game -- N.P.Thompson 2021 (MIT license) -- noahpthomp@gmail.com -- game contains all state and subroutines for updating said state require 'list' require 'rect' require 'unit' require 'room' game = { -- =======================================...
nilq/small-lua-stack
null
local tools = require "tools" --local host = ngx.var.http_host local host = gw_domain_name --local uri = ngx.var.uri local _M = {} function _M.set(real_new_uri) local uri = real_new_uri -- ngx.log(ngx.ERR, "uri-------->"..uri) if uri == '/nginx-logo.png' or uri == '/poweredby.png' then return end local url_pat...
nilq/small-lua-stack
null
require 'busted.runner' ( ) local talents = require 'talents' describe ("talents releasing", function ( ) it ("should be able to discard garbage collected talents", function ( ) local emma do local writer = talents.talent { name = talents.required ( ), ...
nilq/small-lua-stack
null
local character = CHARMAN:GetCharacter("Yuni") local t = Def.ActorFrame{ Def.Quad{ InitCommand=cmd(Center;FullScreen;diffuse,color("#000063")); }; Def.ActorFrame{ InitCommand=cmd(CenterX;); --[[ LoadActor(THEME:GetPathB("ScreenSelectCharacter","overlay/_icon blank"))..{ InitCommand=cmd(y,SCREEN_CENTER_Y-...
nilq/small-lua-stack
null
local installations = {} CreateThread(LoadConfigurationFile) function GetResourceFromGithub(gitUrl, savingPath) local git = github(gitUrl) local lastRelease = git:getLastRelease() if lastRelease and lastRelease.tag_name ~= resourceVersion then local files = git:getFiles() for i, file in pairs(files) do prin...
nilq/small-lua-stack
null
-- Slingshot settings --- Slingshot mod settings. -- -- @module settings --- Slingshot specific settings. -- -- Settings unique to this mod. -- -- @section settings_specific --- Use old 16x16 textures. -- -- @setting slingshot.old_textures -- @settype bool -- @default false slingshot.old_textures = core.sett...
nilq/small-lua-stack
null
-- blackScreen is used for fading to black and adding darkness to the screen blackScreen = {} blackScreen.state = 0 -- 0 is stable, 1 is getting dark, -1 is getting lighter blackScreen.alpha = 0 blackScreen.time = 1 -- time in seconds for the blackScreen fade/unfade -- blackScreen is also used for making the screen t...
nilq/small-lua-stack
null
background = Image.createEmpty(480, 272) clockOfs = 150 clockWidth = 100 clockTextPosition = 85 clockBigMarkWidth = 7 clockSmallMarkWidth = 3 x0 = clockOfs y0 = clockOfs - clockWidth pi = 4*math.atan(1) color = Color.new(0, 255, 0) for i=0,60 do x1 = math.sin(pi-i/60*2*pi) * clockWidth + clockOfs y1 = math.cos(pi-i/6...
nilq/small-lua-stack
null
local params = {...} local Dataseries = params[1] local argcheck = require "argcheck" local doc = require "argcheck.doc" doc[[ ## Export functions Here are functions are used for exporting to a different format. Generally `to_` functions should reside here. Only exception is the `tostring`. ]] Dataseries.to_tenso...
nilq/small-lua-stack
null
local Suite = require "loop.test.Suite" return Suite{ Wrapper = require "loop.tests.object.Wrapper", Publisher = require "loop.tests.object.Publisher", }
nilq/small-lua-stack
null
UMMColor = { Header = "449fe6", Bright = "cdeeff", Medium = "7ab1db", Dark = "9ec0d5", Border = "afd0e1", Green = "00e600"; Grey = "bbbbbb"; DarkGrey = "999999"; Cyan = "69ccf0"; Yellow = "ffe600"; White = "ffffff"; Red = "e60000"; Own = "dc8...
nilq/small-lua-stack
null
player_manager.AddValidModel( "PMC4_04", "models/player/PMC_4/PMC__04.mdl" ) list.Set( "PlayerOptionsModel", "PMC4_04", "models/player/PMC_4/PMC__04.mdl" )
nilq/small-lua-stack
null
#!/usr/bin/env luajit local io = require("io") local os = require("os") local dir = arg[1] if (dir == nil) then print("Usage: ", arg[0], " /usr/path/to/clang-c/ > ljclang_Index_h.lua") os.exit(1) end local function loadandstrip(filename) local f, errmsg = io.open(dir.."/"..filename) if (f==nil) then...
nilq/small-lua-stack
null
modifier_item_nullifier_custom_slow = class({}) function modifier_item_nullifier_custom_slow:DeclareFunctions() return { MODIFIER_PROPERTY_MOVESPEED_BONUS_PERCENTAGE, } end function modifier_item_nullifier_custom_slow:GetModifierMoveSpeedBonus_Percentage() return -self:GetAbility():GetSpecialValueFor("slow_pc...
nilq/small-lua-stack
null
return { COMMANDS = "/applications/%s/commands", COMMANDS_GUILD = "/applications/%s/guilds/%s/commands", COMMANDS_MODIFY = "/applications/%s/commands/%s", COMMANDS_MODIFY_GUILD = "/applications/%s/guilds/%s/commands/%s", COMMAND_PERMISSIONS = "/applications/%s/guilds/%s/commands/permissions", COMMAND_PERMISSIONS_...
nilq/small-lua-stack
null
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA sv_GetVideoInfo = sv_GetVideoInfo or {} sv_GetVideoInfo.hls = function(self, key, ply, onSuccess, onFailure) local streamwatch_key = string.match(key, "streamwat.ch/(%w+)/*$") local datalink = nil ...
nilq/small-lua-stack
null
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]] require("lualib_bundle"); local ____exports = {} ____exports.Polygon = __TS__Class() local Polygon = ____exports.Polygon Polygon.name = "Polygon" function Polygon.prototype.____constructor(self, mode, points, x, y) if x == nil then x ...
nilq/small-lua-stack
null
local atlases = require("atlases") local drawableSprite = require("structs.drawable_sprite") local utils = require("utils") local decals = {} local decalsPrefix = "^decals/" local decalFrameSuffix = "%d*$" -- A frame should only be kept if it has no trailing number -- Or if the trailing number is 0, 00, 000, ... etc...
nilq/small-lua-stack
null
-- SHIELD MANAGER -- Distance from enemies in meters at which to activate shields ShieldActivationRange = 5000 -- Shield mode to use -- 1 = Disrupt -- 2 = Reflect -- 3 = Laser? -- nil = Scale strength up or down instead of changing mode ShieldActivationMode = 2 -- Angle in degrees from a shield's forward vector at w...
nilq/small-lua-stack
null
--[[ Define the territory permission class metatable. --]] TERRITORY_CHARTER_CLASS = TERRITORY_CHARTER_CLASS or {__index = TERRITORY_CHARTER_CLASS}; function TERRITORY_CHARTER_CLASS:__call( parameter, failSafe ) return self:Query( parameter, failSafe ); end; function TERRITORY_CHARTER_CLASS:__tostring() ret...
nilq/small-lua-stack
null
local band = bit.band local tinsert = table.insert local tremove = table.remove local next = next local strsplit = strsplit local strfind = strfind local GetNetStats = GetNetStats local k,v,_ BossSwingTimer = LibStub("AceAddon-3.0"):NewAddon("BossSwingTimer", "AceConsole-3.0", "AceEvent-3.0") local BossSwingTimerPat...
nilq/small-lua-stack
null
--[[ Game World ]] local lib local world world = { screen_width = 0, screen_height = 0, time = 0, shaking = false, entities = {}, update = function(self, event) self.camera:update(event) self.character:update(event) for key, entity in next, self.entities do entity:update(event) end self.time = ...
nilq/small-lua-stack
null
object_tangible_quest_avatar_storage_case = object_tangible_quest_shared_avatar_storage_case:new { } ObjectTemplates:addTemplate(object_tangible_quest_avatar_storage_case, "object/tangible/quest/avatar_storage_case.iff")
nilq/small-lua-stack
null
--[[ vim.g.nvim_tree_indent_markers = 1 vim.g.nvim_tree_hide_dotfiles = 1 ]] vim.g.nvim_tree_git_hl = 1 vim.g.nvim_tree_root_folder_modifier = ":~:." -- vim.g.nvim_tree_ignore = { ".git", "node_modules", ".cache" } vim.cmd("let g:nvim_tree_show_icons = {'git': 0, 'folders': 1, 'files': 1}") vim.api.nvim_set_keymap("n"...
nilq/small-lua-stack
null
-- pgproc module -- -- © 2010, 2013 David J Goehrig <dave@dloh.org> -- -- Copyright (c) 2010, 2013, David J Goehrig <dave@dloh.org> -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the -- following conditions are met: -- -- Redi...
nilq/small-lua-stack
null
Config = {} Config.DrawDistance = 100 Config.Size = {x = 1.5, y = 1.5, z = 1.5} Config.Color = {r = 0, g = 128, b = 255} Config.Type = 1 Config.Locale = 'en' Config.Zones = { Liquor = { Items = {}, Pos = { {x = 127.830, y = -1284.796, z = 28.280}, --StripClib {x = -1393.409, y = -606.624, z = 29.3...
nilq/small-lua-stack
null
local assert = require("luassert.assert") --[[ LibWhoMock is a mock for LibWho It has an :ExpectWho method to construct a list of expected calls and their return values And an :Assert to assert that all expected calls were consumed ]]-- ---@class LibWhoMock local LibWhoMock = {} LibWhoMock.__index = LibWhoMock setmeta...
nilq/small-lua-stack
null
return { { name = "2019-03-06-111650_init_rbac", up = [[ CREATE TABLE IF NOT EXISTS rbac_resources ( "id" uuid PRIMARY KEY, "service_id" uuid REFERENCES services (id) ON DELETE CASCADE, "route_id" uuid REFERENCES routes (id) ON DELETE CASCADE, "method" varchar(255), ...
nilq/small-lua-stack
null
-- This is a part of uJIT's testing suite. -- Copyright (C) 2020-2021 LuaVela Authors. See Copyright Notice in COPYRIGHT -- Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT -- -- Ensure VM state is switched correctly with fast functions -- local aux = require('profile_aux') assert(ujit.profile.i...
nilq/small-lua-stack
null
function LiveMixin:AddHealth(health, playSound, noArmor, hideEffect, healer, armorScalar) if not armorScalar then armorScalar = kArmorHealScalar end if self.OnAddHealth then self:OnAddHealth() end -- TakeDamage should be used for negative values. assert(health >= 0) local total = 0 ...
nilq/small-lua-stack
null
#!/usr/bin/env texlua -- Build script for "xcolor" files -- Identify the bundle and module bundle = "" module = "xcolor" installfiles = {"svgnam.def", "x11nam.def", "xcolor.pro", "xcolor.sty"} sourcefiles = {"xcolor.dtx", "xcolor.ins"} unpackfiles = {"xcolor.ins"} -- Get the .pro files in the right place tdslocatio...
nilq/small-lua-stack
null
tinkering.tools = { pick = { description = "Pickaxe", groups = {"cracky"}, fleshy_decrement = 1, components = { main = "pickaxe_head", binding = "tool_binding", rod = "tool_rod" }, textures = { main = "tinkering_pickaxe_head.png", second = "tinkering_overlay_handle_pickaxe.png", ...
nilq/small-lua-stack
null
package("libsvm") set_homepage("https://github.com/cjlin1/libsvm") set_description("A simple, easy-to-use, and efficient software for SVM classification and regression") add_urls("https://github.com/cjlin1/libsvm/archive/refs/tags/$(version).tar.gz", "https://github.com/cjlin1/libsvm.git") ...
nilq/small-lua-stack
null
function compile_lua(filename) if file.open(filename .. ".lua") then file.close() node.compile(filename .. ".lua") file.remove(filename .. ".lua") return true else return false end end function run_lc(filename) if file.open( filename .. ".lc" ) then file.close() dofile( filename .. ...
nilq/small-lua-stack
null
local function _0_(mode, x, y, dx, dy, r) love.graphics.rotate(r) love.graphics.ellipse(mode, x, y, dx, dy) return love.graphics.origin() end return {ellipse = _0_}
nilq/small-lua-stack
null
local AS = unpack(AddOnSkins) function AS:Blizzard_AzeriteUI(event, addon) if addon ~= 'Blizzard_AzeriteUI' then return end AS:SkinFrame(AzeriteEmpoweredItemUI) AzeriteEmpoweredItemUI.BorderFrame.portrait:SetAlpha(0) AzeriteEmpoweredItemUI.ClipFrame.BackgroundFrame.Bg:Hide() AzeriteEmpoweredItemUI.ClipFrame.Bac...
nilq/small-lua-stack
null
require( "iuplua" ) list_len = 1 selected = 1 list = iup.list { "Test", expand = "Yes", value = "Test" } new_entry_text = iup.text { expand = "Yes", value = "?" } button_add = iup.button { title = "Add list entry", expand = "Yes" } button_del = iup.button { title = "Delete list entry", expand = "Yes" } function list...
nilq/small-lua-stack
null
lk = {} require 'lk.Autoload' local Autoload = lk.Autoload lk = lk.Autoload('lk') lk.Autoload = Autoload -- autoload stuff in _G lk.Autoload.global() require 'lk.core_c' local time_ref = lk.TimeRef() function elapsed() return time_ref:elapsed() end now = elapsed function lk.bitTest(flags, bit) -- flags = [ 0 1 1 ...
nilq/small-lua-stack
null
local LIBBATTLE, VERSION = "LibBattle", 1 assert(LibStub, LIBBATTLE .. " requires LibStub") local libBattle = LibStub:NewLibrary(LIBBATTLE, VERSION) _G[LIBBATTLE] = LibBattle
nilq/small-lua-stack
null
-- Define variables ABsummoner = {} ABsummoner.Raid = {} ABsummoner.TriggerWord = "TRIGGER WORD DISABLED" absummon_hakkar_time = "" absummon_dire_maul_time = "" absummon_songflower_time = "" absummon_dragonslayer_time = "" absummon_auto_promote = true absummon_auto_invite = false absummon_mark_summoner = false functi...
nilq/small-lua-stack
null
ModifyEvent(-2, -2, -1, -1, -1, -1, -1, 2468, 2468, 2468, -2, -2, -2);--by fanyu 打开箱子,改变贴图 场景31-35 AddItem(171, 10); AddItem(186, 2); AddItem(97, 5); AddEthics(-1); do return end;
nilq/small-lua-stack
null
local VCA = Module:extend() function VCA:init() Module.init(self, 'VCA', { ports = { Port('CV'), Port('In'), Port('Out')}, knobs = { Knob('Amp') } }) end return VCA
nilq/small-lua-stack
null
object_building_kashyyyk_poi_tree_mound = object_building_kashyyyk_shared_poi_tree_mound:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_poi_tree_mound, "object/building/kashyyyk/poi_tree_mound.iff")
nilq/small-lua-stack
null
local Pegasus = require 'pegasus' local Camera = require 'video_streaming.camera' local socket = require 'socket' local Streaming = {} function Streaming:new(params) local obj = {} self.__index = self self.camera = Camera:new(params.dir or './') self.server = Pegasus:new({ port = params.port or '9090' }...
nilq/small-lua-stack
null
-- // FileName: ChannelsBar.lua -- // Written by: Xsitsu -- // Description: Manages creating, destroying, and displaying ChannelTabs. local module = {} local PlayerGui = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui") --////////////////////////////// Include --////////////////////////////////////// ...
nilq/small-lua-stack
null
Citizen.InvokeNative(GetHashKey("ADD_TEXT_ENTRY"), key, value) end Citizen.CreateThread(function() -- POLICE6 AddTextEntry('0x72935408', 'hiluxpmesp')
nilq/small-lua-stack
null
--New object_tangible_dungeon_mustafar_working_droid_factory_shared_inhibitor_storage = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/dungeon/mustafar/working_droid_factory/shared_inhibitor_storage.iff" } ObjectTemplates:addClientTemplate(object_tangible_dungeon_mustafar_working_droid_fa...
nilq/small-lua-stack
null
mrg.basemetal("aluminium", "ingot", { description = "Aluminium Ingot" }) mrg.basemetal("aluminium", "diabolo", { description = "Aluminium Diabolo" }) mrg.basemetal("copper", "ingot", { description = "Copper Ingot" }) mrg.basemetal("copper", "diabolo", { description = "Copper Diabolo" }) mrg.basemetal("uranium",...
nilq/small-lua-stack
null
local addonName, addon = ... local lockouts = addon:NewModule('Lockouts', 'AceEvent-3.0') -- GLOBALS: _G, LibStub, DataStore, EXPANSION_LEVEL -- GLOBALS: IsAddOnLoaded, UnitLevel, GetQuestResetTime, GetRFDungeonInfo, GetNumRFDungeons, GetLFGDungeonRewardCapInfo, GetLFGDungeonNumEncounters, GetLFGDungeonRewards, GetLFD...
nilq/small-lua-stack
null
local container = script.Parent.Parent local roactModule = container:FindFirstChild("Roact") local Roact = nil if not roactModule then -- If the rbx-ts runtime is around, try loading with that local rbxts = game:GetService("ReplicatedStorage"):FindFirstChild("rbxts_include") if rbxts ~= nil then local TS = requir...
nilq/small-lua-stack
null
local mod = DBM:NewMod("ArcwayTrash", "DBM-Party-Legion", 6) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 14860 $"):sub(12, -3)) --mod:SetModelID(47785) mod:SetZone() mod.isTrashMod = true mod:RegisterEvents( "SPELL_CAST_START 211757 226206", "SPELL_AURA_APPLIED 194006 210750 211745...
nilq/small-lua-stack
null
addPackage("gh:gabime/spdlog") project "spdlog" kind "StaticLib" language "C++" cppdialect "C++11" files { "spdlog/src/spdlog.cpp", "spdlog/src/stdout_sinks.cpp", "spdlog/src/color_sinks.cpp", "spdlog/src/file_sinks.cpp", "spdlog/src/async.cpp", "spdlog/src/cfg.cpp" } includedi...
nilq/small-lua-stack
null
----------------------------------- -- Area: Bastok Markets -- NPC: Chat Manual -- Type: Tutorial NPC -- !pos -309.989 -10.004 -116.634 235 ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) player:startEvent(6106) end function onEventUpdate(player, csid...
nilq/small-lua-stack
null
local VisualTicker = require 'VisualTicker' local VisualList = require 'VisualList' local VisualTickerList = class('VisualTickerList', VisualList) function VisualTickerList:initialize(tickers) VisualList.initialize(self, tickers) end function VisualTickerList:incrementSelected() self.items[self.selectedItem]:...
nilq/small-lua-stack
null
-- requires module 'options' for build options require("../source/build/options") BUILD_ALL = _OPTIONS["build_all"] BUILD_SAMPLES = BUILD_ALL or _OPTIONS["build_samples"] BUILD_APP = BUILD_ALL or _OPTIONS["build_app"] -- processor instruction set architecture X64 = _OPTIONS["x64"] X86 = _OPTIONS["x86"] if not X64 and ...
nilq/small-lua-stack
null
-- See LICENSE for terms -- CurrentModPath, CurrentModOptions, CurrentModDef, CurrentModId local mod_SkipBlurbs local mod_SkipTalks local mod_SkipCommercials local options -- fired when settings are changed/init local function ModOptions() options = CurrentModOptions mod_SkipBlurbs = options:GetProperty("SkipBlur...
nilq/small-lua-stack
null
local TitleScene = Scene:extend() TitleScene.title = "Title" TitleScene.restart_message = false local main_menu_screens = { ModeSelectScene, SettingsScene, CreditsScene, ExitScene, } local mainmenuidle = { "Idle", "On title screen", "On main menu screen", "Twiddling their thumbs", "Admiring the main menu's ...
nilq/small-lua-stack
null
local Prop = {} Prop.Name = "Suburbs House 2" Prop.Cat = "House" Prop.Price = 2500 Prop.Doors = { Vector( -10215, -516, 190 ), Vector( -10380, -581, 190 ), Vector( -10516, -979, 190 ), Vector( -10215, -516, 190 ), Vector( -9748, -557, 190 ), Vector( -9748, -557, 350 ), Vector( -10083, -644, 350 ), Vector( -1017...
nilq/small-lua-stack
null
local Path = require("virtes.lib.path").Path local TestResult = require("virtes.result").TestResult local TestContext = require("virtes.context").TestContext local M = {} local Test = {} Test.__index = Test M.Test = Test local default_dir_path = vim.fn.getcwd() .. "/spec/screenshot" function Test.setup(opts) vim....
nilq/small-lua-stack
null
local IUiElement = require("api.gui.IUiElement") local ILayer = require("api.gui.ILayer") return class.interface("IDrawLayer", { reset = "function", }, { ILayer, IUiElement })
nilq/small-lua-stack
null
-- // Services local Players = game:GetService("Players") -- // Vars local LocalPlayer = Players.LocalPlayer -- // Remove duplicates from array local function RemoveDuplicates(Array) -- // Vars local Sorted = {} local ArrayB = {} -- // Loop through A for _, v in ipairs(Array) do -- // Mak...
nilq/small-lua-stack
null
--[[ Minecart ======== Copyright (C) 2019-2021 Joachim Stolberg MIT See license.txt for more information ]]-- minecart.doc = {} if not minetest.get_modpath("doc") then return end local S = minecart.S local summary_doc = table.concat({ S("Summary"), "------------", "", S("1. Place your rails and buil...
nilq/small-lua-stack
null
--************************ --name : SINGLE_AG_FA_02.lua --ver : 0.1 --author : Kintama --date : 2004/09/09 --lang : en --desc : terminal mission --npc : --************************ --changelog: --2004/09/09(0.1): Added description --************************ function DIALOG() NODE(0) S...
nilq/small-lua-stack
null