content
stringlengths
5
1.05M
if reaper.GetToggleCommandStateEx(0, 40671) == (string.match(select(2, reaper.get_action_context()), "on%.lua$") and 0 or 1) then reaper.Main_OnCommand(40671, 0) -- Transport: Toggle preserve pitch in audio items when changing master playrate end
-- load test base local TheClassicRace = require("testbase") -- aliases local Events = TheClassicRace.Config.Events local NetEvents = TheClassicRace.Config.Network.Events describe("Sync", function() local db ---@type TheClassicRaceConfig local core ---@type TheClassicRaceEventBus local eventbus ...
local h = require("null-ls.helpers") local methods = require("null-ls.methods") local DIAGNOSTICS_ON_SAVE = methods.internal.DIAGNOSTICS_ON_SAVE return h.make_builtin({ name = "rstcheck", meta = { url = "https://github.com/myint/rstcheck", description = "Checks syntax of reStructuredText and c...
--version = 1 -- ---------------------------------------------------------------------------- PAC_name = 'DEMO' PAC_id = '124231' -- ---------------------------------------------------------------------------- --Узлы WAGO nodes = { { name = 'A100', ntype = 100, n ...
-- this script adds a group button to create groups for your players -- local Event = require 'utils.event' local function build_group_gui(player) local group_name_width = 160 local description_width = 220 local members_width = 90 local member_columns = 3 local actions_width = 60 local total_height = 350 i...
ys = ys or {} ys.Battle.InterruptState = class("InterruptState", ys.Battle.IUnitState) ys.Battle.InterruptState.__name = "InterruptState" ys.Battle.InterruptState.Ctor = function (slot0) slot0.super.Ctor() end ys.Battle.InterruptState.AddIdleState = function (slot0, slot1, slot2) return end ys.Battle.InterruptStat...
modifier_disable_healing = class({}) function modifier_disable_healing:IsHidden() return true end function modifier_disable_healing:RemoveOnDeath() return false end function modifier_disable_healing:DeclareFunctions() local funcs = { [MODIFIER_PROPERTY_DISABLE_HEALING] = true, } return funcs end function mod...
-- PublicUIMenu.lua -- Created by sddz_yuxiaohua@corp.netease.com -- on 14-04-01 local uibutton = import("..ui.UIButton") local successView = import("..views.SuccessView"); local database = import("..common.dao") local game_1 = import("..views.PyinFindChinese") local game_2 = import("..views.ChineseFindPyin") local ga...
local M = {} ---Get the highlight groups for the plugin ---@param theme table ---@return table function M.get(theme) return { TroubleCount = { fg = theme.colors.purple, style = theme.options.bold }, TroubleFile = { bg = "NONE", fg = theme.colors.cyan }, TroubleFoldIcon = { bg = "NONE", fg =...
package = "blunty666.nodes_demo.views" imports = { "blunty666.nodes.gui.objects.Button", "blunty666.nodes.gui.objects.Label", } class = "TimeView" extends = "BaseView" local WIDTH, HEIGHT = 10, 4 local function drawableDrag(drawable, mouseDragEvent) local xPos, yPos = unpack(drawable.pos) drawable.pos = {xPos +...
return { name = 'SpriteBatchUsage', description = 'Usage hints for SpriteBatches and Meshes to optimize data storage and access.', constants = { { name = 'dynamic', description = 'The object\'s data will change occasionally during its lifetime. ', }, { ...
local type = _G.type local function doflat(result, v, index, level) if type(v) == "table" and (level == nil or level > 0) then for k = 1, #v do index = doflat(result, v[k], index, level and (level-1)) end else index = index + 1 result[index] = v end return index end local function flat(arr, level) loc...
-- Behavior for koray, the glowing moon isCheckpoint = false speechBubbleState = 0 update = function(B, W) if (not isCheckpoint and W:isConditionFulfilled("npc_koray","level_checkpoint")) then B:setPosition(150, 750) isCheckpoint = true speechBubbleState = 5 return end if (...
--[[ ######################## # # # Walter White # # # # # # 2018 # # # # # ######################## --]] resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937" client_script { ...
-------------------- -- helper -------------------- function urlDecode(url) return url:gsub('%%(%x%x)', function(x) return string.char(tonumber(x, 16)) end) end function guessType(filename) local types = { ['.css'] = 'text/css', ['.js'] = 'application/javascript', ['.html'] = 'text/html', ['.png'] = 'imag...
local libchest = require("libchest") local libplan = require("libplan") local libnav = require("libnav") local robot = require("robot") local util = require("util") local component = require("component") local librecipe = require("librecipe") util.init() local ico = component.inventory_controller local args = { ... ...
require('pathfinding/math'); local PolyGrid = class.new(); Pathfinding.PolyGrid = PolyGrid; local Point = Pathfinding.Point; local Polygon = Pathfinding.Polygon; function PolyGrid:constructor(nodes) self.nodes = nodes or {}; self.offsetPolygons = {}; end --[[ (Re-)create a PolyGrid from a set of polygons --]] fu...
-- Copyright 2021 SmartThings -- -- 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 agreed to in ...
modifier_frozen_heroes = class({}) function modifier_frozen_heroes:CheckState() return {[MODIFIER_STATE_STUNNED] = true, [MODIFIER_STATE_INVULNERABLE] = true} end function modifier_frozen_heroes:GetTexture() return 'modifier_invulnerable' end function modifier_frozen_heroes:IsPurgable() return false end function modif...
local _, Addon = ... local DB = Addon.DB local L = Addon.Locale local MinimapIcon = Addon.UI.MinimapIcon local Options = Addon.UI.Groups.Options local Widgets = Addon.UI.Widgets function Options:Create(parent) Widgets:Heading(parent, L.OPTIONS) self:AddGeneral(parent) end function Options:AddGeneral(parent) par...
-- map helper local function map(mode, lhs, rhs, opts) local options = {noremap = true} if opts then options = vim.tbl_extend('force', options, opts) end vim.api.nvim_set_keymap(mode, lhs, rhs, options) end local cmd = vim.cmd local s = {silent = true} ------------------------ -- Mapping Goes Here -- ---------...
local mgr = require 'backend.master.mgr' local event = {} function event.initialized() mgr.sendToClient { type = 'event', seq = mgr.newSeq(), event = 'initialized', } end function event.capabilities() mgr.sendToClient { type = 'event', seq = mgr.newSeq(), ev...
createTeam("Minigames",100,50,225) createTeam("Drag",50,55,90) createTeam("Trials",250,100,100) createTeam("Shooter",100,250,20) createTeam("Destruction Derby",250,0,150) createTeam("Deathmatch",150,80,80) createTeam("Counter Strike",250,150,0) ---: 3923, 3917, 3911, 3907, 3906, 3905, 3903, 3902, 3900, 3899, 3898, 3897...
modifier_sona_crescendo_celerity_attack = class({}) -------------------------------------------------------------------------------- -- Classifications function modifier_sona_crescendo_celerity_attack:IsHidden() return false end function modifier_sona_crescendo_celerity_attack:IsDebuff() return true end function m...
------------------------ ----- Hunger Games ----- ------------------------ local tonumber = GLOBAL.tonumber local TheNet = GLOBAL.TheNet local SpawnPrefab = GLOBAL.SpawnPrefab local function DoTaskInTime(time, task) GLOBAL.TheWorld:DoTaskInTime(time, task) end local maxplayers = TheNet:GetServerMaxPlayers() local isma...
local Enemy = require 'nodes/enemy' local gamestate = require 'vendor/gamestate' local sound = require 'vendor/TEsound' local Timer = require 'vendor/timer' local Projectile = require 'nodes/projectile' local sound = require 'vendor/TEsound' local utils = require 'utils' local window = require 'window' local camera = ...
-- This resource is part of the default Cfx.re asset pack (cfx-server-data) -- Altering or recreating for local use only is strongly discouraged. version '1.0.0' author 'Cfx.re <root@cfx.re>' description 'A flexible handler for game type/map association.' repository 'https://github.com/citizenfx/cfx-server-data' clie...
---- -- Dev Tools mod submenu. -- -- Includes submenu for the "Dev Tools" mod. -- -- **Source Code:** [https://github.com/dstmodders/mod-auto-join](https://github.com/dstmodders/mod-auto-join) -- -- @classmod DevToolsSubmenu -- -- @author [Depressed DST Modders](https://github.com/dstmodders) -- @copyright 2019 -- @lic...
--[[ YUITI : Löve2D Blank Template : Main ====================================================================== Main game file, manages Löve2D's callbacks and the game loop. It's kinda monstrous, but you don't need to use everything, delete unused stuff, please! ------------------------------...
belt = Instance.new("Part", game.Players.LocalPlayer.Character) belt.FormFactor = "Custom" belt.Size = Vector3.new(0.3,2.5,1.2) belt.Name = "Belt" belt.BrickColor = BrickColor.new("Really black") belt:BreakJoints() function Weld(a,b,c,d) weld = Instance.new("Weld",a) weld.Part0 = a weld.Part1 = b if c then weld.C0 = c ...
local metric_major = monitoring.gauge("version_major", "monitoring major version") local metric_minor = monitoring.gauge("version_minor", "monitoring minor version") metric_major.set( monitoring.version_major ) metric_minor.set( monitoring.version_minor )
-- LuaTools需要PROJECT和VERSION这两个信息 PROJECT = "gpiodemo" VERSION = "1.0.0" -- sys库是标配 _G.sys = require("sys") local NETLED = gpio.setup(19, 0, gpio.PULLUP) -- 输出模式 local G18 = gpio.setup(18, 0, gpio.PULLUP) -- 输出模式 local G7 = gpio.setup(7, function() -- 中断模式, 下降沿,需要将GPIO18和GPIO7连在一起 log.info("gpio7", "BOOT button ...
require("xavante") require("xavante.httpd") require("wsapi.xavante") require("wsapi.request") require("xmlrpc") --- XML-RPC WSAPI handler -- @param wsapi_env WSAPI environment function wsapi_handler(wsapi_env) local headers = { ["Content-type"] = "text/xml" } local req = wsapi.request.new(wsapi_env) local met...
return function() local ReplicatedStorage = game:GetService("ReplicatedStorage") local Packages = ReplicatedStorage.Packages local Llama = require(Packages.Llama) local None = Llama.None it("should be a userdata", function() expect(None).to.be.a("userdata") end) it("should have a nice string name...
--[[ Author: Brian Lee Yung Rowe An example of approximating a function with a neural network --]] require 'torch' require 'nn' dofile "train.lua" --[[ The function we want to approximate --]] function z(x,y) return 2*x^2 - 3*y^2 + 1 end --[[ The only requirement for the dataset is that it needs to be a Lua table w...
PLUGIN.name = "Jobs" PLUGIN.author = "Lechu2375" Jobs = Jobs or {} Jobs.Tasks = {} Jobs.ActiveTasks = Jobs.ActiveTasks or {} if(SERVER) then function RegisterJob(JobTable) Jobs.Tasks[JobTable.UniqueID] = JobTable end end ix.util.Include("jobs/sv_trash.lua") ix.util.Include("jobs/sv_mechanic...
local wibox = require('wibox') local gears = require('gears') local beautiful = require('beautiful') local mat_list_item = require('widget.material.list-item') local mat_list_sep = require('widget.material.list-item-separator') local dpi = require('beautiful').xresources.apply_dpi local volSlider = require('widget.vol...
include("terms") style = {["off_color"] = "fff", ["on_color"] = "fff", ["line_color"] = "000", ["line_width"] = "1"}; diff_style = {["off_color"] = "fff", ["on_color"] = "ff0", ["line_color"] = "000", ["line_width"] = "2"}; check_style = {["off_color"] = ...
CLASS.name = "Elite Metropolice" CLASS.faction = FACTION_OTA CLASS.isDefault = false CLASS_EMP = CLASS.index
local M = {} function M.config() local cmp_status_ok, cmp = pcall(require, "cmp") if not cmp_status_ok then return end local snip_status_ok, luasnip = pcall(require, "luasnip") if not snip_status_ok then return end local check_backspace = function() local col = vim.fn.col "." - 1 return...
local description = [=[ Usage: lua bin2c.lua -c -o [optput file] -n [name of array] -x [? or value] [input filename] switches: c - compile script, applicable only to lua files o - select output file, defaults to [input filename] + '.h' n - name of created array, defaults to [input filename] without path ...
--Fearful Earthbound (Fix) function c700009.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(TIMING_ATTACK,TIMING_END_PHASE+TIMING_MAIN_END) c:RegisterEffect(e1) --atk --local e01=Effect.CreateEffect(c) --e01:S...
-- видеоскрипт для сайтов http://www.hdkinoteatr.com https://kinogo.cc/ (18/03/21) -- необходимы скрипты: collaps (autor - nexterr) -- открывает подобные ссылки: -- http://www.hdkinoteatr.com/drama/28856-vse_ispravit.html -- https://kinogo.cc/75043-poslednee-voskresenie-last-station-kinogo-2009.html if m_simple...
local cgm = gg.class.cgm ---功能: 安全停服 ---@usage ---用法: stop function cgm:stop(args) local reason = args[1] or "gm" game.stop(reason) end function cgm:saveall(args) game.saveall() end ---功能: 将某玩家踢下线 ---@usage ---用法: kick 玩家ID [玩家ID] function cgm:kick(args) local isok,args = gg.checkargs(args,"int","*")...
local Circle = Component.create("Circle") function Circle:initialize(radius) self.radius = radius end
ulx.common_kick_reasons = {} function ulx.populateKickReasons( reasons ) table.Empty( ulx.common_kick_reasons ) table.Merge( ulx.common_kick_reasons, reasons ) end ulx.maps = {} function ulx.populateClMaps( maps ) table.Empty( ulx.maps ) table.Merge( ulx.maps, maps ) end ulx.gamemodes = {} function u...
return { { id = 'dummy1', foo = 123, bar = 456, }, { id = 'dummy2', foo = 789, bar = 111, } }
--- -- @author wesen -- @copyright 2020 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- -- Attempt to parse AssaultCube cgz header data -- luarocks: -- -- lua-struct -- lzlib -- bitop-lua local struct = require "struct" local zlib = require "zlib" local bit = require "bit" --[[ struct header ...
require 'nn' require 'audio' require 'Mapper' require 'UtilsMultiGPU' local cmd = torch.CmdLine() cmd:option('-modelPath', 'deepspeech.t7', 'Path of model to load') cmd:option('-audioPath', '', 'Path to the input audio to predict on') cmd:option('-dictionaryPath', './dictionary', 'File containing the dictionary to use'...
local diff = { ["axisDiffs"] = { ["a2004cdnil"] = { ["added"] = { [1] = { ["key"] = "JOY_Z", }, }, ["name"] = "Thrust", ["removed"] = { [1] = { ["key"] = "JOY_SLIDER1", }, }, }, }, } return diff
att.PrintName = "Range Suppressor" att.Icon = Material("snowysnowtime/2k/ico/h3/smg_sil.png") att.Description = "Suppressor attachment often used by special forces." att.Desc_Pros = { } att.Desc_Cons = { } att.SortOrder = 997 att.Slot = "barrel_smgho" att.Silencer = true att.Override_MuzzleEffect = "astw2_halo_3_muzzle...
local template = require 'charon.template' local test = {} test.should_return_function = function() template.mtime = {} local result = template.execute("util/template/example-equal-char.tpl", {}, {}, true) assert( result == 'Hello World !!!', result ) end test.should_reload_with_flag = function() template.cac...
local _M = { [1] = "Pack", [2] = "Error", [3] = "Operation", [4] = "CreateRole", [5] = "EnterChapter", [31] = "OpenBox", [32] = "GainBox", [11] = "Delete", [101] = "Role", [1071] = "Prop", [107] = "Props", [1021] = "Chapter", [102] = "Chapters", [51] = "FinishMiss...
-- -- EFCReport by Cubenicke aka Yrrol@vanillagaming -- Thx for the good looking graphics lanevegame! -- EFCReport = CreateFrame('Frame', "EFCReport", UIParent) EFCReport.enabled = false EFCReport.created = false EFCReport:RegisterEvent("ADDON_LOADED") EFCReport:RegisterEvent("PLAYER_ENTERING_WORLD") EFCReport:Register...
-------------------------------------- -- Spell: Sandstorm -- Changes the weather around target party member to "dusty." -------------------------------------- require("scripts/globals/magic") require("scripts/globals/status") -------------------------------------- function onMagicCastingCheck(caster, target, spel...
-- Copyright (c) 2020 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("game.ui.layouts.message_layout", function() require "game.ui" it("is takes a title and internal content for rendering", function() local layout = moonpie.ui.com...
PLUGIN.name = "탄약 저장 (Save Ammo)" PLUGIN.author = "Chessnut / 번역자 : Tensa" PLUGIN.desc = "플레이어의 탄약을 저장합니다." PLUGIN.base = true; local AMMO_TYPES = { "ar2", "alyxgun", "pistol", "smg1", "357", "xbowbolt", "buckshot", "rpg_round", "smg1_grenade", "sniperround", "sniperpenetratedround", "grenade", "thumper",...
--[[ © 2016-2017 TeslaCloud Studios See license in LICENSE.txt. --]] AddCSLuaFile() AddCSLuaFile("sh_utility.lua") include("sh_utility.lua") util.Include("cl_client_utils.lua") util.Include("sh_hex.lua") util.Include("sh_string.lua") util.Include("sh_table.lua") util.Include("sh_color.lua") util.Include("sh_easing...
------------------------------------------------------------------------------------ -- CSG -- v1.0 -- ppEvent_c.luac (client-side) -- Armored Truck Event -- Priyen Patel ------------------------------------------------------------------------------------ local blips = {} local truck = "" local sentWanted = false ...
-- Internal glossary for enumeration, lookups, constants and so on. local Glossary = {} -- Dictionary. Glossary.Resources = require("data/glossary/resources") Glossary.Weapons = require("data/glossary/weapons") Glossary.Clothing = require("data/glossary/clothing") Glossary.Cyberware = require("data/glossary/cyberware"...
OverworldMixedMode = SurrogateItem:extend() function OverworldMixedMode:init(isAlt) self.baseCode = "ow_mixed" self.label = "Overworld Tile Swap" self:initSuffix(isAlt) self:initCode() self:setCount(4) self:setState(0) end function OverworldMixedMode:onLeftClick() self.clicked = true ...
--- === bit.mouse.highlight === --- --- (only works with https://github.com/lodestone/hyper-hacks) mouse = {} local canvas = require "hs.canvas" local timer = require "hs.timer" require "hs.mouse" local function createCrosshair(middlePosition, size) local frame = { x = middlePosition.x + 3 - size/2, y = midd...
ACF.RegisterFuelTankClass("FTS_6", { Name = "Size 6 Container", Description = "Size 6 fuel containers, required for engines to work.", }) do ACF.RegisterFuelTank("Tank_6x6x1","FTS_6", { Name = "6x6x1 Container", Description = "Got gas?", Model = "models/fueltank/fueltank_6x6x1.mdl", SurfaceArea = 9405.2,...
hp = 3500 attack = 850 defense = 550 speed = 100 mdefense = 600 luck = 85 strength = ELEMENT_NONE weakness = ELEMENT_NONE function initId(id) myId = id end function start() end function get_action(step) return COMBAT_ATTACKING, 1, getRandomPlayer() end function die() end
local Hook = {} Hook.debug = false local hooks = {} local function _print( ... ) if not Hook.debug then return end print( ... ) end -- > Hook: methods function Hook.Add( event, id, func ) if not event or not type(event) == "string" then error( "#1 argument must be valid and be a string", 2 ) end...
local zmq = require "lzmq" local zthreads = require "lzmq.threads" local zauth = {} do zauth.__index = zauth function zauth:new(ctx) local o = setmetatable({ private_ = { ctx = assert(ctx); } }, self) return o end function zauth:destroy() if self.private_ then self:stop() self.pri...
local L = BigWigs:NewBossLocale("Maw of Souls Trash", "itIT") if not L then return end if L then L.soulguard = "Guardia dell'Anima Fradicia" L.champion = "Campione Helarjar" L.mariner = "Marinaio dei Guardiani della Notte" L.swiftblade = "Lamalesta Maledetto" L.mistmender = "Curatrice delle Nebbie Maledetta" L.mi...
ZO_CreateStringId("SI_BUI_INV_ITEM_ALL","Inventory") ZO_CreateStringId("SI_BUI_INV_ITEM_MATERIALS","Materials") ZO_CreateStringId("SI_BUI_INV_ITEM_QUICKSLOT","|cFF6600Quickslot|r") ZO_CreateStringId("SI_BUI_INV_ITEM_WEAPONS","Weapons") ZO_CreateStringId("SI_BUI_INV_ITEM_APPAREL","Apparel") ZO_CreateStringId("SI_BUI_INV...
local g = vim.g -- a table to access global variables -- see https://github.com/numToStr/Comment.nvim/issues/14#issuecomment-939230851 -- visual comment with custom keyboard shortcut local Ut = require('Comment.utils') local Op = require('Comment.opfunc') function _G.__toggle_visual(vmode) local lcs, rcs = Ut.unwra...
--[[ -- This script converts the outputted aseprite json animation files -- to Lua tables that the game engine can load. -- -- It uses hardcoded paths, so that should be refactored at some point --]] local json = require "assets/scripts/json" local serpent = require "assets/scripts/serpent" require "lfs" function re...
--- Lake script to install script wrappers in bin local exec, join = utils.execute, path.join if arg[1] or LUA53 then lua = 'lua53' soar = 'soar53' print 'installing Lua 5.3' else lua = 'lua52' soar = 'soar52' end -- some platform-dependent swearing... if WINDOWS then bat_ext, all_args, sheban...
-- ------------------------------------------------------------------------ -- This project is developed by Marco Mastropaolo (Xanathar) -- as a personal project and is in no way affiliated with Almost Human. -- You can use this scripts in any Legend of Grimrock dungeon you want; -- credits are appreciated though not...
--[[ Copyright 2018 American Megatrends 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
local Plugin = script.Parent.Parent local Roact = require(Plugin.Vendor.Roact) local StudioComponents = require(Plugin.Vendor.StudioComponents) local withTheme = StudioComponents.withTheme local TabButton = Roact.Component:extend("TabButton") function TabButton:init() self:setState({ Hover = false }) self.onInput...
require 'sys' require 'gfx.go' sys.sleep(1) N = 1000 n = torch.Tensor(N,2):normal(0,1) u = torch.Tensor(N,2):uniform(-1,1) gfx.chart({ {values=n, key='Normal'}, {values=u, key='Uniform'}, }, { width = 1024, height = 768, chart = 'scatter', })
os.loadAPI("ws/Client.lua"); local Client = _G["Client.lua"] if select("#", ...) == 0 then print("Usage UpdateSafeZone [start|end]") return end local cmd = select(1, ...) local x, y, z = gps.locate() if cmd == "start" then sendMessage("setSafeStart " .. x .. ", " .. z) elseif cmd == "end" then sendMessage("setSa...
require 'dpnn' require 'nn' require 'optim' if cuda then require 'cunn' require 'cutorch' -- require 'inn' end if cuda_nn then require 'cudnn' end require 'accuracy' require 'batcher' require 'batcherT' ConvNet = {} function ConvNet:__init() obj = {} setmetatable(obj, self) self.__index...
solution = "" ind = math.random(9) for i = 0, 9 do if i < ind then solution = solution.."solution["..tostring(i).."]=1;" else solution = solution.."solution["..tostring(i).."]=0;" end end out = "sum(result) == " .. ind if (ITEM == 1) then style = blue_style image = "circle" ...
local turkishmode = {} local core = require('turkishmode.core') local api = vim.api function turkishmode.deasciify_current_line() local cur_line = api.nvim_get_current_line() local deasciified = core.deasciify(cur_line) api.nvim_set_current_line(deasciified) end function turkishmode.asciify_current_line() ...
--default_lang.lua - default language -- This file is under copyright, and is bound to the agreement stated in the EULA. -- Any 3rd party content has been used as either public domain or with permission. -- © Copyright 2016-2017 Aritz Beobide-Cardinal All rights reserved. ARCSlots.Msgs = ARCSlots.Msgs or {} ARCSlots....
local function mult(x, y) return x * y end local function mult_fold(elems) local tot = 1 for _, v in pairs(elems) do tot = tot * v end return tot end food_effects.eye_height_monoid = player_monoids.make_monoid({ combine = mult, fold = mult_fold, identity = 1, apply = function(multiplier, player) play...
--Castlevania: Rondo of Blood fill = 0x64FFC8C8 line = 0xFFFFC8C8 function drawObjInfo() for i = 0,88 do objX = mainmemory.read_u8(0xBC8+i) objY = mainmemory.read_u8(0xCD0+i) objVisibleX = mainmemory.read_u8(0xB70+i)*255 objVisibleY = mainmemory.read_u8(0xC78+i)*255 objDamage = mainmemory....
---@type TestTableArraysTemplate local TestTableArraysTemplateFieldsIndex ={ Id = 1, Weapons = 2, born_position = 3, TestTypes = 4, LinkId = 5, Model = 6, Icon = 7, MachineTypes = 8, MapType = 9, } local Position3dFieldsIndex ={ x = 1, y = 2, z = 3, } local TestType_FieldsIndex ={ types = 1, ...
return {'zelateur','zelatrice','zelden','zeldzaam','zeldzaamheid','zeldzaamheidswaarde','zelf','zelfaanvaarding','zelfacceptatie','zelfachting','zelfanalyse','zelfbedacht','zelfbediening','zelfbedieningsapparatuur','zelfbedieningsgroothandel','zelfbedieningsprincipe','zelfbedieningsrestaurant','zelfbedieningswinkel','z...
local THNN = require 'nn.THNN' local VolumetricDilatedMaxPooling, parent = torch.class('nn.VolumetricDilatedMaxPooling', 'nn.VolumetricMaxPooling') function VolumetricDilatedMaxPooling:__init(kT, kW, kH, dT, dW, dH, padT, padW, padH, dilationT, dilationW, dilationH) parent.__init(self, kT, kW, kH, dT, dW, dH, padT,...
local exports = {} local os = require('os') local Date = require('../') exports['strptime is sane'] = function (test) -- local ts = os.time() local s = os.date('%c %Z', ts) test.equal(os.time(Date.strptime(s, '%c %Z')), ts) -- ts = os.time() s = os.date('%c %Z', ts) local expected = os.date('*t', ts) ...
local state = {} state._NAME = ... require'hcm' local vector = require'vector' local util = require'util' local movearm = require'movearm' local libArmPlan = require 'libArmPlan' local arm_planner = libArmPlan.new_planner() local T = require'Transform' --Initial hand angle local lhand_rpy0 = {0,0*DEG_TO_RAD, -3...
--Includes require('libs.json') require('modules.General.DataStructures') require('modules.General.TableFunctions') require('modules.General.Colors') require('modules.General.Constants') require('modules.Entities.Player') require('modules.World.Rooms.TestRoom') --LOVE Functions function love.load() --Se...
static t_socket getfd(lua_State *L) { t_socket fd = SOCKET_INVALID; lua_pushstring(L, "getfd"); lua_gettable(L, -2); if (!lua_isnil(L, -1)) { lua_pushvalue(L, -2); lua_call(L, 1, 1); if (lua_isnumber(L, -1)) { double numfd = lua_tonumber(L, -1); fd = (numfd >= 0.0)? (t_socket) numfd: SOCKET_INVALID; }...
local luatwitch = require('lua-twitch') local myBot io.stdout:setvbuf("no") function love.load(arg) myBot = luatwitch.new('your_username', 'oauth:your_oauth_key', '#channel_to_join') end local msg function love.update(dt) myBot:update(dt) local msg = myBot:message() if msg ~= nil then print('<CHAT>...
-- Copyright 2012 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header$ local key = require 'pgf.gd.doc'.key loc...
setenv("LMOD_B_DIR", "/d/e/f")
local config = require("notify.config") ---@class Notification ---@field level string ---@field message string[] ---@field timeout number | nil ---@field title string[] ---@field icon string ---@field time number ---@field width number ---@field keep fun(): boolean ---@field on_open fun(win: number) | nil ---@field on...
---------------------------------- -- Area: Grauberg [S] -- NPC: Indescript Markings -- Type: Quest ----------------------------------- local ID = require("scripts/zones/Grauberg_[S]/IDs") require("scripts/globals/keyitems") require("scripts/globals/npc_util") require("scripts/globals/status") ------------------------...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by hunzs. --- DateTime: 2020/5/8 22:18 --- -- 全局秒钟 cj.TimerStart(cj.CreateTimer(), 1.00, true, htime.clock) -- 预读 preread local preread_u = cj.CreateUnit(hplayer.player_passive, hslk_global.unit_token, 0, 0, 0) hattr.regAllAbility(preread_u) hunit.d...
function string:split(delimiter) local result = { } local from = 1 local delim_from, delim_to = string.find( self, delimiter, from ) while delim_from do table.insert( result, string.sub( self, from , delim_from-1 ) ) from = delim_to + 1 delim_from, delim_to = string.find( self, delimiter, from )...
--MoveCurve --H_Yuzuru/curve_RushBack curve_RushBack return { filePath = "H_Yuzuru/curve_RushBack", startTime = Fixed64(0) --[[0]], startRealTime = Fixed64(0) --[[0]], endTime = Fixed64(74763472) --[[71.3]], endRealTime = Fixed64(822399) --[[0.7843]], isZoom = false, isCompensate = false, curve = { [1] = { ...
--------------------------------------------- -- Tempest Wing -- Family: Bahamut -- Description: Turbulence deals Wind damage to enemies within a very wide area of effect. Additional effect: Knockback -- Type: Magical -- Utsusemi/Blink absorb: Wipes shadows -- Range: Cone -- Notes: ------------------------------...
--- GCC compiler implementation (C++ specialization) -- @classmod configure.lang.cxx.compiler.gcc local Compiler = table.update( table.update({}, require('configure.lang.cxx.compiler.base')), require('configure.lang.c.compiler.gcc') ) Compiler.binary_names = {'g++', } Compiler.lang = 'c++' return Compiler
local HttpService = game:GetService("HttpService") local Constants = require(script.Parent.Constants) -- todo: SCOPES local function makeInvalidTypeError(valueType) return string.format( "104: Cannot store %s in data store. Data stores can only accept valid UTF-8 characters.", valueType ) end local function m...