content
stringlengths
5
1.05M
package.path = package.path .. ";data/scripts/lib/?.lua" Dialog = include ("dialogutility") include ("stringutility") include ("callable") function initUI() ScriptUI():registerInteraction("I have the shipment.", "startInteraction") end function interactionPossible(_PlayerIndex, _Option) local _Player = Playe...
timers = {} player = {pos={}, time=false} shadow = {pos={}, time=false} sombra = {} watch = "Ninguem#0095" start = 0 replay = 1 pode = false map = "#17" function novoMapa(m) map = m or map tfm.exec.newGame(map) end function criaTimers() TICKS = 40 local s = 1000/TICKS for t = 0, 1000 - s, s do s...
----------------------------------- -- -- Zone: Chamber_of_Oracles (168) -- ----------------------------------- local ID = require("scripts/zones/Chamber_of_Oracles/IDs") require("scripts/globals/conquest") require("scripts/globals/keyitems") require("scripts/globals/missions") require("scripts/globals/zone") ---------...
slot0 = class_C("CollisionArea", ClassLoader:aquireClass("Component")) slot0.onCreate = function (slot0) slot0.super.onCreate(slot0) slot0:addProperty("collisionTarget", true) slot0:addProperty("boneData", true) slot0:addProperty("isDead", true) slot0:addProperty("collisionEnabled", true) slot0:addProperty("coll...
module ("sajax") local export_list = {} local request_uri = "" function init () end function handle_client_request () if not cgi.rs then return end -- Bust cache in the head cgilua.header ("Expires", "Mon, 26 Jul 1997 05:00:00 GMT") -- Date in the past cgilua.header ("Last-Modified", os.date ("!%a, %d %b %...
local LibAffectedUnits_Timers = setmetatable({}, {__tostring=function() return "LibAffectedUnits" end}) LibStub("AceTimer-3.0"):Embed(LibAffectedUnits_Timers) -- Rudimentary and use-case-specific ring buffer... -- We have 2 numeric-index tables of the same length. -- This length corresponds to the maximum history we...
--[[ Copyright (C) 2020 Google Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope th...
-- ============================================================= -- Copyright Roaming Gamer, LLC. 2009-2015 -- ============================================================= -- ** RGCamera -- ============================================================= -- License -- ======================================...
local M = {} -- <https://github.com/neovim/neovim/blob/v0.5.0/src/nvim/eval/typval.c#L2963-L3012> -- <https://github.com/neovim/neovim/blob/v0.5.0/src/nvim/eval.c#L678-L711> function M.is_truthy(value) local t = type(value) if t == 'boolean' then return value end if t == 'number' then return value ~= 0 end if...
talus_kima_pack_neutral_none = Lair:new { mobiles = {{"kima",1},{"feeble_kima",2}}, spawnLimit = 15, buildingsVeryEasy = {}, buildingsEasy = {}, buildingsMedium = {}, buildingsHard = {}, buildingsVeryHard = {}, buildingType = "none", } addLairTemplate("talus_kima_pack_neutral_none", talus_kima_pack_neutral_non...
local vkheaders = require "vulkan1header" local ffi = require("ffi") local defcore = vkheaders.cleanup( vkheaders.gsubplatforms(vkheaders.core, "") ) local defextensions = vkheaders.cleanup( vkheaders.gsubplatforms(vkheaders.extensions, "") ) ffi.cdef (defcore) ffi.cdef (defextensions) local vk = ffi.load("vu...
--[[ Info.lua --]] return { appName = "Exportant", author = "Rob Cole", authorsWebsite = "www.robcole.com", donateUrl = "http://www.robcole.com/Rob/Donate", platforms = { 'Windows', 'Mac' }, pluginId = "com.robcole.lightroom.Exportant", xmlRpcUrl = "http://www.robcole.com/Rob/_commo...
-- Tests on BUFPUT assembler. -- Copyright (C) 2020-2021 LuaVela Authors. See Copyright Notice in COPYRIGHT -- Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT jit.opt.start('jitstr') local s local t = {"Hello", "world"} for i = 1, 100 do s = string.format("%dc%s%s", i, string.sub(t[i % 2 + 1]...
-------------------------------------------------------------- -- player_management.lua -- -------------------------------------------------------------- -- -- -- This file manages the somewhat complex process of -- -- ma...
local server = require "nginx.websocket.server" local redis = require "nginx.redis" local wb, err = server:new{ timeout = 5000, -- in milliseconds max_payload_len = 65535, } if not wb then ngx.log(ngx.ERR, "failed to new websocket: ", err) return ngx.exit(444) end local rd = redis:new() local ok, err...
-- Hide the biomass GUI local oldUpdate = GUIBioMassDisplay.Update function GUIBioMassDisplay:Update() oldUpdate(self) self.backgroundColor.a = 0 self.background:SetColor(self.backgroundColor) self.smokeyBackground:SetColor(self.backgroundColor) end
AddCSLuaFile() DEFINE_BASECLASS( "base_wire_entity" ) ENT.PrintName = "Wire Trail" ENT.WireDebugName = "Trail" ENT.RenderGroup = RENDERGROUP_BOTH if CLIENT then return end -- No more client function ENT:Initialize() self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VP...
pg = pg or {} pg.world_collection_file_group = { [110] = { name = "陨石事件", id_2 = "011", name_abbreviate = "1", type = 2, id = 110, child = { 1101, 1102, 1103, 1104, 1105, 1106 } }, [210] = { name = "能源革命", id_2 = "021", name_abbreviate = "2", type = 1, id = 210, child = { ...
local function printvec(v) local str = "<"..string.format("%0.2f", v.x)..", " ..string.format("%0.2f", v[2]) if v.z then str = str..", "..string.format("%0.2f", v.b) end if v.w then str = str..", "..string.format("%0.2f", v.q) end str = str..">" print(""..str:gsub("%-...
local K, C, L = unpack(select(2, ...)) if C.Tooltip.Enable ~= true then return end -- Lua API local _G = _G local math_abs = math.abs local math_floor = math.floor local pairs = pairs local select = select local table_remove = table.remove local unpack = unpack -- Wow API local CanInspect = _G.CanInspect local CHAT_F...
local patch = require 'patch' local test describe("flat tables", function() test { old = {foo = "bar"}, diff = {foo = "baz"}, new = {foo = "baz"} } test { old = {2, 4, 5}, diff = {[2] = 'meme'}, new = {2, "meme", 5} } end) describe("new keys", function() test { old = {oh = "baby"}, diff = ...
--[[ LocalizationContextConsumer will extract the localization context object from Roact context and provide it to the given render callback Used for components that need to perform localization using this project's LocalizationService ]] local Root = script.Parent.Parent.Parent local CorePackages = game:GetServi...
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** require "TimedActions/ISBaseTimedAction" ---@class ISToggleStoveAction : ISBaseTimedAction ISToggleStoveAction = ISBaseTimedAction:d...
local stub = require("luassert.stub") local loop = require("null-ls.loop") local c = require("null-ls.config") local s = require("null-ls.state") local test_utils = require("test.utils") describe("helpers", function() _G._TEST = true local root = vim.fn.getcwd() stub(vim, "validate") local done = st...
---@meta ---@class ccb.Program :cc.Ref local Program={ } ccb.Program=Program ---* Get maximum vertex location.<br> ---* return Maximum vertex locaiton. ---@return int function Program:getMaxVertexLocation () end ---* Get maximum fragment location.<br> ---* return Maximum fragment location. ---@return int function ...
--[[ -- Simple configuration library with profiles. -- By Kesava @ curse.com. -- All rights reserved. --]] local MAJOR, MINOR = 'KuiConfig-1.0', 6 local kc = LibStub:NewLibrary(MAJOR, MINOR) if not kc then -- already registered return end function kc:print(m) print(MAJOR..'-'..MINOR..': '..(m or 'nil')) e...
describe("AutomaticChecklistItem", function() local automaticChecklistItem local function createItem() return automaticChecklistItem:new("Challenge Text", "Response Text", "Challenge Key", function() return true end) end setup(function() automaticChecklistItem = require "audiochecklist...
addEvent("onPlayerInteriorChange", true) local intTable = {} local safeTable = {} -- START OF INTERIOR SYSTEM SCRIPT -- //////////////////////////////////// -- // MYSQL // -- //////////////////////////////////// sqlUsername = exports.mysql:getMySQLUsername() sqlPassword = exports.mysql:getMySQLPassw...
local function lines(s) local lines = {} local i = 1 for line in s:gmatch('[^\n]+') do table.insert(lines, line) end return lines end return function(csv) local lines = lines(csv) local cities = {} local distances = {} for city in lines[1]:gmatch('"([^"]+)"') do table.insert(cities, city) ...
--[=[ SIMPLE LIBRARY TO SIMUL BUTTONS ******************************** mhliebano@gmail.com github: mhliebano Paramaters px:position x in screen py:position y in screen ww: width button hh: height button properties: x: set / get position x in screen y: set / ge...
local Action = require "action" local Unwield = Action:extend() Unwield.name = "unwield" Unwield.targets = {targets.Unwield} function Unwield:perform(level) local weapon = self:getTarget(1) self.owner.wielded = self.owner.defaultAttack end return Unwield
-------------------------------------------------------------------------------- -- Copyright (c) 2015 , 蒙占志(topameng) topameng@gmail.com -- All rights reserved. -- -- Use, modification and distribution are subject to the "New BSD License" -- as listed at <url: http://www.opensource.org/licenses/bsd...
placeable_utils = require 'placeables' watcher = require 'watcher' wall = require 'wall' diverter = require 'diverter' exports = {} function exports.setup(grid_state) assert(not grid_state.is_setup) grid_state:add_object(watcher(5, 4, directions.DOWN)) grid_state:add_object(watcher(10, 2, directions.RIGHT)) grid...
#!/usr/bin/env luajit dofile'../include.lua' local mp = require'msgpack.MessagePack' ------------------------ local names = { 'mesh0', 'ittybitty1', 'ittybitty0', 'lidar0', 'feedback', 'mesh1', 'lidar1', 'camera0', 'camera1' } local mattorch = require'mattorch' print('\nTrial 1') local f_udp = io.open('Matl...
---------------------------------------------------------------------------------------------------- -- Client Lua Script for RaidCore Addon on WildStar Game. -- -- Copyright (C) 2015 RaidCore ---------------------------------------------------------------------------------------------------- --------------------------...
if BeardLib then return end BeardLib = { Name = "BeardLib", ModPath = ModPath, SavePath = SavePath } function BeardLib:Init() Hooks:Call("BeardLibPreInit") Global.beardlib_checked_updates = Global.beardlib_checked_updates or {} self._call_next_update = {} self._paused_updaters = {} self._updaters = {} self...
-- Linked list implementation following the Scheme's standard list -- library as specified by SRFI-1. -- http://srfi.schemers.org/srfi-1/srfi-1.html -- dotted-lists are not supported, and the whole "association lists" -- and "set operations on lists" parts are missing (better use tables -- for that anyways) local impl...
--鉄獣の血盟 -- --Script by JustFish function c101102071.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,101102071) e1:SetTarget(c101102071.spt...
--[[ Copyright 2012 Rackspace 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 writing, software dis...
local fun = require 'fun' local function index_key(space, index, t) return fun.map( function(p) return t[p.fieldno] end, box.space[space].index[index].parts ):totable() end return { index_key = index_key, }
--[[ -- Utilities that help with the configuration of the config. -- -- This was influenced by many people so I do not take credit on anything here --]] local utils = {} local scopes = { o = vim.o, b = vim.bo, w = vim.wo } function utils.opt(scope, key, val) scopes[scope][key] = val if scope ~= "o" then ...
------------------------------- --- Fivem-Keybase-Anticheat --- ------------------------------- RegisterCommand('testKBAnticheatUnprotected', function(source, args, rawCommand) -- Testing TriggerServerEvent('KB-AC:UnprotectedExample:OOC', table.concat(args, ' ')) end)
local awful = require("awful") local wibox = require("wibox") local helper = require("utils.helper") local mybar = class() function mybar:init(s) -- Create an imagebox widget which will contain an icon indicating which layout we're using. -- We need one layoutbox per screen. s.mylayoutbox = require("widgets.la...
editorPage={ indentGuideEnable=true, caretVisible=true, selectionBackground={ a=1, b=0.5, g=1, r=0.5, }, syntaxEnable=true, wrapModeInitial=false, lineNumberEnable=true, tabWidth=2, dividerMargin=6, foldEnable=true, displayEOLEnable=false, longLineOnEnable=false, defaultColor={ a=1, b=0, g=0,...
local export_metric_collect_time = monitoring.gauge( "prom_export_collect_time", "export collect time" ) local export_metric_post_time = monitoring.gauge( "prom_export_post_time", "export post time" ) local export_size = monitoring.counter( "prom_export_size_count", "byte count of the prometheus export" )...
return [[ { "Lang": "fr", "Name": "french", "Entities.gmod_subway_81-717_mvm.Buttons.HelperPanel.VUD2Toggle": "VUD2: Contrôle des portes(fermer les portes)", "Entities.gmod_subway_81-717_mvm.Buttons.HelperPanel.VDLSet": "VDL: Portes gauches", "Entities.gmod_subway_81-717_mvm.Buttons.HelperPanel.R_Program2He...
local A, L = ... L.addonName = A L.addonColor = "00FF7800" L.cfg = { -- Data: data = { maxLevel = 70 }, }
-- Attempt to solve the prime number magic -- square problem in Lua -- -- Magic square (4x4) composed of prime numbers in the range 1-99. -- All row totals = 202 -- All col totals = 202 -- Both diag totals = 202 -- valid_grid = function(b) local x local c local prevj local d1 local d2 -- check...
return {'impact','impactstudie','impala','impasse','impeachmentprocedure','impedantie','impedantiematrix','impedanties','impediment','impenetrabel','imperatief','imperator','imperfect','imperfectie','imperfectum','imperiaal','imperialisme','imperialist','imperialistisch','imperium','impermeabel','impertinent','impertin...
s = NewSettings() Link(s, "cyclic", Compile(s, Collect("*.c")))
local MAJOR, MINOR = "LibItemUpgradeInfo-1.0", 30 local type,tonumber,select,strsplit,GetItemInfoFromHyperlink=type,tonumber,select,strsplit,GetItemInfoFromHyperlink local unpack,GetDetailedItemLevelInfo=unpack,GetDetailedItemLevelInfo local library,previous = _G.LibStub:NewLibrary(MAJOR, MINOR) local lib=library --#li...
local socket = require "socket" local copas = require "copas" local server = socket.bind ("127.0.0.1", 8080) copas.addserver (server, function (skt) skt = copas.wrap (skt) repeat local message = skt:receive "*l" if message == nil then break elseif message ~= "stop" then skt:send (message ...
filename = "" function sk_scrape_startcanvas(c, fileName) filename = fileName end function sk_scrape_endcanvas(c, fileName) end LuaDoubleNearlyZero = 1.0 / bit32.lshift(1.0, 12) function LuaDoubleNearlyEqual(a, b) return math.abs(a-b) <= LuaDoubleNearlyZero end function bounds(rect) local width = rec...
--New includeFile("custom_content/building/mustafar/terrain/creature_lairs/must_blistmok_lair.lua") includeFile("custom_content/building/mustafar/terrain/creature_lairs/must_jundak_lair.lua") includeFile("custom_content/building/mustafar/terrain/creature_lairs/must_kubaza_beetle_lair.lua") includeFile("custom_content/b...
#!/usr/bin/env tarantool require('strict').on() local log = require('log') local errors = require('errors') local cartridge = require('cartridge') errors.set_deprecation_handler(function(err) log.error('%s', err) os.exit(1) end) local ok, err = errors.pcall('CartridgeCfgError', cartridge.cfg, { roles = {...
return { description = 'Different types of input devices supported by the `lovr.headset` module.', values = { { name = 'head', description = 'The headset.' }, { name = 'hand/left', description = 'The left controller.' }, { name = 'hand/right', description = 'T...
local dap_install = require("dap-install") dap_install.setup({ installation_path = vim.fn.stdpath("data") .. "/dapinstall/", })
random_spawn_scrolls = { cast = function(player) player:freeAsync() player.lastClick = player.ID random_spawn_scrolls.click(player) end, click = async(function(player, npc) local t = {graphic = convertGraphic(776, "monster"), color = 0} player.npcGraphic = t.graphic player.npcColor = t.color player.di...
local flr=math.floor -- TODO: Remove this local scrblitMesh=love.graphics.newMesh(128, "points") scrblitMesh:setAttributeEnabled("VertexColor", true) local function color(c) c=flr(c or 0)%16 pico8.color=c setColor(c) end local function warning(msg) log(debug.traceback("WARNING: "..msg, 3)) end local function _h...
local PLUGIN = PLUGIN PLUGIN.name = "Areas" PLUGIN.author = "`impulse" PLUGIN.description = "Provides customizable area definitions." ix.area = ix.area or {} ix.area.types = ix.area.types or {} ix.area.properties = ix.area.properties or {} ix.area.stored = ix.area.stored or {} ix.config.Add("areaTickTime", 1, "How ...
local enemy = { id = 3, image = love.graphics.newImage("assets/fight/enemies/Hornet.png"), health = 5, damage = 1 } return enemy
-- ViewFactory FCViewFactory = {} function FCViewFactory.AddViews( name, def, parentView ) local viewName = nil if def.name ~= nil then viewName = def.name end -- manage hierarchy if parentView ~= nil then def.instance = FCView:New( viewName, def.viewType, parentView ) def.parentView = parentView paren...
AddCSLuaFile("autolua.lua") AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function GM:Initialize() self.MainDatabase = mysql:Start("localhost","root","Admin123","gmod_basewars",3306) SQL_InitializeServerTables() resource.AddDir("materials/basewars2017") resource.AddFile("resource...
local M = {} local mode_map = { ['n'] = { 'NORMAL', 'Normal' }, ['no'] = { 'O-PENDING', 'Visual' }, ['nov'] = { 'O-PENDING', 'Visual' }, ['noV'] = { 'O-PENDING', 'Visual' }, ['no'] = { 'O-PENDING', 'Visual' }, ['nt'] = { 'T-NORMAL', 'Normal' }, ['niI'] = { 'NORMAL', 'Normal' }, ['niR']...
-- CONSTANT GAME DATA SCREEN_WIDTH = 800 SCREEN_HEIGHT = 600 CreateWindow(SCREEN_WIDTH, SCREEN_HEIGHT) PADDLE_WIDTH = 30 PADDLE_HEIGHT = 90 BALL_WIDTH = 20 BALL_HEIGHT = 20 BALL_MAX_SPEED = 10 PLAYER_PADDLE_X = PADDLE_WIDTH ENEMY_PADDLE_X = SCREEN_WIDTH - PADDLE_WIDTH * 2 PLAYER_SPEED = 5 ENEMY_SPEED = 3.5 -- TRAN...
bat_graph = wibox.container.radialprogressbar battb = wibox.widget.textbox() battb.font = "Panton 8" battb.align = "center" battb.forced_width = 30 bat_box = wibox.widget { layout = bat_graph, border_width = 2, padding = 0, color = gears.color("#FFFFFF"), border_color = gears.color("#2f343f"), ...
AddCSLuaFile() resource.AddFile("materials/icon256/mute.png") if (CLIENT) then shouldDrawMute = false muteIconAsset = Material("materials/icon256/mute.png", "smooth mips") net.Receive("drawMute", function() shouldDrawMute = net.ReadBool() end) hook.Add( "HUDPaint", "discord_HUDPaint", function() if...
local normalW, normalH = 640, 960 if not display then return end -- This is needed for dekstop app -- This calculation extends the standard letterbox scaling -- Using this point x = 0, y = 0 is always in the top left corner of the screen on all devices -- And x = display.contentWidth, y = display.contentHeight is alw...
-- -- Author: Your Name -- Date: 2016-06-21 10:21:01 --
return {[1]=true,[1331200]=true,[1200130]=true,[1200133]=true,[311302]=true,[303112]=true,[213001]=true,[1032202]=true,[12301]=true,[221200]=true,[303121]=true,[213010]=true,[221203]=true,[213013]=true,[12310]=true,[311320]=true,[12313]=true,[303130]=true,[1032220]=true,[3203101]=true,[213022]=true,[31]=true,[12322]=tr...
local ffih = require 'ffi/ffi_helper' require 'minibackend' local whitedb = whitedb local db = whitedb.attach( 'test', 1024*1024*100 , 0 ) local random = math.random local test_iterator_count = 10000 local test_record_count = 10000 -- fill table local src_table = {} local fill_table = {} local fill_t...
fx_version 'bodacious' games {'gta5'} author 'TheF3nt0n (Converted to FiveM by Barna Bence)' description 'Default-style Security Pack' version '1.2.0' files { 'vehicles.meta', 'carvariations.meta', 'carcols.meta', 'handling.meta', } data_file 'HANDLING_FILE' 'handling.meta' data_file 'VEHICLE_METADA...
function rotate(a, b) return b, a end local left, right = rotate(1, 2) assert(left == 2) assert(right == 1)
object_tangible_loot_creature_loot_collections_exar_kun_lost_journal_page_03 = object_tangible_loot_creature_loot_collections_shared_exar_kun_lost_journal_page_03:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_exar_kun_lost_journal_page_03, "object/tangible/loot/creature/loot/colle...
function lure.dom.createDocumentNodeObj() local self = lure.dom.nodeObj.new(9) --=================================================================== -- PROPERTIES = --=================================================================== self.nodeName = "#d...
--- @module foo return { --[[- A basic variable @usage ```lua local foo = require "foo" print(foo.a) ``` @usage local bar = require "foo" ]] a = 1 }
local Keybind = {} Keybind.add_global_keybinds = function(keybinds) for index, keybind in pairs(keybinds) do if(keybind[4] == nil) then keybind[4] = {} end vim.api.nvim_set_keymap( keybind[1], keybind[2], keybind[3], keybind[4] ) end end Keybind.add_buffer_keybinds = function(keybinds) for ...
-- -- ConfirmCleanupView.lua -- require "Common" if language() == "fr" then confirmCleanupStr="Déplacer les séquences avec cote négative dans la corbeille?\n\nCette opération ne peut être défaite." cancelStr = "Annuler" else confirmCleanupStr="Move the sequences with negative ratings in the Trash?\n\nThis operatio...
io.input("part1/10_2_in.txt") function allwords () local line = io.read() local pos = 1 return function () while line do local s, e = string.find(line, "%w+", pos) if s then pos = e + 1 return string.sub(line, s, e) else line = io.read() pos = 1 end end return nil end end functio...
include( "background.lua" ) include( "cef_credits.lua" ) include( "openurl.lua" ) include( "ugcpublish.lua" ) pnlMainMenu = nil local PANEL = {} function PANEL:Init() self:Dock( FILL ) self:SetKeyboardInputEnabled( true ) self:SetMouseInputEnabled( true ) self.HTML = vgui.Create( "DHTML", self ) JS_Language...
------------------------------------------------------------------ -- premake 4 Pyros3D solution ------------------------------------------------------------------ solution "Pyros3D" newoption { trigger = "shared", description = "Ouput Shared Library" } newoption { trigger = "sta...
local grains = require('grains') describe('grains', function() it('square 1', function() assert.are.equals(1, grains.square(1)) end) it('square 2', function() assert.are.equals(2, grains.square(2)) end) it('square 3', function() assert.are.equals(4, grains.square(3)) end) it('square 4', fu...
for _, force in pairs(game.forces) do if force.name ~= 'neutral' then for _, surface in pairs(game.surfaces) do for _, ent in pairs(surface.find_entities_filtered {force = force}) do if ent.valid then ent.update_connections() end en...
---@meta local resty_core_ctx={} resty_core_ctx._VERSION = require("resty.core.base").version ---@param ctx? table ---@return table function resty_core_ctx.get_ctx_table(ctx) end return resty_core_ctx
chessBase = engine.class('chessBase') function chessBase:initialize(tilex, tiley) tilex = tilex or 1 tiley = tiley or 1 self.tilex = tilex * 64 self.tiley = tiley * 64 print("Created") end function chessBase:move(tilex, tiley) self.tilex = tilex * 64 self.tiley = tiley * 64 print("Moved") end pawn = che...
do class "ImplementsMany" : implements "Printable" : from "interfaces" : implements "Countable" : from "interfaces" : implements "Stringable" : from "interfaces" { message = "", } function Initialize( self, message ) self.message = message end function Print( self ) print( self.message ) end function...
-- -- helpers.lua -- Helper functions -- local configs = require("configs") local M = {} -- ============================================================================= -- Tables -- ============================================================================= -- sort table by keys M.sort_by_keys = function (t, f) ...
---@module luna.input local input = {} ---@type number[] local mouse_buttons = {1, 2, 3} local states = { mouse = { down = {}, pressed = {}, released = {} }, key = { } } local old_state = { mouse = { down = {} }, key = {} } local anykeydown = false local mouse = { x = 0, y = 0, fix_x = 0, fix_y ...
return { name = "bourbon", version = "0.1.0", description = "test library", author = "Ryan Phillips <ryan.phillips@rackspace.com>", contributors = { "Tomaz Muraus <tomaz@tomaz.me>", "Vladimir Dronnikov <dronnikov@gmail.com>" }, dependencies = { ["async"] = "https://github.com/racker/lua-async/...
--- Simple Syntax Highlighting local M = {} --- Wrap corresponding parts of Lua-Code with HTML-Spans of the classes -- 'comment', 'string', 'escape', 'operator' and 'keyword'. Does not -- work with multiline comments and multiline strings, everything else should -- be fine. --[=[ local highlight = require "highlight"...
local GlitchURL = 'cesnored' function rankUser(message) game:GetService("HttpService"):GetAsync(GlitchURL .. "shout?message=" .. message) end game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player, text) print(text) rankUser(text) end)
------------------------------------------------------------------- --// PROJECT: Union of Clarity and Diversity --// RESOURCE: UCDrespawn --// DEVELOPER(S): Lewis Watson (Noki) --// DATE: 14.12.2014 --// PURPOSE: To handle server side respawning of players. --// FILE: \UCDrespawn\server.lua [server] ------------------...
-- Disable achievement progress if lobby size is greater than 4 players. local orig__AchievmentManager = { award = AchievmentManager.award, _give_reward = AchievmentManager._give_reward, award_progress = AchievmentManager.award_progress, award_steam = AchievmentManager.award_steam,...
local CorePackages = game:GetService("CorePackages") local InGameMenuDependencies = require(CorePackages.InGameMenuDependencies) local UIBlox = InGameMenuDependencies.UIBlox local Images = require(script.Parent.Images) local UIBloxImages = UIBlox.App.ImageSet.Images return { Images = { RobloxLogo = Images["LuaAp...
data:extend({ { type = "string-setting", name = "botprio-method", setting_type = "runtime-per-user", default_value = "Selection Tool", allowed_values = {"Selection Tool", "Direct Selection", "Auto-Mode"}, order = 'a[botprio]-a' }, { type = "int-setting", name ...
EMwindow = nil EMbuttons = {} EMlabels = {} EMedits = {} EMcheckboxes = {} EMgrid = nil EMgridList = {} lastAction = nil canPlayerBeInEvent = false curAction = nil curAction2 = nil gridCategories = { [1] = "-Player Controls:", [2] = "-Vehicle Controls:", [3] = "-Environment Control:", [4] = "-Utilities:", } EMgrid...
local utils = require 'utils' validArgs = validArgs or utils.invert({ 'item', 'upgrade', 'downgrade', 'quality' }) local args = utils.processArgs({...}, validArgs) local item=df.item.find(args.item) print(args.item) print(item) printall(args) if args.upgrade then item:setQuality(item.qu...
PlayScene = Scene:extend() function PlayScene:input() if input:pressed('up') then Scene.setScene(reset) end if input:pressed('left') then Scene.setScene(pause) end if input:pressed('down') then Scene.setScene(final) end end function PlayScene:draw() love.graphics.setColor(1, 1, 1) love.graphics.print("play"...
-- -- Created by IntelliJ IDEA. -- User: RJ -- To change this template use File | Settings | File Templates. -- require "ISUI/ISPanelJoypad" ---@class ISHotbar : ISPanelJoypad ISHotbar = ISPanelJoypad:derive("ISHotbar"); local FONT_HGT_SMALL = getTextManager():getFontHeight(UIFont.Small) --**************************...
package.path = '?.lua' local Stack = require('/home/dvv/LUA/luvit-stack/index') p(Stack)