content
stringlengths
5
1.05M
local _; local VUHDO_MIN_MAX_CONSTRAINTS = 1; local VUHDO_ENUMERATOR_CONSTRAINTS = 2; local VUHDO_BOOLEAN_CONSTRAINTS = 3; local VUHDO_TEXT_OPTIONS_CONSTRAINTS = 4; -- local sIndicatorMetaModel = { { -- Outer Border ["name"] = VUHDO_I18N_OUTER_BORDER, ["model"] = "VUHDO_INDICATOR_CONFIG.BOUQUETS.BAR_BORDER", ...
local msrpc = require "msrpc" local nmap = require "nmap" local smb = require "smb" local stdnse = require "stdnse" local string = require "string" local table = require "table" local vulns = require "vulns" description = [[ Detects Microsoft Windows systems with Ras RPC service vulnerable to MS06-025. MS06-025 targe...
local M = {} function M.md5sum(params) return { md5 = utils.md5sum(params.path) } end function M.remove(params) os.remove(params.path) end return M
project "Hex" kind "SharedLib" language "C++" outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" targetdir ("%{wks.location}/bin/"..outputdir.."/%{prj.name}") objdir ("%{wks.location}/bin-int/"..outputdir.."/%{prj.name}") -- adds files to the project files { "*.h", "*.cpp", "src/**.h", "s...
AuctionatorConfigFrameMixin = CreateFromMixins(AuctionatorPanelConfigMixin) function AuctionatorConfigFrameMixin:OnLoad() Auctionator.Debug.Message("AuctionatorConfigFrameMixin:OnLoad()") self.name = "Auctionator" self:SetupPanel() end function AuctionatorConfigFrameMixin:Show() InterfaceOptionsFrame_OpenTo...
-- This file contains the database of mathematical concepts -- FOUNDATIONAL concepts. These concepts are considered fundamental in the context of the current study. -- NOTE: Concepts considered foundational are subjective and should be changed depending on the course. addition = "addition" subtraction = "subtraction"...
function onUse(cid, item, frompos, item2, topos) if not isCreature(item2.uid) then return true end if isInDuel(cid) then return doPlayerSendCancel(cid, "You can't do that while a duel.") end if getPlayerStorageValue(cid, 990) >= 1 then doPlayerSendCancel(cid, "You can't use medicine during gym battles."...
local class = require("heart.class") local M = class.newClass() function M:init(engine, config) end function M:createComponent(entityId, config) end function M:destroyComponent(entityId) end return M
local _, MazeHelper = ...; local L, E, M = MazeHelper.L, MazeHelper.E, MazeHelper.M; local FRAME_SIZE = 300; local X_OFFSET = 6; local MAX_BUTTONS = 4; local BUTTON_SIZE = 64; local buttons = {}; local solutionButtonIndex; local isLocked = false; local SOUND_CHANNEL = 'SFX'; local Sets = { [1] = { solut...
--require("updater"); term.setCursorPos(1,1); term.clear(); print("PERPARING..."); sleep(2.3); print("LOADING..."); sleep(1); print("STARTING..."); sleep(5); shell.run("bg PocketOS");
--[[ OEML - REST API This section will provide necessary information about the `CoinAPI OEML REST API` protocol. <br/> This API is also available in the Postman application: <a href=\"https://postman.coinapi.io/\" target=\"_blank\">https://postman.coinapi.io/</a> <br/><br/> Implemented Standards: * [HTTP1...
local jautils = require("mods").requireFromPlugin("libraries.jautils") local defaultDirectory = "theAbyssJumpStar" local jumpStar = { name = "FrostHelper/JumpStar", depth = 100, } local jumpStarModes = { "Jump", "Dash", } jautils.createPlacementsPreserveOrder(jumpStar, "default", { { "directory"...
-- Adapted based on SOM benchmark. -- Ported on Lua by Francois Perrad <francois.perrad@gadz.org> -- -- Copyright 2011 Google Inc. -- -- 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 ...
local u = require("nvim-lsp-ts-utils.utils") local lsp = vim.lsp local exec_at_index = function(actions, index) if not actions or not actions[index] then u.print_no_actions_message() return end local action = actions[index] lsp.buf.execute_command(type(action.command) == "table" and a...
emancipationgrill = class("emancipationgrill") function emancipationgrill:init(x, y, r) self.x = x self.y = y self.r = {unpack(r)} self.dir = "hor" self.active = true self.inputstate = "off" table.remove(self.r, 1) table.remove(self.r, 1) --Input list --DIR if #self.r > 0 and self.r[1] ~= "link" then ...
--- The things I do for testing... -- @author Quenty local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local Signal = require(script.Parent.Signal) local SelectionFacade = {} SelectionFacade.__index = SelectionFacade SelectionFacade.ClassName = "SelectionFacade" ...
--== Load required libs / files ==-- --#ignore 2 local surface = require("surface.lua") local fontData = require("font.lua") --#require "vendor/surface.lua" as surface --#require "src/font.lua" as fontData local font = surface.loadFont(surface.load(fontData, true)) --#ignore 9 local json = require("../vendor/json.l...
local v,s,t,f = require("Vec2"),require("Size"),true,false return {"Array",{"Phyx.Rect","rect","Dynamic",v(0,0),0,v(0,0),s(119,119),1,0.4,0.4,0,0,f,v(0,-10),f,f,0,f,"Model/duality.clip|quit",v(0,0)}}
-- functions.lua -- Contains global functions. -- Returns the block type (and block meta) from a string. This can be something like "1", "1:0", "stone" and "stone:0". -- If a string with a percentage sign is given it will take the second half of the string (With "40%1:0" it uses only "1:0") function G...
-- -- Created by IntelliJ IDEA. -- User: Noneatme -- Date: 05.01.2015 -- Time: 22:24 -- Project: MTA iLife -- cHandyAppElement = {}; --[[ ]] local valid_hovermethods = { ["size"] = true, ["none"] = true, } -- /////////////////////////////// -- ///// OnClick ////// -- ///// Returns: void ////// -- ///////////...
pg = pg or {} pg.enemy_data_statistics_135 = { [10052017] = { cannon = 60, reload = 150, speed_growth = 0, cannon_growth = 0, pilot_ai_template_id = 80000, air = 0, rarity = 1, dodge = 0, torpedo = 120, durability_growth = 2550, antiaircraft = 0, reload_growth = 0, dodge_growth = 0, hit_gro...
-- require 'path' require 'lfs' require 'nn' --local BatchCreator = torch.class('util.BatchCreator') BatchCreator = {} BatchCreator.__index = BatchCreator function BatchCreator.create(input_params) local self = {} setmetatable(self, BatchCreator) self.inputfile = input_params.input_file self.vocabfile = input_...
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmACN3() local obj = GUI.fromHandle(_obj_newObject("form...
local M = {} M.plugins = function(use) -- Add your own plugins -- use 'kyazdani42/nvim-tree.lua' -- use '~/my-prototype-plugin' -- see :help packer for more options end return M
----------------------------------- -- Area: Yuhtunga Jungle -- Mob: Overgrown Rose ----------------------------------- local ID = require("scripts/zones/Yuhtunga_Jungle/IDs") function onMobSpawn(mob) if mob:getID() == ID.mob.ROSE_GARDEN_PH then mob:setLocalVar("timeToGrow", os.time() + math.random(36000,...
local class = require('./new') local Cache = class() function Cache:__constructor (discriminator) self.discriminator = discriminator or 'id' self.__typeComparsion = tostring self.__data = {} end function Cache:get (key, value) for _,v in ipairs(self.__data) do if self.__typeComparsion(v[key]) == self.__typeCom...
package.cpath = '../unix/?.so;'..package.cpath package.path = '../../Util/?.lua;'..package.path require'unix' local torch = require 'torch' local util = require 'util' local msgpack = require 'msgpack' torch.Tensor = torch.DoubleTensor local aa = torch.rand(10000) print(aa[1]) t0 = unix.time() raw_str = msgpack.pack(a...
----------------------------------- -- Area: Southern San d'Oria -- NPC: Adaunel -- General Info NPC -- !pos 80 -7 -22 230 ------------------------------------ local ID = require("scripts/zones/Southern_San_dOria/IDs"); require("scripts/globals/settings"); require("scripts/globals/quests"); ---------------------------...
local keymap = require("gb.utils").map -- keymap("n", "<leader>da", ":call vimspector#Launch()<CR>") -- keymap("n", "<leader>dd", ":TestNearest -strategy=jest<CR>") -- keymap("n", "<leader>dc", ":call GotoWindow(g:vimspector_session_windows.code)<CR>") -- keymap("n", "<leader>dv", ":call GotoWindow(g:vimspector_session...
require "Polycode/SceneEntity" class "SceneLight" (SceneEntity) AREA_LIGHT = 0 SPOT_LIGHT = 1 function SceneLight:__index__(name) if name == "lightColor" then retVal = Polycore.SceneLight_get_lightColor(self.__ptr) if Polycore.__ptr_lookup[retVal] ~= nil then return Polycore.__ptr_lookup[retVal] else P...
ITEM.name = "Autogun Pistol Grip" ITEM.description = "A generic Autogun pistol grip." ITEM.model = "models/props_lab/box01a.mdl" ITEM.price = 25 ITEM.weight = .6 ITEM.exRender = true
return function() local StringSplit = require(script.Parent.StringSplit) describe("Normal usage", function() it("should split a string by a one character separator", function() local str = "Roblox Powering Imagination" local words = StringSplit(str, " ") expect(#words).to.equal(3) expect(words[1]).to...
require("config") function define_colspan() local n_tech = 0 for _, tech in pairs(game.forces.player.technologies) do if not tech.upgrade then n_tech = n_tech +1 end end local set_colspan = 5 while n_tech / set_colspan > rq.research_table_height do if rq.research_table_width > set_colspan then s...
local local0 = 0.4 local local1 = 0 - local0 local local2 = 0 - local0 local local3 = 0 - local0 local local4 = 0 - local0 local local5 = 10.2 - local0 local local6 = 0 - local0 local local7 = 0 - local0 local local8 = 0 - local0 local local9 = 0 - local0 local local10 = 0 - local0 local local11 = 0 - local0 local loca...
-- refactored a bit but still needs work -mina local collapsed = false local rtTable local rates local rateIndex = 1 local scoreIndex = 1 local score local pn = GAMESTATE:GetEnabledPlayers()[1] local nestedTab = 1 local nestedTabs = {"Local", "Online"} local frameX = 141.5 local frameY = -6 local frameWidth = SCREEN_W...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('XTemplate', { __is_kind_of = "XPropControl", group = "PreGame", id = "PropUrl", PlaceObj('XTemplateWindow', { '__class', "XPropControl", 'RolloverOnFocus', true, 'MouseCursor', "UI/Cursors/Rollover.tga", 'FXMouseIn', "MenuItemHover...
-- Copyright 2004-present Facebook. All Rights Reserved. require('fb.luaunit') require('fbtorch') require('nn') require('cutorch') require('fbcunn') require('fbnn') require('ccn2') local jac = nn.Jacobian local function assertTensorEq(a, b, msg, precision) precision = precision or 1e-5 local diff = torch.dist(...
--MADE BY OneLegend (NOT THE SCRIPT) LOCAL SCRIPT: Go to line 9 and put your name where it says "YOUR NAME HERE" print("Deamon Loaded") if (script.Parent.className ~= "HopperBin") then local h = Instance.new("HopperBin") h.Name = "Deamon" h.Parent = game.Players["ic3w0lf589"].Backpack script.Parent = h scrip...
local help_message = [[ This is a module file for the container biocontainers/epigrass:v2.4.7-1-deb_cv1, which exposes the following programs: - acyclic - assistant - bcomps - ccomps - chardet - circo - cluster - cpp-6 - createfontdatachunk.py - cs2cs - delaunay - designer - dh_numpy - dh_pypy - dh_pyth...
PPWM = {} PPWM.__index = PPWM function PPWM:create(pin, clock, current_duty, duty_limit) local this = { -- This is the width of the pulse based on the hardware. This can be adjusted to determine the -- output power. e.g maximum duty cycle would be classed as "on" while 0 could be classed as -- "off". Making su...
local anm = {} local funcs = {} local sefuncs = {} local shfuncs = {} local floor = math.floor local function copy_to_table(from, to) for k, v in pairs(from) do to[k] = v end end function anm.newSequence(images, speed, range) local new = { images = images, speed = speed or 30, frame = 1, time = 0, pla...
--[[ ================================================================================ ProjectNukeCoreEncryptionUtil Provides SHA256 Encryption abilities. ================================================================================ Author: Unknown --]] local MOD = 2^32 local MODM = MOD-1 local function...
-- Private table of Rust functions -- Our connection to Rust functions exposed by Way Cooler local rust = __rust __rust = nil -- The table that the user sees way_cooler = {} -- The meta table magic that way_cooler uses to talk to Way Cooler local way_cooler_mt = {} -- The commands that way_cooler can run, e.g way_coo...
if data.raw["map-gen-presets"] and data.raw["map-gen-presets"].default then for name, preset in pairs(data.raw["map-gen-presets"].default) do if type(preset) == "table" and preset.basic_settings and preset.basic_settings.autoplace_controls and preset.basic_settings.autoplace_controls["iron-o...
onScriptedTilesElixir = function(player) if player.mapTitle == "Elixir Hall" then if player.y == 6 then local m = core.gameRegistry["elixirMap"] if player.registry["elixirTeam"] == 0 then player:warp(player.m, player.x, player.y + 5) player:sendMinitext("Not on an elixir team.") return end ...
local AddonName, AddonTable = ... -- WoD Junk AddonTable.junk = { 56046, 83156, 106285, 106289, 106290, 106291, 106292, 106293, 106294, 106295, 106296, 106297, 106298, 106299, 106300, 106301, 106302, 106303, 106304, 106305, 106306, ...
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] CW_SWEDISH = Clockwork.lang:GetTable("Swedish"); CW_SWEDISH["SalesmenYouPurchased...
vehicle_generator "airtug" { -54.26639938354492, -1679.548828125, 28.4414, heading = 228.2736053466797 } spawnpoint 'a_m_y_hipster_01' { x = 1164.4, y = -3191.67, z = -39.01, heading = 87.42 }
local M = {} local Devicons = require("nvim-web-devicons") M.init = function(opts) if not opts.devicons then opts.diricon = "" return opts end for _, path in ipairs(opts.paths) do local icon, hlname if path:is_dir() then icon = "" else local...
p= game.Workspace:GetChildren() for i= 1, #p do if p[i].className == "Part" then if p[i].Name ~= "Shane" then p[i]:remove() end end end
------------------------------------------------------------------------------------------------------------------------------------------------------------- -- VEAF carrier command and functions for DCS World -- By zip (2018) -- -- Features: -- --------- -- * Radio menus allow starting and ending carrier operations. C...
require("gameData/gameData"); --@brief 每日奖励数据源 DayRewardData = class(GameData); DayRewardData.Delegate = { onGetSigninInfosCallBack = "onGetSigninInfosCallBack"; onGetSigninCalendarCallBack = "onGetSigninCalendarCallBack"; onSigninCallBack = "onSigninCallBack"; }; DayRewardData.initData = function(se...
local Speech = require("speech") local talker function _init(args) talker = Speech:new() print("Ready...") end function _step(t) local line = readln() if line then audio.play(1, talker:renderspeech(talker:texttophones(line))) end end local _line = "" function readln() local line _line = _line .. sy...
require "IrrLua" --[[ This tutorial will briefly show how to use the terrain renderer of Irrlicht. It will also show the terrain renderer triangle selector to be able to do collision detection with terrain. Note that the Terrain Renderer in Irrlicht is based on Spintz' GeoMipMapSceneNode, lots of thanks go to him. ...
-- -- Copyright (c) 2016, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- local M = { } f...
local L = require "lpeg" local s = require "status:status" () s.verbose = false local pl_mini = require "orb:util/plmini" local getfiles = pl_mini.dir.getfiles local makepath = pl_mini.dir.makepath local getdirectories = pl_mini.dir.getdirectories local extension = pl_mini.path.extension local dirname = pl_...
-- domain.lua local ffi = require("ffi") local bit = require("bit") local bor = bit.bor; local band = bit.band; local libvirt, err = require("libvirt") local Domain = {} setmetatable(Domain, { __call = function(self, ...) return self:open(...) end, }) local Domain_mt = { __index = Domain } -- for destructor -...
--[[ redis连接id, redis地址, redis端口, redis库名, redis验证, 注释 id, host, port, db, auth, desc ]] local redis_config = { [1] = { id = 1, host = "127.0.0.1", port = 6379, db = 0, auth = nil, desc = [[全局数据缓存]], }, [2] = { id = 2, host = "127.0.0.1", port = 6379, db = 1, auth = nil, desc =...
DeriveGamemode("sandbox") local function IncludeCS(File) include(File) if SERVER then AddCSLuaFile(File) end end local function LoadFileCS(File) if CLIENT then include(File) else AddCSLuaFile(File) end end local function IncludeSV(file) if SERVER then include(file) end end do IncludeCS("shared.lua...
local TextPart = require(script.Parent:WaitForChild("TextPart")) local Tile do local _class_0 local _parent_0 = TextPart local _base_0 = { Activate = function(self) if self.Activated then return end self.Activated = true self:UnregisterClick() return self:Reveal() en...
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("Sleep", function() local sleep = require "moonpie.utility.sleep" it("waits for a certain number of milliseconds before returning", function() ...
local Url = {} function Url.parse(url) local href = url local chunk, protocol = url:match("^(([a-z0-9+]+)://)") url = url:sub((chunk and #chunk or 0) + 1) local host = url:match("^([^/]+)") if host then local hostname = host:match("^([^:/]+)") local port = host:match(":(%d+)$") end url = url:sub...
--[[ Lettersmith Hash Returns a transformer that fills in the 'hash' metadata field of a docs iterator. This field contains the 32 hexadecimal digits of the md5sum of the document contents. Fields from document take precedence. --]] local map = require("lettersmith.transducers").map local transformer = require("letter...
-- th compute_ssim_psnr_sharpness.lua ./realimage_folder ./fakeimage_folder require 'torch' require 'paths' require 'image' require 'my_image_error_measures' local lfs = require 'lfs' path_true = arg[1] path_synthesized = arg[2] local list_of_filenames = {} local filenamesonly_no_dir = {} for file in lfs.dir(...
--[[ * The `Matter.Bounds` module contains methods for creating and manipulating axis-aligned bounding boxes (AABB). * * @class Bounds ]]-- Bounds = {} Bounds.__index = Bounds --[[ * Creates a new axis-aligned bounding box (AABB) for the given vertices. * @method create * @param {vertices} vertices * @return {b...
--[[ class GcCallbacks execute callbacks on gc ]] local Lplus = require "Lplus" local newproxy = newproxy local getmetatable = getmetatable local setmetatable = setmetatable local error = error local pairs = pairs local tostring = tostring local type = type local _G = _G local _VERSION = _VERSION loca...
local api = vim.api local handle = io.popen("command -v stylua") local out = handle:read("*a") handle:close() if out == "" then api.nvim_command('echoerr "Could not find stylua."') return end local function formatBuffer() local bufLines = api.nvim_buf_get_lines(0, 0, -1, 1) local bufLine = table.concat(bufLines,...
gravin_attal_missions = { { missionType = "retrieve", primarySpawns = { { npcTemplate = "smuggler_quest_gravin", npcName = "a Smuggler" } }, secondarySpawns = { }, itemSpawns = { { itemTemplate = "object/tangible/mission/quest_item/gravin_attal_q1_needed.iff", itemName = "" } },...
return Def.ActorFrame{ Def.Sprite{ Texture=ddrgame..lang.."centered", InitCommand=function(s) s:xy(SCREEN_CENTER_X,SCREEN_CENTER_Y) end }, Def.Actor{ OnCommand=function(s) SOUND:PlayAnnouncer("caution"); end }, }
function activate(fireMode, shiftHeld) activeItem.interact("ScriptPane", "/interface/scripted/xcustomcodex/xcodexui.config") animator.playSound("enable") end function update() if mcontroller.crouching() then activeItem.setArmAngle(-0.15) else activeItem.setArmAngle(-0.5) end end
--[[ Name: chevrolet.lua For: TalosLife By: TalosLife ]]-- local Car = {} Car.Make = "Chevrolet" Car.Name = "Chevrolet Blazer" Car.UID = "chevrolet_blazer" Car.Desc = "The Chevrolet, gmod-able by TDM" Car.Model = "models/tdmcars/chev_blazer.mdl" Car.Script = "scripts/vehicles/TDMCars/che_blazer.txt" Car.Price = 850...
-- Routine for NPC "Luv" velocity = 40 loadRoutine = function(R, W) if (W:isConditionFulfilled("npc_leeluv","gone")) then R:setDisposed() else R:setTilePosition(68,58) R:goToTile(66,58) R:setFacingLeft() R:wait(5000) R:goToTile(68,58) R:goToTile(68,52) R:goToTile(73,52) R:goToTile(73,56) R:...
--Стандартный библиотеки local gears = require("gears") local awful = require("awful") awful.rules = require("awful.rules") require("awful.autofocus") --Библиотеки виджетов и лайоутов local wibox = require("wibox") --Настройки тем local beautiful = require("beautiful") --Библиотеки для оповещения naughty = require("nau...
return { version = "1.1", luaversion = "5.1", tiledversion = "1.1.5", orientation = "orthogonal", renderorder = "right-down", width = 44, height = 26, tilewidth = 32, tileheight = 32, nextobjectid = 37, properties = {}, tilesets = { { name = "tile_stone_platform", ...
class "Font" function Font:Font(...) for k,v in pairs(arg) do if type(v) == "table" then if v.__ptr ~= nil then arg[k] = v.__ptr end end end if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then self.__ptr = Polycore.Font(unpack(arg)) Polycore.__ptr_lookup[self.__ptr] = self end end funct...
game = {spellButtons={},sidebarCreats={},hoveringCreat=nil,hp=0,playerID=nil,eventualHP=0,targetHP=0,targetEventualHP=0,targetID=nil,batches={},batchesDark={}} function game:enter() love.graphics.setFont(fonts.mapFontWithImages) love.mouse.setGrabbed(true) end function game:leave() love.graphics.setFont(fonts...
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local server = require"net.http.server"; local lfs = require "lfs"; local new_cache = require "util.cache"...
--- === Fenestra === --- Method --- * Window Manipulaiton --- * Borrowed undo implementation from: --- * github.com/heptal // https://goo.gl/HcebTk -- other interesting ideas: -- layouts (http://lowne.github.io/hammerspoon-extensions/) -- snapping (ibid) --[[ Todo: - Window snapping? - Forced layo...
local Model do local _parent_0 = nil local _base_0 = { counter_key_for = function(self, counter) return self:key() .. ':' .. counter end, get_counter = function(self, counter) local value = self.__class.client:get(self:counter_key_for(counter)) return value or 0 end, inc_counte...
return (function(self, event) local ud = u(self) return ud.registeredAllEvents or not not ud.registeredEvents[string.lower(event)] end)(...)
class.name = "math.frustum" local function normalise(frustum, side) local i = side * 4 local a = frustum[i + 1] local b = frustum[i + 2] local c = frustum[i + 3] local d = frustum[i + 4] local magnitude = math.sqrt(a * a + b * b + c * c) frustum[i + 1] = a / magnitude frustum[i + 2] = b / magnitude frustum...
local cartridge = require('cartridge') local argparse = require('cartridge.argparse') local metrics = require('metrics') local checks = require('checks') local handlers = { ['json'] = function(req) local json_exporter = require('metrics.plugins.json') return req:render({ text = json_exporter.export...
-- you can easily test specific units like this: -- th -lnn -e "nn.test{'ParallelCriterionIgnoreLabel'}" require 'nn' -- Make sure that directory structure is always the same local init_file = paths.thisfile():gsub("/test/.*.lua", "/init.lua") -- Include Dataframe lib local criterion_ignore = paths.dofile(init_file) ...
require('libraries/playertables') require('libraries/containers') local unit = PlayerResource:GetSelectedHeroEntity(0) GameRules:SetUseUniversalShopMode(true) if cc then cc:Delete() end cc = Containers:CreateContainer({ layout = {3,4,4}, skins = {}, headerText = "Equipment", pids = {0}, ...
local data_util = require("__flib__.data-util") local shortcut_sheet = "__RateCalculator__/graphics/shortcut.png" data:extend{ -- custom input { type = "custom-input", name = "rcalc-get-selection-tool", key_sequence = "ALT + X", action = "spawn-item", item_to_spawn = "rcalc-selection-tool" }...
local Native = require('lib.native.native') ---@class AbilityStringLevelField local AbilityStringLevelField = { IconNormal = Native.ConvertAbilityStringLevelField(0x61617274), --ABILITY_SLF_ICON_NORMAL Caster = Native.ConvertAbilityStringLevelField(0x61636174), --ABILITY_SLF_CASTER Target = Native.ConvertA...
local table = require '__stdlib__/stdlib/utils/table' local KC = require 'klib/container/container' local LazyTable = require 'klib/utils/lazy_table' local dlog = require 'klib/utils/dlog' -- 定义子类来控制 UI, 每个子类都应该是单例 local AbstractComponent = KC.class('klib.gui.component.AbstractComponent', function(self) self.elem...
local local0 = 1.9 local local1 = 0.3 - local0 local local2 = 0.3 - local0 local local3 = 0.3 - local0 local local4 = 0.3 - local0 local local5 = 0.3 - local0 local local6 = 4.7 - local0 local local7 = 0.3 - local0 local local8 = 4.7 - local0 local local9 = 0.3 - local0 local local10 = 4.7 - local0 local local11 = 0.3 ...
--[[Copyright © 2016, Burntwaffle@Odin All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
local _, CLM = ... local getGuidFromInteger = CLM.UTILS.getGuidFromInteger local Loot = {} function Loot:New(entry, owner) local o = {} setmetatable(o, self) self.__index = self o.entry = entry -- ledger entry reference o.owner = owner return o end function Loot:Owner() return self.ow...
-- This file is licensed under the terms of the BSD 2-clause license. -- See LICENSE.txt for details. function irc:player_part(name) if not self.joined_players[name] then minetest.chat_send_player(name, "IRC: You are not in the channel.") return end self.joined_players[name] = nil minetest.chat_send_player(na...
if UseItem(183) == true then goto label0 end; do return end; ::label0:: AddEthics(-14); AddItemWithoutHint(183, -1); Talk(0, "乔峰,你看这是什么?", "talkname0", 1); Talk(50, "是什么?", "talkname50", 0); Talk(0, "你看了便知道.", "talkname0", 1); DarkScence(); PlayMusic(9); LightScence(); Talk(50, "...
--白泽球式三段冲 function c22221002.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCondition(c22221002.descon) e1:SetTarget(c22221002.destg) e1:SetOperation(c22221002.desop) c:RegisterEffect(e1) end c222...
require("@vue/compiler-core") require("@vue/compiler-core/NodeTypes") require("@vue/compiler-core/ErrorCodes") require("@vue/compiler-core/ElementTypes") require("compiler-dom/src/parserOptions") require("compiler-dom/src/parserOptions/DOMNamespaces") local parse = baseParse describe('DOM parser', function() describ...
-- set leader to , vim.g.mapleader = "," --Incremental live completion (note: this is now a default on master) vim.o.inccommand = 'nosplit' --Set highlight on search vim.o.hlsearch = false --Make line numbers default vim.wo.number = true --Do not save when switching buffers (note: this is now a default on master) v...
-- Copyright 2016 The Cartographer 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 -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or...
local uwebsocket = require "lluv.websocket" local websocket = require "websocket" local bit = require "lluv.websocket.bit" assert(websocket.client.lluv) assert(websocket.client.lluv.sync) assert(websocket.server.lluv) local ch = '\239' local m = 0x0F local b = string.byte(ch) local v = bit.bxor(b, m) local...
local ProgressCallback = { update = 1, finish = 2 } local ORIENTATIONS = {} ORIENTATIONS.HORIZONTAL = 0 ORIENTATIONS.VERTICAL = 1 pokemonMovesWindow = nil local COOLDOWN_RECTS = {} local orientation = ORIENTATIONS.HORIZONTAL local defaultWidth = 0 local defaultHeight = 0 -- function removeCooldown(progress...
package.cpath = "luaclib/?.so" package.path = "lualib/?.lua;examples/?.lua" local socket = require "client.socket" local fd = assert(socket.connect("127.0.0.1", 3000)) local function send_package(fd, pack) local package = string.pack(">s2", pack) socket.send(fd, package) end local function unpack_package(te...
GUI_Config={['avs']= { {x=0,y=0,class="label",label="avs4x26x.exe:"}, {x=1,y=0,width=6,class="edit",name="modpath",value=modpath or ""}, {x=0,y=1,class="label",label="x264.exe:"}, {x=1,y=1,width=6,class="edit",name="xpath",value=xpath or ""}, {x=7,y=1,class="label",label=" ffms2.dll:"}, {x=8,y=1,width=2,class="ed...