content
stringlengths
5
1.05M
image = require 'image' mnist = require 'mnist' trainset = mnist.traindataset() for i = 1, trainset.size do image.save('images/'..i..'.png', trainset.data[i]) end
local http = require("http") function execute() local start = get_millis() local resp = http.get("http://localhost:8000") local elapsed = get_millis() - start if not resp.error then record_success("http", "get", elapsed, #resp.body) else record_failure("http", "get", elapsed, "empty...
local config = include "./config.lua" if (SERVER) then if (config.netstreamcompat) then util.AddNetworkString "BITBUF_NETSTREAM" end AddCSLuaFile() end local function bad(val, argn, name, err) if (not val) then error(("bad argument #%i to '%s' (%s)"):format(argn, name, err), 2...
SWEP.Base = "tfa_nmrimelee_base" SWEP.Category = "TFA NMRIH - CotZ" SWEP.Spawnable = true SWEP.AdminSpawnable = true SWEP.PrintName = "Crowbar" SWEP.ViewModel = "models/weapons/tfa_nmrih/v_me_crowbar.mdl" --Viewmodel path SWEP.ViewModelFOV = 50 SWEP.Slot = 2 SWEP.WorldModel = "models/weapons/tfa_nmrih/w_me_crow...
return { _name = 'DesignDrawing', id = 1110020003, learn_component_id = { 1020409017, }, }
local ic = require('ic') local functions = { line = function( x ) return 5*x - 21 end, parab = function( x ) return 3*x*x + 4*x - 1 end, modul = function( x ) return math.abs( 4 + x*x - x ) end, sin = math.sin, sqrt = math.sqrt, tan = math.tan, } local function case( name, f, err, n ) local xs, ys = {}, {} f...
----------------------------------------------------------------------- -- FILE: luaotfload-colors.lua -- DESCRIPTION: part of luaotfload / font colors ----------------------------------------------------------------------- assert(luaotfload_module, "This is a part of luaotfload and should not be loaded ind...
local PIXELS = 30*5 -- inspired by kitesurfer1404's WS2812FX local call_counter = 0 local function run(wsbuf, p) if call_counter == 0 then for pixel = 1, PIXELS do wsbuf:set(pixel, hue2rgb(math.random(0,255), p.brightness)) end else wsbuf:set(math.random(1, PIXELS), hue2rgb(math.random(0,255), p...
-- local Q = require 'Q' local vvgt = (require "Q/OPERATORS/F1F2OPF3/lua/_f1f2opf3").vvgt local ifxthenyelsez = (require "Q/OPERATORS/IFXTHENYELSEZ/lua/ifxthenyelsez").ifxthenyelsez local vvpromote = (require "Q/QTILS/lua/vvpromote").vvpromote local T = {} local function vvmax(x, y) assert(x and type(x) == "lVecto...
function todo.create_export_dialog(player) local old_dialog = todo.get_export_dialog(player) if (old_dialog ~= nil) then old_dialog.destroy() end local dialog = todo.create_frame(player, "todo_export_dialog", { todo.translate(player, "export") }) local scroll = dialog.add({ typ...
return { name = 'abed', offset = 5, ow = 7, costumes = { {name='Abed Nadir', sheet='base', category='base' }, {name='Alien', sheet='alien', category='s2e6' }, {name='Batman', sheet='batman', category='s1e7' }, {name='Bumblebee', sheet='bee', category='s2e13' }, --...
object_draft_schematic_genetic_engineering_beast_steroid_sub = object_draft_schematic_genetic_engineering_shared_beast_steroid_sub:new { } ObjectTemplates:addTemplate(object_draft_schematic_genetic_engineering_beast_steroid_sub, "object/draft_schematic/genetic_engineering/beast_steroid_sub.iff")
local buf_is_loaded = vim.api.nvim_buf_is_loaded local call = vim.api.nvim_call_function local cmd = vim.api.nvim_command --- Resume tree window. -- If the window corresponding to bufnrs is available, goto it; -- otherwise, create a new window. -- @param bufnrs table: trees bufnrs ordered by recently used. -- @return ...
-- -- c_main.lua -- Settings = {} Settings.var = {} local scx,scy = guiGetScreenSize () function setcpRLffectVehicle() local v = Settings.var v.renderDistance = 60 -- max render distance of the shader effect v.scXY = {800,600} -- reflection screensource resolution v.normalXY = 0.2 -- deformation st...
meta.name = "Awesome Mod" meta.version = "1.0" meta.author = "You" meta.description = [[ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut at nulla porttitor, lobortis magna at, tempus dolor. Cras non ligula tellus. Duis tincidunt sodales velit et ornare. Mauris eu sapien finibus dolor dictum malesuada in...
-- do something before handling every request local params_middleware = function(req, res, next) req.query = req.query req.params = req.params req.body = req.body next() end return params_middleware
local map = vim.api.nvim_set_keymap local pickers = require('telescope.pickers') local sorters = require('telescope.sorters') local finders = require('telescope.finders') local actions = require('telescope.actions') local action_state = require('telescope.actions.state') local custom_actions = require'telescope._exte...
-- inculdes return { width = 32, height = 48, greeting = 'Mummmm?', animations = { default = { 'loop',{'1,1','11,1'},.5, }, walking = { 'loop',{'1,1','2,1','3,1'},.2, }, }, noinventory = "Mum Mont Muve Mummfmen Mo Murm Muu.", nocommands = "Mum Mont Muurk Murunds Urm Muu.", ...
object_tangible_component_genetic_engineering_processor_use_mold = object_tangible_component_genetic_engineering_shared_processor_use_mold:new { } ObjectTemplates:addTemplate(object_tangible_component_genetic_engineering_processor_use_mold, "object/tangible/component/genetic_engineering/processor_use_mold.iff")
require 'torch' require 'nn' if opt.type == 'cuda' then require 'cunn' end ---------------------------------------------------------------------- print(sys.COLORS.red .. '==> construct CNN') -- This gets around 89.66% on test starting around epoc 140 -- 98.75% on training -- -- th run.lua -r 0.2...
--[[ Copyright (C) 2018 Jianhui Zhao <jianhuizhao329@gmail.com> 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.1 of the License, or (at your option) any later vers...
local a = require 'argcheck' local t = require 'testhelper' local function argcheck(...) return t.filterr(a, ...) end t( argcheck({}), nil ) t( argcheck({}, 1), 'Invalid number of arguments. Must be 0 not 1.' ) t( argcheck({'number'}, 1), nil ) t( argcheck({'number'}, 'a'), 'Invalid argument #1 type. Must be number ...
require("neoscroll").setup { hide_cursor = false, easing_function = "circular", }
local InputEvent = require("input.InputEvent") local Entity = require("entity.Entity") --------------------------------------------------------------------------------- -- -- @type EditorScene -- --------------------------------------------------------------------------------- local EditorScene = Class("EditorScene"...
local ZOOM_SPEED = 0.1 local gs = {} gs.mrgT = 20 gs.mrg = 10 gs.btn = {} gs.btn.w = 80 gs.btn.h = 20 gs.maxw = GUI_SCREEN_WIDTH - 80 - gs.mrg*2 gs.maxh = GUI_SCREEN_HEIGHT - 80 - (gs.mrg*3 + gs.mrgT + gs.btn.h) local ImageViewer = {} ImageViewer.gui = {} ImageViewer.big = false ImageViewer.moving = false function...
testInfo = { CodeName="DFT", ShortName="DFT", LongName="Discrete Fourier Transform", Description="Transforms sampling patterns into frequency space", Functions= { "DFT", }, MakesIndividualImages = true, MakesSampleTypeImages = false, SamplePageShowsFunctionName = false, }
--[[ Name: job_config.lua ]]-- --[[ EMS Config ]]-- GM.Config.EMSHospitalZone = { Min = Vector( -1042.38, -6577.74, -142770.21 ), Max = Vector( 1062.06, -5122.48, -12741.71 ), } if SERVER then GM.Config.EMSParkingZone = { Min = Vector( -6016.03, -3448.42, -14028.44 ), Max = Vector( -5391.57, -2927.91, -13476...
need_number(in_site({'config_mode', 'geo_location', 'osm', 'center', 'lon'})) need_number(in_site({'config_mode', 'geo_location', 'osm', 'center', 'lat'})) need_number(in_site({'config_mode', 'geo_location', 'osm', 'zoom'}), false) need_string(in_site({'config_mode', 'geo_location', 'osm', 'openlayers_url'}), false) i...
AddCSLuaFile() Replicate = Replicate or {} Replicate.Assert = Replicate.Assert or {} function Replicate.Assert.NotNilOrEmptyString(name, argName) if not name or not isstring(name) or #name == 0 then error("Expected a valid, not empty value for argument name '" .. argName or "nil" .. "'") end end func...
-- Overworld blocks -- Used for the crafting table local table_formspec = function() return "size[8,7.5;]" .. "list[current_player;main;0,3.5;8,4;]" .. "list[current_player;craft;2,0;3,3;]" .. "image[5,1;1,1;arrow_fg.png^[transformR270]".. "list[current_player;craftpreview;6,1;1,1;]" end local S = minetest.get_t...
local actions = require('telescope.actions') local action_state = require('telescope.actions.state') local action_set = require('telescope.actions.set') local finders = require('telescope.finders') local make_entry = require('telescope.make_entry') local pickers = require('telescope.pickers') local previewers = require...
------------------ Load entity name-id mappings ------------------ -- Each entity has: -- a) a Wikipedia URL referred as 'name' here -- b) a Wikipedia ID referred as 'ent_wikiid' or 'wikiid' here -- c) an ID that will be used in the entity embeddings lookup table. Referred as 'ent_thid' or 'thid' here. tds = tds...
include("shared.lua") include("lib/round/cl_round.lua") include("lib/lobby/cl_lobby.lua")
local Settings = {} Settings.scanSandboxes = BPSB.pfx .. "scan-all-chunks" Settings.allowAllTech = BPSB.pfx .. "allow-all-technology" Settings.onlyAdminsForceReset = BPSB.pfx .. "only-admins-force-reset" Settings.craftToCursor = BPSB.pfx .. "craft-to-cursor" Settings.bonusInventorySlots = BPSB.pfx .. "bonus-inventory-...
function love.conf(t) require'constants' t.window.title = TITLE t.window.height = WIN_WIDTH t.window.width = WIN_HEIGHT t.window.vsync = V_SYNC end
-- Create a sprite for each whitelist decorative local DECORATIVE_WHITELIST = require("config.decorative_whitelist") for name, decorative in pairs(data.raw["optimized-decorative"]) do if DECORATIVE_WHITELIST[name] then local picture = decorative.pictures[1] local size = picture.size or math.min(picture.width,...
-- require.lua -- -- Called by redeye when a target key requires source keys -- as dependencies. There are four possible outcomes for each: -- -- * the source already exists: -- Mark the dependency and return the key value -- * the source is locked: -- Just mark the dependency -- * the source...
local List = require('table_list') local Tap = require('tap') local tap = Tap.new { name = 'table_list.lua' } tap:addTest( 'List.__tostring', function (test) local l = List.new {1, 2, 3} test:equal(tostring(l), 'List(1, 2, 3)') end) tap:addTest( 'List.prepend', function (test) local l = List.new...
local maxpairs = Pdcurses.Static.color_pairs() local assigned_pairs = {} local free_pairs = {} for i = 1,maxpairs do table.insert(free_pairs,i) end local wv = require 'nylon.debug'{ name = 'pls-theme' } local function get_color( fg, bg ) local key = fg * 0x10000 + bg if assigned_pairs[key] then retu...
module("shadows.PhysicsShapes.CircleShape", package.seeall) Shadows = require("shadows") CircleShape = debug.getregistry()["CircleShape"] local insert = table.insert local halfPi = math.pi * 0.5 local atan = math.atan local atan2 = math.atan2 local sqrt = math.sqrt local sin = math.sin local cos = math.cos function...
return require "lovesnow.profile"
return { id = "WorldG020", events = { { alpha = 0, code = { "playStory2" }, stories = { "WNG19" } }, { alpha = 0.3, code = { "clickBtn" }, style = { text = "点击打开仓库", mode = 2, posY = -229.8, dir = 1, posX = 491.03 }, ui = { path = "OverlayCame...
local config = require('definitions.gui_config') local log = require('utils.log') local Color = require('public.color') local Font = require('public.font') local gui_utils = {} local hiDPIMode function queryHiDPIMode() -- need to set to 1 in order for reaper to set the variable gfx.ext_retina = 1 gfx.init("win...
GrainTable = { }; GrainTable.Count = 0; function AllocGrain() local c = GrainTable.Count; GrainTable.Count = c + 1 return c; end function GrainInsert(Count, State, Radius) local i = GrainTable.Count + 1; local iend = i + Count; GrainTable.Count = iend; while i < iend do local X = xmath.RandRange(0, WorldSi...
local K, C = unpack(select(2, ...)) local Module = K:GetModule("Bags") local _G = _G local string_format = _G.string.format local table_wipe = _G.table.wipe local C_Timer_After = _G.C_Timer.After local GetContainerItemInfo = _G.GetContainerItemInfo local GetContainerItemLink = _G.GetContainerItemLink local GetContain...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:29' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
local websocket = {} local json = require'json' server = require'websocket'.server.uloop tinycore = require("tinycore") function websocket.init() server.listen { port = 8080, protocols = { echo = function(ws) local message = ws:receive() if message then local ok, jsonMsg = pcall(json.decode, messag...
-- If you have used Estrela for graphics shader authoring or luxinia, -- create/modify the `user.lua` file in the current folder -- and add `include "estrela"` (1.21+) to load all tools and specifications by default again. -- load all tools, specs, and interpreters local all = function() return true end load.tools(all...
-- luainspect.typecheck - Type definitions used to check LuaInspect itself. -- -- (c) 2010 David Manura, MIT License. local T = require "luainspect.types" local ast_mt = {__tostring = function(s) return 'AST' end} return function(context) -- AST type. local ast = T.table { tag = T.string, lin...
local cfg = {} -- exp notes: -- levels are defined by the amount of xp -- with a step of 5: 5|15|30|50|75 (by default) -- total exp for a specific level, exp = step*lvl*(lvl+1)/2 -- level for a specific exp amount, lvl = (sqrt(1+8*exp/step)-1)/2 -- define groups of aptitudes --- _title: title of the group --- map of...
-------------------------------------------------------------------------------- -- 0350-init.lua: tests for standalone lua-nucleo initialization -- This file is a part of lua-nucleo library -- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license) ------------------------------------------------------...
---@meta ---@class cc.CameraBackgroundDepthBrush :cc.CameraBackgroundBrush local CameraBackgroundDepthBrush={ } cc.CameraBackgroundDepthBrush=CameraBackgroundDepthBrush ---* Set depth<br> ---* param depth Depth used to clear depth buffer ---@param depth float ---@return self function CameraBackgroundDepthBrush:set...
local help = require"harmonize.util".help local function table_size(T) local count = 0 for _ in pairs(T) do count = count + 1 end return count end return help("Run the command in pkg.lua.\n\nUsage: run <command> <args...>")(function(arg) local pkg = require"pkg" if type(pkg.scripts) ~= 'table' then ...
local settings_key = KEYS[1] local running_key = KEYS[2] local executing_key = KEYS[3] local now = ARGV[1] return tonumber(refresh_running(executing_key, running_key, settings_key, now))
function input() if love.keyboard.isDown('escape') then love.event.quit() end if state=='game' then if love.keyboard.isDown('left') then movePlayer('left') elseif love.keyboard.isDown('right') then movePlayer('right') end elseif state=='store' then ...
local socket = require 'socket' local udp_out = assert(socket.udp()) assert (udp_out:setsockname('10.42.0.1', 0)) assert (udp_out:setoption('broadcast', true)) --assert (udp_out:setoption('dontroute', false)) assert (udp_out:setpeername('255.255.255.255', 8888)) local i=1 while true do local m='M '..i assert(u...
local Gamepad = { _NAME = "MonkeyLove Gamepad", _VERSION = 'v1.0', _LÖVE = '11.3', _DESCRIPTION = 'Gamepad for Android LÖVE games', _URL = 'https://github.com/MonkeyBrito/MonkeyLove', _LICENSE = [[ MIT LICENSE Copyright (c) 2020 Eduardo Brito Rosas Permission is here...
-- TODO warn when trying to create an user before the tombstone expires -- e.g. via telnet or other admin interface local datetime = require "util.datetime"; local errors = require "util.error"; local jid_split = require"util.jid".split; local st = require "util.stanza"; -- Using a map store as key-value store so that...
--[=[ o-----------------------------------------------------------------------------o | | Lua core feature regression tests | | Methodical Accelerator Design - Copyright CERN 2016+ | Support: http://cern.ch/mad - mad at cern.ch | Authors: L. Deniau, laurent.deniau at cern.ch | Contrib: - | o-----------------...
ChuRuaNpc = { click = async(function(player, npc) local t = { graphic = convertGraphic(npc.look, "monster"), color = npc.lookColor } player.npcGraphic = t.graphic player.npcColor = t.color player.dialogType = 0 player.lastClick = npc.ID local item = Item("sea_ring") local tring = {graphic = item...
return { { effect_list = { { type = "BattleSkillFire", casterAniEffect = "", target_choise = "TargetNil", targetAniEffect = "", arg_list = { weapon_id = 68021, delay = 1 } } } }, { effect_list = { { type = "BattleSkillFire", casterAniEffect = "", target_ch...
YSZ_GAME_PLAYER = 5 YSZ_GAME_NAME = "诈金花" YSZ_MAX_COUNT = 3 YSZ_GER_NO_PLAYER = 16 YSZ_GER_COMPARECARD = 32 YSZ_GER_OPENCARD = 48 YSZ_READY_TIME = 3 YSZ_HANDLE_TIME = 30 YSZ_GS_T_FREE = GAME_STATUS_FREE YSZ_GS_T_SCORE = GAME_STATUS_PLAY YSZ_GS_T_PLAYING = GAME_STATUS_PLAY + 1 YSZ_GAME_SCENE_FREE = GAME_STATUS_FREE YSZ_...
local stage = configManager.getNumber(configKeys.FREE_QUEST_STAGE) local questTable = { {storage = storage, storageValue = value} } local function playerFreeQuestStart(playerId, index) local player = Player(playerId) if not player then return end for i = 1, 5 do index = index + 1 if not questTable[index] ...
local hud_deathnotice_time = CreateConVar( "hud_deathnotice_time", "6", FCVAR_REPLICATED ) // These are our kill icons local Color_Icon = Color( 255, 80, 0, 255 ) local NPC_Color = Color( 250, 50, 50, 255 ) language.Add( "proj_shotgunrocket", "Rocket" ) language.Add( "proj_ball", "SMG Grenade" ) language.Add( "pr...
----------------------------------- -- Area: Southern San d'Oria -- NPC: Amaura -- Involved in Quest: The Medicine Woman, To Cure a Cough -- !pos -85 -6 89 230 ----------------------------------- require("scripts/globals/settings") require("scripts/globals/titles") require("scripts/globals/keyitems") require("scripts/...
--------------------------------------------------------------------------------------- -- -- player.lua -- -- Player implementation file -- --------------------------------------------------------------------------------------- local playerGroup = {} playerGroup.anchorX, playerGroup.anchorY = 0.5, 1 playerGroup.movin...
AddCSLuaFile() wmChat.config = {} local CONFIG = wmChat.config CONFIG.ChatTimeFadeout = 7 CONFIG.ConsoleMessageChat = { name = "[CHAT MESSAGE]", head = Color(0, 0, 178), body = Color(0, 128, 255), } CONFIG.ConsoleMessageServer = { name = "[SERVER MESSAGE]", head = Color(0, 178, 0), body = C...
local SnakeBean=Class("SnakeBean") local SnakeHead = require "src/bean/SnakeHead" local SnakeTail = require "src/bean/SnakeTail" local SnakeBody = require "src/bean/SnakeBody" function SnakeBean:init(x,y) self.hp = 5 self.bodys = {} self.dirction = 4 self.snakeHead = SnakeHead(x,y,0) self.speed = self.snakeHead...
local Class = require "Utils/Class" local Singleton = Class("Singleton") local function __init(self) assert(rawget(self.__class_type, "Instance") == nil, self.__class_type.__cname .. " to create singleton twice!") rawset(self.__class_type, "Instance", self) end local function __delete(self) rawset(self....
require( 'core.Song' ).new( ) --[[ -------------------------------------- ]] -- local ingame = { } ingame.curChart = 'stress-hard' ingame.curSong = 'stress' ingame.Stage = nil -- will hold the stage assets and logic later ingame.ready = false ingame.paused = false ingame.setForRestart = false -- used...
---------------------------------------------------------------------------------------------------- -- API Helper module ---------------------------------------------------------------------------------------------------- --[[ Required Shared libraries ]]----------------------------------------------------------------...
local wezterm = require 'wezterm'; return { enable_tab_bar=false, color_scheme="Dracula", -- color_scheme="Adventure", -- color_scheme="Jellybeans", -- color_scheme="BuiltinDark", -- -- Based off Jellybeans, but with pure black background -- colors = { -- foreground = "#dedede", -- b...
SB.Include(Path.Join(SB_VIEW_DIR, "editor.lua")) LightingEditor = Editor:extends{} LightingEditor:Register({ name = "lightingEditor", tab = "Env", caption = "Lighting", tooltip = "Edit lighting", image = SB_IMG_DIR .. "sunbeams.png", order = 0, }) function LightingEditor:init() self:super(...
cc = cc or {} ---EventListenerKeyboard object ---@class EventListenerKeyboard : EventListener local EventListenerKeyboard = {} cc.EventListenerKeyboard = EventListenerKeyboard -------------------------------- -- ---@return bool function EventListenerKeyboard:init() end -------------------------------- ---/ Overrides ...
------------------------------------------------------------------------------------------------------------ local import_svg = {} ------------------------------------------------------------------------------------------------------------ function import_svg:BuildSvg(label, svgdata) if(type(svgdata) ~= "table") t...
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. 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 agre...
-- GENERATED, DO NOT EDIT module("moonscript.util", package.seeall) local concat = table.concat moon = { is_object = function(value) return type(value) == "table" and value.__class end, type = function(value) local base_type = type(value) if base_type == "table" then local cls = value.__class ...
--[[ Copyright (c) 2009 Muhammad Lukman Nasaruddin (ai-chan) 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...
local Y = require("yalg.yalg") local Sounds = require("src.Sounds") local L = require("src.Local") local S = require("src.menu.options.styles") ------------------- -- Sounds on-off -- ------------------- local SoundsMenu = Y.HDiv( Y.Label(L["sounds"], S.NL), Y.HDiv( Y.Button(L["on"], S.OnBTN, "soundsO...
local AddonName, AddonTable = ... -- The Stonecore -- https://www.wowhead.com/the-stonecore AddonTable.stonecore = { -- Corborus 55792, -- cinnabar-shoulders 55793, -- dolomite-adorned-gloves 55794, -- phosphorescent-ring 55795, -- key-to-the-endless-chamber 55796, -- fist-of-pained-senses...
local DataStoreService = game:GetService("DataStoreService") local DataStoresActive, DataStore = pcall(function() local DataStore = DataStoreService:GetGlobalDataStore("_package/eryn.io/Cmdr") DataStore:GetAsync("test_key") return DataStore end) return function (context, key) local gameWide = false local saved =...
package.path = mg.document_root .. "/lua/?.lua;" .. package.path system = { version = '0.1' } mu = require"mgutils" template = require "resty.template" template.caching(false) --for debug template.document_root(mg.document_root) --template render to template.print = function(s) --mg.write("------------------...
-- luacheck: ignore 212 ---- local t = { foo = function() return 'ok' end } ---->> t :: { field : string >> number; } --local t = { field=function(s) return #s end } -- --print(t.field[1].bar:foo()) -->> N = { a:number; b:string; } -->> M :: open { } local M = {} -->> M.strlen :: string >> integer function M:strlen...
local bm = require './benchmark' local reporter = bm.bm(12) -- Conclusion: it's basically the same time using table.pack -- for each iteration vs reusing the same table with select. -- Given this, the code is cleaner and simpler with table.pack. local function fromto(from, to) return function(last, cur) from = ...
--- === plugins.finalcutpro.tangent.generator === --- --- Final Cut Pro Generator Inspector for Tangent local require = require --local log = require("hs.logger").new("tangentVideo") local fcp = require("cp.apple.finalcutpro") local i18n = require("cp.i18n") loca...
return { setup = function(on_attach) local lspconfig = require("lspconfig") lspconfig.bashls.setup({ on_attach = on_attach, flags = { debounce_text_changes = 150 } }) end, }
local config = require("prototypes.config") local color_recipes = {} local function recipe(name,color,energy_required,result_count) return { type = "recipe", name = name.."-"..color, enabled = false, ingredients = {{name,result_count}}, energy_required = energy_required, result = ...
-------------------------------------------------------------------------------- -- register_globally.lua -------------------------------------------------------------------------------- local string_format = string.format local actor = tengine.actor local timer = tengine.timer local ERROR_MSG = tengine.ERROR_MSG loc...
object_tangible_collection_flower_15 = object_tangible_collection_shared_flower_15:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_flower_15, "object/tangible/collection/flower_15.iff")
data:extend( { { type = "item", name = "transport-belt-5", icon = "__spicy-teeth-mbt_assets__/graphics/icons/transport-belt-5.png", icon_size = 32, subgroup = "extended-belt", order = "a[transport-belt-5]", place_result = "transport-belt-5", stack_size = 100 }, } )
--[[ File name: questManager.server.lua Description: all place server sided quest code for serene Author: oldmilk --]] local quest = require(game.ReplicatedStorage:WaitForChild("modules").quest) game.Players.PlayerAdded:Connect(function(player) quest.loadQuestData(player) end)
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
return { version = "1.5", luaversion = "5.1", tiledversion = "1.8.1", orientation = "orthogonal", renderorder = "right-down", width = 60, height = 34, tilewidth = 32, tileheight = 32, nextlayerid = 6, nextobjectid = 23, properties = {}, tilesets = { { name = "tiles", firstgid =...
nightsister_enraged_bull_rancor = Creature:new { objectName = "@mob/creature_names:nightsister_enraged_bull_rancor", socialGroup = "nightsister", faction = "nightsister", level = 89, chanceHit = 0.85, damageMin = 570, damageMax = 850, baseXp = 8500, baseHAM = 13000, baseHAMmax = 16000, armor = 1, resists = ...
package("nng") set_homepage("https://github.com/nanomsg/nng") set_description("NNG, like its predecessors nanomsg (and to some extent ZeroMQ), is a lightweight, broker-less library, offering a simple API to solve common recurring messaging problems.") add_urls("https://github.com/nanomsg/nng/archive/v$(ve...
----------------------------------------- -- ID: Unknown -- Scroll of Addle -- Teaches the magic Addle ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(286) end function onItemUse(target) target:addSpell(286) end
-------------------------------------------------------------------------------- -- TPP ターゲット -- ターゲットの有効化設定。 -------------------------------------------------------------------------------- TargetTpp = { ---------------------------------------- --リアライズ時コールバック OnRealize() ---------------------------------------- OnRea...
object_tangible_loot_creature_loot_generic_heroic_echo_wampa_junk_05 = object_tangible_loot_creature_loot_generic_shared_heroic_echo_wampa_junk_05:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_generic_heroic_echo_wampa_junk_05, "object/tangible/loot/creature/loot/generic/heroic_echo_wampa_jun...
local function printGridHex(grid) local w = io.write for i,row in ipairs(grid) do for i,cell in ipairs(row) do w(string.format('%x ', cell)) end print('') end end return printGridHex
local controller = {} local views = require'views.lua' local models = require'models.lua' local hooks = require'hooks.lua' local controller_version = '' --! --! @brief Adds an event to relevant models, views, and hooks. --! --! @param keyType The context to ignore in: global, network, channel --! @param ...