content
stringlengths
5
1.05M
local soundManager = {} function soundManager.play(source) source:seek(0) source:play() end return soundManager
local Tile = script.Parent.Parent local App = Tile.Parent local UIBlox = App.Parent local Packages = UIBlox.Parent local enumerate = require(Packages.enumerate) local strict = require(UIBlox.Utility.strict) return strict({ ItemIconType = enumerate("ItemIconType", { "AnimationBundle", "Bundle" }), StatusStyle ...
net.Receive("player_in_spawn", function(len) local ply = net.ReadEntity() local inSpawn = net.ReadBool() if(IsValid(ply) and ply:IsPlayer()) then if(inSpawn) then hook.Add( "HUDPaint", "SpawnProtEnabled", function() draw.DrawText("Spawn Protection Enabled", "TargetID", Sc...
local function getSum(num1, num2) return num1 + num2 end print(getSum(1,1))
local CT = ControllerTweaks local OptionsPanel = { options = {} } local panelData = { type = "panel", name = "Controller Tweaks", displayName = "Controller Tweaks Options", author = "Xeio", version = "1.0", slashCommand = "/controllertweaks", registerForRefresh = true, registerForD...
--[[ Author: Affli@RU-Howling Fjord, Modified: Elv All rights reserved. ]]-- ---------------------------------------------------------- -- Load RayUI Environment ---------------------------------------------------------- RayUI:LoadEnv("Skins") local S = _Skins local function SkinDBM() local croprwicons ...
local composer = require( "composer" ) local scene = composer.newScene() local widget = require( "widget" ) local myData = require( "mydata" ) local utility = require( "utility" ) local nextLevelText local params -- Function to handle button events local function handleButtonEvent( event ) if ( "ended" == even...
return { summary = 'Get the width of the TextureData.', description = 'Returns the width of the TextureData, in pixels.', arguments = {}, returns = { { name = 'width', type = 'number', description = 'The width of the TextureData, in pixels.' } }, related = { 'TextureData:getHei...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" module('PushConfig_pb') PUSHCONFIG = protobuf.Descriptor(); local PUSHCONFIG_TYPE_FIELD = protobuf.FieldDescriptor(); local PUSHCONFIG_FORBID_FIELD = protobuf.FieldDescriptor(); PUSHCONFIG_TYPE_FIELD.name = "type" PUSHCONFIG_TYPE...
--!strict -- Physics Utility -- Eti 12 November 2021 to -- -- Handles a few common operations needed for physics simulations. -- Also provides alias methods to create certain constraints using Roblox's newer standards and physics systems. local PhysicsUtil = {} local INFINITY = math.huge local PI = math.pi local TAU ...
local M = {} function M.config() vim.cmd([[ let g:vim_markdown_folding_disabled = 1 let g:vim_markdown_auto_insert_bullets = 0 let g:vim_markdown_new_list_item_indent = 0 ]]) end return M
local parent, ns = ... local fux = ns.fux local proto = ns.prototype local newRow, delRow local row_cache = {} function proto:DelRow() self:Hide() self:ClearAllPoints() self:SetHeight(0) self:SetWidth(0) self.text:SetText("") self.right:SetText("") --setmetatable(self, nil) self.children = nil self.chil...
local levent = require "levent.levent" local socket = require "levent.socket" local function test() local sock, err = socket.socket(socket.AF_INET, socket.SOCK_STREAM) assert(sock, err) print("connect:", sock:connect("127.0.0.1", 8858)) print("peer name:", sock:getpeername()) print("sock name:", so...
-- -- Created by IntelliJ IDEA. -- User: Guy -- Date: 21/06/2017 -- Time: 14:33 -- To change this template use File | Settings | File Templates. -- PDUI_Node = {}; PDUI_Node.__index = PDUI_Node; setmetatable(PDUI_Node, { __call = function(cls, ...) return cls.new(...); end }); function PDUI_Node.new(...
local unpack = table.unpack local Pattern = require('../pattern') local docs = Pattern:new{ name = 'docs', prefix = '!', args = 2, } local inspect = require('inspect') describe('Discord Luabot', function() describe('LPEG Patterns', function() it('can be the only text in a message', function() ...
-- Save the results. function writeResults(filename, results) local content = "" local header = {"Speranza", "Tropica", "Plumy", "Macy", "Betta", "Trod"} local file = io.open(filename, "r") if not file then -- The file hasn't yet been created, add headers. for i = 1, #header do content = content ....
local ns = require('namespace') function ns.spawnEntity(manager, entData) local entityObject = ns.Entity() entityObject:initialize() -- Loads all components if entData.Components ~= {} then for _, compDetails in pairs(entData.Components) do entityObject:add(ns.Component.all[compDetails["name"]](table.unpack(c...
--穹顶煌刃 零空 local m=14000352 local cm=_G["c"..m] cm.named_with_Skayarder=1 function cm.initial_effect(c) c:SetSPSummonOnce(m) --special summon proc local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(m,0)) e1:SetType(EFFECT_TYPE_FIELD) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetCode(EFFECT_...
-- ---------------------------------------------------------------------------- -- proposed key: none -- macro name: misc loot /script local v="autoLootDefault";if GetCVar(v)=="1" then SetCVar(v, "0");print("System: Auto Loot Off");else SetCVar(v, "1"); print("System: Auto Loot On");end -- ----------------------------...
GOURDS_WATCHES = { {addr=0x7e2264, len=37}, {addr=0x7e22b1, len=2}, {addr=0x7e22d7, len=3}, {addr=0x7e22e9, len=1}, {addr=0x7e2353, len=1} } GOURDS_DETAILED = { [0x7e2264]={ [0x80]="@Fire Eyes' Village/Armor Shop/Gourds #33-34", [0x40]="@Fire Eyes' Village/Armor Shop/Gourds #33-34" }, [0x7e2265]...
local M = {} local filter = require "make4ht-filter" -- this extension only works for the ODT format M.test = function(format) return format=="odt" end M.modify_build = function(make) local process = filter {"odttemplate"} make:match("4oy$", process) return make end return M
local menus = {"itemstore", "gamble", "wepstore", "buyitem", "sellitem", "buywep","buyattach", "sellwep","quests","skinstore","buyskin","locker"} function DrawText3D(x,y,z,drawdist,text) SetDrawOrigin(x, y, z, 0) SetTextFont(0) SetTextProportional(0) SetTextScale(0.0, 0.53) SetTextColour(19, 232, ...
require 'nn' opt = {} -- opt.mode = 'validate' opt.mode = 'full' opt.size = 'full' -- model = torch.load('model_val.net') model = torch.load('model.net') dofile 'src/1_fetch_data.lua' train_pred = model:forward(trainData.data) file = io.open('train_pred.csv', 'w+') for i=1,train_pred:size(1) do file:write(train_...
local Players = game:GetService("Players") local Workspace = game:GetService("Workspace") local Packages = script.Parent.Parent.Parent local Roact = require(Packages.Roact) local ClientContext = require(script.Parent.ClientContext) local TripInterface = require(script.Parent.TripInterface) local World = require(scri...
local indent = require'snippets.utils'.match_indentation local cmake = { init = indent [[ cmake_minimum_required(VERSION ${1:3.18}) project(${2:ProjectName}) find_package(${3:library}) include_directories(${3}_INCLUDE_DIRS}) add_subdirectory(${4:src}) add_executable($2) target_link_libraries($2 ${3}_LIBRARIES})...
local unit1 = system.loadunit 'unit1' local forms = system.loadunit 'forms' local keymap = { left = { forms.vk_left, 'Left' }, right = { forms.vk_right, 'Right' }, a = { forms.vk_right, 'Right' }, l1 = { 0x31, 'Game A' }, r1 = { 0x32, 'Game B' }, l2 = { 0x33, ...
object_mobile_dressed_twi_female_scientist_01 = object_mobile_shared_dressed_twi_female_scientist_01:new { } ObjectTemplates:addTemplate(object_mobile_dressed_twi_female_scientist_01, "object/mobile/dressed_twi_female_scientist_01.iff")
------------------------------------------------------------------------- -- Globals -- ------------------------------------------------------------------------- -- Longhand object for addon settings CraftOrdering = {} CraftOrdering.loadedAddons = { } -- Shorthand object ECO = {} ------------------------------------...
return function(Core) local path = 'etc/db' -- from root local time = 60 * 5 -- 5min Core.db = require 'etc.db' (path) local t = os.time() Core:on('tick', function() if os.time() - t >= time then t = os.time() print 'saving...' Core.db:save() end end) end
-- Menu Scene -- Displays game's name, the cannon and a couple buttons. local composer = require('composer') local widget = require('widget') local controller = require('libs.controller') local relayout = require('libs.relayout') local sounds = require('libs.sounds') local scene = composer.newScene() -- Settings sid...
-- {{{ Grab environment local tonumber = tonumber local type = type local helpers = require("modules.vicious.helpers") -- }}} -- fanspeed: provides speed level of fans -- vicious.widgets.fanspeed -- -- expects one or multiple full sysctl strings to entry -- e.g.: "dev.acpi_ibm.0.fan_speed" local fanspeed_freebsd =...
local bb = { } return bb
function clear() particles = {} frames = 0 fpstimer = 0 fps = 0 oldmousex = 0 oldmousey = 0 func_queue = {} end function hslToRgb(h, s, l, a) local r, g, b if s == 0 then r, g, b = l, l, l -- achromatic else function hue2rgb(p, q, t) if t < 0 then t = t + 1...
-- $Id: ComboBox.lua 60 2016-11-04 01:34:23Z diesal2010 $ local DiesalGUI = LibStub('DiesalGUI-1.0') -- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ local DiesalTools = LibStub('DiesalTools-1.0') local Diesa...
return { log_errorEntryNotFound = "Error. Entry %s not found", log_errorTypeNotFound = "Error. Log type %s not found", log_errorManyRPS = "Error. Request from %s:%s to %s. Error RPS too math. Key: %s. Value: %s", log_errorCallClearClass = "Error. Сlass clear", log_errorKeyExist ...
local t = { a = 1, b = "abc", c = { 1,2,3,4 }, d = { x = false, j = 111111 }, aaaa = 6666 } local s = json.encode(t) log.info("json",s) local st = json.decode(s) for i,j in pairs(t) do if type(j) == "number" or type(j) == "string" or type(j) == "boolean" then...
#!/usr/local/openresty/bin/resty -- Copyright (C) 2017 by chrono x = 1 assert(x == 1) local str = 'matrix' do local pi = 3.14 end print(type(pi)) local MAX_COUNT = 1000
-- Copyright (C) 2018 Alexey Kopytov <akopytov@gmail.com> -- -- This code is licensed under the MIT license, see LICENSE. --[[ An example benchmark written using the sysbench Lua API. To install from local Git tree: luarocks make --local To install from SysbenchRocks: luarocks --server=rocks.sysbench.io --...
local function init() global.data = global.data or {} end local function config_changed() init() -- load additional trains added by compatibility.lua for _, force in pairs(game.forces) do force.reset_technology_effects() end end script.on_init(init) script.on_configuration_changed(config_changed) --- ...
--- Used on the client side to communicate with a server -- @module Network -- @author Will -- @release 0.0.2 local socket = require('socket') local Serialize = require('lib.serialize') --- Stores network variables and callbacks -- @field udp The interface with the server -- @field callbacks A table filled with callb...
local _tonumber = tonumber local _unpack = unpack local _stringformat = string.format local _tostring = tostring local _type = type --VALIDATION if(not KEYS[1] or not _tostring(KEYS[1])) then return redis.error_reply('NO SESSION KEY') end if(not KEYS[2] or not _tostring(KEYS[2])) then return redis.error_reply('NO ROOM...
-- Main Pong game engine function Initialize() -- Get Variables -- + 0 to make string to number gameWidth = SKIN:GetVariable('GameWidth') + 0 gameHeight = SKIN:GetVariable('GameHeight') + 0 gamePadding = SKIN:GetVariable('GamePadding') + 0 playerWidth = SKIN:GetVariable('PlayerWidth') +...
local PLAYER = FindMetaTable("Player") function PLAYER:IsPolice() return self:Team() == FACTION_POLICE end function PLAYER:IsScientist() return self:Team() == FACTION_SCIENT end
local awful = require("awful") local bling = require("module.bling") bling.widget.window_switcher.enable({ type = "thumbnail", -- set to anything other than "thumbnail" to disable client previews -- keybindings (the examples provided are also the default if kept unset) hide_window_switcher_key = "Escape", -- The...
require "frame.debugger.debugsocketmgr" local SimpleDlg = require "simpledlg" local testUmg = Inherit(SimpleDlg) testUmg:DynamicLoad("test") function testUmg:Ctor(controller) self.Controller = controller self:Wnd("btn_testcoroutine"):Event("OnClicked", self.ClickCoroutine, self) self:Wnd("Play"):Event("OnClicked", ...
local test = {} local json = require('charon.json') local Class = require('charon.oop.Class') local Adapter = require("charon.ActiveRecord.Adapter") local Person = Class.new("Person", "ActiveRecord") test.beforeAll = function() ActiveRecord.reset() ActiveRecord.config = "config/active_record_sqlite.json" ...
DEFINE_BASECLASS("base_wire_entity") ENT.PrintName = "ACF Gearbox" ENT.WireDebugName = "ACF Gearbox"
-- Copyright (C) 2018 The Dota IMBA Development Team -- -- 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 ...
--[[ Export.lua --]] local Export, dbg = Object:newClass{ className = 'Export' } Export.dialog = nil Export.exports = {} --- Constructor for extending class. -- function Export:newClass( t ) return Object.newClass( self, t ) end --- Constructor to create the export object that represents the...
local t = require( "taptest" ) local dump = require( "dump" ) local like = require( "like" ) local readlines = require( "readlines" ) tab = { name="james bond", lucky_numbers={ 1, 2, 6, 8 }, cool=true } f = io.open( "DumpXmpl.txt", "w" ) dump( tab, { file=f } ) f:close() expect = { "cool: true", "name: james bond", "...
local cmp = require'cmp' local M = { config = { filetypes = {"*"}, }, } M.setup = function(opts) opts = vim.tbl_deep_extend('keep', opts, M.config) M.config = opts end M.new = function() local self = setmetatable({}, { __index = M }) vim.api.nvim_call_function('necosyntax#initialize', {}) return se...
-- Author : nnp_home -- Create Date : 8/14/2012 9:16:20 AM -- RCVersionFrame.lua - Displays version checks local addon = LibStub("AceAddon-3.0"):GetAddon("RCLootCouncil") RCLootCouncil_VersionFrame = addon:NewModule("RCLootCouncil_VersionFrame", "AceTimer-3.0") local contentTable = {} -- versionFrame content {c...
require 'lux.object' require 'map.tile' require 'dump' map = lux.object.new { width = 0, height = 0, tileset = nil, locations = nil, things = nil, } function map.get_tilesize () return 32 end function map:__init () self.locations = self.locations or {} self.things = self.things or {} local in...
--[[ Victory Screen - Client 1.0.0 - 2020/10/01 by Waffle (Manticore) (META) (Programming) (https://www.coregames.com/user/581ff579fd864966aec56450754db1fb) + Nicholas Foreman (META) (Programming) (https://www.coregames.com/user/f9df3457225741c89209f6d484d0eba8) + WitcherSilver (META) (Art) (https://www.coregames...
vim.api.nvim_exec([[ let $LOCALFILE=expand("~/.config/local_override/nvim/init.vim") if filereadable($LOCALFILE) source $LOCALFILE endif ]], false) vim.api.nvim_exec([[ let $REPOCONFIG=expand('./.vim/init.vim') if filereadable($REPOCONFIG) source $REPOCONFIG endif ]], false)
-- Copyright 2020 Intel Corporation, Inc -- Licensed to the public under the Apache License 2.0. module("luci.controller.rest_v1.modules.wan", package.seeall) util = require "luci.util" function register() return "wan", _M["get_wan_info"] end function get_wan_info() return util.ubus("mwan3", "status", {}) e...
--[[ Copyright 2018 H8UL Modifications Copyright 2019 Illiander 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 us...
-- define the money fountain list (SHARED SCRIPT) moneyFountains = {} -- index to know what to remove local fountainIdx = 1 AddEventHandler('getMapDirectives', function(add) -- add a 'money_fountain' map directive add('money_fountain', function(state, name) return function(data) ...
--[[ Configuration of physical lines (FXS and DECT) ]]-- local datatypes = require("luci.cbi.datatypes") local vc = require "luci.model.cbi.voice.common" default_extension = 0 m = Map ("voice_pbx", "FXS and DECT Settings") s = m:section(TypedSection, "brcm_line") s.template = "cbi/tblsection" s.anonymous = true --...
slot0 = require("protobuf") slot1 = require("common_pb") module("p63_pb") SC_63000 = slot0.Descriptor() CS_63001 = slot0.Descriptor() SC_63002 = slot0.Descriptor() CS_63003 = slot0.Descriptor() SC_63004 = slot0.Descriptor() CS_63005 = slot0.Descriptor() SC_63006 = slot0.Descriptor() CS_63007 = slot0.Descriptor() SC_6...
local records = { { ["effect"] = "effect_bundle_hero_influence_when_razing_dummy", ["icon"] = "fx_icon_influence.png", ["priority"] = 50, ["icon_negative"] = "fx_icon_influence.png", ["category"] = "campaign", ["is_positive_value_good"] = true }, { ["effect"] = "troy_adi_building_ancillary_gain", ["icon"] = "fx...
#!/usr/bin/env lua local exec = require "tek.lib.exec" local c = exec.run({ abort = false, func = function() for i = 1, #arg do print(arg[i]) end error "child error" end }, "hallo", "welt") print(c:join()) --[[ hallo welt luatask: bin/task/test52.lua:9: child error stack traceback: [C]: in function...
local cache = {} local module = { cache = cache } local log = hs.logger.new('control:displays', 'debug'); -- laptop screen should always be primary one local screenWatcher = function(_, _, _, wasLaptopScreenConnected, isLaptopScreenConnected) if not wasLaptopScreenConnected and isLaptopScreenConnected then l...
--- === hs._asm.axuielement === --- --- This module allows you to access the accessibility objects of running applications, their windows, menus, and other user interface elements that support the OS X accessibility API. --- --- This is very much a work in progress, so bugs and comments are welcome. --- --- This modul...
--name doesn't mean anything IN THIS CASE, just lore dropping on modchart.lua, what a madlad lol. STOP IT! function start(song) end function update(elapsed) --load characters, there's prob a better way to do it. if curStep == 3 then changeDadCharacter('FREEDOM!') changeBoyfriendCharacter('me') end if curStep ==...
-- Copyright 2019, Mansour Moufid <mansourmoufid@gmail.com> local array = {} function array.copy(xs) local ys = {} for i, x in pairs(xs) do if type(x) == 'table' then ys[i] = array.copy(x) else ys[i] = x end end return ys end local function sub(xs, a, b...
slot0 = class("BackYardGetPreviewImageMd5Command", pm.SimpleCommand) slot0.execute = function (slot0, slot1) slot4 = slot1:getBody().callback slot5 = getProxy(DormProxy) if table.getCount(slot0:GetListByType(slot3)) == 0 then if slot4 then slot4() end return end slot7 = {} for slot11, slot12 in pair...
local gameScoreMgr = {} local scoreMgr = gameScoreMgr scoreMgr.players={} scoreMgr.zhuangSite = 0 scoreMgr.msgTrans = nil local R local history={} local cardIds = {} local gameCtrl = nil function print_lua_table (lua_table, indent) indent = indent or 0 for k, v in pairs(lua_table) do i...
local specialWeapons = { --[weapon_id] = {true, gereken_level (default değeri 1) } [31] = {true, 3} } local allowedFactions = { [1] = true, [2] = true, [78] = true, } function antiWeapon(preSlot) local currentWeaponID = getPedWeapon(localPlayer) if specialWeapons[currentWeaponID] then if specialWeapons[curr...
workspace "Athena" architecture "x64" configurations { "Debug", "Release" } OutputDir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.archetecture}" IncludeDir = {} IncludeDir["GLFW"] = "vendor/GLFW" IncludeDir["vulkan"] = "$(VULKAN_SDK)" IncludeDir["entt"] = "vendor/entt/single_include/entt" include "vendor/GLFW" ...
local nwd = require 'nvim-web-devicons' nwd.setup()
-- Copyright (c) 2021 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local class = require "moonpie.class" local tables = require "moonpie.tables" local Cards = {} local Deck = class({}) function Cards.newDeck(cardList) return Deck:new(cardL...
object_intangible_vehicle_temp_walker1_pcd = object_intangible_vehicle_shared_temp_walker1_pcd:new { } ObjectTemplates:addTemplate(object_intangible_vehicle_temp_walker1_pcd, "object/intangible/vehicle/temp_walker1_pcd.iff")
local command = require "telescope.command" local eq = assert.are.same describe("command_parser", function() local test_parse = function(should, input, output) it(should, function() command.convert_user_opts(input) eq(output, input) end) end -- Strings test_parse("should handle cwd", { cw...
local HealthSystem = tiny.processingSystem() HealthSystem.filter = tiny.requireAll('health') function HealthSystem:process(entity, dt) if entity.health <= 0 then if entity.die_callback then entity.die_callback() end tiny.removeEntity(ecs, entity) end end return HealthS...
--[[---------------------------------------------------------------------------- ADOBE SYSTEMS INCORPORATED Copyright 2007 Adobe Systems Incorporated All Rights Reserved. NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms of the Adobe license agreement accompanying it. I...
require 'nvim-treesitter.configs'.setup { ensure_installed = { 'cpp', 'go', 'json', 'lua', 'c', 'fortran', 'python' }, highlight = { enable = true } }
-- https://github.com/ImagicTheCat/Luaoop local Luaoop = {} local lua5_1 = (string.find(_VERSION, "5.1") ~= nil) -- CLASS MODULE local class = {} -- force an instance to have a custom mtable (by default they share the same table for optimization) -- mtable: current instance mtable -- t: instance -- return custom m...
local core = require "core" local command = require "core.command" local CommandView = require "core.commandview" local function has_commandview() return core.active_view:is(CommandView) end command.add(has_commandview, { ["command:submit"] = function() core.active_view:submit() end, ["command:complete"...
local SoundService = game:GetService("SoundService") local require = require(game:GetService("ReplicatedStorage"):WaitForChild("ApeIntelligence")) local ButtonGroups = require("ButtonGroups") local ButtonBase = require("ButtonBase") local ScreenCoverStatic = require("ScreenCover") local MessageSpawnerStatic = require(...
-- Implementation of a Mixture Density Network loss Criterion. -- Also includes a function for sampling from the PDF. -- -- For more on Mixture Density Networks, see: -- Bishop ("Mixture Density Networks"): http://eprints.aston.ac.uk/373/1/NCRG_94_004.pdf -- Schuster ("On supervised learning from sequential data with a...
ardour { ["type"] = "EditorAction", name = "Space Regions", license = "MIT", author = "David Healey", description = [[Separate selected regions by a specified time interval - works across tracks]] } function factory () return function () -- check if the region is in the selected regions...
require("rider") local envoy = envoy local get_req_header = envoy.req.get_header local set_resp_header = envoy.resp.set_header local ipairs = ipairs local re_find = string.find local respond = envoy.respond local logDebug = envoy.logDebug local logErr = envoy.logErr --local inspect = require("inspect") local json_val...
function lovr.load() -- This is called once on load. -- -- You can use it to load assets and set everything up. print('loaded!') end function lovr.update(dt) -- This is called continuously and is passed the "delta time" as dt, which -- is the number of seconds elapsed since the last update. -- -- You ...
return { summary = 'Replace pixels in the Texture using an Image object.', description = 'Replaces pixels in the Texture, sourcing from an `Image` object.', arguments = { { name = 'image', type = 'Image', description = [[ The Image containing the pixels to use. Currently, the Image ...
return { "Version: 0" }
help([[Configures IBM XL Compiler environment Depends on: common Dependents: Libraries built with this compiler Family: compiler ]]) family("compiler") load("compiler-common/.ibm") local IBM_VER = "13" local mroot = os.getenv("MODULEPATH_ROOT") local mdir = pathJoin(mroot,"Compiler/ibm", IBM_VER) prepend_path("M...
baritha_missions = { { missionType = "escort", primarySpawns = { { npcTemplate = "theme_park_imperial_sergeant", npcName = "" } }, secondarySpawns = { { npcTemplate = "imperial_trooper", npcName = "Prison Guard" }, { npcTemplate = "imperial_trooper", npcName = "Prison Guard" } }, ...
-- -- main.lua -- Base of the game -- Runs update and draw functions -- Controls game scenes -- -- MODULES REQUIRED -- local Input = require ("src.boundary.input") local Screen = require ("src.boundary.display.screen") local PlayArea = require ("src.control.playarea") local MainMenu = require ("src.control.mainmenu"...
local fs = require("filesystem") local buffer = require("doubleBuffering") local filemanager = {} local massiv = { { name = "Root", showContent = true, content = { { name = "File1", }, { name = "File2", }, { name = "Folder1", showContent = tr...
-- # -- # # ##### ##### ## ##### # ###### #### -- # # # # # # # # # # # # # -- # # ##### # # # # # # # ##### #### -- # # # # ##### ###### ##### # # # -- # # # # # ...
-- This is a scene example.To see how create a new scene, see firstScene.lua secondScene = {} function secondScene:load() end function secondScene:update() end function secondScene:draw() love.graphics.setBackgroundColor(0,255,0) love.graphics.print("Second View:",50,50) end return secondScene
entity = { special = true, name = "ground", TransformComponent = { x = 0, y = 700, width = 720, height = 50, angle = 0.0 }, SpriteComponent = { spriteName = "ground", layer = 1 }, RenderableComponent = { }, PhysicsComponent = { x = 0, y = 700, bodyType = 0, fixedRotation = true, f...
require 'lib.class' Member = class() function Member:__init(name, age) self.name = name self.age = age end function Member:change_name(newName) self.name = newName end function Member:__tostring() return self.name .. " " .. self.age end member = Member("Christian", 18) print("Name: "..member.name) print("Age...
att.PrintName = "Color" att.Icon = Material("snowysnowtime/2k/ico/h3/sr_color.png", "mips" ) att.Description = "makes your srs99d colored to your physgun" att.Desc_Pros = { " Purely Cosmetic" } att.Desc_Cons = { " sup" } att.Slot = "skin_h3sr" att.Free = true att.ActivateElements = {"color"} att.AttachSound =...
-- Yohane FLSH abstraction layer -- Base tables. You only need to "require" this then -- call Yohane.Init() local isInitialized = false local memreadstream = {} local Yohane = { Platform = {} } --------------------------------------------- -- Memory stream code, copied from Shelsha -- -------------------...
fillColor=0x2f2f2f, fillColor1=0x4f4f4f, lineColor=0xffffff, durability=10, density=0.1, growRate=40, armor=0, meleeDamage=0, capacity=0,
self = PluginManager():CreatePlugin() toolbar = self:CreateToolbar("steaming") button = toolbar:CreateButton("", "Change Color", "color_swatch.png") newcolor = 0 core = Instance.new("ScreenGui", game:GetService("CoreGui")) frame = Instance.new("Frame",core) frame.Position=UDim2.new(0.5,-5,0.5,-50) frame.Visible = fa...
local testing = require 'tests.testing' local fn = require 'fn' local M = {} function M.test_negate() testing.forstats({count = 5, sum = -15}, fn.map(function(v) return -v end, fn.fromto(1, 5))) end function M.test_none_generated() testing.forstats({count = 0, sum = 0}, fn.map(function(v) return -v end, ...
--[[ PCWRT - Configuration Description: Read configuration values from uci file "pcwrt" ]]-- local util = require "luci.util" module("luci.pcconfig", function(m) if pcall(require, "luci.pcuci") then local config = util.threadlocal() setmetatable(m, { __index = function(tbl, key) if not config[key] then ...