content
stringlengths
5
1.05M
local awful = require("awful") local beautiful = require("beautiful") local hotkeys_popup = require("awful.hotkeys_popup") local common = {} function common.init(args) local args = args or {} -- Variable definitions -- Default appications (with fallbacks) common.terminal = args.terminal or os.get...
--- @module fimbul.v35.armour_class local armour_class = {} package.loaded["fimbul.v35.armour_class"] = armour_class local stacked_value = require("fimbul.stacked_value") local rules = require("fimbul.v35.rules") armour_class = stacked_value:new(rules.stacking_rules) function armour_class:load(o) end function armo...
-- TITLE SCREEN OBJECT ------------------------------------------------------------------------------- title = {} -- CONSTANTS ------------------------------------------------------------------------------- local IMG_TITLECARD = "assets/images/title.png" local IMG_CREDITS = "assets/images/credits.png" local IMG_POINT...
local nvim = require 'neovim' local jobs = STORAGE.jobs local function kill_job(jobid) if not jobid then local ids = {} local cmds = {} local jobidx = 1 for idx, job in pairs(jobs) do ids[#ids + 1] = idx local cmd = type(job._cmd) == type '' and job._cmd or ...
sctp = { --[[ returns a userdata (Sctp::Socket) ]] socket(), --[[ Calls bind() and sctp_bindx() internally. No IP version mixing sock: contains the address family. port: every given address will use this port number addr1: at least 1 address is mandatory ...: no limit for multihoming ...
cui = { } cui.roots = { } cui.styles = { } cui.elements = { } for i, v in pairs( fs.list( "cobalt-ui/elements" ) ) do cui.elements[v:sub(1, #v-4)] = dofile("cobalt-ui/elements/" .. v) end local colcharlookup = { } for i = 1, 16 do colcharlookup[ string.byte( "0123456789abcdef",i,i)] = 2^(i-1) end function cui.getCo...
prime = {2, 3, 5, 7, 11, 13, 17, 19} dim = 4 ind = 2 number = {} deg = {} q = {} value = {} numbmax =...
-------------- -- Sequence -- -------------- --- Flow control for the filtering process. -- @param accounts A set. All IMAP account objects defined in the accounts data file. -- @param account An IMAP account object. The primary account to be filtered. function filter(accounts, account) announce("* Filtering start...
return function(opt, dataset) opt.convNearestNeighbor = true opt.embedFunction = function(lopt) local network = lopt.network local trainData = lopt.trainData local testData = lopt.testData -- embeddings are output of pre-trained network network:evaluate() network:forwa...
function listap(t) for bssid,v in pairs(t) do local rssi = string.match(v, "[^,]*,([^,]*).*") print(bssid.." "..rssi.." raw: "..v) end end function connectToWifi() print ("MAC:"..wifi.sta.getmac()) wifi.setmode(wifi.STATION) wifi.sta.getap(1, function(t) -- TODO: implemen...
Locales['fi'] = { ['cant_rob'] = '~r~Tätä ei voi ryöstää', ['press_stop'] = 'Paina [DEL] pysäyttääksesi', ['max_amount'] = '~r~Saavutettu maksimimäärä', ['min_poliisi'] = 'Kaupungissa on oltava vähintään ~b~%s poliisia~s~, jotta voit ryöstää.', ['no_room'] = '~r~Et voi pitää saalista', ['b...
local FunctionBlock local DoBlock local SpaceBlock local DoubleBlock local TableBlock local TableAssignmentBlock local MetatableBlock local IfElseBlock local IfBlock local Line local RequireLine if game then local pluginModel = script.Parent.Parent.Parent.Parent FunctionBlock = require(pluginModel.com.blacksheepher...
-- components local meshRenderer = nil -- MISC local timer = 0 local flickerDuration = 2 local dir = -1 local originalR = 1 local originalG = 1 local originalB = 1 local multiplier = 10 -- Constructor / Update function Constructor() meshRenderer = owner:GetComponent("Me...
--[[--- A Lua lexical scanner using LPeg. = CREDITS Written by Peter Odding, 2007/04/04 = THANKS TO - the Lua authors for a wonderful language; - Roberto for LPeg; - caffeine for keeping me awake :) = LICENSE Shamelessly ripped from the SQLite[3] project: The author disclaims copyright to this source code. In pl...
local bLeft = true local fTime = 1 function OnUpdate(a_host, a_entity, a_fDT) fTime = fTime - a_fDT xSpeed = 5 if bLeft == true then xSpeed = -5 else xSpeed = 5 end if fTime < 0 then if bLeft == true then bLeft = false _FlipX(a_entity) ...
local followchars = true local modchart = true local xx = 250 local yy = 460 local xx2 = 500 local yy2 = 460 local ofs = 50 local del = 0 local del2 = 0 function onUpdate(elapsed) if modchart == true then for i = 0,3 do setPropertyFromGroup('strumLineNotes', i, 'alpha', 0) end end if follow...
require[[plugins]] require[[_3bclsp]] require[[vimsettings]] require[[lsp]] require[[tabline]] require[[treesitter]] require[[highlight]] require[[compe-completion]] require[[nvimtree]] require[[statusline]] require[[maps]] require[[indentation]] require[[saga]] require[[rusttools]] require[[toggletermsettings]] requir...
require("strict") local api = GetApi() api:setFPS(30) local ball = { x = 0, y = 0, mx = 1, my = 1, size = 10, } local bar = { x = 0, y = api:height() - 10, w = 20, } local gameover = false function update() if gameover then return end ball.x = ball.x + ball.mx ...
-- import function import(moduleName, currentModuleName) local currentModuleNameParts local moduleFullName = moduleName local offset = 1 while true do if string.byte(moduleName, offset) ~= 46 then moduleFullName = string.sub(moduleName, offset) if currentModuleNameParts ...
local GameObject = UnityEngine.GameObject Loger("我是lua") function main(x,y) Loger("it's main") local go = GameObject.create("lua_CreateObj") --创建一个空物体 if go then Loger('go is not null') else Loger('go is null') end --Loger("go 返回的信息 "..go) --Loger("XXXXXXXXXXX "..UnityEngine.name) --loc...
local http = require "resty.http" function abort(reason, code) ngx.status = code ngx.say(reason) return code end function log(msg) ngx.log(ngx.ERR, msg, "\n") end -- Get and array of targets function split_result(str) local results = {} local i = 1 for w in string.gmatch(str, "%S+") do ...
local Lrucache = require "resty.lrucache" local cache, err = Lrucache.new(200) -- allow up to 200 items in the cache if not cache then error("failed to create the cache: " .. (err or "unknown")) end local M = {} function M:set_value(key, value, expire) cache:set(key, value, expire) end function M:get_value(...
-- Plugin configuration: gitsigns.nvim -- ============================================================================ require('gitsigns').setup { numhl = false, linehl = false, sign_priority = 6, status_formatter = nil, update_debounce = 200, count_chars = { [1] = '', [2] = '₂', [3] = '₃', ...
-- Returns the previous owner, the current owner and the pttl for the lock. -- Returns either {null, lockOwner, pexpire}, {owner, owner, pexpire} or {owner, owner, pttl}. -- The previous owner is null if 'lockOwner' newly acquired the lock. Otherwise, the previous -- owner will be same value as the current owner. If th...
--- API for perl compatible regular expression -- @author David Delassus &lt;david.jose.delassus@gmail.com&gt; module ("cream.regex") --- Create a new perl compatible regular expression -- @param pattern The regex pattern -- @return A new regex -- @class function -- @name cream.regex --- Scans for a match in string...
while (true) do -- Wait for the signal to start print("Waiting for the start signal") local serverID = 0 local selected = false while (selected == false) do rednet.open("left") local senderID, message, protocol = rednet.receive("quarry_job") if (message == "start") then serverID = senderID rednet.s...
local multipart = {} local File = {} local unpack = unpack or table.unpack -- socket.url.escape(s) from LuaSocket 3.0rc1 function multipart.url_escape(s) return (string.gsub(s, "([^A-Za-z0-9_])", function(c) return string.format("%%%02x", string.byte(c)) end)) end function File:mime() if not self.mi...
local K, _, L = unpack(select(2, ...)) local Module = K:NewModule("VersionCheck", "AceEvent-3.0") local _G = _G local gsub = gsub local tonumber = tonumber local GetAddOnMetadata = _G.GetAddOnMetadata local GetRealmName = _G.GetRealmName local IsInGroup = _G.IsInGroup local IsInGuild = _G.IsInGuild local IsInRaid = _...
--basic help command fw.chat.addCMD("help", "Prints a help log to your screen", function(pl) local function formatParameters(param, ...) if not param then return end return "<" .. param.type .. ":" .. param.name .. ">", formatParameters(...) end pl:FWChatPrint("Please check your console for chat command help") ...
-------------------------------------------------------------------------------------------------------- --- @class WidgetAsset : Asset -------------------------------------------------------------------------------------------------------- local WidgetAsset = {} return WidgetAsset
skill_target = { [1] = { type = 5, parameter1 = { 0, }, parameter2 = 0, parameter3 = 0, parameter4 = 0, }, [2] = { type = 1, parameter1 = { 1, 7000, 0, }, parameter2 = 0, parameter3 = 0, parameter4 = 0, }, [3] = { type = 1, parameter1 = { 2, 3000, 0, }, parameter2 = 0, parameter3 = 0, parameter4 = 0, }, [4] = { type = ...
------------------------------------------------------------------------------- -- Importing external module ------------------------------------------------------------------------------- local util = require "lib.util" ------------------------------------------------------------------------------- -- Declaring modul...
require('lspsaga').init_lsp_saga() -- find the cursor word definition and reference vim.api.nvim_set_keymap("n", "L", ":Lspsaga hover_doc<cr>", { noremap = true, silent = true }) vim.api.nvim_set_keymap("n", "]r", ":Lspsaga diagnostic_jump_next<cr>", { noremap = true, silent = true }) vim.api.nvim_set_keymap("n", "[r...
require "luacom" require "lfs" --require "settings.lua" local shell = luacom.CreateObject("WScript.Shell") local directory = [[HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III\]] warcraft = {} warcraft.INSTALL_PATH = shell:RegRead(directory .. [[InstallPath]]) local tool = {} tool.objectmerger = [...
--[[ DS9 Utilities - Mod Library --------------------------- Simple mod library that is required by mods in the DS9 Utility suite. License: WTFPL Info: https://en.wikipedia.org/wiki/WTFPL ]] -- Used for future proofing in case the Avorion devs decide to change -- which Lua version they are usin...
ScenarioInfo = Observable:extends{} function ScenarioInfo:init() self:super('init') local playerName = Spring.GetPlayerInfo(0) self.name = playerName .. "'s Scenario" if SB.project.name ~= nil then self.name = SB.project.name end self.description = "" self.version = "1" self.aut...
--[[ Core.lua (c) 2018 Jeroen Petrus Broks. This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. Version: 18.07.02 ]] -- $USE libs/errortag -- $USE libs/...
TokoVoipConfig = { channels = { {name = "Departamento de Polícia ]", subscribers = {}}, {name = "Departamento Médico ]", subscribers = {}}, {name = "Taxistas ]", subscribers = {}}, {name = "Mecânicos ]", subscribers = {}}, {name = "Bennys ]", subscribers = {}}, {name = "Ballas ]", subscribers = {}}, ...
local human = {} human.sprite = love.graphics.newImage('images/npc/human-being.png') human.tickImage = love.graphics.newImage('images/menu/selector.png') human.menuImage = love.graphics.newImage('images/npc/human-being_menu.png') human.walk = false human.stare = true human.items = { -- { ['text']='exit' }, --...
GM.Weather = {} GM.Weather.m_tblTypes = (GAMEMODE or GM).m_tblTypes or {} GM.Weather.m_tblActiveTypes = (GAMEMODE or GM).m_tblTypes or {} function GM.Weather:LoadTypes() GM:PrintDebug( 0, "->LOADING WEATHER TYPES" ) local foundFiles, foundFolders = file.Find( GM.Config.GAMEMODE_PATH.. "weather_types/*.lua", "LUA" )...
local fs = require('diagnosticls-configs.fs') return { sourceName = 'vulture', command = fs.executable('vulture'), args = { '%filepath' }, debounce = 100, offsetLine = 0, offsetColumn = 0, formatLines = 1, formatPattern = { [[^.*:(\d+): (.*)]], { line = 1, message = { '[vulture] ', 2 } }, }, ...
--- @module DataMgr 枪械模块:数据管理 --- @copyright Lilith Games, Avatar Team --- @author RopzTao local DataMgr, this = { --- @type table 玩家初始默认数据 defaultPlayerData = {}, --- @type table 本服务器的所有玩家数据总表 --- 结构为{UserId = "", Data = {}} allPlayersData = {} }, nil --- 初始化 functi...
local testing = require('testing')('vfs') local vfs = require('vfs') local fs = require('fs') local assert = require('assert') local buffer = require('buffer') local zip = require('zip') testing("we shall be standing in srcdir for the other tests to work", function() assert(fs.is_dir('testdata')) assert(fs.is_re...
AetheriusBadgeFilter:RegisterGuild(AetheriusBadgeFilter.SERVER_EU, "Just Traders", { { name = "Social", badges = { { name = "Elder", description = "Is since min. 200 days member of the guild.", color = "9833ff", }, {...
-- THIS IS THE MAIN TABLE OF PRESETS. -- DEFINE THE PRESETS (CRYSTALLISATION) HERE AND REFER TO IT LATER IN THE FILE -- E.G. [1] = radioPresets["##RADIO1_01##"], -- -- THIS SHOULD BE THE ONLY PART OF THIS FILE YOU'LL NEED TO CHANGE IF YOU ONLY CHANGE THE FREQUENCIES -- TO ADD OR CHANGE AIRCRAFT AND COALITION TEMPLATE...
MetroScoreReasons = {} MetroScoreReasons.Other = 0 MetroScoreReasons.MissedSchedule = 1 MetroScoreReasons.PeakHourBonus = 2 hook.Add("Initialize", "SetupSQL_Scoring", function() --SQLQuery("DROP TABLE IF EXISTS `metroscoring`") SQLQuery([[ CREATE TABLE IF NOT EXISTS `metroscoring` ( `steamid` varchar(19) NOT NU...
monitoring.counter = function(name, help) local metric = { name = name, help = help, type = "counter", value = 0 } table.insert(monitoring.metrics, metric) return { -- increment counter inc = function(value) metric.value = metric.value + (value or 1) end, -- wrap a func...
local earth = {} function earth:init(x, y) earth.x = x earth.ox = x earth.y = y earth.oy = y earth.sprite = love.graphics.newImage("art/earth.png") earth.body = love.physics.newBody(world, x, y, "dynamic") earth.shape = love.physics.newCircleShape(16) earth.fixture = love.physics.newFixture(earth.body, earth....
--[[Author: Pizzalol Date: 26.01.2016. Creates vision over the area]] function WeaveVision( keys ) local caster = keys.caster local target_point = keys.target_points[1] local ability = keys.ability local ability_level = ability:GetLevel() - 1 local vision_radius = ability:GetLevelSpecialValueFor("vision", abili...
require("LocalRockInit") insulate( "#Table", function() local Table setup( function() Table = require("Table") end ) before_each( function() stub(math, "random") end ) after_each( ...
direction = {} direction[0] = "N" direction[1] = "E" direction[2] = "S" direction[3] = "W" map = {} -- Add a tile to the "known" map function mapTileAdd(x, y) if not map[x] then map[x] = {} end map[x][y] = true end function mapTileCheck(x, y) if not map[x] then return false elseif not map[x][y] then ...
include("terms") green_style = {["off_color"] = "fff", ["on_color"] = "6f6", ["line_color"] = "000", ["line_width"] = "2"}; yelow_style = {["off_color"] = "fff", ["on_color"] = "ff0", ["line_color"] = "000", ["line_width"] = "2"}; blue_style = {...
local assert = require "luassert.assert" local Request = require "atlas.request" local templates = require "atlas.templates" local assertions = require "atlas.test.assertions" describe("render", function() it("generates a response", function() local request = Request({}) local context = {} local respo...
local xmlns_version = "jabber:iq:version"; local function set_version(self, version_info) self.name = version_info.name; self.version = version_info.version; self.platform = version_info.platform; end function verse.plugins.version(stream) stream.version = { set = set_version }; stream:hook("iq/"..xmlns_version,...
--the set weather commands --[[ weather commands: 0 clear 1 light 2 heavy 3 storm can either type the word or number to get the state if you have server privelage ]]-- minetest.register_chatcommand("weather", { params = "<precipitation force>", description = "Set the weather", privs = {server = true}, func = func...
object_tangible_loot_creature_loot_collections_space_capacitor_mark_03_moncal = object_tangible_loot_creature_loot_collections_space_shared_capacitor_mark_03_moncal:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_space_capacitor_mark_03_moncal, "object/tangible/loot/creature/loot/co...
function love.conf(t) t.window.width = 1280 t.window.height = 720 end
require "debug_proto_defines" local sprotoparser = require "sprotoparser" local sproto = require "sproto" local proto = {} proto.all = sprotoparser.parse [[ .block{ type 1 : integer x 2 : integer y 3 : integer w 4 : integer h 5 : integer id 6 : integer } .control{ type 1 : integer di 2 : integer } .data{ ...
local M = {} local api = vim.api local util = require "recipe.util" local adapters = require("recipe.adapters") ---@class config ---@field custom_recipes table<string, Recipe> ---@field term term customize terminal ---@field default_recipe Recipe M.options = { ---@class term ---@field height number ---@field wid...
-- Options -- Use NedMalloc memory allocator kUseNedmalloc = false -- Fbx Sdk Version; ex. "2017.1" kFbxSdkVersion = "2017.1" -- Windows Fbx Sdk Path; ex. "C:/Program Files/Autodesk/FBX/FBX SDK/" kFbxSdkPathWindows = "../External/FBX/Windows/" -- macOS Fbx Sdk Path; ex. Unknown kFbxSdkPathMacOS = "../External/FBX/m...
local FILE = { "example.mmap", { "b4 i", "s10" } } stage.viewof(FILE, 10, function (buffer) print("MMAP", buffer, buffer.rows, buffer.size) buffer[1] = { {1, 2}, 2, "01234567890123" } buffer[2] = { {3, 4}, 15, "23456789890123" } buffer[10] = { {4, 6}, 20, "12123456789123" } --[[ print("RESULT", stage.viewof({ bu...
template={} function template.print_header(tex) tex.print([[\begin{center}\textsf{{\Large Rechenblatt}\\Zahlenraum bis 1000\\Ohne Hunderterübergang}\end{center}\vspace{1cm}]]) end function template.print_table_env_begin(tex) tex.print([[\begin{tabular}{R@{\hspace{3cm}}R@{\hspace{3cm}}R}]]) end function temp...
package.path = 'src/?.lua;src/packages/?.lua' local fu = cc.FileUtils:getInstance() fu:setPopupNotify(false) fu:addSearchPath("res/") local config = require('config') local remote_debug = false if remote_debug then require('mobdebug').start() end local ok, devconf = pcall(require, 'devconf') if not ...
function Server_StartDistribution(game, standing) -- do nothing end
gw = love.graphics.getWidth() gh = love.graphics.getHeight()
local playsession = { {"Ace_W", {277043}}, {"PolanStronk", {275013}}, {"Ruuyji", {259173}}, {"raskl", {27439}}, {"XaLpHa1989", {226721}}, {"Lestibornes", {221458}}, {"Croustibax", {171017}}, {"Revar", {6704}}, {"brfbrf", {36993}}, {"glukuzzz", {195379}}, {"Seplus", {149537}}, {"stargazer5683", {144340}}, {...
--[[ PAL Premake File v1.5.7 - 05/09/08 - Bullet 2.70 multithreading v1.5.6 - 24/07/08 - Scythe stand alone example v1.5.5 - 16/07/08 - COLLADA stand alone example v1.5.4 - 15/07/08 - ODE 0.10.0 support v1.5.3 - 08/07/08 - Added dylib flag only for osx and changed the bullet libs to match cmake output for the b...
local gears = require("gears") local awful = require("awful") local hotkeys_popup = require("awful.hotkeys_popup").widget -- Default mod key - Windows modkey = "Mod4" globalKeys = gears.table.join( awful.key({ modkey }, "s", hotkeys_popup.show_help, { description="show help", group="awesome" }), awful.key({ m...
PLUGIN.name = "Blacklist for bad guys" PLUGIN.author = "Dobytchick, Carlsmei" PLUGIN.desc = "This plugin adds a blacklist" local bList = {} bList["STEAM_0:1:155659578"] = "Damage to the server" if SERVER then function PLUGIN:PlayerAuthed( ply, steamid, uniqueid ) if blacklist[ply:SteamID()] then ...
local tu = require "texutil" function data() return { detailTex = tu.makeTextureMipmapRepeat("ground_texture/grass_industry.dds", true, true), detailNrmlTex = tu.makeTextureMipmapRepeat("ground_texture/grass_wood_nrml.dds", true, true, true), --detailSize = { 16.0, 16.0 } detailSize = { 32.0, 32.0 }, colorTex = t...
if SERVER then AddCSLuaFile() end ENT.Category = "No More Room In Hell" ENT.PrintName = ".45 ACP Ammunition" ENT.Author = "Black Tea" ENT.Type = "anim" ENT.Base = "base_ammo_nmrih" ENT.Spawnable = true ENT.AdminOnly = true ENT.AmmoType = "45ACP" ENT.AmmoAmount = 10 ENT.AmmoMax = 300 ENT.Model = Model("models/items/...
--[[ Copyright (c) 2016 by Marco Lizza (marco.lizza@gmail.com) This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including...
local playsession = { {"ETK03", {145769}}, {"Terarink", {251951}}, {"KevinoFactorioBoi", {238037}}, {"RubbishNateDawg", {250589}}, {"Squillur", {249696}}, {"stegpen", {98420}}, {"SirPuzzled", {86482}}, {"skatordude", {233337}}, {"Achskelmos", {45386}}, {"LotA", {685}}, {"vad7ik", {35230}}, {"captaintickles"...
local libimage = require "libimage" local libos = require "libos" local binpacking = require "binpacking" local utils = require "utils" -- file templates local TEMPLATE_IMAGE = [[ { name="%s", pos={%d,%d}, size={%d,%d}, offset={%d,%d} }, ]] -- image local img_mt = {} img_mt.__index = img_mt function img_mt:save(pat...
modifier_telekenetic_blob_mark_target = class({}) function modifier_telekenetic_blob_mark_target:IsHidden() return false end function modifier_telekenetic_blob_mark_target:IsPurgable() return false end function modifier_telekenetic_blob_mark_target:RemoveOnDeath() return true end function modifier_telekenetic_blob_ma...
-- LLL - Lua Low Level -- September, 2015 -- Author: Gabriel de Quadros Ligneul -- Copyright Notice for LLL: see lllcore.h local benchmark_util = require 'benchmarks/util' benchmark_util(function() local a = 0 for i = 1, 1e8 do a = a + 1 end end)
---@class ObservationFactory : zombie.characters.traits.ObservationFactory ---@field public ObservationMap HashMap|String|ObservationFactory.Observation ObservationFactory = {} ---@public ---@param name String ---@return ObservationFactory.Observation function ObservationFactory:getObservation(name) end ---@public --...
local t = My.Translator.translate My = My or {} My.SideMissions = My.SideMissions or {} local findAsteroid = function(station) return Util.random(station:getObjectsInRange(20000), function(_, thing) return isEeAsteroid(thing) and isFunction(thing.getName) end) end local findAsteroidCluster = function(...
project "PBR" kind "ConsoleApp" language "C++" cppdialect "C++17" staticruntime "off" targetdir ("../bin/" .. outputdir .. "/%{prj.name}") objdir ("../vendor/libs/bin-int/" .. outputdir .. "/%{prj.name}") VULKAN_SDK = os.getenv("VULKAN_SDK") files { "PBR.h", "PBR.cpp", } includedirs { "../smolengi...
toolchain("s32g") set_description("NXP S32G Compiler") set_kind("standalone") if is_host("linux") then -- sysroot = "--sysroot=" sysroot = os.getenv("OECORE_TARGET_SYSROOT") if sysroot == nil then print("error: Please setup the environment of S32G first") re...
local strings = { en = { connected = "Connected", disconnected = "Disconnected", disconnectedByUser = "Disconnected by user", timeout = "Timed out / Crash", disconnectedQuitCommand = "Disconnected by F8 - quit", pnjsuicide = "PNJ/Suicide", killercoords = "Killer coords", targetcoords ...
--- Associations declare relationships between classes in ActiveLua. An --- example a Person:belongsTo(Organization) which declares that a person can --- be looked up by organization. An association injects one or more functions --- into the class declaring the association and may inject attributes in --- either the de...
--[[ flyboy 1.0 By Haxmeister Using orignal Voce code By TheRedSpy ]] dofile("json.lua") -- json.encode and json.decode dofile("tcpsock.lua") -- Socket stuff flyboy.getfact = function(fact) -- Return faction text with correct color if (fact==nil) then return "" end if (fact==-1) then return "" en...
--- # Longtable-to-xtab - switch LaTeX table outputs from longtable to xtab. -- -- This Lua filter for Pandoc converts Pandoc's default `longtable` output -- of tables in LaTeX with `xtab` tables. -- -- @author Julien Dutant <julien.dutant@kcl.ac.uk> -- @copyright (c) 2021 Julien Dutant -- @license MIT - see LICENSE fi...
return { armtrmph = { acceleration = 0.01, activatewhenbuilt = true, brakerate = 0.075, buildangle = 16384, buildcostenergy = 1051388, buildcostmetal = 69903, buildpic = "armtrmph.dds", buildtime = 500000, canattack = true, canguard = true, canmove = true, canpatrol = true, cans...
function nssm_register_evocation (evomob, evodescr, numbe, evomob_ingredient) nssm_register_throwegg(evomob, evodescr.." Bomb", { hit_node = function(self,pos) local pos1 = {x = pos.x, y=pos.y+1, z=pos.z} if not minetest.is_protected(pos1, "") or not minetest....
--- Stock parameter handlers -- -- This module contains parameter handlers or factories for -- use when setting up commands in `bex.cmd` local param = {} --- Default parameter handler. -- -- One parameter in, one token out. Escapes only spaces and backslash. function param.default(ctx) ctx:escape(ctx:pop(), "\\ ...
-- Metal Melter for Minetest 0.5.0+ -- Copyright (c) 2018 Evert "Diamond" Prants <evert@lunasqu.ee> local modpath = minetest.get_modpath("metal_melter") metal_melter = {} -- Melting database dofile(modpath.."/meltable.lua") -- Crafting components dofile(modpath.."/components.lua") -- Melter dofile(modpath.."/melter...
--[[ --MIT License -- --Copyright (c) 2019 manilarome --Copyright (c) 2020 Tom Meyers -- --Permission is hereby granted, free of charge, to any person obtaining a copy --of this software and associated documentation files (the "Software"), to deal --in the Software without restriction, including without limitation the ...
local awful = require "awful" local naughty = require "naughty" local setupTags = {} function setupTags.run(screen, modes, globalTags) for modeI, mode in pairs(modes) do naughty.notify({text = "" .. #mode.tags}) for i = 1, mode.numTags, 1 do if #(mode.tags) < i then aw...
return { timeline_motion = { ["0"] = "ProjectStart", ["f"] = "PlayPosition", ["x"] = "MousePosition", ["<left>"] = "PrevMarker", ["<right>"] = "NextMarker", ["<M-h>"] = "Left10Pix", ["<M-l>"] = "Right10Pix", ["h"] = "LeftGridDivision", ["l"] = "RightGridDivision", ["H"] = "Prev...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) RegisterServerEvent('esx_barbershop:pay') AddEventHandler('esx_barbershop:pay', function() local _source = source local xPlayer = ESX.GetPlayerFromId(_source) xPlayer.removeMoney(Config.Price) TriggerClientEvent('esx:showNotification', _so...
object_draft_schematic_droid_component_cybernetic_acid_resist_module_two_core = object_draft_schematic_droid_component_shared_cybernetic_acid_resist_module_two_core:new { } ObjectTemplates:addTemplate(object_draft_schematic_droid_component_cybernetic_acid_resist_module_two_core, "object/draft_schematic/droid/componen...
local Mod = GetMod() local serverEntryCount = 0 local clientEntryCount = 0 local function CompareEntries(client) assert(Server) assert(serverEntryCount > 0) if clientEntryCount <= 0 then Server.DisconnectClient(client, "Malformed entry count") elseif serverEntryCount ~= clientEntryCount then Server....
local modname = minetest.get_current_modname() for n = 1,2 do local ent = { hp_max = 1, breath_max = 0, zoom_fov = 0.0, eye_height = 1.625, physical = true, collide_with_objects = true, weight = 5, collisionbox = {-0.5, 0.0, -0.5, 0.5, 1.0, 0.5}, selectionbox = {-0.5, 0.0, -0.5, 0.5,...
local m = mtechs_animation local add_entity = minetest.add_entity --[[ Humanoid template { head_entity_id, head_offset = {x, y, z}, -- used torso to connect torso_entity_id, torso_arm_offset = {x, y, z}, -- used by arms to connect, x is negative for left torso_leg_offset = {x, y, z}, -- used b...
require "csv" require "dbg/DklBaseGraphics" local bg local data function setup() size(500,350) local f = loadFont("data/Karla.ttf",18) textFont(f) bg = DklBaseGraphics:new(width(),height()) data = readCSV("data/pressure.csv",true,',') end function draw() background(255) bg:plot(data['temperature'],data['press...
local _M = globalclass(...); require("Delegate") function _M:ctor() self.handlers = { } self.disableCollectOnFire = nil; local metatable = getmetatable(self); metatable.__call = self.Invoke; end function _M:IsEmpty() return #self.handlers == 0; end function _M:Add(func, ...) local del = Delegate.new(func, .....
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA SWEP.PrintName = "Suicide Bombing" SWEP.Slot = 4 SWEP.WorldModel = Model("models/dav0r/tnt/tnt.mdl") function SWEP:Deploy() self.Owner:DrawViewModel(false) self.ActivateAfter = CurTime() + 0.5 end f...
------------------------------------------------------------------------------- --- AUTHORS: iSarCasm, Nostrademous --- GITHUB REPO: https://github.com/Nostrademous/Dota2-WebAI ------------------------------------------------------------------------------- local VectorHelper = {} ------------------------------...