content
stringlengths
5
1.05M
local manners = require 'manners' local doc, link, deflink = manners.doc, manners.link, manners.deflink local M = doc({},[[ A small utility library to create typed documentation objects. Not very useful on its own but `manners.docgen.*` uses it to determine formatting and such. The formats have a few conventions, how...
--- Kong helper methods to send HTTP responses to clients. -- Can be used in the proxy, plugins or admin API. -- Most used status codes and responses are implemented as helper methods. -- -- @author thibaultcha -- Define the most used HTTP status codes through Kong local _M = { status_codes = { HTTP_OK = 200, ...
local raw = require "raw" local fs = require "filesystem" local type = require "class" local json = {} ------------------------------------------------------------------ utils local controls = {["\n"]="\\n", ["\r"]="\\r", ["\t"]="\\t", ["\b"]="\\b", ["\f"]="\\f", ["\""]="\\\"", ["\\"]="\\\\"} local function isArray(t...
Dntg_TroopDuration = { FishPath = { Path = { { Id = 1, Duration = 2242 }, { Id = 2, Duration = 2242 }, { Id = 3, Duration = 2802 }, { Id = 4, Duration = 1552 }, { Id = 5, Duration = 5833 }, [8] = { Id = 8, Duration = 5509 }, [9] =...
object_intangible_beast_bm_nexu = object_intangible_beast_shared_bm_nexu:new { } ObjectTemplates:addTemplate(object_intangible_beast_bm_nexu, "object/intangible/beast/bm_nexu.iff")
-- Do not edit! This file was generated by blocks/signal/frequencytranslator_spec.py local radio = require('radio') local jigs = require('tests.jigs') jigs.TestBlock(radio.FrequencyTranslatorBlock, { { desc = "0.2 offset, 256 ComplexFloat32 input, 256 ComplexFloat32 output", args = {0.2}, ...
-- wrapper around BitOp module if _VERSION == "Lua 5.1" or type(jit) == "table" then -- Lua 5.1 or LuaJIT (based on Lua 5.1) return require("bit") -- custom module https://luarocks.org/modules/luarocks/luabitop elseif _VERSION == "Lua 5.2" then return require("bit32") -- standard Lua 5.2 module else return require(...
-- $Id: lups_wrapper.lua 3171 2008-11-06 09:06:29Z det $ --------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------- -- -- file: lups.lua -- brief: Lups (Lua Particle System) Gadget Wra...
local rpc = require "rpc" local shortport = require "shortport" local stdnse = require "stdnse" local string = require "string" local ls = require "ls" local table = require "table" local nmap = require "nmap" description = [[ Attempts to get useful information about files from NFS exports. The output is intended to r...
player_manager.AddValidModel( "PMC5_13", "models/player/PMC_5/PMC__13.mdl" ) list.Set( "PlayerOptionsModel", "PMC5_13", "models/player/PMC_5/PMC__13.mdl" )
return {'vwo','vwoer','vwoers'}
local L = Grid2Options.L local DISPLAY_VALUES = { [1] = L["Never"], [2] = L["Always"], [3] = L["In Combat"], [4] = L["Out of Combat"] } local ANCHOR_VALUES = { ['@'] = L["Default"], ANCHOR_TOP = L["TOP"], ANCHOR_BOTTOM = L["BOTTOM"], ANCHOR_LEFT = L["LEFT"], ANCHOR_RIGHT = L["RIGHT"], ANCHOR_TOPLEFT = L["TOPLEFT"], ...
function PLAYER:Notify ( Text, truefalse ) if !self or !self:IsValid() then return false; end if SERVER then umsg.Start('perp_notify', self); umsg.String(Text); umsg.End(); else AddNotify(Text, NOTIFY_UNDO, 15, truefalse); end end function PLAYER:GetRPName ( ) return self:GetUMsgString("rp_fname", ...
local L = LibStub("AceLocale-3.0"):NewLocale("AbyssUI", "frFR") if not L then return end -- Traducteur : Besoin d'un Traducteur -- Exemple -- L ["Texte Anglais"] = "Votre traduction" -------------------------------------------------------------- -- Config L["Info Panel"] = "Informations" L["Hide Elements"] = "Masquer ...
-- const BluebirdPromise = require('bluebird'); -- const { consts, utils } = require('../lora-lib'); -- const RESTIND_PARAM = consts.RESETIND; -- const MacCommandIssuers = require('../macCmdIssuers'); return function(devAddr, status) -- let _this = this; -- return new BluebirdPromise((resolve, reject) => { p( ...
return {'eucalyptus','eucharistie','eucharistieviering','eucharistisch','euclidisch','eucalyptusolie','eucalyptusboom','euclides','eucalyptussen','eucharistievieringen','eucharistische','euclidische','eucalyptusbomen'}
-- ORE CLEANER BEAMS -- -- Collect Beam -- ocB = {} ocB.name = "OCBeam" ocB.type = "beam" ocB.flags = {"not-on-map"} ocB.damage_interval = 20 ocB.random_target_offset = false ocB.action_triggered_automatically = false ocB.width = 2 ocB.direction_count = 1 ocB.head = { filename = "__Mobile_Factory_Graphics__...
ESX = nil Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(0) end end) RegisterNetEvent('esx:playerLoaded') AddEventHandler('esx:playerLoaded', function(xPlayer) PlayerData = xPlayer end) ----- RegisterNetEvent('e...
addEvent ( "NGDrugs:Module->LSD:givePlayerCash", true ) addEventHandler ( "NGDrugs:Module->LSD:givePlayerCash", root, function ( ) givePlayerMoney ( source, math.random ( 50, 100 ) ) end )
---------------------------------------- -- -- Copyright (c) 2015, 128 Technology, Inc. -- -- author: Hadriel Kaplan <hadriel@128technology.com> -- -- This code is licensed under the MIT license. -- -- Version: 1.0 -- ------------------------------------------ -- prevent wireshark loading this file as a plugin if not ...
--------------------------------------------------------------------------- -- @author Julien Danjou &lt;julien@danjou.info&gt; -- @copyright 2008 Julien Danjou -- @release v3.4.13 --------------------------------------------------------------------------- -- Grab environment we need local capi = { mouse = mouse, ...
local assets = { pack = { Asset("ANIM", "anim/nightpack.zip"), Asset("ANIM", "anim/ui_backpack_2x4.zip"), }, green = { Asset("ANIM", "anim/nightpack.zip"), Asset("ANIM", "anim/ui_krampusbag_2x5.zip"), } } local prefabs = { pack = { "nightback"...
require "stdlib/event/event" require "util/surface" local resources = { {name = "dry-hairy-tree", amount = 1}, {name = "clay-patch", min = 18, max = 26}, } local spawn_area = {x = {-40, 40}, y = {-40, 40}} local spawn_radius = 8 local function create_random_position(center, area) return { math.random(center.x +...
--- Boilerplate for winding rule scenes with boundary contours. -- -- 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, ...
#!/usr/bin/lua ------------------------------------------------------------------------------- -- -- @script: apns-sim.lua -- -- @author: Rohit Joshi -- -- @copyright Joshi Ventures LLC ? 2012 -- -- @license Apache License, Version 2.0 -- -- VERSION HISTORY: -- 0.1 10/115/2014 - Initial release -- --------------------...
-- create unit at pointer or given location -- wraps modtools/create-unit.lua --[[=begin spawnunit ========= ``spawnunit RACE CASTE`` creates a unit of the given race and caste at the cursor, by wrapping `modtools/create-unit`. Run ``spawnunit help`` for more options. =end]] usage = [[Usage: - spawnunit...
local testEnv = require "./test-env" local tCommandFile = fs.open(".command.json", "r") local sCommandRaw = tCommandFile.readAll() tCommandFile.close() local tCommand = textutils.unserializeJSON(sCommandRaw) -- Initializing the tests for _1, sFile in ipairs(tCommand.files) do print("Running tests in " .. sFile ....
-- file : APP.lua local module = {} local mqtt_id = 6666 local mqtt_topic_adc = "/your_mqtt_topic/moisture_adc" local adc_val = 0 local sleep_timer local function cb_adc(val) adc_val = val end local function sleep() node.dsleep(60000000) -- 60 seconds end -- callback when MQTT is connected local function c...
local xlsx = require 'xlsx' -- Load a workbook with one sheet, display its contents and -- save into another file. --if Tilde then Tilde('disable') end local workbook = xlsx.Workbook(arg[1]) if Tilde then Tilde('enable') end for sheetIndex = 1, workbook:GetTotalWorksheets() do local sheet1 = workbook[sheetIndex] ...
local config = { id = 'modTopButton', name = 'Teleport', img = 'button', options = { ['Saffron [FREE]'] = '!teleport Saffron', ['Battle City [VIP]'] = '!teleport Battle City', ['Hunter Village [VIP]'] = '!teleport Hunter Village', ['Cerulean [FREE]'] = '!teleport Cerulean', ['Lavender [FREE]'] = '!telepor...
-- Copyright 2022 Blake Covarrubias -- -- 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 ...
local AddonName, AddonTable = ... AddonTable.draktharon = { -- Trollgore 35618, -- Troll Butcherer 35620, -- Berserker's Horns 37715, -- Cowl of the Dire Troll 37714, -- Batrider's Cord 35619, -- Infection Resistant Legguards 37717, -- Legs of Physical Regeneration 37712, -- Terr...
local _, Addon = ... if not Addon.IS_RETAIL then return end local DB = Addon.DB local DTL = Addon.Libs.DTL local L = Addon.Libs.L local REASON = Addon.Filters:SellReason( L.IGNORE_TEXT, L.BY_TYPE_TEXT, L.IGNORE_EQUIPMENT_SETS_TEXT ) local EQUIPMENT_SETS_CAPTURE = _G.EQUIPMENT_SETS:gsub("%%s", "(.*)") local fu...
local activitynet_utils = {} function activitynet_utils.load_annotation_data(data_file_path) return json.load(data_file_path) end function activitynet_utils.get_class_labels(data) local leaf_names = {} for k, v in pairs(data.taxonomy) do local is_leaf = true for k2, v2 in pairs(data.taxonomy) do i...
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_BLEEDING) combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false) function onGetFormulaValues(player, level, magicLevel) local min...
AddCSLuaFile() PANEL.Base = "Panel" function PANEL:Init() self.CurrentSearch = "" self.OldResults = -1 self.RebuildResults = false self:Dock( TOP ) self:SetHeight( 20 ) self:DockMargin( 0, 0, 0, 3 ) self.Search = self:Add( "DTextEntry" ) self.Search:Dock( FILL ) self.Search:SetPlaceholde...
local awful = require("awful") --- Start applications automatically when Awesome initializes. --- Apps started with autorun will only run once. They will not be run if --- awesome restarts. -- @param autorun_apps Table of GUI applications to run on startup. -- Each element of the table is itself a table with the follo...
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] CQuestLog = {} function CQuestLog:constructor() self.enabled...
--[[ StateMachine is a module that provides an implementation of the finite-state machine model. For more information on finite-state machines and their uses: https://en.wikipedia.org/wiki/Finite-state_machine StateMachine.create(infoByState: {string: {...}}, initialState: string) => machine: Machine Create and ...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BseTreasureHuntQuery_pb', package.seeall) local TREASUREHUNT = protobuf.Descriptor(); local TREASUREHUNT_MODE_FIELD = protobuf.FieldDescriptor(); local TREASUREHUNT_PRICE_FIELD = protobuf.FieldDescriptor(); local TREASUREHUNT_GIFTS...
local cfg = {} -- mission display css cfg.display_css = [[ .div_mission{ position: absolute; top: 200px; right: 5px; color: white; background-color: rgba(0,0,0,0.75); padding: 8px; max-width: 300px; } .div_mission .name{ color: rgb(255,226,0); font-weight: bold; } .div_mission .step{ color: rgb(...
redis.call('DEL', get_lock_key(key)) redis.call('DEL', key)
#!/usr/local/bin/lua -- test srlua print("This is",_VERSION,"running a script inside",arg[0]) print("These are the arguments from varargs") print(...) print("These are the arguments from arg") for i=0,#arg do print(i,arg[i]) end print("These are the libraries") for k,v in pairs(_G) do if type(v)=="table" then io...
local S = unified_inventory.gettext local F = unified_inventory.fgettext minetest.register_privilege("creative", { description = S("Can use the creative inventory"), give_to_singleplayer = false, }) minetest.register_privilege("ui_full", { description = S("Forces Unified Inventory to be displayed in Full mode if L...
-- This script extends wrk2 to handle multiple server addresses -- as well as multiple paths (endpoints) per server ----------------- -- main() context -- main() globals local threads = {} local counter = 1 function setup(thread) -- Fill global threads table with thread handles so done() -- can process per-t...
object_tangible_tcg_series7_garage_display_vehicles_pod_racer_light_bending = object_tangible_tcg_series7_garage_display_vehicles_shared_pod_racer_light_bending:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series7_garage_display_vehicles_pod_racer_light_bending, "object/tangible/tcg/series7/garage_display_...
#!/usr/bin/env lua local exec = require "tek.lib.exec" local c = exec.run({ func = function() for i = 1, 10000000 do end error "error in child" end }) for i = 1, 20000000 do end print "parent done" --[[ luatask: bin/task/test41.lua:6: error in child stack traceback: [C]: in function 'error' bin/t...
local discoScienceInit = function() if remote.interfaces["DiscoScience"] and remote.interfaces["DiscoScience"]["setIngredientColor"] then remote.call("DiscoScience", "setIngredientColor", "more-science-pack-1", {r = 214, g = 87, b = 39}) remote.call("DiscoScience", "setIngredientColor", "more-science-pack-2"...
--[[ This file contains the necessary classes for generating the SDK DO NOT MODIFY ]] local ffi = require("ffi") ffi.cdef[[ struct UObject_Data { const struct FPointer VfTableObject; const struct UObject* HashNext; struct FQWord ObjectFlags; const struct UObject* HashOuterNext; const struct FPointe...
--- --- Generated by MLN Team (http://www.immomo.com) --- Created by MLN Team. --- DateTime: 2019-09-05 12:05 --- local _class = { _classname = 'HTTPHandler', _version = '1.0', http = Http() } ---@public function _class:GET(url, param, complete) param = param or {} param["cachePolicy"] = CachePoli...
--- author:fritz_98 current maintainer:fritz_98 v1.0 -- gibt einen iterator zurück, der über ein table der form {anzahl, id1, id2...} iteriert. -- nutzt upvalues intern, iterator func nicht speichern EntityList = function (_Table) local Index = 1 local Count = _Table[1] + 1 return function() Ind...
ENT.Type = 'anim' ENT.Base = 'bw_machine_base' ENT.PrintName = 'Diesel Generator' ENT.Author = 'n00bmobile' ENT.Category = 'n00bmobile' ENT.Spawnable = true ENT.AdminSpawnable = true --[Customizable Values]-- ENT.MaxPower = 700 ENT.MaxFuel = 300 ------------------------- ENT.UsesPower = false function ENT:SetupDataTab...
local std = require "atf.stdlib.std" local table = require "atf.stdlib.std.table" local exit_codes = require('exit_codes') local validOptList = { } local errors = {} local usage = [[ ATF 2.2 Usage: ./start.sh [OPTIONS] script.lua ]] local help = {} local fotter = [[ -v,--version display version information, then...
hook.Add("InitPostEntityMap", "profile", function() for _, ent in pairs(ents.FindByClass("trigger_teleport")) do ent:Remove() end for _, ent in pairs(ents.FindByClass("trigger_push")) do ent:Remove() end end)
-- test script for Pinfo and Address functions -- use with dhcp.pcap in test/captures directory local major, minor, micro = get_version():match("(%d+)%.(%d+)%.(%d+)") if major then major = tonumber(major) minor = tonumber(minor) micro = tonumber(micro) else major = 99 minor = 99 micro = 99 end ...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> 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 ht...
local DB = require("dashboard.model.db") return function(config) local node_model = {} local mysql_config = config.store_mysql local db = DB:new(mysql_config) function node_model:get_api_stats_data(period,api,domain) local now = ngx.now() now = now-period*60 local date_now = ...
local obj_bking = {} function obj_bking.init() obj_bking.data = {} obj_bking.name = "obj_bking" editor.importObject("FACES", obj_bking.name, "obj_bking.new", mdl_bking) end function obj_bking.new(x, y) local tbl = {} tbl.x = x tbl.y = y table.insert(obj_bking.data, tbl) end function obj_bking.draw() local i ...
--[[ This comparator attempts to choose edge sectors to move around a system Note: this is comparable to the rookMove file, except it's trying to find paths based on locus definitions and not by expert determinative systems. Note to self: this algorithm could be sped up if all open ranks/files were lo...
-- This script takes temprature and humidity from an AM2302 -- and sends it out on MQTT every 5 seconds. -- mqtt details client = "<username>" password = "<password>" url = "iot.rabbiteer.io" --these are the data and clock pin numbers sda, scl = 1, 2 -- this will be called after mqtt connect function on_...
--[[ Helpers ]] function table.contains(table, element) for _, value in pairs(table) do if value == element then return true end end return false end function table.removeByValue(table, value) found = false for tableKey, tableValue in pairs(table) do if tableVa...
local types = require('cmp.types') local cache = require('cmp.utils.cache') local misc = require('cmp.utils.misc') local compare = {} -- offset compare.offset = function(entry1, entry2) local diff = entry1:get_offset() - entry2:get_offset() if diff < 0 then return true elseif diff > 0 then return false ...
-- Edit anything you want just leave credits lol local uicfg = { ["HeaderWidth"] = 250, ["AccentColor"] = Color3.new(0.6,0,0) } local gui = loadstring(game:HttpGet("https://gitlab.com/0x45.xyz/droplib/-/raw/master/drop-minified.lua"))():Init(uicfg,game.CoreGui) getgenv().Autofarm = false getgenv().setPos = n...
require 'curses' require 'signal' -- globals {{{ local map, rows, cols local colors = { "black", "green", "red", "cyan", "white", "magenta", "blue", "yellow" } -- }}} -- helpful functions {{{ local function pline(str) curses.addstr({y = 0, x = 0}, str) curses.clrtoeol() end local function ...
--=========== Copyright © 2020, Planimeter, All rights reserved. ===========-- -- -- Purpose: -- --==========================================================================-- function framework.draw() local width, height = framework.graphics.getSize() framework.graphics.polygon( "fill", { 0.25 * width, 0.75 * hei...
local _, Private = ... if Private.initialized then local localization = LibStub:GetLibrary("ovale/ui/Localization") local L = localization and localization.l or nil do -- backwards compatibiility for Ovale<=9.0.43 L = L or (localization and localization.L or nil) end L = L or {} local locale = GetLocale() ...
--window title love.window.setTitle("Monkey Example") --load the 3D lib local dream = require("3DreamEngine") --initialize engine dream:init() --load our object local monkey = dream:loadObject("examples/monkey/object") monkey.meshes.Suzanne.material.color = {0.4, 0.15, 0.05, 1} --make a sun local sun = dream:newLi...
------------ -- Aliases -- ------------- local g = vim.g local map = vim.api.nvim_set_keymap -------------- -- Mappings -- -------------- g.mapleader = ';' -- Splits -- map('n','<Leader>v',':vsplit<CR>',{noremap = true, silent=true}) map('n','<Leader>s',':split<CR>',{noremap = true, silent=true}) -- Buffers -- ...
slot0 = class("StageProxy", import(".NetProxy")) slot0.STAGE_ADDED = "stage added" slot0.STAGE_UPDATED = "stage updated" slot0.RANDOM_STAGE_DELETE = "random stage deleted" slot0.RANDOM_STAGE_ADDED = "stage added" slot0.register = function (slot0) slot0:on(13001, function (slot0) slot0.data.satges = {} for slot4,...
storm_mobility = class({}) storm_ex_mobility = class({}) LinkLuaModifier("modifier_storm_mobility_thinker", "abilities/heroes/storm/storm_mobility/modifier_storm_mobility_thinker", LUA_MODIFIER_MOTION_BOTH) LinkLuaModifier("modifier_storm_ex_mobility_thinker", "abilities/heroes/storm/storm_mobility/modifier_storm_ex_m...
local tests = torch.TestSuite() function tests.TransferFunctionFactory_factorySoftSign() local name = "SoftSign" local factory = nnst.TransferFunctionFactory:getByName(name) tester:eq(factory:getName(), name) end function tests.TransferFunctionFactory_factoryReLU() local name = "ReLU" local factor...
local t = Def.ActorFrame{ OnCommand=function(self) SCREENMAN:ReloadOverlayScreens() end }; return t;
local KUI, E, L, V, P, G = unpack(select(2, ...)) local EFL = KUI:GetModule("EnhancedFriendsList") local COMP = KUI:GetModule("KuiCompatibility") --Cache global variables --WoW API / Variables --Global variables that we don't cache, list them here for the mikk's Find Globals script -- GLOBALS: AceGUIWidgetLSMlists, ...
--[[lit-meta name = "creationix/coro-http" version = "3.2.0" dependencies = { "creationix/coro-net@3.0.0", "luvit/http-codec@3.0.0" } homepage = "https://github.com/luvit/lit/blob/master/deps/coro-http.lua" description = "An coro style http(s) client and server helper." tags = {"coro", "http"} l...
local configuration = require("hs.network.configuration") local reachability = require("hs.network.reachability") local watchable = require"hs.watchable" local http = require("hs.http") local output = { external = "unknown", primary = { interface = "unknown", address = "0.0.0....
--[[ MTA Role Play (mta-rp.pl) Autorzy poniższego kodu: - Patryk Adamowicz <patrykadam.dev@gmail.com> Discord: PatrykAdam#1293 Link do githuba: https://github.com/PatrykAdam/mtarp --]] function getZoneID(id) for i, v in ipairs(getElementsByType( "colshape" )) do if getElementData(v, "isZone") ...
-- -- User: argyle -- Date: 2019_03/12 -- Time: 10:15 PM local modname, S = ... local bs = borders.settings local top_node_sheet = bs.bottom_node + bs.bottom_layer_thickness - 1 local top_node_alt = bs.bottom_node + bs.mantle_thickness - 1 local top_node_deepstone = bs.bottom_node + bs.deepstone_thickness - 1 local ...
-- This config configures spoons based on approach in -- https://github.com/zzamboni/dot-hammerspoon/blob/master/init.lua -- Initialize and configure installer spoon hs.loadSpoon("SpoonInstall") spoon.SpoonInstall.use_syncinstall = true -- Installed Spoons -- ================ -- Spoons don't have versions so I put d...
--GPU: Colors palettes. --luacheck: push ignore 211 local Config, GPU, yGPU, GPUKit, DevKit = ... --luacheck: pop local PaletteKit = GPUKit.Palette local SharedKit = GPUKit.Shared local RenderKit = GPUKit.Render local GifKit = GPUKit.Gif --==Kits Constants==-- local Verify = SharedKit.Verify --==Localized Lua Libr...
local handler = {} local mt = { __index = handler } function handler.new () return setmetatable ({}, mt) end function handler:init () end return handler
local shipAction = require( "src.objects.ship" ) local composer = require( "composer" ) local record = require( "src.model.record" ) local particleDesigner = require( "src.util.particleDesigner" ) local Event = {} function playExplosion( application, obj ) local explosionEmitter = particleDesigner.newEmitter( "ass...
-- centralized input dohikey -- berezaa -- TO ADD AN ACTION TO KEYBIND: -- network:invoke("addInputAction", UNIQUE_ACTION_NAME, FUNCTION_TO_CALL, DEFAULT_KEYBIND) -- Note: for DEFAULT_KEYBIND, use a shortcut from module.shortcuts, not the Enum.KeyCode.Name local USI = game:GetService("UserInputService") local RunSe...
-- increments the score of players that touch CoinTrigger instances, destroys those instances when touched. local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Workspace = game:GetService("Workspace") local lib = ReplicatedStorage:WaitForChild("lib") local co...
-------------------------------- -- @module EaseBounceInOut -- @extend ActionEase -- @parent_module cc ---@class cc.EaseBounceInOut:cc.ActionEase local EaseBounceInOut = {} cc.EaseBounceInOut = EaseBounceInOut -------------------------------- --- ---@param action cc.ActionInterval ---@return cc.EaseBounceInOut func...
c.position = {x = 0, y = 0} c.killable = {spawn_x = 0, spawn_y = 0, killed = false} c.direction = {1} c.size = {w = 0, h = 0} c.color = {0, 0, 0} c.sprite = {image = ""} c.input = { up = false, left = false, right = false, respawn = false } c.physics = { dx = 0, dy = 0, frc_x = 0.5, frc_...
#!/usr/bin/env luajit require 'ext' local env = setmetatable({}, {__index=_G}) if setfenv then setfenv(1, env) else _ENV = env end require 'symmath'.setup{env=env} local MathJax = symmath.export.MathJax symmath.tostring = MathJax local printbr = MathJax.print MathJax.header.title = 'hyperbolic gamma driver in ADM term...
checkLocation_isInHouse = function(player) if not players[player] then return false end local id = tonumber(players[player].houseData.houseid) local house = tonumber(players[player].place:sub(7)) if id == house then return true end return false end
-- Citizen.CreateThread(function() -- Citizen.Wait(20000) -- local resnamne = GetCurrentResourceName() -- local current_version = GetResourceMetadata(resnamne, 'version', 0) -- PerformHttpRequest('https://raw.githubusercontent.com/Luminous-Roleplay/versionsScripts/master/'..resnamne..'.txt',function(err...
require 'plug-config.gitsigns.settings'
--[[ ComponentLookup =============== The backbone of the ComponentDiscovery Script, which handles the actual discovery of Components. Usage ----- local lookup = ComponentLookup.new() lookup:Propagate(workspace) local warps = lookup:GetComponents("Warp") for _, warpModel in ipairs(warps) do ...
--[[ Copyright 2012 The lev Authors. All Rights Reserved. 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 agree...
local Notebook = require("sebaestschjin-tts.Notebook") local StringUtil = require("sebaestschjin-tts.StringUtil") local Task = require("gloomhaven-campaign-manager.Task") local Options = {} local OptionsNotebook = "Options" ---@type boolean Options.keepDiscardedItems = true ---@type boolean Options.loadExtendedBatt...
local fx = require("ingame/fx") local emerald_fx = derived_class(fx) local emerald_common = require("render/emerald_common") local visual = require("resources/visual_common") -- extra attributes: -- number int number of the represented emerald to color the fx -- note that you can still customize the animated s...
local math_utils = {} -- -- Rotate a point around (0,0) -- @param {number} x Point to rotate x -- @param {number} y Point to rotate y -- @param {number} angle -- @returns {number, number} Rotated point -- function math_utils.rotateO(x, y, angle) local x3 = x * math.cos(angle) - y * math.sin(angle) local y3 = x...
local state = require'completion.state' local util = {} function util.checkTriggerCharacter(line_to_cursor) for _, ch in ipairs(state.triggerCharacters) do local current_char = string.sub(line_to_cursor, #line_to_cursor - #ch + 1, #line_to_cursor) if current_char == ch then return true end end return false en...
local GMSettingView = BaseClass(UINode) local ConfigGame = CS.UnityMMO.ConfigGame function GMSettingView:Constructor( ) self.viewCfg = { prefabPath = "Assets/AssetBundleRes/ui/gm/GMSettingView.prefab", canvasName = "Normal", isShowBackground = true, } self.model = GMModel:GetInstance() end function GMSetting...
object_tangible_loot_creature_loot_collections_space_reactor_mark_03_cygnus = object_tangible_loot_creature_loot_collections_space_shared_reactor_mark_03_cygnus:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_space_reactor_mark_03_cygnus, "object/tangible/loot/creature/loot/collecti...
local Packages = script.Parent.Parent.Parent.Parent.Parent local Roact = require(Packages.Roact) local App = Packages.UIBlox.App local Images = require(App.ImageSet.Images) local Core = Packages.UIBlox.Core local GenericButton = require(Core.Button.GenericButton) local withStyle = require(Core.Style.withStyle) local...
Isotropic = {} function Isotropic.new(obj) assert(obj.albedo ~= nil) setmetatable(obj, Isotropic) return obj end function Isotropic:__tostring() return string.format('Isotropic ( albedo: %s )', self.albedo) end
local mod = mod_loader.mods[modApi.currentMod] local path = mod.scriptPath .."multishot/" local imagepath = "combat/icons/".. mod.id .."_multishot/" local armorDetection = require(path .."libs/armorDetection") local highestMark = require(path .."init").highestMark local this = {} local function getPrefix(loc) local...