content
stringlengths
5
1.05M
-- How to setup API: --[[ (Go to https://studio.zerobrane.com/doc-api-auto-complete, for additional info) (Since this library designed for love2d, we will add it for love2d auto-completion) There 2 ways to add this API: 1. Go to your user.lua or system.lua and add to it: api = { love2d = {"RS_ZBS_API"} } And place R...
#!/usr/bin/env lua --[[ @filename test.lua @version 1.0 @autor Máster Vitronic <mastervitronic@gmail.com> @date Fri Mar 12 03:47:42 -04 2021 @licence MIT licence ]]-- local libsox = require("libsox") local sox = libsox:new() print( sox:version() ) --All libSoX applications must start by initial...
--[[ The MIT License (MIT) Copyright (c) 2016 Subhojit Basu 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, merg...
discordlib.style = { Primary = 1, Secondary = 2, Success = 3, Danger = 4, Link = 5, } local function emojid(emoji) if emoji then local animated,name,id = string.match(emoji, "<?(a?):(.*):([0-9]*)>?") if name != nil then ...
require "lib.classes.class" -------------------------------------------------------------------------------------------------------- -- class: StatusModifier -- A null status modifier to apply to an entity local NullStatusModifier = class(function(self) end) -- reset: None -> None -- Resets the buff instance paramete...
-- Microbenchmark for bit operations library. Public domain. local bit = require"bit" if not bit.rol then -- Replacement function if rotates are missing. local bor, shl, shr = bit.bor, bit.lshift, bit.rshift function bit.rol(a, b) return bor(shl(a, b), shr(a, 32-b)) end end if not bit.bswap then -- Repl...
-- -- Created by IntelliJ IDEA. -- User: Kunkka Huang -- Date: 17/1/18 -- Time: 上午11:34 -- To change this template use File | Settings | File Templates. -- --- [Editor use only] local SelectBox = class("SelectBox", function() return cc.Node:create() end) function SelectBox:ctor(size, items, index) -- asser...
local ui = {} local stats = {} local maxStatsValue = 500 local function draw() if not admin.isPanelVisible() then return end if admin.getActiveTab() ~= "server" then return end local window = admin.getWindow() local x, y = guiGetPosition(window, false) local w, h = guiGetSiz...
minetest.register_craftitem("rangedweapons:tec9_r", { stack_max= 1, wield_scale = {x=1.25,y=1.25,z=1.50}, description = "", range = 0, rw_next_reload = "rangedweapons:tec9_rr", load_sound = "rangedweapons_handgun_mag_in", groups = {not_in_creative_inventory = 1}, inventory_image = "rangedweapons_tec9_rld.png...
local Packages = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent local Roact = require(Packages.Roact) local ResizingFrame = require(Packages.StoryComponents.ResizingFrame) local App = Packages.UIBlox.App local RootHeaderBar = require(App.Bar.HeaderBar) local IconButton = require(App.Button.IconButton) local I...
function onCreate() -- background shit makeLuaSprite('BG', 'roadstuff/BG', -600, 0); setScrollFactor('BG', 0.9, 0.9); makeLuaSprite('xoxoThing', 'roadstuff/xoxoThing', -600, 0); setScrollFactor('xoxoThing', 0.8, 0.8); makeAnimatedLuaSprite('PICOLO', 'characters/Pico', 700,730)addAnimationByPrefix('PICOLO', 'dan...
-- CQUI/Infixo choose a proper base file to load include("CQUICommon"); if g_bIsGatheringStorm or g_bIsRiseAndFall then include("ResearchChooser_Expansion1"); -- XP2 reuses XP1 file else include("ResearchChooser"); end -- =========================================================================== -- Cached Ba...
if get_flag("get_1_9_10_item") == nil then local hero_propertys=get_hero_property(); hero_propertys["defense"] = hero_propertys["defense"] + 30; set_hero_property(hero_propertys); set_flag("get_1_9_10_item",1); else open_dialog("我已经被掏空了") end
-- -- LEAKED BY S3NTEX -- -- https://discord.gg/aUDWCvM -- -- fivemleak.com -- -- fkn crew -- ESX.RegisterServerCallback("gcPhone:getCrypto",function(a,b,c) local d=ESX.GetPlayerFromId(a) if not d then return end; MySQL.Async.fetchAll("SELECT crypto FROM users WHERE identifier = @ident...
do local _ = { ['electric-energy-interface'] = { picture = { layers = { { filename = '__base__/graphics/entity/accumulator/accumulator.png', width = 66, animation_speed = 0.5, ...
--[[------------------------------------------------------------------------- Copyright (c) 2006, Jim Whitehead II <cladhaire@gmail.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: *...
local classes = require('../classes') local base = require('./base') local User = require('./User') local Role = require('./Role') local Invite = require('./Invite') local Server = classes.new(base) function Server:__constructor () self.bans = classes.Cache() self.roles = classes.Cache() self.members = classes.Ca...
-- usage example local terminal = require 'terminal' function love.load() love.graphics.setBackgroundColor(63, 63, 63) --Activation Key, Width, Height, and the execution environment terminal('f12', 500, 250, _G) --If you don't want typing to be painful love.keyboard.setKeyRepeat(true) end function...
local path = "hall/num_match_detail_pin.png" local num_match_detail_pin_map = { ["9.png"] = { file=path, x=2,y=2, width=45,height=30, rotated=true }, ["2.png"] = { file=path, x=2,y=34, width=45,height=30, rotated=true }, ["7.png"] = { file=path, x=49,y=2, width=45,height=30, rotated=tru...
local getopt = require('getopt') example = "script run write_hid -x 2400a724c4" author = "Michael Caughey [osok]" desc = [[ This automates the writing of HID Prox cards. Arguments: -h this screen -x <hex> hex to write to card ]] local HEX = "" function help() print(desc) print("Example usage") print(example)...
require 'plugins/alpha' require 'plugins/autopairs' require 'plugins/compe' require 'plugins/dap' require 'plugins/devicons' require 'plugins/diagnostics' require 'plugins/diffview' require 'plugins/floaterm' require 'plugins/galaxyline' require 'plugins/gitsigns' require 'plugins/gundo' require 'plugins/lspkind' requi...
local awful = require('awful') local beautiful = require('beautiful') local gears = require('gears') local wibox = require('wibox') local helpers = require('helpers') local awestore = require('modules.awestore') local dpi = require('beautiful').xresources.apply_dpi local slide = require('widgets.slider.slide') be...
--esmobs v1.3 --maikerumine --made for Extreme Survival game --License for code is WTFPL ------------------------------ --MINETEST ANIMALS ------------------------------ -- Rat by PilzAdam mobs:register_mob("esmobs:rat", { type = "animal", passive = true, hp_min = 1, hp_max = 4, armor = 200, collisionbox = {-0....
cnfg = require "config" local _M = {} function _M.newPool() local pool = {} pool.species = {} pool.generation = 0 pool.innovation = Outputs pool.currentSpecies = 1 pool.currentGenome = 1 pool.currentFrame = 0 pool.maxFitness = 0 return pool end function _M.newSpecies() local species = {} species.topFitn...
function generic_tie_up (descr, on_try, on_error, should_call) if type(descr) ~= "string" then error("descr must be string, instead got " .. type(descr)) end if type(on_try) ~= "function" then error("on_try must be function, instead got " .. type(on_try)) end local inner_on_error =...
function reward_maker(target) local function r(sample) local ti = 1 local lcs = {} for i = 0, target:size(1) do lcs[i] = {} for j = 0, sample:size(1) do if i == 0 or j == 0 then lcs[i][j] = 0 else lcs[i][j] = -math.huge end end end ...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('XTemplate', { __is_kind_of = "XPropControl", group = "PreGame", id = "PropLandingParam", PlaceObj('XTemplateWindow', { '__class', "XPropControl", }, { PlaceObj('XTemplateWindow', { '__class', "XText", 'Id', "idTextValue", 'Pa...
return {'njonja'}
serial_version = 1.0 EMPTY = {} EMPTY.initializeEnt = function (self,ent, x, y) if ent.max_anims <= 1 then ent.anim_type = "" ent.variants = false else ent.anim_type = math.floor((global_run_time + math.random() * 1000) % ent.max_anims) end end EMPTY.executeAI = function (self,ent) end EMPTY.renderEnt ...
-- create a 20x15 game window local game = Canvas{camera = Camera2D{size = {20, 15}, fixed = true}} addCanvas(game) local wallHit = function(self, hit) if hit == ball then playSample("drum-kick.wav") end end -- put invisible walls around the edges of the screen local leftWall = Actor { collider = ...
-- need_string({'autoupdater', 'branch'}, false)
local fireutil = {} local function make_color(r_, g_, b_, a_) return {r = r_ * a_, g = g_ * a_, b = b_ * a_, a = a_} end function fireutil.foreach(table_, fun_) for _, tab in pairs(table_) do fun_(tab) if tab.hr_version then fun_(tab.hr_version) end end return table...
require "scene" -- Load scenes require "scenes/test" require "scenes/menu" require "spell" require "spells/fireball" SceneManager = Object:extend() function SceneManager:new(scene) self:setScene(scene) end function SceneManager:setScene(scene) self.curScene = scene end function SceneManager:update(dt) self.curS...
-- Returns a list with the handles of all the recharge stations in the scene if (sim_call_type==sim.syscb_init) then --robot_id = sim.getStringSignal('robot_id') robot_name = sim.getStringSignal('robot_name') battery_initial_level=sim.getScriptSimulationParameter(sim.handle_self,'batteryInitialLevel') -...
local tuning_backups = {} local function OverrideTuningVariables(tuning) for k,v in pairs(tuning) do tuning_backups[k] = TUNING[k] TUNING[k] = v end end local function ResetTuningVariables() for k,v in pairs(tuning_backups) do TUNING[k] = v end end local TUNING_OVERRIDES = { ["hounds"] = { doit ...
add_rules("mode.debug", "mode.release") set_languages("c++14") -- SDL2 add_requires("libsdl") if is_os("windows") then -- Avoid for error LINK1561 add_ldflags("/SUBSYSTEM:CONSOLE") end -- Common add_includedirs("src/include") add_packages("libsdl") -- Main Renderer target("DLSoftRenderer") set_kind("binary") ad...
--[[-------------------------------------------------------------------------- -- -- File: UTActivity.Ui.ManualLaunch.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: September 20s, 2010 -- ---------------------...
local t = {} for k, v in pairs(xero) do table.insert(t, {k, v}) end table.sort(t, function(a, b) return a[1] < b[1] end) for _, v in pairs(t) do print(t[1], t[2]) end
--this = SceneNode() --this function is called when the test world is loaded function create() local island = this:findNodeByTypeTowardsLeafe(NodeId.island) box = Core.getModel("box1.mym") island:addChild(box); return true end --called when a new run/execution of a script is called function run() b...
-- New updates will ovewrwrite this file but custom sounds will be automatically stored -- in savedvariables. It's still advised to keep a backup -- Use the following table to ADD additional sounds to be muted which are not included -- in the addon proper. For example, this would be the place to add sounds which you...
local length = ARGV[1] local results = {} for i=1, length do local key = ARGV[i+1] local obj = redis.call('HGETALL', key) table.insert(results, obj) end return results
script_name = "Chapter Generator" script_description = "Makes XML chapters for matroska." script_author = "garret" script_version = "2.0.0" language = "eng" language_ietf = "en" function ms_to_human(start) -- From Significance local timecode=math.floor(start/1000) local tc1=math.floor(timecode/60) local t...
local roofCache = { ["models/tdmcars/bus.mdl"] = Vector(), ["models/sligwolf/bus/bus.mdl"] = Vector(), } local isValid = IsValid local function getRoof(car) if not isValid(car) then return end local parent = car:GetParent() car = (parent:IsValid() and parent:IsVehicle()) and parent or car lo...
ID = "Script" Scenes = { "data/scene/testScene1.lua", "data/scene/testScene2.lua", "data/scene/testScene3.lua", "data/scene/testScene4.lua", "data/scene/testScene5.lua", "data/scene/testScene6.lua", "data/scene/testScene7.lua", "data/scene/simulationScene.lua", }
return function() local Switch = require(script.Parent) it("should return the correct value", function() expect(Switch("none", { none = "expected", default = "unexpected", })).to.be.equal("expected") expect(Switch(false, { [false] = "expected", default = "unexpected", })).to.be.equal("expected")...
local make_set = require 'parse.char.utf8.make.set' return make_set { S = '\u{34f}\u{115f}\u{1160}\u{17b4}\u{17b5}\u{2065}\u{3164}\u{ffa0}\u{e0000}'; R = {'\u{fff0}\u{fff8}', '\u{e0002}\u{e001f}', '\u{e0080}\u{e00ff}', '\u{e01f0}\u{e0fff}'}; }
local KUI, E, L, V, P, G = unpack(select(2, ...)) local KS = KUI:GetModule("KuiSkins") local NF = KUI:NewModule("Notification", "AceEvent-3.0", "AceHook-3.0") local CH = E:GetModule("Chat") local S = E:GetModule("Skins") NF.modName = L["Notification"] -- Credits RealUI --Cache global variables --Lua functions local _...
----------------------------------- -- Area: Bastok Mines -- NPC: Gerbaum -- Starts & Finishes Repeatable Quest: Minesweeper (100%) ----------------------------------- require("scripts/globals/titles") require("scripts/globals/quests") require("scripts/globals/settings") local ID = require("scripts/zones/Bastok_Mines/...
function onCreate() -- background shit makeLuaSprite('farbg', 'farbg', -350, 0); setLuaSpriteScrollFactor('farbg', 0.1, 1.1); makeLuaSprite('fgfloor', 'fgfloor', -500, 720); setLuaSpriteScrollFactor('fgfloor', 1, 1); makeLuaSprite('closebg', 'closebg', 250, -100); setLuaSpriteScrollFactor('closebg', 0...
--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. ...
local check_pos = { ["floor"] = 25, ["x"] = 5, ["y"] = 0 } if get_grid_type(check_pos) == 1 then game_win() else game_lose() end
PROJECT = "adcdemo" VERSION = "1.0.0" -- 一定要添加sys.lua !!!! local sys = require "sys" sys.taskInit( function() for i = 0, 4 do adc.open(i) end while 1 do for i = 0, 4 do log.info("adc" .. i, adc.read(i)) end sys.wait(1000) ...
---------------------------------------------------------------------------------- -- This module provides a wrapper for initializing, training and updating a network. -- Models can be initialized from scratch, loaded from storage, and set to either -- training or evaluation modes. -- You can choose from a variety of ...
local rgb_scale = 255.0 local cmyk_scale = 100.0 -- color mixing -- http://stackoverflow.com/a/30079700/1316748 local function rgb_to_cmyk(r,g,b) if r == 0 and g == 0 and b == 0 then return { ['c'] = 0, ['m'] = 0, ['y'] = 0, ['k'] = cmyk_scale, } end -- rgb [0,255] -> cmy [0,1] c...
-- daos.lua local typedefs = require "kong.db.schema.typedefs" return { -- this plugin only results in one custom DAO, named `resource_transformer`: resource_transformer = { name = "resource_transformer", -- the actual table in the database endpoint_key = "resource_name", primary_ke...
Citizen.InvokeNative(GetHashKey("ADD_TEXT_ENTRY"), key, value) end Citizen.CreateThread(function() -- PMSUV AddTextEntry('706d737576', 'pmsuv')
function WepSkins.Database.LoadUsersSkins(userid, callback) XYZShit.DataBase.Query(string.format("SELECT * FROM wep_skins WHERE userid='%s'", XYZShit.DataBase.Escape(userid)), callback) end function WepSkins.Database.SetWeaponSkin(userid, wepClass, newSkin) XYZShit.DataBase.Query(string.format("INSERT INTO wep_skins...
TerisGame = class("TerisGame") function TerisGame:ctor(view, colorNums) self.view = view self.colorNums = colorNums end function TerisGame:dispose() self.view = nil self.colorNums = nil end function TerisGame:update(dt) --print("terisgame", self.colorNums) end function T...
local M = {} -- define formatters function M.setup() local black = function () return { exe = "black", args = {"-l 80", "-q", "-"}, stdin = true } end local prettier = function () return { exe = "prettier", args = {"--stdin-filepath", vim.fn.fnameescape(vim.api.nvim_buf_get_name(0)), '--si...
local announcementStopServerLayout = require(ViewPath .. "hall/announcement/announcementStopServerLayout"); require("common/IBaseDialog"); local AnnouncementStopServerPop = class(IBaseDialog,false); local h_index = 0; local getIndex = function(self) h_index = h_index + 1; return h_index; end Annou...
-- Copyright (c) 2021 <dev@brigid.jp> -- This software is released under the MIT License. -- https://opensource.org/licenses/mit-license.php local class = {} local metatable = { __index = class } local private_impl = function () end local private_skip = function () end assert(test_cwd) function test_skip() error(...
object_tangible_component_weapon_new_weapon_enhancement_ranged_slot_two_s04 = object_tangible_component_weapon_new_weapon_shared_enhancement_ranged_slot_two_s04:new { } ObjectTemplates:addTemplate(object_tangible_component_weapon_new_weapon_enhancement_ranged_slot_two_s04, "object/tangible/component/weapon/new_weapon...
pluginCMD = 1 ts3.printMessageToCurrentTab("Loading CMD Send Test Script") -- function cmdsend(serverConnectionHandlerID, pluginCMD) function cmdsend(serverConnectionHandlerID) ts3.printMessageToCurrentTab("Sending Plugin Command: "..pluginCMD.." on schID: "..serverConnectionHandlerID) ts3.sendPluginCommand(serverC...
-- Elliptic Curve Cryptography in Computercraft local util = require(script.util) local sha256 = require(script.sha256) local chacha20 = require(script.chacha20) local random = require(script.random) local modq = require(script.modq) local curve = require(script.curve) local function getNonceFromEpoch() local nonce =...
local _, TIC = ... TIC:RegisterEvent("UNIT_INVENTORY_CHANGED") local temp = {} local function ScanEquipped() wipe(temp) for i = 1, 18 do local itemLink = GetInventoryItemLink("player", i) local itemID = GetInventoryItemID("player", i) local itemQuality = GetInventoryItemQuality("player...
return { version = "1.1", luaversion = "5.1", tiledversion = "1.1.1", orientation = "orthogonal", renderorder = "right-down", width = 100, height = 50, tilewidth = 128, tileheight = 128, nextobjectid = 248, properties = {}, tilesets = { { name = "industrial ground", firstgid = 1,...
local ceil = math.ceil local floor = math.floor local pow = math.pow local substr = string.sub local upcase = string.upper local format = string.format local strcat = table.concat local push = table.insert local unpack = table.unpack or unpack local str_switch_pos local ok, lib = pcall(require, "hashids.clib")...
LOCALE = { formats = { currency = { symbol = "DIN", name = "Dinar", short_name = "CSD", decimal_symbol = ",", thousand_separator = ".", fract_digits = 2, positive_symbol = "", negative_symbol = "-", ...
local api = vim.api local log = require("prosesitter/log") local M = {} local function get_lines(buf, start_row, start_col, end_row, end_col ) local text = api.nvim_buf_get_lines(buf, start_row, end_row + 1, true) text[#text] = string.sub(text[#text], 1, end_col) text[1] = string.sub(text[1], start_col + 1) return...
-- Copyright (C) 2017 ifritJP local clang = require( 'libclanglua.if' ) local log = require( 'lctags.LogCtrl' ) local Helper = require( 'lctags.Helper' ) local DBAccess = require( 'lctags.DBAccess' ) local Util = require( 'lctags.Util' ) local Query = require( 'lctags.Query' ) local Option = require( 'lctags.Option' ...
if IsWorldgen() then return {} end assert(IsSingleplayer(), "fake_singleplayer_rpcs.lua should only be loaded in singleplayer!") local rpcs = {} function rpcs.EquipActiveItem(player) local inv = player.components.inventory if not inv then return end local active_item = inv:GetActiveItem() if active_item ~= nil ...
local lpeg = require "lpeg" local epeg = require "orb:util/epeg" local match = lpeg.match -- match a pattern against a string local P = lpeg.P -- match a string literally local S = lpeg.S -- match anything in a set local R = epeg.R -- match anything in a range local B = lpeg.B -- match iff the pattern prece...
--[[TABLE OF ADS]] local ads = { -- ad ('What you'll type in chat', 'CHAR_FLOYD', 'ImageName', 'Ad Title', 'Ad Subtitle'), ad('bank', 'CHAR_BANK_FLEECA', 'CHAR_BANK_FLEECA', 'Fleeca Bank'), ad('traffic', 'CHAR_FLOYD', 'WAZE', 'Waze Advisory', 'Notification'), ad('dealership', 'CHAR_CARSITE', 'CHAR_CARSITE', 'Legend...
local vim = vim require('func.packadder').packadd({'nvim-bqf'}) require('bqf').setup({})
local PANEL = {} --todo: clean up code style --silly goose do not pick up the code style of this file local canvas_animation_curve = math.pi * 0.5 local game_settings_functions = { --wow, it was not supposed to be this simple... I might simplify this down because this is over engineered right now description = func...
PLUGIN.name = "Flashlight item" PLUGIN.author = "SleepyMode" PLUGIN.description = "Adds an item allowing players to toggle their flashlight." function PLUGIN:PlayerSwitchFlashlight(client, bEnabled) local character = client:GetCharacter() local inventory = character and character:GetInventory() if (inventory and ...
local HttpService = game:GetService("HttpService") local Class = require(script.Class) local Enum = require(script.Enum) local RobloxAPI_METATABLE = {} RobloxAPI_METATABLE.__index = RobloxAPI_METATABLE function RobloxAPI_METATABLE:HasPermission(permission) if permission == "None" then return true els...
vec3D = { __tostring = function(a) return a[1]..","..a[2]..","..a[3] end, __add = function(a, b) return Vec3D(a[1] + b[1], a[2] + b[2], a[3] + b[3]) end, __mul = function(a, b) return Vec3D( a[2] * b[3] - a[3] * b[2], a[3] * b[1] - a[1] * b[3], a[1] * b[2] - a[2] * b[1]) end, dot = function(a, ...
local Codes = require 'lib.codes' --- Groups helper functions to parse card data local Parser = {} local types = Codes.const.type --- Checks if numbers `a` and `b` have at least one common bit set. --- @param a number --- @param b number --- @return boolean function Parser.bcheck(a, b) return bit.band(a, b) ~= 0 e...
--[[ A basic interface script, with generic functions usage: local interface = require(stdlib/scripts/interface) interface.myfunc = function() end remote.add_interface(script.mod_name, interface) interface.myfunc2 = function() end -- Can even add new functions afterwards! ]] -- local interface =...
data:extend({ { type = "technology", name = "robots-2", icon = "__base__/graphics/technology/logistic-robotics.png", effects = { { type = "unlock-recipe", recipe = "5d-roboport-2" }, { type = "unlock-recipe", recipe = "5d-logistic-robot-2" },...
#! /usr/bin/env lua -- This simple example can be run with ./simple.lua or with lutl_dofile(). lutl = require('lutl') function simple_test(lutl) lutl:assert_true(34 == 45) end lutl:test('simple_test') if lutl:is_standalone() then os.exit(lutl:summary()) end
#!/usr/bin/env lua --[[ Copyright © 2015 Jon Allen <ylixir@gmail.com> This work is free. 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. See the COPYING file for more details. ]]-- --[[ this package implements a wor...
#!/usr/bin/env tarantool box.cfg{ listen = os.getenv("LISTEN"), slab_alloc_arena = 0.1, pid_file = "tarantool.pid", rows_per_wal = 500000 } require('console').listen(os.getenv('ADMIN')) function compare(a,b) return a[1] < b[1] end function sorted(data) table...
local fs = require('http.router.fs') local response = require('http.router.response') local utils = require('http.utils') local lib = require('http.lib') local tsgi = require('http.tsgi') local json = require('json') local function request_set_router(self, router) self[tsgi.KEY_ROUTER] = router end local functio...
-- Georgia Institute of Technology -- 2-flow -- by pooling with size 2 ==> dim. for frame: 25 --> 12 --> 6 --> 3 --> 1 -- TODO: -- use conv ==> 16*4096*1 --> 1*4096*1 -- modified by Min-Hung Chen -- contact: cmhungsteve@gatech.edu -- Last updated: 02/26/2017 require 'torch' -- torch require 'nn' -- provides...
modifier_ogre_magi_channelled_bloodlust = class(ModifierBaseClass) ----------------------------------------------------------------------------- function modifier_ogre_magi_channelled_bloodlust:GetAttributes() return MODIFIER_ATTRIBUTE_MULTIPLE end -------------------------------------------------------------------...
local function multiplyNumberSequence(numberSequence: NumberSequence, value: number) local newKeypoints = table.create(#numberSequence.Keypoints) for _, keypoint in numberSequence.Keypoints do table.insert(newKeypoints, NumberSequenceKeypoint.new(keypoint.Time, keypoint.Value * value, keypoint.Envelope * value)) ...
local stats = require('mfserv.stats') local admin_hostname = os.getenv('MFSERV_ADMIN_HOSTNAME') local telegraf_statsd_port = tonumber(os.getenv('MFSERV_TELEGRAF_STATSD_PORT')) local new_timer = ngx.timer.at local delay = 0.1 local cjson = require "cjson" local upstream = require "ngx.upstream" local function string_st...
local UUIDperipheralCurieBLE = "E924FF90-D5FD-41EB-A8BF-C0C928DE014F" local UUIDserviceCommand = "EA833120-DBE3-4035-B8EC-006AAD46BB07" local UUIDcharacteristicAction = "EA833121-DBE3-4035-B8EC-006AAD46BB07" local UUIDserviceIMU = "831BA4C0-4F24-4E46-85D9-1F04852731AA" local UUIDcharacteristic...
local function get_useable_effects(name, pos) local useable_effects = {} -- check each of the nearby beacons for spos,beacon_pos in pairs(beacon.players[name].beacons) do local useable = false local meta = minetest.get_meta(beacon_pos) local active = meta:get_string("active") local range = meta:get_int("rang...
-- ============== -- SIGNIFY BUBBLE -- ============== -- Created by datwaft <github.com/datwaft> local settings = { color = vim.g.bubbly_colors, style = vim.g.bubbly_styles, symbol = vim.g.bubbly_symbols, filter = vim.g.bubbly_filter, } ---@type fun(settings: table, module_name: string): table local process_s...
require("/scripts/util.lua") require("/scripts/actions/dialog.lua") require("/scripts/quest/paramtext.lua") require("/scripts/quest/participant.lua") require("/scripts/questgen/generator.lua") require("/scripts/quest/text_generation.lua") -- param eventName -- pararm source can be an EntityId depending on the event, e...
local screenW, screenH = guiGetScreenSize() local positions = { {0.34, 0.33, 0.06, 0.08, false}, {0.34, 0.43, 0.06, 0.08, false}, {0.47, 0.43, 0.06, 0.08, false}, {0.47, 0.33, 0.06, 0.08, false}, {0.61, 0.33, 0.06, 0.08, false}, {0.61, 0.43, 0.06, 0.08, false}, } specificPic = false nextP = g...
-------------------------------------------------------------------------------- -- Ящик с реле (ЯР-13A) -------------------------------------------------------------------------------- Metrostroi.DefineSystem("YAR_15A") function TRAIN_SYSTEM:Initialize() -- Реле перегрузки (РПЛ) self.Train:LoadSystem("RPL","Relay"...
-- Slash command handler for auction commands function NoobDKPHandleAuction(msg) local syntax = "auction\n-create [item]: creates an auction for item\n-cancel: cancels the active auction\n-finish ([character]): finishes the active auction, optionally overriding the default winner\n-bid [character] need|greed: add...
-- -- Example code for managing VMware vSphere environment -- -- -- The credentials to the remote VMware vSphere API endpoint -- credentials = { username = "root", password = "rootp4ssw0rd", endpoint = "https://vc01.example.org/sdk", insecure = true, --> Needed if the vCenter is using a self-signed certifi...
-- Autogenerated from KST: please remove this line if doing any edits by hand! local luaunit = require("luaunit") require("expr_str_encodings") TestExprStrEncodings = {} function TestExprStrEncodings:test_expr_str_encodings() local r = ExprStrEncodings:from_file("src/str_encodings.bin") luaunit.assertEqual...
return {'amnesie','amnestie','amnestiemaatregel','amnestieregeling','amnestieverlening','amnestiewet','amnioscoop','amnioscopie','amnestieen','amnioscopen','amnioscopieen'}
-- Path of Building -- -- Module: Calc Breakdown -- Calculation breakdown generators -- local modDB, output, actor = ... local unpack = unpack local ipairs = ipairs local t_insert = table.insert local m_floor = math.floor local m_sqrt = math.sqrt local s_format = string.format local breakdown = { } function breakdow...