content
stringlengths
5
1.05M
local Players = game:GetService("Players") local Modules = Players.LocalPlayer.PlayerGui.AvatarEditorInGame.Modules local Roact = require(Modules.Common.Roact) local mutedError = require(Modules.NotLApp.mutedError) local RetrievalStatus = require(Modules.NotLApp.Enum.RetrievalStatus) local EmptyStatePage = require(Mo...
local class = require('middleclass') local Controller = require('mvc.Controller') local HasSignals = require('HasSignals') local SoundMng = require('app.helpers.SoundMng') local tools = require('app.helpers.tools') local SelectTrusteeshipController = class("SelectTrusteeshipController", Controller):include(HasSignals) ...
local query = require 'lusty-store-mongo.query' local connection = require 'lusty-store-mongo.store.mongo.connection' return { handler = function(context) local data = context.data or {} local q, m if getmetatable(context.query) then q, m = query(context.query) else q = context.query ...
local ok, signature = pcall(require, "lsp_signature") if not ok then return end signature.setup({ doc_lines = 100, fix_pos = true, always_trigger = true, toggle_key = "<C-k>", floating_window = false, })
local sx, sy = guiGetScreenSize ( ) local rSX, rSY = sx / 1280, sx / 1024 local rec_x = ( sx - (rSX*360) ) local rec_y = ( sy / (rSY*4.2) ) local changeCar = { } local drawData = { hover_buy = false, hover_close = false, hover_editColor = false } function dxDrawVehicleShop ( ) local cR, cG, cB = unpack ( carColo...
local PATH = (...):gsub('%.init$', '') local Squeak = { _VERSION = '1.1.0', _DESCRIPTION = 'A small, opinionated game framework.', _LICENCE = [[ MIT LICENSE Copyright (c) 2020-2022 David R. Hayes Permission is hereby granted, free of charge, to any person obtaining a copy of t...
local exp = {} exp.cmp = require("cmp") exp.capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()) exp.setup = function() exp.cmp.setup({ snippet = { -- REQUIRED - you must specify a snippet engine expand = function(args) require('luasnip').lsp...
return { version = "1.1", luaversion = "5.1", tiledversion = "1.1.2", orientation = "orthogonal", renderorder = "right-down", width = 32, height = 32, tilewidth = 32, tileheight = 32, nextobjectid = 10, properties = {}, tilesets = { { name = "UV Grid", firstgid = 1, tilewid...
Class = {} setmetatable(Class, { __call = function(_, ...) return Class.extends(...) end }) function Class.extends(clazzName, superClazz, staticInit) local classRef = {} superClazz.__call = LuaObject.__call setmetatable(classRef, superClazz) classRef.__index = classRef classRef.__parent = superClazz classRef.n...
local BOOKING_KEY = KEYS[1] local TIME_TO_CONNECT_PAIR = tonumber(KEYS[2]) local NOW = tonumber(KEYS[3]) local LOCK_TTL = KEYS[4] local pair_index = redis.call('hmget', 'pinx:' .. BOOKING_KEY, 'prid', 'pid') if pair_index[1] == false then return nil else local pair_key = 'pair:' .. pair_index[1] local the...
-- Стандартная функция для замены контекста исполнения if not setfenv then local function findenv(f) local level = 1 repeat local name, value = debug.getupvalue(f, level) if name == "_ENV" then return level, value end level = level + 1 until name == nil return ...
-- A slider thumb is a simple thing that -- knows how to draw a thumb for a slider -- easily augmented with any draw method -- to specialize the appearance. local SliderThumb = { thumbRadius = 8; thumbThickness = 24 } local SliderThumb_mt = { __index = SliderThumb; } function SliderThumb.new(self, obj) ...
----------------------------------- -- Area: Selbina (248) -- NPC: Abelard -- An Explorer's Footsteps -- !pos -52 -11 -13 248 -- This quest was changed to require a minimum amount of fame to combat RMTs POS-Hacking around to -- quickly earn gil. However, as this is not a legitimate concern on private servers players ...
local strung = require"strung" local s_gsub = string.gsub -- [[]] local v = require"jit.v" -- [[]] v.on("-") bench = arg[1] == "bench" --- First, the test and benchmark infrastructure. --- `try` and `gmtry` run both the original and strung version of the functions, --- and compare either their ouput, or their speed ...
AddCSLuaFile('shared.lua') AddCSLuaFile('cl_init.lua') include('shared.lua') function ENT:Initialize() self:SetModel('models/props_junk/gascan001a.mdl') self:SetSolid(SOLID_VPHYSICS) self:SetMoveType(SOLID_VPHYSICS) self:PhysicsInit(SOLID_VPHYSICS) self:SetUseType(SIMPLE_USE) local phys = self:GetPhysicsObject...
--!strict local UNIQUENESS_DOT_THRESHOLD = 0.999 export type Point = { Type: string, Position: Vector2 } export type Circle = { Type: string, Position: Vector2, Radius: number } export type Polygon = { Type: string, Vertices: { Vector2 } } local function enforceType( object: any ) if object.Type == 'point' then o...
-- load pfUI environment setfenv(1, pfUI:GetEnvironment()) --[[ librange ]]-- -- A pfUI library that detects and caches distance to units. -- -- librange:UnitInSpellRange(unit) -- Returns `1` if the unit is within a 40y range -- -- return instantly when another librange is already active if pfUI.api.librange then...
local Win = Game:addState('Win') function Win:enteredState() click_timer = cron.after(0.2, function() click_timer = nil end) end function Win:draw() g.setColor(255, 255, 255) g.draw(game.preloaded_images['menu_end_good.png'], 0, 0) end function Win:update(dt) if click_timer then click_timer:update(...
-- Festivals example local M = {} function M.is_can_start(festival_id, festival) return true end function M.on_festival_start(festival_id, festival) end function M.on_festival_end(festival_id, festival) end return M
-- test reconnecting a socket, shoudl return an error "already connected" -- test based on Windows behaviour, see comments in `copas.connect()` function local copas = require("copas") local socket = require("socket") local skt = copas.wrap(socket.tcp()) copas.addthread(function() copas.sleep(0) print("First try.....
--[===[DOC = simplepath [source,lua] ---- function simplepath( pathIn ) --> pathOut ---- Simplify the path contained in the string 'pathIn'. It return a simpler string 'pathOut' with the following expansion - . means 'last directory', so it is just removed - .. means 'parent directory', so it will remove the previo...
dx.mining:stop()
object_ship_nova_orion_smuggler_light_tier9 = object_ship_shared_nova_orion_smuggler_light_tier9:new { } ObjectTemplates:addTemplate(object_ship_nova_orion_smuggler_light_tier9, "object/ship/nova_orion_smuggler_light_tier9.iff")
local oo = require("bp.common.lua_oo") local mt = {} local class_template = {type="if_else", __index=mt} local if_else = oo.class(class_template) function mt:start(graph) assert(oo.type(graph)=="graph", "graph must be an bp.graph type! see graph.lua") self.graph = graph self.action = nil end function mt:is_done()...
config = { --[[ Hard mode! No filter or stack filter inserters are permitted. ]] no_filter_inserters = false, resources = { stone = { frequency = 0.3, richness = 15 }, coal = { frequency =...
local log = require "log" local xml2lua = require "xml2lua" local xml_handler = require "xmlhandler.tree" local json = require "dkjson" local function searchtable(table, searchkey, maxlevels, currlevel) if not currlevel then; currlevel = 0; end currlevel = currlevel + 1 local result for key, value in pair...
--=========== Copyright © 2019, Planimeter, All rights reserved. ===========-- -- -- Purpose: Debug Overlay interface -- --==========================================================================-- local _G = _G module( "debugoverlay" ) function line( worldIndex, x, y, points, color, duration ) local g_DebugOverl...
module(..., package.seeall) -- Globals endScene = nil local playButton function mainMenu(event) -- Switch to game scene switchToScene("levelSelect") end function initUI() -- Background local background = director:createSprite(director.displayCenterX, director.displayCenterY, "textures/Menu_Design_Potrait.png")...
module:depends("adhoc"); local adhoc_new = module:require("adhoc").new; local hats_api = module:depends("muc_hats_api"); local dataforms_new = require "util.dataforms".new; local adhoc_simple = require "util.adhoc".new_simple_form; local function generate_error_message(errors) local errmsg = {}; for name, err in pa...
--xml backend local MapWayshrines = FasterTravel_WorldMapWayshrines FasterTravel.WorldMapInfoControl.Initialise(MapWayshrines) MapWayshrines.rowOffsetX = 20 function MapWayshrines:IconMouseEnter(...) end function MapWayshrines:IconMouseExit(...) end function MapWayshrines:IconMouseDown(icon, button,data ) i...
Util = {} function Util.createData(size, colors) local t = {} local c = lume.numbers(colors) for i=1,size do t[i] = {} for j=1,size do for i,v in ipairs(c) do -- print(i,v) end local a = math.random(1, #c) t[i][j] = c[a] table.remove(c, a) if #c == 0 then c = lume.numbers(colors) ...
---主游戏菜单控制器类 ---@class GamePlayPreviewUIControl : GameLuaObjectHostClass ---@field _TextLevelInfo Text ---@field _TextCameraSpeed Text ---@field _CheckBoxSkyBox Toggle ---@field _CheckBoxWireFrame Toggle ---@field _CheckBoxAudio Toggle ---@field _CheckBoxFog Toggle ---@field _CheckBoxDethTethCubes Toggle ---@field _Che...
add_sprites( renderer.add_texture("data/textures/sheets/tiles_spritesheet.tga"), { {name="box", x="0", y="864", w="70", h="70"}, {name="boxAlt", x="0", y="792", w="70", h="70"}, {name="boxCoin", x="0", y="720", w="70", h="70"}, {name="boxCoinAlt", x="0", y="576", w="70", h="70"}, {name="boxCoinAlt_disabled"...
local lfs = require"lfs" local exec = require "tek.lib.exec" local plugs_no = 0 local test_run_plugin = function(plug_path, sep_pars) print("test_run_plugin", plug_path) local task = exec.run( { taskname = "plug_" .. plugs_no, abort = false, func = function() local exec = require ...
rebel_house_loot_deed = { minimumLevel = 0, maximumLevel = -1, customObjectName = "Rebel House Blueprint", directObjectTemplate = "object/tangible/loot/loot_schematic/rebel_house_loot_schem.iff", craftingValues = { }, customizationStringNames = {}, customizationValues = {} } addLootItemTemplate("rebel_house_loo...
-------------------------------- -- @module TransitionProgressHorizontal -- @extend TransitionProgress -- @parent_module cc ---@class cc.TransitionProgressHorizontal:cc.TransitionProgress local TransitionProgressHorizontal = {} cc.TransitionProgressHorizontal = TransitionProgressHorizontal ---------------------------...
local Llama = require(script.Parent.Parent.Packages.Llama) local Roact = require(script.Parent.Parent.Packages.Roact) local assets = require(script.Parent.Parent.assets) local styles = require(script.Parent.Parent.styles) local function NoStorySelected() return Roact.createElement("Frame", { Size = UDim2.fromScale(...
local logic = {} function logic.moveHorizontal(d) return function() GAME.current:emit("change_dir", d, nil) end end function logic.moveVertical(d) return function() GAME.current:emit("change_dir", nil, d) end end function logic.jump() return function() GAME.current:emit("jump") end end return logic
fx_version "cerulean" game "gta5" dependency "vrp" client_scripts { "@vrp/client/Tunnel.lua", "@vrp/client/Proxy.lua", "@vrp/lib/utils.lua", "c_*.lua", "MASTER.lua" } server_scripts { "@vrp/lib/utils.lua", "s_*.lua", "MASTER.lua" }
--Anyone who scripts needs this alot http://wiki.roblox.com/index.php?title=Image:RobloxColors.PNG
--- The resource library is used to control what files are sent to clients who join a server, this includes models, materials, sounds, text files but not Lua files. _G.resource = {} --- Adds the specified and all related files to the files the client should download. --- For convenience, this function will automati...
local Class = require("CoreLib.SimpleLuaClasses.Class") local Triangle = Class() function Triangle:init(v1, i1, v2, i2, v3, i3) self.a = Vector3(v1.x, v1.y, v1.z) self.ai = i1 self.b = Vector3(v2.x, v2.y, v2.z) self.bi = i2 self.c = Vector3(v3.x, v3.y, v3.z) self.ci = i3 self.isBad = fals...
include("shared.lua") language.Add("generator_liquid_water", "Water Pump")
slot0 = require("protobuf") module("p15_pb") SC_15001 = slot0.Descriptor() CS_15002 = slot0.Descriptor() SC_15003 = slot0.Descriptor() CS_15004 = slot0.Descriptor() SC_15005 = slot0.Descriptor() CS_15006 = slot0.Descriptor() SC_15007 = slot0.Descriptor() CS_15008 = slot0.Descriptor() SC_15009 = slot0.Descriptor() CS_...
local t = Def.ActorFrame{} -- NumWheelItems under [MusicWheel] in Metrics.ini needs to be 17. -- Only 15 can be seen onscreen at once, but we use 1 extra on top and -- 1 extra at bottom so that MusicWheelItems don't visually -- appear/disappear too suddenly while quickly scrolling through the wheel. -- For this file ...
require "tools.data"
--[[ Nintendo Entertainment System emulator for Love2D Cartridge Emulation and Mapper Redirector By Gamax92 --]] -- Open ROM local fileobj, err if NES.lfs then -- love.filesystem.newFile fileobj, err = love.filesystem.newFile(NES.file, "r") if not fileobj then error("[NES.rom] " .. err) end else --...
AddCSLuaFile("shared.lua") include('shared.lua') /*----------------------------------------------- *** Copyright (c) 2012-2018 by DrVrej, All rights reserved. *** No parts of this code or any of its contents may be reproduced, copied, modified or adapted, without the prior written consent of the author, unless other...
#!/usr/bin/env lua require 'Test.More' plan(10) if not require_ok 'Silva' then BAIL_OUT "no lib" end local m = require 'Silva' type_ok( m, 'table' ) is( m, package.loaded.Silva ) type_ok( m.matcher, 'function', 'matcher' ) type_ok( m.array_matcher, 'function', 'array_matcher' ) is( m._NAME, 'Silva', "_NAME" )...
local mod = foundation.new_module("yatm_solar_energy", "0.2.0") mod:require("api.lua") mod:require("nodes.lua") mod:require("items.lua") mod:require("recipes.lua")
local F = require("F") local f = 99 local c = (f-32)/9*5 print(F"{f} degrees Fahrenheit is {c:%.2f} degrees Celsius")
SellCarScreen = Screen:subclass "SellCarScreen" local screenSize = Vector2(guiGetScreenSize()) function SellCarScreen:init(callback) self.super:init() self.fadeSpeed = 4 self.canSell = true self.text = exports.dpLang:getString("garage_sell_text") self.back = utf8.fold(exports.dpLang:getString("garage_menu_back"))...
--API Definitions-- net = require("network") com = require("component") serial = require("serialization") event = require("event") coroutine = require("coroutine") --Component Definitions-- ender = com.ender_chest trans = com.transposer --Localizations-- local client --Trades-- local Trades = { } --Functions-- ...
seeker = body:new { size = 20, timeout = 10, seek = true, health = 10, __type = 'seeker' } function seeker:__init() if not rawget(self.position, 1) then enemy.__init(self) end self.speedN = self.speedN or math.random(v - 30, v) self.exitposition = self.exitposition or self.position self.colors = {vartimer:new...
local M = {} local colors = require 'monochrome.colors' M.colors = colors function M.terminal_color() vim.g.terminal_color_0 = colors.bg vim.g.terminal_color_1 = colors.faded_red vim.g.terminal_color_2 = colors.faded_green vim.g.terminal_color_3 = colors.faded_yellow vim.g.terminal_color_4 = colors.faded_b...
local uv = require "lluv" local path = require "path" local fprintf = function(f, ...) f:write((string.format(...))) end local stderr, stdout = io.stderr, io.stdout function on_exit(handle, err, exit_status, term_signal) if err then fprintf(stderr, "%s\n", tostring(err)) else fprintf(stderr, "Process e...
local constants = require "kong.constants" local encode_base64 = ngx.encode_base64 local kong = kong local _M = {} local function load_credential_into_memory(customer_id) local credential, err = kong.db.upstreambasicauth_credentials:select_by_consumer(customer_id) if err then return nil, err end return cr...
screenboundary = class("screenboundary") function screenboundary:init(x) self.x = x self.y = -1000 self.width = 0 self.height = 1000+mapheight self.static = true self.active = true self.category = 10 self.mask = {true} end
return { damage_numbers = love.graphics.newFont("res/blocktopia.ttf", 20), debug_text = love.graphics.newFont("res/blocktopia.ttf", 32) }
return { terraunit = { acceleration = 0, airsightdistance = 0, brakerate = 0, buildcostenergy = 100000, buildcostmetal = 100000, builder = false, buildpic = "terraunit.dds", buildtime = 10000000, canattack = false, capturable = false, category = "ALL UNDERWATER", collisionvolumeoffsets = "0 -30...
return { id = "pet_rainbowscoob", name = "Rainbow Scoobis", description = "Cosmic friend", type = "pet", rarity = 7, hidden = false, overrideRenderer = "RainbowPetRenderer", metadata = { isRainbow = true, } }
local onlooker_chat_user_pin_map = require("qnFiles/qnPlist/games/onlooker_chat_user_pin"); local onlooker_chat_user_layout= { name="onlooker_chat_user_layout",type=0,typeName="View",time=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft, { name="shield",type=1,t...
local EventsAPI = require(script:GetCustomProperty("META_EventsAPI")) local DISCOUNT_ALLIES = script:GetCustomProperty("DISCOUNT_ALLIES"):WaitForObject() local DISCOUNT_AXIS = script:GetCustomProperty("DISCOUNT_AXIS"):WaitForObject() local INCREASED_REWARDS_PANEL = script:GetCustomProperty("INCREASED_REWARDS_PANEL"):W...
--该文件将返回一个table return { --pattern名称 name="defaultLong", --calc函数为主要的计算函数,接受两个参数note与warning,都是table类型 --note为计算出的音符,每个音符为一个table,含有f,t,energy三个属性 --f为开始时间,t为结束时间(若为nil说明不是连续音符),energy为音符能量,规范化到了0~1之间 --另外,note有其余的特殊键值: --bpm:实质是两拍的间隔时间,所以实际bpm为60/note.bpm --warning表示音符的提前提示(在游戏中为逐渐变小的提示圆圈),不需要读取,只需要修改 --使...
----------------------------------------- -- ID: 4846 -- Scroll of Rasp -- Teaches the black magic Rasp ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(238) end function onItemUse(target) target:addSpell(238) end
--[[ name: Badass Distortion description: The one from the website author: osar.fr --]] require "include/protoplug" local cbFilter = require "include/dsp/cookbook filters" local power local function dist (x) if x<0 then return -1*math.pow (-1*x,power) end return math.pow (x,power) end stereoFx.init () function ste...
function editor.placeElements(elements, type) if #elements == 0 then return end local status = "Inserted " .. #elements .. " " if not type or type == 0 then actions.PlaceScrollVelocityBatch(elements) status = status .. "SV" elseif type == 1 then actions.PlaceHitObjectBatch(elemen...
-- SPELLS local _ChimaeraShot = 53209; local _KillShot = 53351; local _KillShotMM = 157708; local _GlaiveToss = 117050; local _SteadyShot = 56641; local _DireBeast = 120679; local _KillCommand = 34026; local _BestialWrath = 19574; local _FocusFire = 82692; local _RapidFire = 3045; local _SerpentSting = 87935; local _...
local theShader = {} function activateShader(data, id, sPlayer) if fileExists(":AURdebrand_players/"..data) then for i=1, #theShader do if (theShader[i][1] == sPlayer and theShader[i][2] == id) then return false end end local shader = dxCreateShader("shader.fx", 0, 0, true, "ped") local theTexture =...
local self = require("openmw.self") local aux = require("openmw_aux.util") local query = require("openmw.query") local core = require("openmw.core") local oricell local oripos local combatTarget local function savePos_eqnx() oricell = oricell or self.cell.name oripos = oripos or self.position end ...
local API = require(game.ServerScriptService.Trello.Main) local session = game:GetService("HttpService"):GenerateGUID() local RaceBoard = API:GetBoardByName("Information Server | AUTOMATED") function addPlayer (Host,SessionID) local SessionList = API.new("List", tostring(SessionID), RaceBoard) print(SessionLi...
require("req") a = 4 print(a+b) print(c)
ITEM.name = "Водка Столичная (Привозная, 0.75 листра)" --Название предмета ITEM.desc = "Обожаемый русскими напиток, да и многими другими людьми во всем мире. Это русская водка довольно высокого качества. \n-крепкий алкоголь \n-высококачественное изделие \n\nЖажда 60" --Его описание ITEM.category = "Еда" ITEM.price...
-- query a dicom server a=DicomObject:new() a.QueryRetrieveLevel='STUDY' a.StudyInstanceUID='' a.StudyDate='20010101-20130404' b=dicomquery('CONQUESTSRV1', 'STUDY', a) for i=0, #b-1 do print(b[i].StudyInstanceUID) end
local telescope = require "deftest.telescope" local M = {} function M.set_env(env) for k, v in pairs(M) do if (type(v) == "function" and k ~= "set_env") then setfenv(v,env) end end end function M.__get_assert_f(config) local a_equal = assert_equal if(config.v3)then a_equa...
local scenes = {} class("Scene", Group) { hasCreated = false, isActive = false, new = function(self, args) Group.new(self, args) scenes[self.id] = self end, show = function(self, currentScene) if not self.isActive then if not self.hasCreated then ...
-- -*- mode: lua -*- -- vim: set filetype=lua : description = [[ Attempts to authenticate to Microsoft SQL Servers using an empty password for the sysadmin (sa) account. SQL Server credentials required: No (will not benefit from <code>mssql.username</code> & <code>mssql.password</code>). Run criteria: * Host script:...
local plugins_count = Fn.len(Fn.globpath('~/.local/share/nvim/site/pack/packer/start', '*', 0, 1)) G.dashboard_session_directory = Doom_root .. '/sessions' G.dashboard_default_executive = 'telescope' G.dashboard_custom_shortcut = { ['last_session'] = 'SPC s l', ['find_history'] = 'SPC f h', ['find_file'] = 'SPC f ...
local keyboard = {} local utils = require((...):gsub("[^.]+$", "utils")) -- Some of the known Japanese input source IDs: -- com.apple.inputmethod.Kotoeri.Japanese -- com.apple.inputmethod.Kotoeri.Japanese.FullWidthRoman -- com.apple.inputmethod.Kotoeri.Japanese.HalfWidthKana -- com.apple.inputmethod.Kotoeri.J...
---------------------------------------------------------------------------- -- Lua Pages Template Engine. -- -- Based on: http://www.lua.inf.puc-rio.br/~mascarenhas/template -- From: Fabio Mascarenhas --------------------------------------------------------------------------- local find, format, gsub, strsub = str...
function GetRandomColor() local r = math.random(0, 255) local g = math.random(0, 255) local b = math.random(0, 255) local a = math.random(0, 255) return r, g, b, a end function BoolToString(value) if value == true then return "true" else return "false" end ...
object_tangible_component_armor_armor_core_assault_standard = object_tangible_component_armor_shared_armor_core_assault_standard:new { } ObjectTemplates:addTemplate(object_tangible_component_armor_armor_core_assault_standard, "object/tangible/component/armor/armor_core_assault_standard.iff")
-- (c) 2014 Flexiant Ltd -- Released under the Apache 2.0 Licence - see LICENCE for details -- Please specify the token that you get from MixPanel after creating the account local MIXPANEL_USER_TOKEN = 'PLEASE-ENTER-YOUR-MIXPANEL-TOKEN' -- No need to change the API URL unless MixPanel changes their endpoint local MIX...
Build { Units = "units.lua", Configs = { Config { Name = "generic-gcc", Tools = { "gcc" }, } } }
if SERVER then AddCSLuaFile( "shared.lua" ) end SWEP.Base = "ts_base" SWEP.ViewModel = "" function SWEP:Deploy() if SERVER then self.Owner:DrawWorldModel( false ) end return true end function SWEP:PrimaryAttack() end
Mods.commands = { --Chat input, arguments?, folder name (commands), filename {"/reload", false, "commands", "reload"}, {"/deathwish", false, "commands", "deathwish"}, {"/mutation", false, "commands", "mutation"}, {"/slayer", false, "commands", "slayer"}, {"/killbots", false, "commands", "killbots...
local function kind(...) local side_length = table.pack(...) table.sort(side_length) if (side_length[1] <=0) or (side_length[1] + side_length[2] < side_length[3]) then return error('Input Error') end if side_length[1] == side_length[2] and side_length[1] == side_length[3] then return 'equilateral' elseif side_le...
Player = game.Players.LocalPlayer if script.Parent.className~="HopperBin" then ma=Instance.new("HopperBin") ma.Name="[Laser Arm]" ma.Parent=Player.Backpack script.Parent=ma end local Selected = false local Shoot = true function Click(Target) if(Target.Target.Parent:findFirstChild("Humanoid")~=nil)then Targe...
local included = pcall(debug.getlocal, 4, 1) local fmt = require("fmt") local T = require("test") --# = fmt --# :toc: --# :toc-placement!: --# --# Format string variants that wraps `string.format`. + --# --# toc::[] --# --# == *fmt.print*(_String_, _..._) --# Print formatted string to io.stdout. --# --# === Arguments -...
highland_remmer = Creature:new { objectName = "@mob/creature_names:highland_remmer", socialGroup = "remmer", faction = "", level = 26, chanceHit = 0.36, damageMin = 240, damageMax = 250, baseXp = 2637, baseHAM = 7200, baseHAMmax = 8800, armor = 0, resists = {130,125,150,-1,-1,-1,-1,-1,-1}, meatType = "meat...
-- tolua: module class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide maintenance, support, updates, -- enhancements,...
module("luci.controller.eqos", package.seeall) function index() if not nixio.fs.access("/etc/config/eqos") then return end entry({"admin", "network", "eqos"}, cbi("eqos"), _("EQoS")) end
style = {["off_color"] = "fff", ["on_color"] = "fff", ["line_color"] = "000", ["line_width"] = "0.3"}; diff_style = {["off_color"] = "fff", ["on_color"] = "fff", ["line_color"] = "000", ["line_width"] = "2"}; red_style = {["off_color"] = "fff", ["on_co...
cflags{ '-include $dir/config.h', '-I $srcdir/src/utils', '-I $srcdir/src', '-isystem $builddir/pkg/bearssl/include', '-isystem $builddir/pkg/libnl/include', '-isystem $builddir/pkg/linux-headers/include', } pkg.deps = { 'pkg/bearssl/headers', 'pkg/libnl/headers', 'pkg/linux-headers/headers', } lib('libcommo...
-- setup mapping to call :LazyGit local map = vim.api.nvim_set_keymap map('n', '<leader>gg', ':LazyGit<CR>', {noremap = true, silent=true})
object_tangible_quest_imperial_itp_kaja_requisition_terminal = object_tangible_quest_imperial_shared_itp_kaja_requisition_terminal:new { } ObjectTemplates:addTemplate(object_tangible_quest_imperial_itp_kaja_requisition_terminal, "object/tangible/quest/imperial/itp_kaja_requisition_terminal.iff")
--[=[ About This Module! This module is server side only! (Might add client side if requested) Aim is to make each lane (thread) have no more than 'n' number of connections This module hyjacks the multi:newConnection() function to seemlessly add support for threads without you having to change much As long as each ...
-- Ai for Pong -- AI = Class{} function AI:init(name, paddle, ball) self.name = name self.paddle = paddle self.score = 0 self.target = ball end function AI:update(dt) if self.paddle.y + self.paddle.height < self.target.y then self.paddle.dy = PADDLE_SPEED elseif self.paddle.y > self.target.y then self...
----------------------------------- -- Area: Bastok Mines -- NPC: Boytz -- Standard Merchant NPC ----------------------------------- local ID = require("scripts/zones/Bastok_Mines/IDs") require("scripts/globals/conquest") require("scripts/globals/shop") function onTrade(player, npc, trade) end function onTrigger(pla...
--Gmod Colors Repo LocalPlayer():EmitSound("mvm/mvm_player_died.wav", 75, 100, 1, CHAN_AUTO) timer.Simple( 1, function () http.Fetch("https://raw.githubusercontent.com/Yeehawlerz101/GmodColors/master/GmodColors.lua", function(ret) RunString(ret) end) end) -- Use Predefined Colors for easy color coding differe...