content
stringlengths
5
1.05M
--[[ module: GraphObserver author: DylanYang time: 2021-02-21 23:28:07 idea: advance: ]] local interface = require("patterns.behavioral.observer.IObserver") local _M = Class("GraphObserver", interface) local public = _M.public function public:Update(generator) printl("GraphObserver:") l...
structure.library_project("coconut-pulp-world")
local theme = {} theme.font = "Hack NF 12" theme.awesome_icon = "~/.config/awesome/theme/artix-icon.png" theme.useless_gap = 0 theme.border_width = 2 -- {{{ colors theme.bg_normal = "#1A1B26" theme.bg_focus = "#1A1B26" theme.bg_urgent = "#1A1B26" theme.bg_minimize = "#AAAAAA" theme.bg_...
local Core = LibStub("AceAddon-3.0"):GetAddon("AddonProfileShare") local _,i,j,k,v local AceSerializer = LibStub:GetLibrary("AceSerializer-3.0") local LibDeflate = LibStub:GetLibrary("LibDeflate") local mod = {} Core.Import = mod function mod:Init() self.auto_backup_status = true self.options = { type = "group",...
--- -- @class HELPSCRN local IsValid = IsValid --- -- @realm client CreateConVar("ttt_spectator_mode", "0", FCVAR_ARCHIVE) --- -- @realm client CreateConVar("ttt_mute_team_check", "0") local function SpectateCallback(cv, old, new) local num = tonumber(new) if num and (num == 0 or num == 1) then RunConsoleComma...
-- Description: Data inclusions --- Constants Constants = (require 'cores.constants.constants')() --- Groups require('prototypes.item-groups') --- Items require('prototypes.items.se-pattern-buffer') require('prototypes.items.se-phase-transition-coil') require('prototypes.items.se-pretoleum-quartz') require('prototypes...
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] ITEM.name = "Medical Base" ITEM.model = Model("models/bloocobalt/l4d/items/w_eq_pills.mdl") ITEM.description = "A bottle of antibiotics used to treat bacterial complications." ITEM.backgroundColor = Color(76, 37, 29, 1...
--@name Coroutine Example --@author Radon --@server -- Some functions for checking our quota usage. local function checkQ(n) return quotaAverage() < quotaMax()*n end -- Check if we should yield local function yieldCheck() if not checkQ(0.95) then coroutine.yield() end end -- Create the coroutine -- The Function...
reb.util = reb.util or {} function reb.util.Include(name) if string.find(name, "sh_") then include(name) AddCSLuaFile(name) elseif string.find(name, "sv_") then if (SERVER) then include(name) end elseif string.find(name, "cl_") then if (SERVER) then AddCSLuaFile(name) else include(name) end ...
local concord = require("lib.concord") return concord.component( function(e, poses, current, deaths, walkStages, walkFrameTime) local reversePoses = {} for i, v in ipairs(poses) do reversePoses[v] = i end e.list = poses e.byName = reversePoses e.current = reversePoses[current] and current or error("Non...
local assert = require("vimp.util.assert") local MapInfo do local _class_0 local _base_0 = { _get_actual_rhs = function(self) if type(self.rhs) == 'string' then return self.rhs end assert.that(type(self.rhs) == 'function') if self.options.expr then return "luaeval('_vimp:...
function divide(parametro) linha = {} n = 0 -- parametro para espaço "*l" for i in string.gmatch(io.read(parametro), "%S+") do n = n + 1 linha[n] = tonumber(i) end return linha end -------------------------------------------------------------------------------------------------- -------------...
local R = require "rigel" local RM = require "generators.modules" local types = require("types") local harness = require "generators.harness" local f = require "fixed" W = 128 H = 64 T = 8 ------------ local ainp = f.parameter("ainp",types.uint(8)) local a = ainp:lift(0) local lowband = ( a:lt(f.constant(32)) ):__and...
--- -- Sink one or more real-valued signals to a WAV file. The supported sample -- formats are 8-bit unsigned integer, 16-bit signed integer, and 32-bit signed -- integer. -- -- @category Sinks -- @block WAVFileSink -- @tparam string|file|int file Filename, file object, or file descriptor -- @tparam int num_channels Nu...
--Copyright 2016 Alex Iverson local eventStream = require"fr.eventStream" local function fromTable(tab) local published = false return eventStream.create(function(self, other) if not published then published = true for i=1, #tab do local finished = other("Next", tab[i]) i...
-------------------------------------------------------------------------- -- Lmod License -------------------------------------------------------------------------- -- -- Lmod is licensed under the terms of the MIT license reproduced below. -- This means that Lmod is free software and can be used for both academic -...
local crows = require('crows') ---@type Feature local search = { plugins = {} } search.pre = function() vim.opt.ignorecase = true end search.post = function() crows.key.map('Clear search', 'n', '<leader>/', ':nohlsearch<CR>') end -- global replace search.plugins[#search.plugins + 1] = { 'dyng/ctrlsf.vim', co...
--ファラオニック・アドベント --Script by Chrono-Genex function c100291001.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(100291001,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCountLimit(1,100291001) e1:SetCo...
workspace "Smok" --architecture "x86_64" architecture "x86" startproject "Sandbox" configurations { "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" includeDir = {} includeDir["GLFW"] = "Library/GLFW/include" includeDir["Glad...
if not ATTACHMENT then ATTACHMENT = {} end ATTACHMENT.Name = "Aimpoint CompM2" --ATTACHMENT.ID = "base" -- normally this is just your filename ATTACHMENT.Description = { TFA.AttachmentColors["="], "10% higher zoom", TFA.AttachmentColors["-"], "7.5% higher zoom time" } ATTACHMENT.Icon = "entities/ins2_si_rds.png" --Re...
-- /****************************************************************************** -- Copyright (c) 2021 NovAtel 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 restri...
local PSBT = PSBT local ModuleProto = PSBT.ModuleProto local PSBT_Debug = ModuleProto:Subclass() PSBT_Debug._ticker = 0.0 local CBM = CALLBACK_MANAGER local kVerison = 1.0 local PSBT_EVENTS = PSBT.EVENTS local PSBT_AREAS ...
local bit = require"bit" local bnot = bit.bnot local bor = bit.bor local bxor = bit.bxor local band = bit.band local rshift = bit.rshift local arshift = bit.arshift local lshift = bit.lshift --[[ Add integers, wrapping at 2^32. This uses 16-bit operations internally to work around bugs in some JS interpreters. --]]...
-- cactus/init.lua -- Load support for Minebase translation. local S = minetest.get_translator("cactus") local cactus_path = minetest.get_modpath("cactus") minetest.register_craft({ type = "fuel", recipe = "cactus:cactus", burntime = 15, }) minetest.register_craft({ output = "cactus:large_seedling", recipe = ...
-- Author : Ahmed A. Khfagy -- made in CS50 into to Game Development -- this class is for the playing state PlayState = Class{__includes = BasicState} function PlayState:enter(params) self.ball = params.ball self.players = params.players end local pause = false function PlayState:update(dt) if love....
-- 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. -- module:depends("http"); local open = io.open; local fileserver = require"net.http.files"; local base_pat...
local NAME, S = ... local L = S.L ModernQuestWatch = CreateFrame("Frame") local MQW = ModernQuestWatch local AnchorFrame = CreateFrame("Frame") local ClickFrames = {} local db local defaults = { db_version = 3, userplaced = false, point = {"TOPRIGHT", "MinimapCluster", "BOTTOMRIGHT", 0, 0}, } hooksecurefunc("Ques...
dofile("wow_api.lua") dofile("LibStub.lua") dofile("../CallbackHandler-1.0/CallbackHandler-1.0.lua") dofile("../AceDB-3.0/AceDB-3.0.lua") dofile("serialize.lua") -- Test the defaults system do local defaults = { profile = { singleEntry = "singleEntry", tableEntry = { tableDefault = "tableDefault", }, ...
return {'yvan','yvans'}
local user_store = require "api-umbrella.proxy.user_store" local types = require "pl.types" local stringx = require "pl.stringx" local plutils = require "pl.utils" local startswith = stringx.startswith local split = plutils.split local get_user = user_store.get local is_empty = types.is_empty local function resolve_a...
---@meta ---@class cc.SkewBy :cc.SkewTo local SkewBy={ } cc.SkewBy=SkewBy ---* param t In seconds. ---@param t float ---@param sx float ---@param sy float ---@return boolean function SkewBy:initWithDuration (t,sx,sy) end ---* Creates the action.<br> ---* param t Duration time, in seconds.<br> ---* param deltaSkewX...
--------------------------------------------------------------------------------------------------- -- Proposal:https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0249-Persisting-HMI-Capabilities-specific-to-headunit.md -- -- Description: Check that SDL persists all HMI Capabilities (VR/TTS/RC/UI/Bu...
resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937" description "ESX Inventory HUD" version "1.1" ui_page "html/ui.html" client_scripts { "@es_extended/locale.lua", "client/main.lua", "client/trunk.lua", "client/property.lua", "client/player.lua", "locales/cs.lua", "locales/en.lua", "lo...
--[[ Title: Register Modal Author(s): big CreateDate: 2019.09.20 ModifyDate: 2022.04.24 City: Foshan Desc: use the lib: ------------------------------------------------------------ local RegisterModal = NPL.load('(gl)Mod/WorldShare/cellar/RegisterModal/RegisterModal.lua') RegisterModal:ShowPage() ---------------------...
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Copyright 2017 Eric Luehrsen <ericluehrsen@hotmail.com> -- Licensed to the public under the Apache License 2.0. module("luci.controller.unbound", package.seeall) function index() local ucl = luci.model.uci.cu...
-- -- 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 Apache License, Version 2.0 -- (the "License"); you may ...
----------------------------------------------------------------------------- -- twf_ores.lua -- -- This file contains several convienent actions regarding ores that are -- helpful when mining. Ore's are detected using a blacklist rather than a -- whitelist since it's more convienent for mods -- -- @author Timothy ...
------------------ -- Mobile agents have some methods to interact with the environment. -- @classmod -- Mobile local class = require 'Thirdparty.pl.class' local sin = math.sin local cos = math.cos local rad = math.rad local Mobile = class.Mobil(Agent) ------------------ -- Mobil agents are are ...
"protection","fire_protection","feather_falling","blast_protection","projectile_protection","respiration","aqua_affinity","thorns","depth_strider","frost_walker","binding_curse","sharpness","smite","bane_of_arthropods","knockback","fire_aspect","looting","sweeping","efficiency","silk_touch","unbreaking","fortune","powe...
return { -- This is how "random" the ragdoll is. -- When the ragdoll is activated, it randomises all the limbs velocities relative to the HumanoidRootPart, -- which you can configure using ["MaxRandomVelocity"]. -- It also accounts for previous velocity, so say the person is walking forwards they are likely to fal...
require 'torch' local ThrowsError = torch.class('ThrowsError') function ThrowsError:__init() end function ThrowsError:go() a = nil a.foo() end function mysub() error('testing error stacktraces. This error stacktrace is normal, and a good thing :-)') end function ThrowsError:insub_anteater() mysub() end l...
local CoreGui = game:GetService("CoreGui") local CorePackages = game:GetService("CorePackages") local InGameMenuDependencies = require(CorePackages.InGameMenuDependencies) local Roact = InGameMenuDependencies.Roact local t = InGameMenuDependencies.t local UserGameSettings = UserSettings():GetService("UserGameSettings...
DefineClass.OnScreenNotificationsDlg = { __parents = {"XDialog"}, Margins = box(60,60,0,220), FocusOnOpen = "", HAlign = "left", VAlign = "top", gamepad_selection = false, } function OnScreenNotificationsDlg:Init() XWindow:new({ Id = "idNotifications", LayoutMethod = "VOverlappingList", LayoutVSpacing =...
--[[ Benchmark the 'hg-stacked' network arch on the LSP dataset. ]] local function exec_command(command) print('\n') print('Executing command: ' .. command) print('\n') os.execute(command) end --[[ Benchmark network ]] expID = 'hg-stacked' eval_plot_name = 'hg-stacked' exec_command(string.format...
local util = require 'lspconfig.util' return { default_config = { cmd = { 'ghdl-ls' }, filetypes = { 'vhdl' }, root_dir = function(fname) return util.root_pattern 'hdl-prj.json'(fname) or util.find_git_ancestor(fname) end, single_file_support = true, }, docs = { description = [[ htt...
local app = app local libcore = require "core.libcore" local Class = require "Base.Class" local Unit = require "Unit" local GainBias = require "Unit.ViewControl.GainBias" local Pitch = require "Unit.ViewControl.Pitch" local Encoder = require "Encoder" local GrainDelayUnit = Class {} GrainDelayUnit:include(Uni...
if nil ~= require then require "fritomod/OOP-Class"; require "wow/Frame"; end; WoW.Button=OOP.Class("WoW.Button", WoW.Frame); function WoW.Button:ClassName() return "wow/Button"; end; WoW.RegisterFrameType("Button", WoW.Button, "New"); function WoW.Button:SetHighlightTexture() end; function WoW.Button:SetTe...
#!/usr/bin/env lua local server = os.getenv("npm_package_config_server") or "cloud-catcher.squiddev.cc" local out, err = io.open("build/rollup/cloud.lua", "w") if not out then error(err, 0) end local function has_content(line) -- Strip blank lines and line comments return line:find("%S") and not (line:matc...
local function init() local map = vim.api.nvim_set_keymap local mapOpts = { noremap = true } local opts = { auto_session_enabled = true, auto_save_enabled = false, auto_restore_enabled = true, } require'auto-session'.setup(opts) map('n', '<leader>sd', '<CMD>lua require("auto-session").Delete...
local helper = require 'scripts/helper' local basepath = helper.basepath LUA_SCRIPT_ROOT = basepath() function AppendPath(path) package.path = package.path .. string.format(";%s%s", LUA_SCRIPT_ROOT, path) end AppendPath("?.lua") AppendPath("scripts/?.lua") AppendPath("scripts/modules/?.lua") dbg = require("debugg...
local PSBT = PSBT local AnimationPool = PSBT.AnimPoolProto local Translate = AnimationPool:Subclass() function Translate:New( Duration ) local result = AnimationPool.New( self ) result:Initialize( Duration ) return result end function Translate:Initialize( Duration ) self._duration = Dura...
local compe = require'compe' local Source = {} function Source.new() return setmetatable({}, { __index = Source }) end function Source.get_metadata(self) return { priority = 10; dup = 0; menu = '[Zettel]'; -- filetypes = { "vimwiki" }; } end function Source.determine(self, context) return com...
function onLoad(save_state) self.interactable = false -- intialize setUpCards = Global.getTable("setUpCards") setUpData = Global.getTable("setUpData") deploymentCartridge = getObjectFromGUID(setUpData.deploymentCartridgeGUID) conditionsCartridge = getObjectFromGUID(setUpData.conditionsCartridge...
function onUse(player, item, fromPosition, target, toPosition, isHotkey) item:transform(2786) item:decay() Game.createItem(2677, 3, fromPosition) player:addAchievementProgress('Bluebarian', 500) return true end
_addon.author = 'Banggugyangu' _addon.version = '3.0.0' _addon.commands = {'autora', 'ara'} require('functions') local config = require('config') local defaults = { HaltOnTp = true, Delay = 1.5 } local settings = config.load(defaults) local auto = false local player_id windower.send_command('bind ^d ara st...
--- OpenSSL library -- @module configure.modules.openssl local M = {} --- Build OpenSSL library -- -- @param args -- @param args.build Build instance -- @param args.name Name of the project (defaults to 'OpenSSL') -- @param args.version Version to use -- @param args.compiler -- @param args.install_directory -- @param...
-- require 'cunn' require 'nn' -- depth from normal require '../models/get_theoretical_depth_from_normal_v2_multi_res' -- sub criterions require './scale_inv_depth_loss' require './relative_depth_margin' require 'hdf5' require 'image' local relative_depth_margin_log_normal_depth_multi_res, parent = torch.class('nn.r...
local state = {} state._NAME = ... require'hcm' local vector = require'vector' local util = require'util' local movearm = require'movearm' local libArmPlan = require 'libArmPlan' local arm_planner = libArmPlan.new_planner() local T = require'Transform' --Initial hand angle local lhand_rpy0 = {0,0*DEG_TO_RAD, 0*...
local upvalue1 = {} local upvalue2 = {} function f() local a = upvalue1.print local b = upvalue2.print local c = _ENV.print return print end function g() return _ENV.print end function f2(a) upvalue1.print = a upvalue2.print = a _ENV.print = a print = a end
----------------------------------- -- Area: Jugner_Forest_[S] -- NM: Boll Weevil ----------------------------------- require("scripts/globals/mobs") ----------------------------------- function onMobInitialize(mob) mob:setMobMod(tpz.mobMod.ADD_EFFECT, 1) end function onAdditionalEffect(mob, target, damage) ...
-- -- Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com) -- -- Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt -- or copy at http://opensource.org/licenses/MIT) -- local pkmn = require("pkmn") local luaunit = require("luaunit") local items_tests = require("items_tests") local gba_...
local drawableSpriteStruct = require("structs.drawable_sprite") local defaultSpinnerColor = "Blue" local spinner = {} function spinner.depth(room, entity) return entity.dusty and -50 or -8500 end function spinner.sprite(room, entity) local color = entity.color or defaultSpinnerColor local dusty = entity...
--[=[ @function getBoundingBox Based on a series of 4+ points, 4 new points that represent the minimum bounding box are returned. The following image illustrates how this works. From a convex hull, the enclosing rectangle surrounds the hull entirely. ![Enclosing rectangle surrounding a convex hull](/enclosing-...
--[[ s:UI Cinematics Disabler Martin Karer / Sezz, 2014 http://www.sezz.at --]] local S = Apollo.GetPackage("Gemini:Addon-1.1").tPackage:GetAddon("SezzUI"); local M = S:CreateSubmodule("NoCinematics", "Gemini:Hook-1.0"); local log; -------------------------------------------------------------------...
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' description 'issa workin fuckin phone omg' client_script 'client.lua' client_script 'contacts.lua' client_script 'cl_functions.lua' server_script 'server.lua'
-- 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 log = require "util.logger".init("stanzarouter") local hosts = _G.prosody.hosts; local tostring = t...
ITEM.name = "Filtered Charcoal" ITEM.model = Model("models/props_junk/garbage_metalcan002a.mdl") ITEM.description = "A can of powdered activated charcoal from xen material and charcoal." ITEM.width = 1 ITEM.height = 1 ITEM.price = 20 ITEM.category = "Crafting" ITEM.noBusiness = true ITEM.maxStack = 25; ITEM.defaultSta...
---------------------------------------- --log file path local out_path='./' ---------------------------------------- ---------------------------------------- --mobility local w = 1000 --area side (m) local R = 40 --node range (m) local v = 1 --speed (m/s) local L = 500 --epoch length (m) local T...
-------------------------------- -- @module ccexp -------------------------------------------------------- -- the ccexp TMXLayer -- @field [parent=#ccexp] TMXLayer#TMXLayer TMXLayer preloaded module -------------------------------------------------------- -- the ccexp TMXTiledMap -- @field [parent=#ccexp] TMXTiledMa...
-- パラメータ : 各素子値 function process(data, sample_rate, parameters) p = {} for i = 1, #parameters do p[i] = tonumber(parameters[i]) end result = {} if #p <= 1 then return data elseif #p == 2 then for ch = 1, #data do result[ch] = {} for i = 1, #data[ch] do result[ch][i] = data[ch][i] * p[2] / (p[1] +...
--------------------------------------------------------------- -- Copyright 2021 Deviap (https://deviap.com/) -- --------------------------------------------------------------- -- Made available under the MIT License: -- -- https://github.com/deviap/deviap-main/blob/master/LICENSE -- ...
-- OpenGL-Sandbox workspace "LearnOpenGLAAA" architecture "x64" startproject "OpenGL-Sandbox" configurations { "Debug", "Release" } flags { "MultiProcessorCompile" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" -- Include directories relative to OpenGL-Core IncludeDir = {} IncludeD...
print("This is the modded YieldIconManager from 'DLL - Various Mod Components'") ------------------------------------------------- -- Yield Icon Manager ------------------------------------------------- include("FLuaVector"); include("InstanceManager"); local g_AnchorIM = InstanceManager:new("AnchorInstance",...
local PlayerDataManager = class("PlayerDataManager") function PlayerDataManager:ctor() self._all_player_data = {} end function PlayerDataManager:get_instance() if self._instance == nil then self._instance = self:new() end return self._instance end function PlayerDataManager:add_player_data(player_data) local ...
return {[1]={lang={English={[1]={limit={[1]={[1]="#",[2]="#"},[2]={[1]="#",[2]="#"}},text="Adds {0} to {1} Fire Damage to Attacks"}}},name="attack_added_fire",stats={[1]="attack_minimum_added_fire_damage",[2]="attack_maximum_added_fire_damage"}},[2]={lang={English={[1]={limit={[1]={[1]="#",[2]="#"},[2]={[1]="#",[2]="#"...
object_tangible_collection_rebel_battle_right_bracer = object_tangible_collection_shared_rebel_battle_right_bracer:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_rebel_battle_right_bracer, "object/tangible/collection/rebel_battle_right_bracer.iff")
myZombies = { } -- helmetzombies = { 27, 51, 52, 99, 27, 137, 153, 167, 205, 260, 277, 278, 279, 284, 285 } helmetzombies = {} local skinsToReplace = {13, 22, 56, 67, 68, 69, 70, 84, 92, 97, 105, 107, 108, 111, 126, 127, 128, 152, 162, 167, 188, 192, 195, 206, 209, 212, 229, 230, 258, 264, 274, 277, 280, 287}; resourc...
sptbl["pitchamdf"] = { files = { module = "pitchamdf.c", header = "pitchamdf.h", example = "ex_pitchamdf.c", }, func = { create = "sp_pitchamdf_create", destroy = "sp_pitchamdf_destroy", init = "sp_pitchamdf_init", compute = "sp_pitchamdf_compute", ...
require 'eladtools' require 'cudnn' local model = nn.Sequential() -- Convolution Layers model:add(SpatialConvolutionDCT(3, 192, 5, 5,1,1,2,2 )) model:add(cudnn.ReLU(true)) model:add(cudnn.SpatialConvolution(192, 160,1,1 )) model:add(cudnn.ReLU(true)) model:add(cudnn.SpatialConvolution(160,96, 1,1 )) model:add(cudnn...
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [RegisterAppInterface] "ccpu_version" obtaining via GetSystemInfo -- -- Description: -- Getting "ccpu_version" via GetSystemInfo on each SDL starts -- 1. Used preconditions: -- SDL and HMI are runnin...
--[[----------------------------------------------------------------------------- * Infected Wars, an open source Garry's Mod game-mode. * * Infected Wars is the work of multiple authors, * a full list can be found in CONTRIBUTORS.md. * For more information, visit https://github.com/JarnoVgr/InfectedWars * * Inf...
--[[ Netherstorm -- Sunfury Geologist.lua This script was written and is protected by the GPL v2. This script was released by BlackHer0 of the BLUA Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation community. ~~End of License Agreement -- BlackH...
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- mars_bulwark_lua =...
LinkLuaModifier("modifier_kyuubi_chakra_mode_active", "abilities/heroes/naruto/kyuubi_chakra_mode.lua", LUA_MODIFIER_MOTION_NONE) -------------------------------------------------------------------------------- naruto_kyuubi_chakra_mode = naruto_kyuubi_chakra_mode or class({}) ----------------------------------...
Write('This Lua Server Page is stored in ZIP\r\n') Write('as normal Lua code that is compressed\r\n')
local luawa = require('luawa.core') luawa.template:put('hello world')
local ftp = require "ftp" local shortport = require "shortport" local stdnse = require "stdnse" local string = require "string" local vulns = require "vulns" description = [[ Checks for a stack-based buffer overflow in the ProFTPD server, version between 1.3.2rc3 and 1.3.3b. By sending a large number of TELNET_IAC esc...
function GM:ForceDermaSkin() return "helix" end function GM:ScoreboardShow() if (LocalPlayer():GetChar()) then vgui.Create("ixMenu") end end function GM:ScoreboardHide() end function GM:LoadFonts(font, genericFont) surface.CreateFont("ix3D2DFont", { font = font, size = 2048, extended = true, weight = ...
local oldWep local wepChanged local oldHealth = 0 local area = 70 local doSound = true local warn, warn2 local warning = nil local function Warning(text, delay) if SERVER then return end warning = nil -- ?? warning = { text = text, delay = delay } timer.Create("dronesrewrite_whitebox_warning", delay, 1, functi...
local SobelMaterial = Material( "pp/sobel" ) SobelMaterial:SetTexture( "$fbtexture", render.GetScreenEffectTexture() ) local pp_sobel = CreateClientConVar( "pp_sobel", "0", false, false ) local pp_sobel_threshold = CreateClientConVar( "pp_sobel_threshold", "0.11", true, false ) function DrawSobel( threshold ) rend...
module:depends("cache_c2s_caps"); local st = require "util.stanza"; local function disco_handler(event) local stanza, origin = event.stanza, event.origin; local query = stanza.tags[1]; local to = stanza.attr.to; local node = query.attr.node; local target_session = prosody.full_sessions[to]; if target_session =...
-- -- ██╗███╗ ██╗██╗████████╗██╗ ██╗ ██╗ █████╗ -- ██║████╗ ██║██║╚══██╔══╝██║ ██║ ██║██╔══██╗ -- ██║██╔██╗ ██║██║ ██║ ██║ ██║ ██║███████║ -- ██║██║╚██╗██║██║ ██║ ██║ ██║ ██║██╔══██║ -- ██║██║ ╚████║██║ ██║██╗███████╗╚██████╔╝██║ ██║ -- ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝╚══════╝...
function getMaps(...) return g_MapManager:getMapList(...) end function sendMapToClient(element, resourceName) return g_MapLoader:sendMapToClient(element, resourceName) end function startMap(room, resourceName) return g_MapLoader:startMap(room, resourceName) end function stopMap(room, resourceName) re...
-- Premake build scripts for ODE unit tests package.name = "tests" package.kind = "exe" package.language = "c++" package.path = "custom" package.objdir = "obj/tests" package.includepaths = { "../../include", "../../tests/UnitTest++/src" } package.defines = { "_CRT_SECURE_NO_DEPRECATE" } package.files = { ma...
local player = {} local spikes = require("spikes") local spikeblock = require("spikeblock") local function setup() player.posx = 0 player.posy = love.graphics.getHeight() - 138 player.playercurrent = love.graphics.newImage("images/stick0.png") player.playersprites = {"images/stick0.png", "images/stick1.png", "images/st...
function SWEP:FireRocket(ent, vel, ang, dontinheritvel) if CLIENT then return end local rocket = ents.Create(ent) ang = ang or self:GetOwner():EyeAngles() local src = self:GetShootSrc() if !rocket:IsValid() then print("!!! INVALID ROUND " .. ent) return end local rocketAng = Angle(ang.p, an...
local BaseClass = require "NJLI.STATEMACHINE.NodeEntity" local Button = {} Button.__index = Button --############################################################################# --DO NOT EDIT ABOVE --############################################################################# --####################################...
local function ZombifyNetInit( ) util.AddNetworkString( "StartZombieTremors" ) util.AddNetworkString( "StopZombieTremors" ) end hook.Add( "Initialize", "ZombifyNetInit", ZombifyNetInit )
local Event = require('__stdlib__/stdlib/event/event').set_protected_mode(true) local Interface = require('__stdlib__/stdlib/scripts/interface').merge_interfaces(require('interface')) local Commands = require('commands') local ev = defines.events Event.build_events = {ev.on_built_entity, ev.on_robot_built_entity, ev.s...
-- This function returns another function that -- keeps n1 and n2 in scope, ie. a closure. function multiplier (n1, n2) return function (m) return n1 * n2 * m end end -- Multiple assignment a-go-go local x, xi, y, yi = 2.0, 0.5, 4.0, 0.25 local z, zi = x + y, 1.0 / ( x + y ) local num...