content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
ITEM.Name = 'Snowman Head' ITEM.Price = 200 ITEM.Model = 'models/props/cs_office/Snowman_face.mdl' ITEM.Attachment = 'eyes' function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientsideModel(ply...
nilq/small-lua-stack
null
local previewers = require("telescope.previewers") local utils = require('telescope.utils') local defaulter = utils.make_default_callable local M = {} M.previewer = defaulter(function(_) return previewers.new_buffer_previewer({ title = "Mapping details", define_preview = function(self, entry, _) ...
nilq/small-lua-stack
null
-- ponyfx local M = {} local function lenSqr(dx,dy,dz) return (dx * dx + dy * dy + dz * dz) end local function offScreen(object) local bounds = object.contentBounds if not bounds then return false end local sox, soy = display.screenOriginX, display.screenOriginY if bounds.xMax < sox then return true end if...
nilq/small-lua-stack
null
-- -- Notion tiling module configuration file -- -- Bindings for the tilings. defbindings("WTiling", { bdoc("Split current frame horizontally.", "hsplit"), kpress(META.."H", "WTiling.split_at(_, _sub, 'right', true)"), bdoc("Split current frame vertically.", "vsplit"), kpress(ALTMETA.."H", "WTiling.sp...
nilq/small-lua-stack
null
local scene = { isScene = true, name = "weapon shop", art = "players_lament", anims = function (self) self.anim:add("bed", 2) self.anim:add("food", 3) self.anim:add("edbur_sad", 4) self.anim:add("sun", 5) self.anim:add("edbur_smiling", 6) self.anim:add("edbur_angry", 7) self.anim:add("eye", 8) self....
nilq/small-lua-stack
null
--[[ ########################################################## S V U I By: Failcoder ########################################################## LOCALIZED LUA FUNCTIONS ########################################################## ]]-- --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; local select = _G.se...
nilq/small-lua-stack
null
-- yaw values: -- x+ = -pi/2 -- x- = +pi/2 -- z+ = 0 -- z- = -pi mobkit={} mobkit.gravity = -9.8 mobkit.friction = 0.4 -- less is more local abs = math.abs local pi = math.pi local floor = math.floor local ceil = math.ceil local random = math.random local sqrt = math.sqrt local max = math.max local min = math.min lo...
nilq/small-lua-stack
null
object_tangible_loot_creature_loot_collections_aurebesh_tile_besh = object_tangible_loot_creature_loot_collections_shared_aurebesh_tile_besh:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_aurebesh_tile_besh, "object/tangible/loot/creature/loot/collections/aurebesh_tile_besh.iff")
nilq/small-lua-stack
null
local types = require "resty.nettle.types.common" local context = require "resty.nettle.types.gosthash94" local lib = require "resty.nettle.library" local ffi = require "ffi" local ffi_new = ffi.new local ffi_str = ffi.string local setmetatable = setmetatable local gosthash94 = setmetatable({}, { __call = function(_...
nilq/small-lua-stack
null
local rangedWeapons = { Bow = true, Crossbow = true, Wand = true, Rifle = true, } local function ApplyCQBEffect(object) if ObjectIsCharacter(object) == 1 then local char = Ext.GetCharacter(object) local offhand = char.Stats.OffHandWeapon if (rangedWeapons[char.Stats.MainWeap...
nilq/small-lua-stack
null
object_draft_schematic_furniture_wod_witch_banner_s01 = object_draft_schematic_furniture_shared_wod_witch_banner_s01:new { } ObjectTemplates:addTemplate(object_draft_schematic_furniture_wod_witch_banner_s01, "object/draft_schematic/furniture/wod_witch_banner_s01.iff")
nilq/small-lua-stack
null
PowerRaid = LibStub("AceAddon-3.0"):NewAddon("PowerRaid", "AceConsole-3.0", "AceHook-3.0", "AceEvent-3.0", "AceComm-3.0", "AceSerializer-3.0") _G["PowerRaid"] = PowerRaid local L = LibStub("AceLocale-3.0"):GetLocale("PowerRaid"); PowerRaid:RegisterChatCommand(L["pr"], "ChatCommand") PowerRaid.LibDeflate = LibStub("L...
nilq/small-lua-stack
null
-- Copyright 2021 SmartThings -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in ...
nilq/small-lua-stack
null
Brama = createObject (976, -2619.6000976563, 1226.0999755859, 49.599998474121, 0, 0, 76) function OtworzBrame () moveObject ( Brama, 1000, -2619.6000976563, 1226.0999755859, 49.599998474121 ) end addCommandHandler("PKFT", ZamknijBrame ) function ZamknijBrame () moveObject ( Brama, 1000, -2619.6000976563, 1226.09997558...
nilq/small-lua-stack
null
local present, bufferline = pcall(require, "bufferline") if not present then return end local colors = require("nord.colors") local config = { options = { offsets = { { filetype = "NvimTree", text = "Explorer", padding = 1, highl...
nilq/small-lua-stack
null
local Object = require 'lib.classic' local peachy = require 'lib.peachy' local SpriteMaker = Object:extend() function SpriteMaker:new() self.sprites = {} self.sizes = {} end function SpriteMaker:add(name, image, json, initial) self.sprites[name] = function() return peachy.new(json, image, initial) end ...
nilq/small-lua-stack
null
Locales['en'] = { ['properties'] = 'Immobilien', ['property'] = 'Immobilie', ['clients'] = 'Kunden', ['remove_comp_money'] = 'Firmengeld abheben', ['dep_money'] = 'Geld einzahlen', ['wash_money'] = 'Geld waschen', ['realtor'] = 'Makler', ['amount_withdraw'] = 'Betrag zun abheben', ['invalid_amount'] =...
nilq/small-lua-stack
null
TRAIT.name = "Chaotic Alloys III" TRAIT.IconX = 1 TRAIT.IconY = 1 TRAIT.LevelReq = 10 TRAIT.SkillPointCost = 2 TRAIT.Incompatible = { } TRAIT.RequiredTraits = { "chs_armor_1", "chs_armor_2", } TRAIT.icon = "vgui/skills/ability_warrior_defensivestance_2.png" TRAIT.category = "Blessings of Chaos Undivided"-- C...
nilq/small-lua-stack
null
--Boronide™ Free Obfuscation, v0.3.3 local a,b,c=nil,nil,nil([[Boronide Obfuscation, discord.gg/boronide]]):gsub('(.*)',function(d)local e="y31I9jvG"local f="MIpt9UhOdFkYgixXf41JDRF"do local a=125;local b=19.813480593283277;local g=35.052362369029034;local h={}for i in(function()return 961 end)do if(a+62==187)and((g==...
nilq/small-lua-stack
null
local language_table = dofile('scripts/languages.lua') newoption { trigger = 'to', value = 'path', default = 'build', description = 'Set the output location for the generated files', } workspace 'languages' kind 'SharedLib' entrypoint 'DllMain' configurations { 'Debug', 'Re...
nilq/small-lua-stack
null
local map_options = { noremap = true, silent = true } vim.api.nvim_set_keymap('n', '<leader>t', ':TestFile<CR>', map_options) vim.api.nvim_set_keymap('n', '<leader>s', ':TestNearest<CR>', map_options) vim.api.nvim_set_keymap('n', '<leader>l', ':TestLast<CR>', map_options) vim.api.nvim_set_keymap('n', '<leader>a', ':Tes...
nilq/small-lua-stack
null
----------------------------------------- -- ID: 6260 -- Item: akamochi -- Food Effect: 30 Min, All Races ----------------------------------------- -- HP + 20 (Pet & Master) -- Vitality + 3 (Pet & Master) -- Acc + 10% Cap: 50 (Pet & Master) Pet Cap: 75 -- R. Acc + 10% Cap: 50 (Pet & Master) Pet Cap: 75 -- Attack + 16% ...
nilq/small-lua-stack
null
ENT.Type = "anim" ENT.Base = "obj_vj_projectile_base" ENT.PrintName = "Toxic Spit" ENT.Author = "DrVrej" ENT.Contact = "http://steamcommunity.com/groups/vrejgaming" ENT.Information = "Projectiles for my addons" ENT.Category = "Projectiles" if (CLIENT) then local Name = "Toxic Spit" local LangName = "ob...
nilq/small-lua-stack
null
function getGradeFromStats(stats) end;
nilq/small-lua-stack
null
SceneClass = {} SceneClass_mt = { __index = SceneClass } function SceneClass.Create() local new_screen = {} setmetatable(new_screen, SceneClass_mt) return new_screen end function SceneClass:Render() return Def.ActorFrame { InitCommand = function(this) self:SetContainer(this) end, OnCommand...
nilq/small-lua-stack
null
local Map = require "maps.map" local Endings = require "scripts.endings" local TempleInterior = Map:new() function TempleInterior:new(o, control) o = o or Map:new(o, control) setmetatable(o, self) self.__index = self return o end function TempleInterior:create() Map.create(self) end function TempleInteri...
nilq/small-lua-stack
null
--[Onyxia 25]-- -- All phases supported -- This script will check if players are saved, save players, check if onyxia is in an instance and prevent variable collision :) -- Rev-2 -- Credits: -- DragonDev if(GetLuaEngine ~= "LuaHypArc" == false) then -- Engine check print("---------------------------...
nilq/small-lua-stack
null
--[[ © 2018 Thriving Ventures AB do not share, re-distribute or modify without permission of its author (gustaf@thrivingventures.com). ]] local plugin = plugin local command = {} command.help = "Report something to the admins." command.command = "report" command.bDisallowConsole = true function command:Execute(pla...
nilq/small-lua-stack
null
require("wpilib.bindings") require("wpilib.ahrs") require("wpilib.io") require("wpilib.motors") require("wpilib.robotbase") require("wpilib.dashboard") require("wpilib.solenoids") require("wpilib.time")
nilq/small-lua-stack
null
local config = require "flutter-tools/config" local api = vim.api local M = {} local namespace = api.nvim_create_namespace("flutter_tools_closing_labels") local function render_labels(labels, opts) api.nvim_buf_clear_namespace(0, namespace, 0, -1) opts = opts or {} local highlight = opts and opts.highlight or...
nilq/small-lua-stack
null
-- a = 20 local a, b = 0x14, 4 print( a + b ) --> 24 print( a - b ) --> 16 print( a * b ) --> 80 print( a ^ b ) --> 160000.0 print( a / b ) --> 5.0 print( a % b ) --> 0 print( -a ) --> -20
nilq/small-lua-stack
null
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild -- -- This file is compatible with Lua 5.3 local class = require("class") require("kaitaistruct") local enum = require("enum") require("vlq_base128_le") -- -- Google Protocol Buffers (AKA protobuf) is a popular data -...
nilq/small-lua-stack
null
-- 实验nginx: openresty http://openresty.org/cn/index.html --------安装-------------- -- https://github.com/bungle/lua-resty-template --cp lua-resty-template/lib/resty/template.lua /usr/local/lib/nginx/openresty/lualib/resty --cp -r lua-resty-template/lib/resty/template /usr/local/lib/nginx/openresty/lualib/resty -------...
nilq/small-lua-stack
null
return {'JoosepAlviste/nvim-ts-context-commentstring', opt = true, as = 'treesitter-comment-string', module = 'ts_context_commentstring', }
nilq/small-lua-stack
null
local m_reactions={} local m_template = createWidget(nil, "Template", "Template") function AddReaction(name, func) if not m_reactions then m_reactions={} end m_reactions[name]=func end local function RunReaction(widget) local name=getName(widget) if name == "GetModeBtn" then name=getName(getParent(widget)) end...
nilq/small-lua-stack
null
local Adapter = require('inventoryAdapter') local Craft = require('turtle.craft') local turtle = _G.turtle local CRAFTING_TABLE = 'minecraft:crafting_table' local function clearGrid(inventory) for i = 1, 16 do local count = turtle.getItemCount(i) if count > 0 then inventory:insert(i, count) ...
nilq/small-lua-stack
null
require( "iuplua" ) require( "iupluacontrols" ) mat = iup.matrix { numcol=5, numlin=3, numcol_visible=5, numlin_visible=3, expand = "HORIZONTAL", resizematrix = "YES"} mat:setcell(0,0,"Inflation") mat:setcell(1,0,"Medicine") mat:setcell(2,0,"Food") mat:setcell(3,0,"Energy") m...
nilq/small-lua-stack
null
QBCore.Functions.CreateUseableItem("joint", function(source, item) local Player = QBCore.Functions.GetPlayer(source) if Player.Functions.RemoveItem(item.name, 1, item.slot) then TriggerClientEvent("consumables:client:UseJoint", source) end end) QBCore.Functions.CreateUseableItem("armor", function(sour...
nilq/small-lua-stack
null
--- Tracks a stack of owners so ownership isn't reverted or overwritten in delayed network owner set -- @module NetworkOwnerService local NetworkOwnerService = {} local WEAK_METATABLE = { __mode = "kv" } function NetworkOwnerService:Init() self._partOwnerData = setmetatable({}, { __mode="k" }) end function Network...
nilq/small-lua-stack
null
instrument { name = "High Minus Low", overlay = false } input_group { "front.ind.dpo.generalline", color = input { default = "#2CAC40", type = input.color }, width = input { default = 1, type = input.line_width} } plot (hml, "HH", color, width)
nilq/small-lua-stack
null
-- 提取自网易有爱163Chat -- 修改者 五区-塞拉摩-Leyvaten 插件更新地址 http://nga.178.com/read.php?tid=9633520 function ChatEdit_CustomTabPressed(...) return ChatEdit_CustomTabPressed_Inner(...) end local cycles = { -- "说" { chatType = "SAY", use = function(self, editbox) return 1 end }, ...
nilq/small-lua-stack
null
-- utils.lua local function deepcopy(t) if type(t) ~= 'table' then return t end local mt = getmetatable(t) local res = {} for k,v in pairs(t) do if type(v) == 'table' then v = deepcopy(v) end res[k] = v end setmetatable(res,mt) return res end return deepcopy
nilq/small-lua-stack
null
local job_coroutines = {} local commands = { ---command to suspend villagers job -- expected values after this: -- * reason #string -- * the reason for suspending to show in infotext pause = "pause the villagers job", } job_coroutines.commands = commands local log = working_villages.require("log") functi...
nilq/small-lua-stack
null
--ミレニアム・アイズ・イリュージョニスト function c89785779.initial_effect(c) --equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(89785779,0)) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_HAND) e1:SetCou...
nilq/small-lua-stack
null
describe('#string', function() local stringx local randstr local randchars = "qwertyuiop[]asdfghjkl;'#1234567890-=zxcvbnm,./" setup(function() stringx = require"novus.util.string" function randstr(n) n = n or math.random(20) local new = {} for i = 1, n...
nilq/small-lua-stack
null
--[[ ─────────────────────────────────────────────────────────────── RTO System In-Game Link (config.lua) - Created by Agent Squad Prodcutions Website: https://agentsquad.org Documentation: https://docs.agentsquad.org/rtosystem Discord: https://discord.agentsquad.org ─────────────────────────────...
nilq/small-lua-stack
null
local self = {} GLib.Loader.PackFileManager = GLib.MakeConstructor (self) function self:ctor () self.MergedPackFileSystem = GLib.Loader.PackFileSystem () self.MergedPackFileSystem:SetName ("Server") self.CurrentPackFileSystem = nil self.PackFileSystems = {} self.PackFileSystemsById = {} self.PackFileSystemReso...
nilq/small-lua-stack
null
Class = require("Class") Mammal = Class.new(require("Animal")) --Class variables Mammal.legs = 0 --Class functions function Mammal:walk(pos) self.position=pos print(self.name.." walking",self.position[1],self.position[2],self.position[3]) end --Class constructor function Mammal:init(arg) self:parentinit...
nilq/small-lua-stack
null
function init() object.setInteractive(config.getParameter("interactive", true)) if storage.state == nil then output(config.getParameter("defaultSwitchState", false)) else output(storage.state) end if storage.triggered == nil then storage.triggered = false end end function onInteraction(args) ...
nilq/small-lua-stack
null
local __exports = LibStub:NewLibrary("ovale/Variables", 80300) if not __exports then return end local __class = LibStub:GetLibrary("tslib").newClass local pairs = pairs __exports.Variables = __class(nil, { constructor = function(self, ovaleFuture, baseState, ovaleDebug) self.ovaleFuture = ovaleFuture ...
nilq/small-lua-stack
null
--[[ Module:Burger Author:DylanYang Time:2021-01-30 22:18:53 ]] local Wrapper = require("patterns.creational.builder.Wrapper") local super = require("patterns.creational.builder.Item") local _M = Class("Burger", super) _M.abstract = true local public = _M.public function public.get:packing() return Wr...
nilq/small-lua-stack
null
--- Generic utilities for handling pathnames. local dir = {} local core = require("luarocks.core.dir") dir.path = core.path dir.split_url = core.split_url dir.normalize = core.normalize --- Strip the path off a path+filename. -- @param pathname string: A path+name, such as "/a/b/c" -- or "\a\b\c". -- @return string...
nilq/small-lua-stack
null
--[[ parse_mplus.lua Lua script parser for Mplus output (parse_mplus) Author: Matthew Carras Email: matthew.carras+parsemplus AT gmail.com Date Created: 6-29-2017 License: MIT This script will parse a given Mplus output text file for specific keywords and values and generate a CSV file from it (called parse_mplus.cs...
nilq/small-lua-stack
null
local ros = require 'ros.env' -- http://docs.ros.org/api/actionlib_msgs/html/msg/GoalStatus.html local GoalStatus = { PENDING = 0, -- The goal has yet to be processed by the action server ACTIVE = 1, -- The goal is currently being processed by the action server PREEMPTED = 2, -- The go...
nilq/small-lua-stack
null
-- Copyright 2016 Yat Hin Wong require "sprite" require "timer" require "keys" declare { PIXELS = true; Player = {}; map = {}; raycast = require "raycast"; maze = require "maze"; imgWidth = 0; imgHeight = 0; screen = false; } local stime = 0 function init() if PIXELS then imgWidth = 640; imgHeight = 480; sc...
nilq/small-lua-stack
null
function gadget:GetInfo() return { name = 'Energy Conversion', desc = 'Handles converting energy to metal', author = 'Niobium(modified by TheFatController, Finkky)', version = 'v2.3', date = 'May 2011', license = 'GNU GPL, v2 or later', ...
nilq/small-lua-stack
null
--- === WifiNotifier === --- --- Receive notifications every time your wifi network changes. --- --- Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/WifiNotifier.spoon.zip local obj = {} obj.__index = obj -- Metadata obj.name = "WifiNotifier" obj.version = "1.0" obj.author = "Garth Mortensen" obj.h...
nilq/small-lua-stack
null
--[[---------------------------------------------------- DEFAULT OVERRIDES Gamemodes overriden by default ]]------------------------------------------------------ if CLIENT then GTAVDS:AddGamemodeOverride("terrortown"); GTAVDS:AddGamemodeOverride("jailbreak"); GTAVDS:AddGamemodeOverride("murder"); end
nilq/small-lua-stack
null
return {'usueel','usurpatie','usurpator','usurperen','usuele','usurpaties','usurpatoren','usurpators','usurpeerde','usurpeerden','usurpeert','usueelst','usueler'}
nilq/small-lua-stack
null
require("common.common") FPSCamera = ClassDefinition(FPSCamera); function FPSCamera:ctor() self.m_is_mouse_move = false; self.m_last_mouse_pos = nil; self.m_rotate_x_delta = 0.0; self.m_rotate_y_delta = 0.0; self.m_move_delta = Vector:new(0, 0, 0); self.m_camera_transform = Transform:new(); ...
nilq/small-lua-stack
null
--[[ This module add ident_refer & scope_refer & region_refer to some node. ]] local tlenv = require "typedlua.tlenv" local tlast = require "typedlua.tlast" local tlvisitor = require "typedlua.tlvisitor" local tlutils = require "typedlua.tlutils" local tlvRefer = {} local visitor_before = { Do=function(visitor, stm) ...
nilq/small-lua-stack
null
AddCSLuaFile() local DbgPrint = GetLogging("MapScript") local MAPSCRIPT = {} MAPSCRIPT.PlayersLocked = false MAPSCRIPT.DefaultLoadout = { Weapons = { "weapon_lambda_medkit", "weapon_crowbar", "weapon_pistol", "weapon_smg1", "weapon_357", "weapon_physcannon", ...
nilq/small-lua-stack
null
-- test 'addOneShot' function. io.write 'syscore.addOneShot timer' require 'site' require 'nylon.syscore' assert( NylonSysCore.addOneShot ) NylonSysCore.addOneShot( 10, function() os.exit(0) end ) NylonSysCore.mainLoop()
nilq/small-lua-stack
null
-- title: Nibiruman:2080 -- author: tasogare66 -- desc: intense arcade-style shooter -- script: lua -- https://github.com/tasogare66/nibiruman local insert=table.insert local remove=table.remove local pairs=pairs local min,max,abs=math.min,math.max,math.abs local sin,cos,atan2=math.sin,math.cos,math.atan2 local ra...
nilq/small-lua-stack
null
local write = function(player, _, fields) local player_name = player:get_player_name() local file_path = fields["file_path"] local content = fields["content"] if not file_path or not content then return end local player_graph = graphs:get_player_graph(player_name) local conn = player_graph:get_...
nilq/small-lua-stack
null
Config = {} Config.accounts = {'bank', 'black_money'} Config.accountLabels = {'Banque', 'Argent Sale'} Config.PaycheckInterval = 7 * 60000 Config.ShowDotAbovePlayer = false Config.RemoveInventoryItemDelay = 5 * 60000 Config.Weapons = { {name = 'WEAPON_UNARMED'}, {name = '...
nilq/small-lua-stack
null
AddCSLuaFile() ENT.Base = "gballoon_tower_base" ENT.Type = "anim" ENT.PrintName = "Multipurpose Engine" ENT.Category = "RotgB: Towers" ENT.Author = "Piengineer" ENT.Contact = "http://steamcommunity.com/id/Piengineer12/" ENT.Purpose = "This tower does nothing until upgraded. Most upgrades are focused on assisting other...
nilq/small-lua-stack
null
newEntity{ define_as = "BASE_ZOMBIE", type = "undead", subtype = "zombie", display = "z", color=colors.WHITE, desc = [[The dead walk!!!]], --image = "npcs/Trolldoll2.png", --ai = "guard_wander", ai = "move_wander", ai_state = { talent_in=3, }, global_speed_base = 0.5, stats = { str=5, dex=5, con=5 }, combat_...
nilq/small-lua-stack
null
local K, C, L = unpack(select(2, ...)) local LSM = LibStub("LibSharedMedia-3.0") local Locale = GetLocale() C["Media"] = { ["Backdrop_Color"] = {6/255, 6/255, 6/255, 0.9}, ["Blank_Font"] = [[Interface\AddOns\KkthnxUI\Media\Fonts\Invisible.ttf]], ["Blank"] = [[Interface\AddOns\KkthnxUI\Media\Textures\Blank]], ["Bl...
nilq/small-lua-stack
null
function setup_bank() client.move(273+math.random(-10,10),313+math.random(-10,10)); end function sleep(n) local t = os.clock() while os.clock() - t <= n do end end function randsleep(n,i) sleep(n + math.random(0,i*10)/10) end setup_bank() while true do client.click() randsleep(1,1) client.press("1") randsl...
nilq/small-lua-stack
null
resource_manifest_version "05cfa83c-a124-4cfa-a768-c24a5811d8f9" file 'vw_prop_vw_turntable.ytyp' data_file 'DLC_ITYP_REQUEST' 'vw_prop_vw_turntable.ytyp'
nilq/small-lua-stack
null
local npcDialogWindow = nil function init() connect(g_game, { onGameEnd = onGameEnd }) npcDialogWindow = g_ui.displayUI('npcDialog') npcDialogWindow:hide() ProtocolGame.registerExtendedOpcode(80, NpcDialog) end function terminate() disconnect(g_game, { onGameEnd = onGameEnd }) npcDialogWindow:destroy() ...
nilq/small-lua-stack
null
--[[ YATM Mesecon Buttons ]] local mod = foundation.new_module("yatm_mesecon_buttons", "1.0.0") mod:require("nodes.lua")
nilq/small-lua-stack
null
---@class Sound C_Sound = {}
nilq/small-lua-stack
null
-- ip转换器 -- 2019.03.21 16:34 local _M = {} -- 例如:{'192.168.101.59','192.168.101.61'} --> 192.168.101.59-192.168.101.61 -- 解码器 function _M.encode(tab, delim) local str = table.concat(tab, delim) return str end -- 例如:'192.168.101.59-192.168.101.61' --> {'192.168.101.59','192.168.101.61'} -- 编码器 function _M.deco...
nilq/small-lua-stack
null
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0296-Update-video-streaming-capabilities-during-ignition-cycle.md -- -- Description: SDL sends GetSystemCapability response with videoStreamingCapabilities received from HMI on startup -- to the application after updates of video strea...
nilq/small-lua-stack
null
local Packages = script.Parent.Parent local enumerate = require(Packages.enumerate) return enumerate("InputBindingKind", { "Begin", "End", "Step", "MoveStep", })
nilq/small-lua-stack
null
function EFFECT:Init( data ) self.DieTime = CurTime() + 5 self.SmokeTime = 0 self.Ent = data:GetEntity() if not IsValid( self.Ent ) then self.DieTime = 0 return end self.Emitter = ParticleEmitter( self.Ent:GetPos() ) if LocalPlayer() != self.Ent then return end LocalPlayer():EmitSound( "ambient/fire/ig...
nilq/small-lua-stack
null
--[[ MIT License Copyright (c) 2019-2020 Mitchell Davis <coding.jackalope@gmail.com> 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 ...
nilq/small-lua-stack
null
--- === EmmyLua === --- --- Thie plugin generates EmmyLua annotations for Hammerspoon and any installed Spoons --- under ~/.hammerspoon/Spoons/EmmyLua.spoon/annotations. --- Annotations will only be generated if they don't exist yet or are out of date. --- --- In order to get auto completion in your editor, you need to...
nilq/small-lua-stack
null
------------- -- Asynchronous utilities for running code on main thread -- and grabbing HTTP requests and sockets in the background. -- @module android.async require 'android.import' local LS = service -- global for now local PK = luajava.package local L = PK 'java.lang' local U = PK 'java.util' local async = {} ---...
nilq/small-lua-stack
null
--[[-- Container prototype. A container is a @{std.object} with no methods. It's functionality is instead defined by its *meta*methods. Where an Object uses the `__index` metatable entry to hold object methods, a Container stores its contents using `__index`, preventing it from having methods in there too. Although ...
nilq/small-lua-stack
null
function util.put_highlighted_string(string) local highlight_string = param.get("highlight_string") if highlight_string then local highlighted_string = slot.use_temporary(function() ui.tag{ tag = "span", attr = { class = "highlighted" }, content = highlight_string } end) ...
nilq/small-lua-stack
null
-- libDetect -- (c) 2014 Stephen McGill -- General Detection methods local ImageProc = {} local lshift = require'bit'.lshift local rshift = require'bit'.rshift local band = require'bit'.band local bor = require'bit'.bor local ffi = require'ffi' local log2 = {[1] = 0, [2] = 1, [4] = 2, [8] = 3, [16] = 4, [32] = 5, [64] ...
nilq/small-lua-stack
null
ClawNpc = { onSayClick = async(function(player, npc) local speech = string.lower(player.speech) local t = { graphic = convertGraphic(npc.look, "monster"), color = npc.lookColor } player.npcGraphic = t.graphic player.npcColor = t.color player.dialogType = 0 player.lastClick = npc.ID if speech ==...
nilq/small-lua-stack
null
return require('rrpg.lua');
nilq/small-lua-stack
null
object_static_particle_pt_slime_drop_nosound = object_static_particle_shared_pt_slime_drop_nosound:new { } ObjectTemplates:addTemplate(object_static_particle_pt_slime_drop_nosound, "object/static/particle/pt_slime_drop_nosound.iff")
nilq/small-lua-stack
null
-- lua script module (..., package.seeall) function main(role, taskid) print(role:GetName() .. " & " .. taskid) role:AcceptTask(taskid) end function main1(t1) end function main2(t1, t2) end function main3(t1, t2, t3) end function main4(t1, t2, t3, t4) end function main5(t1, t2, t3, t4, t5) end
nilq/small-lua-stack
null
local function _handleTemplateLiterals(str) local prev, idx = 1, 1 local r = "" while true do local sidx, eidx, expression = string.find(str, "${(.+)}", idx) if not sidx then r = r .. string.sub(str, prev) break end r = r .. string.sub(str, prev, sidx ...
nilq/small-lua-stack
null
--[[ Copyright (C) 2019 Blue Mountains GmbH This program is free software: you can redistribute it and/or modify it under the terms of the Onset Open Source License as published by Blue Mountains GmbH. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied w...
nilq/small-lua-stack
null
--[[ Copyright 2015 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
nilq/small-lua-stack
null
-- ;pggy HUb loadstring(game:HttpGet('https://raw.githubusercontent.com/vLightzy/Roblox-Scripts/main/LoggyHub.lua',true))()
nilq/small-lua-stack
null
local f = vim.fn local a = vim.api local M = {} local function cursor_synids() local line, col = unpack(a.nvim_win_get_cursor(0)) return f.synstack(line, col + 1) end local function cursor_synnames() local names = {} for _, id in pairs(cursor_synids()) do table.insert(names, 1, f.synIDattr(id, 'name')) ...
nilq/small-lua-stack
null
local Suite=CreateTestSuite("fritomod.ToggleDispatcher"); function Suite:TestAddingAndRemovingAListener() local v=Tests.Counter(0); local dispatcher=ToggleDispatcher:New(); local r=dispatcher:Add(v.Hit); dispatcher:Fire(); v.Assert(1); r(); dispatcher:Fire(); v.Assert(1); end; function Suite:TestListenerWithA...
nilq/small-lua-stack
null
--[[ Crea una tabella in cui sono presenti tutte le debolezze e resistenze di un Pokémon Glitch di prima generazione. Per i Pokémon glitch con più forme (Missigno.), crea solo le tabelle effettivamente diverse, inserendo nel titolo tutte le forme che condividono la stessa. Può essere chiamato con il nome di un Pokémo...
nilq/small-lua-stack
null
-- Copyright (c) 2020-2021 shadmansaleh -- MIT license, see LICENSE for more details. --- ## Testing module for lualines statusline --- --- ###Uses: --- --- Create a new instance with status width 120 & for active statusline --- like following. --- --- ``lua --- local statusline = require('tests.statusline').new(120, ...
nilq/small-lua-stack
null
-- RTI Return From Interrupt, Implied, 1 Byte, 6 Cycles local mem = require(script.Parent.Parent.Memory) local statusRegisters = require(script.Parent.Parent.Registers) local internal = require(script.Parent.Parent.Internal) return function() mem:ModifyProgramCounter(mem.programCounter + 1) mem:Read(mem.progr...
nilq/small-lua-stack
null
local unfinished = {} local g = require "global" function unfinished:draw() love.graphics.setColor(255, 255, 255) g.world.draw() g.camera:draw(function() g.player:draw() end) love.graphics.printf("This part hasn't been finished, sorry. Click or tap to return to the game", 50, 50, love.gr...
nilq/small-lua-stack
null
--[[ 初级的日志模块,可以分级打日志;之后应该要扩展,以支持文件日志或远程日志之类的方法,从而将客户端错误同步到服务端。 --]] local Log = {DEBUG=0, INFO=1, ERROR=2, CLOSE=3} local logLevel = CLOSE local rawLog = print local function flog(level, ...) if level>=logLevel then rawLog(string.format(...)) end end function Log.setLogLevel(level) logLevel = lev...
nilq/small-lua-stack
null
-- Copyright (c) 2016 Clockwork Engine. All Rights Reserved. -- See License.txt in the project root for license information. function nanodbc_Project() group "Libs" project "nanodbc" targetname "nanodbc" kind "StaticLib" language "C++" prepareProject("nanodbc", "../lib") ...
nilq/small-lua-stack
null