content
stringlengths
5
1.05M
-- -- packet-flows.lua -- -- This script is a plugin for Wireshark and tshark. It displays a -- set of the packet flows between a pair of hosts. Each port used -- in the communication is included, along with the elapsed time from -- the beginning of the packet capture until that particular packet -- was sent. -- -- T...
M_PSTATUS = "PSTATUS" M_PREGISTER = "PREGISTER" M_PCOMMAND = "PCOMMAND" M_MID = os.getComputerID() monitor = nil PALETTE = { ["-1"] = colors.red, ["0"] = colors.yellow, ["1"] = colors.white, ["2"] = colors.green } CLIENTS = { tree1 = {id = -1, status = "-1"}, tree2 = {id = -1, status = "-1"}, ...
--[[ Copyright (c) 2007-2008 Gordon Gremme <gordon@gremme.org> Copyright (c) 2007-2008 Center for Bioinformatics, University of Hamburg Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permis...
local type, getmetatable, setmetatable, rawset do local _obj_0 = _G type, getmetatable, setmetatable, rawset = _obj_0.type, _obj_0.getmetatable, _obj_0.setmetatable, _obj_0.rawset end local Flow local is_flow is_flow = function(cls) if not (cls) then return false end if cls == Flow then return true ...
local host = host or "localhost" local port = port or 8686 local socket = require("socket") local master = assert(socket.tcp()) assert(master:connect(host, port)) local client = master print('connection established on', client:getpeername()) while true do print('input message to send:') local msg = io.read() ...
ys = ys or {} ys.Battle.BattleDamageRateView = class("BattleDamageRateView") ys.Battle.BattleDamageRateView.__name = "BattleDamageRateView" ys.Battle.BattleDamageRateView.Ctor = function (slot0, slot1) slot0._go = slot1 slot0.tick_bar = slot1.transform:Find("tick_bar"):GetComponent(typeof(Image)) slot0.tickBarOb = ...
-- ** Start of modification for Lua@CORE ** local lu = nil if (CoreObject) then local propLuaunit = script:GetCustomProperty("luaunit") lu = require(propLuaunit) else lu = require("luaunit") end -- ** End of modification for Lua@CORE ** local function range(start, stop) -- return list of { s...
require("gameData/gameData"); require("core/dict"); --商城广告 local RechargeTabsAd = class(GameData); RechargeTabsAd.Delegate = { onGetRechargeTabsAdCallBack = "onGetRechargeTabsAdCallBack"; }; RechargeTabsAd.ctor = function(self) end RechargeTabsAd.dtor = function(self) end RechargeTabsAd.in...
--Changed to rm_run to avoid issues with calling it init, had issues with random errors due to it being called init(no other reason that I could figure out). package.path = "/lib/?.lua;/usr/lib/?.lua;/home/lib/?.lua;./?.lua;/home/bin/lib/?.lua"; local comp = require("component"); local mT = require("moveTo"); local ve...
if vim.g.loaded_cmp then return end vim.g.loaded_cmp = true if not vim.api.nvim_create_autocmd then return print('[nvim-cmp] Your nvim does not has `nvim_create_autocmd` function. Please update to latest nvim.') end local api = require('cmp.utils.api') local types = require('cmp.types') local highlight = require(...
if not momoTweak.angelBio then momoTweak.angelBio = {} end local tree = "solid-tree" local seed = {} seed.temp = "tree-temperate-seed" seed.swamp = "tree-swamp-seed" seed.desert = "tree-desert-seed" local garden = {} garden.temp = "temperate-garden" garden.desert = "desert-garden" garden.swamp = "swamp-garden" local t...
--[[ (C) Paul Butler 2008-2012 <http://www.paulbutler.org/> May be used and distributed under the zlib/libpng license <http://www.opensource.org/licenses/zlib-license.php> Adaptation to Lua by Philippe Fremy <phil at freehackers dot org> Lua version copyright 2015 ]] local M={} function M.table_join( t1, t2, t3 ) ...
--[[ LibDraggable Library.LibDraggable.draggify(window) Notes: modified for FishItUp! by marcob@marcob.org 1) moves frames and not windows anymore. 2) reacts on RIGHT mouse clicks and not LEFT. 3) added undraggify() method ]]-- if not Library then Library = {} end local Draggable = {} i...
return { [0x00] = {}, [0x01] = { instruction = "nop", cycles = 2, addr_mode = "inh" }, [0x02] = {}, [0x03] = {}, [0x04] = {}, [0x05] = {}, [0x06] = { instruction = "tap", cycles = 2, addr_mode = "inh" }, [0x07] = { instructi...
-- Fri Apr 24 21:09:39 2020 -- (c) Alexander Veledzimovich -- set HOT -- lua<5.3 local utf8 = require('utf8') local unpack = table.unpack or unpack local SET = { APPNAME = love.window.getTitle(), VER = '1.0', SAVE = 'hotsave.lua', FULLSCR = love.window.getFullscreen(), WID = love.graphics.getWidt...
local Type, Version = "WeakAurasIconButton", 20 local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end local function Hide_Tooltip() GameTooltip:Hide(); end local function Show_Tooltip(owner, line1, line2) GameTooltip:SetOwner(owner...
return {'tweelingen','twentenaar','twents','twee','tweearmig','tweebaansweg','tweebenig','tweebladig','tweecilinder','tweecomponentenlijm','tweed','tweedaags','tweede','tweededivisieclub','tweedegraads','tweedegraadsleraar','tweedehands','tweedehandsautomarkt','tweedehandsje','tweedehandskleding','tweedehandsmarkt','tw...
local lhlh_redis = require "module.lhlh_redis" local lhlh_common = require "module.lhlh_common" local sub = string.sub local find = string.find local char = string.char local tonumber = tonumber local new_tab = lhlh_common.new_tab local _M = new_tab(0, 2) _M._VERSION = '0.02' lhlh_redis.add_commands("cluster") loc...
add_rules("mode.debug", "mode.release") target("coros") set_kind("static") add_files("coroutine.cpp") add_files("scheduler.cpp") add_files("socket.cpp") set_warnings("all", "error") set_languages("c++11") add_includedirs("../include", {public = true}) on_load(function(targ...
local namespace = require('namespace') local ChangeSceneEvent = namespace.class("ChangeSceneEvent") function ChangeSceneEvent:initialize(newSceneName) self.newSceneName = newSceneName LOG("Firing ChangeSceneEvent") end return ChangeSceneEvent
local Game = require("Game") function love.load() love.window.setTitle("Blood Money") love.window.setMode(800, 600, { fullscreentype = "desktop", resizable = true, }) resources = { images = { blocks = { grass = loadImage("resources/images/blocks/grass.png"), }, creature...
int_package = {} function int_package.Pack( table, max_size ) if #table<1 then return 0 end -- set max size (default 100) local max = max_size or 100 -- pack integers local res = table[1] for i=2,#table do res = res * max_size res = res + table[i] end return res end function int_package.Unpack( integer,...
--[[ Information: - Da Hood (https://www.roblox.com/games/2788229376/) ]] -- // Dependencies local Aiming = loadstring(game:HttpGet("https://raw.githubusercontent.com/libaan151/xx5/main/xxxxxxxxxxwts6"))() -- // Disable Team Check local AimingIgnored = Aiming.Ignored AimingIgnored.TeamCheck(false) local Aim...
local file_size = request('!.file.get_size') local represent_size = request('!.number.represent_size') return function(self) self:say( ('Loading "%s" [%s].'):format( self.f_in_name, represent_size(file_size(self.f_in_name)) ) ) local data = self.load(self.f_in_name) if dat...
local jpegLib = require('jpeg') local cinfo = jpegLib.newDecompress() local filename = 'libjpeg/testimg.jpg' print('reading '..filename) local fd = io.open(filename, 'rb') jpegLib.fillSource(cinfo, function() local data = fd:read(2048) --print('read '..tostring(#data)) return data end) local info, err ...
require 'pl.app'.require_here ".." local stack = require 'tools.simplestack' local utest = require 'tools.unittest' utest.group "simplestack" { test_noparmcreate = function () local st = stack() assert (st and st:empty()) end, test_emptytablecreate = function () local st = stack {} assert (st an...
return LoadActor(THEME:GetPathB("","_wait"),0.5)
class("BatchGetCommanderCommand", pm.SimpleCommand).execute = function (slot0, slot1) slot4 = {} slot5 = {} slot6 = {} for slot10, slot11 in ipairs(slot3) do table.insert(slot6, function (slot0) slot0:sendNotification(GAME.COMMANDER_ON_OPEN_BOX, { notify = false, id = slot1, callback = function (s...
require("handlers.handlers") for index, player in pairs(game.players) do if global["armor_bonus"][player.name] == nil and player.get_inventory(defines.inventory.character_armor) ~= nil then local armor_stack = player.get_inventory(defines.inventory.character_armor)[1] if armor_stack ~= nil and armo...
local meta = FindMetaTable( "Player" ); local function nInvSend( len ) LocalPlayer().Inventory = { }; local n = net.ReadUInt( MaxUIntBits( INV_SIZE ) ); for i = 1, n do local id = net.ReadUInt( MaxUIntBits( INV_SIZE ) ); local class = net.ReadString(); LocalPlayer().Inventory[id] = class; end GAMEMODE...
local ServerScriptService = game:GetService("ServerScriptService") local agentsFolder = ServerScriptService:WaitForChild("Agents", 2) local aiBase = require(agentsFolder:WaitForChild("PathfindingAiBase", 2)) local ReplicatedStorage = game:GetService("ReplicatedStorage") local require = require(ReplicatedStorage:WaitF...
--Type => SubSystem --Type => SubSystem --ThingToBuild => name of subsystem to build --RequiredResearch => global research dependencies --RequiredShipSubSystems => subsystems dependencies for local to the ship --RequiredFleetSubSystems => Fleet wide subsystem dependencies --DisplayPriority => Order in UI lists --Displa...
reb = reb or {} include("shared.lua") AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua")
-- This is a piece based on Arvo Part work -- It uses the tintinabulation technique and the structure of Cantus in Memorian of Benjamin Britten -- https://soundcloud.com/victor-bombi/arvo-parts-cantus-remake -- motion track of movie in : https://vimeo.com/222002715 LILY = require"sc.lilypond" --local NRT = require"sc....
local extension = {} local panel = nil extension.name = "Dark Votescreen" extension.is_enabled = true function extension.OnVoteStarted() panel = vgui.Create("pam_votescreen_dark") end function extension.OnVoteCanceled() panel:Remove() end function extension.OnVoterAdded(ply, map_id) panel:AddVoter(ply, map_id) en...
val1=0 val2=2 val3=3
local GTcpManager = class("GTcpManager") function GTcpManager:ctor() self._tcps = {} -- 多个GTcp列表 {tcpId=tcp} 键值对 self._index = 0 self._pushCallbacks = {} self._requestCallbacks = {} self._requestArguments = {} self._requestIndex = 0 end function GTcpManager:init() end --清除所有tcp,--这个函数不出发回调 function GTcpManager...
-- This is a part of uJIT's testing suite. -- Copyright (C) 2015-2019 IPONWEB Ltd. See Copyright Notice in COPYRIGHT assert(jit.status() == true) jit.opt.start(0, 'fold', 'loop', 'dse', 'cse', 'jitcat') -- BUFSTR IR causes an allocation, so corresponding TBAR -- should not be eliminated by the CSE optimization. loca...
--[[----------------------------------------------------------------------------- * 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...
local BOT_MT = TLG.GetBot("base") local METHOD = TLG.NewMethod("deleteMessage") function BOT_MT:DeleteMessage(a, b) if istable(a) then local MSG = a return self:Request(METHOD) :SetParam("chat_id", MSG["chat"]["id"]) :SetParam("message_id", MSG["message_id"]) else return self:Request(METHOD) :SetParam...
--====================================================================-- -- dmc_widget/widget_button.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2014-2015 David McCuskey Permission is hereby...
require 'rockspec' package('rockspec','0.1') depends 'penlight' Lua.directory '.' Lua.module.rockspec() rockspec.write()
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** require "ISUI/ISPanel" local FONT_HGT_MEDIUM = getTextManager():getFontHeight(UIFont.Medium) if debugScenarios == nil then debu...
hello = function() print("Hello, World!") end handle("/", hello)
data:extend( { { type = "bool-setting", name = "gtts-z-No-Runtime-Adjustments", setting_type = "startup", default_value = false, }, { type = "bool-setting", name = "gtts-Adjust-GameSpeed", setting_type = "startup", default_value = true, }, { type = "int-setting", name ...
local PATH = (...):gsub('%.[^%.]+$', '') local Component = require(PATH .. '.component') local log = require 'log' local Coroutine = Component:extend() -- function(co, dt) -- co:wait(3) -- co:waitUntil(...) -- end function Coroutine:new(func) Coroutine.super.new(self) self.coroutine = coroutine.create(func) e...
local item = ... local game = item:get_game() --this code should probably be somewhere else function game:add_stored_blood_vials(amount) if game:get_value"stored_blood_vials" == nil then game:set_value("stored_blood_vials", 0) end game:set_value("stored_blood_vials", game:get_value"stored_blood_vials" + amount) en...
return { name="Flow", description="Calculate water flow.", options= { {name="Layer", type="list", value="Layer 2", list={"Layer 1","Layer 2","Layer 3","Layer 4","Layer 5","Layer 6","Layer 7","Layer 8","Mask 1","Mask 2","Mask 3"}}, {name="Bias", type="value", value=0.87}, {name="Replace value?", type="flag", v...
Timer = require("timer") function assert_very_close(a, b) local tol = 0.0000000001 assert(math.abs(a - b) < tol, string.format("%.10f is not equal within %.10f of %10f", a, tol, b)) end function test_basic() -- test basic functionality local basic = {x=0, y=0} Timer.tween(3, basic, {x=99, y=66}) ...
require("src/Util") local M = def_module_unit("FieldAnimator", nil) FieldAnimator.Mode = { Stop = 1, Wrap = 2, Continue = 3 } -- class FieldAnimator M.Unit = class(M.Unit) function M.Unit:__init(duration, fields, trans, mode, serial_reset_callback) type_assert(duration, "number") type_assert(fields, "table")...
--ZFUNC-strlstlen-v1 local function strlstlen( lst ) --> len local len = 0 for _, str in ipairs( lst ) do len = len + string.len( str ) end return len end return strlstlen
local M = {} local AngleWithOffset = {} M.AngleWithOffset = AngleWithOffset function AngleWithOffset.new(base_angle, angle) local min = math.floor(base_angle / 360) * 360 local max = (math.floor(base_angle / 360) + 1) * 360 if min <= angle and angle <= max then return angle end return (angle % 360) + mi...
require "Fonts" scoreLimit_buttons = {} SNAKE_LIVES_buttons = {} SNAKE_LEN_buttons = {} SNAKE_SPEED_buttons = {} STONES_buttons = {} function add_length_button(x, y, text, id) table.insert(SNAKE_LEN_buttons, {x = x, y = y, text = text, id = id}) end function add_lives_button(x, y, text, id) table....
return PlaceObj('ModDef', { 'title', "Breakthrough Randomizer", 'description', "Allows you to choose from 4 different Breakthroughs when scanning Breakthrough anomalies, Planetary Anomalies, and even the Omega Telescope. Does not affect Story Bits or Mystery Rewards.\n\nTo keep this compatible with [url=https://survi...
return function (port, _servermodules) assert((not not wifi.sta.getip()) or (not not wifi.ap.getip()), "tcpserver: No viable IP found") assert(_servermodules ~= nil, "tcpserver: no server modules specified") local servermodules --for i,s in ipairs(_servermodules) do -- servermodules[s] = tru...
--[[ .______ ______ _______. _______. ____ ____ _______. .______ __ ___ ____ ____ _______ .______ _______. | _ \ / __ \ / | / | \ \ / / / | | _ \ | | / \ \ \ / / | ____|| _ \ / | | |_) ...
--[[ Created by DidVaitel (http://steamcommunity.com/profiles/76561198108670811) ]] AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( "shared.lua" ) function ENT:Initialize() self:SetModel( "models/Humans/Group01/male_02.mdl" ) self:SetHullType( HULL_HUMAN ) self:SetHullSizeNormal( ) self:SetN...
--[[ LuiExtended License: The MIT License (MIT) --]] LUIE.CampaignNames = { } local SlashCommands = LUIE.SlashCommands local printToChat = LUIE.PrintToChat local zo_strformat = zo_strformat -- Slash Command to port to primary home function SlashCommands.SlashHome(option) -- Check option ...
local tag = "lively_chat" local prefix = mingeban and mingeban.utils.CmdPrefix or "^[%$%.!/]" if CLIENT then local gray = Color(192, 212, 222) local luaPatterns = { [2] = "([%a_][%w_]*)", -- keyword or text [4] = "(\".-\")", -- string [5] = "([%d]+%.?%d*)", -- number [6] = "([%+%-%*/%%%(%)%.,<>~=#:;{}...
require("import") -- the import fn import("exception_partial_info") -- import code -- catch "undefined" global variables setmetatable(getfenv(),{__index=function (t,i) error("undefined global variable `"..i.."'",2) end}) imp=exception_partial_info.Impl() -- trying to call throwing methods -- should fail assert(pcall...
--[[ while repeat for --]] for i,v in ipairs({ a = 2, b = 3, [1] = 2, [3] = 4 }) do print(i, v) end print() for k,v in pairs({ a = 2, b = 3, [1] = 2, [3] = 4 }) do print(k, v) end
Citizen.CreateThread(function() while true do Citizen.Wait(0) local hashes = {1171614426,456714581,1127131465,-1647941228,2046537925,-1973172295,-1627000575,1912215274,-1536924937,-1779120616,-1683328900,1922257928,-34623805,1171614426} local myPed = GetPlayerPed( -1 ) local ...
--@native table --@import see.util.ArgumentUtils --[[ @throw see.util.InvalidArgumentException if the args are incorrect. ]] function FastArray.insert(array, ...) ArgumentUtils.check(1, array, "table") table.insert(array, ...) end --[[ @throw see.util.InvalidArgumentException if the args are incorrect. ]] fun...
require "base" local func_next_CGridPageView_test_scene = nil; local func_back_CGridPageView_test_scene = nil; local func_ref_CGridPageView_test_scene = nil; -- createCGridPageViewBasicTest -- ===================================================== -- ===================================================== -- ===========...
local utils = require('utils') local repo = 'https://github.com/wbthomason/packer.nvim' local path = utils.joinPath(rv.dataPath, 'site', 'pack', 'packer', 'start', 'packer.nvim') local cloneRepo = function() utils.execute('git clone ' .. repo .. ' ' .. path) vim.cmd('packadd packer.nvim') end local updateRepo = f...
--[[ Seriál "Programovací jazyk Lua" Demonstrační příklad k článku: Lua Fun: knihovna pro zpracování konečných i nekonečných sekvencí v jazyce Lua ]] -- načtení knihovny Lua Fun a současně import symbolů do globálního jmenného prostoru require "fun"() -- pomocná funkce pro tisk několika prvků konečné s...
local deadzone = Class{ type = 'deadzone' } function deadzone:init () self.destroyed = false World:add(self, 0, VIRTUAL_HEIGHT, VIRTUAL_WIDTH, 50) end function deadzone:render () end function deadzone:update () end function deadzone:destroy () self.destroyed = true if World:hasItem(self) then World:remove(s...
return function(frame) local fps = get_fps() local seconds = 10 if frame > 0 and frame % (fps * seconds) == 0 then next_scene() end end
----------------------------------------------------------------------------------------------- -- Craft Queue Item implementation -- Copyright (c) 2014 DoctorVanGogh on Wildstar forums - all rights reserved ----------------------------------------------------------------------------------------------- require "GameLi...
function createPacket(data, length) local start = 1 local i = 1 local packet = {} while true do packet[i] = string.sub(data, start, start + (length - 1) start = start + length end return packet end for i = 1, text in pairs(createPacket("qw...
local text = require("text") local vt100 = {} -- runs patterns on ansi until failure -- returns valid:boolean, completed_index:nil|number function vt100.validate(ansi, patterns) local last_index = 0 local captures = {} for _,pattern in ipairs(patterns) do if last_index >= #ansi then return true end...
for _,v in pairs(game.Workspace.Mine:GetChildren()) do if string.match(v.Name, "Ill") or string.match(v.Name, "Az") or string.match(v.Name, "Dia") then v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame+Vector3.new(math.random(0,50),0,math.random(0,50)) end end
local generate = function () local colors = { cNone = 'NONE', cFront = '#D4D4D4', cBack = '#1E1E1E', cTabCurrent = '#1E1E1E', cTabOther = '#2D2D2D', cTabOutside = '#252526', cLeftDark = '#252526', cLeftMid = '#373737', cLeftLight = '#636369', cPopupFront = '#BBBBBB', cPo...
class "BoneTrack" function BoneTrack:__getvar(name) if name == "position" then local retVal = Polycode.BoneTrack_get_position(self.__ptr) if retVal == nil then return nil end local __c = _G["Vector3"]("__skip_ptr__") __c.__ptr = retVal return __c elseif name == "scale" then local retVal = Polycode.BoneT...
_package_("gate") component("Gate") implement('IHttpHandler') function main() print('Gate.main') end function Awake(self) for k, v in pairs(__INTERFACE) do print(k, v) end print('Gate.Awake', __INTERFACE[1]) end function Update(self, now) --print('Gate.Update', now) end --implement('IHtt...
currentVersion = "1.0"
local Inventory = require("api.Inventory") local ILocation = require("api.ILocation") local Log = require("api.Log") --- Interface for character inventory. Allows characters to store map --- objects. local ICharaInventory = class.interface("ICharaInventory", {}, {ILocation}) ICharaInventory:delegate("inv", ...
local E, C, L = select(2, ...):unpack() ---------------------------------------------------------------------------------------- -- Core Fader Methods (modified from rLib) ---------------------------------------------------------------------------------------- local defaultFadeIn = { time = 0.4, alpha = 1 } local def...
if page < maxPage then page = page + 1 selected_machine_index = 1 Storage.clear() end
object_tangible_dungeon_hoth_ice_block = object_tangible_dungeon_hoth_shared_ice_block:new { } ObjectTemplates:addTemplate(object_tangible_dungeon_hoth_ice_block, "object/tangible/dungeon/hoth/ice_block.iff")
local class = require 'middleclass' -- クラス:種族 local Race = class 'Race' -- クラス local Statistics = require 'valueobjects.Statistics' local SavingThrow = require 'valueobjects.SavingThrow' -- 初期化 function Race:initialize(t) t = t or {} -- 名前 self.name = t.name or '' -- 初期能力値 self.statistics = St...
Config = Config or {} -- Discord Logs Config Config.LogsImage = "https://cdn.discordapp.com/attachments/926465631770005514/966038265130008576/CloudDevv.png" Config.WebHook = "YOUR WEBHOOK" Config.FuelSystem = "LegacyFuel" -- Put here your fuel system LegacyFuel by default Config.UsePreviewMenuSync = false -- Sync ...
-- Tabs changing keys['ctrl+pgdn'] = function () view.goto_buffer(_G.view, 1) end keys['ctrl+pgup'] = function () view.goto_buffer(_G.view, -1) end -- Readonly buffer -- NOTE: Changes tab label! --local ORIGINAL_TAB_LABELS = {} -- --local SERVICE_BUFFERS = { -- ['[Message Buffer]'] = '[Message Buffer]', -- ['Untitl...
local Pubutils = require "pubutils" local Skynet = require "skynet" -------时间相关-------- function GetCSecond() return Skynet.now() end function GetMSecond() return Skynet.now()*10 end -------定时器相关-------- -- ti: 执行间隔,单位百分之一秒(10ms) -- count:0表示无限次数, >0 有限次 -- handle : 自定义(int,string等常量key)或系统分配 local timer_no ...
local premake = require('premake') local vstudio = require('vstudio') local vcxproj = vstudio.vcxproj local VcVcxFiltersTests = test.declare('VcVcxFiltersTests', 'vcxproj', 'vstudio') function VcVcxFiltersTests.setup() vstudio.setTargetVersion(2015) end local function _execute(fn) workspace('MyWorkspace', funct...
--[[ Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved @file Rule.lua @author sunnnychan@gmail.com @date 2016/03/12 11:27:24 @brief rule judge ]]-- local BDLOG = require('lua.bdlib.BdLogWrite') local setmetatable = setmetatable local type = type local tonumber = tonumber local tostring = tostring local str_form...
--Menu de TDBD --Almacenar imagen de las opciones Menu = Image.load("Imagenes/Menu.png") FrameMenu0 = Image.load("FramesMenu/Frame0.png") FrameMenu1 = Image.load("FramesMenu/Frame1.png") FrameMenu2 = Image.load("FramesMenu/Frame2.png") FrameMenu3 = Image.load("FramesMenu/Frame3.png") FrameMenu4 = Image.load("F...
return require "lovesnow.cluster"
ESX = nil PlayerData = {} Current = { Action = nil, Actionmsg = nil, Spawn = {pos = nil, rot = nil}, Garage = nil, CanTakeOut = nil, isList = nil, } Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ...
--file concerning loading of stuff require("nonplayer") function loadLevel(name, level) --NO SPACES --first line is: player1Start,player2Start,player1End,player2End, --second line is: wallPosition1,wallPosition2,... --third line is: start+type,start+type,... --with type being the enemy type and start being t...
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Copyright 2017 Matthias Schiffer <mschiffer@universe-factory.net> -- Licensed to the public under the Apache License 2.0. local M = {} function M.bool(val) if val == "1" or val == "yes" or val == "on" or val == "true" then return true elseif val == "0" or val...
function parse.timestamp(str, dest_type, options) error("Not implemented.") -- TODO end
--[[ Record v2.4 - Take Snapshot Author: Michael Springer (@sprngr_) License: MIT Website: https://sprngr.itch.io/aseprite-record Source: https://github.com/sprngr/aseprite-record ]] dofile(".lib/record-core.lua") local fileIncrement = 0 local sprite = app.activeSprite local function setCurrentIn...
model.ext={} function model.ext.outputBrSetupMessages() local nm=' ['..simBWF.getObjectAltName(model.handle)..']' local msg="" if #msg>0 then simBWF.outputMessage(msg,simBWF.MSG_WARN) end end function model.ext.outputPluginSetupMessages() --[[ local nm=' ['..simBWF.getObjectAltName(mod...
return { ["hashes"]={ { "fontloader-2020-04-30.lua", "e3b9c1d6344645b552f8002a97aa09ca" }, { "fontloader-util-fil.lua", "4bb3e4dc72e308d8ed67cd7a80027fa7" }, { "fontloader-util-str.lua", "2c1a12d8248d3719c0b5fc93184242bf" }, { "fontloader-l-unicode.lua", "9bc311ce08ce498f9caacb6164ea1d9f" }, { "fontloader-l-...
local cur_model_id = replace_model_start for i,v in ipairs(tanks) do LoadPak(v.pakname, "/"..v.pakname.."/", "../../../OnsetModding/Plugins/"..v.pakname.."/Content") ReplaceObjectModelMesh(cur_model_id, "/"..v.pakname.."/"..v.basepath) ReplaceObjectModelMesh(cur_model_id+1, "/"..v.pakname.."/"..v.cannonpat...
local LibStub = _G.LibStub local LGIST = LibStub:GetLibrary("LibGroupInSpecT-1.1-eq") local Rollouts = LibStub("AceAddon-3.0"):GetAddon("Rollouts") local currentRoll = nil local isPaused = false local timeLeft = 0 local lastTick = 0 local callbacks = { finish = nil, cancel = nil, rulePredicate = nil } Rol...
armies["Book I"] = {} armies["Book I"]["I/1a Early Sumerian 3000-2800BC (Plain)"] = { data = { aggresiveness = 2, terrain = 'Arable', list = '1x3Bd (Gen), 8x4Bw, 3x2Ps' }, base1 = { name = '3Bd_Gen', base = 'tile_plain_3Bd_40x20', n_models = 1, model_...
-- -- Notion main configuration file -- -- This file only includes some settings that are rather frequently altered. -- The rest of the settings are in cfg_notioncore.lua and individual modules' -- configuration files (cfg_modulename.lua). -- -- When any binding and other customisations that you want are minor, it is ...
discordlib.response = { Pong = 1, ChannelMessageWithSource = 4, DeferredChannelMessageWithSource = 5, DeferredUpdateMessage = 6, UpdateMessage = 7, } function discordlib.structures.interaction(client, interaction) func...