content
stringlengths
5
1.05M
-- サウンドプレイヤーモジュール local SoundPlayer = {} -- 初期化 function SoundPlayer:initializeSoundPlayer(sounds) -- プライベート self._soundPlayer = {} -- サウンドリスト self._soundPlayer.sounds = sounds end -- サウンドの取得 function SoundPlayer:getSound(name) return self._soundPlayer.sounds ~= nil and self._soundPlayer.sounds[...
ENT.Type = "anim" ENT.PrintName = "Autodrive coil" ENT.Category = "Metrostroi (utility)" ENT.Spawnable = false ENT.AdminSpawnable = false ENT.RenderGroup = RENDERGROUP_BOTH ENT.ValidModels = { "models/metrostroi_train/81-717/rfid_reader.mdl", "models/metrostroi_train/81-717/dkp_reader.mdl...
ScheduleLayer = Layer:extend() function ScheduleLayer:new(calendar, currency) ScheduleLayer.super.new(self) self.layer_name = "ScheduleLayer" self.calendar = calendar self.currency = currency self.current_week = 1 self.propagate_input_to_underlying = false self.box_patch = patchy.load("gfx/...
SCONFIG = L2TConfig.GetConfig(); SCONFIG_FILE = GetDir() .. '\\scripts\\girgk.l2b'; L2TConfig.SaveConfig(SCONFIG_FILE); moveDistance = 30; MoveTo(82853, 149250, -3464, moveDistance); MoveTo(83146, 148923, -3440, moveDistance); MoveTo(83275, 148875, -3400, moveDistance); MoveTo(83319, 148819, -3400, moveDistance); Move...
return {'ttje','ttjes'}
-- mod-version:2 -- lite-xl 2.0 local core = require "core" local config = require "core.config" local style = require "core.style" local DocView = require "core.docview" config.plugins.smoothcaret = { rate = 0.65 } local docview_update = DocView.update function DocView:update() docview_update(self) local minlin...
local _M = {} local boyaaPath = "packages.boyaa" _M.mvc = { BoyaaCtr = require(boyaaPath..".mvc.BoyaaCtr"), BoyaaView = require(boyaaPath..".mvc.BoyaaView"), BoyaaLayout = require(boyaaPath..".mvc.BoyaaLayout"), BoyaaWidgetExtend = require(boyaaPath..".mvc.BoyaaWidgetExtend"), } _M.mvp = { BoyaaLayoutWidget = ...
local export = {} local gsub = mw.ustring.gsub function export.trwo(text, lang, sc, options) if (sc == 'Brah') then text = require('Brah-translit').tr(text, lang, sc) elseif (sc == 'Deva') then text = require('sa-translit').tr(text, lang, sc) elseif (sc == 'Sinh') then text = require('si-translit').tr(text, l...
--[[ more like an extension of the highscore class...ish now. format: ghostTable = { [SimfileSHA1] = { [ghostTableSHA1] = { judgmentData = string, judgmentHash = string, timingDifficulty = number, lifeDifficulty = number, offsetMean = number, offsetStdDev = number } } } --]] local defaultScore...
BCH = {0x12,0x9,0x16,0xB,0x17,0x19,0x1E,0xF,0x15,0x18,0xC,0x6,0x3, 0x13,0x1B,0x1F,0x1D,0x1C,0xE,0x7,0x11,0x1A,0xD,0x14,0xA,0x5} -- declare our protocol local conitel_proto = Proto("conitel","Conitel Protocol") local f = conitel_proto.fields -- Need to use ProtoFields for the Station, MtoS, Function and Data so...
-- -- Inventory Class -------------------------------------------------------------------------------- -- Imports -------------------------------------------------------------------------------- local Gamestate = requireLibrary("hump.gamestate") local Class = requireLibrary("hump.class") ----------------...
-- This is where your custom modules and plugins go. -- See the wiki for a guide on how to extend NvChad local hooks = require "core.hooks" -- NOTE: To use this, make a copy with `cp example_init.lua init.lua` -------------------------------------------------------------------- -- To modify packaged plugin configs,...
getglobal game getfield -1 ReplicatedStorage getfield -1 GPEnable getfield -1 FireServer pushvalue -2 pushstring STANDNAME pcall 2 1 0
newFile() local args = readStdin() print( encodeJSON( Meshes.import( args ) ) )
--[[ Module: Class Contains methods to convert a module into a proper class. A proper class contains the following properties: - (function?) .constructor: A method used after the creation of the object to finalize its creation. Example: function SomeClass.constructor (newObject) asser...
--[[ Helpers for various other parts of libmthelpers for randomness. ]] -- ffs, seeding, why... math.randomseed(os.time()) -- generate base64 random strings (doesn't handle padding). local base64_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" .. "abcdefghijklmnopqrstuvwxyz" .. "0123456789+/" local i = {} -- impure partial ...
return { small_building = { areaofeffect = 240, craterboost = 0, cratermult = 0, explosiongenerator = "custom:FLASHSMALLBUILDING", impulseboost = 0.123, impulsefactor = 0.123, name = "Smallbuilding", range = 480, reloadtime = 3.6, soundhit = "xplosml3", soundstart = "largegun", turret = 1, we...
--[[ module: IContext author: DylanYang time: 2021-02-23 14:23:03 idea: advance: ]] local _M = Class("IContext") _M.abstract = true local public = _M.public function public:SetClock(hour) -- 设置时间 end function public:ChangeState(state) -- 改变状态 end function public:CallSe...
RegisterCommand("corner", function(source, args) TriggerClientEvent('drugs:corner', source) end)
local opt = vim.opt local function get_item() local km = opt.iminsert if km:get() == 1 then return "RU" end return "EN" end return { get_item = get_item, }
function UIListView() local self = {} local private = { type = "UIListView", id = UIFramework.getNewID(), title = nil, content = nil, icon = nil, timeout = nil, template = [[ <div id="<%- id %>" class="ui-framework-parent listview " style="padd...
local format = string.format core.register_craftitem(core.get_current_modname() .. ":unknown_node", { description = "Unknown Node Spawner", inventory_image = core.inventorycube("unknown_node.png"), node_placement_prediction = "unknown", on_place = function(itemstack, placer, pointed_thing) itemstack:peek_item() ...
local http = require "http" local nmap = require "nmap" local shortport = require "shortport" local strbuf = require "strbuf" description = [[ Checks for SCADA Siemens <code>S7 Communications Processor </code> devices. The higher the verbosity or debug level, the more disallowed entries are shown. ]] --- --@output ...
local ObjectManager = require("managers.object.object_manager") EchoTurretsScreenPlay = ScreenPlay:new { numberOfActs = 1, screenplayName = "EchoTurretsScreenPlay", ebTurrets = { { "object/installation/turret/turret_dish_large.iff", -5067.6, 100.4, 5676.0 }, { "object/installation/turret/turret_dish_large.iff...
object_tangible_wearables_base_base_cybernetic_hand_l = object_tangible_wearables_base_shared_base_cybernetic_hand_l:new { } ObjectTemplates:addTemplate(object_tangible_wearables_base_base_cybernetic_hand_l, "object/tangible/wearables/base/base_cybernetic_hand_l.iff")
--[[ Write a summation function, in C, that computes the sum of its variable number of numeric arguments: print(summation()) --> 0 print(summation(2.3, 5.4)) --> 7.7 print(summation(2.3, 5.4, -34)) --> -26.3 print(summation(2.3, 5.4, {})) --> stdin:1: bad argument #3 to 'summation' (number expected, got table) ]] sum...
spam = {} addEvent("finishCase", true) addEventHandler("finishCase", root, function () if isTimer(spam[source]) then return false end spam[source] = setTimer(function() end,5000,1) local rank = getElementData(source,"Rank") if rank == "Commander" then money = 10000 elseif rank == "Captain" then money = 8000 ...
require "srnn" function test(bsize, isize, osize, nlayer, nstep, rs, tsfm) local id={} local gd={} for _ = 1, nstep do table.insert(id, torch.randn(bsize, isize)) table.insert(gd, torch.randn(bsize, osize)) end local tmod_core=srnn.StepRNN(isize, osize, nlayer) local tmod=srnn.Sequencer(tmod_core, osize, nil...
help([[GNU `gettext' is an important step for the GNU Translation Project, as it is an asset on which we may build many other steps. This package offers to programmers, translators, and even users, a well integrated set of tools and documentation - Homepage: http://www.gnu.org/software/gettext/]]) whatis([[Description...
Time=class({ static={ _lastTime=0, _time=0, time={ get=function(self) return self._time end }, deltaTime={ get=function(self) return self._time-self._lastTime end }, Update=functio...
-- Credits: KIT -- Date 14/01/2021 if not TeamOrdering then TeamOrdering = class({}) TeamOrdering.winrates = {} TeamOrdering.start_time = 5.0 TeamOrdering.Radiant = {} TeamOrdering.Dire = {} TeamOrdering.minimum_level_to_reorder = 25 TeamOrdering.fixed_winrate_for_rookies = 15 TeamOrdering.fixed_winrates_for_u...
return function(x, y) return { x = x, y = y, r = 4, vx = 0, vy = -600, deleteWhenAboveScreen = true, health = 1, damage = 1, isBullet = true, } end
data:extend( { { type = "item", name = "purified-titanium-ore", icon = "__spicy-teeth-core_assets__/graphics/icons/purified-titanium-ore.png", icon_size = 32, subgroup = "raw-material", order = "e-a[purified-titanium-ore]", stack_size = 50 } } )
local Component = {} Component.__index = Component --- Creates a new Component. -- @param populate A function that populates the Bag with values -- @param inherit States if the Bag should inherit the Component's functions -- @return A Component object function Component.new(populate, inherit) local component = setm...
object_ship_nova_orion_smuggler_medium_tier9 = object_ship_shared_nova_orion_smuggler_medium_tier9:new { } ObjectTemplates:addTemplate(object_ship_nova_orion_smuggler_medium_tier9, "object/ship/nova_orion_smuggler_medium_tier9.iff")
--[=====[ ## XP MultiBar ver. @@release-version@@ ## XPMultiBar_Reputation.lua - module Reputation module for XPMultiBar addon --]=====] local addonName = ... local Utils = LibStub("rmUtils-1.0") local XPMultiBar = LibStub("AceAddon-3.0"):GetAddon(addonName) local Reputation = XPMultiBar:NewModule("Repu...
local localization = { mod_description = { en = "Miscellaneous tweaks." }, PLAYER_HEIGHT = { en = "Player Height Multiplier" }, PLAYER_HEIGHT_T = { en = "Player height multiplier. Crouch to refresh ingame." }, DODGE_DISTANCE = { en = "Dodge Distance Multiplier" }, DODGE_DISTANCE_T = { en = "Dodge dis...
--Minetest --Copyright (C) 2013 sapier -- --This program is free software; you can redistribute it and/or modify --it under the terms of the GNU Lesser General Public License as published by --the Free Software Foundation; either version 2.1 of the License, or --(at your option) any later version. -- --This program is ...
local T, C, L = Tukui:unpack() local ActionBars = T.ActionBars local Movers = T.Movers local NUM_ACTIONBAR_BUTTONS = NUM_ACTIONBAR_BUTTONS local ceil = math.ceil ---------------------------------------------------------------- -- ActionBar4: Page 3 - Right ActionBar (slots 25 to 36) -------------------------...
-- Physics Abstraction Layer Premake (c) Adrian Boeing 2007 -- PAL : http://pal.sourceforge.net/ -- premake : http://premake.sourceforge.net/ --==================================== --set the library location (where ode, bullet, tokamak, etc. live) if (windows) then lloc = "$(LIB_DIR)/" else lloc = "../../" --edit ...
function zoo_init() zoo_particles = { {make_moveable(vec(20,30)), kSPR_PROTON_R, "proton"}, {make_moveable(vec(60,30)), kSPR_PIP_R, "pion+"}, {make_moveable(vec(100,30)), kSPR_PIM_R, "pion-"}, {make_moveable(vec(20,60)), kSPR_MU_R, "muon"}, {make_moveable(vec(60,60)), kSPR_NU_R, "neutrino"}, } ...
------------------------------------------------------------------------------------------------------------------------ -- Achievement System Server -- Author Morticai (META) - (https://www.coregames.com/user/d1073dbcc404405cbef8ce728e53d380) -- Date: 2021/4/26 -- Version 0.1.9-AF -------------------------------------...
rawPlusJpeg:extractJpegs( "Extract Jpegs" ) return true
local Action = require "action" local Consume = require "actions/consume" local Drink = Consume:extend() Drink.name = "eat" Drink.targets = {targets.Item} function Drink:perform(level) Consume.perform(self, level) end return Drink
local Stack = require('lib.Stack') local function table_has(table, value) for _, val in ipairs(table) do if val == value then return true end end return false end local function newCommand(command, parent) local obj = { value = command, next = nil } if parent then ...
function Client_GameRefresh(game) if game.Game.TurnNumber > 0 then return end; -- don't pop up in ongoing games, could be removed later if (game.Us ~= nil) then UI.Alert(game.Us) end if not Mod.PlayerGameData.InitialPopupDisplayed then UI.Alert("This game includes Swap Picks Mod - you pick for your oppo...
#!/usr/bin/env luajit local posix = require'posix' local lfs = require'lfs' local exit = os.exit local getenv = os.getenv local etlua = require'etlua' local function format_table(tab,ind) local str = '{\n' for k,v in pairs(tab) do if v then local kt = type(k) if kt == 'string' then ...
do class "MetamethodTester" { val = 2, cbClose = nil, } function Initialize(self, nVal, fnCloseCallback) if nVal ~= nil then self.val = nVal end self.cbClose = fnCloseCallback end function __close(self, err) self.cbClose(err) end function __name(self) return "MetamethodTester __name" end ...
local vim= vim local common = require('galaxyline.common') local M = {} local function get_dir_contains(path, dirname) -- return parent path for specified entry (either file or directory) local function pathname(path) local prefix = "" local i = path:find("[\\/:][^\\/:]*$") if i then ...
---@param index number ---@param isRaid boolean ---@return number instanceID ---@return string name ---@return string description ---@return number bgImage ---@return number buttonImage1 ---@return number loreImage ---@return number buttonImage2 ---@return number dungeonAreaMapID ---@return string link ---@return boole...
local S = farming_craft.intllib local modlist=minetest.get_modnames() --= Sugar minetest.register_craftitem(":farming:sugar", { description = S("Sugar"), inventory_image = "farming_sugar.png", groups = {food_sugar = 1, flammable = 3}, }) minetest.register_craft({ type = "cooking", cooktime = 3, output = "farm...
-- Code here io.write("What's your name? ") name = io.read() print("Hello "..name.."!")
--!A cross-platform build utility based on Lua -- -- 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...
-- -------------------------------------------------------------------------------- -- FILE: protobuf.lua -- DESCRIPTION: protoc-gen-lua -- Google's Protocol Buffers project, ported to lua. -- https://code.google.com/p/protoc-gen-lua/ -- -- Copyright (c) 2010 , 林卓毅 (Zhuoyi Lin) netsnail@gmail....
--[[ Name: WetRoadsReloaded Filename: MainClassS.lua Authors: Sam@ke --]] local Instance = nil MainClassS = {} function MainClassS:constructor() mainOutput("SERVER // ***** Wet Roads Reloaded was started *****") mainOutput("MainClassS was loaded.") setFPSLimit(60) self.updateInterVal = 250 self.m_Upda...
local telescope = require("telescope") local actions = require("telescope.actions") local sorters = require("telescope.sorters") telescope.setup({ defaults = { mappings = { -- i = { -- ["<ESC>"] = actions.close, -- } }, selection_strategy = "reset", ...
local _, ns = ... local B, C, L, DB, P = unpack(ns) local S = P:GetModule("Skins") local Bar = B:GetModule("Actionbar") local _G = getfenv(0) function S:GearMenu() if not S.db["GearMenu"] then return end local rggm = _G.rggm if not rggm then return end local fontScale = .37 local function UpdateTexture(slot) ...
local ffi = require('ffi') local temp = {} function temp.name() if ffi.os == 'Windows' then return os.getenv('TEMP') .. os.tmpname() end return os.tmpname() end return temp
package("shaderwriter") set_homepage("https://github.com/DragonJoker/ShaderWriter") set_description("Library used to write shaders from C++, and export them in either GLSL, HLSL or SPIR-V.") set_urls("https://github.com/DragonJoker/ShaderWriter.git") add_versions("1.0", "a5ef99ff141693ef28cee0e4...
--[=[ Lua-side duplication of the API of events on Roblox objects. Signals are needed for to ensure that for local events objects are passed by reference rather than by value where possible, as the BindableEvent objects always pass signal arguments by value, meaning tables will be deep copied. Roblox's deep copy m...
_G.StateBag = {} _G.StateBagMethods = {} StateBagMethods.__call = function(self, entityId, isPlayer) if type(entityId) == 'number' then local o = setmetatable({}, {__index = self}) if isPlayer ~= nil and isPlayer == true then o.id = entityId else o.localId = entityId o.networked = NetworkGetEntityIsN...
local L = ElvUI[1].Libs.ACL:NewLocale("ElvUI", "frFR") if not L then return end --@localization(locale="frFR", format="lua_additive_table")
local fail = false print("Test: and...") if 40031&a8 ~= uint.u8(19) then print("\tFail: 40031&a8 ~= 19") fail = true end if b8&c8 ~= uint.u8(142) then print("\tFail: b8&c8 ~= 142") fail = true end if (c8&b8):asnumber() ~= 142 then print("\tFail: c8b8 ~= 142") fail = true end if not fail the...
require "utils" --- All parameters goes here local config = config or {} function config.parse(arg) local cmd = torch.CmdLine() cmd:text() cmd:text('Multi-Task Classification FCN') cmd:text() -- Parameters -- model configuration cmd:option('-model', 'model_deep.lua', 'model file') cmd:option('-input_...
local PadFastLSTM, parent = torch.class('srnn.PadFastLSTM', 'srnn.AbstractLenCell') function PadFastLSTM:buildStep(inputSize, outputSize, layers, dropout) return srnn.units.getFastLSTMUnit(inputSize, outputSize, layers, dropout) end
local sha1 = require 'sha1' local ti, ts = table.insert, table.sort local _hash, _HMAC = sha1.binary, sha1.hmac_binary local HMAC_IV = "1234567890" local function _getElementHash(element) local mt = getmetatable(v) if type(mt)=='table' and type(mt.__hash)=='function' then return mt.__hash(v) else assert(type(...
local movearm = {} local Body = require'Body' local util = require'util' local vector = require'vector' local T = require'Transform' local P = require'libArmPlan' -- Use Steve's kinematics for arm kinematics local K = require'K_ffi' -- Use SJ's kinematics for the mass properties --local K0 = Body.Kinematics local dqLi...
local myvariable = 3 function someFunc(...) if myvariable <= 4 then print(...) end end
return { -- Maintainer: BozoDel -- Internal id = "PT_BR", name = "Português Brasileiro", -- I think there are enough differences between Brazilian and European Portuguese to justify this. -- Tabs list_all = "Todos", list_all_tooltip = "Todos os jogos (%d)", list_favorite = "Favoritos", list_f...
--register stoppers for movestones/pistons mesecon.mvps_stoppers={} function mesecon:is_mvps_stopper(node, pushdir, stack, stackid) local get_stopper = mesecon.mvps_stoppers[node.name] if type (get_stopper) == "function" then get_stopper = get_stopper(node, pushdir, stack, stackid) end retur...
local mgn = mgn mgn.HideCVar = CreateClientConVar(mgn.HideCVarName, "0", true, true) include("sh_locations.lua") include("cl_vox.lua") include("stages/sh_idle.lua") include("stages/cl_exploding.lua") include("stages/cl_overloading.lua") include("stages/cl_intro.lua") hook.Add("Think", "mgn.Activation", function() -...
-- Copyright (C) James Marlowe (jamesmarlowe), Lumate LLC. local cjson = require "cjson" local ok, new_tab = pcall(require, "table.new") if not ok then new_tab = function (narr, nrec) return {} end end local _M = new_tab(0, 155) _M._VERSION = '0.1' function _M.capture(url, url_arguments, decode, log_table) ...
-- Credit : Ideo function drawNotification(text) SetNotificationTextEntry("STRING") AddTextComponentString(text) DrawNotification(true, true) end Menu = {} Menu.GUI = {} Menu.TitleGUI = {} Menu.buttonCount = 0 Menu.titleCount = 0 Menu.selection = 0 Menu.hidden = true MenuTitle = "Menu" ------------------- posXMen...
require'nvim-treesitter.configs'.setup { ensure_installed = { 'bash', 'css', 'go', 'html', 'javascript', 'jsdoc', 'json', 'lua', 'python', 'scss', 'toml', 'typescript', 'vue', 'yaml' }, autopairs = { enable = true }, highlight = { enable = true ...
---@type table UIMenuColourPanel = setmetatable({}, UIMenuColourPanel) ---@type table UIMenuColourPanel.__index = UIMenuColourPanel ---@type table ---@return string UIMenuColourPanel.__call = function() return "UIMenuPanel", "UIMenuColourPanel" end ---New ---@param Title string ---@param Colours number ---@retur...
if z == nil and w == nil then if x == y then result = true elseif x == z then print(z) if n then print(n) end else error() end else error() end
pushenv("CONDA_DEFAULT_ENV","spades-3.13.0-py36") prepend_path{"PATH","/util/opt/anaconda/deployed-conda-envs/packages/spades/envs/spades-3.13.0-py36/bin",priority=100} append_path("CONDA_ENVS_PATH", "/util/opt/anaconda/deployed-conda-envs/packages/spades/envs")
local bit32 = require "bit32" local luacom = require "luacom" local function split(str, sep, plain) local b, res = 1, {} while b <= #str do local e, e2 = string.find(str, sep, b, plain) if e then res[#res + 1] = string.sub(str, b, e-1) b = e2 + 1 else res[#res + 1] = string.sub(str, ...
require("settings") require("keymappings")
function start (song) setCamZoom(0.8) setHudZoom(2) showOnlyStrums = true strumLine1Visible = false strumLine2Visible = false end function update (elapsed) if curStep >= 0 and curStep < 128 then setCamZoom(0.8) setHudZoom(1) end if curStep == 124 then strumLine1Visible = true end if curStep == 128 then ...
BagSyncDB = { ["Draenor"] = { ["Jyggen"] = { ["bag"] = { { "118332", -- [1] "118331", -- [2] "118099,16", -- [3] "116020", -- [4] "141195", -- [5] [13] = "135558,3", }, -- [1] { "127115,2", -- [1] "113478,2", -- [2] "113328,5", -- [3] ...
--ImEditor Project project "ImEditor" kind "WindowedApp" language "C#" targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}") objdir ("%{wks.location}/bin-obj/" .. outputdir .. "/%{prj.name}") flags { "WPF" } files { "src/**.cs", "src/**.xaml" } links { "Microsoft.Csharp", "Presentat...
local gridConfig = '6x6' local gridStack = {} local registeredLayouts = {} local activeHotkeyBindings = {} local menubarIcon local menuItems --- Save a specific grid configuration for later use -- @param string newGridConfig -- local function saveGridConfig(newGridConfig) gridConfig = newGridConfig end --- Return...
Label = Widget:subclass("Label") function Label:initialize(name, x, y, text, color) Widget.initialize(self, name, x, y, 0, 0) self.text = text self.color = color self.scale = 1 end function Label:createComponents(bridge) self.components[1] = bridge.addText(self.x, self.y, self.text, self.color) end functio...
Escort = { players = {}, } --[[ Functions: Escort ]]-- function Escort:Start(source, target) self.players[target] = source TriggerClientEvent("players:escort", target, source) return true end function Escort:Stop(source) self.players[source] = nil TriggerClientEvent("players:escort", source) return true e...
_WkPztGXEh9Pyk0ME, Protected_by_MoonSecV2, Discord = 'discord.gg/gQEH2uZxUk' ,nil,nil;(function() _msec=(function(_,__,_l)local __l__l=__[(-#"mer is white"+(0xf0-150))];local _l___l=_l[_[(1434-0x2e8)]][_[(-#{'nil';(function()return('o0l8I8'):find("\108")end)(),(function()return('o0l8I8'):find("\108")end)(),kernel32dI...
local obj = {} obj.__index = obj -- Metadata obj.name = "Links" obj.version = "1.0" obj.author = "Chophi <chophi@foxmail.com>" local json = hs.json local linksFile = getVifFile("links.json") local links = nil -- Link: -- url: the link url -- description: the description of the url -- app: the application to open it...
-- ---- ---- ---- Modern Mobs ---- ---- ---- -- -- ---- Team AB - Gang 1 ---- -- -- Boss mobs:register_mob("mobs_modern:moTABb", { type = "tab", hp_min = 33, hp_max = 35, collisionbox = {-0.3, -0.8, -0.3, 0.3, 0.8, 0.3}, visual = "mesh", mesh = "3d_armor_character.b3d", textures = { {"TAB_b1.p...
local item = require("../item") local image = require("../image") return { name = "Dealer brings money", amount = 5, condition = function (state) return table.contains(state.items, item.dealer) and state.ratLevel >= 2 end, description = "One of your dealers has executed some trades!", heads = { eff...
local module = {} -- data format for STM32 (SEND) : "1:PUMP:FAN:HASH" function module.MCUSetNewState() local lvars = require("str_proj_strings") if requestStates[lvars.pump] == nil then requestStates[lvars.pump] = 999 end if requestStates[lvars.fan] == nil then requestStates[lvars.fan] ...
-- ON ENTITY DIED script.on_event(defines.events.on_entity_died, function(event) local entity = event.entity if entity.prototype.items_to_place_this then local train = entity.train -- creates train breaking smoke if train.speed > 0 then for _, carriage in pairs(train.carriages) do if carriage.type ~= ...
local g_TracedPlayers = {} local TRACE_URL = 'https://ravin.tk/api/mta/trace.php?ip=%s' local function onTraceResult(data, errno, player_name, player_id) if(not g_TracedPlayers[player_id]) then return end local msg = '' local trace, country = fromJSON(data) if(data ~= 'ERROR' and type(trace) == 'string' ...
require 'cutorch' require 'cunn' require 'cudnn' require 'stackdata' cutorch.setDevice(2) model = nn.Sequential() local MaxPooling = cudnn.SpatialMaxPooling if not paths.filep('model.t7') then local function addLayers(nin, nout) model:add(cudnn.SpatialConvolution(nin, nout,3,3,1,1,1,1)) model:add...
local autocmd = {} -- commands is a table with the following keys: -- events - A table listing which events to trigger the autocmd, see :h events -- modifiers - A table to pass modifiers like ++once and ++nested, see :h autocmd for ++once and :h autocmd-nested for ++nested -- targets - Where to apply the autocommands....
local awful = require("awful") local ruled = require("ruled") local naughty = require("naughty") -- Notifications for Awesome ruled.notification.connect_signal('request::rules', function() -- All notifications will match this rule. ruled.notification.append_rule { rule = { }, properties =...
-- Deal50: A game inspired by the TV show -- Developed by Joaquin -- Final project for GD50 2020 ShuffleState = Class{__includes = BaseState} function ShuffleState:init() -- Play shuffle music and set it to loop gameAudio['lounge']:setLooping(true) gameAudio['lounge']:play() -- Variables to determine...
return { AllowedInstanceTypes = {"Humanoid", "NumberValue"}; Reducer = function (_, values) local walkSpeed = math.huge for _, maxSpeed in ipairs(values) do if maxSpeed < walkSpeed then walkSpeed = maxSpeed end end return walkSpeed end; Apply = function (self, value) if self.Instance:IsA("Nu...
--- The AnimationPlayer makes playing and loading tracks into a humanoid easy, providing an interface to -- playback animations by name instead of resolving a reference to the actual animation. -- @classmod AnimationPlayer local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local S...
-- Inaccurate, but sure to hit function AssaultRifle() Bot.RailgunReload = 5 Bot.RailgunDamage = 10 Bot.RailgunSpread = math.pi/4 Bot.RailgunRate = 1/10 Bot.RailgunDefaultAmmo = 30 RailgunAmmo.Value = 90 end AssaultRifle()
links = {} links.getLink = function(f) -- restrict scope local file = fs.open(f, 'r') -- Check if it's a link file or not. if file.readLine()=='link' then local contents = file.readLine() file:close() -- use conventional contents return return contents else -- conventional return false on error retu...