content
stringlengths
5
1.05M
-- -- Generate documentation for this project into 'html' folder -- local lut = require 'lut' lut.Doc.make { sources = { 'yaml', }, target = 'html', format = 'html', header = [[<h1><a href='http://lubyk.org'>Lubyk</a> documentation</h1> ]], index = [=[ --[[-- # Lubyk documentation ## List of avail...
cs_spkeys = {'shift'} mem_read_ubyte = memory.readbyte mem_read_uword = memory.readword mem_read_ulong = memory.readlong mem_write_ubyte = memory.writebyte mem_write_uword = memory.writeword mem_write_ulong = memory.writelong cli_screenwidth = 320 cli_screenheight = 224 -- Gens needs not worry about this gam_xnat =...
local helper = require("piemenu.lib.testlib.helper") describe("piemenu.core.angle_distance", function() before_each(helper.before_each) after_each(helper.after_each) for _, c in ipairs({ { angle = 0, next_angle = 0, expected = 360 }, { angle = 0, next_angle = 360, expected = 360 }, { angle = 30, nex...
constants = require "constants" utils = require "utils" view = {} color = {} color.snake = utils.makeColor('#49AB81', 73,171,129) color.terrain = utils.makeColor('#A7784E', 167, 120, 78) color.fruit = utils.makeColor('#DF4815', 223, 72, 21) view.color = color love.window.setTitle("Snake Game") function drawMap(world...
module(..., lunit.testcase, package.seeall) local common = dofile("common.lua") local http = require("luanode.http") function test() nresponses = 0 local server = http.createServer(function(self, req, res) if req.url == '/one' then res:writeHead(200, { {'set-cookie', 'A'}, {'content-type', 'text/plain'} })...
--[[ "name": "packing-tape", "title": "Packing Tape", "author": "calcwizard", "description": "Mining a chest or wagon allows players to pick it up with all the items inside and carry it in their inventory. Now supports cars!" --]] local Event = require('__stdlib__/stdlib/event/event') local Inventory =...
function start_rendering(note_opts, file_opts, render_opts, bms_data, on_end_rendering) -- Make new pattern local pat_idx = renoise.song().sequencer:insert_new_pattern_at(1) local working_pattern = renoise.song().patterns[pat_idx] working_pattern.number_of_lines = renoise.Pattern.MAX_NUMBER_OF_LINES -...
require 'tempobj' local function _new() local t=tempobj.new(scene.createMovTar()) t.setOverBounce(1.6) local fPower=1; local getPower = function() return fPower; end local setPower = function(power) fPower=power; end local _frameMove = t.frameMove local frameMove = function(timed) local re...
function pause(seconds) coroutine.yield(seconds) end function lEntityMat(entity) Matrix.new(entity):load() end BasicSprite = {} function BasicSprite.new(img, mesh, shader) local res = { img = img, mesh = mesh, shader = shader } local wrapper = Element.new(BasicSprite.ren...
local heightBar = 0 local heightGraph = 0 local widthBarThread = 0 local widthGraphNet = 0 function conky_format(format, number) return string.format(format, conky_parse(number)) end function splitCsv(vals, fromConky) local tab = {} if fromConky then vals = conky_parse(vals) end for s in string.gmatch(v...
object_tangible_quest_som_volcano_marker_03 = object_tangible_quest_shared_som_volcano_marker_03:new { } ObjectTemplates:addTemplate(object_tangible_quest_som_volcano_marker_03, "object/tangible/quest/som_volcano_marker_03.iff")
-- Decompiled using luadec 2.2 rev: for Lua 5.2 from https://github.com/viruscamp/luadec -- Command line: D:\Software\AmbienceII\WDC_pc_Menu_data\Menu_seasons_temp.lua -- params : ... -- function num : 0 , upvalues : _ENV require("Chunk.lua") require("UI_SeasonButton.lua") local kScene = "ui_seasons" local kButtonP...
-- General options require('settings') require('keybinds') require('lsp') require('plugins')
local responses = require "kong.tools.responses" local kutils = require ("kong.plugins.keystone.utils") local policies = require ("kong.plugins.keystone.policies") local function show_ca_cert(self, dao_factory) return 200, [[ MIIDgTCCAmmgAwIBAgIJAIr3n9+0RSC7MA0GCSqGSIb3DQEBCwUAMFcxCzAJBgNV BAYTAlVTMQ4wDAYDVQQ...
ENT.Type = "point" ENT.Base = "base_point" function ENT:Initialize() -- Backwards compatibility: TTT maps compiled before the addition of the -- propspec setting may expect it to be off, so default it to off if a map -- settings entity exists (a reliable way of identifying a TTT map) GAMEMODE.propspec_all...
object_tangible_food_generic_dish_karkan_ribenes = object_tangible_food_generic_shared_dish_karkan_ribenes:new { } ObjectTemplates:addTemplate(object_tangible_food_generic_dish_karkan_ribenes, "object/tangible/food/generic/dish_karkan_ribenes.iff")
KethoWowpedia.patch.toy = { [680] = "8.0.1", [682] = "8.0.1", [683] = "8.0.1", [684] = "8.0.1", [685] = "8.0.1", [686] = "8.0.1", [787] = "8.0.1", [788] = "8.0.1", [789] = "8.0.1", [790] = "8.0.1", [791] = "8.0.1", [792] = "8.0.1", [793] = "8.0.1", [795] = "8.0.1", [796] = "8.0.1", [797] = "8.0.1", [79...
local settings = ... local concat = table.concat local insert = table.insert local sprintf = string.format local rep = string.rep local minetest_example_header = [[ # This file contains a list of all available settings and their default value for minetest.conf # By default, all the settings are commented and n...
--[[ Adobe Experience Manager (AEM) API Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API OpenAPI spec version: 3.2.0-pre.0 Contact: opensource@shinesolutions.com Generated by: https://openapi-generator.tech ]] --package openapi-client local http_request = require "http.requ...
return { init_effect = "", name = "测试-运输船-AI切换", time = 0, picture = "", desc = "运输船AI切换", stack = 1, id = 60036, icon = 60036, last_effect = "lingxing", effect_list = { { type = "BattleBuffAddBuff", trigger = { "onUpdate" }, arg_list = { buff_id = 60037, time = 10 } } } }
---@class ScriptObject ---[Documentation](https://wowpedia.fandom.com/wiki/UIOBJECT_ScriptObject) local ScriptObject = {} ---@param scriptType ScriptType ---@param bindingType LE_SCRIPT_BINDING_TYPE ---@return function handler ---[Documentation](https://wowpedia.fandom.com/wiki/API_ScriptObject_GetScript) function Scr...
-- See LICENSE for terms local options local mod_Option1 -- fired when settings are changed/init local function ModOptions() options = CurrentModOptions mod_Option1 = options:GetProperty("Option1") local u = ChoGGi.UserSettings u.DebugGridOpacity = options:GetProperty("DebugGridOpacity") u.DebugGridSize = option...
local _ _ = function() local _list_0 = things for _index_0 = 1, #_list_0 do local x = _list_0[_index_0] _ = x end end _ = function() local _accum_0 = { } local _len_0 = 1 local _list_0 = things for _index_0 = 1, #_list_0 do local x = _list_0[_index_0] _accum_0[_len_0] = x _len_0 = _len_0 + 1 end retu...
return { id = "SYG006", events = { { alpha = 0.332, style = { text = "司令部对于指挥官在之前战斗中的表现十分赞赏,所以特批开放了第二舰队的编制权限,快跟着我来吧!", mode = 2, posY = 0, dir = -1, posX = 0 } }, { alpha = 0.413, style = { text = "前往编队界面编组第二舰队。点击确认直接前往编队界面", mode = 2, scene = "BIANDUI", posY =...
print(message) print("Hello World from Lua")
local test = {} test.after = function() error("error after...") end test.my_test_ok= function() local value = true assert( value == true ) end return test
local resource_autoplace = require('resource-autoplace') data:extend({ { type = 'resource', name = 'nm-worm-hole', icon = '__nauvis-melange__/graphics/icons/worm-hole.png', icon_size = 64, icon_mipmaps = 4, flags = {'placeable-neutral'}, collision_box = {{ -1.45, -1....
local Codes = require 'lib.codes' local i18n = require 'i18n' local fun = require 'lib.fun' local Encoder = {} local expansion_locale = 'en' local generics = { number = function(key) return function(card) return tonumber(card[key]) or 0 end end, number_q = function(key) return function(card) retu...
-- Define module information -- All module data must be set correctly, skipping keys will result in a error -- Module data is in JSON format -- Please also note; for linux users module(s) and/or uppercase file name paths will cause issues, same with spaces/tabs. -- Must be set (case sensitive) -- If 'folderName' is n...
#!/usr/bin/env lua local fl = require( "fltk4lua" ) local N = 0 local W = 70 local H = 70 local ROWS = 6 local COLS = 6 local window, orientation, size local function slider_cb() local val = orientation.value local sze = size.value for i = window.children-1, 0, -1 do local wc = window:child( i ) local...
local bin = require "bin" local packet = require "packet" local stdnse = require "stdnse" local tab = require "tab" local table = require "table" local target = require "target" --- The following file contains a list of decoders used by the -- broadcast-listener script. A decoder can be either "ethernet" based or IP -...
function onUse(player, item, fromPosition, target, toPosition, isHotkey) if player:getStorageValue(Storage.GravediggerOfDrefia.Mission69) == 1 and player:getStorageValue(Storage.GravediggerOfDrefia.Mission70) < 1 then player:setStorageValue(Storage.GravediggerOfDrefia.Mission70, 1) player:sendTextMessage(MESSAGE_E...
CloneClass( WeaponTweakData ) Hooks:RegisterHook("WeaponTweakDataPostInit") function WeaponTweakData.init(self, tweak_data) self.orig.init(self, tweak_data) Hooks:Call("WeaponTweakDataPostInit", self, tweak_data) end Hooks:RegisterHook("WeaponTweakDataPostInitPlayerWeaponData") function WeaponTweakData._init_data_...
local robot = require('robot'); local tcp = require('tcp'); local orient = require('trackOrientation'); local config = require('config'); local confOptions = config.get(config.path); local position = { x = tonumber(confOptions.posX), y = tonumber(confOptions.posY), z = tonumber(confOptions.posZ), }; local M = {}...
require 'funcs' local GameMode = require 'tetris.modes.gamemode' local Piece = require 'tetris.components.piece' local History6RollsRandomizer = require 'tetris.randomizers.history_6rolls' local MarathonA2Game = GameMode:extend() MarathonA2Game.name = "Big A2" MarathonA2Game.hash = "BigA2" MarathonA2Game.tagline = ...
minetest.register_node("farming_plus:cocoa_sapling", { description = "Cocoa Tree Sapling", drawtype = "plantlike", tiles = {"farming_cocoa_sapling.png"}, inventory_image = "farming_cocoa_sapling.png", wield_image = "farming_cocoa_sapling.png", paramtype = "light", walkable = false, groups = {dig_immediate=3,fla...
project "Sandbox" --kind "WindowedApp" kind "ConsoleApp" entrypoint "mainCRTStartup" language "C++" cppdialect "C++17" staticruntime "off" targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}") objdir ("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}") files { "src/**.h", ...
local L = BigWigs:NewBossLocale("Eye of Azshara Trash", "deDE") if not L then return end if L then L.wrangler = "Zänker der Hassnattern" L.stormweaver = "Sturmwirkerin der Hassnattern" L.crusher = "Zermalmer der Hassnattern" L.oracle = "Orakel der Hassnattern" L.siltwalker = "Treibsandläufer der Mak'rana" L.tides...
local Transition = {} Transition.__index = Transition function Transition.new(effect, duration) local trans = {} setmetatable(trans, Transition) trans.count = 0 trans.sign = 1 trans.effect = effect trans.duration = duration trans.callback = function() return nil end return trans end function Transiti...
-- Controls for cmus music player -- Usage: local cmus = require "mjolnir.lb.cmus" -- Inspired by https://github.com/Linell/mjolnir.lb.spotify require 'os' local cmus = {} local alert = require "mjolnir.alert" function cmus.play() os.execute('/usr/local/bin/cmus-remote -u') alert.show('▶', 0.5) end function cm...
-------------------------------------------------------------------------------- -- Handler.......... : onScoreUploaded -- Author........... : -- Description...... : -------------------------------------------------------------------------------- -------------------------------------------------------------------...
-- Check a collection of quota counters to identify if an item should be rate -- limited. For each quota, repeat the same set of ``KEYS`` and ``ARGV``: -- -- ``KEYS`` (2 per quota): -- * [string] Key of the counter. -- * [string] Key of the refund counter. -- -- ``ARGV`` (3 per quota): -- * [number] Quota limit. Can...
local skynet = require "skynet" local netpack = require "skynet.netpack" local socket = require "skynet.socket" local sproto = require "sproto" local sprotoloader = require "sprotoloader" local queue = require "skynet.queue" local cs = queue() local TAG = "Agent" local Agent = {} local host function Agent:onReque...
-- -*- coding: utf-8 -*- local ngx_loggers = require "logdumper" local funcall = ngx_loggers:LogDumper()
local Path = require("plenary.path") local utils = require("neo-tree.utils") local events = require("neo-tree.events") local Job = require("plenary.job") local log = require("neo-tree.log") local git_utils = require("neo-tree.git.utils") local M = {} local function get_simple_git_status_code(status) -- Prioritze M ...
local HelpInterface do local texts = { -- name, max chars {"help", nil}, {"staff", 700}, {"rules", 800}, {"contribute", nil}, {"changelog", nil} } local extra_chars = { ru = 250, he = 250 } local page_info = {} local scroll_info = {} local images = {} for lang, translation in next, translations d...
-- -- checkm 1.1.3 modulefile -- -- "URL: https://www.psc.edu/resources/software" -- "Category: Biological Sciences" -- "Description: CheckM provides a set of tools for assessing the quality of genomes recovered from isolates, single cells, or metagenomes." -- "Keywords: singularity bioinformatics genomics metagenomics...
--[[ TheNexusAvenger Provides a client buffer for launching projectiles. This uses an exploit of network ownership where clients can change the physics of parts locally without needing to handle anything on the server. --]] local Workspace = game:GetService("Workspace") local BufferCreator = {} local Tool = script.P...
local L, this = ... this.title = "Metadata Utilities" this.version = "1.0" this.status = "prototype" this.desc = "Provides methods for defining metadata about items" local lcore = L.lcore local oop = lcore.utility.oop local utable = lcore.utility.table local metadata local function parse_arg_list(list) list = list ....
#!/usr/bin/env luajit local ffi = require("ffi") ffi.cdef([[ enum { CLOCK_REALTIME, CLOCK_MONOTONIC, CLOCK_PROCESS_CPUTIME_ID, CLOCK_THREAD_CPUTIME_ID, CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, CLOCK_MONOTONIC_COARSE, CLOCK_BOOTTIME, CLOCK_REALTIME_ALARM, CLOCK_BOOTTIME_ALARM }; typedef struct timespec { ...
local quick = {}; local function partition(arr, low, high, callback) local pivot = arr[high]; -- given arr[low] -> arr[high], splits the array between this pivot. local j = low - 1; for i = low, high - 1 do if callback and callback(arr[i], pivot) or arr[i] < pivot then j = j + 1; ...
---@class CS.UnityEngine.CrashReport ---@field public time CS.System.DateTime ---@field public text string ---@field public reports CrashReport[] ---@field public lastReport CS.UnityEngine.CrashReport ---@type CS.UnityEngine.CrashReport CS.UnityEngine.CrashReport = { } function CS.UnityEngine.CrashReport.RemoveAll() e...
PrefabFiles = { "dwarven_helmet", } local Ingredient = GLOBAL.Ingredient local RecipeTabs = GLOBAL.RECIPETABS local Tech = GLOBAL.TECH local dwarven_helmetRecipe = Recipe("dwarven_helmet", {Ingredient("strawhat", 1),Ingredient("transistor", 1),Ingredient("lightbulb", 1),Ingredient("charcoal", 8)}, RecipeTabs.LIGHT, ...
------------------------------------- -- 顯示天賦信息 -- @Author: M -- @DepandsOn: InspectUnit.lua ------------------------------------- hooksecurefunc("ShowInspectItemListFrame", function(unit, parent, itemLevel, maxLevel) local frame = parent.inspectFrame if (not frame) then return end if (not frame.specicon)...
-- Bresenham line marching algorithm implementation -- See: http://www.cs.helsinki.fi/group/goa/mallinnus/lines/bresenh.html -- x0: the x-coordinate of the start point -- y0: the y-coordinate of the end point -- x1: the x-coordinate of the start point -- y1: the y-coordinate of the end point -- returns: an array of {x...
_G.requireInjector(_ENV) local GPS = require('gps') local Util = require('util') local Peripheral = require('peripheral') local Point = require('point') local os = _G.os local args = { ... } local remoteId = args[1] or error('mobFollow <remote id>') local ni = Peripheral.lookup(remoteId .. '://name...
return Def.ActorFrame{ Def.Quad{ InitCommand=function(s) s:stretchto(0,0,SCREEN_WIDTH,SCREEN_HEIGHT) end, OnCommand=function(s) s:diffusealpha(0):linear(0.3):diffusealpha(1) end } }
data:extend( { { type = "shell-turret", name = "gun-turret", icon = "__base__/graphics/icons/gun-turret.png", flags = {"placeable-player", "player-creation"}, minable = {mining_time = 0.5, result = "shell-turret"}, max_health = 350, corpse = "small-remnants", collision_box = ...
require("utils.copy") local tinsert = table.insert local ConstraintList = {} -------------------------------------------------------------------------------------- local TConstraint = { } -------------------------------------------------------------------------------------- TConstraint.update = function( C ) ...
--[[ Swaggy Jenkins Jenkins API clients generated from Swagger / Open API specification The version of the OpenAPI document: 1.1.2-pre.0 Contact: blah@cliffano.com Generated by: https://openapi-generator.tech ]] -- extension_class_container_impl1 class local extension_class_container_impl1 = {} local exten...
require("libevent") require("util") local component = require("component") local sides = require("sides") -- System buy from player -- Auto configure local modem = proxy("modem") local trans = proxy("transposer") local redgate = proxy("redstone") -- Variables local gate_allow = true -- Functions local function ini...
local Cup = { bbox_x = 5, bbox_y = 10, bbox_w = 5, bbox_h = 6, name = "ba Cup prototype", img = 5, } Cup.__index = Cup function Cup:new(opts) return setmetatable(opts, self) end local Bowl = {} local Cereal = {} local Potplant = {} local Flowers = {} local BreakableSprite = { } BreakableSprite.__index = B...
object_tangible_item_loot_crates_heroic_crate = object_tangible_item_loot_crates_shared_heroic_crate:new { objectMenuComponent = "HeroicMenuComponent", } ObjectTemplates: addTemplate(object_tangible_item_loot_crates_heroic_crate, "object/tangible/item/loot_crates/heroic_crate.iff")
package.path = package.path .. ";../../?.lua;../../?/init.lua;../libs/?.lua;../libs/?/init.lua" -- Small loading hack, not needed in normal times. local Terminal = require "terminal" local moonshine = require 'moonshine' local utf8 = require "utf8" effect = moonshine(moonshine.effects.scanlines).chain(moonshine.effec...
--[[ создает глобальные: переменные: WindowManager - менеджер окон CursorSprite - спрайт курсора можно изменять CursorNode - узел для курсора, к нему можно привязать все, что надо двигать вместе с курсором SoundEffectsVolume - громкость для вывода звуковых эффектов функции: ...
return {'isbn'}
--- Library implementing a minimal TFTP server -- -- Currently only write-operations are supported so that script can trigger -- TFTP transfers and receive the files and return them as result. -- -- The library contains the following classes -- * <code>Packet</code> -- ** The <code>Packet</code> classes contain one cla...
Camp = {} Camp.e = {} ------------------------------------------------------ -- System events ------------------------------------------------------ function Camp:new() local u = {} setmetatable(u, self) self.__index = self return u end function Camp:onConnect(opt) self.dt = 0 self.dtTurn = 0 self.rang...
memo = {} label = {} button = {} edit = {} function openWindow() if (loggingWindow) then return true end -- Window loggingWindow = guiCreateWindow(0.30, 0.25, 0.40, 0.50, "AUR - Check Logs", true) guiWindowSetSizable(loggingWindow, false) guiSetVisible(loggingWindow, false) -- Tab ...
ShowToClient("Quests", "Starting quests 1-20lvl"); dofile (GetDir() .. "\\scripts\\Quests\\Q1.lua"); dofile (GetDir() .. "\\scripts\\Quests\\Q2.lua"); dofile (GetDir() .. "\\scripts\\Quests\\Q3.lua"); dofile (GetDir() .. "\\scripts\\Quests\\Q4.lua"); dofile (GetDir() .. "\\scripts\\Quests\\Q5.lua"); dofile (GetDir() .....
return function (request, next_middleware) request.headers.authentication = 'this-is-my-key' return next_middleware() end
----------------------------------- -- Area: Norg -- NPC: Heiji -- Starts and Ends Quest: Like a Shining Subligar -- !pos -1 -5 25 252 ----------------------------------- require("scripts/globals/settings") require("scripts/globals/titles") require("scripts/globals/shop") require("scripts/globals/quests") local ID = r...
-- placeholder map grid local map = nil local timer = 0 -- setup data representing a map function core_init() end -- update level data function core_update(dt) timer = timer + dt end -- return the map object function core_getMap() return map end
-- temperature widget type for GNU/Linux -- Copyright (C) 2010 Adrian C. <anrxc@sysphere.org> -- Copyright (C) 2017 mutlusun <mutlusun@github.com> -- -- This file is part of Vicious. -- -- Vicious is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as -- pub...
data:extend( { { type = "recipe", name = "angels-warehouse-buffer", energy_required = 10, enabled = "false", ingredients ={ {"steel-plate", 20}, {"angels-warehouse", 1}, {"advanced-circuit", 20}, }, result= "angels-warehouse-buffer", icon_size = 32, subgroup = "angels-warehouses", order = ...
-- Class: Map -- A map saves memory and CPU time by acting as if it were a grid of sprites. -- Each different type of sprite in the grid is represented via a single -- object. Each sprite must have the same size, however. -- -- This works very similarly to a tilemap, but there is additional flexibility -- in using a s...
local guiSceneManager = {} guiSceneManager.currentUISceneIdx = 1 local font_TextName = "fonts/Marker Felt.ttf" local UIScene = class("UIScene") UIScene.__index = UIScene UIScene._uiLayer= nil UIScene._widget = nil UIScene._sceneTitle = nil function UIScene.extend(target) local t = tolua.getpeer(target) if...
PLUGIN.name = "DayZ Hud" PLUGIN.author = "Black Tea | STEAM_0:1:29606990" PLUGIN.description = "" if (SERVER) then util.AddNetworkString("ixUpdateRep") util.AddNetworkString("ixHUDShineText") do local playerMeta = FindMetaTable("Player") function playerMeta:NotifyShine(text, time, color) net.Start("ixHUDSh...
local search = {} search.new = function (request) local new = {} new.photos = function (t) if not t then t = {} end setmetatable(t, {__index = {page = 1, per_page = 10}}) return request({ url = '/search/photos', method = 'GET', query = { query = t.query, page = t.pa...
require 'busted.runner'() local mexbt = require('mexbt') describe("meXBT", function() it("gives a valid response to all public api functions that require no args", function() local flist = {"ticker", "trades", "currency_pairs", "order_book"}; for i,fname in ipairs(flist) do assert.is_true(mexbt[fnam...
-- -- Created by IntelliJ IDEA. -- User: junjie -- Date: 2014/11/5 -- Time: 15:40 -- 稍后完善其他函数的包装 -- local ffi = require("ffi") local crypto = ffi.load("crypto") ffi.cdef[[ typedef struct rsa_st RSA; typedef struct bio_st BIO; typedef int pem_password_cb(char *buf, int size, int rwflag, void *userdata); int RSA_publ...
--[[ GloopBlocks Originally written by GloopMaster Licensed under WTFPL. Maintained by VanessaE. --]] -- Boilerplate to support localized strings if intllib mod is installed. local S if minetest.get_modpath("intllib") then S = intllib.Getter() else S = function(s) return s end end -- misc stuff ...
--[[ Copyright (C) 2014-2017 - Eloi Carbo 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 3 of the License, or (at your option) any later version. This program is distributed in the ...
return {'wysiwyg'}
local abilitydefs = include( "sim/abilitydefs" ) local simdefs = include( "sim/simdefs" ) local simquery = include( "sim/simquery" ) local btree = include("sim/btree/btree") local util = include( "modules/util" ) local mathutil = include( "modules/mathutil" ) local abilitydefs = include( "sim/abilitydefs" ) local speec...
require "config" require "utils" require("plugins").setup()
local events = {} events.navigate_up = "navigate_up" events.navigate_down = "navigate_down" events.navigate_left = "navigate_left" events.navigate_right = "navigate_right" events.change_path = "change_path" events.command_prompt = "command_prompt" events.cancel = "cancel" events.execute = "execute" events.quit = "...
local name, addon = ...; local media = LibStub("LibSharedMedia-3.0"); --[[---------------------------------------------------------------------------- Strings & Patterns ------------------------------------------------------------------------------]] local pattern_title = "%s"; local pattern_left = "Intellect\n"...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:SetModel("models/props_c17/FurnitureBathtub001a.mdl") self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetModelScale(self:GetModelSca...
Ext.RegisterOsirisListener("DB_Origins_MaxPartySize", 1, "after", function(size) if size == 4 then Osi.DB_Origins_MaxPartySize:Delete(4) local settings = GetSettings() if settings then local partySize = settings.Global:GetVariable("PartySize", 6) or 6 Osi.DB_Origins_MaxPartySize(partySize) else Osi.DB...
SSID = "put network name here" PSK = "put network key here" print("Initalizing WIFI...") wifi.setmode(wifi.STATION) wifi.sta.config(SSID,PSK) wifi.sta.connect() print("Your MAC Address is " .. wifi.sta.getmac()) tmr.alarm(1, 1000, 1, function() if wifi.sta.getip()== nil then print("Waiting for IP Address...
require "lib.classes.class" local BasicScene = require "Cutscenes.model.scenes.BasicScene" -------------------------------------------------------------------------------------------------------- -- class: TimedScene -- param: text:str -> the text asociated to the cutscene -- param: image_path:str -> the path of the s...
----------------------------------- -- Area: Windurst Walls -- NPC: Ojha Rhawash -- Starts and Finishes Quest: Flower Child -- !pos -209 0 -134 239 ----------------------------------- local ID = require("scripts/zones/Windurst_Walls/IDs"); require("scripts/globals/settings"); require("scripts/globals/quests"); func...
----------------------------------------------------------------------------- -- Leda simple single threaded controller -- Author: Tiago Salmito, Noemi Rodriguez, Ana Lucia de Moura ----------------------------------------------------------------------------- local thread_pool=require("leda.controller.thread_pool") lo...
function math.clamp(x, min, max) check("n,?n[2]") return min and x < min and min or max and x > max and max or x end function math.round(x, decimals) check("n,?n") local mult = 10^(decimals or 0) x = x * mult return (x >= 0 and math.floor(x + 0.5) or math.ceil(x - 0.5))/mult end
local Upstream = require('apicast.upstream') local match = require('luassert.match') describe('Upstream', function() local valid_url = 'http://localhost:8080/path?query' describe('.new', function() it('returns an error on invalid upstream', function() assert.returns_error('invalid upstream...
local _, ns = ... local E = ns.E if not E:C('progressbars', 'enabled') then return end; local bars = {} local ProgressBars = CreateFrame("Frame", "sInterfaceProgressBars", Minimap) ProgressBars:SetPoint("TOPLEFT", Minimap, "BOTTOMLEFT", 0, -10) ProgressBars:SetPoint("TOPRIGHT", Minimap, "BOTTOMRIGHT", 0, -10) Progre...
local LIST = TRL.NewObject("CHECKLIST") function LIST:Name() return self.name end function LIST:ID() return self.id end function LIST:AddItem(name,checked,pos,cb) TRL.ProcessAPI("checklists", self:ID(), "checkItems", { name = name, pos = pos, checked = checked, }, cb, "POST") -- POST end function L...
#! /usr/bin/lua require 'Test.More' plan(5) local mp1 = require 'MessagePack' package.loaded['MessagePack'] = nil -- hack here local mp2 = require 'MessagePack' isnt( mp1, mp2 ) mp1.set_array'without_hole' mp2.set_array'always_as_map' local t = { 10, 20, nil, 40 } is( mp1.pack(t):byte(), 0x80 + 3, "array with...
return { HOOK_CHUNK_GENERATING = { CalledWhen = "A chunk is about to be generated. Plugin can override the built-in generator.", DefaultFnName = "OnChunkGenerating", -- also used as pagename Desc = [[ This hook is called before the world generator starts generating a chunk. The plugin may provide some or...