content stringlengths 0 1.05M | origin stringclasses 2
values | type stringclasses 2
values |
|---|---|---|
local utils = require("utils")
local drawableSprite = require("structs.drawable_sprite")
local summitCloud = {}
-- cloud02 does not exist
local cloudTextures = {
"scenery/summitclouds/cloud00",
"scenery/summitclouds/cloud01",
"scenery/summitclouds/cloud03"
}
summitCloud.name = "summitcloud"
summitCloud.d... | nilq/small-lua-stack | null |
local headers = require'http_headers'
local function dump(s)
for s in s:gmatch'(.-)\r?\n' do
local k, v = s:match'(.-)%s*:(.*)'
end
end
dump[[
Accept: text/plain; q=0.5, text/html,
text/x-dvi; q=0.8, text/x-c
Accept-Charset: utf-8
Accept-Encoding: gzip, deflate
Accept-Language: en-US
Accept-Datetime: Thu, 31... | nilq/small-lua-stack | null |
if(select(2, UnitClass('player')) ~= 'WARRIOR') then return end
--GLOBAL NAMESPACE
local _G = _G;
--LUA
local unpack = _G.unpack;
local select = _G.select;
local assert = _G.assert;
--BLIZZARD API
local UnitDebuff = _G.UnitDebuff;
local parent, ns = ...
local oUF = ns.oUF
local ENRAGE_ID = ... | nilq/small-lua-stack | null |
------------------------------------------------------------------------
--[[ RepeaterCriterion ]]--
-- Applies a criterion to each of the inputs in a Table using the
-- same target (the target is repeated).
-- Useful for nn.Repeater and nn.Sequencer.
------------------------------------------------------------------... | nilq/small-lua-stack | null |
vRPclient = Tunnel.getInterface("vRP","robberies")
vRProbS = Tunnel.getInterface("robberies","robberies")
vRPRob = {}
Tunnel.bindInterface("robberiesC", vRPRob)
Proxy.addInterface("robberiesC", vRPRob)
local stores = {{id = 0, x = 27.76, y = -1339.425292968, z = 29.49702262878, robbed = false},
... | nilq/small-lua-stack | null |
----------------
-- Shop class --
----------------
local File = require 'src/File'
local UI = require 'src/ui/UI'
local ShopItem = require 'src/shop/ShopItem'
local Coin = require 'src/Coin'
local Shop = {
temperature = 0,
money = 0, totalMoney = 0, highestScore = 0,
-- Lists
circleList = {}, coinsLi... | nilq/small-lua-stack | null |
--[[
Copyright 2016 Whizzbang Inc
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 writin... | nilq/small-lua-stack | null |
-- Scan a dir
local function scandir(directory)
local i, t, popen = 0, {}, io.popen
local pfile = popen('ls "' .. directory .. '"')
for filename in pfile:lines() do
i = i + 1
t[i] = filename
end
pfile:close()
return t
end
local t = scandir("themes")
for i = 1, #t do
t[i] = t[i]:gsub(".lua", "")
... | nilq/small-lua-stack | null |
TagColor = {id = "color", type="wide"}
TagColor.__index = TagColor
function TagColor:Create(color)
local this =
{
mColor = color
}
print("Color tag made with value", this.mColor)
setmetatable(this, self)
return this
end
function TagColor:AdjustColor(c)
-- Don't write into the alph... | nilq/small-lua-stack | null |
local C = require('erde.constants')
-- -----------------------------------------------------------------------------
-- Expr
-- -----------------------------------------------------------------------------
local Expr = { ruleName = 'Expr' }
-- -------------------------------------------------------------------------... | nilq/small-lua-stack | null |
if ( SERVER ) then
AddCSLuaFile("sh_config_cc.lua")
AddCSLuaFile("cc/cl_vgui.lua")
include("sh_config_cc.lua")
include("cc/sv_cc.lua")
include("cc/sv_hooks.lua")
end
if ( CLIENT ) then
include("sh_config_cc.lua")
include("cc/cl_vgui.lua")
end | nilq/small-lua-stack | null |
TOOL.Category = "Construction"
TOOL.Name = "#tool.emitter.name"
TOOL.ClientConVar[ "key" ] = "51"
TOOL.ClientConVar[ "delay" ] = "1"
TOOL.ClientConVar[ "toggle" ] = "1"
TOOL.ClientConVar[ "starton" ] = "0"
TOOL.ClientConVar[ "effect" ] = "sparks"
TOOL.ClientConVar[ "scale" ] = "1"
TOOL.Information = {
{ name = "lef... | nilq/small-lua-stack | null |
require("utils")
local vector = require("hump.vector")
local Class = require("hump.class")
local Logo = Class{function(self, img, time, quadData)
self.image = img
self.time = time
if quadData then
quadData = {quadData[1], quadData[2], quadData[3], quadData[4], self.image:getWidth(), self.... | nilq/small-lua-stack | null |
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TestEZ = require(ReplicatedStorage.DevPackages.TestEZ)
TestEZ.TestBootstrap:run(
{
ReplicatedStorage.Packages.Rodux
},
TestEZ.Reporters.TextReporter
) | nilq/small-lua-stack | null |
local util = require "formatter.util"
return function()
return {
exe = "eslint_d",
args = {
"--stdin",
"--stdin-filename",
util.escape_path(util.get_current_buffer_file_path()),
"--fix-to-stdout",
},
stdin = true,
try_node_modules = true,
}
end
| nilq/small-lua-stack | null |
[[0x5600,
████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
█████████████████████████████████████████████████████... | nilq/small-lua-stack | null |
-- local VPPP_UnitNetworkHandler_sync_grenades_cooldown = UnitNetworkHandler.sync_grenades_cooldown
-- function UnitNetworkHandler:sync_grenades_cooldown(end_time, duration, sender)
-- log("UnitNetworkHandler:sync_grenades_cooldown")
-- local peer = self._verify_sender(sender)
-- local is_local_player = man... | nilq/small-lua-stack | null |
COMMAND.name = 'Changelevel'
COMMAND.description = 'command.changelevel.description'
COMMAND.syntax = 'command.changelevel.syntax'
COMMAND.permission = 'moderator'
COMMAND.category = 'permission.categories.server_management'
COMMAND.arguments = 1
COMMAND.alias = 'map'
function COMMAND:on_run(player, map, delay)
map ... | nilq/small-lua-stack | null |
-- local dbg = require("debugger")
-- dbg.auto_where = 2
local stub_vim = require'spec.helpers.stub_vim'.stub_vim
local execute = require'selection_command'.execute
local api = require'nvimapi'
local get_selection = require'context'.get_selection
describe("sort a list", function()
-- 0....+....1...... | nilq/small-lua-stack | null |
local sprite = require "engine.sprite"
local TestZone = require "scenes.test_zone"
local NorthCity = require "scenes.north_city"
-- it's the main menu!
local MainMenu = {}
local center_x = love.graphics.getWidth() / 2
-- i feel like there's a better way to do this probably? im not good at lua
local title_y = 150
loc... | nilq/small-lua-stack | null |
local nmap = require "nmap"
local shortport = require "shortport"
local table = require "table"
local stdnse = require "stdnse"
local string = require "string"
local sslcert = require "sslcert"
local sslv2 = require "sslv2"
local vulns = require "vulns"
description = [[
Determines whether the server supports SSLv2, wh... | nilq/small-lua-stack | null |
object_mobile_som_blistmok = object_mobile_som_shared_blistmok:new {
}
ObjectTemplates:addTemplate(object_mobile_som_blistmok, "object/mobile/som/blistmok.iff")
| nilq/small-lua-stack | null |
object_tangible_tcg_series8_diorama_exogorth_crater = object_tangible_tcg_series8_shared_diorama_exogorth_crater:new {
}
ObjectTemplates:addTemplate(object_tangible_tcg_series8_diorama_exogorth_crater, "object/tangible/tcg/series8/diorama_exogorth_crater.iff") | nilq/small-lua-stack | null |
GButton = class('GButton', GComponent)
local getters = GButton.getters
local setters = GButton.setters
GButton.UP = "up"
GButton.DOWN = "down"
GButton.OVER = "over"
GButton.SELECTED_OVER = "selectedOver"
GButton.DISABLED = "disabled"
GButton.SELECTED_DISABLED = "selectedDisabled"
function GButton:ctor()
... | nilq/small-lua-stack | null |
add_requires("gtest ^1.11.0", {configs={main=true, gmock=true}})
local tests = {
["any"] = { files = {"any.cpp"} },
["entity"] = { files = {"entity.cpp"} },
["eventchannel"] = { files = {"eventchannel.cpp"} },
["statemachine"] = { files = {"statemachine.cpp"} },
["storage"] = { files = {"storage.cp... | nilq/small-lua-stack | null |
loadstring(game:GetObjects("rbxassetid://1004135890")[1].Source)() | nilq/small-lua-stack | null |
function UIPrint(_, x, y, button, clicks)
C_Print("TEST")
C_Print(tostring(x + y))
C_Print(button)
end
local viewport = UI.View.port
UI.Viewport.setRawSize(viewport, 1.0, UI.DimensionType.WINDOW_WIDTH_PERCENTAGE, 1.0, UI.DimensionType.WINDOW_HEIGHT_PERCENTAGE)
local panel1 = UI.View.makePanel(viewpor... | nilq/small-lua-stack | null |
local data = require("data")
local device = require("device")
local ffi = require("ffi")
local fs = libs.fs;
local log = require("log")
-----------------------------------------------------------
-- FFI interface
-----------------------------------------------------------
-- POSIX constants
local AF_UNIX = 1
local SO... | nilq/small-lua-stack | null |
--[[----------------------------------------------------------------------
______ ________
/ __/ /_ __/ __/ __/_ __
/ /_/ / / / / /_/ /_/ / / /
/ __/ / /_/ / __/ __/ /_/ / ... | nilq/small-lua-stack | null |
handle_event(
function( )
asignar_team();
end
, "on_group_created");
handle_event(
function( args )
local kRazon = args[1];
local pExpulsado = getPlayerFromName ( args[2] );
local kBy = args[3];
local kBy_name = kBy:getName();
local group = args[4];
refresh_blips();
createNotification(
"Jugador exp... | nilq/small-lua-stack | null |
pg = pg or {}
pg.enemy_data_statistics_130 = {
[10045043] = {
cannon = 338,
reload = 150,
speed_growth = 0,
cannon_growth = 0,
pilot_ai_template_id = 10001,
air = 0,
rarity = 4,
dodge = 27,
torpedo = 288,
durability_growth = 90000,
antiaircraft = 396,
reload_growth = 0,
dodge_growth = 0,
hi... | nilq/small-lua-stack | null |
object_draft_schematic_weapon_component_new_weapon_comp_blaster_rifle_barrel = object_draft_schematic_weapon_component_shared_new_weapon_comp_blaster_rifle_barrel:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_weapon_component_new_weapon_comp_blaster_rifle_barrel, "object/draft_schematic/weapon/component/... | nilq/small-lua-stack | null |
local class = require('middleclass')
local Controller = require('mvc.Controller')
local LobbyController = class("LobbyController", Controller)
local TranslateView = require('app.helpers.TranslateView')
local SoundMng = require "app.helpers.SoundMng"
local tools = require('app.helpers.tools')
local GameLogic = req... | nilq/small-lua-stack | null |
local AF = AdvancedFilters
local util = AF.util
local checkCraftingStationSlot = AF.checkCraftingStationSlot
local refinementStackSize = GetRequiredSmithingRefinementStackSize()
--[[----------------------------------------------------------------------------
The anonymous function returned by this function handle... | nilq/small-lua-stack | null |
local default_sneak_mode = "old" -- change this to "new" if you want new movement.
-- trigger curse effects when player joins
minetest.register_on_joinplayer(function(player)
-- set sneak mode if unassigned
if player:get_meta():get_string("sneak_mode") == nil then
player:get_meta():set_string("sneak_mode", defaul... | nilq/small-lua-stack | null |
local M = {}
local imgui = ui_imgui
local http = require("socket.http")
M.map = "/levels/industrial/info.json"
M.map_name = "Industrial"
M.mods = {}
M.server_name = imgui.ArrayChar(128, "Private KissMP server")
M.max_players = imgui.IntPtr(8)
M.port = imgui.IntPtr(3698)
M.is_proton = imgui.BoolPtr(false)
M.proton_path... | nilq/small-lua-stack | null |
-- Generated by LairTool
talus_roba_lair_neutral_large = Lair:new {
mobiles = {{"male_roba",1},{"female_roba",1}},
spawnLimit = 15,
buildingsVeryEasy = {"object/tangible/lair/base/poi_all_lair_thicket_large.iff"},
buildingsEasy = {"object/tangible/lair/base/poi_all_lair_thicket_large.iff"},
buildingsMedium = {"obj... | nilq/small-lua-stack | null |
-----------------------------------
-- Area: Windurst Walls
-- NPC: Scavnix
-- Standard merchant, though he acts like a guild merchant
-- !pos 17.731 0.106 239.626 239
-----------------------------------
require("scripts/globals/settings")
require("scripts/globals/shop")
local ID = require("scripts/zones/Windurst_Wall... | nilq/small-lua-stack | null |
local account = require(script.Account)
local new_account = account.New()
new_account:Add(math.random(1000, 5000))
new_account:Sub(100)
new_account:Transactions()
print(new_account.Balance) | nilq/small-lua-stack | null |
if not love then love = {} end
if not love.image then love.image = {} end
return {
["is-compressed"] = { tag = "var", contents = "love.image.isCompressed", value = love.image.isCompressed},
["new-image-data"] = { tag = "var", contents = "love.image.newImageData", value = love.image.newImageData},
["new-compressed-da... | nilq/small-lua-stack | null |
BaseNpc_UseItem(this, "{{ action.selected_item.fields.ScriptName.value }}") | nilq/small-lua-stack | null |
describe("set_millis", function()
local icu_date = require "icu-date-ffi"
local attributes = icu_date.attributes
local date = icu_date.new()
local format = icu_date.formats.iso8601()
before_each(function()
date = icu_date.new()
date:set_millis(1507836727123)
assert.equal("2017-10-12T19:32:07.123Z... | nilq/small-lua-stack | null |
local msgpack = require('msgpack')
local kvstore = require('kvstore')
local blobstore = require('blobstore')
local node = require('node')
function premark_kv (key, version)
local h = kvstore.get_meta_blob(key, version)
if h ~= nil then
local _, ref, _ = kvstore.get(key, version)
if ref ~= '' then
pr... | nilq/small-lua-stack | null |
local Button = require "ruu.widgets.Button"
local InputField = Button:extend()
local util = require "ruu.ruutilities"
local endChar = "|"
local function getTextWidth(font, text, endCharWidth)
return gui.get_text_metrics(font, text .. endChar).width - endCharWidth
end
function InputField.set(self, ruu,... | nilq/small-lua-stack | null |
---@diagnostic disable: undefined-global
local palette = require 'nord-palette'
local base = require 'base'
-- vim-clap
-- > liuchengxu/vim-clap
local clrs = palette.clrs
local spec = palette.spec
local pkg = function()
return {
ClapDir {fg = clrs.nord4},
ClapDisplay {fg = clrs.nord4, bg = clrs.nord1},
... | nilq/small-lua-stack | null |
print('test', ...);
return 7; | nilq/small-lua-stack | null |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf/protobuf"
local GUILDSKILL_PB = require("GuildSkill_pb")
local ROLEGUILDBONUSDATA_PB = require("RoleGuildBonusData_pb")
local MAPKEYVALUE_PB = require("MapKeyValue_pb")
module('GuildRecord_pb')
GUILDRECORD = protobuf.Descriptor();
local GUI... | nilq/small-lua-stack | null |
slot0 = class("RivalInfoLayer", import("..base.BaseUI"))
slot0.TYPE_DISPLAY = 1
slot0.TYPE_BATTLE = 2
slot0.getUIName = function (slot0)
return "RivalInfoUI"
end
slot0.setRival = function (slot0, slot1)
slot0.rivalVO = slot1
end
slot0.didEnter = function (slot0)
pg.UIMgr.GetInstance():LoadingOn()
onButton(slot0,... | nilq/small-lua-stack | null |
local countDownsToBlock = 2;
function onStartCountdown()
if not seenCutscene and isStoryMode then
setProperty('dad.visible', false);
setProperty('boyfriendGroup.visible', false);
setProperty('camGame.zoom', 1.7)
setProperty('camHUD.visible', false);
setProperty('camFollow.y', getProperty('camFollow.y... | nilq/small-lua-stack | null |
for i=0,10,2 do
print(i)
end
| nilq/small-lua-stack | null |
local PlUGIN = PLUGIN;
local COMMAND = Clockwork.command:New("CheckTempFlags");
COMMAND.tip = "Check your temp flags, or another player's.";
COMMAND.text = "[string Name]";
COMMAND.optionalArguments = 1;
-- Called when the command has been run.
function COMMAND:OnRun(player, arguments)
if arguments[1] then
if !Clo... | nilq/small-lua-stack | null |
LayerManager = Object:extend()
function LayerManager:new()
LayerManager.super.new(self)
self.first = 0
self.last = -1
self.controls = {
Up = "w",
Down = "s",
Left = "a",
Right = "d",
Confirm = "return",
Back = "escape"
}
end
-- LAYER MANAGEMENT
func... | nilq/small-lua-stack | null |
local opts = { noremap = true, silent = true }
local term_opts = { silent = true }
-- Shorten function name
local keymap = vim.api.nvim_set_keymap
--Remap space as leader key
keymap("", "<Space>", "<Nop>", opts)
vim.g.mapleader = " "
vim.g.maplocalleader = " "
-- Modes
-- normal_mode = "n",
-- insert_mode = "i"... | nilq/small-lua-stack | null |
return function()
require('compe').setup{
enabled = true;
source = {
path = true,
buffer = true,
nvim_lsp = true,
},
}
end
| nilq/small-lua-stack | null |
-- demo.lua
--
-- Demonstrates how to use luadep.
local module = require("module")
local container = require("container")
local car = module({
vroom = function(self)
self.Engine:start()
print("Vroom!")
self.Engine:stop()
end
})
:setName("VanillaCar")
:setVersion("1.0.0")
:isA("Car")
... | nilq/small-lua-stack | null |
Label = GuiElement:extend("Label");
function Label:init(parent, name)
GuiElement.init(self, parent, name, 0, 0);
self:update_text("");
--[[if type(x) == "number" then
self:update_text(text);
else -- assuming it's a relative posititon
text = y;
self.pos = x;
self:update_text(text)
self.pos.xoff = -self.re... | nilq/small-lua-stack | null |
rule("checkplatform")
on_load(function (target)
if not is_plat("linux", "bsd", "macosx") then
raise("only support linux bsd macosx")
end
end)
rule_end()
add_rules("checkplatform")
----------------------------------------------------------------------------------------------
-- options
option("opt_jemalloc")
... | nilq/small-lua-stack | null |
local skynet = require "skynet"
local mongo_manager = require "mongo_manager"
local utils = require "utils"
local log = require "log"
local CMD = {}
local users = {}
local fd_user_map = {}
local fd_player_id_map = {}
local CUR_PLAYER_ID = 1
local player_manager
function CMD.login(fd, msg)
log.log("CMD.login fd=" .. ... | nilq/small-lua-stack | null |
-------------------------------------------------------------------------------
-- ElvUI Companions Datatext By Crackpotx
-------------------------------------------------------------------------------
local E, _, V, P, G, _ = unpack(ElvUI)
local DT = E:GetModule("DataTexts")
local F = CreateFrame("Frame", "ElvUI_Compa... | nilq/small-lua-stack | null |
--[[--------------------------------------------------------------------------
*
* Mello Trainer
* (C) Michael Goodwin 2017
* http://github.com/thestonedturtle/mellotrainer/releases
*
* This menu used the Scorpion Trainer as a framework to build off of.
* https://github.com/pongo1231/ScorpionTrainer
* (C) Emre ... | nilq/small-lua-stack | null |
Talk(0, "慕容公子,请你回燕子坞,若有需要你帮忙时,我再去找你.", "talkname0", 1);
Leave(51);
ModifyEvent(52, 1, 1, 1, 985, -1, -1, 6300, 6300, 6300, 0, -2, -2);
jyx2_ReplaceSceneObject("52","NPC/慕容复","1");
do return end;
| nilq/small-lua-stack | null |
/*
* PTY Helpers
*/
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
ffi.cdef[[
/* pty */
struct shl_pty;
typedef void (*shl_pty_input_cb) (struct shl_pty *pty, char *u8,
size_t len, void *data);
pid_t shl_pty_open(struct shl_pty **o... | nilq/small-lua-stack | null |
local ui, uiu, uie = require("ui").quick()
local utils = require("utils")
local threader = require("threader")
local scene = {
name = "Benchmark Scene"
}
local root = uie.column({
uie.topbar({
{ "File", {
{ "New" },
{ },
{ "Open" },
{ "Recent", {
... | nilq/small-lua-stack | null |
local L = BigWigs:NewBossLocale("Viceroy Nezhar", "koKR")
if not L then return end
if L then
L.tentacles = "암영 촉수"
L.guards = "어둠수호병 공허지기"
L.interrupted = "%s|1이;가; %s|1을;를; 시전 방해했습니다 (%.1f초 남음)!"
end
L = BigWigs:NewBossLocale("L'ura", "koKR")
if L then
--L.warmup_text = "L'ura Active"
--L.warmup_trigger = "Such ... | nilq/small-lua-stack | null |
--[[
FastAPI
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.1.0
Generated by: https://openapi-generator.tech
]]
--package openapiclient
local http_request = require "http.request"
local http_util = requir... | nilq/small-lua-stack | null |
--[[
Tencent is pleased to support the open source community by making BK-CI 蓝鲸持续集成平台 available.
Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
BK-CI 蓝鲸持续集成平台 is licensed under the MIT license.
A copy of the MIT License is included in this file.
Terms of the MIT License:
-------------... | nilq/small-lua-stack | null |
title_bar = {}
-- ** LOCAL UTIL **
local function configure_pause_button_style(button, pause_on_interface)
if pause_on_interface then
button.style = "fp_sprite-button_tool_active"
button.sprite = "utility/pause"
button.clicked_sprite = "fp_sprite_pause_light"
else
button.style =... | nilq/small-lua-stack | null |
function love.conf(t)
t.window.width = 1024
t.window.height = 768
end
| nilq/small-lua-stack | null |
local R = require('mesh/read_msh2')
local W = require('mesh/write_ccx')
local U = require('mesh/utils')
if #arg < 3 then
error('Not enough arguments!')
end
local M = R.read_msh2(arg[1])
U.write_mesh_exo2(M, arg[3],
{ title = 'cnv: ' .. arg[1],
ids = { nsets = 100, ssets = 500... | nilq/small-lua-stack | null |
local Widget
do
local _obj_0 = require("lapis.html")
Widget = _obj_0.Widget
end
local LuminaryViewUtil
do
local _parent_0 = Widget
local _base_0 = {
include_script = function(self, name, path)
if path == nil then
path = "assets"
end
return script({
type = "text/javascript"
... | nilq/small-lua-stack | null |
-- Global options
vim.o.colorcolumn = "81"
vim.o.showmode = false
vim.o.splitbelow = true
vim.o.splitright = true
vim.o.wildmode = "longest:full,list:full"
vim.o.mouse = "a"
vim.o.shiftwidth = 2
vim.o.shiftround = true
vim.o.joinspaces = false
vim.o.ignorecase = true
vim.o.smartcase = true
vim.cmd "set wildignore+=*/.g... | nilq/small-lua-stack | null |
-- gui config file
local cfg = {}
-- additional css loaded to customize the gui display (see gui/design.css to know the available css elements)
-- it is not recommended to modify the vRP core files outside the cfg/ directory, create a new resource instead
-- you can load external images/fonts/etc using the NUI absol... | nilq/small-lua-stack | null |
local M = {}
M.config = function()
if not lvim.builtin.lualine.active then
return
end
local components = require "lvim.core.lualine.components"
-- Remove treesitter and lsp form the config
lvim.builtin.lualine.sections.lualine_x = {
components.diagnostics,
components.filetype,
}
-- Replace... | nilq/small-lua-stack | null |
local M = { }
-- TODO: Setup Debugger menu
-- Setup Debugger switch menu calling require(this).setup(override)
function M.setup(override)
end
return M | nilq/small-lua-stack | null |
dust = {}
function dust:create()
dust = love.graphics.newImage('dust.png')
dustSys = love.graphics.newParticleSystem(dust, 170)
dustSys:setDirection(0)
dustSys:setEmissionRate(70)
dustSys:setEmitterLifetime(0.5)
dustSys:setParticleLifetime(3)
dustSys:setLinearAcceleration(-200,-200, 200,200)
dustSys:setSpee... | nilq/small-lua-stack | null |
--[[
MIT License
Copyright (c) 2022 Michael Wiesendanger
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, mod... | nilq/small-lua-stack | null |
AutomaticRoleCheck.Panel = CreateFrame("Frame", nil, UIParent)
AutomaticRoleCheck.Panel:RegisterEvent("ADDON_LOADED")
AutomaticRoleCheck.Panel:RegisterEvent("PLAYER_LOGOUT")
AutomaticRoleCheck.Panel.name = "AutomaticRoleCheck"
AutomaticRoleCheck.Panel.Inner = AutomaticRoleCheck.Panel:CreateFontString(nil, "OVERLAY", "... | nilq/small-lua-stack | null |
function love.conf(t)
t.window.title = "Pong" -- The window title (string)
t.window.width = 1280 -- The window width (number)
t.window.height = 720 -- The window height (number)
t.window.vsync = 1 -- Vertical sync mode (number)
t.window.resizable = true -- Let the window be user-resizable... | nilq/small-lua-stack | null |
-- refer to jmdasnoy(BMP180),create by pengping
-- NodeMCU ESP32 lua handler for Bosch Sensortech BMP-280 Digital pressure and temperature sensor
--
-- populate table with register addresses, reset/read values, symbolic settings, expected values ie settings
local function populatetable()
local bmp={}
-- i2c particula... | nilq/small-lua-stack | null |
local CorePackages = game:GetService("CorePackages")
local CoreGui = game:GetService("CoreGui")
local RobloxGui = CoreGui:WaitForChild("RobloxGui")
local Roact = require(CorePackages.Roact)
local ShareGame = RobloxGui.Modules.Settings.Pages.ShareGame
local Constants = require(ShareGame.Constants)
local BackButton = ... | nilq/small-lua-stack | null |
-- Example Config file .------------------- --------
UNIT_DIMENSIONS="NATURE"
DESCRIPTION="bala bala bong" -- description or other text things.
DIMS={17,107,107} -- number of grid, now only first dimension is valid
GW= {3,3,3} -- width of ghost points
LENG... | nilq/small-lua-stack | null |
local NotificationBindable = Instance.new("BindableFunction")
NotificationBindable.OnInvoke = callback
--
game.StarterGui:SetCore("SendNotification", {
Title = "Dynamic Client";
Text = "LagSwitch Activated, Use F3 to Switch between modes.";
Icon = "rbxassetid://5718757541";
Duration = 3;
Callback = NotificationB... | nilq/small-lua-stack | null |
local PANEL = {}
function PANEL:Init()
self:SetDeleteOnClose(true)
self:MakePopup()
self:SetTitle( "" )
self:SetSize(200,200)
self:DockPadding(0,20,0,5)
self:Center()
-- self:InvalidateChildren( )
-- FrameAFK3:SetVisible( true )
-- self.LerpedColor = Color(94, 130, 158)
-- self.LerpedColorAlpha... | nilq/small-lua-stack | null |
--[[
╔══════════════════════════════════════════════════════════════════════════════╗
║ ▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ║
║▐░▌ ▐░▌▐░░░░░░░░░░░... | nilq/small-lua-stack | null |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' 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 message_pin_map = require("qnFiles/qnPlist/hall/message_pin");
local messageItem=
{
name="messageItem",type=0,typeName="View",time=0,report=0,x=0,y=0,width=1250,height=130,visible=1,fillParentWidth=1,fillParentHeight=0,nodeAlign=kAlignTop,
{
name="itemBtn",type=2,typeName="Button",time=79673259,report=0,x=0,y... | nilq/small-lua-stack | null |
--region CDynamicList.lua
--Author : jefflwq
--Date : 2018/04/25
--说明 : 动态大小的List类
--endregion
using "Joop"
namespace "System.Collections.Generic"
{
class "CDynamicList"
{
ListData = false,
___Size = 0,
___ItemType = false, --table or JoopClass
Size =
... | nilq/small-lua-stack | null |
------------------------------------------------------------
-- PartyDungeons.lua
--
-- Abin
-- 2016/09/13
------------------------------------------------------------
local module = CompactRaid:GetModule("RaidDebuff")
if not module then return end
local TIER = 7 -- Legion
local INSTANCE
-- Maw of Souls (727)
INSTA... | nilq/small-lua-stack | null |
function red(n)
local find = false
for i, v in pairs(ROUND.chair[n].hand) do
if isNumeric(v) then
find = i
break
end
end
if find then
local target = false
local min = math.huge
for i, v in pairs(ROUND.chair) do
if i ~= n and v.mode ~= "DELETED" then
if #v.hand == 10 then
target = i
... | nilq/small-lua-stack | null |
local tablefuncs = loadfile("./Library/TableFunctions.lua")()
local bit = loadfile("./Library/BitFunctions.lua")()
local tableToString = tablefuncs.tableToString;
local shuffle = tablefuncs.shuffle;
local tableCopy = tablefuncs.tableCopy;
local ChunkData, VMData = loadfile("./CBI/Templates/Basics.lua")();
... | nilq/small-lua-stack | null |
-- This script takes the name of the queue and then checks
-- for any expired locks, then inserts any scheduled items
-- that are now valid, and lastly returns any work items
-- that can be handed over.
--
-- Keys:
-- 1) queue name
-- Args:
-- 1) the number of items to return
-- 2) the current time
if #KEYS ... | nilq/small-lua-stack | null |
return {
level = 4,
need_exp = 300,
clothes_attrs = {
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
},
} | nilq/small-lua-stack | null |
-- Dependencies: input, graphics --
local path = ... .. "."
local menu = {}
menu.bg = {}
menu.sidepanel = {}
menu.button = {}
menu.buttonlist = {}
menu.bg.tileoffset = 0
menu.title = {}
menu.config = require(path .. 'config') -- Load menu config.
menu.config.bg.image = engine.graphics.newImage(game.path .. menu.co... | nilq/small-lua-stack | null |
return module.internal'crypt'.load({203,45,116,123,163,213,196,23,212,178,131,121,176,148,197,22,208,162,133,120,161,148,197,23,209,151,132,123,161,239,197,21,210,191,135,120,161,245,198,23,80,158,135,121,161,148,197,22,208,162,133,120,161,148,197,23,209,151,132,122,161,239,197,21,210,191,135,120,161,245,198,23,80,158,... | nilq/small-lua-stack | null |
-- a quick LUA access script for nginx to check IP addresses against an
-- `ip_blacklist` set in Redis, and if a match is found send a HTTP 403.
--
-- allows for a common blacklist to be shared between a bunch of nginx
-- web servers using a remote redis instance. lookups are cached for a
-- configurable period of time... | nilq/small-lua-stack | null |
machineBasic={
numbers=
[[animIdle=37
defaultAngle=0
minAngle=0
maxAngle=0]]
}
allMachs={
machineBasic,
{
projDef=pinkGoo,
numbers=
[[attackCooldown=80
launchSpeed=0.25
defaultAngle=0.125
minAngle=0.05
maxAngle=0.2125
animIdle=49
animLaunch=50,51,52]]
},
{
projDef=blueDart,
animIdle={right={56},up=... | nilq/small-lua-stack | null |
-- for these values the calculated standard tempo in the playback rate
-- dialog is exactly 2.5 times the desired integer refresh rate
local toInterval = function (rate) return math.floor(1e6 / rate) end
local MIN_RATE = math.ceil(1e6 / 0xFFFF)
local MAX_RATE = 1000 -- math.floor(0xFFFF / 60)
local t = {}
for i = MI... | nilq/small-lua-stack | null |
Advisor = Advisor or {}
Advisor.SQL = Advisor.SQL or {}
Advisor.SQL.Database = Advisor.SQL.Database or nil
Advisor.SQL.IsInitialized = Advisor.SQL.IsInitialized or false
function Advisor.SQL.Initialize()
if Advisor.SQL.Database then
Advisor.Log.Error(LogSQL, "Attempted to initialize SQL database, but it a... | nilq/small-lua-stack | null |
local config = require('rust-tools.config')
local inlay = require('rust-tools.inlay_hints')
local M = {}
function M.handler(_, result)
if result.quiescent and config.options.tools.autoSetHints then
inlay.set_inlay_hints();
end
end
return M
| nilq/small-lua-stack | null |
local M = {}
-- local path = require('telescope')
local make_entry = require('telescope.make_entry')
-- local utils = require('telescope.utils')
local devicons = require 'nvim-web-devicons'
local entry_display = require('telescope.pickers.entry_display')
local filter = vim.tbl_filter
local map = vim.tbl_map
function... | nilq/small-lua-stack | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.