content
stringlengths
5
1.05M
---------- library ---------- require 'torch' require 'xlua' require 'optim' require 'cunn' -- parameter: -- Retrieve parameters and gradients: if model then parameters,gradParameters = model:getParameters() end print '==> configuring optimizer' -- optim optimState = { learningRate = opt.learningRate, weightDec...
-- POWER DRAIN POLE OBJECT -- -- Create the Power Drain Pole object -- PDP = { ent = nil, laserRadius = _pdpEnergyRadius, laserDrain = _pdpEnergyDrain, laserNumber = _pdpEnergyLaser, lastUpdate = 0 } -- Constructor -- function PDP:new(object) if object == nil then return end local t = {} local ...
module( 'gii', package.seeall ) -------------------------------------------------------------------- --EDITOR MODULES -------------------------------------------------------------------- require 'gii.bridge' require 'gii.clidebugger' require 'gii.debugger' ---------------------------- require 'gii.RenderContext' requ...
return { ["projekt0n/github-nvim-theme"] = { config = function() require "custom.plugins.github-nvim-theme" end, }, ["karb94/neoscroll.nvim"] = { config = function() require("neoscroll").setup() end, -- lazy loading setup = function() nvchad.packer_lazy_load "n...
local M = {} M.name = "misc" local misc = { windows = { ["<c-w>"] = { name = "window", s = "Split window", v = "Split window vertically", w = "Switch windows", q = "Quit a window", T = "Break out into a new tab", x = "Swap current with next", ["-"] = "Decrease hei...
return { LrShutdownFunction = function( doneFunction, progressFunction ) local LrTasks = import "LrTasks" LrTasks.startAsyncTask( function() if _G.running then local LrDate = import "LrDate" local start = LrDate.currentTime() local estimatedWait = 0.5 -- seconds -- tell the run loop to exit...
--[[ Copyright © 2018 Neph <neph@crypt.lol> This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. Se...
-- -- Impersonating authorization module for a token stored in a secret. -- local _M = {} -- -- The auth module to use. Either service-account or secret -- _M.auth_module = "service-account" _M.secret = { path = "/var/run/secrets/kubernetes.io/serviceaccount/token", } _M.service_account = { name = "default", ...
return { summary = 'Get the components of the quaternion.', description = [[ Returns the components of the quaternion as numbers, either in an angle/axis representation or as raw quaternion values. ]], arguments = { { name = 'raw', type = 'boolean', default = 'false', descrip...
--[[ 1. Play some music 2. Play a sound whenever a button is touched 3. Mix it so the button sound always plays louder than the music The mixer will lower the music volume and set the button sound volume at "the top of the mix" since it has the highest weight. Blending strengths are used here to tran...
--this MOD works but will probably break your saves --use only with care if you know what you do NMS_MOD_DEFINITION_CONTAINER = { ["MOD_FILENAME"] = "GCDEBUGOPTIONS-MOD.pak", ["MOD_AUTHOR"] = "Mjjstral", ["NMS_VERSION"] = "1.77", ["MODIFICATIONS"] = { { ["PAK_FILE_SOURCE"] = "NMSARC.59B126E2.pak",...
local wezterm = require 'wezterm'; return { -- configure font settings font = wezterm.font_with_fallback({ "FiraCode Nerd Font", "Fira Code", "NotoSans Nerd Font", }), font_size = 9.0, -- colorscheme color_scheme = "nord", -- Disable default keybinds because they heavily overlap with sxhkd ...
require "lib.classes.class" require "Global.LOVEWrapper.LOVEWrapper" local UICropWrapper = require("lib.ui.ui_wrapper.UICropWrapper") local TextUIComponent = require("lib.ui.love_ui_components.TextUIComponent") -------------------------------------------------------------------------------------------------------- -- ...
local singName = 'tensorflow_20.02-tf2-py3.sif' local tfVersion = '2.1.0' help(string.format([[ Tensorflow deep learning library for Python TensorFlow version %s running in NVIDIA's optimized container: https://ngc.nvidia.com/catalog/containers/nvidia:tensorflow For more help see: https://docs.csc.fi/apps/tensorflo...
--This script contains all test cases to verify Double parameter --How to use: --1. local integerParameter = require('user_modules/shared_testcases/testCasesForDoubleParameter') --2. integerParameter:verify_Double_Parameter(Request, Parameter, Boundary, Mandatory) -----------------------------------------------------...
function Flow_DetectRogueDhcpServer (dpiMsg, ruleEngine) -- Trigger an alarm if a non-approved DHCP server shows up on the network -- This rule currently has two DHCP server IP addresses setup. Please -- change this to fit your network setup --This rule is an example of how to use insider knowledge of your netw...
rs_uuid = {'739fe4fb-2850-4cde-9637-10150724c5eb', '832bbba0-9699-4aa1-907d-c7c7af61f5c9', '971279ef-5c38-4d14-86ee-0e4a56567955'} replica_uuid = { box_1_a = '3e01062d-5c1b-4382-b14e-f80a517cb462', box_1_b = 'db778aec-267f-47bb-9347-49828232c8db', box_1_c = '7223fc89-1a0d-480b-a33e-a8...
object_mobile_wod_reanimated_slave_07 = object_mobile_shared_wod_reanimated_slave_07:new { } ObjectTemplates:addTemplate(object_mobile_wod_reanimated_slave_07, "object/mobile/wod_reanimated_slave_07.iff")
-- Dialogue for NPC "npc_thea2" loadDialogue = function(DL) if (not DL:isConditionFulfilled("npc_thea2", "talked")) then DL:setRoot(1) else DL:setRoot(2) end if (not DL:isConditionFulfilled("npc_thea2", "talked")) then DL:createNPCNode(1, 3, "DL_Thea_Hey") -- Oh, here you are! My apprenticeship is g...
CustomizableWeaponry:addRegularSound("CW_HOLSTER", {"cw/holster1.wav", "cw/holster2.wav", "cw/holster3.wav", "cw/holster4.wav"}) CustomizableWeaponry:addRegularSound("CW_EMPTY", "weapons/shotgun/shotgun_empty.wav") CustomizableWeaponry:addRegularSound("CW_TAKEAIM", {"cw/sightraise1.wav", "cw/sightraise2.wav"}) Customiz...
brantleeMissions = { { missionType = "retrieve", primarySpawns = { { npcTemplate = "midgoss_dlabaninaph", npcName = "Midgoss D'labaninaph" } }, secondarySpawns = { { npcTemplate = "carrion_spat", npcName = "a carrion spat" }, { npcTemplate = "carrion_spat", npcName = "a carrion spat" } }, ...
-- Minetest 0.4.17 mod: framedglass framedglass = {} minetest.register_craft({ output = 'framedglass:wooden_framed_glass 4', recipe = { {'default:glass', 'default:glass', 'default:stick'}, {'default:glass', 'default:glass', 'default:stick'}, {'default:stick', 'default:stick', ''}, } }) minetest.register_cra...
fx_version 'cerulean' games {'gta5'} author 'RULoN' description 'Wuhu Freamwork' version '1.0.0' client_scripts { 'client.lua', 'c_function.lua', } export { 'drawBlip', 'helpnotify', 'notify', 'SpawnVehicle', 'revivePed' } server_script { 'server.lua', 's_func...
require('nis.sessions') require('nis.utils') require('nis.commands') require('nis.project_lookup') require('nis.project') local sessions = {} -- a table "filepath" - session local function current_session() if vis.win and vis.win.file and vis.win.file.project then return sessions[vis.win.file.project] end end ...
pg = pg or {} pg.push_data_template = { { alignment = 0, id = 1, title = "委托完成喵", content = "委托《$1》完成了喵!勤劳才会致富喵!", desc = "功能开启后,军事委托完成时推送提示至设备" }, { alignment = 0, id = 2, title = "回收物资喵", content = "小卖部的物资已经满了喵,再不回来我就拿走了喵!", desc = "功能开启后,小卖部库存溢满时推送提示至设备" }, { alignment = 0, id = 3, tit...
local skynet = require "skynet" local Cache = require "meiru.lib.cached" local server = require "meiru.util.server" ------------------------------------------------------- --command ------------------------------------------------------- local _cache local function init() _cache = Cache.new() end local command = ...
--[[ -- -- Copyright (c) 2013 Wilson Kazuo Mizutani -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the use of this software. -- -- Permission is granted to anyone to use this software for any purpose, -- in...
fx_version 'bodacious' game 'gta5' -- Criado por [Discord: Passos#3717] client_scripts { "@vrp/lib/utils.lua", "client.lua" } server_scripts { "@vrp/lib/utils.lua", "server.lua" }
local clearScreen = true local autoPlay = false local height = 240 local width = 400 local threshold = 0.5 local function checkCellNeighbours(x, y) local left = (x - 1) % width local right = (x + 1) % width local up = (y - 1) % height local down = (y + 1) % height local aliveAmount = world[left + up * width] + ...
local BRACKETS = { "2v2", "3v3" } local CATEGORIES = { "Maps", "Comps", "Players" } local IDENTIFIER = "Identifier" local arenaDb = nil local eventFrame = nil local viewer = CreateFrame("Frame", "PvPAuditHistoryViewer", UIParent, "BasicFrameTemplateWithInset") viewer:SetClampedToScreen(true) viewer:SetMovable(true) ...
function onCreate() -- background shit makeLuaSprite('funsky', 'funsky', -300, -60); setLuaSpriteScrollFactor('funsky', 0.1, 0.1); makeLuaSprite('funfloor', 'funfloor', -300, -420); setLuaSpriteScrollFactor('funfloor', 1, 1); makeLuaSprite('funpillars', 'funpillars', -340, 10); setLuaSpriteScrollFact...
-- -------------------------------------------------------------------------------- -- FILE: release.lua -- USAGE: lua matlab-support/release.lua <mode> [<options>] -- DESCRIPTION: Run from the project's top-level directory. -- OPTIONS: The mode is either "check", "zip", "cp-repo" or "help". --...
-- 2019 (c) kontakt@herrsch.de --[[ The NAIVE REGEX ROUTER is a xors Plugin - Match concrete literal route strings or match routes by regex expressions. - On any request the router will try to map a given route (inluding the http method) to a user defined handler function. The finder will process your definitions t...
-- See LICENSE for terms local mod = CurrentModDef local logos = { { file = "2d_Space_Launch_Squadron", name = "2d Space Launch Squadron", }, { file = "23d_Space_Operations_SQ_1", name = "23d Space Operations SQ 1", }, { file = "23d_Space_Operations_SQ_2", name = "23d Space Operations SQ 2", }, { ...
Config = {} Config.DrawDistance = 10.0 Config.MarkerSize = {x = 7.0, y = 7.0, z = 1.0} Config.Money = 100 -- How much it takes from you when you open the clothing menu Config.Debug = true Config.ClothingShops = { [1] = { blip = true, coords = vector3(72.3, -1399.1, 28.4), MarkerSize = {x = 7.0, y = 7.0, z...
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_frmFicha_MM3e_RRPG1_svg() local obj = GUI.fromH...
------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "Stun Metal Storage", desc = "Makes stunned storage drop capactiy", author...
local _, nMainbar = ... local cfg = nMainbar.Config -- reputation bar mouseover text local ReputationWatchStatusBarText = ReputationWatchBar.OverlayFrame.Text ReputationWatchStatusBarText:SetFont(cfg.repBar.font, cfg.repBar.fontsize, 'THINOUTLINE') ReputationWatchStatusBarText:SetShadowOffset(0, 0) if (cfg.repBar...
--- @type StdUi local StdUi = LibStub and LibStub('StdUi', true); if not StdUi then return; end function StdUi:SetMargins(widget, top, right, bottom, left) widget.margins = { top = top or 0, right = right or 0, bottom = bottom or 0, left = left or 0 }; end function StdUi:LayoutConfig(parent, top, right, bo...
-- Color.lua -- Contains the Color object and the color solver. -- -- Last modified for v1.5.0 -- Copyright © 2013-2014 Florent POUJOL, published under the MIT license. Color = {} ColorMT = { __call = function(Object, ...) return Object.New(...) end, -- Allow to call Color.New() by writing Color() __index = ...
Class = require 'hump.class' require 'entities/entity' FixedEntity = Class{ __includes = Entity, init = function(self, x, y, level) Entity.init(self, x, y, level) end; draw = function(self) -- Noop, implement in child end; update = function(self, dt) -- Noop, implemen...
--- packages require 'torch' require 'paths' require 'cudnn' require 'cunn' require 'image' require 'paths' require 'xlua' t=require 'datasets/transforms' csv = require 'csvigo' torch.setdefaulttensortype('torch.FloatTensor') -- Load model model = torch.load('checkpoints/milresnet/model_best.t7'):cuda() -- Evaluate mo...
local USERDATA_TAG = 'hotcorner' local module = require(USERDATA_TAG .. '.internal') local hotcornerMT = hs.getObjectMetatable(USERDATA_TAG) local mainScreen = hs.screen.mainScreen module.modifierFlags = ls.makeConstantsTable(module.modifierFlags) local function newAtCorner(corner, size, screen) if type(size) == ...
if not modules then modules = { } end modules ['trac-lmx'] = { version = 1.002, comment = "companion to trac-lmx.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } -- this one will be adp...
include('shared.lua') /*--------------------------------------------------------- Name: Initialize Desc: First function called. Use to set up your entity ---------------------------------------------------------*/ function ENT:Initialize() end /*--------------------------------------------------------- Nam...
-------------------------------------------------------------------------------------- -- -- Copyright (c) Contributors to the Open 3D Engine Project. -- For complete copyright and license terms please see the LICENSE at the root of this distribution. -- -- SPDX-License-Identifier: Apache-2.0 OR MIT -- -- -- -...
--- --- See LICENSE file in top directory for copyright information local Object = require "ActiveLua.Object" local table = require "table" require "ActiveLua.table_ext" local string = string local tonumber = tonumber local error = error local ipairs = ipairs local pairs = pairs local xpcall ...
-- load certain preferences before gameplay initializes local modslevel = topscreen == "ScreenEditOptions" and "ModsLevel_Stage" or "ModsLevel_Preferred" local playeroptions = GAMESTATE:GetPlayerState(PLAYER_1):GetPlayerOptions(modslevel) playeroptions:Mini(2 - playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).Recept...
-- -- tests/actions/xcode/test_xcode_project.lua -- Automated test suite for Xcode project generation. -- Copyright (c) 2009-2011 Jason Perkins and the Premake project -- T.xcode3_project = { } local suite = T.xcode3_project local xcode = premake.xcode -----------------------------------------------------------...
------------------------------------------------- -- Rofi widget for Awesome Window Manager -- Shows the application list -- Better with Compton tryone fork for blur fx -------------- local awful = require('awful') local naughty = require('naughty') local watch = require('awful.widget.watch') local wibox = require('wi...
local playsession = { {"Serennie", {1122219}}, {"facere", {692237}}, {"lahs87", {678145}}, {"oskari1804", {1008861}}, {"ralphgod3", {879956}}, {"marius86000", {389260}}, {"ManuelG", {693923}}, {"Ulygold", {211617}}, {"Fire3231", {615692}}, {"EmptyRov", {1473597}}, {"QuantoPrizm", {377987}}, {"shep1987", {11...
local allowed_ents = { ["xyz_portable_radio"] = true, ["xyz_dj_set"] = true, } net.Receive("CarRadio:ChangeChannel", function(_, ply) if XYZShit.CoolDown.Check("CarRadio:ChangeChannel", 1, ply) then return end local car = ply:GetVehicle() if not IsValid(car) then car = net.ReadEntity() if car:GetPos():DistTo...
-------------------------------- -- @module TextBMFont -- @extend Widget -- @parent_module ccui -------------------------------- -- init a bitmap font atlas with an initial string and the FNT file -- @function [parent=#TextBMFont] setFntFile -- @param self -- @param #string fileName ----------------------...
insulate("documentation on Cron", function() require "init" require "spec.mocks" require "spec.asserts" require "spec.universe" local function victory() end it("regular", function() local player = PlayerSpaceship() local station = SpaceStation() -- tag::regular[] ...
-- config The = {} The["klass"] = "!" The["ignore"] = "?" The["number"] = "$" inf = 10^32 ning = -1*inf -- one liners fmt = string.format -- list function member(x,lst) for y in items(lst) do if x== y then return true end end return false end -- tests function rogue(x) local builtin = { "true","math",...
-------------------------------- -- @module Console -- @extend Ref -- @parent_module cc -------------------------------- -- @overload self, cc.Console::Command, cc.Console::Command -- @overload self, string, cc.Console::Command -- @function [parent=#Console] addSubCommand -- @param self -- @param #s...
-- -- Created by Noneatme -- User: Noneatme -- Date: 24.02.2015 -- Time: 15:42 -- Copyright(c) 2015 - iLife Team and Developers -- cCorporationRole_PRManager = inherit(cSingleton); --[[ ]] -- /////////////////////////////// -- ///// hasPermissions ////// -- ///// Returns: void ////// -- /////////////////////////...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BceExitGuild_pb', package.seeall) local BCEEXITGUILD = protobuf.Descriptor(); local BCEEXITGUILD_GUILDID_FIELD = protobuf.FieldDescriptor(); BCEEXITGUILD_GUILDID_FIELD.name = "guildID" BCEEXITGUILD_GUILDID_FIELD.full_name = ".com....
-- -- Weather mod -- By Kaadmy, for Pixture -- weather = {} weather.weather = "clear" weather.types = {"storm", "snowstorm", "clear"} local function addvec(v1, v2) return {x = v1.x + v2.x, y = v1.y + v2.y, z = v1.z + v2.z} end local weather_soundspec=nil local weather_pr=PseudoRandom(minetest.get_mapgen_params()....
local particle_animations = {} particle_animations.get_metal_particle_big_pictures = function(options) local options = options or {} return { sheet = { filename = "__base__/graphics/particle/metal-particle/metal-particle-big.png", priority = "extra-high", width = 26, height = 22, ...
----------------------------------------- -- ID: 5032 -- Scroll of Sinewy Etude -- Teaches the song Sinewy Etude ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(424) end function onItemUse(target) target:addSpell(424) end
function love.conf(t) t.identity = "MnA_Anime_Eyes" t.version = "0.9.2" t.console = true t.window.title = "Anime Eyes" t.window.width = 800 t.window.height = 600 t.window.minwidth = 400 t.window.minheight = 300 t.window.resizable = true end
--[[ Luci configuration model for statistics - collectd csv plugin configuration (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> 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 a...
-- 适用屏幕参数 SCREEN_RESOLUTION="640x960"; SCREEN_COLOR_BITS=32; count=1; --在keepScreen(true)和keepScreen(false)之间屏幕图片内容在内存中保持不变 -- 各个按钮位置:欲火重生按钮 152,876 0x84CFD8 -- 各个按钮位置:欲火重生按钮 50,876 0x1BB5F3 -- 各个按钮位置:挑战 按钮 152,876 0xD39B89 2014-06-24 变为:0xD3A088 -- 各个按钮位置:挑战 按钮 50,876 0xF88322 -- 各个按钮位置:战斗中 按钮上灰 ...
ESX = nil local PlayerData = {} Citizen.CreateThread(function() while ESX == nil do TriggerEvent("esx:getSharedObject", function(obj) ESX = obj end) Citizen.Wait(0) end end) Citizen.CreateThread(function() while true do Citizen.Wait(0) local co...
-- implement the process function for custom lua selectors function process(o) print("observation fields:") print(o:rcode()) print(o:rdata()) print(o:rrtype()) print(o:rrname()) print(o:sensor_id()) print("tags:") local tags = o:tags() for i=1,#tags do print(" - " .. tags[i]...
object_tangible_tcg_series4_decorative_droid_oil_bath = object_tangible_tcg_series4_shared_decorative_droid_oil_bath:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series4_decorative_droid_oil_bath, "object/tangible/tcg/series4/decorative_droid_oil_bath.iff")
local awful = require('awful') local beautiful = require('beautiful') local wibox = require('wibox') local gears = require('gears') local icons = require('theme.icons') local dpi = beautiful.xresources.apply_dpi local clickable_container = require('widget.clickable-container') local task_list = require('widget.task-lis...
--[[------------------------------------------------------------------ WELCOME MESSAGE Displays a message whenever the player enters a server to show its name, current map and gamemode running ]]-------------------------------------------------------------------- if CLIENT then -- Variables local alpha = 1;...
roboport_wagon = table.deepcopy(data.raw["cargo-wagon"]["cargo-wagon"]) roboport_wagon.equipment_grid = "roboport-wagon-equipment-grid" roboport_wagon.name = "roboport-wagon" roboport_wagon.minable = {mining_time = 0.5, result = "roboport-wagon"} table.insert(data.raw["technology"]["personal-roboport-equipment"]....
ITEM.name = "Medium Bag" ITEM.desc = "bagDesc" ITEM.model = "models/rebel1324/b_largebag.mdl" ITEM.invWidth = 4 ITEM.invHeight = 4 ITEM.outfitCategory = "back" ITEM.price = 150 function ITEM:onGetDropModel(item) return "models/props_junk/cardboard_box004a.mdl" end ITEM.iconCam = { ang = Angle(20.322423934937, -110.728...
-- Generated by CSharp.lua Compiler local System = System local UnityEngine = UnityEngine System.namespace("", function (namespace) namespace.class("A", function (namespace) local Start, Update Start = function (this) UnityEngine.Debug.Log(111111111111) end Update = function (this) end r...
local CRYPT = require "lcrypt" local sm3 = CRYPT.sm3 local hmac_sm3 = CRYPT.hmac_sm3 local sm2keygen = CRYPT.sm2keygen local sm2key_write = CRYPT.sm2key_write --local sm2key_export = CRYPT.sm2key_export --local sm2pubkey_write = CRYPT.sm2pubkey_write --local sm2prikey_write = CRYPT.sm2prikey_write local sm2sign = CRYPT...
function onUse(cid, item, fromPosition, itemEx, toPosition) local pos = getCreaturePosition(cid); if (item.itemid == 2633) then -- Uka Uka - maligno local uka = doSummonCreature("Uka Uka", pos); if (isCreature(uka)) then doRemoveItem(item.uid); return true; else doSendMagicEffect(getPlayerPosition(cid...
combatmovesimple = { {"cmroot", "CombatMove", "none", BEHAVIOR}, } addAiTemplate("combatmovesimple", combatmovesimple)
return function() local BaseTile = script.Parent local Tile = BaseTile.Parent local App = Tile.Parent local UIBlox = App.Parent local Packages = UIBlox.Parent local Roact = require(Packages.Roact) local mockStyleComponent = require(UIBlox.Utility.mockStyleComponent) local TileBanner = require(script.Parent.Til...
local colors = require 'src/colors' local lume = require 'libs/lume' local enemyCreator = require 'src/enemy' globalWave = 0 local enemyManager = { } enemyManager.meta = { __index = enemyManager, } function enemyManager.new() local newEnemyManager = {} setmetatable(newEnemyManager, enemyManager.meta) return ...
return function(min,max) local build_fn = function(x,y,z) local name = MapData.get_node(vector.new(x,y,z)).name if MapData.get_node_group('leaves', name) > 0 or MapData.get_node_group('tree', name) > 0 then return 'air' end end return stm.walk_aabb(min, max, build_fn) end
CmdMgr.register{ name = 'rate', desc = "Rates current map", args = { {'rating', type = 'int', min = 1, max = 5}, }, func = function(ctx, rate) source = ctx.player.el -- FIXME RtPlayerRate(rate) end } CmdMgr.register{ name = 'rating', desc = "Checks current map rating", func = function(ctx...
Duel = RaceGamemode:subclass "Duel" function Duel:init(...) self.super:init(...) end function Duel:raceFinished(timeout) self.super:raceFinished(timeout) if timeout then triggerEvent("RaceDuel.finished", self.race.element) end self.race:destroy() end function Duel:playerRemoved(player) self.super:playerRem...
AddCSLuaFile() local DbgPrint = GetLogging("MapScript") local MAPSCRIPT = {} MAPSCRIPT.PlayersLocked = false MAPSCRIPT.DefaultLoadout = { Weapons = { "weapon_lambda_medkit", "weapon_crowbar", "weapon_pistol", "weapon_smg1", "weapon_357", }, Ammo = { ...
local L = BigWigs:NewBossLocale("Siamat", "itIT") if not L then return end if L then --L.servant = "Summon Servant" --L.servant_desc = "Warn when a Servant of Siamat is summoned." end
--[[ Name: save_inventory.lua By: xM-1 /////////////////////////////////////////////////////////////////////////// ]]-- print("+++++++++++++++++++++++++++++") print("| Save Inv initialized |") print("+++++++++++++++++++++++++++++") kstat = {} function debugrs(test) table.insert(kstat, tostring(test)) print("Inserte...
-- See Copyright Notice in LICENSE.txt function kprint(msg) print("kernel: " .. msg) end function safe_loadstring(code, chunkname, allow_precompiled) if not allow_precompiled and string.byte(code, 1) == 27 then return nil, string.format( "precompiled code not allowed for chunk '%s'", ...
local M = { } local __ = ... local case = require(__ .. "._" .. "case") M.main = function() case.main({ "a/b/c" }, { "a/b" }, "case 1") return case.main({ "a\\b\\c" }, { "a\\b" }, "case 2") end return M
project "Krakoa" kind "StaticLib" language "C++" cppdialect "C++latest" characterset ("default") staticruntime "off" locale "en-GB" targetdir ("%{wks.location}/bin/" .. OutputDir .. "/%{prj.name}") objdir ("%{wks.location}/bin-int/" .. OutputDir .. "/%{prj.name}") pchheader "Precompil...
local M = {} local fn = vim.fn local cmd = vim.cmd M.reload = function() cmd("do User filittle") end M.open = function(opts) local path = opts.paths[tonumber(fn.line("."))] cmd("e " .. path._absolute) M.reload() end M.split = function(opts) local path = opts.paths[tonumber(fn.line("."))] cmd...
local ToU8String = require("us4l.Encodings").UTF8.FromUString local U16BEToUString = require("us4l.Encodings").UTF16BE.ToUString local MakeUString = require "us4l.internals.MakeUString" local fhandle = io.open( [[..\CharacterObject.psm1]], "rb" ) fhandle:read( 2 ) --Dispose of BOM local utf16_line = fhandle:read( 30*2...
-- -- Addon _fiu_gui_Loot2.lua -- Author marcob@marcob.org -- StartDate 27/02/2017 -- local addon, cD = ... function cD.createLootWindow() --Global context (parent frame-thing). local context = UI.CreateContext("Loot_context") local lootWindow = UI.CreateFrame("Frame", "Loot", context) ...
--[[ statusd_batttery.lua - battery status indicator for notion WM Copyright (c) 2012 Eugen Zagorodniy <e dot zagorodniy at gmail dot com> 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 ...
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program 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 of the License, --or (at your option) any later version. ...
object_mobile_dressed_meatlump_male_chef_02 = object_mobile_shared_dressed_meatlump_male_chef_02:new { } ObjectTemplates:addTemplate(object_mobile_dressed_meatlump_male_chef_02, "object/mobile/dressed_meatlump_male_chef_02.iff")
local gl = require 'ffi.OpenGL' return function(HydroCLApp) function HydroCLApp:showDisplayVar1D(solver, var) solver:calcDisplayVarToTex(var) -- display self.graphShader:use() solver:getTex(var):bind() gl.glUniform1f(self.graphShader.uniforms.scale.loc, 1) gl.glUniform1f(self.graphShader.uniforms.offset.loc,...
function love.conf (t) t.window.title = "ParticleEditor" t.window.width = 1280 t.window.height = 720 t.window.resizable = true t.window.minwidth = 1280 t.window.minheight = 720 end
require("../../diff/diff_export") require("../../vr/vr_export") require("../../utils/sign") require("weighted_random_v1") --[[ IMPORTANT: I have intentionally cheated during the acceleration calculation. It does not change the magnitude, or the relation of the values, but it makes for a much more readable code, and a...
---@meta --- Create a new table. --- ---@param narr integer number of array-like items ---@param nrec integer number of hash-like items ---@return table local function new(narr, nrec) end return new
return { misc = { ["and"] = "と", artifact_regeneration = function(_1, _2) return ("%sは%sに形を変えた。") :format(_1, _2) end, black_cat_licks = function(_1, _2) return ("%sは%sをぺろぺろと舐めた。") :format(name(_1), _2) end, caught_by_assassins = "暗殺者につかまった。あなたはクライアントを守らなければならない。", corpse_is_dried_up = fun...
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local S = E:GetModule('Skins') --Lua functions local _G = _G local unpack, pairs, ipairs, select = unpack, pairs, ipairs, select --WoW API / Variables local CreateFrame = CreateFrame local hooksecurefunc = hooksecur...
local rdkafka = require("rdkafka") assert(rdkafka._VERSION == "lua-rdkafka 0.0.1") collectgarbage()
local AddonName, AddonTable = ... AddonTable.transmog = { 35579, -- Vrykul Shackles [Utgarde Keep] 35965, -- Bloodspore Robe 35967, -- Bloodspore Hood 35978, -- Mur'ghoul Wristwraps 35993, -- Bristlepine Shoulderpads 36002, -- Voldrune Bracelets 36006, -- Icemist Gloves 36036, -- Condo...