content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
local snake = class("snake") local Body = require("app.Body") local cInitLen = 9 function snake:ctor(node) print("snake:ctor") self.BodyArray = {} self.node = node for i=1, cInitLen do self:Grow(i == 1) end self:SetDir("left") --print("snake:ctor--------",self:moveDir) end --取...
nilq/small-lua-stack
null
local AceGUI = LibStub("AceGUI-3.0") local LibJSON = LibStub("LibJSON-1.0") local DB = DKBLootLoader:UseModule("DB") local GUI = DKBLootLoader:RegisterModule("GUI") local Util = DKBLootLoader:UseModule("Util") local COLOR_RAID_ACTIVE = { ["r"] = 0.0, ["g"] = 1.0, ["b"] = 0.0, ["a"] = 1.0 } local COLOR_RAID_FINISHED = {...
nilq/small-lua-stack
null
object_tangible_tcg_series7_decal_imperial_graffiti_01 = object_tangible_tcg_series7_shared_decal_imperial_graffiti_01:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series7_decal_imperial_graffiti_01, "object/tangible/tcg/series7/decal_imperial_graffiti_01.iff")
nilq/small-lua-stack
null
minetest.register_node(":technic:test_chest", { description = "Technic chest", groups = { snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, tubedevice = 1, tubedevice_receiver = 1, technic_chest = 1, }, on_receive_fields = function(...) print(...) end, on_skeleton_key_use = function(...) print(...) end, tu...
nilq/small-lua-stack
null
--[[ Copyright 2020 Manticore Games, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
nilq/small-lua-stack
null
require 'plugins.gitsigns.setting'
nilq/small-lua-stack
null
local actions = require "telescope.actions" local action_state = require "telescope.actions.state" local conf = require "telescope.config".values local finders = require "telescope.finders" local Path = require("plenary.path") local pickers = require "telescope.pickers" local entry_display = require("telescope.pickers....
nilq/small-lua-stack
null
-- The active filesystem object. afs = {} afs.isMountable = false afs.drive=false -- This will overwrite the fs.write object. function afs.write(data, location) if (fs.drive==false) then return false, 'DRIVENOTLOADED' end -- Get filename with regexp local filename = location:match('([^/]+)$') local filep...
nilq/small-lua-stack
null
local addonName, G = ... assert(not G.Event) G.Event = {} local events = {} function G.Event.Register() G.Core.RegisterEventHandlers(events) end function events.ADDON_LOADED(name) if name == addonName then G.State.LoadFromTable(_G['OlliverrsTravelsPlayerData'] or {}) _G['OlliverrsTravelsPlayerData'] = ni...
nilq/small-lua-stack
null
--[[ Name: cl_init.lua For: SantosRP By: TalosLife ]]-- include "shared.lua" ENT.RenderGroup = RENDERGROUP_BOTH function ENT:Initialize() end function ENT:Draw() end surface.CreateFont( "MenuTriggerFont", {size = 128, weight = 425, font = "Trebuchet18"} ) local function DrawMenuTriggerUI( ent ) surface.SetFont(...
nilq/small-lua-stack
null
for _, v in pairs(t) do local x = f() if x then f(function() return v end) else g(function() return v end) end end
nilq/small-lua-stack
null
local get_hex = require('cokeline/utils').get_hex local is_picking_focus = require('cokeline/mappings').is_picking_focus local is_picking_close = require('cokeline/mappings').is_picking_close local red = vim.g.terminal_color_1 local yellow = vim.g.terminal_color_3 -- local modified_fg = get_hex('Todo', 'bg') local mod...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- protocol.lua -------------------------------------------------------------------------------- local _PACKAGE = (...):match("^(.+)[%./][^%./]+") or "" local ERROR_MSG = tengine.ERROR_MSG local p = tengine.p local parser = require(_PAC...
nilq/small-lua-stack
null
local Root = script.Parent local ContentProvider = game:GetService("ContentProvider") local ItemType = require(Root.Enums.ItemType) local BASE_URL = string.gsub(ContentProvider.BaseUrl:lower(), "https?://m.", "https?://www.") local THUMBNAIL_URL = BASE_URL.."thumbs/asset.ashx?assetid=" local BUNDLE_THUMBNAIL_URL = BAS...
nilq/small-lua-stack
null
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
nilq/small-lua-stack
null
-- See LICENSE for terms -- local some stuff that's called a lot local tostring = tostring local point = point local Sleep = Sleep local GameTime = GameTime local DeleteThread = DeleteThread local PlayFX = PlayFX local IsValid = IsValid local GetCursorWorldPos = GetCursorWorldPos local Random = ChoGGi.ComFuncs.Random...
nilq/small-lua-stack
null
local function WithinBox(v, v1, v2) local x, y, z, x1, y1, z1, x2, y2, z2 = v[1], v[2], v[3], v1[1], v1[2], v1[3], v2[1], v2[2], v2[3] return ((x >= x1 and x <= x2) or (x <= x1 and x >= x2)) and ((y >= y1 and y <= y2) or (y <= y1 and y >= y2)) and ((z >= z1 and z <= z2) or (z <= z1 and z >= z2)) end CreateConVar("sp...
nilq/small-lua-stack
null
Locales ['br'] = { ['buy'] = 'Você comprou', ['not_enough_black'] = 'Você não tem dinheiro sujo suficiente', ['not_enough'] = 'você não tem dinheiro suficiente', ['shop'] = 'Comprar', ['shop_menu'] = 'Pressione ~INPUT_CONTEXT~ para comprar armas.', ['map_blip'] = 'Loja de Armas', }
nilq/small-lua-stack
null
local included = pcall(debug.getlocal, 6, 1) local lst = require("list").new() local T = require("u-test") lst:pushl("b") -- push last 'b' lst:pushf("a") -- push first 'a' for i = 1, 4, 1 do lst:pushl(tostring(i)) -- push last '1, 2, 3, 4' end lst:pushl({ 5, 6, 7 }) -- push table lst:pushl(8) -- push number lst:pus...
nilq/small-lua-stack
null
setenv("BAD_SYNTAX","1.0") # This is not a comment.
nilq/small-lua-stack
null
local options = require('matchparen.options') local hl = require('matchparen.highlight') local nvim = require('matchparen.missinvim') local fn = vim.fn local opts = options.opts local mp = {} ---Returns true when augroup with `name` exists ---@param name string ---@return boolean local function augroup_exists(name) ...
nilq/small-lua-stack
null
DesignStudio = class() function DesignStudio:init(l, b, r, t) -- boundary self.frame = Frame(l, b, r, t) -- textbox for name self.tb = TextBox(self.frame:midX() - 160, b + 30, 200, "") -- color selector & frame self.colorFrame = Frame(150, 600, 260, 624) self.showColorSlider = fal...
nilq/small-lua-stack
null
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BceBattleReward_pb', package.seeall) local BCEBATTLEREWARD = protobuf.Descriptor(); local BCEBATTLEREWARD_SLOT_FIELD = protobuf.FieldDescriptor(); BCEBATTLEREWARD_SLOT_FIELD.name = "slot" BCEBATTLEREWARD_SLOT_FIELD.full_name = ".c...
nilq/small-lua-stack
null
local count_of_start = cache:get("key") if not(count_of_start) then count_of_start = 1 end function collect() time.sleep(1) if count_of_start == 1 then cache:set("key", count_of_start+1) error("first error") end if count_of_start == 2 then error("must not be this error") end cache:set("key",...
nilq/small-lua-stack
null
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
nilq/small-lua-stack
null
local function CreateRobot(name,id) local obj = {name = name,id = id} function obj:SetName(name) self.name = name end function obj:GetName() return self.name end function obj:SetId(id) self.id = id end function obj:GetId() return self.id end return obj end local function ...
nilq/small-lua-stack
null
local convarTextScale = CreateClientConVar("advisor_text_scale", "1", true, false, "Change text font scale from 50% to 200%", 0.5, 2) local function SizeByRatio(x, is_static) return x / 2560 * ScrW() * ( is_static and 1 or convarTextScale:GetFloat() ) end local function GenerateAdvisorFonts() surface.CreateFont...
nilq/small-lua-stack
null
-- =================================== -- Copyright © 2022 Relief Development -- =================================== Citizen.CreateThread(function() TriggerEvent('chat:addSuggestion', '/twt', 'Send messages via Twitter in chat', { { name="Message", help="/twt Example"} }) TriggerEvent('ch...
nilq/small-lua-stack
null
local _M = {} local utils = require("core.utils.utils") local dynamicd_build = require("core.dao.dynamicd_build_sql") local dao_config = require("core.dao.config") local co_parameter_dao = require("core.dao.co_parameter_dao") local user_log = require("core.log.user_log") function _M.query_info_by_id(store,id) loc...
nilq/small-lua-stack
null
workspace "classic-games" architecture "x64" configurations { "Debug", "Release" } project "classic-games" kind "ConsoleApp" language "C++" targetdir "bin/%{cfg.architecture}/%{cfg.buildcfg}" objdir "bin/intermediates/%{cfg.architecture}/%{cfg.buildcfg}" files { "src/**.hp...
nilq/small-lua-stack
null
BuildEnv(...) MOUNT_MAP = nil APP_RAID_MAPS = ListToMap{1861} APP_RAID_DIFFICULTIES = ListToMap{14,15,16}
nilq/small-lua-stack
null
local text_color_info = Color(61, 206, 217) local text_command_color = Color(227, 209, 11) local text_version_color = Color(237, 153, 43) local function version_check() http.Fetch('https://raw.githubusercontent.com/Shark-vil/background-citizens/master/version.txt', function(github_version, length, headers, code) ...
nilq/small-lua-stack
null
local class = require 'ext.class' local Set = require 'symmath.set.Set' -- the set of all things local Universal = class(Set) --[[ so this is 'true' but then all subclasses are 'true' but contrarily any subset of Universal that isn't equal will have a 'false' somewhere so the subclass == subset idea is a bad one from...
nilq/small-lua-stack
null
--Register with LibStub local MAJOR, MINOR = "Up_UiController", 2 local LIB, _ = LibStub:NewLibrary(MAJOR, MINOR) if not LIB then return end -- avoid double loading. --- Used to initialize UI for ThiefHelper. local UiTools = LibStub:GetLibrary("Up_UiTools") local UiFactory = LibStub:GetLibrary("Up_UiFactory") -- Cre...
nilq/small-lua-stack
null
--- standard-code: ouput code blocks with class="language-*" attributes -- © 2020 Aman Verma. Distributed under the MIT license. local languages = {meta = true,markup = true,css = true,clike = true,javascript = true,abap = true,abnf = true,actionscript = true,ada = true,agda = true,al = true,antlr4 = true,apacheconf =...
nilq/small-lua-stack
null
local _2afile_2a = "fnl/snap/producer/ripgrep/file.fnl" local snap = require("snap") local tbl = snap.get("common.tbl") local general = snap.get("producer.ripgrep.general") local file = {} local args = {"--line-buffered", "--files"} file.default = function(request) local cwd = snap.sync(vim.fn.getcwd) return genera...
nilq/small-lua-stack
null
local kBackgroundColor = Color(0.0, 0.0, 0.0, 0.5) local kChatTextBuffer = 5 local kChatTextPadding = 12 local cutoffAmount = Client.GetOptionInteger("chat-wrap", 25) local kBackgroundTimeStartFade = 1.5 -- needed by shine because it's bad at recursing local kOffset = debug.getupvaluex(GUIChat.Update, "kOffset") de...
nilq/small-lua-stack
null
return { entities = { {"kr-wind-turbine", {x = 2.5, y = -3}, {}}, {"small-electric-pole", {x = -2.5, y = -1}, {dmg = {dmg = {type = "random", min = 20, max = 60}}, }}, {"small-electric-pole", {x = 2.5, y = -1}, {}}, {"kr-wind-turbine", {x = -2.5, y = 2}, {dmg = {dmg = {type = "random", min = 40, max...
nilq/small-lua-stack
null
----------------------------------- -- -- Zone: Attohwa_Chasm (7) -- ----------------------------------- local ID = require("scripts/zones/Attohwa_Chasm/IDs") require("scripts/globals/settings") require("scripts/globals/helm") require("scripts/globals/zone") ----------------------------------- function onInitialize(zo...
nilq/small-lua-stack
null
local QBCore = exports['qb-core']:GetCoreObject() QBCore.Functions.CreateCallback('zonama:server:get-items', function(source, cb) local src = source local player = QBCore.Functions.GetPlayer(src) if player then -- get all items and join category local items = MySQL.Sync.fetchAll( ...
nilq/small-lua-stack
null
--[[--------------- This is derived from LuaBit v0.4 Under the MIT license. copyright(c) 2006~2007 hanzhao (abrash_han@hotmail.com) --]]--------------- local function check_int(n) -- checking not float if(n - math.floor(n) > 0) then error("trying to use bitwise operation on non-integer!") end end lo...
nilq/small-lua-stack
null
local F, G, V = unpack(select(2, ...)) G.ace = LibStub("AceAddon-3.0"):NewAddon("gempUI", "AceConsole-3.0", "AceEvent-3.0") local options = { name = "gempUI", handler = G.ace, type = 'group', childGroups = "tab", args = { general = { name = "General", type = 'group'...
nilq/small-lua-stack
null
local select = _G.select local function chunk(arr, ...) local n = select("#", ...) if n == 0 then return arr else local result, t = {}, {} local j, k, kmodn, m = 1, 1, 1, select(1, ...) for i = 1, #arr do t[j] = arr[i] if j >= m then result[k] = t kmodn, k, j, t = kmodn % n + 1, k + 1, 1, {} ...
nilq/small-lua-stack
null
local link_id = redis.call("INCR", KEY[1]) redis.call("HSET", KEYS[2], link_id, ARGV[1]) return link_id
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- ----------------------------------- DevDokus ----------------------------------- -------------------------------------------------------------------------------- function DrawCircle(x,y,z,r,g,b,a) Citizen.InvokeNative(0x2A32FAA57B937173,...
nilq/small-lua-stack
null
local ObjectManager = require("managers.object.object_manager") KnightTrials = ScreenPlay:new {} function KnightTrials:startKnightTrials(pPlayer) local randomShrinePlanet = JediTrials:getRandomDifferentShrinePlanet(pPlayer) local pRandShrine = JediTrials:getRandomShrineOnPlanet(randomShrinePlanet) if (pRandShrine...
nilq/small-lua-stack
null
return { version = "1.4", luaversion = "5.1", tiledversion = "1.4.3", orientation = "orthogonal", renderorder = "right-down", width = 32, height = 22, tilewidth = 8, tileheight = 8, nextlayerid = 5, nextobjectid = 1352, properties = {}, tilesets = { { name = "tiles-overworld", ...
nilq/small-lua-stack
null
function PLUGIN:PostLoadData() local query = mysql:Create("gmodz_squads") query:Create("owner", "VARCHAR(20) NOT NULL") -- steamid64 query:Create("name", "VARCHAR(64) NOT NULL") -- Max squad name length: 64 characters query:Create("description", "TEXT") query:Create("logo", "VARCHAR(15) DEFAULT NULL") -- Imgur...
nilq/small-lua-stack
null
local ffi = require("ffi") local ffi_util = require("common.ffi_util") do --- test-ffi-bitfield local x = ffi.new([[ union { uint32_t u; struct { int a:10,b:10,c:11,d:1; }; struct { unsigned int e:10,f:10,g:11,h:1; }; struct { int8_t i:4,j:5,k:5,l:3; }; struct { _Bool b0:1,b1:1,b2:...
nilq/small-lua-stack
null
--************************ --ChoiceMenu --************************ ChoiceMenu = {} ChoiceMenu.__index = ChoiceMenu function ChoiceMenu.new(text, callback) local self = setmetatable({}, ChoiceMenu) self.menuItems = {} self.currMenuItem = 1 self.win = nil return self end function ChoiceMenu:onInput(input)...
nilq/small-lua-stack
null
require 'nngraph' local utils = require 'utils.utils' local layer, parent = torch.class('nn.MultiModel', 'nn.Module') function layer:__init(opt, nLabel) parent.__init(self) local parms = {} parms.conv_feat_size = utils.getopt(opt, 'conv_feat_size', 256) parms.multfeat_dim = utils.getopt(opt, 'multfe...
nilq/small-lua-stack
null
object_mobile_rebel_emperorsday_vendor = object_mobile_shared_rebel_emperorsday_vendor:new { } ObjectTemplates:addTemplate(object_mobile_rebel_emperorsday_vendor, "object/mobile/rebel_emperorsday_vendor.iff")
nilq/small-lua-stack
null
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local UF = E:GetModule('UnitFrames'); --Cache global variables --Lua functions local floor = math.floor --WoW API / Variables local CreateFrame = CreateFrame function UF:Construct_AltPowerBar(frame) local altpower...
nilq/small-lua-stack
null
--[[ s:UI Context Menu: Units (and Friends) TODO: BIG FAT conditions cleanup. (Took most of them from ContextMenuPlayer) Martin Karer / Sezz, 2014 http://www.sezz.at --]] local MAJOR, MINOR = "Sezz:Controls:ContextMenu-0.1", 1; local ContextMenu = Apollo.GetPackage(MAJOR).tPackage; if (ContextMenu and (Context...
nilq/small-lua-stack
null
local colors = require("tokyonight.colors").setup() colors = vim.tbl_extend("force", colors, { fg = colors.fg_sidebar, bg = colors.bg_statusline, }) return colors
nilq/small-lua-stack
null
-- Copyright (c) 2018 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("MergeSort", function() local MergeSort = require "mergesort" it("sorts elements as expected", function() local list = { "orange", "apple", "ba...
nilq/small-lua-stack
null
------------------------------------------------- -- Github Contributions Widget for Awesome Window Manager -- Shows the contributions graph -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/github-contributions-widget -- @author Pavel Makhov -- @copyright 2020 Pave...
nilq/small-lua-stack
null
#!/usr/bin/env lua -- Inverse Captcha (Part 1) for line in io.lines() do _, _, captcha, result = line:find("(%d+)%s+(%d+)") result = tonumber(result) sum = 0 for i = 1, #captcha do current = tonumber(captcha:sub(i, i)) next = tonumber(captcha:sub(i + 1, i + 1)) -- Because it'...
nilq/small-lua-stack
null
--- This file is generated by ava-x2l.exe, --- Don't change it manaully. --- @copyright Lilith Games, Project Da Vinci(Avatar Team) --- @see Official Website: https://www.projectdavinci.com/ --- @see Dev Framework: https://github.com/lilith-avatar/avatar-ava --- @see X2L Tool: https://github.com/lilith-avatar/avatar-av...
nilq/small-lua-stack
null
GM_IRC = {} if SERVER then include( "sv_config.lua" ) include( "gm-irc/sv_msgGet.lua" ) include( "gm-irc/sv_msgSend.lua" ) AddCSLuaFile( "gm-irc/cl_msgRecive.lua" ) print( "------------------\n" ) print( "GM-IRC LOADED!\n" ) print( "------------------" ) hook.Add("Initialize", "irc_serverstarted", functio...
nilq/small-lua-stack
null
ITEM.name = "Cheese Burger" ITEM.model = "models/food/burger.mdl" ITEM.hungerAmount = 150 ITEM.foodDesc = "burgerDesc" ITEM.quantity = 1 ITEM.price = 100 ITEM.iconCam = { ang = Angle(11.135420799255, 269.24069213867, 0), fov = 2.3069860161324, pos = Vector(2.5959460735321, 193.05519104004, 52.177997589111) }
nilq/small-lua-stack
null
-- Double-ended queue class (deque) -- Can be used as a queue or stack local Deque = {} -- Constructor function Deque:new(...) local object = { } setmetatable(object, { __index = Deque}) return object end function Deque:push(...) local args = {...} for i=1,#args do table...
nilq/small-lua-stack
null
if string.sub(system.getInfo("model"),1,4) == "iPad" then application = { content = { graphicsCompatibility = 1, width = 360, height = 480, scale = "letterBox", xAlign = "center", yAlign = "center", imageSuffi...
nilq/small-lua-stack
null
local t = require( "taptest" ) local isnan = require( "isnan" ) t( isnan( 0.0 ), false ) t( isnan( 1.0 / 0.0 ), false ) t( isnan( -1.0 / 0.0 ), false ) t( isnan( math.sqrt( -1.0 ) ), true ) t()
nilq/small-lua-stack
null
--[[ ------------------------------------ Description: HPC Spawn where killed (standalone), Phasor V2+ Copyright (c) 2016-2018 * Author: Jericho Crosby * IGN: Chalwk * Written and Created by Jericho Crosby ----------------------------------- ]]-- players = { } DEATH_LOCATION = { } Spawn_Where_Killed = true for i = 0, ...
nilq/small-lua-stack
null
-- English language strings local L = LANG.CreateLanguage("English") --- General text used in various places L.traitor = "Traitor" L.detective = "Detective" L.mercenary = "Mercenary" L.hypnotist = "Hypnotist" L.glitch = "Glitch" L.jester = "Jester" L.phantom = "Phantom" L.zombie = "Zombie" L.vampire = "Vampire" L.swa...
nilq/small-lua-stack
null
local gs = { lst = { clr = { active = {255, 255, 255}, inactive = {75, 75, 75} }, none = "[ ]" } } mAcl.gui.expert = {} function mAcl.gui.expert.init() local tab = mAcl.gui.tab local tw, th = guiGetSize(tab, false) ----------------------------- x, y = GS.mrg2, GS.mrg2 w, h = tw - GS.mrg2*2, ...
nilq/small-lua-stack
null
-- Globally used local G = getfenv(0) local select = select local oGlow = oGlow local hooksecurefunc = hooksecurefunc -- Containers local GetContainerItemLink = GetContainerItemLink local GetItemInfo = GetItemInfo -- Addon local frame = CreateFrame'Frame' frame:Hide() local ContainerFrame1 = Containe...
nilq/small-lua-stack
null
local Debug = { enabled = false, backgroundColor = {20, 20, 20, 200}, color = {255, 255, 255, 255}, padding = 8, text = love.graphics.newText(love.graphics.newFont(24), text) } function Debug.enable() Debug.enabled = true end function Debug.disable() Debug.enabled = false end function Deb...
nilq/small-lua-stack
null
------------------------------------------------------------------------------- -- ElvUI Chat Tweaks By Crackpotx (US, Lightbringer) -- Based on functionality provided by Prat and/or Chatter ------------------------------------------------------------------------------- local Module = ElvUI_ChatTweaks:NewModule("Search...
nilq/small-lua-stack
null
-- helper function, dprint logs at Log::Level::Debug in rust. function dprintf(...) dprint(string.format(...)) end -- example map function. In the example configuration file this -- function is called when you do a lookup in the map 'example_map'. -- -- If you request this URL: -- https://servername/.well-known/webni...
nilq/small-lua-stack
null
local class = require "lib.lua-oop" require "util.math.vector" require "util.color" require "engine.stage.hitbox" StageObject = class "StageObject" function StageObject:constructor(position, size, color) self.isFirstUpdate = true self.enabled = true self.visible = true self.rotation = 0 self.hi...
nilq/small-lua-stack
null
function jtorch._saveJoinTableNode(node, ofile) -- Save the dimension to join ofile:writeInt(node.dimension) end
nilq/small-lua-stack
null
local M = {} local json = require("deepl.json") local a = vim.api local uv = vim.loop local config = { url = nil, authkey = nil, } local current_win function M.close() if current_win then a.nvim_win_close(current_win.win, true) a.nvim_buf_delete(current_win.buf, { force = true }) ...
nilq/small-lua-stack
null
-- Documentation on the redis protocol found at http://redis.io/topics/protocol -- Encode a redis bulk string local function encode_bulk_string(str) assert(type(str) == "string") return string.format("$%d\r\n%s\r\n", #str, str) end -- Encode a redis request -- Requests are always just an array of bulk strings loca...
nilq/small-lua-stack
null
local pub = require 'pub' local fs = require 'bee.filesystem' local furi = require 'file-uri' local files = require 'files' local config = require 'config' local glob = require 'glob' local platform = require 'bee.platform' local await = require 'await' local rpath = requ...
nilq/small-lua-stack
null
AddCSLuaFile() ENT.Base = "base_entity" ENT.Type = "anim" ENT.Author = "Thendon.exe" ENT.Category = "Gspeak" ENT.AutomaticFrameAdvance = true ENT.RenderGroup = RENDERGROUP_OPAQUE ENT.Radio = true function ENT:Initialize() self:DrawShadow( false ) self.connected_radios = {} self.last_sound = 0 self.trigger_com = f...
nilq/small-lua-stack
null
{ name = "evt_pizzeria", hasAdmin = false, authors = { "Bolodefchoco#0000" }, description = "Pizzeria 2018 - event" }
nilq/small-lua-stack
null
function EFFECT:Init(data) self.lastpos=data:GetOrigin() self.rocket=data:GetEntity() self.Time=CurTime() self.Scale=data:GetScale() self.Length=data:GetRadius() self.Density=data:GetMagnitude() if self.Scale==0 then self.Scale=10 end if !self.rocket.emitter then self.rocket.emitter = ParticleEmitt...
nilq/small-lua-stack
null
return {'mccartney'}
nilq/small-lua-stack
null
-- 暫定版(動作未チェック) dofile("./lib/dig.lua") dofile("./lib/drop.lua") dofile("./lib/move.lua") dofile("./lib/place.lua") dofile("./lib/select.lua") dofile("./lib/turn.lua") -- 掘削サイズ width = 4 height = 4 depth = 100 -- 0を指定した場合は、燃料が尽きるまで直進する fuelMinLevel = (((width - 1) * 2) + ((height - 1) * 2)) * depth + (depth * 2) -- 最...
nilq/small-lua-stack
null
--//Vars//-- local Terminator = {} Term.Version = "3.4" Term.BlacklistedResourceNames = { 'AC', 'Anti', 'Cheat', 'Terminator', 'Modder', 'FixCheater', "Source", } --//BasicFuncitons//-- function Terminator:print(type, args) print("^1" .. "[" .. type .. "]" .. Term.Color .. "[Terminato...
nilq/small-lua-stack
null
local AddonName, AddonTable = ... -- Cata Junk AddonTable.junk = { 54629, -- Prickly Thorn 57071, -- Bistabilization Device 56205, -- Pheromone Sample 60388, -- Shimmering Claw 60406, -- Blood Caked Incisors 60485, -- Crackling Crystals 60486, -- Shimmering Shards 60576, -- Rending F...
nilq/small-lua-stack
null
object_tangible_quest_elder_robe_ex_relic_endor = object_tangible_quest_shared_elder_robe_ex_relic_endor:new { } ObjectTemplates:addTemplate(object_tangible_quest_elder_robe_ex_relic_endor, "object/tangible/quest/elder_robe_ex_relic_endor.iff")
nilq/small-lua-stack
null
--see also StandardSchemeExtended.lua NMS_MOD_DEFINITION_CONTAINER = { ["MOD_FILENAME"] = "RewardTable_Test.pak", --the name of the pak created (if not combined) - REQUIRED ["MOD_DESCRIPTION"] = "", --optional, for reference ["MOD_AUTHOR"] = "", --optional, for reference ["NMS_VERSI...
nilq/small-lua-stack
null
require("data/goods") require("data/productions") require("util/table") local inspect = require('lib/inspect') -- Format for a table entry. --|- --|<name> --|<volume> --|<price> --|<sold by> --|<bought by> --|<illegal?> --|<dangerous?> -- Creates a comma separated string of wiki links -- based on the names in the arg...
nilq/small-lua-stack
null
local name = "git-remote-codecommit" local version = "1.0.1" food = { name = name, description = "A git remote helper that removes the need for dedicated CodeCommit user credentials", license = "MIT", homepage = "https://github.com/gembaadvantage/git-remote-codecommit", version = version, packa...
nilq/small-lua-stack
null
-- rTooltip: core -- zork, 2019 ----------------------------- -- Variables ----------------------------- local A, L = ... local unpack, type, select = unpack, type, select local RAID_CLASS_COLORS, FACTION_BAR_COLORS, ICON_LIST = RAID_CLASS_COLORS, FACTION_BAR_COLORS, ICON_LIST local GameTooltip, GameTooltipStatusBa...
nilq/small-lua-stack
null
local AtlasLoot = _G.AtlasLoot local EJ = {} AtlasLoot.EncounterJournal = EJ --local AL = AtlasLoot.Locales local _ local tmp = nil -- lua local print = print local wipe = table.wipe -- WoW local EJ_SelectInstance, EJ_SelectEncounter, EJ_SetDifficulty, EJ_SetLootFilter = EJ_SelectInstance, EJ_SelectEncounter, EJ_SetD...
nilq/small-lua-stack
null
local composer = require( "composer" ) local scene = composer.newScene() local widget = require( "widget" ) -- ----------------------------------------------------------------------------------- -- Code outside of the scene event functions below will only be executed ONCE unless -- the scene is removed entirely (not ...
nilq/small-lua-stack
null
--[=[ Handles IK for local client. @client @class IKController ]=] local Workspace = game:GetService("Workspace") local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local StarterPlayerScripts = game:GetService("StarterPlayer"):WaitForChild("StarterPlayerScript...
nilq/small-lua-stack
null
function SawWeaponBase:_start_sawing_effect() if not self._active_effect then self:_play_sound_sawing() --self._active_effect = World:effect_manager():spawn(self._active_effect_table) end end
nilq/small-lua-stack
null
function f1() print("f1") end local function f2() print("f2") end function ellipsis(...) print("ellipsis") end function arg_ellipsis(a, b, c, d, ...) print("arg_ellipsis") end function long(q, w, e) x = q + w + e x = x * 2 return {x, 1, 2} end
nilq/small-lua-stack
null
local t = 123, 456 local t2 = function() end local t3 = { aaa = ccc } local t4 = {123,456,567}, {123131},a,b,c,d local t5 = aaaa, function () return true end local t6 = cccc, function () end t7 = {123,456,678}, {890,678} t9 = calls(aa,bb,ccc), dddd(eeee) t10 = function () end t11 = { aa =13, bbb =4...
nilq/small-lua-stack
null
if m_simpleTV.Control.ChangeAddress ~= 'No' then return end if not m_simpleTV.Control.CurrentAddress:match('kinozalj') then return end if m_simpleTV.Control.MainMode == 0 then m_simpleTV.Interface.SetBackground({BackColor = 0, TypeBackColor = 0, PictFileName = '', UseLogo = 0, Once = 1}) if m_simpleTV.Co...
nilq/small-lua-stack
null
--[[ Debuff List A table of spellIDs to create icons for. To add spellIDs, look up a spell on www.wowhead.com and look at the URL: https://tbc.wowhead.com/spell=SPELLID https://cn.tbc.wowhead.com/spell=SPELLID --]] local C, N = unpack(select(2, ...)) local ORD = N.oUF_RaidDebuffs or _G.oUF_RaidDeb...
nilq/small-lua-stack
null
return {width=64,height=32,type='NAMEDuint4_4'}
nilq/small-lua-stack
null
object_tangible_item_som_jedi_watch_dog_chest = object_tangible_item_som_shared_jedi_watch_dog_chest:new { } ObjectTemplates:addTemplate(object_tangible_item_som_jedi_watch_dog_chest, "object/tangible/item/som/jedi_watch_dog_chest.iff")
nilq/small-lua-stack
null
class = require 'class' Crystal = require 'crystals.crystal' Dust = class(Crystal) function Dust:init() Crystal.init(self, 4, 4, 40, 7, 2, love.graphics.newImage("crystals/dust.png")) end return Dust
nilq/small-lua-stack
null
data:extend( { { type = "item-subgroup", name = "aragas-brass-alloy-mixing", group = "angels-casting", order = "ca", }, { type = "item-subgroup", name = "aragas-bronze-alloy-mixing", group = "angels-casting", order = "da", }, { type = "item-subgroup", name = "aragas-gunmetal-alloy-mixing", gr...
nilq/small-lua-stack
null