content
stringlengths
5
1.05M
--[[ Name: job_npcs.lua For: SantosRP By: DFG SantosRP ]]-- GAMEMODE.Map:RegisterNPCSpawn{ UID = "cop_job", pos = { Vector( -7639.718262, -5791.030762, -13943.968750 ) }, angs = { Angle( 0, -180, 0 ) }, } GAMEMODE.Map:RegisterNPCSpawn{ UID = "cop_spawn_car", pos = { Vector( -8077.031250, -5597.781250, -13943.96...
function main(splash, args) headers = { ['User-Agent'] = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36', ['cookie'] = 'lzd_cid=933035ae-f783-4530-fdd4-c821c3e4564d; t_uid=933035ae-f783-4530-fdd4-c821c3e4564d; t_fv=1595510371177...
pico-8 cartridge // http://www.pico-8.com version 18 __lua__ function iter (a, i) i = i + 1 local v = a[i] if v then return i, v end end function ipairs (a) return iter, a, 0 end
UIMenuListItem = setmetatable({}, UIMenuListItem) UIMenuListItem.__index = UIMenuListItem UIMenuListItem.__call = function() return "UIMenuItem", "UIMenuListItem" end function UIMenuListItem.New(Text, Items, Index, Description) if type(Items) ~= "table" then Items = {} end if Index == 0 then Index = 1 end local _UI...
-- call with e.g. /opt/local/openresty-1.11.2.2/luajit/bin/luajit bcrypt.lua local bcrypt = require("bcrypt") local pass = "wheeeIsAwesome" -- local salt = bcrypt.salt(5) local log_rounds = 9 --local digest = bcrypt.digest(pass, salt) local digest = bcrypt.digest(pass, log_rounds) print(digest) assert(bcrypt.verify(...
-- Portuguese localization file for ptBR. local AceLocale = LibStub:GetLibrary("AceLocale-3.0") local L = AceLocale:NewLocale("ElvUI", "ptBR") if not L then return end -- *_DESC locales L["AURAS_DESC"] = "Configurar os ícones das auras que aparecem perto do minimapa." L["BAGS_DESC"] = "Ajustar definições das bolsas pa...
--[[ MIT License Copyright (c) 2019 Michael Wiesendanger 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 rights to use, copy, mod...
function hetlmetTest (plr) local obj = createObject(2054, 0,0,-10 ) setObjectScale(obj,1) exports.bone_attach:attachElementToBone(obj,plr,1,-0.0050,0.025,0.125,0,4,180) end addCommandHandler("heltest", hetlmetTest)
module_version("/1.0.1","1.0") module_version("/1.0","default")
-- BLUA Scripting Project -- Part of OutlandZoning Division -- Scripted by Hellgawd -- Give full credits if posting function marshripper_OnKill(pUnit,Event) pUnit:RemoveEvents(); end function marshripper_EnterCombat(pUnit,Event) pUnit:RegisterEvent("hittest_1",1000, 0) end function hittest_1(pUnit, Event) if pUni...
return function(bytecode) local impl = {} local debug = bytecode.printDebug local bit = bytecode.bit -- instruction definitions local instructionNames = { [0]="MOVE","LOADK","LOADBOOL","LOADNIL", "GETUPVAL","GETGLOBAL","GETTABLE", "SETGLOBAL","SETUPVAL","SETTABLE","NEWTABLE", "SELF","ADD","SUB","MUL","D...
return {'hasselaar','hasselt','hasseltenaar','hasselts','hasj','hasjgebruik','hasjhandel','hasjhandelaar','hasjhond','hasjiesj','hasjlucht','hasjroker','hasjsmokkel','hasjsmokkelaar','hasjtransport','hasjtransporten','hasjvangst','haspel','haspelaar','haspelarij','haspelen','haspelwerk','hassebassen','hasselaarse','has...
--[[ French Localization --]] local ADDON = ... local L = LibStub('AceLocale-3.0'):NewLocale(ADDON, 'frFR') if not L then return end --keybinding L.ToggleBags = 'Afficher votre inventaire' L.ToggleBank = 'Afficher votre banque' L.ToggleGuild = 'Afficher votre banque de guilde' L.ToggleVault = 'Afficher votre chambre...
--[[ This file is part of script complex Properties Ribbon Copyright (c) 2020-2021 outsidepro-arts License: MIT License ---------- Let me say a few word before starts LUA - is not object oriented programming language, but very flexible. Its flexibility allows to realize OOP easy via metatables. In this scripts the ps...
object_tangible_quest_menagerie_terminal_01 = object_tangible_quest_shared_menagerie_terminal_01:new { } ObjectTemplates:addTemplate(object_tangible_quest_menagerie_terminal_01, "object/tangible/quest/menagerie_terminal_01.iff")
local spell = {} spell.__index = spell local function new(x, y, r, time, minDmg, maxDmg, speed, angle) return setmetatable({ x = x, y = y, speed = speed, angle = angle, time = time, r = r, minDmg = minDmg, maxDmg = maxDmg}, spell) end function spe...
--- @module Binding -- Creates a binding function (convenience function) -- -- @param f A function that returns this value's new value after the value -- that it is bound to changes. -- @param numArgs The number of arguments to the function to create. local createFunction = function(f) return function(...) ...
local ffi = require("ffi") local lcpp = require("lcpp") ffi.cdef[[ #define CURL_EXTERN #define CURLOPTTYPE_LONG 0 #define CURLOPTTYPE_OBJECTPOINT 10000 #define CURLOPTTYPE_STRINGPOINT 10000 #define CURLOPTTYPE_FUNCTIONPOINT 20000 #define CURLOPTTYPE_OFF_T 30000 #define CINIT(na,t,nu) CURLOPT_ ## ...
--[[ cel is licensed under the terms of the MIT license Copyright (C) 2011 by Matthew W. Burk 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...
-- $Name: Инстедоз 5 вступление$ -- $Version: 0.01$ -- $Author: Irremann$ require 'fmt' -- некоторые функции форматирования fmt.para = true -- включить режим параграфов (отступы) require 'noinv' game.pic = 'gfx/topsecret.png' game.act = 'Не работает.'; game.use = 'Это не поможет.'; game.inv = 'Зачем мне это?'; glob...
object_mobile_dressed_biologist_03 = object_mobile_shared_dressed_biologist_03:new { } ObjectTemplates:addTemplate(object_mobile_dressed_biologist_03, "object/mobile/dressed_biologist_03.iff")
require "tool.function" link={} link.nbr=0 function create.link(world,x,y,gid) local nl={name="link"} link.nbr=link.nbr+1 nl.nbr=link.nbr if not sound["link-damage"] then sound["link-damage"]={cursor=1} end for i=1,5 do table.insert(sound["link-damage"],initsource(love.audio.newSource(contentFile("sound/li...
return { source = { dir = '$pkg_install_dir', }, build = { type = true, dir = '$pkg_work_dir' } }
local test = require 'regress' local ipc = require 'libipc' test { testLockingAndBarrier = function() local beforeWriteMutex = ipc.mutex() local afterWriteMutex = ipc.mutex() local shared = torch.FloatTensor(10000) shared:fill(0) local m = ipc.map(3, function(beforeWriteMutex, afterWr...
local awful = require('awful') local gears = require('gears') local wibox = require('wibox') local beautiful = require('beautiful') local keygrabber = require('awful.keygrabber') local icon_size = beautiful.exit_screen_icon_size or 140 local text_font = beautiful.exit_screen_font or "sans 14" local pad = function(si...
EMVU.AddCustomSiren("NYSPWCR", { Name = "CenCom Red", -- The name that shows on the HUD. Category = "Whelen", -- The category the siren shows up under. Set = { {Name = "WAIL", Sound = "emv/sirens/nysp_whelen_cencom_red/wcr_wail.wav", Icon = "wail"}, {Name = "YELP", Sound = "emv/sirens/nysp_whelen_cencom_red/wcr_...
-- minetest/fire/init.lua -- Global namespace for functions fire = {} -- Register flame nodes minetest.register_node("fire:basic_flame", { drawtype = "firelike", tiles = { { name = "fire_basic_flame_animated.png", animation = { type = "vertical_frames", aspect_w = 16, aspect_h = 16, lengt...
out("common_tommy_randomized_start.lua ****************"); package.path = package.path ..';../?.lua'; -- local _debug = require("common_tommy_debug_try_catch") local _debug = {is_debug = true} function _debug:catch(what) return what[1] end function _debug:try(what) if (not _debug.is_debug) then return what[2](re...
local setmetatable = setmetatable local policy_pusher = require('apicast.policy_pusher').new() local _M = { } local mt = { __index = _M } function mt.__call(_, opts) policy_pusher:push( opts.name, opts.version, opts.admin_portal_domain, opts.access_token ) end local function configure(cmd) cmd:argument('...
--[[ Copyright (C) 2019 The DMLab2D Authors. 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writ...
require("crates").setup() local cmp = require "cmp" cmp.setup.buffer { sources = { { name = "crates" }, name = "buffer" } } -- crates mappings -- upgrade crate on line vim.api.nvim_buf_set_keymap( 0, "n", ",uc", [[<cmd>lua require('crates').upgrade_crate()<cr> ]], { noremap = true, silent = true } )
TriggerEvent('es:addGroupCommand', 'wlrefresh', 'admin', function (source, args, user) loadWhiteList(function() TriggerEvent('esx_whitelist:sendMessage', source, 'Whitelist', 'Whitelist reloaded') end) end, function (source, args, user) TriggerClientEvent('chat:addMessage', source, { args = { '^1SYSTEM', 'Insuffic...
-- TODO: Convert to which-key -- TODO: move this to a util local function map(mode, lhs, rhs, opts) local options = {noremap = true, silent = true} if opts then options = vim.tbl_extend("force", options, opts) end for m in mode:gmatch "" do vim.api.nvim_set_keymap(m, lhs, rhs, options) ...
print("hi from lua", 3) print_error("something went terribly wrong", 42.42) numargs = mash:NumArgs() print("num-args:", numargs) for i=0,numargs-1 do print("arg", i, mash:Arg(i)) end if mash:Exec("foo"):Failed() then print_error("failed to exec foo") end res = mash:Exec("foo") if res:Failed() then print_erro...
-- # 13 – Metatables and Metamethods -- -- Metatables allow for changing behaviour of table -- If you try to add 2 tables with +, Lua checks whether either values has a metatable with an __add field. -- -- Each table can have own metatable. New tables are always created without metatables t = {} print(getmetatable(...
local config = {} config.EarnForKillingPlayer = 15 config.message = "You got %d for killing player!" -- %d - is how much player recieves exp hook.Add( "PlayerDeath", "RLS.killing_player.PlayerDeath", function(victim, weapon, killer) if killer:IsPlayer() and victim ~= killer then killer:AddExp(config.EarnForKillin...
name = "Find Gora Sewers" desc = function(self, who) local desc = {} desc[#desc+1] = "You must escape from Gora Prison and back to the world, but you cannot get out of the main entrance." desc[#desc+1] = "You must find a passage to the sewers beneath the prison." return table.concat(desc, "\n") end
talus_decay_mite_lair_neutral_small = Lair:new { mobiles = {{"decay_mite",1}}, spawnLimit = 12, buildingsVeryEasy = {"object/tangible/lair/base/poi_all_lair_garbage_small.iff"}, buildingsEasy = {"object/tangible/lair/base/poi_all_lair_garbage_small.iff"}, buildingsMedium = {"object/tangible/lair/base/poi_all_lair_...
function gadget:GetInfo() return { name = "Gadget Profiler", desc = "", author = "jK, Bluestone", date = "2007+", license = "GNU GPL, v2 or later", layer = math.huge, handler = true, enabled = true, } end -- use 'luarules profile' to switch on the profiler -- future ...
object_tangible_loot_creature_loot_collections_sm_rnd_tile_generic = object_tangible_loot_creature_loot_collections_shared_sm_rnd_tile_generic:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_sm_rnd_tile_generic, "object/tangible/loot/creature/loot/collections/sm_rnd_tile_generic.iff...
return { minimum_grep_characters = 2, minimum_files_characters = 2, use_highlighter = true }
require('keyBinding.lua'); -- The custom section which will be used as a separator in the options. local CUSTOM_SECTION = 'RMTESTMOD'; -- The keys we want to register at the beginning of the game. local CUSTOM_KEYS = { { value = 'TOGGLE_STUFF', key = 24 }, { value = 'TOGGLE_OTHER', key = 25 }, } --- -- Sets ...
-- Urho2D physics Constraints sample. -- This sample is designed to help understanding and chosing the right constraint. -- This sample demonstrates: -- - Creating physics constraints -- - Creating Edge and Polygon Shapes from vertices -- - Displaying physics debug geometry and constraints' joints -- ...
local image_type, id, base, sizename, ext = ngx.var.image_type, ngx.var.id, ngx.var.base, ngx.var.sizename, ngx.var.ext s3 = require 's3' local bucket = s3:connect{ awsRole="IAM Role", bucket="S3 bucket name", } local remote_src = "http://example.s3.amazonaws.com/" local function return_not_found(msg) ...
object_mobile_dressed_rabe = object_mobile_shared_dressed_rabe:new { } ObjectTemplates:addTemplate(object_mobile_dressed_rabe, "object/mobile/dressed_rabe.iff")
local t = require('luatest') local shared = require('test.helper') local helper = {shared = shared} t.before_suite(function() box.cfg({work_dir = shared.datadir}) end) return helper
-- Test case to test the detection of the switch ls = require("lStepper") print("LuaStepper version is:",ls._VERSION) script1 = [[ print("Starting task 1") ws = require("waitswitch") while true do ws.waitswitch() end ]] script2 = [[ print("Starting task 2") ws = require("waitswitch") while true do ws.waits...
--[[ -- 配置读取类 -- @author zhiyuan <zhiyuan12@staff.weibo.com> --]] local string_sub = string.sub local table_remove = table.remove local ngx_cache = ngx.shared[FRAMEWORK.NGX_CACHE_KEY] local ini = require 'IniParser' local DIRECTORY_SEPARATOR = FRAMEWORK.DIRECTORY_SEPARATOR local ROOT_PATH = FRAMEWORK.ROOT_PATH local CO...
#!/usr/bin/env lua --[[ I was smart enough to capture the output of the telnet session but not smart enough to save the data in individual files per-object oh well, here I will attempt to split the data out of the one big file --]] require 'ext' local json = require 'myjson' local data = file['horizons.txt']:trim() ...
local component = require("component") local computer = require("computer") local fs = require("filesystem") local GUI = require("GUI") local MineOSPaths = require("MineOSPaths") local MineOSCore = require("MineOSCore") local MineOSInterface = require("MineOSInterface") local icon, menu = select(1, ...), selec...
local config = { [7844] = { [1] = {female = 269, male = 268, msg = 'nightmare'}, [2] = {female = 279, male = 278, msg = 'brotherhood'} }, [7845] = { [1] = {female = 269, male = 268, addon = 1, msg = 'first nightmare'}, [2] = {female = 279, male = 278, addon = 1, msg = 'first brotherhood'}, storageValue = 2...
local Q = require 'Q' local Scalar = require 'libsclr' local function voting_1( T_train, -- table of m lVectors of length n_train m, n_train, x, -- table of m Scalars chk_params ) if ( chk_params ) then assert(x) assert(type(x) == "table") assert(#x == m) for _, v in ipairs(x) do ...
Spring = Class:extend() --t represents tension, higher the tension, the stiffer it gets --x is the target value for the spring, 0 is fine for most cases since you'ill be adding it to other values like scale --d is the dampening, the higher the dampening the spring will move slower, kinda how fast it ocilates --v is t...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
return { version = "1.1", luaversion = "5.1", orientation = "orthogonal", width = 100, height = 100, tilewidth = 16, tileheight = 16, properties = {}, tilesets = { { name = "sheet16", firstgid = 1, tilewidth = 16, tileheight = 16, spacing = 0, ma...
my_load_mod_script("custom_lords_util"); my_load_mod_script("custom_lords_random_name_generator"); ---@type CustomLordsModel local CustomLordsModel = my_load_mod_script("custom_lords_ui_model"); local CustomLordsAttributePanel = my_load_mod_script("custom_lords_ui_attribute_panel"); local CustomLordsTraitFrame = my_loa...
ModifyEvent(-2, -2, -2, -2, -1, -1, -1, 2608, 2608, 2608, -2, -2, -2); GetItem(187, 1); GetItem(105, 5); do return end;
--[[ Copyright (c) 2011 Manuel "Roujin" Wolf 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 rights to use, copy, modify, merge, publish, dist...
-- ██████╗ ██████╗ ███╗ ██╗███████╗██╗ ██████╗ ██╗ ██╗ ██╗ █████╗ -- ██╔════╝██╔═══██╗████╗ ██║██╔════╝██║██╔════╝ ██║ ██║ ██║██╔══██╗ -- ██║ ██║ ██║██╔██╗ ██║█████╗ ██║██║ ███╗ ██║ ██║ ██║███████║ -- ██║ ██║ ██║██║╚██╗██║██╔══╝ ██║██║ ██║ ██║ ██║ ██║██╔══██║ -- ╚█...
DefineClass.DroneBase = { __parents = { "Vehicle", "CityObject", "NightLightObject", "InfopanelObj" }, game_flags = { gofPermanent = true }, class_flags = { cfComponentSound = true }, moving = false, fx_moving_target = false, work_spot_task = "Workdrone", work_spot_deposit = "Workdrone", work_spot_drone_recha...
luachip = {} local defaultmaxtime = 1000 luachip.MaxExecutionTimeInt = defaultmaxtime luachip.MaxExecutionTime = defaultmaxtime / 1000000 CreateConVar("luachip_maxtime", defaultmaxtime, {FCVAR_ARCHIVE, FCVAR_REPLICATED}, "Number of microseconds of execution time for each LuaChip.") cvars.AddChangeCallback("luachip_max...
--[[ Change logs: 1/14/22 * first update of the new year! * added a settings saving / loading system. * added some save manager code for this ui library, not all option types are supported or tested. 12/5/21 * Fixed issues with noteTime calculation, causing some songs like Triple Trouble to break. Rep...
local breakSocketHandle,debugXpCall = require("LuaDebugjit")("localhost",7003) local timer = Timer.New(function() breakSocketHandle() end, 1, -1, false) timer:Start(); --主入口函数。从这里开始lua逻辑 function Main() print("logic start") UpdateBeat:Add(Update) end --场景切换通知 function OnLevelWasLoaded(level) collectgarb...
--Add leaderstats/Stage to Player upon connect game.Players.PlayerAdded:Connect(function(Player) -- leaderstats Folder (under Player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = Player -- stage intVal (under leaderstat folder) local stage = Instance...
--[[ ______ ___ ________ ______ ________ _____ ___ |/ /_____ __________ ___/___________ ___ /_______ __ \_____ __ /______ _ __ /|_/ /_ __ `/__ __ \____ \_ ___/ __ `/_ /_ _ \_ / / / __ `/ __/ __ `/ _ / / / / /_/ /__ /_/ /___/ // /__ / /_/ /_ / /...
local known_archs = { [ "A728D28" ] = require("archs.a728d28" ), [ "B29K1QS60" ] = require("archs.b29k1qs60"), [ "I8M7D28S" ] = require("archs.i8m7d28s" ), [ "MAPS" ] = require("archs.maps" ), [ "MICRO21" ] = require("archs.micro21" ), [ "PTP7" ] = require("archs.ptp7" ), [ "R2" ]...
local replicatedStorage = game:GetService("ReplicatedStorage") local playerService = game:GetService("Players") local getCompetitors = replicatedStorage.GetCompetitors local updateCompetitors = replicatedStorage.UpdateCompetitors local player = playerService.LocalPlayer local cam = workspace.CurrentCamera local spectat...
local M = {} M.listeners = {} M.closers = {} local sniprun = require('sniprun') local sniprun_path = vim.fn.fnamemodify( vim.api.nvim_get_runtime_file("lua/sniprun.lua", false)[1], ":p:h") .. "/.." function M.run_range(range_start, range_end, filetype, config) local override = {} override.filetype = filetype lo...
function() local cvar = 'BarbequeWeakaurasVisibilityToggle' local value = GetCVarBool(cvar) if value then return true; elseif value == nil then RegisterCVar(cvar,0) end return false end
return { includedirs = { '.' }, links = { 'unittest-cpp' }, options = { }, premake = './UnitTest++/premake5.lua' }
local postScaler = {} function postScaler.init(w, h, scale) postScaler.w = w postScaler.h = h postScaler.scale = scale postScaler.canvas = love.graphics.newCanvas(w*scale, h*scale) postScaler.canvas:setFilter("nearest", "nearest") end function postScaler.preDraw() love.graphics.setCanvas(post...
#include "core/detouring.lua" #include "core/hook.lua" #include "core/util.lua" #include "core/console_backend.lua" #include "core/meta.lua" #include "core/timer.lua" #include "core/default_hooks.lua" #include "core/added_hooks.lua" #include "core/xml.lua" GLOBAL_CHANNEL = util.shared_channel( "game.umf_global_channel...
-- new window requests can add window hints on tabbing, sizing and positions, -- those are rather annoying to write so have this alias table local dir_lut = { new = "split", tnew = "split-t", lnew = "split-l", dnew = "split-d", vnew = "split-d", tab = "tab", embed = "embed" } -- can't (yet) launch shmif- client...
-- -- (C) 2013 Kriss@XIXs.com -- local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,load,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,_VERSION,xpcall,module,require=coroutine,package,stri...
object_tangible_tcg_series5_hangar_ships_tie_fighter_modified = object_tangible_tcg_series5_hangar_ships_shared_tie_fighter_modified:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series5_hangar_ships_tie_fighter_modified, "object/tangible/tcg/series5/hangar_ships/tie_fighter_modified.iff")
-- Wireshark dissector for PLUS (Path Layer UDP Substrate) -- Author: Marcel Süess, ZHAW, sueesmar@students.zhaw.ch -- Date: 02.01.2018 -- Version: 0.1 -- Constants local PLUS_BASIC_HEADER_LEN = 20 -- in bytes local PLUS_EXTENDED_HEADER_LEN_MIN = 22 -- in bytes -- Declare the Protocol plus_proto = Proto("plus","Path ...
--[[ Copyright (C) 2017 - Auke Kok <sofar@foo-projects.org> "skybox" is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the license, or (at your option) any later version. ]]-- -- --...
AddCSLuaFile('shared.lua') AddCSLuaFile('cl_init.lua') include('shared.lua') util.AddNetworkString('bw_ents_mprinter') function ENT:Initialize() self:SetModel(self.Model) self:SetSolid(SOLID_VPHYSICS) self:SetMoveType(SOLID_VPHYSICS) self:PhysicsInit(SOLID_VPHYSICS) self:SetUseType(SIMPLE_USE) local phys = s...
local h = require("null-ls.helpers") local methods = require("null-ls.methods") local DIAGNOSTICS = methods.internal.DIAGNOSTICS return h.make_builtin({ method = DIAGNOSTICS, filetypes = {}, generator_opts = { command = "cspell", args = { "stdin" }, to_stdin = true, ignore_...
local WikiText = require "Projects/API/WikiText" local fileName = "Projects/API/World_of_Warcraft_API.txt" local fileName_temp = "Projects/API/World_of_Warcraft_API_temp.txt" local file = io.open(fileName, "r") local file_temp = io.open(fileName_temp, "w") local tags = { SECURE = true, NOCOMBAT = true, HW = true,...
function love.conf(t) t.window.title = "XOR, universal-neural-network v.1-02 (Löve v.11.3)" end
require("script.runtime_functions") local gui_location function recreate_player_GUI(player) destroyGUI(player) if gui_location == nil then gui_location = {1,1} end player.gui.screen.add({type = "frame", name = "tesseractGUI", direction = "vertical", caption = {"GUIdescription.ts-tesseractGUI"} ,tooltip = {"GUIde...
-- init = function(args) -- request = function() -- response = function(status, headers, body) -- done = function(summary, latency, requests) json = require "json" -- Set the default HTTP method and empty "headers" table here wrk.method = "POST" wrk.headers = {} function tprint (tbl, indent) if not indent ...
local qt = require "qtest" local Heap = require "heap" local eq = qt.eq local h = Heap:new() h:put("c", 3) h:put("d", 4) h:put("a", 1) h:put("b", 2) eq(h:remove("b"), "b") eq(h:first(), "a") eq(h:get(), "a") eq(h:first(), "c") eq(h:get(), "c") eq(h:first(), "d") eq(h:get(), "d") eq(h:first(), nil) eq(h:get(), n...
-- you can easily test specific units like this: -- th -lnn -e "nn.test{'LookupTable'}" -- th -lnn -e "nn.test{'LookupTable', 'Add'}" local mytester = torch.Tester() local jac local sjac local precision = 1e-5 local expprecision = 1e-4 local stntest = {} function stntest.AffineGridGeneratorBHWD_batch() local nfr...
local BaseFrame = class("BaseFrame") local RequestManager = appdf.req(appdf.CLIENT_SRC.."plaza.models.RequestManager") function BaseFrame:ctor(view,callback) self._viewFrame = view self._threadid = nil self._socket = nil self._callBack = callback -- 游戏长连接 self._gameFrame = nil self.m_tabCacheMsg = {} end ...
-- -- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved. -- -- the in game stat screen. this doesn't do anything, its just a drop in replacement -- for the old stats that will bail immediately. ifs_stats = NewIFShellScreen { nologo = 1, bNohelptext = 1, movieIntro = nil, -- played b...
----------------------------------- -- Ability: Jump -- Delivers a short jumping attack on a targeted enemy. -- Obtained: Dragoon Level 10 -- Recast Time: 1:00 -- Duration: Instant ----------------------------------- require("scripts/globals/weaponskills") require("scripts/globals/settings") require("scripts/globals/st...
--[[ author: Aussiemon ----- Copyright 2018 Aussiemon 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 rights to use, copy, modify, mer...
--- @module Queue -- @author Eric Mertens <emertens@gmail.com> -- @copyright 2017 Eric Mertens local Queue = {} local methods = {} local mt = { __name = 'Queue', __index = methods } --- Predicate to check if queue can be popped. -- @return boolean function methods:ready () return self.first <= self.last end ...
return function(uuid) Ext.AddVoiceMetaData(uuid, "h003e5db6g7b77g4e5ega069g7e552686f934", "Localization/English/Soundbanks/vbe402c2af28c4a339256c17a42b23212_h003e5db6g7b77g4e5ega069g7e552686f934.wem", 5.088021) Ext.AddVoiceMetaData(uuid, "h004bc87fgf858g4c07gab8eg4ab2c3c0324b", "Localization/English/Soundbanks/vbe402c2...
-- -- lua-Spore : <https://fperrad.frama.io/lua-Spore> -- -- Web Application Description Language -- see http://www.w3.org/Submission/wadl/ -- LIMITATION: cross-references are not supported local assert = assert local ipairs = ipairs local tonumber = tonumber local checktype = require 'Spore'.checktype local new_fro...
local function start() end local function onEnable() end local function onDisable() end return {start = start, onEnable = onEnable, onDisable = onDisable}
local Prism = class('Prism', Base):include(Stateful) local hsl = require('lib.hsl') function Prism:initialize(x, y, radius, rotation) Base.initialize(self) self.x = x self.y = y self.rotation = rotation self.radius = radius local verts = {} local interval = math.pi * 2 / 3 for i=1,3 do table.ins...
V2 = require ("Vector2") NM = require ("NavMesh") Event = require ("Event") --Agent = require ("Agent") io.write ("Mode:\n1 - Basic\n2 - Kernel\n3 - Steering\n") while true do local mode = tonumber (io.read ()) if mode then mode = ({"Agent_Basic","Agent_Kernel","Agent_Steering","Agent_Steering_Mod"})[mode] ...
local playsession = { {"Llzzard", {143945}}, {"Chesmu", {108442}}, {"oakivil", {10194}}, {"remarkablysilly", {37005}} } return playsession
local nninit = dofile './nninit_downloaded.lua' local function ConvBNReLU(model, nInputPlane, nOutputPlane) model:add(nn.SpatialConvolution(nInputPlane, nOutputPlane, 3,3, 1,1, 1,1):init('weight', nninit.kaiming, {gain = 'relu'}):init('bias', nninit.constant, 0)) model:add(nn.SpatialBatchNormalization(nOutputPlane...
--@include ../StarSpec.lua require("../StarSpec.lua") --@includedir classes util.dodir("classes") spec(function() --@includedir specs util.dodir("specs") -- dofile("specs/banana.lua") -- dofile("specs/car.lua") end)
local name, CLM = ... CLM.CORE = LibStub("AceAddon-3.0"):NewAddon(name, "AceEvent-3.0", "AceBucket-3.0") CLM.MODULES = {} CLM.MODELS = { LEDGER = {} } CLM.CONSTANTS = {} CLM.GUI = {} CLM.OPTIONS = {} CLM.ALERTS = {} CLM.AUTOVERSION = "@project-version@" CLM.LOG = LibStub("LibLogger"):New() local CORE = CLM.CORE lo...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:29' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...