content
stringlengths
5
1.05M
return Def.ActorFrame{ Def.Sprite { Texture=NOTESKIN:GetPath( '_down', 'tap mine' ); Frame0000=0; Delay0000=1; InitCommand=function(self) self:spin():effectclock('beat'):effectmagnitude(0,0,32) end; }; };
local screenX, screenY = guiGetScreenSize() local panelState = false local bgWidth = 900 local bgHeight = 570 local bgPosX = (screenX / 2) - (bgWidth / 2) local bgPosY = (screenY / 2) - (bgHeight / 2) local bgMargin = 3 local titleFont = false local itemFont = false local mainColumnWidth = 300 loc...
util.AddNetworkString( "player_in_spawn" ) local meta = FindMetaTable("Entity") --Initilization of box areas local sBoxes = { [1] = { Vector(-5743.565430, -8658.199219, 1153.013184), --Start of box 1, type getpos to get these vectors to start the box. (Recommended you set this first below the map) ...
return {'ton','tonaal','tonaliteit','tonbrug','tondel','tondeldoos','tonder','tondeuse','toneel','toneelaanwijzing','toneelacademie','toneelachtig','toneelauteur','toneelavond','toneelbeeld','toneelbenodigdheden','toneelbestel','toneelbewerking','toneelcarriere','toneelclub','toneelcriticus','toneeldebuut','toneeldecor...
local typedefs = require "kong.db.schema.typedefs" return { name = "mtls_certs_manager", fields = { { consumer = typedefs.no_consumer }, { protocols = typedefs.protocols_http }, { config = { type = "record", fields = { { plugin_endpoint_usage = { type = "string", def...
-- $Id: //depot/Projects/StarWars_Expansion/Run/Data/Scripts/GameObject/UM02_Droids_Spawn.lua#2 $ --///////////////////////////////////////////////////////////////////////////////////////////////// -- -- (C) Petroglyph Games, Inc. -- -- -- ***** ** * * -- * ** ...
local ut = require "lluv.utils" local log = require "spylog.log" local EventLog = require "spylog.eventlog" local trap = require "spylog.monitor.trap" local function trap_monitor(endpoint, opt, cb, log_header) local proto, address, port = ut.split_first(endpoint, "://", true) assert(proto == 'udp') ...
--[[ ================================================================= Description: Event detail info. Data available in English only. Data within this file has been collected from wowwiki.com ================================================================= --]] ET_Static = { ["ACHIEVEMENT...
local label_demo = {} function label_demo.demo() local label1 = lvgl.label_create(lvgl.scr_act(), nil); lvgl.label_set_long_mode(label1, lvgl.LABEL_LONG_BREAK); --Break the long lines lvgl.label_set_recolor(label1, true); --Enable re-coloring by commands in the text lvgl.label_...
-- -- Test cases local runtime = { 'continue', 'observing', 'binding', 'set-get', 'visits', 'tags', 'jumping', 'save-load' } local units = { 'inclusions', 'comments', 'knots', 'stitches', 'text-line', 'text-lines', 'text-tags', 'text-glue', 'choices-basic', 'choices-tags', ...
-- 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_underlord...
local ok, telescope = pcall(require, 'telescope') if not ok then return end local M = {} M.setup = function() local actions = require('telescope.actions') telescope.setup({ defaults = { mappings = { i = { ['<esc>'] = actions.close, }, }, }, extensions = { ...
-------------------------------- -- @module ProtectedNode -- @extend Node -- @parent_module cc ---@class cc.ProtectedNode:cc.Node local ProtectedNode = {} cc.ProtectedNode = ProtectedNode -------------------------------- --- Adds a child to the container with a local z-order.<br> -- If the child is added to a 'runni...
-- Copyright 2021 SkyTheCodeMaster - All Rights Reserved. local redrun = require("redrun") local modem = peripheral.find("modem") local sha256 = require("sha256") modem.open(30000) local myid = os.getComputerID() -- Sha256 digest but pre hexed local function hash(data) local dataHash = sha256.digest(data) return ...
NOTIFICATIONS_VERSION = "1.00" --[[ Sample Panorama Notifications Library by BMD Installation -"require" this file inside your code in order to gain access to the Notifications class for sending notifications to players, teams, or all clients. -Ensure that you have the barebones_notifications.xml, barebones_n...
----------------------------------- -- Area: Castle Zvahl Keep (162) -- Mob: Demon Warlock -- Note: PH for Viscount Morax ----------------------------------- local ID = require("scripts/zones/Castle_Zvahl_Keep/IDs"); require("scripts/globals/mobs"); function onMobDeath(mob, player, isKiller) end; function onMobDespa...
local Camera = { magnitude = 0, dx = 0, dy = 0, currentDuration = 0, shakeActive = false } Camera.__index = Camera function Camera:new() local camera = {} setmetatable(camera, Camera) camera.magnitude = 0 camera.dx = 0 camera.dy = 0 camera.currentDuration = 0 camera....
require "busted.runner"() local assert = assert describe("[Iterator]", function() local ptable = require "ptable" describe("Empty table", function() local empty_table = ptable({}) local i = empty_table:iterator() it("should not be nil", function() assert.is_not.Nil(i) end) it...
#!/usr/bin/env lua local ui = require "tek.ui" local RadioImage1 = ui.getStockImage("radiobutton") local RadioImage2 = ui.getStockImage("radiobutton", 2) local BitMapImage1 = ui.loadImage(ui.ProgDir .. "/graphics/world.ppm") local BitMapImage2 = ui.loadImage(ui.ProgDir .. "/graphics/locale.ppm") --------------------...
--[[ OEML - REST API This section will provide necessary information about the `CoinAPI OEML REST API` protocol. This API is also available in the Postman application: <a href=\"https://postman.coinapi.io/\" target=\"_blank\">https://postman.coinapi.io/</a> The version of the OpenAPI document: v1 Con...
--- -- Utility functions for sending MLD requests and parsing reports. -- -- @copyright Same as Nmap--See https://nmap.org/book/man-legal.html local nmap = require "nmap" local ipOps = require "ipOps" local packet = require "packet" local stdnse = require "stdnse" local string = require "string" local table = require ...
--[[ Gangi: Definicje @author Jakub 'XJMLN' Starzak <jack@pszmta.pl @package PSZMTA.psz-gangi @copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl> Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie. ]]-- function isGOWindowOpen(wnd) return guiGetVisible(wnd) end
-- Targets: -- -- { -- fullname = full name of target -- dir = target's build directory -- outs = target's object files -- is = { set of rule types which made the target } -- } local posix = require("posix") local emitter = {} local rules = {} local targets = {} local buildfiles = {} local globals local cwd = ...
-- require'lspinstall'.setup() -- important -- local servers = require'lspinstall'.installed_servers() -- for _, server in pairs(servers) do -- require'lspconfig'[server].setup{} -- end
--WiFi SetUp station_cfg={} station_cfg.ssid="WLAN_SSID" station_cfg.pwd="WLAN_PWD" wifi.sta.config(station_cfg) --Mqtt SetUp mqttKeepAlive = 60; --sec host = "bro.ker.add.res" port = "1883" m = mqtt.Client("backlighter", mqttKeepAlive); mqttMainTopic = "/desk/backlight" --functions function split(s, sep) local...
local scene_maker = require("scene") config = { } love.load = function() config.scene = scene_maker.make() end love.update = function(dt) do if config.scene.update then config.scene.update(dt) end return config end end love.draw = function() do if config.scene.draw then config.scene....
-- vim:foldmethod=marker ---@diagnostic disable: different-requires -- Automatically download packer.nvim if it doesn't exist local fn = vim.fn local install_path = fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim" if fn.empty(fn.glob(install_path)) > 0 then fn.system { "git", "clone", "--depth", "1", "https...
-- Requires Automato version 1.78! -- This script shows very simple and basic web access using the new LuaSocket version 3.0-rc1 module compiled into Automato for us by Jimbly. -- It also shows how you can add additional modules and use them in Automato. You will need to open the console to see any output at all. --...
require 'luacov' local Delaunay = (require "delaunay") local Point = Delaunay.Point local Triangle = Delaunay.Triangle context("Delaunay", function() test('is a module containing binding to Point, Edge, Triangle primitives', function() assert_true(type(Delaunay) == 'table') assert_true(...
-- Automatically generated packer.nvim plugin loader code if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"') return end vim.api.nvim_command('packadd packer.nvim') local no_errors, error_msg = pcal...
-- -- Copyright (c) 2022 outdead. -- Use of this source code is governed by the MIT license -- that can be found in the LICENSE file. -- -- LastDay mod created for Last Day server. -- LDMainOptions = { Original = { create = MainOptions.create } } LDMainOptions.create = function(self) LDMainOptions...
--X・Y・Zコンバイン -- --Script by JoyJ function c101107061.initial_effect(c) --Activate local e0=Effect.CreateEffect(c) e0:SetType(EFFECT_TYPE_ACTIVATE) e0:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e0) --spsummon from deck local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(101107061,0)) e1:S...
--- -- The main program logic flow. -- -- Bootstraps the core APIs used by the rest of the application, and implements -- the program entry point and overall execution flow. --- local options = require('options') local path = require('path') local premake = require('premake') local m = {} m.PROJECT_SCRIPT_NAME = 'p...
local curSong = nil local start = math.max(0,GHETTOGAMESTATE:getLastPlayedSecond()) local delay = 1 local startFromPreview = true local loop = themeConfig:get_data().global.SongPreview == 2 local curPath = "" local sampleStart = 0 local musicLength = 0 GHETTOGAMESTATE:setLastPlayedSecond(0) -- SongPreview == 1 (SM ST...
local Native = require('lib.native.native') ---@class GameEvent local GameEvent = { Victory = Native.ConvertGameEvent(0), --EVENT_GAME_VICTORY EndLevel = Native.ConvertGameEvent(1), --EVENT_GAME_END_LEVEL VariableLimit = Native.ConvertGameEvent(2), --EVENT_GAME_VARIABLE_LIMIT StateLimit = Native.Conver...
--[[ Pixel Vision 8 - New Template Script Copyright (C) 2017, Pixel Vision 8 (http://pixelvision8.com) Created by Jesse Freeman (@jessefreeman) This project was designed to display some basic instructions when you create a new tool. Simply delete the following code and implement your own Init(), Update() and Dra...
--[[ global table BCC_IdleTimer function BCC_IdleTimer_OnUpdate(time) function BCC_IdleTimer_Reset(void) function BCC_IdleTimer_Zero(void) --]] -- ///////////////////////////////////////////////////////////////////////////// -- ///////////////////////////////////////////////////////////////////////////// BCC_IdleTime...
local stageStartX = love.graphics.getWidth() / 4 local stageStartY = 0 local stageEndX = love.graphics.getWidth() local stageEndY = love.graphics.getHeight() - love.graphics.getHeight() / 3 local stageWidth = love.graphics.getWidth() - stageStartX local stageHeight = love.graphics.getHeight() - love.graphics.getHeight(...
-- basic functions local type=type local make_eval_f=function(env) local f local loadstring,setfenv return function(str) f=loadstring(str) return f and setfenv(f,env)() end end local convert=function(tp,o,p,ref) local tmp=tp and ref[tp] tp=type(tmp) return tp=="function" and tmp(o,p) or (gsub(tmp,"@(.-)@"...
local SWS_ADDON_NAME, StatWeightScore = ...; local ScoreModule = StatWeightScore:NewModule(SWS_ADDON_NAME.."Score"); local SpecModule; local StatsModule; local GemsModule; local ScanningTooltipModule; local Utils; local L; function ScoreModule:OnInitialize() SpecModule = StatWeightScore:GetModule(SWS_ADDON_NAME....
log = regroup.logging.makelog("data-final-fixes") --double check active mods to save performance... if type(dimoresenable) == "nil" and type(inventorychanges) == "nil" then --5dim seems to be offline... regroup.config.active_mods["5dim"] = nil log("5dim force disabled") end if not data.raw.item["circuit-floor"] t...
return { coravp = { acceleration = 0, brakerate = 0, buildangle = 1024, buildcostenergy = 28365, buildcostmetal = 3479, builder = true, buildinggrounddecaldecayspeed = 3000, buildinggrounddecalsizex = 10, buildinggrounddecalsizey = 8, buildinggrounddecaltype = "coravp_aoplane.dds", bu...
return { summary = 'Get the draw range of the Mesh.', description = [[ Retrieve the current draw range for the Mesh. The draw range is a subset of the vertices of the Mesh that will be drawn. ]], arguments = {}, returns = { { name = 'start', type = 'number', description = [[ ...
local awful = require('awful') local gears = require('gears') local ruled = require('ruled') local beautiful = require('beautiful') local client_keys = require('configuration.client.keys') local client_buttons = require('configuration.client.buttons') ruled.client.connect_signal( 'request::rules', function() -- Al...
local current_folder = ... and (...):match '(.-%.?)[^%.]+$' or '' local QuadExport = require(current_folder.. ".QuadExport") local History = require(current_folder.. ".History") local table = require(current_folder.. ".tableplus") local libquadtastic = require(current_folder.. ".libquadtastic") local common = require(c...
return { style = 'dialog', { style = 'dialogHead', text = 'Settings' }, { style = 'dialogBody', padding = 24, { flow = 'x', minheight = 260, { { type = 'label', text = 'Seed', minheight = 32 }, { { type = 'radio', group = 'seed', text = 'Use random seed', value = true, id = 'seed...
object_static_worldbuilding_camping_frn_all_exceptional_meat_rack = object_static_worldbuilding_camping_shared_frn_all_exceptional_meat_rack:new { } ObjectTemplates:addTemplate(object_static_worldbuilding_camping_frn_all_exceptional_meat_rack, "object/static/worldbuilding/camping/frn_all_exceptional_meat_rack.iff")
local BASE_PATH = "pac3/" local ICON_FILE = "icon16/group_add.png" local ICON_FOLDER = "icon16/folder.png" local blacklist = { ["objcache"] = true, ["__backup"] = true, ["__backup_save"] = true, ["__animations"] = true, } local frame = vgui.Create("DFrame") frame:SetSize(ScrW() * 0.35, ScrH() * 0.45) ...
-------------------------------- -- @module ParticleFlower -- @extend ParticleSystemQuad -- @parent_module cc -------------------------------- -- -- @function [parent=#ParticleFlower] init -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- -- @function [parent...
local settings = {} return settings
local curl = require("plenary.curl") local M = {} M.search = function(query, target, scalaVersion) local q = nil local t = nil local v = nil if query == nil then return {} else q = string.gsub(query, "%s+", "") end if target == nil then t = "JVM" else t = string.gsub(target, "%s+", ""...
---@meta --- ---The `lovr.conf` callback lets you configure default settings for LÖVR. --- ---It is called once right before the game starts. --- ---Make sure you put `lovr.conf` in a file called `conf.lua`, a special file that's loaded before the rest of the framework initializes. --- --- ---### NOTE: ---Disabling th...
---@class CallbackHandler local CallbackHandler = { Type = "CallbackHandler", ---@type function Callback = nil, CanInvoke = true, InvokeIsFunction = false } CallbackHandler.__index = CallbackHandler function CallbackHandler:Create(callback, canInvoke) local this = { Callback = callback } if canInvoke ~= nil ...
ItemList = { ------------------------------- ------------------------------- ------- WEAPON ------- ------------------------------- ------------------------------- ['weapon_carbinerifle_mk2'] = { -- ☆☆☆☆☆ type = 'weapon', name = 'MPX-C', subtitle = 'Rifle de Assa...
---------------------- -- Get addon object -- ---------------------- local DS = LibStub("AceAddon-3.0"):GetAddon("Doom Shards", true) if not DS then return end --------------- -- Libraries -- --------------- local L = LibStub("AceLocale-3.0"):GetLocale("DoomShards") local LSM = LibStub("LibSharedMedia-3.0") -------...
-- local function data(file, tag, names, stripFunc, postFunc) local parser = require "otherData.featParser" local names = { "Commander", "Mobilize", "Leadership", "Battle Conductor", "Complex Orders", "Tip the Scales", "Scheme Twist" } local m = string.match local function strip(parser, str) -- local firstFe...
-------------------------------- -- @module TurnOffTiles -- @extend TiledGrid3DAction -- @parent_module cc -------------------------------- -- brief Show the tile at specified position.<br> -- param pos The position index of the tile should be shown. -- @function [parent=#TurnOffTiles] turnOnTile -- @param self -- @...
vim.cmd([[ function! ToggleNerdTree() if g:NERDTree.IsOpen() NERDTreeToggle else if @% == "" NERDTreeToggle else NERDTreeFind norm zz endif endif endfunction ]])
local RunService = game:GetService("RunService") local Stories = script.Parent.Parent.Parent.Parent.Parent.Parent local Packages = Stories.Parent.Parent local Roact = require(Packages.Roact) local Gamepad = require(Packages.RoactGamepad) local UIBloxConfig = require(Stories.UIBloxStorybookConfig) local FocusContainer...
#!/usr/bin/env tjost --[[ * Copyright (c) 2015 Hanspeter Portner (dev@open-music-kontrollers.ch) * * This is free software: you can redistribute it and/or modify * it under the terms of the Artistic License 2.0 as published by * The Perl Foundation. * * This source is distributed in the hope that it will be use...
--SENSOR TYPE local SENSOR_OPTICAL = 0 local SENSOR_RADAR = 1 local SENSOR_IRST = 2 local SENSOR_RWR = 3 --RADAR local RADAR_AS = 0 local RADAR_SS = 1 local RADAR_MULTIROLE = 2 -- local ASPECT_HEAD_ON = 0 local ASPECT_TAIL_ON = 1 -- local HEMISPHERE_UPPER = 0 local HEMISPHERE_LOWER = 1 --IRST local ENGINE_MODE_FORSAGE ...
vim.g.mapleader = ';' local map = require("me.map_utils").map local cmd_map = require("me.map_utils").cmd_map local plug_map = require("me.map_utils").plug_map --[[ _ __ _ ___ _ __ ___ _ __ __ _| | / _` |/ _ \ '_ \ / _ \ '__/ _` | | | (_| | __/ | | | __/ | | (_| | | \__, |\__...
ITEM.name = "Sewing Kit" ITEM.model = Model("models/zworld_health/healkit.mdl") ITEM.description = "Various tools for cutting, stitching or tailoring fabrics and clothes." ITEM.width = 2 ITEM.height = 2 ITEM.price = 150 ITEM.flag = "M" ITEM.category = "Tools" -- No stack Unique
require('kill') -- Oracles get +5% experience if the killed creature had any statuses -- in force. local function oracle_kill_fn(att_cr_id, kill_cr_id) local statuses = {get_creature_statuses(kill_cr_id)} if table.getn(statuses) > 0 then -- Take 5% of the xp value (or 1 XP, if the value is sufficientl...
local lust = require 'test.lust' local describe, it, expect = lust.describe, lust.it, lust.expect local CharacterClass = require 'entities.CharacterClass' describe('CharacterClass', function () it('instantiate', function () expect(CharacterClass()).to.be.a('table') end) local data = { nam...
-- .vscode/settings.json << -- "Lua.workspace.library": { -- "C:\\ProgramData\\chocolatey\\lib\\luarocks\\luarocks-2.4.4-win32\\systree\\share\\lua\\5.1": true -- }, local busted = require 'busted' local assert = require 'luassert' local yaml = require 'tinyyaml' busted.describe("map", function() busted.it(...
local modal = {} local stateMachine = require "statemachine" local utils = require "utils" local windows = require "windows" -- local log = hs.logger.new('modal-module','debug') modal.setHotkey = function(array, key) modal.hotkeyModifier = array modal.hotkey = key end modal.displayModalText = function(txt) hs.a...
--- Pretty-printing Lua tables. -- @class module -- @name pl.pretty local append = table.insert local concat = table.concat local utils = require 'pl.utils' local lexer = require 'pl.lexer' local assert_arg = utils.assert_arg --[[ module('pl.pretty',utils._module) ]] local pretty = {} --- read a string representati...
local fs = require('diagnosticls-configs.fs') return { sourceName = 'isort', command = fs.executable('isort'), args = { '--quiet', '--stdout', '-' }, rootPatterns = { '.isort.cfg', 'pyproject.toml', '.git' }, }
local class = require('opus.class') local UI = require('opus.ui') UI.Menu = class(UI.Grid) UI.Menu.defaults = { UIElement = 'Menu', disableHeader = true, columns = { { heading = 'Prompt', key = 'prompt', width = 20 } }, menuItems = { }, } function UI.Menu:postInit() self.values = self.menuItems self.pageSize ...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. pistol_dx2 = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/weapon/ranged/pistol/pistol_dx2.iff", craftingValues = { {"mindamage",35,71,0}, {"maxdamage",73,103,0}, {"attackspeed",5.2,3.8,1}, {"w...
-- Library by WD200019 -- SuperCall(func, arg1, arg2, ...) -- !! Must be loaded in a script with a function to call from another script !! (see Examples) -- Calls the function 'func' in the current script with the arguments 'arg1', 'arg2', ... -- Can be called from another script without triggering an error. ...
Config = {} Config.Price = 100 Config.DrawDistance = 100.0 Config.MarkerSize = vector3(1.5, 1.5, 1.0) Config.MarkerColor = {r = 102, g = 102, b = 204} Config.MarkerType = 1 Config.Locale = 'es' Config.Shops = { vector3(-814.3, -183.8, 36.6), vector3(136.8, -1708.4, 28.3), vector3(-1282.6, -1116.8, 6.0), ve...
-------------------------------- -- @module RichItemNewLine -- @extend RichItem -- @parent_module ccui -------------------------------- -- -- @function [parent=#RichItemNewLine] init -- @param self -- @param #int tag -- @return bool#bool ret (return value: bool) -------------------------------...
local hex = bizstring.hex console.clear() --Credits: http://lua-users.org/wiki/SimpleStack -- GLOBAL Stack = {} -- Create a Table with stack functions function Stack:Create() -- stack table local t = {} -- entry table t._et = {} -- push a value on to the stack function t:push(...) if ... then ...
object_draft_schematic_food_beastfood_stringy_meat_substitute = object_draft_schematic_food_shared_beastfood_stringy_meat_substitute:new { } ObjectTemplates:addTemplate(object_draft_schematic_food_beastfood_stringy_meat_substitute, "object/draft_schematic/food/beastfood_stringy_meat_substitute.iff")
--- if table.get_length(baseObj.item_tbl) < 1 then return end
return {'opzadelen','opzagen','opzakken','opzeg','opzegbaar','opzeggen','opzegger','opzegging','opzeggingstermijn','opzeggingsvergoeding','opzegtermijn','opzenden','opzending','opzet','opzetheling','opzetje','opzetkarton','opzetstuk','opzettelijk','opzettelijkheid','opzetten','opzetter','opzetting','opzicht','opzichte'...
MINIGAME.Base = "base" MINIGAME.Unique = "obstacle" MINIGAME.Name = "Obstacle Course" MINIGAME.Description = "First team to make it to the end of the obstacle course wins." MINIGAME.Author = "Chewgum"
AddEvent("OnKeyPress", function(key) if key == "Tab" then ExecuteWebJS(webui, "window.vm.showCharaCustom = !window.vm.showCharaCustom") end end) --[[ Clothing0 => Cheveux Clothing1 => Torse(Dessous) Clothing2 => Torse(Dessus) Clothing3 => Accessoires Clothing4 => Jambes Clothing5 => Pieds ]] AddEven...
Weapon.PrettyName = "S&W Model 3 Russia" Weapon.WeaponID = "m9k_model3russian" Weapon.DamageMultiplier = 3.4 Weapon.WeaponType = WEAPON_SECONDARY
-- Functions for nvim 0.4 compatibility. -- This module will be removed once nvim 0.5 becomes stable. local fn = setmetatable({}, { __index = function(_, key) return function(...) return vim.api.nvim_call_function(key, {...}) end end} ) local function tbl_map(func, t) local ret...
----------------------------------- -- Area: Western Adoulin -- NPC: Hujette -- Type: Quest NPC and Shop NPC -- Involved with Quest: 'All the Way to the Bank' -- !pos 35 0 -56 256 ----------------------------------- local ID = require("scripts/zones/Western_Adoulin/IDs") require("scripts/globals/keyitems") require...
local helpers = require('test.functional.helpers')(after_each) local Screen = require('test.functional.ui.screen') local feed = helpers.feed local eq = helpers.eq local clear = helpers.clear local function test_embed(ext_linegrid) local screen local function startup(...) clear{headless=false, args={...}} ...
n = io.read("*number", "*l") hash = '#' space = ' ' for i=1,n do s = string.rep(space, n-i) h = string.rep(hash, i) print(s .. h) end
--[[ * PSP Claw Explorer * Copyright 2016 Carlos Monge. * Licensed under MIT (https://github.com/carcmonge/pspclawexplorer/blob/master/LICENSE) ]]-- ibateria = {} if batt.exists() then ibateria.exists = "Insertada" else ibateria.exists = "No hay bateria" end if batt.charging() then ibateria.charging = "Si" ...
local UV = require('uv') local function set_timeout(duration, callback, ...) local args = {...} local timer = UV.new_timer() timer:start(duration, 0, function (status) timer:close() callback(unpack(args)) end) return timer end local function set_interval(period, callback, ...) local args = {...} ...
style = {["off_color"] = "fff", ["on_color"] = "fff", ["line_color"] = "000", ["line_width"] = "2"}; result = {8,16,6,3,8,4} test = {3,4,6,8,10,16} answ = lib.math.random_shuffle(test) ind = math.random(6) for i = 1,6 do if(answ[i] == result[ind]) then index = i-1 end end w =...
-- Load support for intllib. local MP = minetest.get_modpath(minetest.get_current_modname()) local S = minetest.get_translator and minetest.get_translator("mobs_redo") or dofile(MP .. "/intllib.lua") -- CMI support check local use_cmi = minetest.global_exists("cmi") mobs = { mod = "redo", version = "20210418", i...
local u = require("null-ls.utils") local methods = require("null-ls.methods") local config = require("null-ls.config").get() local M = {} M.handler = function(method, original_params, handler) local params = u.make_params(original_params, methods.map[method]) if method == methods.lsp.COMPLETION then r...
for line in io.lines(arg[1]) do local a = {} for i in line:gmatch("%d+") do a[#a + 1] = i end for i = 1, #a/2 do if i > 1 then io.write " " end io.write(a[i] * a[#a/2 + i]) end print() end
SWEP.Sounds = { base_draw = { {time = 0/30, sound = "INS2SHARED_DRAW"}, }, base_firelast = { {time = 0/60, sound = "DOIC96_BOLTRELEASE"}, }, iron_firelast = { {time = 0/60, sound = "DOIC96_BOLTRELEASE"}, }, base_reload = { {time = 19/31.8, sound = "DOIC96_MAGRELEASE"}, {time = 25/31.8, sound = "D...
gpay.c.db = gpay.c.db or {} gpay.c.db.host = "" gpay.c.db.login = "" gpay.c.db.password = "" gpay.c.db.database = "" gpay.c.token = "ASD654f6544fFFF121101" -- ТОКЕН СЕРВЕРА И PHP!!!!! gpay.c.oplata_ru_id = "" -- ID ТОВАРА gpay.c.await = 3 -- Задержка перед запросом gpay.c.debug = false -- Дебаг мод gpay.c....
local panel = {} panel.Name = "search" function panel:Init() self:BaseInit({ DontResize = { Width = true, Height = true }, Declare = { VideoID = "", URL = "" } }) self:SetPaintBackgroundEnabled(false) //will hold the buttons and stuff self.Navbar = vgui.Create("DPanel", self) self.Navbar:...
return { id = "material_pastelgreen", type = "material", name = "Pastel Green", description = "A nice green color for your eg!", rarity = 4, hidden = false, metadata = { color = Color3.fromRGB(115, 255, 99), material = Enum.Material.SmoothPlastic, } }
---@param params nil|any[] ---@return Array function Array(params) ---@class Array local this = { ---@private __NAME__ = "Array", ---@private __PROPERTIES__ = { keys = {}, values = {}, } } if (type(params) == "table") then if (ins...
-- NO TOUCHY, IF SOMETHING IS WRONG CONTACT KANERSPS! -- -- NO TOUCHY, IF SOMETHING IS WRONG CONTACT KANERSPS! -- -- NO TOUCHY, IF SOMETHING IS WRONG CONTACT KANERSPS! -- -- NO TOUCHY, IF SOMETHING IS WRONG CONTACT KANERSPS! -- -- Server Users = {} commands = {} settings = {} settings.defaultSettings = { ...
--------------------------------------------------------------------------------------------------- -- Issue: https://github.com/SmartDeviceLink/sdl_core/issues/3556 --------------------------------------------------------------------------------------------------- -- Description: Check that SDL sends response to SDL.G...
local lfdbL = require "lfdb_lib" local ffi = require "ffi" lfdbL.setup_ffi(ffi) local C = ffi.C local fdb = ffi.load("fdb_c") local pthread = ffi.load("pthread") local unique_id = tostring( {} ):sub(8) local chunk = [[ local unique_id = tostring( {} ):sub(8) local lfdbL = require "lfdb_lib" local ffi = require "ffi...
-- Slight rewrite of the dump function from luvit/pretty-print local controls = require('./controls') local match, find = string.match, string.find local gsub, rep = string.gsub, string.rep local byte = string.byte local concat, insert = table.concat, table.insert local type = type local dump local seen, output, sta...