content
stringlengths
5
1.05M
local module = {} local Promise = {} Promise.__index = Promise local IsServer = game:FindService("NetworkServer") ~= nil local Player = game.Players.LocalPlayer if script.Parent:IsA("Actor") then return function(func, ...) local Response local Args = {...} local Success, Error = pcall(function() task.desync...
--the purpose of this script is to unify all the tools --by allowing each one to access the same common settings --set by the user local controller = {} local uiController = require("tevgit:create/controllers/ui.lua") local themeController = require("tevgit:create/controllers/theme.lua") controller.gridStep = 0.2 con...
local cfg = {} -- define garage types with their associated vehicles -- (vehicle list: https://wiki.fivem.net/wiki/Vehicles) -- each garage type is an associated list of veh_name/veh_definition -- they need a _config property to define the blip and the vehicle type for the garage (each vtype allow one vehicle to be ...
local function dummy( X, Y, N, Z ) status = qc.add_I4_I4_I4(X, Y, n, Z) assert(status == 0) end return dummy
local nvim_lsp = require('lspconfig') local M = {} function M.on_attach(client, bufnr) -- Use an on_attach function to only map the following keys -- after the language server attaches to the current buffer local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end buf_set_option('omnifunc...
-- Copyright (C) Mashape, Inc. local BasePlugin = require "kong.plugins.base_plugin" local stringy = require "stringy" local response = require "kong.tools.responses" local CONTENT_LENGTH = "content-length" local RequestSizeLimitingHandler = BasePlugin:extend() RequestSizeLimitingHandler.PRIORITY = 950 local funct...
function foo() WaitForSeconds(1) print(UnityEngine.Time.time) local www=UnityEngine.WWW('http://www.baidu.com') Yield(www) local s = tolua.tolstring(www.bytes) print(s:sub(1,129)) end StartCoroutine(foo)
TheFastestEnchanter = LibStub("AceAddon-3.0"):NewAddon("TheFastestEnchanter", "AceConsole-3.0", "AceEvent-3.0") -- Init state TheFastestEnchanter:RegisterChatCommand("tfe", "TFESlash") TheFastestEnchanter.Enabled = false TheFastestEnchanter.Invite = true TheFastestEnchanter.Advertise = true TheFastestEnchanter.Advert...
local Chara = require("api.Chara") local Item = require("api.Item") local Sidequest = require("mod.elona_sys.sidequest.api.Sidequest") local Enum = require("api.Enum") local common = require("mod.elona.data.dialog.common") data:add { _type = "elona_sys.dialog", _id = "miches", nodes = { __start = func...
--!strict --[[ A special key for property tables, which parents any given descendants into an instance. ]] local Package = script.Parent.Parent local PubTypes = require(Package.PubTypes) local logWarn = require(Package.Logging.logWarn) -- local Observe = require(Package.State.Observe) local xtypeof = require(Packag...
local mp = require"MessagePack" --inspect = require"inspect" mp.set_string('binary') local function lua2vim(t) if type(t) ~= "table" then return t end local l = vim.list() for _,v in ipairs(t) do l:add(lua2vim(v)) end return l end local list_t = getmetatable(vim.list()) local fu...
bagIcons = { '170fa52959e.png', '170fa52b3f4.png', '170fa52d22d.png', '170fa52ed70.png', '1710c4d7d09.png', '172af53daad.png', '17725835470.png', '17725832d18.png', }
local map = vim.api.nvim_set_keymap map('n','<M-p>',":lua require'telescope'.extensions.project.project{}<CR>", {noremap = true, silent = true}) map('n','<leader>gr','<cmd>Lspsaga rename<CR>', {silent = true}) map('n','<leader>ga','<cmd>Lspsaga code_action<CR>', {silent = true}) map('n','<leader>gd','<cmd>Lspsa...
import "Turbine" import "Turbine.Gameplay" import "Turbine.UI" import "Turbine.UI.Lotro" import "TurbineDumper.Class" local function dump(o) if o == nil then return "nil" end if type(o) == 'table' then local s = '{\n' for k,v in pairs(o) do if type(k) ~= 'number' the...
--[[ TheNexusAvenger Displays the pet for the inventory. --]] local CAMERA_FIELD_OF_VIEW = 20 local CAMERA_CFRAME_BACK = 12 local ROTATE_SPEED_MULTIPLIER = 0.5 local SLOT_TO_PART_NAME = { PetCostumeHat = "Hat", PetCostumeCollar = "Collar", PetCostumeBack = "Cape", PetCostumeAnkle = "Anklet", } local RunService...
-- Sets the configuration for pop-up headlights for a vehicle model. -- @module fivem -- @submodule unique -- @link https://wiki.fivem.net/wiki/SetModelHeadlightConfiguration -- @usage SetModelHeadlightConfiguration('ruiner2', 120.0, 37.5, false) -- @usage SetModelHeadlightConfiguration('tropos', 30.0, 40.0, false) -- ...
do local _class_0 local _base_0 = { forward = function(self, V, is_training) self.in_act = V local V2 = V:clone() local N = #V.w if is_training then for i = 1, N do if math.random() < self.drop_prob then V2.w[i] = 0 self.dropped[i] = true ...
local function PercentChanged(inst, data) if inst.components.tool and data.percent and data.percent <= 0 and inst.components.inventoryitem and inst.components.inventoryitem.owner then inst.components.inventoryitem.owner:PushEvent("toolbroke", {tool = inst}) end end local Tool = Class(fun...
local record = IrbisRecord.__new () local field700 = RecordField.__new ("700") local subA = SubField.__new ('a', "Управляемый клиент") field700.SubFields.Add (subA) record.Fields.Add (field700) local field200 = RecordField.__new ("200") subA = SubField.__new ('a', "Новая запись") field200.SubFields.Add (subA) record.Fi...
local api = vim.api local M = {} -- Key mapping function M.map(mode, key, result, opts) local options = { noremap = true, silent = true, expr = false } if opts then options = vim.tbl_extend("keep", opts, options) end api.nvim_set_keymap(mode, key, result, options) end -- Docker LSP function...
-- praxis: shadprog,shadres = glCreateProgram( [[ // checkerboard.vs // // Generic vertex transformation, // copy object-space position and // lighting vectors out to interpolants uniform vec3 lightPos; varying vec3 N, L, V; void main(void) { // normal MVP transform gl_Position = gl_ModelViewProjectionMat...
local hsl = require("lush").hsl local lush = require "lush" local M = {} M.colors = { -- foreground shades fg1 = "#405860", fg2 = "#4D616B", fg3 = "#65737E", fg4 = "#ADB5C0", fg = "#D8DEE9", -- background shades bg1 = "#17262E", bg2 = "#192932", bg = "#1B2B34", bg4 = "#22...
function cluedota:StartEventTest() ListenToGameEvent("team_info", Dynamic_Wrap(cluedota, 'On_team_info'), self) ListenToGameEvent("team_score", Dynamic_Wrap(cluedota, 'On_team_score'), self) ListenToGameEvent("teamplay_broadcast_audio", Dynamic_Wrap(cluedota, 'On_teamplay_broadcast_audio'), self) ListenToGameEvent(...
local util = require("util") local smartmove = require("smartmove") local robot = require("robot") local shell = require("shell") local objectStore = require("objectStore") local component = require("component") local ic = component.inventory_controller local inventory = require("inventory") local chunkloader = compone...
os.loadAPI("gorton/procedure.lua") procedure = _G["gorton/procedure.lua"] _G["gorton/procedure.lua"] = nil EXAMPLE_PORT_1 = 5 EXAMPLE_PORT_2 = 6 firstProc = procedure.new(EXAMPLE_PORT_1) secondProc = procedure.new(EXAMPLE_PORT_2) totalUpdates = 0 updateCallback = function(eventid, eventdata) totalUpdates = t...
local towergfx = gfxClass:newSubClass() towergfx:setupIcons("gfx-tower") towergfx.quads = {} towergfx.decs = {} towergfx.decTime = 0 towergfx.decAnimN = 1 --towergfx.decs[1] = newAnim(love.graphics.newImage("gfx-tower/lavabubbles.png"),32,32,4) local function is3(a) if a == 3 then return 1 end return 0 end ...
-- angrybino -- RemoteProperty -- September 26, 2021 --[[ -- Static methods: RemoteProperty.IsRemoteProperty(self : any) --> boolean [IsRemoteProperty] RemoteProperty.new(value : any) --> RemoteProperty [] -- Instance members: RemoteProperty.OnValueUpdate : Signal (newValue : any) RemoteProperty.O...
function declare(s) end declare "lint_ignore" function lint_ignore(s) end
-- -- Copyright (c) 2018 Milos Tosic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- -- https://github.com/bkaradzic/bx local params = { ... } local BX_ROOT = params[1] local BX_INCLUDE = { BX_ROOT .. "include", BX_ROOT .. "3rdparty", BX_ROOT .. "include/compat" } local BX_...
local util = require 'util.util' local _ = require 'moses' function eval(savedNetwork, criterion, evalSet, nEpisodes, conf, opt, optimOpt) local acc = {} _.each(conf, function(k, cM) acc[k] = torch.zeros(nEpisodes) end) -- evaluate validation set for v=1,nEpisodes do local trainSet, t...
function getDonators() local players = exports.pool:getPoolElementsByType("player") local donators = { } for key, value in ipairs(players) do if isPlayerBronzeDonator( value ) then table.insert( donators, value ) end end return donators end function isPlayerBronzeDonator(thePlayer) retur...
--[[ -- Controller基类 -- @author zhiyuan <zhiyuan12@staff.weibo.com> --]] Controller = Class:new('Controller') -- 构造方法 function Controller:new () return Class:new('Controller', self) end function Controller:classCheck() return self.class end function Controller:getGetParams() return ngx.req.get_uri_args() en...
local playstate = require("playstate") local survival = require("survivelevel") local mainmenu = require("mainmenu") local playersselection = require("playersselection") local options = require("optionsmenu") local highscorescreen = require("highscores") local tutorial = require("tutorialstate") local statemanager = re...
local config = {} config.project_scan_rate = 5 config.fps = 60 config.max_log_items = 80 config.message_timeout = 5 config.mouse_wheel_scroll = 50 * SCALE config.scroll_past_end = true config.file_size_limit = 10 config.ignore_files = "^%." config.symbol_pattern = "[%a_][%w_]*" config.non_word_chars = " \t\n/\\()\"':,...
local path = require 'pl.path' local utils = require 'pl.utils' local asserteq = require 'pl.test'.asserteq local echo_lineending = "\n" if path.is_windows then echo_lineending = " \n" end local function test_executeex(cmd, expected_successful, expected_retcode, expected_stdout, expected_stderr) --print("\n"..cmd...
if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end SWEP.BulletLength = 2 SWEP.CaseLength = 10.5 -- this is just to make it so it has an effective range of about 50 meters, size doesn't matter here SWEP.DamageDecayMod = 3.68 SWEP.MuzVel = 339.894 SWEP.Attachments = { [1] = {"eotech"}} SWEP.InternalParts = { [1]...
local unimenu = { specs = {}, historyBack = {}, historyForward = {}, currentMenu = {}, defaults = { BACK = {"< Back", ""}, NEXT = {"Next >", ""}, TITLE_FORMATTER = function(title, page) return title .. " (Page " .. page .. ")" end, }, exports = { __VERSION = ...
object_mobile_outbreak_delivery_hum_m_01 = object_mobile_shared_outbreak_delivery_hum_m_01:new { } ObjectTemplates:addTemplate(object_mobile_outbreak_delivery_hum_m_01, "object/mobile/outbreak_delivery_hum_m_01.iff")
local sql = require'lsqlite3' local util = require'util' -- utf-8 functions (C) Rici Lake -- http://luaparse.luaforge.net/libquery.lua.html local function X(str) return tonumber(str, 16) end local math = require 'math' local strbyte = string.byte local strfind = string.find local offset2 = X"C0" * 64 + X"80" local offs...
--Localization.frFR.lua local L = Apollo.GetPackage("Gemini:Locale-1.0").tPackage:NewLocale("CommodityStats", "frFR") if not L then return end -- Translated from google. Translators wanted! L["Locale"] = "frFR" -- leave this alone L["Statistics"] = "Statistiques" -- header tab L["Transactions"] = "Transactions" -- head...
---@meta ---@class socketdriver local socketdriver = {} ---* 作为客户端,连接到一个 IP和端口 ---* 会返回一个代表了 skynet 内部和系统套接字文件描述符相关的结构索引 ---@param addr string @可以是一个IPV4地址,也可以是 'ip:port' 这样的形式,这种形式下,就可以不指定 Port ---@param port number @端口 ---@return number @skynet对套接字描述符的表示 function socketdriver.connect(addr, port) end ---关闭连接 ---* clos...
object_mobile_outbreak_undead_civilian_37 = object_mobile_shared_outbreak_undead_civilian_37:new { } ObjectTemplates:addTemplate(object_mobile_outbreak_undead_civilian_37, "object/mobile/outbreak_undead_civilian_37.iff")
local addonName, addon = ... local L = LibStub("AceLocale-3.0"):GetLocale(addonName) local HEIGHT_NO_CONTENT = 71; local listItemHeight = TritonKeywordUI.scrollFrame.items[1]:GetHeight(); local listElementCount = #TritonKeywordUI.scrollFrame.items; local maxElementCount = listElementCount; local sortedEntri...
function ApplyShards(keys) local caster = keys.caster local ability = keys.ability local point = caster:GetAbsOrigin() for _, target in ipairs(FindUnitsInRadius(caster:GetTeamNumber(), point, nil, ability:GetCastRange(point, nil), ability:GetAbilityTargetTeam(), ability:GetAbilityTargetType(), ability:GetAbilityTar...
execution_context = gs.ScriptContextAll -------------------------------------------------------------------------------- time_of_day = 12 --> float longitude = 0.3 --> float attenuation = 1.0 --> float -------------------------------------------------------------------------------- dofile("@core/lua/math_common.lua")...
C_AccountInfo = {} ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_AccountInfo.GetIDFromBattleNetAccountGUID) ---@param battleNetAccountGUID string ---@return number battleNetAccountID function C_AccountInfo.GetIDFromBattleNetAccountGUID(battleNetAccountGUID) end ---[Documentation](https://wowpedia.fandom.c...
local paths = {} local _, folders = file.Find("vrmod/*","LUA") table.sort(folders, function(a,b) return tonumber(a) < tonumber(b) end) for k,v in ipairs(folders) do paths[#paths+1] = "vrmod/"..v.."/" end paths[#paths+1] = "vrmod/" for k,v in ipairs(paths) do for k2,v2 in ipairs(file.Find(v.."*","LUA")) do...
local error = error local tostring = tostring local type = type local floor = math.floor local base = require "resty.core.base" local get_string_buf = base.get_string_buf local ffi = require "ffi" local ffi_string = ffi.string local _M = { version = "0.1"} local function load_shared_lib(so_name) local tried_pat...
Locales['fr'] = { ['skin_menu'] = 'Création de votre personnage', ['use_rotate_view'] = '~INPUT_VEH_FLY_ROLL_LEFT_ONLY~ et ~INPUT_VEH_FLY_ROLL_RIGHT_ONLY~ pour tourner la vue.', ['skin'] = 'changer de personnage', ['saveskin'] = 'sauvegarder skin dans un fichier', ['confirm_escape'] = 'Êtes vous sur de vouloi...
---------------------------------------------------------------------- -- doall.lua -- -- An overall script to start the training and create the validation predictions -- it creates the validation predictions once in 100 epochs -- -- Arulkumar (aruls@cse.iitm.ac.in) -- team evolgen ------------------------------------...
local gauntlet_data = require "gauntlet_data" local deepcopy = require "deepcopy" local CopyPaste = { NAME = "COPY_PASTE.EXE", DOUBLE_RARITY = 1 } local NUMBER_OF_BUFFS_DOUBLED = 3 function CopyPaste:activate(current_round) gauntlet_data.copy_paste_active_number_of_buffs = gauntlet_data.copy_paste_activ...
local completion = {} local conf = require('modules.completion.config') completion['neovim/nvim-lspconfig'] = { config = conf.nvim_lsp } completion['williamboman/nvim-lsp-installer'] = { opt = true, cmd = {'LspInstall', 'LspUninstall'} } completion['glepnir/lspsaga.nvim'] = { opt = true, cmd = 'Lsp...
Options = Area:extend() Options.fonts = { big = Asset.font("familiar", 120 * SCALE), normal = Asset.font("familiar", 70 * SCALE), small = Asset.font("familiar", 40 * SCALE) } Options.selectorPositions = { {x = 40, y = 50, width = 358, height = 250}, {x = 673, y = 50, width = 500, height = 250}, {x = 1480, y = ...
#!/usr/bin/env lua5.1 -- Copyright mrDoctorWho <mrdoctorwho@gmail.com> -- Published under the MIT license package.path = package.path..";../src/?.lua" local captcha = require 'captcha' local filename = "captcha2.jpg" -- Create the captcha object local cap = captcha.new() -- Set font (required) cap:font("./Vera.ttf...
local pfile = io.popen('ls') for filename in pfile:lines() do if filename:match('tabchi%-(%d+)%.lua') then local text, ok = io.open(filename,'r'):read('*a'):gsub([[localfile("tabchi.lua")()]],[[tabchi = dofile("tabchi.lua")]]):gsub([[update(data, tabchi_id)]],[[tabchi.update(data, tabchi_id)]]) io.open(filena...
-- Prosody IM -- Copyright (C) 2017 Atlassian -- local jid = require "util.jid"; local it = require "util.iterators"; local json = require "util.json"; local iterators = require "util.iterators"; local array = require"util.array"; local have_async = pcall(require, "util.async"); if not have_async then ...
local vector = require "vector" local score_display = {} score_display.position = vector( 680, 32 ) score_display.score = 0 function score_display.update( dt ) end function score_display.draw() love.graphics.print( "Score: " .. tostring( score_display.score ), score_display.position.x, score_display.positio...
Locales['pl'] = { ['sex'] = 'płec', ['face'] = 'twarz', ['face_2'] = 'twarz 2', ['face_3'] = 'twarz 3', ['skin'] = 'skóra', ['skin_2'] = 'skóra 2', ['skin_3'] = 'skóra 3', ['blend'] = 'Mieszanka', ['eye_color'] = 'kolor oczu', ['ears'] = 'Uszy', ['ears_color'] = 'Kolor Uszu', ['blend...
-- lua5.1 multicrop.lua 100 500 100 500 *.jpg require"imlua" require"imlua_process" err_msg = { "No error.", "Error while opening the file.", "Error while accessing the file.", "Invalid or unrecognized file format.", "Invalid or unsupported data.", "Invalid or unsupported compression.", "Ins...
------------------------------------ --class role_f_v 角色_帧动画_视图 --这里的规则 p03.plist里的缓存图像必须以p031_%d 为准 local C={ [1]={ "p03.plist","p03.png" }, [2]={ "a.plist","a.png" } } return C
------------------------------------------------------------------------------- -- Mob Framework Mod by Sapier -- -- You may copy, use, modify or do nearly anything except removing this -- copyright notice. -- And of course you are NOT allow to pretend you have written it. -- --! @file init.lua --! @brief npc implement...
require('httpd/route'); require('httpd/error'); require('httpd/view'); require('httpd/json'); Httpd = class.new(); function Httpd:constructor(config) self.port = 8080; self.ip = '127.0.0.1'; self:init(config); self.clients = {}; end function Httpd:init(config) if( not config or type(config) ~= 'table' ) then ...
-- -- Created by IntelliJ IDEA. -- User: michel -- Date: 10/23/14 -- Time: 1:06 PM -- To change this template use File | Settings | File Templates. -- describe("LuaRocks-RPM core tests", function() describe("should pass", function () it("should be easy to use", function() assert.truthy("Yup.") ...
HouseSystem.loadTerrains = function(self) local name = self.houseOwner local nameData = players[name] local forSaleSign = room.event ~= '' and room.specialBackgrounds[room.event].forSaleSign or '1708781ad73.png' if room.terrains[1] then for i = 1, #mainAssets.__terrainsPositions do if not room.terrains[i].boug...
--!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...
-- Copyright 2018-2020 Lienol <lawlienol@gmail.com> module("luci.controller.filebrowser", package.seeall) local http = require "luci.http" local api = require "luci.model.cbi.filebrowser.api" function index() if not nixio.fs.access("/etc/config/filebrowser") then return end entry({"admin", "nas"}, firstchild...
-- -- Minetest wireless touchscreens mod -- wireless_touchscreens = {} local storage = minetest.get_mod_storage() -- Node protection checking, copied from scriptblocks. if minetest.get_modpath('scriptblocks') then wireless_touchscreens.check_protection = scriptblocks.check_protection else wireless_touchscreen...
local schools,courses,list = {},{},{} local function School(name) return function(init) init.name = name schools[name] = init end end local function Course(name) return function(init) init.name = name courses[name] = init for _,school in pairs(schools) do table.insert(list, { n...
return {'lues','luesink'}
--[[-------------------------------------------------- GUI Editor client tutorial_main.lua main usage tutorial for the editor --]]-------------------------------------------------- function Tutorial.constructors.main() local t = Tutorial:create("main", "Tutorial", true) local pageIntro = t:addPage("Introduc...
local hooks = {} epic.register_hook = function(hook) table.insert(hooks, hook) end epic.run_hook = function(name, params) for _, hook in ipairs(hooks) do local fn = hook[name] if fn and type(fn) == "function" then fn( unpack(params) ) end end end
local router = require 'router' local LEAF = router._LEAF describe("Router", function() local r local dummy local function write_dummy(params) dummy.params = params end before_each(function () dummy = {} r = router.new() end) describe(":match", function() describe('when first param is a stri...
fx_version 'bodacious' game 'gta5' name 'ShotSpotter' description 'Gunshot detection and alert system.' author 'Lama' version '1.0.3' server_script "server.lua" client_script { "client.lua", "config.lua" }
local GUI = require("GUI") local paths = require("Paths") local system = require("System") local module = {} local workspace, window, localization = table.unpack({...}) local userSettings = system.getUserSettings() -------------------------------------------------------------------------------- module.name = local...
return {'tembaar','temeer','temeier','temen','temer','temerig','temerigheid','temet','temmen','temmer','tempeest','tempeesten','tempel','tempelachtig','tempelbouw','tempelcomplex','tempeldienst','tempelen','tempelfeest','tempelier','tempelpolitie','tempelridder','tempelstad','tempelwijding','tempen','tempera','temperam...
--[[ Copyright (c) 2019 igor725, scaledteam released under The MIT license http://opensource.org/licenses/MIT ]] LOG_DEBUG = 5 LOG_WARN = 4 LOG_CHAT = 3 LOG_INFO = 1 LOG_ERROR = 0 log = { types = { [LOG_DEBUG] = {'DEBUG', '1;34'}, [LOG_WARN ] = {'WARN ', '35' }, [LOG_CHAT ] = {'CHAT ', '1;33'}, [LOG_IN...
-- Buttons local button = {} button.list = {} local id = 1 function button:new(object) local name = object.name or id id = id + 1 self.list[name] = object end function button:delete(object) if object.name and self.list[object.name] then self.list[object.name] = nil else for i,v in pairs(self.list)...
local enabled = false local cache = "" local options = { c_langs = { "arduino", "c", "cpp", "cuda", "go", "javascript", "ld", "php" }, max_lines = 5000, } local function search(prefix, pattern) local line = vim.fn.search(pattern, "nw") if line == 0 then return "" end return string.format("[%s:%d]", pre...
local axuiWindowElement = require('hs._asm.axuielement').windowElement local module = {} local log = hs.logger.new('overrides', 'debug'); -- override some hs.grid stuff so it works better with my OCD module.init = function() -- detects if window can be resized -- this is not ideal, but works for me hs.window.i...
----------------------------------------- -- ID: 14992 -- Water Mitts -- Enchantment: "Enwater" ----------------------------------------- function onItemCheck(target) return 0 end function onItemUse(target) local effect = tpz.effect.ENWATER doEnspell(target, target, nil, effect) end
local o, wo, bo = vim.o, vim.wo, vim.bo local options = {} options.scope = {} options.scope.option = { o } options.scope.buffer = { o, bo } options.scope.window = { o, wo } options.set = function(scope, option, value) for _, s in ipairs(scope) do s[option] = value end end return options
modifier_miss = class({}) function modifier_miss:DeclareFunctions() return { MODIFIER_PROPERTY_EVASION_CONSTANT } end function modifier_miss:GetModifierEvasion_Constant(params) return 100 end
project "CppConsoleApp" kind "ConsoleApp" language "C++" flags { "FatalWarnings", "ExtraWarnings" } files { "*.h", "*.cpp" } includedirs { "I:/Code" } libdirs { "../lib" } links { "CppSharedLib" } configuration "Debug" targetdir "../bin/debug (x64)" links { "CppStaticLib" } configu...
local script_win = [[ $object = Invoke-WebRequest -UseBasicParsing https://api.github.com/repos/clojure-lsp/clojure-lsp/releases/latest | ConvertFrom-JSON $object.assets | ForEach-Object { if ($_.browser_download_url.Contains("windows")) { $url = $_.browser_download_url } } Invoke-WebRequest -UseBasicParsing $...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) IsInSpawnMenu = false AddEventHandler('az_spawn:openMenu', function() OpenSpawnMenu() end) function StartSpawnRestriction() Citizen.CreateThread(function() while IsInSpawnMenu do Citizen.Wait(0) local playe...
----------------------------------- -- Area: The Shrine of Ru'Avitau -- NM: Kirin ----------------------------------- local ID = require("scripts/zones/The_Shrine_of_RuAvitau/IDs"); mixins = {require("scripts/mixins/job_special")}; require("scripts/globals/titles"); require("scripts/globals/mobs") -------------------...
local base = {} base.__index = base base.on_output = function(self, value) pcall(vim.schedule_wrap( function() self.handler.on_result(value) end)) end base.on_error = function (self, value, ref) if value ~= 0 then pcall(vim.schedule_wrap( function() self.handler.on_error({ ...
----------------------------------- -- Auto Bank Version 0.0.1 -- ----------------------------------- local _prefix ="[Autobank]: " local _carryMoney = 1000 local _settings = { enabled = true, carryMoney = 1000 } local function DepositMoney(carryMoney) local money = GetCurrentMoney() local diff =...
_g4z1CrMHdtWE1QNB, Protected_by_MoonSecV2, Discord = 'discord.gg/gQEH2uZxUk',nil,nil;(function() _msec=(function(_,__,_l)local _ll__l=__["   ​           "];local ___l_l=_l[_[(-19+0x2b0)]][_["        "]];local _l___=(-#{{};'nil','}',(function(_)return _ end)(),(function()return('0MIMoH'):find("\16")end)();(function()ret...
--------------- -- Mount API -- --------------- draconis.mounted_player_data = {} local abs = math.abs ------------------- -- Player Visual -- ------------------- minetest.register_entity("draconis:mounted_player_visual", { initial_properties = { mesh = "character.b3d", visual = "...
function foo() function bar() end end
lunar_horse_sun_orb_move_range_counter_modifier = class({}) function lunar_horse_sun_orb_move_range_counter_modifier:OnCreated( kv ) self.move_distance_min = self:GetAbility():GetSpecialValueFor("move_distance_min") self.move_distance_max = self:GetAbility():GetSpecialValueFor("move_distance_max") self.hero_mov...
local lpeg = require 'lpeg' -- Lexical Elements local Space = lpeg.S(" \n\t")^0 local Number = lpeg.C(lpeg.P"-"^-1 * lpeg.R("09")^1) * Space local TermOp = lpeg.C(lpeg.S("+-")) * Space local FactorOp = lpeg.C(lpeg.S("*/")) * Space local Open = "(" * Space local Close = ")" * Space -- Auxiliary function function eval ...
-- control.lua -- Jan 2019 -- Oarc's Separated Spawn Scenario -- modified by jvmguy. where "I" is used below, that's Oarc, not jvmguy. -- -- I wanted to create a scenario that allows you to spawn in separate locations -- From there, I ended up adding a bunch of other minor/major features -- -- Credit: -- RSO mod to...
----------------------------------- -- Zone: Korroloka Tunnel (173) -- Desc: this file contains functions that are shared by multiple luas in this zone's directory ----------------------------------- local ID = require("scripts/zones/Korroloka_Tunnel/IDs") require("scripts/globals/status") -----------------------------...
require 'torch' require 'nn' require 'image' require 'optim' require 'loadcaffe' local cmd = torch.CmdLine() -- Basic options cmd:option('-style_image', 'examples/inputs/seated-nude.jpg', 'Style target image') cmd:option('-style_blend_weights', 'nil') cmd:option('-content_image', 'examples/inputs/tubinge...
-- -- MMI echo query example -- -- Author: Robert G. Jakabosky <bobby@sharedrealm.com> -- require"mdcliapi" require"zmsg" require"zhelpers" local verbose = (arg[1] == "-v") local session = mdcliapi.new("tcp://localhost:5555", verbose) -- This is the service we want to look up local request = zmsg.new("echo") -- ...
-- Bar class -- LGPL Juan Belón Pérez -- videojuegos.ser3d.es -- 2011 Bar = class() function Bar:init() self.bgems = {} self.time = 0 for i=1,maxGemsRow do local gem = Gem((i*79)+32, 666, curGemColor,true) gem.state = GEM_BAR table.insert(self.bgems,gem) end end function Bar:draw() for k=1,maxGemsCol do if board.gems...
local status_ok, tabnine = pcall(require, "cmp_tabnine.config") if not status_ok then return end tabnine:setup({ max_lines = 1000, max_num_results = 20, sort = true, run_on_every_keystroke = true, snippet_placeholder = "..", ignored_file_types = { -- default is not to ignore -- uncomment to ignore in lua: -...
--- A container for Mudlet's built-in Map display. -- @classmod Map local Base = require("vyzor.base") local Map = Base("Component", "Map") local function calculateAbsolutePosition(axisValue, frameAxis, frameDimension) if axisValue >= 0.0 and axisValue <= 1.0 then return frameAxis + (axisValue * frameDimension...