content
stringlengths
0
1.05M
origin
stringclasses
2 values
type
stringclasses
2 values
ev3=require "ev3" plop=TachoMotor:new("plop")
nilq/small-lua-stack
null
object_tangible_furniture_city_road_torch_12x32_03 = object_tangible_furniture_city_shared_road_torch_12x32_03:new { } ObjectTemplates:addTemplate(object_tangible_furniture_city_road_torch_12x32_03, "object/tangible/furniture/city/road_torch_12x32_03.iff")
nilq/small-lua-stack
null
local local0 = 0.3 local local1 = 0.3 - local0 local local2 = 0.3 - local0 local local3 = 0.3 - local0 local local4 = 3.2 - local0 local local5 = 0.3 - local0 local local6 = 0.3 - local0 local local7 = 0.3 - local0 local local8 = 0.3 - local0 local local9 = 0.3 - local0 function OnIf_263005(arg0, arg1, arg2) if arg...
nilq/small-lua-stack
null
print(0.0) print(-0.0)
nilq/small-lua-stack
null
--[[ Frame class - Frame() table<GUIObject> getChildren() void setSize(Vector2D offset, Vector2D scale) void setPosition(Vector2D offset, Vector2D scale) Vector2D, Vector2D getSize() Vector2D, Vector2D getPosition() ]]-- local Event = require("core/Event") local RGBColor = require("datatypes/RGBColor") loca...
nilq/small-lua-stack
null
local widget = require( "widget" ) local composer = require( "composer" ) local json = require ("json") local myData = require ("mydata") local upgrades = require("upgradeName") local loadsave = require( "loadsave" ) local terminalScene = composer.newScene() -------------------------------------------------------------...
nilq/small-lua-stack
null
-- Copyright 2022 SmartThings -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in ...
nilq/small-lua-stack
null
local keys_helper = require('apicast.policy.3scale_batcher.keys_helper') local setmetatable = setmetatable local ipairs = ipairs local insert = table.insert local resty_lock = require 'resty.lock' local _M = {} local mt = { __index = _M } local lock_timeout = 10 local lock_options = { timeout = lock_timeout } -- N...
nilq/small-lua-stack
null
local BF_NIL = "BF_NIL" local realmName local reseverdata={}; local AllReseverData={}; local BankSaveData; local function BigFootBank_SendData(sender) local completely = true local Str="BigFootBankData:"; local SayTab={} local ii =0; if BankSaveData[realmName].bankData then if BankSaveData[realmName].bankData.n...
nilq/small-lua-stack
null
return { source = { type = 'dist', location = 'https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.5.1.tar.bz2', sha256sum = '6c2f3af8ceeb303277d44ec0216d9a1271701f65b91d5942264cf7cefb4a11e3' }, build = { type = 'gnu', options = { '--includedir=/include'...
nilq/small-lua-stack
null
require('components/boss/items') require('components/boss/ai') require('components/boss/bosses') require('components/boss/spawn') require('components/boss/ngp')
nilq/small-lua-stack
null
require "prototypes.technologies.satellite-telemetry" local text ={ type = "flying-text", name = "introspection-flying_text", flags = {"placeable-off-grid", "not-on-map"}, time_to_live = 60, speed = 0.05 } data:extend{text}
nilq/small-lua-stack
null
fcEmptyAnimations = {--luacheck: allow defined top filename = "__TheFatController__/graphics/trans1.png", priority = "medium", width = 1, height = 1, direction_count = 18, frame_count = 1, animation_speed = 0.15, shift = {0.0, 0.0}, axially_symmetrical = true } fcEmptyLevel = {--lua...
nilq/small-lua-stack
null
data:extend( { { type = "virtual-signal", name = "counting-signal", icon = "__UsefulCombinators__/graphics/icons/signal/counting-signal.png", subgroup = "virtual-signal", order = "z[counting]" }, { type = "virtual-signal", name = "time-mod-signal", icon = "__UsefulCombi...
nilq/small-lua-stack
null
--------------------------------------------------------------------------------------------------- ---main_menu_manager.lua ---author: Karl ---date: 2021.5.9 ---desc: implements a menu manager object that initializes menu pages and handles menu exit for the --- main menus ------------------------------------------...
nilq/small-lua-stack
null
place = {"унутар", "ван"}
nilq/small-lua-stack
null
--// Fast table restore --// Add your default values to the LoaderHead --// You can add your hook on the someone scene: AddLoaderHook("FunctionName") function LoaderHead() Font["Name"] = "Arial" Font["Text"] = "Arial" Font["TextColor"] = "white" Font["NameColor"] = "red" end
nilq/small-lua-stack
null
object_tangible_quest_som_jedi_two_glyph_03 = object_tangible_quest_shared_som_jedi_two_glyph_03:new { } ObjectTemplates:addTemplate(object_tangible_quest_som_jedi_two_glyph_03, "object/tangible/quest/som_jedi_two_glyph_03.iff")
nilq/small-lua-stack
null
OpenNefia.Prototypes.Elona.EquipSlot.Elona = { Head = { Name = "頭", }, Neck = { Name = "首", }, Back = { Name = "背中", }, Body = { Name = "胴体", }, Hand = { Name = "手", }, Ring = { Name = "指", }, Arm = { Name = "腕",...
nilq/small-lua-stack
null
function EventHorizon:InitializeClass() self.config.gcdSpellID = 118 -- Polymorph self.config.hastedSpellID = {118,1.7} self.config.past = -1 -- Number of seconds to show in the past. Default = -1 self.config.future = 9 -- Number of seconds to show in the future. Default = 9 -- Arcane -- Clearcasting proc, ...
nilq/small-lua-stack
null
local function rot9r(n, m) local a,b,c,d,e,f,g,h,i=1,2,3,4,5,6,7,8,9 local s = "" for x=1,n do a,b,c,d,e,f,g,h,i=i,a,b,c,d,e,f,g,h if x == m then s = table.concat{a,b,c,d,e,f,g,h,i} end c,d = d,c end return table.concat{a,b,c,d,e,f,g,h,i, s} end assert(rot9r(0,0) == "123456789") assert(rot9r(10,0...
nilq/small-lua-stack
null
-- Databox -- This library automatically loads and saves it's storage into databox.json inside Documents directory. -- And it uses iCloud KVS storage on iOS and tvOS. -- It uses metatables to do it's job. -- Require the library and call it with a table of default values. Only 1 level deep table is supported. -- support...
nilq/small-lua-stack
null
-- This tests the format, not the randomness -- https://tools.ietf.org/html/rfc4122#section-4.4 local pattern = "^" .. table.concat({ string.rep("%x", 8), string.rep("%x", 4), "4" .. -- version string.rep("%x", 3), "[89ab]" .. -- reserved bits of 1 and 0 string.rep("%x", 3), string.rep("%x", 12), }, "%-") .. "...
nilq/small-lua-stack
null
resource_manifest_verion '44febabe-d386-4d18-afbe-5e627f4af937' game 'gta5' author 'Ardavan81' description 'Fix & Clean Command For Staff Team' client_script 'client.lua' server_script 'server.lua'
nilq/small-lua-stack
null
veermok_hunter = Creature:new { objectName = "@mob/creature_names:veermok_hunter", socialGroup = "veermok", faction = "", level = 17, chanceHit = 0.32, damageMin = 160, damageMax = 170, baseXp = 1257, baseHAM = 3500, baseHAMmax = 4300, armor = 0, resists = {115,-1,5,5,5,5,5,-1,-1}, meatType = "meat_carnivo...
nilq/small-lua-stack
null
require "oil" oil.main(function() local orb = oil.init() ------------------------------------------------------------------------------ orb:loadidl [[ module Adaptation { interface Server { boolean do_something_for(in long seconds); }; interface Adaptor { void update_definition(in string definitio...
nilq/small-lua-stack
null
local serialize = require "serialize" local t = require "testhelper" local function reco( v ) return load( 'return ' .. serialize( v ) )() end -- Simple values t( reco( nil ), nil, t.deepsame ) t( reco( true ), true, t.deepsame ) t( reco( 1 ), 1, t.deepsame ) t( reco( "hi" ), "hi", t.deepsame ) t( reco( {} ), {}, t...
nilq/small-lua-stack
null
local playsession = { {"ZeroBeta", {1081206}}, {"ManuelG", {1056004}}, {"cogito123", {1102163}}, {"Edyconex", {367832}}, {"yulingqixiao", {777960}}, {"captnemo", {287204}}, {"Kiwicake", {275970}}, {"kendoctor", {1059509}}, {"TheLeu", {539017}}, {"Lucasuper32", {291238}}, {"tykak", {387916}}, {"jackazzm", {9...
nilq/small-lua-stack
null
-------------------------------------------------------------------------------- -- 81-722 I/O module -------------------------------------------------------------------------------- -- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o. -- Contains proprietary code. See license.txt for additional infor...
nilq/small-lua-stack
null
local Terminal = require('opus.terminal') local trace = require('opus.trace') local Util = require('opus.util') local colors = _G.colors local os = _G.os local printError = _G.printError local term = _G.term local window = _G.window local UID = 0 local multishell = { } local proc...
nilq/small-lua-stack
null
if not modules then modules = { } end modules ['font-otj'] = { version = 1.001, comment = "companion to font-lib.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files", } -- This property based...
nilq/small-lua-stack
null
local util = require("pandoc_vim_help.util") local M = {} local link_target_prefix function M.Meta(e) link_target_prefix = e.link_target_prefix return e end function M.Link(e) if not link_target_prefix then return e end if util.starts_with(e.target, "http://") or util.starts_with(e.target, "https://") ...
nilq/small-lua-stack
null
-- Copyright (c) 2008 Mikael Lind -- -- 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, publis...
nilq/small-lua-stack
null
-- NaoTH controller for the logfile based "simulator" project "GeneralAlignment" kind "ConsoleApp" language "C++" includedirs { "../Source/GeneralAlignment/", } files { "../Source/GeneralAlignment/**.cpp", "../Source/GeneralAlignment/**.h", "../Source/GeneralAlignment/**.hpp" } link...
nilq/small-lua-stack
null
--[[ Shine No Rookies - Server ]] local InfoHub = Shine.PlayerInfoHub local Plugin = ... Plugin.Version = "1.7" Plugin.ConfigName = "NoRookies.json" Plugin.DefaultConfig = { UseSteamTime = true, MinPlayer = 0, MinPlayerCom = 0, DisableAfterRoundtime = 0, MinPlaytime = 8, MinComPlaytime = 8, ShowInform = true,...
nilq/small-lua-stack
null
-- -- Ideal public usage: -- -- p = Python.New() -- p:Install({ -- Pip = true, -- PythonDev = true, -- VirtualEnv = true, -- Gunicorn = true, -- }) -- local Python = {} Python.__index = Python -- ---------------- -- private methods -- ---------------- local function installPythonDev() AptGet({ ...
nilq/small-lua-stack
null
local _, nCore = ... local unpack = unpack function nCore:CreateAnchor(name, width, height, location) local anchorFrame = CreateFrame("Frame", name.."_Anchor", UIParent, "BackdropTemplate") anchorFrame:SetSize(width, height) anchorFrame:SetScale(1) anchorFrame:SetPoint(unpack(location)) anchorFram...
nilq/small-lua-stack
null
coslogon.logoffUser()
nilq/small-lua-stack
null
--[[ "A moment of silence for my old Ipad 3 as FGO EN ditched support for iOS 9" - ryuga93 --]] local ankuluaUtils = require "ankulua-utils" local stringUtils = require "string-utils" --Constants --Weak, resist, etc. Compatiable for most server, but tricky, frequently fail. local Card1AffinRegion = Region...
nilq/small-lua-stack
null
object_tangible_furniture_rustic_armoire_rustic_s01 = object_tangible_furniture_rustic_shared_armoire_rustic_s01:new { } ObjectTemplates:addTemplate(object_tangible_furniture_rustic_armoire_rustic_s01, "object/tangible/furniture/rustic/armoire_rustic_s01.iff")
nilq/small-lua-stack
null
local defs = {} defs["ImColor"] = "struct ImColor" defs["ImDrawCallback"] = "void(*)(const ImDrawList* parent_list,const ImDrawCmd* cmd);" defs["ImDrawChannel"] = "struct ImDrawChannel" defs["ImDrawCmd"] = "struct ImDrawCmd" defs["ImDrawCmdHeader"] = "struct ImDrawCmdHeader" defs["ImDrawData"] = "struct ImDrawData" def...
nilq/small-lua-stack
null
if not (GetLocale() == "deDE") then return end local _, db = ...
nilq/small-lua-stack
null
-- Note: Premake5 crashes if there is no valid platform for a project. -- Since this plugin is only supported on Windows, we must not define it -- if the host platform is not Windows. if not minko.platform.supports { "windows32", "windows64" } then return end PROJECT_NAME = path.getname(os.getcwd()) minko.project.l...
nilq/small-lua-stack
null
function init() local bounds = mcontroller.boundBox() effect.addStatModifierGroup({ {stat = "jumpModifier", amount = 20.0} }) end function update(dt) mcontroller.controlModifiers({ airJumpModifier = 7.0 }) end function uninit() end
nilq/small-lua-stack
null
local Native = require('lib.native.native') ---@class AbilityIntegerLevelField local AbilityIntegerLevelField = { ManaCost = Native.ConvertAbilityIntegerLevelField(0x616D6373), --ABILITY_ILF_MANA_COST NumberOfWaves = Native.ConvertAbilityIntegerLevelField(0x48627A31), --ABILITY_ILF_NUMBER_OF_WAVES NumberOf...
nilq/small-lua-stack
null
-- Generated by CSharp.lua Compiler local System = System System.namespace("Slipe.Client.Dx", function (namespace) -- <summary> -- Interface for drawable objects on render -- </summary> namespace.interface("IDrawable", function () return {} end) end)
nilq/small-lua-stack
null
local modpath = minetest.get_modpath("bromeliads") -- Add everything: local modname = "bromeliads" local regBrom = function(color, capColor) minetest.register_node("bromeliads:bromeliad_"..color, { description = capColor .. " Bromeliad", drawtype = "plantlike", waving = 1, visual_scale = 1.0, tiles = ...
nilq/small-lua-stack
null
local _, private = ... if private.isClassic then return end --[[ Lua Globals ]] -- luacheck: globals --[[ Core ]] local Aurora = private.Aurora local Base = Aurora.Base local Hook, Skin = Aurora.Hook, Aurora.Skin local Util = Aurora.Util do --[[ FrameXML\HelpTip.lua ]] local directions = { "Down", ...
nilq/small-lua-stack
null
cc = cc or {} ---EventListener object ---@class EventListener : Ref local EventListener = {} cc.EventListener = EventListener -------------------------------- --- Enables or disables the listener.<br> ---note Only listeners with `enabled` state will be able to receive events.<br> ---When an listener was initialized, i...
nilq/small-lua-stack
null
local addonName, addonScope = ... local data = addonScope.data local AL = addonScope.AL local ALIL = addonScope.ALIL local NORMAL_DIFF = addonScope.NORMAL_DIFF local ALLIANCE_DIFF = addonScope.ALLIANCE_DIFF local HORDE_DIFF = addonScope.HORDE_DIFF local LOAD_DIFF = addonScope.LOAD_DIFF local NORMAL_ITTYPE = addonScope....
nilq/small-lua-stack
null
----------------------------------------------------- ITEM.name = "Chartogne - Taillet 1902" ITEM.desc = "Bottle of Chartogne - Taillet Champagne, 1902." ITEM.category = "Alcohols" ITEM.model = "models/foodnhouseholditems/champagne2.mdl" ITEM.hunger = 10 ITEM.thirst = 40 ITEM.empty = false ITEM.permit = "cons...
nilq/small-lua-stack
null
local function find_digest_in_process_set(digest, threshold) local process_cursor = 0 local job_cursor = 0 local pattern = "*" .. digest .. "*" local found = false log_debug("Searching in process list", "for digest:", digest, "cursor:", process_cursor) repeat ...
nilq/small-lua-stack
null
-- Server Objects includeFile("custom_content/tangible/deed/player_house_deed/musty_house_deed.lua") includeFile("custom_content/tangible/deed/player_house_deed/jedi_house_deed.lua") includeFile("custom_content/tangible/deed/player_house_deed/vipbunker_house_deed.lua") includeFile("custom_content/tangible/deed/player_h...
nilq/small-lua-stack
null
local export = {} function export.new() local api = {} local log = require('log') local checks = require('checks') local netbox = require('net.box') local query = require('model.query').model() ----------------- -- API methods -- ----------------- function api.create_database() ...
nilq/small-lua-stack
null
data.raw["assembling-machine"]["centrifuge"].fast_replaceable_group = "centrifuge" data.raw["boiler"]["heat-exchanger"].fast_replaceable_group = "heat-exchanger" data.raw["reactor"]["nuclear-reactor"].fast_replaceable_group = "nuclear-reactor"
nilq/small-lua-stack
null
-- Reload recipes and technologies for _, force in pairs(game.forces) do force.reset_recipes() force.reset_technologies() -- Generate technology and recipe tables local tech = force.technologies local recipes = force.recipes -- Unlock researched recipes if tech["atomic-bomb"].researched then recipes["atomic-...
nilq/small-lua-stack
null
local list = {"proton", "neutron", "electron", "anti-electron", "anti-proton","muon", "up-quark", "down-quark", "photon", "strange-quark", "electron-neutrino", "muon-neutrino", "tauon", "charm-quark", "bottom-quark", "tau-neutrino", "w-boson", "z-boson", "top-quark", "gluon", "higgs-boson"} for k,v in pairs(list) do d...
nilq/small-lua-stack
null
local path = "?;?.lua;../?;../?.lua" package.path = path
nilq/small-lua-stack
null
local Mod = GameMain:GetMod("CanVox.NewCharRandomizer") Mod.InputFilter = Mod.InputFilter or {} local filter = { Name = "Basic", DisplayName = "Basic", Sort = 4000, DefaultPriority = 6000, Age = { Min = 23, Max = 40, }, Stats = { Total = { Min = 21, ...
nilq/small-lua-stack
null
--[[ MIT License Copyright (c) 2019 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
function moveCamKeys() local keyDown = love.keyboard.isDown local keys = { {"a", 1, 0.1}; {"d", 1, -0.1}, {"q", 2, 0.1}; {"e", 2, -0.1}, {"s", 3, 0.1}; {"w", 3, -0.1}, } for _,k in ipairs(keys) do if keyDown(k[1]) then local raw_offset = {0, 0, 0} raw_offset[k[2]] = k[3] loc...
nilq/small-lua-stack
null
local cjson = require "cjson" local http = require "resty.http" local balancer = require "ngx.balancer" local _M = {} _M._VERSION="0.1" function indexOf(array, value) for i, v in ipairs(array) do if v == value then return i end end return nil end function _M:refresh(tag) ...
nilq/small-lua-stack
null
local itemTypes = {} local npc_coins = { 10, 33, 88, 103, 138, 152, 251, 252, 253, 258, 274 } local npc_radishes = { 9, 184, 185, 249 } local npc_fire_plants = { 14, 182, 183 } local npc_ice_plants = { 264, 277 } local npc_lives = { 90, 186, 187 } local npc_shells = { 5, 7, 24, 73, 113, 114...
nilq/small-lua-stack
null
-- Format for overwriting define values: -- -- NDefines.NDiplomacy.DEMESNE_BASE_MAX_SIZE = 2.0 NDefines.NDiplomacy.LONG_REIGN_YEARS_START = 50 NDefines.NDiplomacy.MAX_LONG_REIGN_BONUS = 20 NDefines.NDiplomacy.RETIRE_TO_MONASTERY_INTERACTION_PIETY = 100000 NDefines.NDiplomacy.RETIRE_TO_MONASTERY_INTERACTION_ENABLED = 0 ...
nilq/small-lua-stack
null
-- -- Created by IntelliJ IDEA. -- User: damian -- Date: 13/01/2017 -- Time: 23:54 -- To change this template use File | Settings | File Templates. -- SectionB = {} function SectionB:new() o = {activeBassBlocks={}} setmetatable(o, self) self.__index = self return o end function SectionB:HandleKick() ...
nilq/small-lua-stack
null
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- modifier_generic_l...
nilq/small-lua-stack
null
if battle == 2 then character_2:UseSkill(1) end
nilq/small-lua-stack
null
local xxtea = require 'xxtea' local function randstr(n) local t = {} for i = 1, math.random(0, n) do t[i] = string.char(math.random(0, 255)) end return table.concat(t) end math.randomseed(os.time()) for i = 1, 1000 do local str = randstr(10000) local key = randstr(16) assert(xxtea.decrypt(xxtea.encrypt(str,...
nilq/small-lua-stack
null
--[[ Name: Sink-2.0 Revision: $Rev: 71 $ Author(s): Rabbit (rabbit.magtheridon@gmail.com), Antiarc (cheal@gmail.com) Website: http://rabbit.nihilum.eu Documentation: http://wiki.wowace.com/index.php/Sink-2.0 SVN: http://svn.wowace.com/wowace/trunk/SinkLib/Sink-2.0 Description: Library that handles chat output. Dependen...
nilq/small-lua-stack
null
-- this function gives time in ms; must be changed depending on system return draw.gettime
nilq/small-lua-stack
null
--------------------------------------------- -- Vitriolic Shower -- Description: Expels a caustic stream at targets in a fan-shaped area of effect. Additional effect: Burn -- Type: Magical -- Utsusemi/Blink absorb: Wipes shadow -- Range: Cone --------------------------------------------- require("scripts/globals/...
nilq/small-lua-stack
null
-- rcore.cz -- Some-RP.cz -- forum.some-rp.cz ESX = nil AdminPlayers = {} TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) RegisterCommand('tag', function(source,args) local xPlayer = ESX.GetPlayerFromId(source) if AdminPlayers[source] == nil then if Config.TagByPermission then ...
nilq/small-lua-stack
null
arrestPlayer = function(thief, cop, command) local i = thief local player = cop local thiefData = players[thief] local copData = players[cop] if not copData then eventNewPlayer(cop) return arrestPlayer(thief, cop, command) elseif not thiefData then eventNewPlayer(thief) return arrestPlayer(thief, cop, com...
nilq/small-lua-stack
null
Ground = { def = "ground_actor", position = {0, -11}, tag = "spawned", layer = "foreground", } Bouncy = { def = "physics_event_actor", position = {0, 8}, layer = "foreground", tag = "spawned", } Hud = { def = "simple_actor", size = 3, position = {0, 1}, alpha = 1.0, layer = "hud", color = ...
nilq/small-lua-stack
null
local a=loadstring(game:HttpGet("https://raw.githubusercontent.com/miroeramaa/TurtleLib/main/TurtleUiLib.lua"))()local b=a:Window("Scripts")local c=a:Window("LocalPlayer")local d=a:Window("Teleport Areas")local e=a:Window("FE Commands")e:Button("Become Manager",function()local f=game:GetService("Teams").Manager:GetPlay...
nilq/small-lua-stack
null
data:extend( { { type = "recipe", name = "pneumatic-tube", enabled = true, ingredients = { {"copper-plate", 2}, {"iron-gear-wheel", 3} }, result = "pneumatic-tube", result_count = 2, requester_paste_multiplier = 4 } } )
nilq/small-lua-stack
null
local path = string.sub(..., 1, string.len(...) - string.len(".row")) local layout = require(path..'.layout') ---@class Row local row = {} row.__index = row ---@return layout function row.new() local self = setmetatable({}, row) return layout(self, self.draw) end function row:draw(x, y, width, height, children...
nilq/small-lua-stack
null
-- Some helpers around löve functions. local LG = love.graphics -- rotates the scene around the given x,y point. local function rotateAround(x, y, angle) if angle and angle ~= 0 then LG.translate(x, y) LG.rotate(angle) LG.translate(-x, -y) end end -- scale around the given x,y point. local function sc...
nilq/small-lua-stack
null
-- code128-encode.lua by ywnico -- Code 128 encoding following https://en.wikipedia.org/wiki/Code_128 local patterns = { [0] = {1,1,0,1,1,0,0,1,1,0,0}, [1] = {1,1,0,0,1,1,0,1,1,0,0}, [2] = {1,1,0,0,1,1,0,0,1,1,0}, [3] = {1,0,0,1,0,0,1,1,0,0,0}, [4] = {1,0,0,1,0,0,0,1,1,0,0}, [5] = ...
nilq/small-lua-stack
null
-------------------------------------------------------------------------- -- This derived class of MName handles the latest modifiers for both -- prereq and load. -- -- @classmod MN_Latest require("strict") -------------------------------------------------------------------------- -- Lmod License -------------------...
nilq/small-lua-stack
null
local Root = script:GetCustomProperty("Root"):WaitForObject() local enabled = Root:GetCustomProperty("Enabled") if not enabled then return end local Commands = require(script:GetCustomProperty("Commands")) function seperateMessage(Message) return {CoreString.Split(Message, " ")} end function VerifyPlayer() e...
nilq/small-lua-stack
null
--------------------------------------------------------------------------------------------------- -- Proposal: -- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0221-multiple-modules.md -- Description: -- HMI sent capabilities where every type of modules have only one module available to the ...
nilq/small-lua-stack
null
LookupTable = {} function LookupTable.new(XMin, XMax, YMin, YMax, Size, DataPoints) -- Make shallow copy of data local DP = { unpack(DataPoints) } -- And sort it by X value table.sort(DP, function (a,b) return a[1] < b[1] end) -- Add proper boundaries so we don't have to deal with the edges if DP[1][...
nilq/small-lua-stack
null
----------------------------------- -- Area: Grand Palace of Hu'Xzoi -- NPC: Particle Gate -- !pos -39 0 -319 34 ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) player:startEvent(172) return 1 end function onEventUpdate(player, csid, option) end ...
nilq/small-lua-stack
null
_player=_player||player local cable={}local net_cache={}function cable.receive(id,callback)if SERVER then cable.check_networked_string(id)end return net.Receive(id,function(length,player)local c_len=net.ReadUInt(8)local c_tables=table.map(string.split(net.ReadString(),";"),function(v)return tonumber(v)end)local args={}...
nilq/small-lua-stack
null
--[[ tp8_bend __ ______ __ __ | \ / \ | \ | \ _| $$_ ______ | $$$$$$\ | $$____ ______ _______ ____| $$ | $$ \ / \ | $$__/ $$ | $$ \ / \ | \ / ...
nilq/small-lua-stack
null
Config = {} Config.RestrictedChannels = 20 -- channels that are encrypted (EMS, Fire and police can be included there) if we give eg 10, channels from 1 - 10 will be encrypted Config.enableCmd = true -- /radio command should be active or not (if not you have to carry the item "radio") true / false Config.messages = ...
nilq/small-lua-stack
null
-- Make Y behave like other capitals D, C... vim.api.nvim_set_keymap('n', 'Y', 'y$', { noremap = true }) -- Fast nohls vim.api.nvim_set_keymap('n', '<TAB><CR>', ':nohls<CR>', { noremap = true }) -- Editing and sourcing the vimrc faster vim.api.nvim_set_keymap('n', '<leader>ev', ':find $MYVIMRC<CR>', { noremap = true ...
nilq/small-lua-stack
null
--[[ Copyright (c) 2009 Peter "Corsix" Cawley 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, dis...
nilq/small-lua-stack
null
return function(t) assert_table(t) local result = {} for k, v in pairs(t) do result[#result + 1] = {key = k, value = v} end return result end
nilq/small-lua-stack
null
--[[ Visual Novel Example ]] scenes = {} fonts = {} colors = { menuitem = Color.from_hex('#AAAAAA'), bg = Color.from_hex('#333333'), white = Color.from_hex("#ffffff") } game.on('init', function() -- create a font. font_tex1 = assets.load_texture("fonts/arial_20.png") font_sm1 = assets.load_spritema...
nilq/small-lua-stack
null
-- For the love of furry heck, THIS PLACE NEEDS A CLEAN! -- Props will autotaunt at specified intervals local isEnabled = false local isProp = false local delay = PHX.CVAR.AutoTauntDelay:GetInt() or 6 local started = false local timerID = "ph_autotaunt_timer" local teamCheckTimer = "ph_autotaunt_teamchecktimer" local ...
nilq/small-lua-stack
null
object_tangible_item_entertainer_console_stage_generated_backdrop_wide_04 = object_tangible_item_entertainer_console_shared_stage_generated_backdrop_wide_04:new { } ObjectTemplates:addTemplate(object_tangible_item_entertainer_console_stage_generated_backdrop_wide_04, "object/tangible/item/entertainer_console/stage_ge...
nilq/small-lua-stack
null
-- Server Objects includeFile("custom_content/static/structure/dathomir/biohazard_sign_01.lua") includeFile("custom_content/static/structure/dathomir/biohazard_sign_02.lua") includeFile("custom_content/static/structure/dathomir/biohazard_sign_03.lua") includeFile("custom_content/static/structure/dathomir/deathtrooper_...
nilq/small-lua-stack
null
recipes = { sauce = { require = { tomato = 3, water = 1, salt = 1, }, }, hotsauce = { require = { tomato = 3, pepper = 2, water = 1, salt = 1, }, }, pizza = { require = { wheatFlour = 1, ...
nilq/small-lua-stack
null
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. jedi_belt_01 = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/loot/loot_schematic/armor_jedi_belt_01_schematic.iff", craftingValues = {}, customizationStringNames = {}, customizationValues = ...
nilq/small-lua-stack
null
-- MODULE CONFIG.LUA -- by Garran Plum -- -- GP Configuration for this individual mod. -- IMPORT GP OBJECT local myMod, GP = ... -- MY CONFIG Mod Name local modName = "casaDeFruta" -- MY CONFIG Paths local pathList = {"Worker_1", "Worker_2", "Transport", "Visitor"} local trayPathList = {"Worker_1", "Transport"} -- M...
nilq/small-lua-stack
null
--[[ Copyright (c) 2019, Vsevolod Stakhov <vsevolod@highsecure.ru> 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 ...
nilq/small-lua-stack
null
local vm = require 'vm' local ws = require 'workspace' local furi = require 'file-uri' local files = require 'files' local function asString(source) local literal = vm.getLiteral(source) if type(literal) ~= 'string' then return nil end local parent = source.parent if parent and paren...
nilq/small-lua-stack
null
local PlatformService = nil pcall(function() PlatformService = game:GetService('PlatformService') end) local Actions = script.Parent.Parent.Actions local SetRecentlyPlayedGamesFetching = require(Actions.SetRecentlyPlayedGamesFetching) local SetRecentlyPlayedGames = require(Actions.SetRecentlyPlayedGames) local RETRIES...
nilq/small-lua-stack
null