content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
DEFAULT_CHAT_FRAME:AddMessage('[IncompleteAchievements] "Incomplete" option has been selected by default in achievements dropdown menu', 1,1,0) local frame = CreateFrame ("Button", "IncompleteAchievementsFrame", UIParent) frame:RegisterEvent("ADDON_LOADED") frame:SetScript("OnEvent", function (self,event,arg1,...) if ...
nilq/small-lua-stack
null
-- test reconnecting a socket, should return an error "already connected" -- test based on Windows behaviour, see comments in `copas.connect()` function local copas = require("copas") local socket = require("socket") local skt = copas.wrap(socket.tcp()) local done = false copas.addthread(function() copas.sleep(0) ...
nilq/small-lua-stack
null
-- -- Name: monodevelop/monodevelop.lua -- Purpose: Define the MonoDevelop action. -- Author: Manu Evans -- Created: 2013/10/28 -- Copyright: (c) 2013-2015 Manu Evans and the Premake project -- local p = premake p.modules.monodevelop = {} local m = p.modules.monodevelop m._VERSION = p._VER...
nilq/small-lua-stack
null
WADemoLuaAlertView = {} function WADemoLuaAlertView.show(title,message,cancelButtonTitle,otherButtonTitles,cancelFunc,otherFunc) local param = {title = title,message = message,cancelButtonTitle = cancelButtonTitle,otherButtonTitles = otherButtonTitles,cancelFunc = cancelFunc ,otherFunc = otherFunc} luaoc.callStatic...
nilq/small-lua-stack
null
AuctionatorItemKeyCellTemplateMixin = CreateFromMixins(AuctionatorCellMixin, AuctionatorRetailImportTableBuilderCellMixin) function AuctionatorItemKeyCellTemplateMixin:Init() self.Text:SetJustifyH("LEFT") end function AuctionatorItemKeyCellTemplateMixin:Populate(rowData, index) AuctionatorCellMixin.Populate(self,...
nilq/small-lua-stack
null
--[[ Placeholder page for SettingsHub that manages top level Roact view This page is a container and controller for the Roact app --]] local CoreGui = game:GetService("CoreGui") local RobloxGui = CoreGui:WaitForChild("RobloxGui") local ShareGame = RobloxGui.Modules.Settings.Pages.ShareGame local Constants = requi...
nilq/small-lua-stack
null
--[[ Provides: autocrafting, resource limits, on-demand crafting. Turtle crafting: 1. The turtle must have a crafting table equipped. 2. Equip the turtle with an introspection module. ]]-- _G.requireInjector(_ENV) local Config = require('config') local Event = require('event') local Milo =...
nilq/small-lua-stack
null
class 'DateTime' function DateTime:__init() self.CLtime = os.date( "%X" ) self.CLdate = os.date("%d/%m/%Y") Events:Subscribe( "Render", self, self.Render ) end function DateTime:Render() if Game:GetState() ~= GUIState.Game or Game:GetSetting(4) <= 1 then return end if not LocalPlayer:GetValue( "Clock...
nilq/small-lua-stack
null
-- Copyright 2017 Yousong Zhou <yszhou4tech@gmail.com> -- Licensed to the public under the Apache License 2.0. local ss = require("luci.model.shadowsocks-libev") local m, s, o m = Map("shadowsocks-libev", translate("Redir Rules"), translate("On this page you can configure how traffics are to be \ forwarded to ss...
nilq/small-lua-stack
null
local replicatedStorage = game:GetService("ReplicatedStorage") local gui = script.Parent.Parent local message = replicatedStorage.Message local remaining = replicatedStorage.Remaining local display = {} local messageLabel = gui:WaitForChild("Message") local remainingLabel = gui:WaitForChild("Remaining") mess...
nilq/small-lua-stack
null
require('constants') local base_hp = get_creature_base_hp(PLAYER_ID) local base_ap = get_creature_base_ap(PLAYER_ID) set_creature_current_hp(PLAYER_ID, base_hp) set_creature_current_ap(PLAYER_ID, base_ap) remove_negative_statuses_from_creature(PLAYER_ID) add_message_with_pause("FAIRY_SPIRIT_HEAL_SID") clea...
nilq/small-lua-stack
null
local plane local spritesLOD = { bottom = dxCreateTexture("assets/plane_bottom.png"), side = dxCreateTexture("assets/plane_side.png"), tail = dxCreateTexture("assets/plane_tail.png") } local planeLODColor = tocolor(255, 255, 255, 255) local startTime = 0 local velocityX = 0 local velocityY = 0 local sta...
nilq/small-lua-stack
null
local M = {} local system_name = sys.get_sys_info().system_name local is_debug = sys.get_engine_info().is_debug M.platform = {} M.platform.name = system_name M.platform.is_desktop = system_name == 'Darwin' or system_name == 'Linux' or system_name == 'Windows' or system_name == 'HTML5' M.platform.is_html5 = system_nam...
nilq/small-lua-stack
null
nnoremap("<Leader>w", ":w<CR>") nnoremap("<Leader>W", ":wa<CR>") vnoremap("<Leader>w", "<C-c>:w<CR>") inoremap("<Leader>w", "<C-o>:w<CR>") nnoremap("<Leader>q", ":q<CR>") vnoremap("<Leader>q", "<C-c>:q<CR>") inoremap("<Leader>q", "<C-o>:q<CR>") nnoremap("<Leader>Q", ":bdelete!<CR>") nnoremap("<Leader>R", ":edit!<CR>") ...
nilq/small-lua-stack
null
-- find the packages: package.path = '../utf8.lua/?.lua;../?.lua;' .. package.path zmd = require 'zmdocument' -- run test on authors print('% --- Test authors') print('% one author:') print(zmd.formatAuthorsBase('Eskimon', '', false)) print('% three authors:') print(zmd.formatAuthorsBase('Karnaj, Heziode, pierre_24',...
nilq/small-lua-stack
null
ENT.Type = "anim" ENT.Base = "base_rd3_entity" ENT.PrintName = "Heavy Water Electrolyzer" list.Set("LSEntOverlayText", "generator_liquid_hvywater", { HasOOO = true, resnames = {"energy", "water"}, genresnames = {"heavy water"} })
nilq/small-lua-stack
null
function User:Create(data) return setmetatable(data, User) end
nilq/small-lua-stack
null
material_science = {} local modname = minetest.get_current_modname() local modpath = minetest.get_modpath(modname) -- Settings dofile(modpath .. "/settings.lua") -- Materials dofile(modpath .. "/materials.lua") -- Recipes dofile(modpath .. "/recipes.lua") -- Machines dofile(modpath .. "/blocks/alkali_metal_extractor....
nilq/small-lua-stack
null
--[[ Copyright (c) 2016-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. ]]-- local tnt ...
nilq/small-lua-stack
null
-- language support local S = ethereal.intllib -- stair mods active local stairs_redo = stairs and stairs.mod and stairs.mod == "redo" local stairs_plus = minetest.global_exists("stairsplus") -- stair selection function local do_stair = function(description, name, node, groups, texture, sound) if stairs_redo then ...
nilq/small-lua-stack
null
addEvent ( "VDBGPhone:App->Vehicles:onPanelOpened", true ) addEventHandler ( "VDBGPhone:App->Vehicles:onPanelOpened", root, function ( ) local cars = exports.VDBGVehicles:getAccountVehicles ( getAccountName ( getPlayerAccount ( source ) ) ) triggerClientEvent ( source, "VDBGPhone:App->Vehicles:onClientGetVehicles", ...
nilq/small-lua-stack
null
function love.conf(t) t.window.width = 15 * 20 t.window.height = 15 * 15 t.window.title = "Snake" end
nilq/small-lua-stack
null
panshee_elder = Creature:new { objectName = "@mob/creature_names:panshee_elder", randomNameType = NAME_GENERIC, randomNameTag = true, socialGroup = "panshee_tribe", faction = "panshee_tribe", level = 46, chanceHit = 0.48, damageMin = 375, damageMax = 460, baseXp = 4461, baseHAM = 9800, baseHAMmax = 12000, ...
nilq/small-lua-stack
null
function createDots(grid) -- create paladin dot group 1 (dot, tooltip, texture, name, class) local x = ((1-1)*5)+1 newDot(_G["Dot_"..x], _G["Tooltip_"..x], _G["Texture_"..x], grid[1][1][1], grid[1][1][2]) -- create dots group 2 to 8 for i=2,8 do for j=1,5 do local player = grid[i][j] local class = (player...
nilq/small-lua-stack
null
-- osc: sine, square, triangle and saw oscillators local defs = {name = 'Osc', knobs = {}} -- Define all the functions that map a phase to a [-1, 1] amplitude. -- Lua is pretty verbose here :( This should really all be 5 lines. -- Note that these all have a periodicity of 2, just 'cuz local function sine(phase) ...
nilq/small-lua-stack
null
--[[ file:cx_struct.lua desc:扯旋 auth:Caorl Luo ]] ---@alias cx_score number ---积分 ---@alias cx_double number ---倍数 ---@alias cx_type senum ---牌型 ---@alias cx_index number ---下标 ---@alias cx_enum senum ---枚举 ---@alias cx_seat number ---位置 ---@alias cx_card number ---牌值 ---@alias cx_value number ---...
nilq/small-lua-stack
null
local spritesheet = spritesheet --[[-------------------------------------------- Icons spritesheet ----------------------------------------------]] local mpSpritesheetMat = Material( "mediaplayer/ui/spritesheet2015-10-7.png" ) local blockSize = 24 local function mpIcon( name, i, j, w, h ) return { name = name, ...
nilq/small-lua-stack
null
-- TODO: long term - implement new UI resembling original game design -- more code cleanup? local SCREEN_WIDTH, SCREEN_HEIGHT = guiGetScreenSize() -- -- client HUD definitions -- _hud = {} -- loading screen _hud.loadingScreen = {} _hud.loadingScreen.deathmatchText = dxText:create("Deathmatch", 0, 0, false...
nilq/small-lua-stack
null
-- rats minetest.register_abm({ nodenames = { "default:dirt", "default:dirt_with_grass", "default:dirt_with_dry_grass", "seasons:spring_default_dirt_with_grass", "seasons:fall_default_dirt_with_grass", "seasons:winter_default_dirt_with_grass", "default:dirt_with_rainforest_litter", "default:dir...
nilq/small-lua-stack
null
local util = require('pipes_util') local push = util.push local pop = util.pop local isEmpty = util.isEmpty -- local inner = require('pipes_inner') local typeLua = inner.typecode('lua') -- local pps = {} if not PIPES_C_LIB then PIPES_C_LIB = OPEN_PIPES_C_LIB() end local _c = PIPES_C_LIB local _co = coroutine l...
nilq/small-lua-stack
null
return function(player,attackRate) return { type = script.Name, player = player, attackRate = attackRate, replicateTo = player, } end
nilq/small-lua-stack
null
require('plugin.mappings') require('plugin.settings') vim.g.coq_settings = { xdg = false, auto_start = 'shut-up', display = { pum = { fast_close = false, source_context = {"[", "]"}, }, preview = { border = "single", positions = { east = 1, south = 2, north = 3, west = 4, }, }...
nilq/small-lua-stack
null
------------------------------------------------------------------------------- -- Imports ------------------------------------------------------------------------------- dofile("src/ParticleHelper.lua" ) dofile("src/Settings.lua") dofile("src/Assets.lua") dofile("src/GameState.lua") dofile("src/Util.lua") dofile("src/...
nilq/small-lua-stack
null
local setTimeout = require('async.time').setTimeout local flow = {} flow.ratelimiter = function(persecond) local func_list = {} local arg_list = {} local currently_running = 0 local waiting = false local rate = 1000 / (persecond or 100) local exec_next exec_next = function() if #func_list ...
nilq/small-lua-stack
null
-- lib/server/networking.lua -- add some network strings util.AddNetworkString("bsu_client_ready") -- used to tell the server when the clientside part of the addon has loaded util.AddNetworkString("bsu_rpc") -- used for client RPC system util.AddNetworkString("bsu_client_info") -- used to send client info to the serv...
nilq/small-lua-stack
null
concommand.Add( "SetSCarPlayerSCarKey", function( ply, com, args ) ply.ScarSpecialKeyInput[SCarKeys.KeyVarTransTable[math.floor(tonumber(args[1]))]] = math.floor(tonumber(args[2])) end) function SCarKeys:KeyDown(ply, key) if ply and key and ply.ScarSpecialKeyInput[key] and ply.ScarSpecialKeyInput[key] == 2 then retu...
nilq/small-lua-stack
null
local class = require("heart.class") local M = class.newClass() function M:init(engine, config) self.engine = assert(engine) self.parentConstraintEntities = assert(self.engine.componentEntitySets.parentConstraint) self.parentConstraintComponents = assert(self.engine.componentManagers.parentConstraint)...
nilq/small-lua-stack
null
local BuildingProperties = {} local defines = {} local building = { maxHp = 1800, -- 最大 HP maxArmor = 0, -- 最大装甲 } defines["BuildingP001"] = building ---------------------- local building = { maxHp = 1800, -- 最大 HP maxArmor = 0, -- 最大装甲 } defines["Buil...
nilq/small-lua-stack
null
-- get machine info: this needs to be loaded *before* the node9 cdefs -- first the misc machine info ffi.cdef[[ extern char *hostcpu(); extern char *hostos(); /* the machine architecture word size in bytes, usually 4 or 8 */ extern int wordsize(); /* number of 32-bit words (ints) in the os machine state */ ext...
nilq/small-lua-stack
null
----------------------------------------------------------- --To be removed ----------------------------------------------------------- function cmd_set_xp(player, cmd, args, argStr) local amount = tonumber(argStr) if(amount != nil) then player_manager.RunClass( player, "SetXP", amount) player_manager.RunClass( p...
nilq/small-lua-stack
null
local g, o, wo, bo = vim.g, vim.o, vim.wo, vim.bo local utils = require "utils" local map = utils.map -- BASE VIM KEYBINDINGS local expr = { expr = true } local remap = { noremap = false } local silent = { silent = true } local silent_expr = { silent = true, expr = true } local silent_remap = { silent = true, noremap ...
nilq/small-lua-stack
null
CombatControls = {} -- private variables local combatControlsButton local combatControlsWindow local fightOffensiveBox local fightBalancedBox local fightDefensiveBox local chaseModeButton local safeFightButton local fightModeRadioGroup -- private functions local function onFightModeChange(self, selectedFightButton) ...
nilq/small-lua-stack
null
workspace "tp1" architecture "x64" configurations { "debug", "release" } folder = "%{cfg.buildcfg}/%{cfg.system}/%{cfg.architecture}" project "wav" location "config/%{prj.name}" kind "StaticLib" language "C++" cppdialect "C++17" staticruntime "on" targetdir ("bin/%{prj.na...
nilq/small-lua-stack
null
local middle = require 'hawk/middleclass' local machine = require 'hawk/statemachine' local app = require 'app' local anim8 = require 'vendor/anim8' local gamestate = require 'vendor/gamestate' local timer = require 'vendor/timer' local tween = require 'vendor/tween' local game = require 'game' local camera = requir...
nilq/small-lua-stack
null
inviteView2= { name="inviteView2",type=0,typeName="View",time=0,x=-1,y=0,width=1280,height=720,visible=1,nodeAlign=kAlignCenter,fillParentWidth=1,fillParentHeight=1, { name="bg",type=1,typeName="Image",time=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft,file="...
nilq/small-lua-stack
null
--import local WIM = WIM; local _G = _G; local CreateFrame = CreateFrame; local table = table; local string = string; --set namespace setfenv(1, WIM); local Menu = CreateModule("Menu", true); local groupCount = 0; local buttonCount = 0; local lists = { whisper = {}, chat = {} } local maxButtons = { whis...
nilq/small-lua-stack
null
local outerFolder = (...):match('(.-)[^%.]+$') return { Scene = require(outerFolder .. 'scene'), Object = require(outerFolder .. 'scene-data.object'), Material = require(outerFolder .. 'scene-data.material'), Light = require(outerFolder .. 'scene-data.light') }
nilq/small-lua-stack
null
OCRP_VehicleGas = 0 OCRP_CurCar = "none" function GetCurCar(umsg) local car = umsg:ReadString() if car == "none" then return end if not GAMEMODE.OCRP_Cars[car] then return end OCRP_CurCar = GAMEMODE.OCRP_Cars[car].Name end usermessage.Hook("OCRP_UpdateCurCar", GetCurCar) net.Receive("OCRP_SendAllCars"...
nilq/small-lua-stack
null
local function isModuleAvailable(name) if package.loaded[name] then return true else for _, searcher in ipairs(package.searchers or package.loaders) do local loader = searcher(name) if type(loader) == 'function' then package.preload[name] = loader return true end end ...
nilq/small-lua-stack
null
local theme_assets = require("beautiful.theme_assets") local xresources = require("beautiful.xresources") local dpi = xresources.apply_dpi local gears = require("gears") local gfs = require("gears.filesystem") local themes_path = gfs.get_themes_dir() local theme = {} theme.font_family = "JetBrains Mono Regular" theme...
nilq/small-lua-stack
null
TOOL.Category = "Resource Distribution" TOOL.Name = "#Resource Valves" TOOL.DeviceName = "Resource Valve" TOOL.DeviceNamePlural = "Resource Valves" TOOL.ClassName = "valves" TOOL.DevSelect = true TOOL.CCVar_type = "rd_ent_valve" TOOL.CCVar_sub_type = "normal" TOOL.CCVar_model = "models/ResourcePump/resourcepum...
nilq/small-lua-stack
null
function AgiSteal( keys ) local hero = keys.target local caster = keys.caster local ability = keys.ability local AGIMultiplier = ability:GetLevelSpecialValueFor("agi_steal_multiplier", (ability:GetLevel() - 1)) local heroAGI = hero:GetLevel() local AGIGain = heroAGI * AGIMultiplier local currentAGI = caster:GetModifier...
nilq/small-lua-stack
null
-- Configurations --- plc_prompt_type is whether the displayed prompt is the full path or only the folder name -- Use: -- "full" for full path like C:\Windows\System32 local promptTypeFull = "full" -- "folder" for folder name only like System32 local promptTypeFolder = "folder" -- "smart" to switch in git re...
nilq/small-lua-stack
null
-- Addon: PersonalAssistant -- Developer: Klingo PA = {} PA.AddonVersion = "1.8.2" -- 1.3.3 fix -- http://www.esoui.com/forums/showthread.php?t=2054 -- http://www.esoui.com/forums/showthread.php?t=1944 -- TODO: -- Update Currency System: https://forums.elderscrollsonline.com/en/discussion/200789/imperial-city-api-pa...
nilq/small-lua-stack
null
--All of these functions are related to updating the ui from the data or vice versa. local lib = LibStub:GetLibrary("LibUIDropDownMenu-4.0") --Will take in the string ID and return the appropriate Locky Frame function NL.GetLockyFriendFrameById(LockyFrameID) for key, value in pairs(LockyFrame.scrollframe.content.Locky...
nilq/small-lua-stack
null
if (GetLocale() ~= "deDE") then return; end -- @EXACT = true: Translation has to be the exact(!) match in the clients language, -- beacause it carries technical semantics -- @EXACT = false: Translation can be done freely, because text is only descriptive -- Class Names -- @EXACT = false VUHDO_I18N_WARR...
nilq/small-lua-stack
null
--------------------------------------------------------------------------- -- Recording Input while Rewinding Playback frame-by-frame -- by AnS, 2012 --------------------------------------------------------------------------- -- Showcases following functions: -- * joypad.getimmediate() -- * taseditor.getrecorder...
nilq/small-lua-stack
null
local Dta = select(2, ...) Dta.move = {} ------------------------------- -- POSITION CHECKBOXES / BUTTON HANDLERS ------------------------------- function Dta.move.ModeSwapped(move_ui) move_ui.x:SwapText() move_ui.y:SwapText() move_ui.z:SwapText() end function Dta.move.modifyPositionModeAbsChanged() local move_u...
nilq/small-lua-stack
null
-- Super Mario Sunshine (PAL v1.0) local core = require("games.core") return core.newGame(0x803FBBF4)
nilq/small-lua-stack
null
function binInventoryChange() if entity.id() then local container = entity.id() local frames = entity.configParameter("binFrames", 9) local fill = math.ceil(frames * fillPercent(container)) if self.fill ~= fill then self.fill = fill entity.setAnimationState("fill", tostring(fill)) end ...
nilq/small-lua-stack
null
local TokenBuffer = assert(yatm_oku.TokenBuffer) local match_tokens = assert(yatm_oku.match_tokens) local string_pad_leading = assert(foundation.com.string_pad_leading) local string_rsub = assert(foundation.com.string_rsub) local string_hex_pair_to_byte = assert(foundation.com.string_hex_pair_to_byte) local Parser = {...
nilq/small-lua-stack
null
--------------------------------- --! @file TimeMeasure.lua --! @brief 時間計測ヘルパ関数定義 --------------------------------- --[[ Copyright (c) 2017 Nobuhiko Miyamoto ]] local TimeMeasure= {} --_G["openrtm.TimeMeasure"] = TimeMeasure TimeMeasure.new = function() local obj = {} return obj end return TimeMeasure
nilq/small-lua-stack
null
local Log = require "log" local io = require "io" local os = require "os" local string = require "string" local date = require "date" local lfs = require "lfs" local DIR_SEP = package.config:sub(1,1) local IS_WINDOWS = DIR_SEP == '\\' local function remove_dir_end(str) return (string.gsub(str, '[\\/...
nilq/small-lua-stack
null
print( "yowhat?" ) print( 3 + 2 ) a = 1
nilq/small-lua-stack
null
-- -------------------------------------------------------- -- static background image local file = ... -- We want the Shared BG to be used on the following screens. local SharedBackground = { ["ScreenInit"] = true, ["ScreenLogo"] = true, ["ScreenTitleMenu"] = true, ["ScreenTitleJoin"] = true, ["ScreenSelectProf...
nilq/small-lua-stack
null
local root = script.Parent.Parent local G = require(root.G) local Slider = {} Slider.__index = Slider Slider.New = function(label, parent, min, max, default, round, snapping) local self = setmetatable({}, Slider) self._maid = G.classes["Maid"].New() self.event = G.classes["Event"].New() self.label = label o...
nilq/small-lua-stack
null
-- A water mill produces LV EUs by exploiting flowing water across it -- It is a LV EU supplier and fairly low yield (max 180EUs) -- It is a little over half as good as the thermal generator. local S = technic.getter local cable_entry = "^technic_cable_connection_overlay.png" minetest.register_alias("water_mill", "t...
nilq/small-lua-stack
null
--[[ Autoinstall plugin Licensed by Creative Commons Attribution-ShareAlike 4.0 http://creativecommons.org/licenses/by-sa/4.0/ Dev: TheHeroeGAC Designed By Gdljjrod & DevDavisNunez. Collaborators: BaltazaR4 & Wzjk. ]] local psvita_callback = function () menu_ps() end local psp_callback = function () me...
nilq/small-lua-stack
null
me = Game.Players.yfc rdist = 15 mod = Instance.new("Model") mod.Parent = me.Character mod.Name = "mod" local dist = rdist * 2 orb = Instance.new("Part") orb.Parent = mod orb.Name = "Head" orb.Shape = "Ball" orb.BrickColor = BrickColor.new("Mid grey") orb.Anchored = true orb.TopSurface = "Smooth" orb.Bottom...
nilq/small-lua-stack
null
return{ name= 'robot', type= 'vehicle', hasAttack = true, move = {'loop', {'2,1','1,1','3,1','1,1'}, .25}, attack = {'loop', {'1-3,1'}, .25}, height = 223, width = 216, xOffset= 40, yOffset= -17, }
nilq/small-lua-stack
null
local I18N = require("api.I18N") local Draw = require("api.Draw") local Gui = require("api.Gui") local Ui = require("api.Ui") local UiTheme = require("api.gui.UiTheme") local IUiLayer = require("api.gui.IUiLayer") local TopicWindow = require("api.gui.TopicWindow") local InputHandler = require("api.gui.InputHandler") l...
nilq/small-lua-stack
null
--[[ Nether mod for minetest Copyright (C) 2013 PilzAdam Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND ...
nilq/small-lua-stack
null
#!/usr/bin/env lua -- (C) Copyright 2009 Hewlett-Packard Development Company, L.P. -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -- TH...
nilq/small-lua-stack
null
local map = vim.api.nvim_set_keymap -- moved to whichkey -- map('n', '<Leader>w', ':write<cr>', {noremap = true}) map("i", "jk", "<Esc>", { noremap = true }) -- skip if module(s) isn't loaded local status_ok, bufferline = pcall(require, "bufferline") if status_ok then map("n", "<Tab>", ":BufferLineCycleNext<CR>", { s...
nilq/small-lua-stack
null
---@class love local m = {} --region Data ---@class Data : Object ---The superclass of all data. local Data = {} ---Gets a pointer to the Data. ---@return light userdata function Data:getPointer() end ---Gets the size of the Data. ---@return number function Data:getSize() end ---Gets the full Data as a string. ---@r...
nilq/small-lua-stack
null
------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------ -- ...
nilq/small-lua-stack
null
--[[ This file is part of script complex Properties Ribbon Copyright (c) 2020-2021 outsidepro-arts License: MIT License ---------- Let me say a few word before starts LUA - is not object oriented programming language, but very flexible. Its flexibility allows to realize OOP easy via metatables. In this scripts the ps...
nilq/small-lua-stack
null
object_mobile_azure_cabal_greel_smuggler_f_02 = object_mobile_shared_azure_cabal_greel_smuggler_f_02:new { } ObjectTemplates:addTemplate(object_mobile_azure_cabal_greel_smuggler_f_02, "object/mobile/azure_cabal_greel_smuggler_f_02.iff")
nilq/small-lua-stack
null
--[[ ]]-- --Plutonium local RunService = game:service'RunService' local Camera = Workspace.CurrentCamera or nil local Lighting = game.Lighting local Version = "XV415" local Player = game.Players.LocalPlayer or game.Players.runtoheven local UserInterface = game:service'UserInputService' local RF = game.ReplicatedSt...
nilq/small-lua-stack
null
---------MOVEAPI--------- --GlobalVars-- xCord = 0 yCord = 0 zCord = 0 facing = 0 --GlobalVars END-- function forward(moveAmount) for u=1, moveAmount do if turtle.forward() then if (facing == 0) then xCord = xCord + 1 elseif (facing == 1) then yCord = yCord - 1...
nilq/small-lua-stack
null
object_tangible_tcg_series5_hangar_ships_tie_interceptor = object_tangible_tcg_series5_hangar_ships_shared_tie_interceptor:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series5_hangar_ships_tie_interceptor, "object/tangible/tcg/series5/hangar_ships/tie_interceptor.iff")
nilq/small-lua-stack
null
-- Activate debug console by Ctrl+F1 function events.KeyDown(t) if t.Key == const.Keys.F1 and Keys.IsPressed(const.Keys.CTRL) then t.Key = 0 debug.debug() end end
nilq/small-lua-stack
null
local job = {} job.http = require("job/http") job.conf = require("conf/job") return job
nilq/small-lua-stack
null
local gps = require("nvim-gps") local function whichLsp() local msg = 'No Active Lsp' local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype') local clients = vim.lsp.get_active_clients() if next(clients) == nil then return msg end for _, client in ipairs(clients) do local filetypes = client.config.filetype...
nilq/small-lua-stack
null
--阳夏的有顶天 local m=14050016 local cm=_G["c"..m] function cm.initial_effect(c) --cannot be destroyed local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_INDESTRUCTABLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetValue(1) c:RegisterEffect(e1) ...
nilq/small-lua-stack
null
local goldBarLayout= { name="goldBarLayout",type=0,typeName="View",time=0,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignCenter, { name="Image_mask",type=0,typeName="Image",time=119620067,x=327,y=182,width=64,height=64,nodeAlign=kAlignTopLeft,visible=1,fillPare...
nilq/small-lua-stack
null
-- This thread accepts incoming requests on one channel, and pushes back responses -- on another channel. -- These two channels can be passed as var args, or will otherwise default to -- "http_requests" and "http_responses". -- Requests need to be a single URL. This module currently only supports GET -- requests. local...
nilq/small-lua-stack
null
-- IMPORTS -- ======= local lfs = require("lfs") -- RECURSE -- ======= function build(in_dir, out_dir, tl, path, depth) -- set defaults for init if not path then path = in_dir end if not depth then depth = 1 end -- make current path dir local tmp = "." for p in path:gsub("^" .. in_dir, out_dir):gmat...
nilq/small-lua-stack
null
------------------------------------------------------------------- --------------------------- Utilities --------------------------- ------------------------------------------------------------------- --[[ Utils: string utils.getField (str, kwrd) -- extract field value from line (comma separated) ...
nilq/small-lua-stack
null
-- To run this test: -- TEST_FILE=test/functional/example_spec.lua make functionaltest local helpers = require('test.functional.helpers')(after_each) local Screen = require('test.functional.ui.screen') local clear = helpers.clear local command = helpers.command local eq = helpers.eq local feed = helpers.feed descr...
nilq/small-lua-stack
null
local Map = require "maps.map" local TwinHousesWalk = Map:new() function TwinHousesWalk:new(o, control) o = o or Map:new(o, control) setmetatable(o, self) self.__index = self return o end function TwinHousesWalk:create() Map.create(self) end function TwinHousesWalk:enter() Map.enter(self) end function...
nilq/small-lua-stack
null
local PluginRoot = script.Parent.Parent.Parent.Parent local Roact = require(PluginRoot.Libs.Roact) local SelectorContext = Roact.createContext() local SelectorController = Roact.Component:extend("SelectorController") function SelectorController:init() local mainManager = self.props.mainManager self.mainManager = m...
nilq/small-lua-stack
null
--map based functions, version 42.06a --[[ changeInorganic(x,y,z,inorganic,dur) - Changes the inorganic of the specified position changeTemperature(x,y,z,temperature,dur) - Changes the temperature of the specified position (doesn't really work well since the game constantly reupdates temperatures) checkBounds(po...
nilq/small-lua-stack
null
-- Acrobat Master v2.1 by Cegaiel -- -- Immediately upon Starting: -- Searches your acro menu for all of your acro buttons. It will not include acro move names on the list, that is not inside of a button. -- Displays your available moves in a list with a checkbox beside each one. If checked, it will click the move ...
nilq/small-lua-stack
null
--require "defines" DEBUG = false --[[ General notes for those planning to utilize this API: - do not combine entities from multiple mods, unless it's the vehicle 'turrets' included in this APIs - add this mod as a dependancy unless you want unexpected weird behavior - the teleport command works on many enti...
nilq/small-lua-stack
null
-- ======================================================================== -- MANDATORY (MUST BE CAREFULLY CHECKED AND PROPERLY SET!) -- ======================================================================== -- Name of this instance, defaults to name of config file -- -----------------------------------------------...
nilq/small-lua-stack
null
return { Colors = { Background = Color3.fromRGB(255, 211, 49), --// Background Color of UI Accent = Color3.fromRGB(56, 56, 56), --// Accent Color of UI PrimaryText = Color3.fromRGB(25, 25, 25), --// Primary Text Color SuggestionText = Color3.fromRGB(95, 95, 95), --// Suggestion Text Color Divider = Color3.fr...
nilq/small-lua-stack
null
unit = "km/h" -- DEFAULT function updateUnit(setting, oldValue, newValue, retry) if (eventName == "onClientLoadSettings") then unit = exports.UCDsettings:getSetting("speedunit") elseif (eventName == "onClientSettingChange" and setting == "speedunit") then unit = newValue elseif (eventName == "onClientResourceSt...
nilq/small-lua-stack
null
local PING = {} PING.OK = { short = 'PING_OK $(server) $(ip) $(seq) $(ttl) $(time) $(um)', expanded = '64 bytes from $(server) $(ip): icmp_seq=$(seq) ttl=$(ttl) time=$(time) $(um)', expected = {'$(time) <= 200'}, alarm = {'$(time) > 400'} } PING.NAME_RESOLUTION_FAIL = { short = 'PING_NR_FAIL $(ser...
nilq/small-lua-stack
null
local ffi = require('ffi') local spi = require('pllj.spi').spi local bit = require("bit") local C = ffi.C; local trigger_event = { when ={ [tonumber(C.TRIGGER_EVENT_BEFORE)] = "before", [tonumber(C.TRIGGER_EVENT_AFTER)] = "after", [tonumber(C.TRIGGER_EVENT_INSTEAD)] = "instead", }, ...
nilq/small-lua-stack
null