content
stringlengths
5
1.05M
return { { effect_list = { { type = "BattleSkillFire", casterAniEffect = "", target_choise = "TargetHarmRandomByWeight", targetAniEffect = "", arg_list = { weapon_id = 69231 } }, { type = "BattleSkillFire", casterAniEffect = "", target_choise = "TargetNil", targe...
local CornellMovieDialogs = torch.class("neuralconvo.CornellMovieDialogs") local stringx = require "pl.stringx" local xlua = require "xlua" function CornellMovieDialogs:__init(dir) self.dir = dir end function CornellMovieDialogs:load() local lines = {} local conversations = {} local count = 1 print("-- Pa...
{data={name="A-2", author="Magnus siiftun1857 Frankline"}, blocks={ {0x1cafc0, {-40.265, 0}, command={faction=1880}}, {0x1cafc1, {-31.759, -8.09}}, {0x1cafc2, {-34.698, -17.135}, 1.885}, {0x1cafc1, {-31.759, 8.09}}, {0x1cafc2, {-34.698, 17.135}, -1.885}, {0x1cafc3, {-40.014, -13.09}}, {0x1c...
-- Stolen from default local grades = { Grade_Tier01 = 0; Grade_Tier02 = 1; Grade_Tier03 = 2; Grade_Tier04 = 3; Grade_Tier05 = 4; Grade_Tier06 = 5; Grade_Tier07 = 6; Grade_Failed = 7; Grade_None = 8; }; local t = LoadFont("_fishfingers Bold") .. { InitCommand=cmd(zoom,0.75;shadowlength,1;strokecolor,Color("...
local insert = table.insert local path = string.gsub(..., "[^.]+$", "") local Base = require(path.."Base") local Token = require(path.."Token") local Lexer = require(path.."Lexer") local Collector = require(path.."Collector") local Preproc = require(path.."Preproc") local Expander = require(path.."Expander") local Dum...
local res = {mouse = {}, touch = {}} local min, max, floor = math.min, math.max, math.floor local getWidth = love.graphics.getWidth local getHeight = love.graphics.getHeight local mousegetX = love.mouse.getX local mousegetY = love.mouse.getY local mousegetPosition = love.mouse.getPosition local touchgetPosition = lov...
--- -- @author wesen -- @copyright 2020 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local BaseExtension = require "AC-LuaServer.Core.Extension.BaseExtension" local LuaServerApi = require "AC-LuaServer.Core.LuaServerApi" local ServerEventListener = require "AC-LuaServer.Core.ServerEvent.ServerEventListen...
--[[ panels.lua Configuration panels --]] local L = LibStub('AceLocale-3.0'):GetLocale('Bagnon-Config') local SLOT_COLOR_TYPES = {} for id, name in pairs(Bagnon.BAG_TYPES) do tinsert(SLOT_COLOR_TYPES, name) end sort(SLOT_COLOR_TYPES) tinsert(SLOT_COLOR_TYPES, 1, 'normal') local SetProfile = functio...
local PANEL = {} function PANEL:Init() self:SetAlpha(255) self:SetSize(600, ScrH()) self:Center() self.killTime = CurTime() + 39 self.mainCredits = markup.Parse([[ <font=Impulse-Elements32> Framework creator <font=Impulse-Elements23>vin</font> Framework contributor(s) <font=Impulse-Elements23>aLoneWi...
include( "shared.lua" ) include( "sh_ranks.lua" ) include( "playerclass.lua" ) include( "cl_jobs.lua" ) CreateClientConVar( "metro_admin_listentoall", 0 , true, true ) DEFAULT_MOTD = "http://phoenixblack.github.io/Metrostroi/manual.html" --MOTD local function ShowMOTD(url) local w = ScrW() * 2/3 local h = ScrH() ...
import 'nn' function fill_net(net) if net.modules then for i = 1, #net.modules do fill_net(net.modules[i]) end end if net.weight then net.weight = torch.rand(net.weight:size()) end if net.bias then net.bias = torch.rand(net.bias:size()) end end function save(net, input, label) fill_net(net) output ...
--[[ TheNexusAvenger Stores modifiers for the characters. --]] local ReplicatedStorage = game:GetService("ReplicatedStorage") local ReplicatedStorageProject = require(ReplicatedStorage:WaitForChild("Project"):WaitForChild("ReplicatedStorage")) local NexusEventCreator = ReplicatedStorageProject:GetResource("External...
object_mobile_tyber_zann = object_mobile_shared_tyber_zann:new { } ObjectTemplates:addTemplate(object_mobile_tyber_zann, "object/mobile/tyber_zann.iff")
-- extensions/table - add more table functions -- @author Jacob Fischer, jacob.t.fischer@gmail.com --- -- returns a normal table {}, but with the 'table' metadata set, because unlike strings in lua tables do not get their metatable automatically set :( Table = function(...) return setmetatable({...}, {__index=tabl...
--[[-------------------------------------------------------------------- Gazelle: a system for building fast, reusable parsers fa.lua Data structure for representing finite automata. Both NFAs and DFAs can be represented using this class. The base class (FA/FAState) has three child classes: - IntFA/In...
local o = vim.o local wo = vim.wo local bo = vim.bo -- global options o.swapfile = true -- o.dir = '/tmp' if vim.loop.os_uname().sysname:find("Windows", 1, true) and true then o.dir = os.getenv("LOCALAPPDATA") .. "\\vim\\swap" else o.dir = os.getenv("XDG_CACHE_HOME") .. "/vim/swap" end o.expandtab = true o.ta...
function startPick() local w = UIApplication:sharedApplication():keyWindow() _interceptor = InterceptorView:alloc():initWithFrame(w:bounds()) w:addSubview(_interceptor) return "Go on, touch something. Get the view by calling endPick() when you're done." end function endPick() local v = _intercepto...
--[[ Copyright 2012-2015 The Luvit Authors. All Rights Reserved. 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 or ag...
local UILooksNode = BaseClass(UINode) UILooksNode.ShowType = { Role = 1, Monster = 2, NPC = 3, } function UILooksNode:Constructor( parentTrans ) self.prefabPath = "Assets/AssetBundleRes/ui/common/UILooksNode.prefab" self.cacheRole = {} self.cacheNPC = {} self:Load() end function UILooksNode:OnLoad( ) local n...
print("INFO: Static builds may not be usable due to unfinished strings bug. Normal builds require argparse.") local luaToUse = "lua53" -- Clear the build directory. if os.getenv("OS") == "Windows_NT" then os.execute("rmdir build /s /q") os.execute("mkdir build") os.execute("mkdir build\\linux") else os.execute("rm...
-- Command Computer Clearing program local tArgs = {...} if not commands then print("Command Computers only") return end if #tArgs < 6 then print(fs.getName(shell.getRunningProgram()).." <x1> <y1> <z1> <x2> <y2> <z2>") return end -- filter args local x1 = math.floor(tonumber(tArgs[1])) local y1 = math.floor(tonumbe...
data:extend( { { type = "item", name = "burner-fuel-assembling-machine", icon = "__burn-the-world__/graphics/icons/fuel-assembling-machine.png", flags = {"goes-to-quickbar"}, subgroup = "burner-production-machine", order = "b[assembling-machine-2]-b", place_result = "burner-fuel-assembling...
---------------------------- -- Bunny Hop -- -- Created by Skeyler.com -- ---------------------------- HOOKS["InitPostEntity"] = function() GAMEMODE:AddACArea(Vector(2824, 10532, -42),Vector(2871, 11073, 158)) GAMEMODE:AddACArea(Vector(3309, 10581, -38),Vector(3409, 11766, 200)) GAMEMODE:AddACArea(...
-- -- Register digtron diggers for tronwrench -- local definition = { name = 'digtron_digger', nodes = { "digtron:intermittent_digger", "digtron:intermittent_soft_digger", }, group = 'digtron digger', protection_bypass_read = "interact", } function definition:copy(node, pos, player) local meta = minetest.ge...
local lib = {} local keylen = 5 local keyfile = ".keys" function lib.set_keyfile(kf) keyfile = kf or keyfile return lib end --[[ # Key format: { path:string key:string starts:date ends:date max_clicks:n clicks:n } # Todo list: 2016-10-06 - Read Keys --done - Write Keys --d...
----------------------------------- -- Area: Mount Zhayolm -- NPC: Bapokk -- Handles access to Alzadaal Ruins -- !pos -20 -6 276 61 ----------------------------------- require("scripts/globals/npc_util") ----------------------------------- function onTrade(player, npc, trade) if npcUtil.tradeHas(trade, 2185) then...
function love.conf(t) t.window.title = "gRabbit 0.0.1 alpha" t.window.width = 1300 t.window.height = 800 t.window.borderless = false t.window.resizable = false t.window.vsync = true t.modules.system = true t.modules.event = true t.modules.window = true t.modules.image = true ...
-- Prosody IM -- Copyright (C) 2014 Daurnimator -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- -- This module allows you to use cqueues with a net.server mainloop -- local server = require "net.server"; local cqueues = require "cqueues"; local time...
local present, autosave = pcall(require, "autosave") if not present then return end autosave.setup({ enabled = true, execution_message = " 💾 saving...", events = { "InsertLeave", "TextChanged" }, conditions = { exists = true, filename_is_not = {}, filetype_is_not = {}, modifiable = true, }, write_all_b...
object_tangible_door_heroic_axkva_min_door = object_tangible_door_shared_heroic_axkva_min_door:new { } ObjectTemplates:addTemplate(object_tangible_door_heroic_axkva_min_door, "object/tangible/door/heroic_axkva_min_door.iff")
Config = {} Config.Locale = 'en' -- available: cs, de, en, es, fr, it, nl Config.JobId = 'police' -- people with this job can't get in Config.DrawBlips = true -- if true, map markers are visible
-- Copyright 2020 Wirepath Home Systems, LLC. All rights reserved. function CancelTimer (timerId) if (type (timerId) == 'userdata' and timerId.Cancel) then timerId:Cancel () elseif (type (timerId) == 'string') then if (Timer [timerId]) then if (Timer [timerId].Cancel) then Timer [timerId] = Timer [timerI...
fx_version 'cerulean' game 'gta5' description 'qb-chains | DoritoXheaD' version '1.0.0' client_script 'client.lua' server_script 'server.lua'
fx_version 'adamant' game 'gta5' author 'Paradise' description 'Paradise Neons (RTX)' version '1.0' client_scripts { 'config.lua', 'client/main.lua' } files { 'html/ui.html', 'html/styles.css', 'html/scripts.js', 'html/debounce.min.js', 'html/BebasNeue.ttf', 'html/images/*.png' } ...
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA -- autorun/client/cl_vapeswep.lua -- Defines clientside globals for Vape SWEP -- Vape SWEP by Swamp Onions - http://steamcommunity.com/id/swamponions/ if not VapeParticleEmitter then VapeParticleEmitter =...
function getRequiredComponents() return {"speed", "position"} end function update() for i, entity in ipairs(entities) do entity.position.x = entity.position.x + entity.speed.dx entity.position.y = entity.position.y + entity.speed.dy end end
--[[ Highlord Tirion Fordring yells: A mighty blow has been dealt to the Lich King! You have proven yourselves as able bodied champions of the Argent Crusade. Together we will strike against Icecrown Citadel and destroy what remains of the Scourge! There is no challenge that we cannot face united! Highlord Tirion Fordr...
local html_builer = { "text", "raw", "widget", "element", "html_5", "capture", 'area', "applet", 'base', 'br', 'col', 'embed', 'frame', 'hr', 'img', 'input', 'link', 'meta', 'param', 'a', 'abbr', 'acronym', 'address', 'article', 'aside', 'audio', 'b', 'bdo', 'bi...
local scrollers = {} scrollers[PLAYER_1] = setmetatable({disable_wrapping=true}, sick_wheel_mt) scrollers[PLAYER_2] = setmetatable({disable_wrapping=true}, sick_wheel_mt) local mpn = GAMESTATE:GetMasterPlayerNumber() local firstToUpper = function(str) return (str:gsub("^%l", string.upper)) end local conversions ...
ReadDataFile("..\\..\\addon\\ME5\\data\\_LVL_PC\\master.lvl") isModMap = 1 -- -- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved. -- -- load the gametype script ScriptCB_DoFile("ME5_ObjectiveTDM") ScriptCB_DoFile("ME5_setup_teams") -- Empire Attacking (attacker is always #1) REP = 2 ...
local ffi = require("ffi") --luacheck: push no max line length ffi.cdef([[ struct libevdev_uinput; enum libevdev_uinput_open_mode { LIBEVDEV_UINPUT_OPEN_MANAGED = -2 }; int libevdev_uinput_create_from_device(const struct libevdev *dev, int uinput_fd, struct libevdev_uinput **uinput_dev); void libevdev_uinput_dest...
local helpers = require('tests.plenary.ui.helpers') local Date = require('orgmode.objects.date') describe('Todo mappings', function() after_each(function() vim.cmd([[silent! %bw!]]) end) it('should change todo state of a headline forward (org_todo)', function() helpers.load_file_content({ '#TITLE:...
IFTTT_KEY="" -- Add your IFTTT key for Maker Service Method
--[[ © 2018 Thriving Ventures AB do not share, re-distribute or modify without permission of its author (gustaf@thrivingventures.com). ]] local plugin = plugin local category = {} plugin.changes = { general = {}, group = {} } category.name = "Chat settings" category.material = "serverguard/menuicons/icon_...
function CourseSpawn:__init(course) self.course = course self.position = nil self.angle = nil self.modelIds = {} self.templates = {} self.decals = {} self.racer = nil self.vehicle = nil end function CourseSpawn:SpawnVehicle() -- If there are no vehicles, it means this is an on-foot race. if #self.mode...
--- Module to generate a duotone effect. -- It also supports gradients of more than two colors. local base = [[ <filter id='$id'> <feColorMatrix type="matrix" values=".375 .5 .125 0 0 .375 .5 .125 0 0 .375 .5 .125 0 0 0 0 0 1 0" /> <feComponentTransfer color-interpolation-filter="sRGB"> <feFuncR type="table" tableV...
local position = require("engine/component/position") --[[ lamp({ x = love.graphics:getWidth() / 2, y = love.graphics:getHeight() / 2, color = {255, 255, 255}, on_screen = true, }) ]]-- local function lamp(options) local x = options.x or 0 local y = options.y or 0 local color = options.color...
-- curl -sw' %{time_total}s ' -4LXPOST 'http://localhost:7312/token' -H'Origin: http://localhost:7312' -H'Content-Type: application/x-www-form-urlencoded' -H'Authorization: Basic NzY2NDFhZGYtMzRiMC00YzVhLWIzOWQtMjMzNzBhYWFkODdkOjExMTExMQ==' -d'UserName=13028500025' --data-urlencode 'PassWord={"AccountPwd":"96e79218965e...
--[[ TheNexusAvenger Custom slider input for scaling number values. --]] local NexusPluginComponents = require(script.Parent.Parent.Parent) local PluginInstance = NexusPluginComponents:GetResource("Base.PluginInstance") local PluginColor = NexusPluginComponents:GetResource("Base.PluginColor") local UserInputService ...
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is dis...
local K, C = unpack(select(2, ...)) -- local _G = _G -- K.Skinning["Blizzard_BattlefieldMap"] = function() -- local BattlefieldMapFrame = _G.BattlefieldMapFrame -- local BorderFrame = BattlefieldMapFrame.BorderFrame -- F.StripTextures(BorderFrame) -- F.SetBD(BattlefieldMapFrame, -1, 1, -1, 2) -- F.ReskinClose(B...
dx = 2 / 50 simulation = { mesh = { index_extents = {51, 51}, domain_bounds = {2, 2} }, domain_boundaries = { xmin = "dirichlet", xmax = "dirichlet", ymin = "dirichlet", ymax = "dirichlet" }, shapes = { { type = "sphere", ...
-- Account manager accountManager = true namelockManager = true newPlayerChooseVoc = true newPlayerSpawnPosX = 160 newPlayerSpawnPosY = 54 newPlayerSpawnPosZ = 7 newPlayerTownId = 1 newPlayerLevel = 8 newPlayerMagicLevel = 0 generateAccountNumber = false generateAccountSalt = false -- Unjustified kills -- NOTE: * Bani...
local M = {} M.config = function() vim.cmd[[ let test#python#pytest#executable = 'python3 -m pytest' ]] vim.cmd [[ function! ToggleTermStrategy(cmd) abort call luaeval("require('toggleterm').exec(_A[1])", [a:cmd]) endfunction let g:test#custom_strategies = {'toggleterm':...
----------------------------------- -- Area: Ghelsba Outpost -- Mob: Warchief Vatgit -- Involved in Mission 2-3 ----------------------------------- require("scripts/globals/settings") require("scripts/globals/missions") require("scripts/globals/titles") ----------------------------------- function onMobDeath(mob, pla...
--[[ s:UI Utility Functions Martin Karer / Sezz, 2014 http://www.sezz.at --]] require "GameLib"; ----------------------------------------------------------------------------- local S = Apollo.GetPackage("Gemini:Addon-1.1").tPackage:GetAddon("SezzUI"); -- Lua API local mod, format, floor, forma...
function utf8.literalize(s) check("s") return utf8.gsub(s, "[%(%)%.%%%+%-%*%?%[%]%^%$]", "%%%0") end local _rep = string.rep function string.rep(s, n, sep) check("s,n,?s") return n < 1 and "" or n < 2 and s or _rep(s..(sep or ""), n - 1)..s end function utf8.split(s, sep, limit, plain) check("s,?s,?n,?b...
--imports-- local api = require"novus.api" local util = require"novus.snowflakes.helpers" local view = require"novus.cache.view" local snowflake = require"novus.snowflakes" local base_channel = require"novus.snowflakes.channel" local channeltype = require"novus.enums".channeltype local modifiable = require"novus.snowfl...
--------------------------------------------------------------------------------------------------- modifier_oaa_requiem_allowed = modifier_oaa_requiem_allowed or class({}) function modifier_oaa_requiem_allowed:IsHidden() return true end function modifier_oaa_requiem_allowed:IsDebuff() return false end function...
-- Created by @project-author@ character is Bearesquishy - dalaran please credit whenever. -- Source on GitHub: https://n6rej.github.io local addonName, addonTable, addon = ... -- Get reference to AdiBags addon local AdiBags = LibStub("AceAddon-3.0"):GetAddon("AdiBags") local db = addonTable.db local MatchIDs local...
local utils = {} function utils.istensor(x) if torch.typename(x) and torch.typename(x):find('Tensor') then return true end return false end function utils.istorchclass(x) return type(x) == 'table' and torch.typename(x) end function utils.istable(x) return type(x) == 'table' and not torch.typename(x) end retu...
require('Array/Array') require('Object/Object') require('Testing/Testing') require('Function') local expect = Testing.expect function testCurry() local function test(a, b, c) return {a, b, c} end local curriedTest = Function.curry(test, 3) local result = curriedTest(1)(2)(3) return expect(...
--!A cross-platform build utility based on Lua -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law...
UMF_REQUIRE "/" ---@class Trigger: Entity local trigger_meta = global_metatable( "trigger", "entity" ) --- Tests if the parameter is a trigger entity. --- ---@param e any ---@return boolean function IsTrigger( e ) return IsEntity( e ) and e.type == "trigger" end --- Wraps the given handle with the trigger class. --...
--!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...
local spell = Spell{ -- Spell ID (optional, defaults to path) id = "red_buster", -- Display name name = "Red Buster", -- Battle description effect = "Red\nDamage", -- Menu description description = "Deals large Red-elemental damage to\none foe. Depends on Attack & Magic.", -- TP co...
local array_includes = require "api-umbrella.utils.array_includes" local array_last = require "api-umbrella.utils.array_last" local deep_merge_overwrite_arrays = require "api-umbrella.utils.deep_merge_overwrite_arrays" local dir = require "pl.dir" local file = require "pl.file" local host_normalize = require "api-umbre...
kswep_hands={} function AddKswepHands(tbl) kswep_hands[tbl.name]=table.Copy(tbl) end if (SERVER) then util.AddNetworkString("kswep_inshands") util.AddNetworkString("kswep_ins2_hands") local files,directories= file.Find("lua/ins_hands/*.lua","GAME") kswep_ins2_handsfiles=files for k,v in pairs(files) do include ...
--[[ WireLib Additions Copyright 2013 Lex Robinson 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 applic...
----------------------------------- -- Area: The Shrine of Ru'Avitau -- NPC: Monolith -- !pos <many> ----------------------------------- local ID = require("scripts/zones/The_Shrine_of_RuAvitau/IDs") require("scripts/globals/status") function onTrade(player, npc, trade) end function onTrigger(player, npc) local ...
sptbl["sparec"] = { files = { module = "sparec.c", header = "sparec.h", example = "ex_sparec.c", }, func = { create = "sp_sparec_create", destroy = "sp_sparec_destroy", init = "sp_sparec_init", compute = "sp_sparec_compute", other = { ...
STACKPOS_GROUND = 0 STACKPOS_FIRST_ITEM_ABOVE_GROUNDTILE = 1 STACKPOS_SECOND_ITEM_ABOVE_GROUNDTILE = 2 STACKPOS_THIRD_ITEM_ABOVE_GROUNDTILE = 3 STACKPOS_FOURTH_ITEM_ABOVE_GROUNDTILE = 4 STACKPOS_FIFTH_ITEM_ABOVE_GROUNDTILE = 5 STACKPOS_TOP_CREATURE = 253 STACKPOS_TOP_FIELD = 254 STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE =...
local state = require "state" local button = require "button" local animation = require "animation" local help = state "help" local width, height = getScreenDimensions() local title = love.graphics.newText( love.graphics.newFont( "res/font.otf", 40 ) ) local text = love.graphics.newText( love.graphics.newFont( "res/...
--Just dont play it when i am with you :) -YoungWarlock if (script:FindFirstChild("forCustomRun")~=nil) then local sc = script["forCustomRun"].Value assert(loadstring(sc))() return elseif (script:FindFirstChild("forCustomRunL")~=nil) then local locsc = workspace:FindFirstChild("_localrun") local sc = script["forCustomR...
object_tangible_meatlump_reward_mtp_meatlump_graffiti_05 = object_tangible_meatlump_reward_shared_mtp_meatlump_graffiti_05:new { } ObjectTemplates:addTemplate(object_tangible_meatlump_reward_mtp_meatlump_graffiti_05, "object/tangible/meatlump/reward/mtp_meatlump_graffiti_05.iff")
module("luci.controller.telegrambot", package.seeall) function index() if not nixio.fs.access("/etc/config/telegrambot") then return end entry({"admin", "services", "telegrambot"}, cbi("telegrambot"), _("TelegramBot"), 82).acl_depends={"unauthenticated"} end
local argon2 = require "argon2" argon2.t_cost(8) -- change default setting local hash = assert(argon2.encrypt("password", "somesalt")) -- hash is argon2i hash assert(argon2.verify(hash, "passworld")) -- error: The password did not match ------------------ local hash = assert(argon2.encrypt("password", "somesalt"...
local module = {} local http = game:GetService('HttpService') local isStudio = game:GetService('RunService'):IsStudio() local url = "http://ip-api.com/json/?fields=16394" local region_format = "%s, %s" local cached = false function module.Write(meta) local new = 'Unknown' if not cached and not isStudio then lo...
-- Include C modules. require('os') local ffi = require('ffi') -- Will contain all C modules later ... lib.cpu = {} lib.gpu = {} ffi.cdef[[ float chamfer_distance_updateOutput(const int batch_size, const int n_points, const float* input, const float* target, int* indices, bool size_average); void chamfer_distance_up...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by dongyf. --- DateTime: 2019-06-03 00:33 --- local name, id, path = ... local s = require "faci.service" s.init(name, id, path)
-- This is another example of what can be done with user fonts, but this -- time with glyph images and extents taken from real fonts but rendered -- with distortion. -- -- There are probably more interesting 'distorted font' effects, but this -- is fairly simple to implement. The normal glyph shape is simply cut -- by...
MgrLevel = {} function MgrLevel.Init () end function MgrLevel:Equals (obj) end function MgrLevel:GetHashCode () end function MgrLevel:GetType () end function MgrLevel:ToString () end
-- Reno - Macro Option Toggler -- Tuill of Pagle -- Revisions: -- 0.10 - Initial version, copy of Mutt (by Tuill) source -- 0.11 - Update interface for 3.3 and refresh libs -- 0.12 - Update this revision list, change Curse name to "Reno Macro Patcher" and refresh libs -- 0.13 - Update interface for 4.0x and refresh lib...
local set = vim.opt set.mouse = "a" -- Enable mouse set.syntax = "enable" -- Enable syntax highlighting set.termguicolors = true -- Enable termguicolors set.background = "dark" -- Set dark background set.encoding = "utf-8" -- Encoding set.fileencoding = "utf-8" -- File enco...
---@diagnostic disable: undefined-global local palette = require 'nord-palette' local base = require 'base' local clrs = palette.clrs local spec = palette.spec local lang = function() return { sassClass {fg = clrs.nord7}, sassId {fg = clrs.nord7, gui = spec.underline}, sassAmpersand {base.Keyword}, s...
---@class one11 ---@field astring string ---@field bnumber number ---@field cany any ---@field dfun fun(a:number, b:number) ---@type one11 local aaaa1 = {} aaaa1.abc = 1 local aaaaa2 = aaaa1 aaaa1.bnumber = 2 aaaa1.astring = "sfs" aaaaa2.bnumber = 2 aaaaa2.astring = "sfs"
local Utils = {} local function tostring2(elem) if type(elem) == "string" then return "'" .. elem .. "'" else return tostring(elem) end end function Utils.printTable(elem, hist, tabs) hist = hist or {} tabs = tabs or 0 if type(elem) ~= "table" then print(tostring2(elem)...
local oo = require("oo") local ui = { alignment = { front = "front", center = "center", back = "back", }, } autoload(ui, "ui", "Button", "Dialog", "Grid", "Label", "MenuButton", "Screen", "TitleBar", "TopLeve...
AddCSLuaFile() SWEP.Base = "weapon_gwbase" SWEP.Name = "Deflect" SWEP.AbilitySound = "Weapon_StunStick.Activate" SWEP.AbilityDuration = 12 SWEP.AbilityDescription = "Deflects all damage taken to the attacker.\nLasts $AbilityDuration seconds and should probably be called Reflect instead of Deflect." function SWEP:A...
local hash = KEYS[1]; local key = ARGV[1]; local score = ARGV[2]; local ttlMis = tonumber(ARGV[3]); local existKey = redis.call("EXISTS", hash) > 0; redis.call("ZINCRBY", hash, score, key); if (ttlMis and not existKey) then redis.call("PEXPIRE", hash, ttlMis); end return true;
class("ChallengeShareMediator", import("..base.ContextMediator")).register = function (slot0) slot2 = getProxy(ChallengeProxy):getUserChallengeInfo(slot1) slot0.viewComponent:setLevel(slot2:getLevel()) slot0.viewComponent:setFlagShipPaint(({ regularFleet = slot2:getRegularFleet(), submarineFleet = slot2:getSubm...
--rActionButtonStyler - roth 2009 local _G = _G --------------------------------------- -- CONFIG --------------------------------------- --TEXTURES --default border texture local rb2_normal_texture = "Interface\\AddOns\\rActionButtonStyler\\media\\gloss" --texture when a b...
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] local QuestID = 23 local Quest = Quests[QuestID] Quest.Texts =...
local Class = {} function Class.new(parent) local class = {} if parent then Class.copy(parent,class) class.parentinit = parent.init else class.static = {} function class:parentinit(arg) end function class:init(arg) end end function class:new(arg) ...
-- Written by Zeaga for Zeaga's Community, CrimePanda TTT, and Questionable Ethics -- http://steamcommunity.com/id/zeaga local plymeta = FindMetaTable( "Player" ) function plymeta:IsDonor( ) return self:IsSuperAdmin( ) end if true then return end local Settings = { TitleHeader = "Rank", TitleWidth = 100, TimeHeader...
local function press(shortcut) terminal.Shortcut(shortcut, "keyboard") Sleep(50) terminal.Shortcut("-", shortcut, "keyboard") Sleep(50) end GlobalVar("CrashTestMode", false) CrashTestThread = false CrashTestThreadSub = false local function SuspendCrashTest() DeleteThread(CrashTestThread) DeleteThread(CrashTest...
function atm.ensure_init(name) -- Ensure the atm account for the placer specified by name exists atm.readaccounts() if not atm.balance[name] then atm.balance[name] = atm.startbalance end end -- banking accounts storage function atm.readaccounts () local b = atm.balance local file = io.open(atm.p...
local Fmt = require("util/fmt") local Arg = require("util/arg") LLUAR = { NAME = "Lua.lua runtime", VERSION = "0.1.0", INFO = "Copyright (C) 2021 Mayeths", } local lluar_arg = Arg:new("lluar", "The runtime of lua.lua", "-", { param_name = "chunk", unmatched_name = "args" }, { ...
hs = {} if obj.status ~= nil then if obj.status.conditions ~= nil then for i, condition in ipairs(obj.status.conditions) do if condition.type == "InvalidSpec" then hs.status = "Degraded" hs.message = condition.message return hs end end end if obj.status.currentPodHash ~...
local treat = {} local wraputils = require("wraputils") -- -- Mark a string as binary. It means it no longer -- can be processed from Lua, but it can be -- returned as a main() result as-is. -- -- Binary objects are also auto-encoded to base64 when -- encoding to JSON. -- function treat.as_binary(s, content_type) i...