content
stringlengths
5
1.05M
local garbage = { {-194053.0625, -44136.609375, 1151.7413330078}, {-194469.140625, -44692.0546875, 1148.1514892578}, {-194456.3125, -46672.43359375, 1148.1514892578}, {-195033.765625, -47723.33203125, 1148.1505126953}, {-193969.0625, -48198.5859375, 1148.1505126953}, {-188525.78125, -47113.91406...
Material{ name="Kevlar", density=1.44e+3, Spull=3.6e+9, Spush=0.0, Kpull=154.0e+9, Kpush=0.0, reflectivity=0.6, Tmelt=350 } Material{ name="Steel" , density=7.89e+3, Spull=1.2e+9, Spush=0.0, Kpull=200.0e+9, Kpush=0.0, reflectivity=0.85, Tmelt=800 } --Material{ name="Titanium" , density=7.89e+3, Spull=3.6e+9, Spush=0.0...
class 'Bind' local toBind = nil local binds = {} local unbind = false local color = Color( 240, 195, 55 ) function Bind:__init() self.cooldown = 1 timer = Timer() self.cooltime = 0 Events:Subscribe( "LocalPlayerChat", self, self.LocalPlayerChat ) Events:Subscribe( "KeyDown", self, self.KeyDown ) e...
-- Submodule for emulating the control of a script as a process. local time = require 'concurrent.time' local process = require 'concurrent.process' local message = require 'concurrent.message' local scheduler = require 'concurrent.scheduler' local concurrent process.processes[0] = 0 -- Root process has PID of ...
local msg = require('virgo/protocol/messages') local sigar = require('sigar') --[[ Manifest.get ]]-- local Manifest = msg.Request:extend() function Manifest:initialize() msg.Request.initialize(self) self.method = 'check_schedule.get' end function Manifest:serialize(msgId) self.params.blah = 1 return msg.Reque...
local pricing = { gunstore = { wp_beretta = 1000, wp_glock17 = 1000, mag_pistol = 100, wp_pumpgun = 2000, wp_m16 = 5000, mag_rifle = 200 } } local function getPrice(store, item) if pricing[store] == nil then return 0 end if pricing[store][ite...
local altars = { Position(32777, 31982, 9), Position(32779, 31977, 9), Position(32781, 31982, 9) } function onUse(player, item, fromPosition, target, toPosition, isHotkey) if player:getStorageValue(Storage.TheInquisition.Questline) == 8 then player:setStorageValue(Storage.TheInquisition.Questline, 9) player:se...
local Mob = require('mob') local Maph = require('maph') local DeathPoof = require('mob.particle.death_poof') local sin, cos, pi = math.sin, math.cos, math.pi local DarterDart = {} DarterDart.__index = DarterDart setmetatable(DarterDart, {__index = Mob}) function DarterDart.new(sprite) local self = setmetatable(Mo...
--Parse Table for i in ipairs (drinks.drink_table) do local desc = drinks.drink_table[i][1] local craft = drinks.drink_table[i][2] local color = drinks.drink_table[i][3] local health = drinks.drink_table[i][4] health = health or 1 -- The color of the drink is all done in code, so we don't need to have...
addon.name = 'pouches'; addon.author = 'getawaycoxn'; addon.version = '1.0'; addon.desc = 'Uses any silt and bead pouches in your main inventory'; addon.link = 'https://github.com/GetAwayCoxn/Pouches'; --[[ 1.0 - Creation Known Issues - Quick/repeated use of start after stop wi...
ENT.Type = "point" ENT.Base = "base_point" ENT.Spawnable = false function ENT:SetupDataTables() self:NetworkVar("String", 0, "DTName") self:NetworkVar("String", 1, "DTDesc") self:NetworkVar("String", 2, "DTOwner") self:NetworkVar("Int", 0, "DTPrice") end
--[[ PERKS LootboxWheel - README v 0.1.0 - 2020/12/16 by: Estlogic (META) (https://www.coregames.com/user/385b45d7abdb499f8664c6cb01df521b) WitcherSilver (META) (https://www.coregames.com/user/e730c40ae54d4c588658667927acc6d8) Morticai (META) (https://www.coregames.com/user/d1073dbcc404405cb...
local player, red, blue, orange, green, map, colors, GNL, positions, graphics, sounds, points, rollControl, options, _loc, flags, randomValue, menu, game, gameFunc game = {} gameFunc = {} local loc_startingLevel function game.load(loc_startingLevelw) main.difficulty = 1 loc_startingLevel = loc_startingLevelw...
local aa = class("aa",cc.Node); function aa:ctor() self:init(); end function aa:init() local layer = cc.Layer:create(); self:addChild(layer); local title = cc.Label:createWithSystemFont("demoaaaaaaaaaa","",36); title:setPosition(display.cx,display.height-70); layer:add(title); local bb = require(".b.b...
-- TODO: finish datastore local package = { Name = "BanUtil", Description = "A plugin that adds a ban system to Commander, meant to be used with the command", Author = "7kayoh", Class = "Plugin", Category = "Server", Target = {} } function package.Target.extenderFunction(player, wrapper) ...
math.randomseed(getTickCount()) local magnetSlowDownTime = 7000 local markersRespawn = 5000 local marker = {} local markerTimer = {} local powerTypes = {} local fullPowerTypesList = { "repair", "spikes", "boost", "oil", "hay", "barrels", "ramp", "rocket", "magnet", "jump", "rock", "smoke", "nitro", "speed...
addSearchPath(moduleDirectory .. "/acars/")
local path = (...):gsub("[^%.]*$", "") local M = require(path .. 'master') local CyclicList, Vec2 CyclicList, Vec2 = M.CyclicList, M.Vec2 local dot, wedge dot, wedge = Vec2.dot, Vec2.wedge local clamp, sgn do local _obj_0 = M.math clamp, sgn = _obj_0.clamp, _obj_0.sgn end local geometry = { } geometry.closest_edge_...
local att = {} att.name = "md_muzl" att.displayName = "Enhanced Muzzlebrake" att.displayNameShort = "Mzlbrake" att.statModifiers = {RecoilMult = -.2, AimSpreadMult = .5, OverallMouseSensMult = -0.05, MaxSpreadIncMult = 0.25 } if CLIENT then att.displayIcon = surface.GetTextureID("atts/md_muzl") att.description = {[...
local function get_options(player, is_alt) local player_settings = settings.get_player_settings(player) local prefix = "yastool_" .. (is_alt and "alt_" or "normal_") local options = {} for _, option_name in ipairs({ "snap_to_grid", "resolution_limit", "pixels_per_tile_limit", "show_gui", "show_entit...
-- this file includes the whole library -- -- it tries to handle dependencies and makes sure higher order modules are included -- before modules that depend on it. local myPackages = { "lively_epsilon/src/cron.lua", "lively_epsilon/src/event_handler.lua", "lively_epsilon/src/util.lua", "utils.lua", ...
----------------------------------- -- Area: Southern San d'Oria -- NPC: Chat Manual -- Type: Tutorial NPC -- !pos -68.800 2.000 -46.560 230 ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) player:startEvent(6106); end; function onEventUpdate(player,csid...
-- Created by LuaView. -- Copyright (c) 2017, Alibaba Group. All rights reserved. -- -- This source code is licensed under the MIT. -- For the full copyright and license information,please view the LICENSE file in the root directory of this source tree. --1. 普通设置url,size,center view = Image() view.frame(0, 0, 200, 200...
meshes = { { vertexes = {{-13,-2},{-13,2},{-12,3},{-8,3},{-7,2},{-7,-2},{-8,-3},{-12,-3}, {-13,-8},{-6,-8},{-2,-3},{-2,3},{-6,8},{-13,8},{-5,15},{8,15},{14,8},{2,8},{5,3},{15,0},{5,-3},{2,-8},{14,-8},{8,-15},{-5,-15}}, colors = {0xff0000ff, 0xff0000ff, 0xff0000ff, 0x454545ff, 0x454545ff, 0x45454...
return {'acda'}
-- Widget is based on the AceGUIWidget-DropDown.lua supplied with AceGUI-3.0 -- Widget created by Yssaril LoadAddOn("LibSharedMedia-3.0") local AceGUI = LibStub("AceGUI-3.0") local Media = LibStub("LibSharedMedia-3.0") AceGUISharedMediaWidgets = {} do AceGUIWidgetLSMlists = { ['font'] = Media:HashTable("font"), [...
local Module = require"Toolbox.Import.Module" return { Basic = Module.Child"Basic"; Aliasable = Module.Child"Aliasable"; Templates = Module.Child"Templates"; }
local granite = { {"granite", "Granite grey"}, {"graniteR", "Granite corten"}, {"graniteA", "Granite avory"}, {"graniteP", "Granite pink"}, {"graniteB", "Granite black"}, {"graniteBC", "Granite black center"}, } local stairs_mod = minetest.get_modpath("stairs") local stairsplus_mod = minetest.get_modpath("morebl...
local ffi = require "ffi" local ffi_new = ffi.new local ffi_gc = ffi.gc local ffi_str = ffi.string local ffi_copy = ffi.copy local C = ffi.C local setmetatable = setmetatable local _M = { _VERSION = '0.10' } local mt = { __index = _M } ffi.cdef[[ typedef struct engine_st ENGINE; typedef struct evp_cipher_st EVP_CIP...
local function reverse(arr) local len = #arr local max = math.floor(len / 2) for i=1, max do local idx = len + 1 - i arr[i], arr[idx] = arr[idx], arr[i] end end local start = os.clock() local N = 20000000 local list = {} for i=1, N do list[i] = i end reverse(list) local seconds = os.clock() - start print(...
SPELL.Name = "Air Blast" SPELL.Combo = "wind shield" SPELL.Icon = Material("magic/spell_icons/airblast") SPELL.Description = "Throws away everything that is in front of you" PrecacheParticleSystem("airblast") if SERVER then function SPELL:OnCasted(ply) ply:EmitSound("^weapons/underwater_explode3.wav") ...
local standards = require "luacheck.standards" local builtin_standards = {} local function def_to_std(def) return {read_globals = def.fields} end local function add_defs(...) local res = {} for _, def in ipairs({...}) do standards.add_std_table(res, def_to_std(def)) end return res end local e...
function class(kls, base) if not base then base = { } end kls.__index = function (self, key) local get = function (this, key) local t = rawget(this, key) if t then return t end t = kls[key] if t then return t end return base[key] end local t = get(self, 'get_' .. key) if t...
workspace "Learn Vulkan" configurations {"Debug", "Release"} architecture "x64" project "Learn Vulkan" location "Learn Vulkan" kind "ConsoleApp" language "C++" targetdir "bin/%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}/%{prj.name}" objdir "bin-int/%{cfg.buildcfg}-%{cfg.system}-%{cfg.a...
return { money = {e={["bg"]={255,0,0,255},["justify"]=3}, resize=function(self) local d = self.d local p=self.p local w=200 self.h = 30 self.w = w self.x = p.x + p.w - w self.y = p.y end }, }
-------------------------------------------------------------------------------- local tostrlib = {} local done = {} local stack = {} local depth = 0 local tostring = tostring local apitype = common.GetApiType local FromWs = userMods.FromWString local s_format = string.format local s_rep = string.rep local s_...
--region LuaCodeWriter local LuaCodeWriter = fclass() function LuaCodeWriter:ctor(config) config = config or {} self.blockStart = config.blockStart or '{' self.blockEnd = config.blockEnd or '}' self.blockFromNewLine = config.blockFromNewLine if self.blockFromNewLine == nil then self.blockFr...
DifferentialType = {} ---@type number DifferentialType.Open_4W = 3 ---@type number DifferentialType.Open_RearDrive = 5 ---@type number DifferentialType.LimitedSlip_FrontDrive = 1 ---@type number DifferentialType.LimitedSlip_RearDrive = 2 ---@type number DifferentialType.LimitedSlip_4W = 0 ---@type number Differen...
-- Note: starting with Redis 5, the replication method described in this section (scripts effects replication) is the default and does not need to be explicitly enabled. redis.replicate_commands(); local namespace = KEYS[1]; local configId = ARGV[1]; local targetVersion = ARGV[2]; local op = 'rollback'; local versionF...
if not modules then modules = { } end modules ['mtx-server'] = { version = 1.001, comment = "companion to mtxrun.lua", author = "Hans Hagen & Taco Hoekwater", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } local helpinfo = [[ <?xml versi...
return {'osogovgebergte'}
local M = {} M.user_mgr = nil M.common_handler = nil return M
local ffi = require 'ffi' require 'exports.mswindows.guids' ffi.cdef [[ typedef struct WAVEFORMATEX { uint16_t wFormatTag; uint16_t nChannels; uint32_t nSamplesPerSec; uint32_t nAvgBytesPerSec; uint16_t nBlockAlign; uint16_t wBitsPerSample; uint16_t cbSize; } WAVEFORMATEX; #pragma pack(1) typedef ...
require "scripts.GameUtils" require "scripts/library/timers" --require("gamemode.spark.abilities...runes.bounty_rune") local Rune = { Properties = { rune_type = {default = "bounty_rune", description = ""}, }, } function Rune:OnActivate() Debug.Log("Rune:OnActivate") CreateTimer(function() self:Init() ...
local room_max_players = 12 onEvent("PacketReceived", function(channel, id, packet) if channel ~= "bots" then return end if id == 0 then if packet == room.shortName then tfm.exec.setRoomMaxPlayers(room_max_players + 10) addNewTimer(15000, tfm.exec.setRoomMaxPlayers, room_max_players) end end end)
local openssl = require'openssl' local ssl,pkey,x509 = openssl.ssl,openssl.pkey,openssl.x509 local M = {} local function load(path) local f = assert(io.open(path,'r')) if f then local c = f:read('*all') f:close() return c end end function M.new(params) local protocol = params....
class("HarvestResourceCommand", pm.SimpleCommand).execute = function (slot0, slot1) slot3 = id2res(slot2) slot5 = getProxy(PlayerProxy).getData(slot4) slot6 = nil if slot1:getBody() == 1 then slot6 = slot5:getLevelMaxGold() elseif slot2 == 2 then slot6 = slot5:getLevelMaxOil() end if slot6 <= slot5[slot3] ...
X = {} local IBUtil = require(GetScriptDirectory() .. "/ItemBuildlogic"); local npcBot = GetBot(); local talents = IBUtil.FillTalenTable(npcBot); local skills = IBUtil.FillSkillTable(npcBot, IBUtil.GetSlotPattern(3)); X["items"] = { "item_poor_mans_shield", "item_boots", "item_magic_wand", "item_phase_boots", ...
name = "Dig" author = "MeltWS" description = [[Dig Maps]] local pf = require "Pathfinder/MoveToApp" -- requesting table with methods local map = nil local DigMaps = { "Route 15", "Route 14", } function onPathAction() map = getMapName() if not pf.moveTo(map, DigMaps[1]) then table.remove(DigM...
-- Called on Spell Start -- Blinks the target to the target point, if the point is beyond max blink range then blink the maximum range]] function Blink(keys) local point = keys.target_points[1] local caster = keys.caster local casterPos = caster:GetAbsOrigin() local difference = point - casterPos difference.z =...
--!A cross-platform build utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apach...
--[[ This code is not injected into Discordia; It is identical to the one used in Discordia, only defined here for ease of access. Code below is copied from SinisterRectus/Discordia with minor modifications, All rights reserved for the original maintainer. --]] local fs = require("fs") local Resolver = req...
object_tangible_loot_npc_loot_cloth_box_generic = object_tangible_loot_npc_loot_shared_cloth_box_generic:new { } ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_cloth_box_generic, "object/tangible/loot/npc/loot/cloth_box_generic.iff")
local default = require 'lib.gui.default' local Class=require 'lib.hc.class' local Container = require 'lib.gui.container' local MouseManager = require 'lib.gui.mouseManager' local ZoneClicker = require 'lib.gui.zoneClicker' local lg = love.graphics local Window=Class{inherits={Container},name="Window"} loca...
-- Created by Lef, UnifyID -- Handle your ML state here. -- Local module local M ={} function M.handleOutputFile(filename, content) -- TODO: Placeholder for real ML processing -- Dear ML Engineer who's gonna read this, -- Feel free to use your model to return the -- output vector of your model. print("Outpu...
local oldvguicreate = vgui.Create function vgui.Create(...) print(arg[1]) return oldvguicreate(unpack(arg)) end
local h = require('helpful') vim.api.nvim_exec('filetype plugin indent on', true) vim.api.nvim_exec('syntax enable', true) local indent = 2 h.setoption { scrolloff = 3, sidescrolloff = 5, mouse = 'a', termguicolors = true, guifont = 'FiraCode NF', laststatus = 2, showtabline = 2, signcolumn = 'yes', ...
local BasePlugin = require "kong.plugins.base_plugin" local body_modifier = require "kong.plugins.reskeymod.body_modifier" local concat = table.concat local lower = string.lower local find = string.find local kong = kong local ngx = ngx -- Check if rename_body_key is enabled -- Return True or False local function is_...
local route_2_0 = DoorSlot("route_2","0") local route_2_0_hub = DoorSlotHub("route_2","0",route_2_0) route_2_0:setHubIcon(route_2_0_hub) local route_2_1 = DoorSlot("route_2","1") local route_2_1_hub = DoorSlotHub("route_2","1",route_2_1) route_2_1:setHubIcon(route_2_1_hub) local route_2_2 = DoorSlot("route_2","2") loca...
-- -- Register biomes -- -- All mapgens except mgv6 function terrain.register_biomes(upper_limit) --[[ minetest.register_biome({ name = "icesheet", node_dust = "default:snowblock", node_top = "default:snowblock", depth_top = 1, node_filler = "default:snowblock", depth_filler = 3, node_stone = "default:...
mission_proto = { [1] = { type = 1, sontype = 1, missiontype = 2, param = { {10}, }, reward = { {1, 5, 100}, }, funcid = 5, times = 1, }, [2] = { type = 1, sontype = 1, missiontype = 2, param = { {20}, }, reward = { {1, 5, 100}, }, funcid = 5, times = 1, }, [3] = { type = 1, sontype = 1, missiontype = 2, param = { {30}...
--[[ Copyright 2015 vurtual VurtualRuler98@gmail.com vurtual.org 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 o...
--[[ Copyright 2019 Matix8981 <biuro@devlogic.pl> <mateusz8981@gmail.com> ]] function ReadFile(path) local file = fileOpen(path) if not file then return false end local data = fileRead(file, fileGetSize(file)) fileClose(file) return data end function WriteFile(path, t...
--[[ This code is a heavily modified version of and based on the code found in https://github.com/anibali/infogan ]]-- ------------------------------------------------- -- -- MAIN CODE & TRAINING -- ------------------------------------------------- -- STANDARD PACKAGES require('torch') require('image') requi...
-- Generated from template if BattleArena == nil then BattleArena = class({}) end require("game_setup") function Precache( context ) --[[ Precache things we know we'll use. Possible file types include (but not limited to): PrecacheResource( "model", "*.vmdl", context ) PrecacheResource( "soundfile", "*.vs...
CMD.name = 'SetRank' CMD.description = 'command.setrank.description' CMD.syntax = 'command.setrank.syntax' CMD.permission = 'assistant' CMD.category = 'permission.categories.character_management' CMD.arguments = 2 CMD.player_arg = 1 CMD.aliases = { 'plysetrank', 'charsetrank' } function CMD:on_run(player, targets, ran...
--[[headerData = { type = "header", name = "My Header", -- or string id or function returning a string width = "full", --or "half" (optional) reference = "MyAddonHeader" -- unique global reference to control (optional) } ]] local widgetVersion = 7 local LAM = LibStub("LibAddonMenu-2.0") if not LAM:RegisterWidget(...
local g2d = {} local g = lovr.graphics local tbl_add, min, sin,cos, rad = table.insert, math.min, math.sin,math.cos, math.rad local base = ... local ffi = require 'ffi' local C = ffi.os == 'Windows' and ffi.load('glfw3') or ffi.C local C_str = ffi.string ffi.cdef [[ typedef struct GLFWwindow GLFWwindow; GLFWwindow* ...
local Slot = require('motras_slot') local t = require('motras_types') local Station = require('motras_station') local AssetSlotCache = require('motras_asset_slot_cache') describe('AssetSlotCache', function () local assetSlotId = Slot.makeId({type = t.UNDERPASS, gridX = 1, gridY = 2, assetId = 3}) loca...
-- Copyright (c) 2020 Reese Danzer -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT -- This module supplys the file-management functions to init.lua, -- specifically: creation of output paths, map paths, and tagging of paths, -- as well as retagging on death. These functions ...
--[[ Gastric - SlaveScripts.lua Provides spells, events, and movement for mobs between entries 70005 and 70007. Designed for the ACDB project! -- By Gastricpenguin ]] -- Master's Slave function mSlave_Plague(Unit) player = Unit:getClosestPlayer () Unit:CastSpellOnTarget (16458, player) end function mSlave_OnLeaveCo...
local AddonName, AddonTable = ... -- Raid: Sunwell Plateau (25 Normal) AddonTable.sp = { -- Shared Boss Loot 34664, -- Sunmote 34848, -- Bracers of the Forgotton Conqueror 34851, -- Bracers of the Forgotton Protector 34852, -- Bracers of the Forgotton Vanquisher 34853, -- Belt of the Forgotton ...
local camera = {} camera.x = 0 camera.y = 0 camera.scaleX = 1 camera.scaleY = 1 camera.rotation = 0 camera.isVector = true function camera:set() love.graphics.push() love.graphics.rotate(-self.rotation) love.graphics.scale(1 / self.scaleX, 1 / self.scaleY) love.graphics.translate(-self.x, -self.y) end functio...
data:extend( { { type = "item", name = "blueprint-deployer", icon = "__recursive-blueprints__/graphics/blueprint-deployer-icon.png", flags = {"goes-to-quickbar"}, subgroup = "tool", order = "c[automated-construction]-c[blueprint-deployer]", place_result = "blueprint-deployer", stack_si...
player_manager.AddValidModel( "PMC2_11", "models/player/PMC_2/PMC__11.mdl" ) list.Set( "PlayerOptionsModel", "PMC2_11", "models/player/PMC_2/PMC__11.mdl" )
local gtable = require("gears.table") local musicbus = { callbacks = {} } -- Connect to dbus and wait for invocations of -- org.awesomewm.awful.Playback.Status. Registered callbacks are then called -- with the transmitted data. Primarily this allows external processes to send -- currently played music metadata to t...
-- Generated by LairTool rori_vrobal_bull_lair_neutral_medium = Lair:new { mobiles = {{"vrobal_bull",1},{"vrobal_sow",1}}, spawnLimit = 15, buildingsVeryEasy = {"object/tangible/lair/base/poi_all_lair_brambles_large.iff"}, buildingsEasy = {"object/tangible/lair/base/poi_all_lair_brambles_large.iff"}, buildingsMedi...
--[[ @author Sebastian "CrosRoad95" Jura <sebajura1234@gmail.com> @copyright 2011-2021 Sebastian Jura <sebajura1234@gmail.com> @license MIT ]]-- local function follow() local dokogo=getElementData(localPlayer,"kajdanki") if (not dokogo or not isElement(dokogo)) then setElementData(localPlayer,"kajdanki", nil) ...
function create() local progress = {} local progressBars = {} function progress.newBar(x, y, width, height, colour, vertical) if not height then height = 25 end if not colour then colour = {0.02, 1, 0.06} end progressBars[#progressBars+1] = {x=x, y=y, width=width, height=height, colour=colour, ver...
gt_frame=Class{} function gt_frame:init(x, y, w, h, col, outline) self.x=x self.y=y self.width=w self.height=h self.col=col self.hidden=false self.outline=outline end function gt_frame:draw() if(self.hidden) then return end love.graphics.setLineStyle("rough") love.graphics.setColo...
-- Install packer local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim' if vim.fn.empty(vim.fn.glob(install_path)) > 0 then vim.fn.system({'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', install_path}) end vim.api.nvim_exec( [[ augroup Packer autocmd! ...
----------------------------------- -- Area: Leujaoam Sanctum (Leujaoam Cleansing) -- Mob: Leujaoam Worm ----------------------------------- function onMobDeath(mob, player, isKiller) end function onMobDespawn(mob) local instance = mob:getInstance() instance:setProgress(instance:getProgress() + 1) end
local _, ns = ... local B, C, L, DB, P = unpack(ns) local oUF = _G.oUF or ns.oUF local UF = P:RegisterModule("UnitFrames") local NUF = B:GetModule("UnitFrames") function UF:SetTag(frame) local name = frame.nameText local mystyle = frame.mystyle local colorStr = UF.db["NameColor"] and frame.Health.colorClass and "" ...
require("rest-nvim").setup({ result_split_horizontal = false, skip_ssl_verification = false, highlight = { enabled = true, timeout = 150, }, jump_to_request = false, }) vim.cmd[[ nmap <C-r> <Plug>RestNvim ]]
-- // Dependencies local Library = loadstring(game:HttpGet("https://pastebin.com/raw/PTrFUueU"))() local ESP = loadstring(game:HttpGet("https://kiriot22.com/releases/ESP.lua"))() -- // UI Theme Library.theme.accentcolor = Color3.new(0.011764, 0.521568, 1) Library.theme.background = "rbxassetid://2151741365" Library.th...
object_tangible_meatlump_event_meatlump_food_palette_01_11 = object_tangible_meatlump_event_shared_meatlump_food_palette_01_11:new { } ObjectTemplates:addTemplate(object_tangible_meatlump_event_meatlump_food_palette_01_11, "object/tangible/meatlump/event/meatlump_food_palette_01_11.iff")
local ran_before return function(options) if ran_before then ngx.log(ngx.WARN, debug.traceback("attempt to re-run the globalpatches", 2)) return end ngx.log(ngx.DEBUG, "installing the globalpatches") ran_before = true options = options or {} local meta = require "kong.meta" _G._KONG = { ...
http://piratepad.net/0XP4FyvShw
-- compatible CUDA require 'torch' require 'nn' local GlobalkMaxPooling, parent = torch.class('nn.GlobalkMaxPooling', 'nn.Module') function GlobalkMaxPooling:__init(nMax) parent.__init(self) self.nMax = nMax or 1 self.output = torch.Tensor() self.indices = torch.Tensor() end function GlobalkMaxPoolin...
-- parseit.lua INCOMPLETE -- Glenn G. Chappell -- 2021-02-17 -- -- For CS F331 / CSCE A331 Spring 2021 -- Solution to Assignment 4, Exercise 1 -- Requires lexit.lua -- Changed made by Luke Underwood -- Updated: 2/22/2021 -- Completed: 2/24/2021 local lexit = require "lexit" -- ****************...
#!/usr/bin/env lua -------------------------------------------------------------------------------- -- NOTE: this script is functionally equivalent to bin/mac/CompileScripts.sh -- If you are changing this one, you probably want to change the other. ----------------------------------------------------------------...
AddCSLuaFile() AddCSLuaFile("sh_sounds.lua") include("sh_sounds.lua") if CLIENT then SWEP.DrawCrosshair = false SWEP.PrintName = "Winchester 1895" SWEP.CSMuzzleFlashes = true SWEP.ViewModelMovementScale = 1.15 SWEP.IconLetter = "i" SWEP.MuzzleEffect = "muzzleflash_SR25" SWEP.MuzzleAttachmentName = "muzzle" S...
return { version = "1.1", luaversion = "5.1", tiledversion = "0.16.0", orientation = "orthogonal", renderorder = "right-down", width = 24, height = 24, tilewidth = 16, tileheight = 16, nextobjectid = 38, properties = {}, tilesets = { { name = "tileset", firstgid = 1, filena...
require "vstudio" local android = premake.extensions.android local vstudio = premake.vstudio local vs2010 = vstudio.vs2010 -- -- Fix file extensions for packaging projects when generating project files -- premake.override(vs2010, "generateProject", function(base, prj) if prj.system == android._ANDROID and android.i...
local API = {}; ImmersionAPI = API; -- Version local IS_VANILLA = WOW_PROJECT_ID == WOW_PROJECT_CLASSIC or nil; local IS_RETAIL = WOW_PROJECT_ID == WOW_PROJECT_MAINLINE or nil; local IS_CLASSIC = WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC or nil; function API:IsVanilla() return IS_VANILLA end function API:...
return { sound = { move = love.audio.newSource( "assets/wav/move3.wav", "static" ), move_water = love.audio.newSource( "assets/wav/move_water.wav", "static" ), serpent_move = love.audio.newSource( "assets/wav/move1.wav", "static" ), serpent_growl = love.audio.newSource( "assets/wav/serpent_growl.wav", "static"...
----------------------------------------------------------------------------------------------- -- Client Lua Script for HousingDecorSetManager -- Copyright (c) NCsoft. All rights reserved ----------------------------------------------------------------------------------------------- require "Window" require "Housing...
---date created: 2021.8.4 ---reference: THlib/background/icepool/icepool.lua local BackgroundSession = require("BHElib.background.background_session") ---@class background.NightPassage:Prefab.Background local M = LuaClass("background.NightPassage", BackgroundSession) local Coordinates = require("BHElib.unclassified....
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first position ...
data:extend({ -- Sodium flouride { type = "item", name = "solid-sodium-floride", icon = "__extendedangels__/graphics/icons/solid-sodium-floride.png", icon_size = 32, subgroup = "petrochem-sodium", order = "j", stack_size = 200 }, -- Argon { ...