content
stringlengths
5
1.05M
----Duel Arena-------------------------------------------------OF SOULSSS--xS productions----------------- me = game.Players.xSoulStealerx mainpos = Vector3.new(200,0,30) function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form) part.Parent = parent part.formFactor = form part.CanCollide = collid...
-------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("High Botanist Freywinn", 553, 559) if not mod then return end mod:RegisterEnableMob(17975) mod.engageId = 1926 -- mod.respawnTime = 0 -- resets, doesn't respawn ------------------...
local ColliderGroup, super = Class(Collider) function ColliderGroup:init(parent, colliders, mode) super:init(self, parent, 0, 0, mode) self.colliders = colliders or {} for _,collider in ipairs(self.colliders) do collider.parent = collider.parent or self.parent end end function ColliderGroup:a...
local helpers = require "spec.helpers" local PLUGIN_NAME = "olaplugin" for _, strategy in helpers.each_strategy() do describe(PLUGIN_NAME .. ": (access) [#" .. strategy .. "]", function() local client lazy_setup(function() local bp = helpers.get_db_utils(strategy, nil, { PLUGIN_NAME }) -- I...
--サイバネット・バックドア --Cybnet Backdoor --Scripted by Eerie Code function c43839002.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_REMOVE+CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCou...
-- package.path = "../?.lua;" .. package.path require 'busted.runner'() require 'init' -- describe('Lang Functions', function() describe('_:is_(var)', function() it('should return true if `var` is native Lander property, otherwise false', function() assert.are.equals(_:is_(123), false) ...
local lgi = require 'lgi' local Gtk = lgi.Gtk local Gio = lgi.Gio local Gdk = lgi.Gdk local GLib = lgi.GLib local app = Gtk.Application { application_id = 'org.lgi.notifications' } function rgb_to_hex(rgb) return string.format("#%02x%02x%02x",math.floor(rgb.red*255),math.floor(rgb.green*255),math.floor(rgb.blue*255...
local restMoney = {} local restXp = {} addEvent("dpDriftPoints.earnedPoints", true) addEventHandler("dpDriftPoints.earnedPoints", resourceRoot, function (points) local driftMoney = exports.dpShared:getEconomicsProperty("drift_money") or 0 local driftXP = exports.dpShared:getEconomicsProperty("drift_xp") or 0 lo...
--[[ Copyright 2020 Manticore Games, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
local brute = require "brute" local creds = require "creds" local match = require "match" local nmap = require "nmap" local shortport = require "shortport" description=[[ Performs brute force password auditing against a Nessus vulnerability scanning daemon using the NTP 1.2 protocol. ]] --- -- @usage -- nmap --script...
local KUI, E, L, V, P, G = unpack(select(2, ...)) local S = E:GetModule("Skins") --Cache global variables --Lua functions local _G = _G --WoW API / Variables --Global variables that we don't cache, list them here for mikk's FindGlobals script -- GLOBALS: local function styleVoidstorage() if E.private.skins.blizzard...
local theme={colors={normal={blue={0.27843137254902,0.97647058823529,0.96078431372549,1},green={0.97254901960784,0.0,0.34901960784314,1},cyan={0.76470588235294,0.21176470588235,0.47058823529412,1},white={0.35294117647059,0.28627450980392,0.43137254901961,1},red={0.15294117647059,0.85098039215686,0.83529411764706,1},mag...
-- -- Copyright (c) 2016, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- -- extracts fea...
-- BASIC PACKAGE local fock_driver = require"iota.fock.driver" -- NUMBER OF SITES AND PARTICLES local NSITES = 7 local NFERMIONS = math.floor(NSITES/2) -- CREATE TUPLE WITH THAT IDENTIFY FOCK SPACE local tuple = true do -- SIMPLE SEQUENCE THAT ENUMERATES THE FERMIONIC CREATION DEGREES, IN THIS CASE, ONE PER SITE ...
List = {} local List = List function List.New() return {first = 0, last = -1} end function List.Size(list) if list.first > list.last then return 0 else return list.last + 1 - list.first end end function List.Empty(list) return list.first > list.last end function List.Get(list, index) local index = list.fir...
local iterator -- to be defined later function allwords() --使用table实现不如闭包的性能 local state = {line = io.read(), pos = 1} return iterator, state end function iterator (state) while state.line do -- repeat while there are lines -- search for next word local s, e = string.find(state.line, "%w+", state.pos) if s...
local gui = require("__flib__.gui-beta") local constants = require("constants") local shared = require("scripts.shared") local settings_page = {} function settings_page.build(settings) local output = {} -- generic - auto-generated from constants for category_name, elements in pairs(constants.settings) do ...
local SocialResponseBuilder = {} local App42ResponseBuilder = require("App42-Lua-API.App42ResponseBuilder") local Social = require("App42-Lua-API.Social") local Friends = require("App42-Lua-API.Friends") local FacebookProfile = require("App42-Lua-API.FacebookProfile") local PublicProfile = require("App42-Lua-API.Public...
--[[ Project: SA-MP API Author: LUCHARE All structures are taken from mod_s0beit_sa. Copyright: BlastHack mod_sa is available from https://github.com/BlastHackNet/mod_s0beit_sa/ ]] local sys = require 'SA-MP API.kernel' sys.safely_include 'SA-MP API.samp.0_3_7-R3.stServerPresets' sys.safely_include 'SA-MP AP...
function gadget:GetInfo() return { name = "Mex Upgrader Gadget", desc = "Upgrades mexes.", author = "author: BigHead, modified by DeadnightWarrior", date = "September 13, 2007", license = "GNU GPL, v2 or later", layer = 100, enabled = true -- loaded...
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' --[[ do not change anything in here you idiot! what do u want here go start you fucking script and enter your server you idiot! --]] client_script 'SDP info-c.lua'
--[[ Name: Hive -> Turtle Automation System Type: Server Author: DannySMc Platform: Lua Virtual Machine CCType: Advanced Computer Dependencies: Wireless Modem, HTTP Enabled. Shared Database Store: + hive -> list = Will list all jobs saved to the job store. + hive -> download = Will download a job and save it...
--this = SceneNode() PathModel = {} function PathModel.new(inParentNode, inColor) --inParentNode = SceneNode() local self = {} local mesh = NodeMesh() local color = inColor local s = 2 local w = 0.1 local boxSize = Vec3() local boxWidth = 0 function self.setVisible(visible) mesh:setVisible(v...
SILE.hyphenator.languages["bg"] = {} SILE.hyphenator.languages["bg"].patterns = { "1а1", "1б1", "1в1", "1г1", "1д1", "1е1", "1ж1", "1з1", "1и1", "1й1", "1к1", "1л1", "1м1", "1н1", "1о1", "1п1", "1р1", "1с1", "1т1", "1у1", "1ф1", "1х1", "1ц1", "1ч1", "1ш1", "1щ1", "1ъ1", "0ь0", "1ю1", "1я1", "б4а б4е б4и б4о б4у б4ъ ...
--[[buttonData = { type = "button", name = "My Button", -- string id or function returning a string func = function() end, tooltip = "Button's tooltip text.", -- string id or function returning a string (optional) width = "full", -- or "half" (optional) disabled = function() return db.someBoolea...
require("moonsc").import_tags() -- Test that eventless transitions take precedence over event-driven ones return _scxml{ initial="s1", _state{ id="s1", _onentry{ _raise{ event="internalEvent" }, _send{ event="externalEvent" }, }, _transition{ event="*", target="fail" }, _t...
--[[----------------------------------------------------------------------------------------------------------------------- Display all chat commands -----------------------------------------------------------------------------------------------------------------------]]-- local PLUGIN = {} PLUGIN.Title = "Chatcomman...
local skynet = require "skynet" local netpack = require "netpack" local socket = require "socket" local protobufload = require "protobufload" local logstat = require "base.logstat" local p_core=require "p.core" local player = require "npc.player" local define_battle = require "define.define_battle" local battle...
-------------------------------------------------------------------------- -- This is a derived class from MF_Base. This classes knows how -- to expand the environment variables into Lua syntax. -- @classmod MF_Lua require("strict") -------------------------------------------------------------------------- -- Lmod L...
/*--------------------------------------------------------- Initializes the effect. The data is a table of data which was passed from the server. ---------------------------------------------------------*/ function EFFECT:Init( data ) local Gun = data:GetEntity() local Propellant = data:GetSca...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local lib = ReplicatedStorage.lib local component = script.Parent local view = component.view local Roact = require(lib.Roact) local App = Roact.Component:extend("App") local Inventory = require(view.Inventory) local Crafting = require(view.Crafting) lo...
local keyTable = { INPUT_KEY_UNKNOWN = -1, INPUT_KEY_SPACE = 32, INPUT_KEY_APOSTROPHE = 39, INPUT_KEY_COMMA = 44, INPUT_KEY_MINUS = 45, INPUT_KEY_PERIOD = 46, INPUT_KEY_SLASH = 47, INPUT_KEY_0 = 48, INPUT_KEY_1 = 49, INPUT_KEY_2 = 50, INPUT_KEY_3 = 51, INPUT_KEY_4 = 52, ...
--- 属性系统,事件密切的功能扩展支持的事件 hattribute.xtrasSupportEvents = { CONST_EVENT.attack, CONST_EVENT.beAttack, CONST_EVENT.skill, CONST_EVENT.beSkill, CONST_EVENT.item, CONST_EVENT.beItem, CONST_EVENT.damage, CONST_EVENT.beDamage, CONST_EVENT.attackDetect, CONST_EVENT.attackGetTarget, CONST_EVENT.beAttackReady...
function onStart() logInfo("Lua onStart called!") logInfo("Latency: "..tostring(gameGetLatency())) logInfo("Is multiplayer: "..tostring(gameIsMultiplayer())) end function onEnd(argIsWinner) end function onFrame() if(gameGetFrameCount()%1000==0)then logInfo("Frame count:"..tostring(gameGetFrameC...
local Sing_bar = {} local x = 0 local total_lenght = 0 local animate_time = 0.2 local proofread_list = { [1] = {total_lenght = 185 , x = -0.75 }, [2] = {total_lenght = 83 , x = -1.125 }, } function Sing_bar:CleanObjs() for i = 1, self.total_count, 1 do UnityEngine.GameObject.Destroy(self["bar_"....
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local st, jid = require "util.stanza", require "util.jid"; local hosts = prosody.hosts; local is_admin = ...
local make_map = require 'common.make_map' local pickups = require 'common.pickups' local api = {} function api:start(episode, seed) make_map.seedRng(seed) api._count = 0 end function api:commandLine(oldCommandLine) return make_map.commandLine(oldCommandLine) end function api:createPickup(className) return p...
if a then print("separate") if x == y then -- empty end end
SanieUI.lib = {} -- Create, colorize, and return a money string. SanieUI.lib.ColorMoney = function(coppers) local gold = floor(coppers / 10000) local remaining = coppers % 10000 local silver = floor(remaining / 100) remaining = coppers % 100 local cop = remaining local moneyString = "" if(gold > 0) then ...
local ObjBaseUnit = require "objects.ObjBaseUnit" local Inventory = require "xl.Inventory" -- local Sound = require "xl.Sound" local ObjChar = Class.create("ObjChar", ObjBaseUnit) --util.transient( ObjChar, "healthbar", "guardbar" , "equipIcons" , "equipIcon2" , "sprite") -- Initializes values of ObjChar, only runs o...
local model_factories = {} TEST_INTERVAL = '1 hour' -- quorum_num / 100 function model_factories.build_policy(index, name, quorum_num) p = Policy:new() p.index = index p.name = name p.initiative_quorum_den = 100 p.initiative_quorum_num = quorum_num p.issue_quorum_den = 100 p.issue_quorum_num = quorum_n...
local SPUtil = require(game.ReplicatedStorage.Shared.SPUtil) local SPDict = require(game.ReplicatedStorage.Shared.SPDict) local SPList = require(game.ReplicatedStorage.Shared.SPList) local SPUISystem = require(game.ReplicatedStorage.Shared.SPUISystem) local MenuBase = require(game.ReplicatedStorage.Menu.MenuBase) local...
-- Generated by CSharp.lua Compiler local System = System local SlipeClientGui local SlipeMtaDefinitions local SlipeSharedElements local SystemNumerics System.import(function (out) SlipeClientGui = Slipe.Client.Gui SlipeMtaDefinitions = Slipe.MtaDefinitions SlipeSharedElements = Slipe.Shared.Elements SystemNume...
vim.api.nvim_create_autocmd({ "BufEnter" }, { pattern = { "*" }, nested = true, callback = function() -- if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif, print("test") end }) -- vim.api.nvim_create_autocmd({"TextYankPost"}, { -- callback = function() vi...
local spawn1 = false -- Variable pour vérifier si déjà spawn AddEventHandler("playerSpawned", function () -- Attendre que le joueur spawn if not spawn1 then ShutdownLoadingScreenNui() -- Fermer la ressource d'écran de chargement spawn1 = true end end)
--=========== Copyright © 2020, Planimeter, All rights reserved. ===========-- -- -- Purpose: -- --==========================================================================-- local ffi = require( "ffi" ) io.input( framework.execdir .. "include/opus.h" ) ffi.cdef( io.read( "*all" ) ) return ffi.load( "opus" )
-- -- Auctionator.Search.Categories is an empty table on load, need to populate -- with the possible categories -- -- Here's what one entry looks like: -- { -- classID = integer (corresponding to ITEM_CLASS_IDS ) -- name = string (resolved by GetItemClassInfo( classID )) -- category = table ...
local class = require 'middleclass' local cjson = require 'cjson.safe' local logger = require 'hj212.logger' local types = require 'hj212.types' local param_tag = require 'hj212.params.tag' local calc_mgr_m = require 'hj212.calc.manager' local poll_info = require 'hj212.client.info' local poll = class('hj212.client.po...
server_scripts 'server.lua' client_script 'call.lua'
require('..') local tensor = torch.rand(8, 2) local indices = {dmn.constants.TRAIN_INDEX, dmn.constants.TRAIN_INDEX, dmn.constants.VAL_INDEX, dmn.constants.TEST_INDEX, dmn.constants.TEST_INDEX, dmn.constants.TRAIN_INDEX, dmn.constants.VAL_INDEX, dmn.constants.TEST_INDEX} local train_tensor, val_tensor, test_tenso...
local Settings = require "Settings" local class = {} local keyMusicVolume = "com.cronlygames.music.volume" local keySoundVolume = "com.cronlygames.sound.volume" local loadAllSounds = function() class.curEffectVolume = -1 end class.loadAllSounds = loadAllSounds local playEffect = function(key) if not Setting...
-- Petit script pour configurer le client WIFI du NodeMCU function wifi_cli_conf() print("\n wifi_cli_conf.lua zf190726.1912 \n") -- les secrets sont maintenant initialisés par boot.lua ! wifi.sta.config{ssid=cli_ssid, pwd=cli_pwd, save=true} end wifi_cli_conf() wifi_cli_conf=nil
--- @module NpcEnemyMgr 服务端敌人NPC管理模块 --- @copyright Lilith Games, Avatar Team --- @author Sharif Ma local NpcEnemyMgr, this = ModuleUtil.New('NpcEnemyMgr', ServerBase) --- 初始化 function NpcEnemyMgr:Init() self.npcList = {} self.npcFolder = world.Npc or world:CreateObject('FolderObject', 'Npc', world) self.t...
return { _VERSION = 'v1.0.0', _DESCRIPTION = 'A Lua library that tries to fill the gaps', _URL = 'https://github.com/roobie/lute', _LICENSE = [[ Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS ...
require "scripts.core.ability" require "gamemode.Spark.modifiers.modifier_arcane"; local arcane_rune = class(Ability) function arcane_rune:OnCreated () self:RegisterVariable("max_range", 0.5) self:RegisterVariable("cast_time", 0.1) self:RegisterVariable("cast_point", 0.0) self:SetCastingBehavior(CastingBehavior...
return { { effect_list = { { type = "BattleSkillFire", casterAniEffect = "", target_choise = "TargetNil", targetAniEffect = "", arg_list = { weapon_id = 65721 } }, { type = "BattleSkillFire", casterAniEffect = "", target_choise = "TargetNil", targetAniEffect = ""...
require("lualib_bundle"); __TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["4"] = 1,["5"] = 1,["6"] = 3,["7"] = 3,["8"] = 3,["9"] = 3,["11"] = 3,["12"] = 4,["13"] = 5,["14"] = 4,["15"] = 3,["16"] = 3}); local ____exports = {} local ____YieldType = require("Lilac.Scheduling.YieldType") local YieldType = ____YieldT...
function element_2(shader, t_base, t_second, t_detail) shader:begin("null", "vignette") :fog (false) :zb (false, false) shader:sampler ("s_image") :texture("$user$albedo") :clamp() :f_none() end --// Chromatic Aberration function element_0(shader, t_base, t_second, t_detail) shader:begin("null", "chromatic_...
--SYMBOLS local ft = ".dat" --type of file to write local eq = " = " -- how equals is represented in-file local nl = "\r\n" --newline symbol local td = "@@" --table reference symbol local gd = "##" --grid reference symbol local gv = "," --grid value divider function sset(line, target, value) if type(target) ==...
function Header(el) local id = el.identifier if id == '' then return el end local link = pandoc.Link('', '#'..id, '', {['class'] = 'anchor icon-link', ['aria-hidden'] = 'true'}) el.content:insert(link) el.attributes['onclick'] = '' return el end
--- --- object.lua --- --- Copyright (C) 2018 Xrysnow. All rights reserved. --- --region 对象控制函数 ---获取对象池中对象个数。 ---@return number function GetnObj() end ---更新对象池。此时将所有对象排序并归类。 ---排序规则:uid越小越靠前 --- 细节 --->luaSTG+中该函数不再起任何作用,对象表总是保持有序的。 function UpdateObjList() end ---更新对象列表中所有对象,并更新属性。 ---禁止在协程上调用该方法。 --- 细节 --->按照...
-- Faxanadu (U) (PRG0) [!].nes -- Faxanadu (U) (PRG1) [!].nes -- Written by sleepy - Shawn M. Crawford -- 6 January 2014 -- Displays Player Coordinates, HP, and Sprite HP stats on screen. The -- HP stats are displayed in the upper left. local function text(x,y,str) --NES Resolution 256x240 if (x >= 0 and ...
PrefabFiles = { "xenoth", "xenoth_none", } Assets = { Asset( "IMAGE", "images/saveslot_portraits/xenoth.tex" ), Asset( "ATLAS", "images/saveslot_portraits/xenoth.xml" ), Asset( "IMAGE", "images/selectscreen_portraits/xenoth.tex" ), Asset( "ATLAS", "images/selectscreen_portraits/xenoth.xml" ), A...
local oo = require 'lualib.oo' local bigint = require 'lualib.bigint' local RSA = oo.class() function RSA:_init(opts) -- public key is (e, n), required for encrypting messages: self.e = opts.e or bigint.new(65537) self.n = opts.n -- private key component d: self.d = opts.d -- p&q (the prime factors of n...
RandomMerchantNpc = { click = async(function(player, npc) local t = { graphic = convertGraphic(npc.look, "monster"), color = npc.lookColor } player.npcGraphic = t.graphic player.npcColor = t.color player.dialogType = 0 player.lastClick = npc.ID local choices = {"Follow him", "Attack him", "Ignore ...
return {'akyol'}
local f = function() end local function f2() -- body end local function f3() -- body end local function f4() local t = 13 end local function f5() f4(function() local d = 13 end) end
ITEM.name = "9x18mm +P" ITEM.model = "models/lostsignalproject/items/ammo/9x18.mdl" ITEM.ammo = "9x18MM -HP-" // type of the ammo ITEM.ammoAmount = 60 // amount of the ammo ITEM.description = "" ITEM.quantdesc = "A box that contains %s rounds of Hollow-Point 9x18mm ammo. " ITEM.longdesc = "This repurposed 9x18mm round...
local oc = oc or function(...) return ... end function weld(p0,p1,c0,c1,par) local w = Instance.new("Weld",p0 or par) w.Part0 = p0 w.Part1 = p1 w.C0 = c0 or CFrame.new() w.C1 = c1 or CFrame.new() return w end function lerp(a, b, t) return a + (b - a)*t end do local function QuaternionFromCFrame(cf) local mx...
dofile(yatm_foundry.modpath .. "/tests/blasting_registry_test.lua") dofile(yatm_foundry.modpath .. "/tests/kiln_registry_test.lua") dofile(yatm_foundry.modpath .. "/tests/molding_registry_test.lua") dofile(yatm_foundry.modpath .. "/tests/smelting_registry_test.lua")
-- -- Author: zhong -- Date: 2016-11-21 18:39:13 -- --设置界面 local ExternalFun = require(appdf.EXTERNAL_SRC .. "ExternalFun") local SettingLayer = class("SettingLayer", cc.Layer) SettingLayer.BT_EFFECT = 1 SettingLayer.BT_MUSIC = 2 SettingLayer.BT_CLOSE = 3 --构造 function SettingLayer:ctor( ) --注册触摸事件 ExternalFu...
-- local __arg = {...} local function convert_val(v) local vtype = type(v) if vtype == "nil" then return "nil" elseif vtype == "string" then return '"'.. v .. '"' elseif vtype == "number" or vtype == "boolean" then return tostring(v) else assert(false, "not support value ...
local libs = (shell.getRunningProgram()):sub(5, -1)
if Config.debug then potentialStops = {} RegisterCommand('findStops', function(source, args, rawCommand) for o in ObjectIterator(ObjectFilter.model(BusStop.Models)) do local hash = sha1.hex(tostring(identifingCoordinate)) local model = GetEntityModel(o) local c...
return require('jwt_ABAC_Authorizer')
object_tangible_storyteller_prop_pr_antenna = object_tangible_storyteller_prop_shared_pr_antenna:new { } ObjectTemplates:addTemplate(object_tangible_storyteller_prop_pr_antenna, "object/tangible/storyteller/prop/pr_antenna.iff")
SkillTree = Object:extend() function SkillTree:new() self.timer = Timer() self.font = fonts.m5x7_16 self.main_canvas = love.graphics.newCanvas(gw, gh) self.nodes = {} self.lines = {} -- Bi-directional links self.tree = table.copy(tree) for id, node in ipairs(self.tree) do for...
local Draw = require("api.Draw") local Color = require("mod.extlibs.api.Color") local UiMouseMenu = require("mod.mouse_ui.api.gui.UiMouseMenu") local IUiMouseButton = require("mod.mouse_ui.api.gui.IUiMouseButton") local UiShadowedText = require("api.gui.UiShadowedText") local UiTheme = require("api.gui.UiTheme") local...
#! /usr/bin/lua require( "common" ) require( "lfs" ) require( "imlib2" ) local Dir = "icons" local OutputDir = "../img/icons" local IgnoredFiles = { "^%.%.$", "^%.$", } local RareDirs = { "equipment", } local NamedDirs = { "items", } local NoSuffixDirs = { "equipment", } -- these are done by eye. I don't r...
if arg[#arg] == "vsc_debug" then require("lldebugger").start() end require 'Engine.Engine' require 'Love2d.LoveGraphics' require 'Love2d.LoveAudio' require 'Love2d.LoveInput' UpdateFunction = nil function love.load() LoveGraphics.SetupWindow() Engine.Start() UpdateFunction = Engine.EngineUpdate end ...
local path = "src/weapons/" local gun = require(path .. "gun") return { gun = gun }
function init() robot.wheels.set_velocity(5,5) end function step() end function reset() end function destroy() end
--[[ TheNexusAvenger Unit tests for the TextButtonFactory class. --]] local NexusUnitTesting = require("NexusUnitTesting") local NexusButton = game:GetService("ReplicatedStorage"):WaitForChild("NexusButton") local Factory = NexusButton:WaitForChild("Factory") local TextButtonFactory = require(Factory:WaitForChild("...
--------------------------------------------------------------------------------------------------- ---menu_manager.lua ---author: Karl ---date: 2021.3.4 ---desc: MenuManager manages all menu pages in a menu scene. The class attempts to implement a menu --- that has the following features: --- --- 1. Each menu ...
-- Sine wave. local SoundUnit = require((...):gsub('[^.]*$', '') .. 'soundunit') local function process (t, v) return math.sin(v * math.pi) end return function (t) t = SoundUnit(t) t.process = process return t end
--- Watch paths recursively for changes --- @class PathwatcherInstance local PathwatcherInstance --- starts a path watcher --- --- @return PathwatcherInstance function PathwatcherInstance:start()end --- stops a path watcher --- function PathwatcherInstance:stop()end
-- Tests for complicated + argument to :edit command local helpers = require('test.functional.helpers')(after_each) local clear, insert = helpers.clear, helpers.insert local command, expect = helpers.command, helpers.expect local wait = helpers.wait describe(':edit', function() setup(clear) it('is working', func...
--------------------------------------------------------------------------------------------------- -- func: addallmounts -- desc: Adds all mount key items to player, granting access to their associated mounts --------------------------------------------------------------------------------------------------- require("...
return {'xie'}
--- @module navbar.generic local gen = {} ------------------------------------------------------------------------------- -- Helper Functions ------------------------------------------------------------------------------- --- Escape all punctuations contained in string. -- @treturn string The escaped string functio...
#!/usr/bin/env lua --------- -- LuaSrcDiet -- -- Compresses Lua source code by removing unnecessary characters. -- For Lua 5.1+ source code. -- -- **Notes:** -- -- * Remember to update version and date information below (MSG_TITLE). -- * TODO: passing data tables around is a horrific mess. -- * TODO: to implement pcall...
function extraNumber(a, b, c) if a == b then return c end if a == c then return b end return a end
-- ByCat#7797 -- Fixed local i_primary = ui.add_combo_box("Primary", "i_primary", { "off", "Auto", "Scout", "AWP" }, 0) local i_secondary = ui.add_combo_box("Secondary", "i_secondary", { "off", "Deagle/R8", "Duals" }, 0) local buy_Other = ui.add_check_box("Other (Nade, Taser)", "buy_Other", true) local function buy_...
-- Setting player inventory local function main(e) local player = game.players[e.player_index] if not player.get_main_inventory() then return end -- Main inventory player.insert{name="construction-robot", count = 50} player.insert{name = "fusion-reactor-equipment", count = 2} player.insert{name = "pers...
-- There should be only one instance of this code -- running for a given lua state --[[ Queue --]] local Queue = {} setmetatable(Queue, { __call = function(self, ...) return self:create(...); end, }); local Queue_mt = { __index = Queue; } function Queue.init(self, first, last, name) first = first or 1; la...
// This is mainly for the benefit of Lua programmers, developers, and beta testers. SWEP_BASES = true SWEP_BASES_VERSION = 323 SWEP_BASES_AUTHOR = "Andrew McWatters" include( "sb_lua_functions.lua" ) for k, v in pairs( file.Find( "autorun/sb_*.lua", "LUA" ) ) do AddCSLuaFile( v ) end
--[[ Guide to LoveUI.Textfield. Properties: --Property --[Example Values] description tabAccessible [true/false] whether can select textfield with tab. default true. hidden [true/false] set false to hide and disable textfield. default false. enabled [true/false] set false to disable editting. default true....
require 'cutorch' require 'libcuorn' require 'cunn' require 'orn'
local gems = require "columns.gems" local boards = require "columns.boards" context("Gem", function() context("combinations", function() before(function() board = boards({ w = 2, h = 1 }) hole = gems.hole() wild = gems.wild() fixed = gems.fixed() obstacle = gems.obstacle() ge...
local function CreditsText( pn ) function update(self) local str = ScreenSystemLayerHelpers.GetCreditsMessage(pn); self:settext(str); end function UpdateVisible(self) local screen = SCREENMAN:GetTopScreen(); local bShow = true; if screen then local sClass = screen:GetName(); bShow = THEME:GetMetric(...