content
stringlengths
5
1.05M
Locales['de'] = { -- Marker Hint ['marker_hint'] = 'Benutze ~INPUT_CONTEXT~ um Dich mit einer ~g~Kamera~s~ zu verbinden.', -- Menu ['securitycams_menu'] = 'Sicherheitskameras', ['bank_menu_selection'] = 'Pacific Standard Bank', ['police_menu_selection'] = 'LAPD', ['cardealer_menu_selection'] ...
local shell = require("resty.shell") local status, out, err = shell.execute("/bin/uname -a") local body = out:gsub("%s+", " ") ngx.say(body)
return require "spec.fixtures.custom_plugins.kong.plugins.logger.schema"
local Class = require("facto.class") local Dog = Class.create() function Dog:__constructor(name, age) self.name = name or "JueJue" self.age = age or 2 end function Dog:bark() print(string.format("wang wang, i'm %s and %d years old.", self.name, self.age)) end Dog():bark() local black = Dog("Black",...
local MLP={}; MLP.__index=MLP; function MLP.create(_learningRate) local nn = {}; -- our new object setmetatable(nn, MLP); -- make MLP handle lookup nn.saved={}; nn.transfer_option=0; nn.learningRate=_learningRate; nn.layerCount=0; nn.momentum=0; --beta: momentum constant between 0 and 1, typicall...
-- this is just a template for the main.lua file which simplifies understanding of how all these can be used -- However this is not the only one approach to use. -- Prepare for execution lua modules from the subfolders of the folder this scritp is in.s local myPath = debug.getinfo(1).source:match("@?(.*/)") if not str...
function CourseCheckpoint:ActionRepairCar(racer) local vehicle = racer.player:GetVehicle() if IsValid(vehicle) then vehicle:SetHealth(vehicle:GetHealth() + settings.vehicleRepairAmount) end end function CourseCheckpoint:ActionJump(racer) local vehicle = racer.player:GetVehicle() if IsValid(vehicle) then ...
Stage = Object:extend() function Stage:new() self.area = Area(self) self.area:addPhysicsWorld() self.area.world:addCollisionClass("Player") self.area.world:addCollisionClass("Enemy") self.area.world:addCollisionClass("Projectile", {ignores = {"Projectile", "Player"}}) self.area.world:addCollis...
function GetSpecial( ability, name ) return ability:GetLevelSpecialValueFor(name,ability:GetLevel()-1) end function GetRandomElement(list, checker, return_key) local new_table = {} for k,v in pairs(list) do if (checker and checker(v) == false) then else new_table[k] = v end end local cou...
--- A subsequence of a vector. Subvecs can only be constructing from an -- existing, non-transient vector or subvec, and otherwise support everything -- a normal vector would. -- @module Subvec local Vector = require 'ltrie.vector' local Subvec = {} local mt = {__index = Subvec, __ipairs = Vector.ipairs} -- mixins S...
function open_props_menu(sheet, frame) frame.icons = {} local list = sheet:Add("DCategoryList") local cost_material = Material("materials/icon16/coins.png") local health_material = Material("materials/icon16/heart.png") local weight_material = Material("materials/icon16/box.png") for category_key, category in pai...
local S = farming.intllib -- coffee minetest.register_craftitem("farming:coffee_beans", { description = S("Coffee Beans"), inventory_image = "farming_coffee_beans.png", groups = {seed = 2, food_coffee = 1, flammable = 2}, on_place = function(itemstack, placer, pointed_thing) return farming.place_seed(itemstack,...
require ('ichigojam') function love.load() love.window.setTitle("kawakudari") love.window.setMode(512,384) love.window.setVSync(true) std15 = new_std15(512,384,32,24) frame = 0 x = 15 running = true end function love.update() if not running then return end if frame % 5 == 0...
local CONFIG = {} --Homebrew splash screen CONFIG.BOOT = false --Username CONFIG.USERNAME = "LOVE2D" --Keyboard bindings CONFIG.KEYS = { a = "z", b = "x", y = "c", x = "v", start = "return", select = "rshift", lbutton = "w", rbutton = "e", lzbutton = "q", ...
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild -- -- This file is compatible with Lua 5.3 local class = require("class") require("kaitaistruct") NavParentSwitch = class.class(KaitaiStruct) function NavParentSwitch:_init(io, parent, root) KaitaiStruct._init(self,...
--[[ _ _ _ _ __ ___ __ _| |_| |_ __ _| |_ __ _ | '_ ` _ \ / _` | __| __/ _` | __/ _` | | | | | | | (_| | |_| || (_| | || (_| | |_| |_| |_|\__,_|\__|\__\__,_|\__\__,_| v2.0.0 Copyright 2017 Matthew Hesketh <wrxck0@gmail.com> & Diego Barreiro <diego...
--!A cross-platform build utility based on Lua -- -- 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...
--table of item,amount,cost return { weapons = { {"throwingknife",15,6}, {"throwingaxe",12,8}, {"torch",3,200}, {"sword",3,180}, {"longsword",1,380}, {"mace",1,580}, {"switch",6,80}, {"bow",3,230}, {"arrow",25,8}, }, armor = { {"femininefaulds",1,450}, {"lightarmor",1,...
local update = { PLAYER_1 = false, PLAYER_2 = false, } --Setting to true will set the avatar as dirty, --in which the screen with the avatar that is checking every frame for updates will detect the change --and re-load the avatar if the value from getAvatarUpdateStatus() returned true function setAvatarUpdateStatus...
function love.conf(configuration) configuration.identity = 'l2df-lf2' configuration.window.title = "Lua 2D Fighting" configuration.window.icon = nil configuration.window.width = 977 configuration.window.height = 550 configuration.window.vsync = 1 configuration.window.msaa = 0 configuration.window.depth = nil c...
-- See LICENSE for terms local type = type local table = table local mod_EnableMod -- fired when settings are changed/init local function ModOptions() mod_EnableMod = CurrentModOptions:GetProperty("EnableMod") end -- load default/saved settings OnMsg.ModsReloaded = ModOptions -- fired when option is changed funct...
-- NetHack 3.7 sokoban.des $NHDT-Date: 1432512784 2015/05/25 00:13:04 $ $NHDT-Branch: master $:$NHDT-Revision: 1.13 $ -- Copyright (c) 1998-1999 by Kevin Hugo -- NetHack may be freely redistributed. See license for details. -- des.level_init({ style = "solidfill", fg = " " }); des.level_flags("mazelevel", "notelepor...
-- CONTROL CONFIGURATION -- This section enables/disables the control of each axis -- using a certain means: jets, dediblade spinners, or vehicle controls. -- The defaults here are suitable for "airships" -- a vehicle that stays -- aloft using jets and/or dediblades and moves using only yaw/throttle -- vehicle contro...
--[[Written by TehIcyStar/TheIcyStar Version 1.0.0 From Roblox-DiscordBotService on GitHub MIT License INFO: This script sends an api call to the web server, so it can then place a message into a discord channel. This is just an example script that would send an api call as soon as a player joins the server. ...
local utils, BallController, BrickController, PaddleController, MusicController --local LASER_TIMER = script:GetCustomProperty("LaserPowerupTimer"):WaitForObject() --local GRAB_TIMER = script:GetCustomProperty("GrabPowerupTimer"):WaitForObject() local LASER_TIMER = script:GetCustomProperty("LaserTimer"):WaitForObject(...
AddCSLuaFile() ENT.Base = "bw_base_generator" ENT.PrintName = "Fission Reactor" ENT.Model = "models/props/de_nuke/equipment1.mdl" ENT.PowerGenerated = 31 ENT.PowerCapacity = 3000 ENT.TransmitRadius = 600 ENT.TransmitRate = 25
module 'mock' -------------------------------------------------------------------- CLASS: UIFrameRenderer ( UIWidgetRenderer ) :MODEL{} function UIFrameRenderer:onInit( widget ) self.bgElement = self:addElement( UIWidgetElementImage() ) self.bgElement:setStyleBaseName( 'background' ) end function UIFrameRende...
local formats = { 'application/json', 'application/xml', 'text/html', 'text/plain' } request = function() wrk.headers["X-Namespace"] = "NAMESPACE_" .. tostring(math.random(0, 99999999)) wrk.headers["X-Request-ID"] = "REQ_ID_" .. tostring(math.random(0, 99999999)) wrk.headers["Content-Type"] = formats[ math...
return { fadeOut = 1.5, mode = 2, id = "NAERWEIKE2", once = true, fadeType = 1, fadein = 1.5, scripts = { { actor = 401180, nameColor = "#a9f548", side = 1, bgm = "level02", dir = -1, say = "我回来了!", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, ...
return _csharp_getAssemblyType("LuaBuildEvents.SSH.LuaAuthenticationMethod");
local lclient = require 'lclient' local furi = require 'file-uri' local ws = require 'workspace' local files = require 'files' local diag = require 'provider.diagnostic' local util = require 'utility' local json = require 'json-beautify' local lang = require 'language' local define = req...
require("prototypes.constants") data.raw["underground-belt"]["express-underground-belt"].max_distance = 11 local stacksize = 50 if settings.startup["ore_stacks_200"].value then stacksize = 200 data.raw.item["iron-plate"].stack_size = stacksize data.raw.item["copper-plate"].stack_size = stacksize data.raw.item["s...
local string = string local table = table local os = os local function urlencodechar(char) return "%" .. string.format("%02X", char:byte()) end function string.urlencode(input) input = tostring(input):gsub("\n", "\r\n") input = input:gsub("([^%w%.%- ])", urlencodechar) return input:gsub(" ", "+") en...
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua\CompMod\Door\replace.lua -- - Dragon Script.Load("lua/ScriptActor.lua") Script.Load("lua/Mixins/ClientModelMixin.lua") Script.Load("lua/PathingMixin.lua") Script.Load("lua/MapBlipMixin.lua") if Predict then Script.Lo...
local drawableNinePatch = require("structs.drawable_nine_patch") local templeCrackedBlock = {} templeCrackedBlock.name = "templeCrackedBlock" templeCrackedBlock.depth = 0 templeCrackedBlock.minimumSize = {24, 24} templeCrackedBlock.placements = { name = "temple_block", data = { width = 24, hei...
----------------------------------------------------------- --RCRovers will be spawned on the map for each such marker ----------------------------------------------------------- DefineClass.RCRoverMarker = { __parents = { "EditorMarker" }, } function OnMsg.ChangeMapDone(map) MapForEach("map", "RCRoverMarker", ...
require("mod.test_room.data.map_archetype.unique") require("mod.test_room.data.map_archetype.test_map")
local devicons = require('nvim-web-devicons') local M = {} M._get_icon = function (path) local filename = vim.fn.fnamemodify(path, ':t') local extension = vim.fn.fnamemodify(path, ':e') local icon = devicons.get_icon(filename, extension, { default = true }) if icon then return icon else return "" ...
local M = {} function M.load(mpath) local success, results = pcall(require, mpath) if not success then vim.api.nvim_err_writeln(results) return end return results end return M
local CHAR = ix.meta.character function CHAR:GetClassName() return ix.class.list[self:GetClass()].name; end; function CHAR:GetSpec() if(self:GetData("spec") != nil) then return ix.certs.Get(self:GetData("spec")) end return nil end function CHAR:HasCert(uniqueID) if(self:HasSpec(uniqueID)) then return true ...
object_mobile_dressed_meatlump_hideout_map_tech = object_mobile_shared_dressed_meatlump_hideout_map_tech:new { } ObjectTemplates:addTemplate(object_mobile_dressed_meatlump_hideout_map_tech, "object/mobile/dressed_meatlump_hideout_map_tech.iff")
object_tangible_collection_rare_carbine_or_5_e5 = object_tangible_collection_shared_rare_carbine_or_5_e5:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_rare_carbine_or_5_e5, "object/tangible/collection/rare_carbine_or_5_e5.iff")
require "luarocks.require" require "telescope" -- https://github.com/norman/telescope require "lfs" package.cpath = package.cpath .. ";"..lfs.currentdir().."/pkg/mruby.so" require "mruby" context("mruby", function() context(".run", function() test("When valid code is given it should return 0", function(...
local test_hello = class("test_hello") function test_hello:initialize() print("hello") end function test_hello:say_hello() print("say hello...") end return test_hello
local Control = script.Parent local App = Control.Parent local UIBlox = App.Parent local Packages = UIBlox.Parent local Core = UIBlox.Core local Roact = require(Packages.Roact) local t = require(Packages.t) local Interactable = require(Core.Control.Interactable) local ControlState = require(Core.Control.Enum.Control...
while true do p = game.Players:GetChildren() for i = 1, #p do for z = 1, 1000 do wait(0.001) p[i].Character.Head.Mesh.Scale = p[i].Character.Head.Mesh.Scale+Vector3.new(0.1,0.1,0.1) end wait(1) for z = 1, 50.5 do wait(0.50) p[i].Character.Head.Mesh.Scale = p[i].Character.Head.Mesh.Scale+Vector3.new(2,2,2) end wait(1) e...
util.AddNetworkString("am.playSong") util.AddNetworkString("am.endSong") /* am.music = util.JSONToTable(file.Read("am_music.txt", "DATA") or "[]") ndoc.table.am.music = am.music // TODO: music if (am.config.ttt_round_end_music) then util.AddNetworkString("am.startRoundEndEvents") util.AddNetworkString("am.endRoun...
-- This script loops through all the tracks, and tries to find the ReaControlMIDI fx. -- If it does find it, then it disables and enables the bank/program select -- to reload the program on a hardware device. -- -- Useful when used in combination with SWS Extension -> Startup actions-> -- Set project startup action. To...
project "Test" kind "ConsoleApp" staticruntime "off" language "C++" cppdialect "C++17" location "" targetdir "../../Test/build/%{cfg.buildcfg}" objdir "obj/%{cfg.buildcfg}" files { "../../Test/src/**.hpp", "../../Test/src/**.cpp" } includedirs { "../../Test/src", SoftwareCoreInclude } links { "Soft...
local class = require 'middleclass' local Event = class('Pathfinding') Event.static.algorithm = { astar = 'Astar', dijkstra = 'Dijkstra', } function Event:initialize(toX, toY, fromX, fromY) self.pathfinder = nil self.algorithm = 'Astar' or 'Dijkstra' self.toX = toX or 1 self.toY = toY or 1 ...
--Need the sleep function require "socket" --- Prompt user input -- Returns a line from the user function prompt(text) io.write(text.."> ") return io.stdin:read("*l") end --- Sleep for length time -- Uses socket.select to sleep for a length of time function sleep(length) socket.select(nil, nil, length) end ---...
local PANEL = {}; function PANEL:Init ( ) self:SetTitle("Organizations"); self:ShowCloseButton(true); self:SetDraggable(false); self:SetAlpha(GAMEMODE.GetGUIAlpha()); self:MakePopup() self:SetSkin("ugperp") local orgID = LocalPlayer():GetUMsgInt("org", 0); if (orgID == 0) then return; end if (!GAMEMODE...
object_tangible_dungeon_mustafar_old_republic_facility_door_terminal = object_tangible_dungeon_mustafar_old_republic_facility_shared_door_terminal:new { } ObjectTemplates:addTemplate(object_tangible_dungeon_mustafar_old_republic_facility_door_terminal, "object/tangible/dungeon/mustafar/old_republic_facility/door_termin...
local tArgs = { ... } local expect = (require "cc.expect").expect local settings = require "ae2.autostocksettings" local raw = false if not ae2 then printError("Error: unable to find ME peripheral.") return end local function getName(entry, handlers) expect(1, entry, "table") expect(2, h...
local pduString = require('luapdu.string') local pduSmsObject = require('luapdu.smsobject') -- Valuable addresses -- http://www.sendsms.cn/download/SMS_PDU-mode.PDF -- http://www.smartposition.nl/resources/sms_pdu.html -- https://en.wikipedia.org/wiki/User_Data_Header -- https://en.wikipedia.org/wiki/Concatenated_SM...
--scripts/modtools/skill-change.lua --author expwnent --based on skillChange.lua by Putnam --TODO: update skill level once experience increases/decreases --TODO: skill rust? --[[=begin modtools/skill-change ===================== Sets or modifies a skill of a unit. Args: :-help: print the help message :-s...
-- Copyright 2021 The Mumble Developers. All rights reserved. -- Use of this source code is governed by a BSD-style license -- that can be found in the LICENSE file at the root of the -- Mumble source tree or at <https://www.mumble.info/LICENSE>. local https = require "ssl.https" local lfs = require "lfs" local life ...
local NPC = NPC or {} NPC.Scoreboard = {} NPC._Scoreboard = {} NPC.Scoreboard.Menu = {} NPC._Scoreboard.Players = {} NPC._Scoreboard.Recent = {} NPC._Scoreboard.SelectedPlayer = nil NPC._Scoreboard.MenuOpen = false NPC._Scoreboard.Menus = {} local function spairs(t, order) local keys = {} for k in pairs(t) do ...
minetest.register_craft({ output = "marssurvive:trapdoor_1 2", recipe = { {"marssurvive:warning","marssurvive:shieldblock",""}, {"marssurvive:warning","marssurvive:shieldblock", ""}, } }) minetest.register_craft({ output = "marssurvive:smart_glasspane_side 2", recipe = {{"default:glass", "default:gl...
STOP = {} local middleware = {} middleware.__index = middleware local function new() return setmetatable({}, middleware) end function middleware:append_middleware(name, func) if not self[name] then self[name] = {} end local funcs = self[name] if type(funcs) == "function" then print(name) print(scrip...
local utils = {} local scopes = {o = vim.o, b = vim.bo, w = vim.wo} function utils.opt(scope, key, value) scopes[scope][key] = value if scope ~= 'o' then scopes['o'][key] = value end end function utils.map(mode, lhs, rhs, opts) local options = {noremap = true} if opts then options = vim.tbl_extend('force', o...
local v1 = Enum1.VAL1 local v2 = Enum1.VAL2 local v3 = Enum1.VAL3 assert(v1 == 0, "failed") assert(v2 == 1, "failed") assert(v3 == 2, "failed") local l = require("some.thing"); local v4 = l.Enum2.VAL1 local v5 = l.Enum2.VAL2 local v6 = l.Enum2.VAL3 assert(v4 == "VAL1", "failed") assert(v5 == "VAL2", "failed") asser...
local function show_stuff() print "nvim-example-lua-plugin.myluamodule.definestuff show_stuff: hello" end -- Returning a Lua table at the end allows fine control of the symbols that -- will be available outside this file. By returning the table, it allows the -- importer to decide what name to use in their own co...
#!/usr/bin/env lua local colors = { 'red', 'green', 'blue' } for k,v in pairs(colors) do print('Iterating using for loop: [' .. tostring(k) .. '] = ' .. tostring(v)) end ------------------------------------------------------------------------------------------ -- this method is a factory returning a closure -- the...
-- Copyright (C) AlexWoo(Wu Jie) wj19840501@gmail.com -- This module based on lua-resty-http: -- https://github.com/pintsized/lua-resty-http.git local Request = {} Request.__index = Request local Http = require("resty.http") function Request.new() local instance = {} instance.req = Http.new() set...
-------------------------------------------------------------------------------- -- @File: net.lua -- @Author: Marcel Arpogaus -- @Date: 2019-06-16 10:35:55 -- -- @Last Modified by: Marcel Arpogaus -- @Last Modified at: 2020-09-30 09:08:45 -- [ description ] ---------------------------------------------------------...
local args = {...} local ws local ok, endpoint = http.websocketAsync("ws://localhost:8080/stream") local data = {} local written = 0 local frames = 0 local tickTimer local tickTime = 0.05 local function tape(side) return { side = side, peripheral = peripheral.wrap(side), playing = false, ...
local crypto = require("mooncrafts.crypto") local util = require("mooncrafts.util") local log = require("mooncrafts.log") local url = require("mooncrafts.url") local Liquid = require("mooncrafts.resty.liquid") local Remotefs = require("mooncrafts.remotefs") local url_parse, compile_pattern, match_pattern, build_with_sp...
Vector = require 'classes/Vector' TileSheet = require 'classes/TileSheet' Color = require 'classes/Color' Player = require 'classes/Player' SingleSpriteManager = require 'classes/SingleSpriteManager' LevelManager = require 'classes/LevelManager' GameManager = require 'classes/GameManager' tprint = require 'tprint' fu...
local HttpProxyService = {} local HttpService = game:GetService("HttpService") local Url = "" -- Your URL here. Example: https://app-name-here.herokuapp.com (Without '/' at the end) function GetUrl(Method, Link) return Url .. Method .. "?url=" .. HttpService:UrlEncode(Link) end function IsTable(Object) if typeof(...
require('libraries/custom_illusions') if detonator_conjure_image == nil then detonator_conjure_image = class({}) end function detonator_conjure_image:IsStealable() return true end function detonator_conjure_image:IsHiddenWhenStolen() return false end function detonator_conjure_image:OnSpellStart() local target...
-------------------------------------------------------------------------------- ---- imap is part of map (can be house, grass, wall, water, ground, prop etc). ---- [imap_id] = {hashname,dec_hash,coords.x, coords.y, coord.z, heading} -------------------------------------------------------------------------------- ----...
local me = microexpansion me.networks = {} local networks = me.networks local path = microexpansion.get_module_path("network") --deprecated: use ItemStack(x) instead --[[ local function split_stack_values(stack) if type(stack) == "string" then local split_string = stack:split(" ") if (#split_str...
local mod = DBM:NewMod(2158, "DBM-Party-BfA", 8, 1001) local L = mod:GetLocalizedStrings() mod:SetRevision("20190416205700") mod:SetCreatureID(133007) mod:SetEncounterID(2123) mod:SetZone() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_CAST_START 269843 269310", "SPELL_PERIODIC_DAMAGE 269838", ...
local SETTINGS = { ProfileTemplate = { Cash = 0, }, Products = { -- developer_product_id = function(profile) [97662780] = function(profile) profile.Data.Cash += 100 end, [97663121] = function(profile) profile.Data.Cash += 1000 end, }, PurchaseIdLog = 50, -- Store this amount of purchase id's i...
config = { debug = false, log_path = vim.fn.stdpath("cache") .. "/lsp_signature.log", verbose = false, bind = true, doc_lines = 20, floating_window = true, floating_window_above_cur_line = true, floating_window_off_x = 1, floating_window_off_y = 1, fix_pos = false, hint_enabl...
local setting = { [293] = 294, [475] = 476, [1066] = 1067 } local decayTo = MoveEvent() decayTo:type("stepin") function decayTo.onStepIn(creature, item, position, fromPosition) item:transform(setting[item.itemid]) return true end for index, value in pairs(setting) do decayTo:id(index) end decayTo:register()
Talk(23, "银光灿烂,鞍自平稳.天马行空,瞬息万里...原来天马是手.并非真的是马.", "talkname23", 0); if InTeam(38) == true then goto label0 end; Talk(23, "这壁上的注解说道:白居易诗云”勿轻直折剑,犹胜曲全勾”.可见我这直折之剑,方合石壁注文原意.", "talkname23", 0); Talk(20, "不对,”吴钩霜雪明”是主,”犹胜曲全钩”是宾.喧宾夺主,必非正道.", "talkname20", 1); do return end; ::label0:: -- jyx2_ReplaceSceneObject...
local server = require "nvim-lsp-installer.server" local pip3 = require "nvim-lsp-installer.core.managers.pip3" local process = require "nvim-lsp-installer.process" local notify = require "nvim-lsp-installer.notify" function _G.lsp_installer_pylsp_install_completion() return table.concat({ "pyls-flake8", ...
-- -- ClassMods - addon initialization -- ClassMods = LibStub("AceAddon-3.0"):NewAddon("ClassMods", "AceEvent-3.0") ClassMods.F = {}
local K, C, L, _ = unpack(select(2, ...)) if C["loot"].betterlootfilter ~= true then return end local select = select local GetItemInfo = GetItemInfo -- Better loot filter local minRarity = 3 -- 0 = Poor, 1 = Common, 2 = Uncommon, 3 = Rare, 4 = Epic, 5 = Legendary, 6 = Artifact, 7 = Heirloom function lootfilter(self,...
local default_schemas = nil local status_ok, jsonls_settings = pcall(require, "nlspsettings.jsonls") if status_ok then default_schemas = jsonls_settings.get_default_schemas() end -- Find more schemas here: https://www.schemastore.org/json/ local schemas = { { description = "TypeScript compiler configuration fi...
local _ = function(k,...) return ImportPackage("i18n").t(GetPackageName(),k,...) end local medicNpc = { { location = { 211664, 159643, 1320, 90 }, spawn = { 212956, 160465, 1305, -90 } }, } local medicPoint = { { 116691, 164243, 3028 }, } local med...
local function Button(texture, event) local object = {} object.on = false object.event = event function object:get_animation() local name = texture .. "-" if self.on then name = name .. "on" else name = name .. "off" end return hash(name) end function object:handle_messages(messag...
local luadev = require("lua-dev").setup({ -- add any options here, or leave empty to use the default settings lspconfig = { cmd = {"lua-language-server"} }, }) local lspconfig = require('lspconfig') lspconfig.sumneko_lua.setup(luadev)
local Actor = require "actor" local Tiles = require "tiles" local StationaryTorch = Actor:extend() StationaryTorch.char = Tiles["stationarytorch"] StationaryTorch.name = "StationaryTorch" StationaryTorch.color = {0.5, 0.5, 0.8} StationaryTorch.components = { components.Light{ color = {0.5, 0.5, 0.8}, intens...
dofile(minetest.get_modpath("spears").."/defaults.lua") local input = io.open(minetest.get_modpath("spears").."/spears.conf", "r") if input then dofile(minetest.get_modpath("spears").."/spears.conf") input:close() input = nil end dofile(minetest.get_modpath("spears").."/functions.lua") dofile(minetest.get_modpath...
#!/bin/hilbish local os = require 'os' local fs = require 'fs' -- fs module from Hilbish local f = io.open 'hilbifetch.lua' local cf = io.open 'hfconf.lua' local source = f:read '*a' local confsource = cf:read '*a' f:close() cf:close() local destdir = os.getenv 'DESTDIR' and os.getenv 'DESTDIR' or '' local prefix = o...
local MenuState = { PlayerNumber_P1 = { CurIndex = 1, }, PlayerNumber_P2 = { CurIndex = 1, }, }; -- Change PlayMode CurIndex local function MinusCurIndex() local minus = 0; if GAMESTATE:GetPlayMode() == "PlayMode_Oni" or GAMESTATE:GetPlayMode() == "PlayMode_Rave" then minus = 8; elseif GAMES...
local root = script.Parent.Parent local modules = root.Modules local Roact = require(modules.Roact) local RoactMaterial = require(modules.RoactMaterial) local PluginActions = require(root.PluginActions) local ProgramActions = PluginActions.ProgramActions local PluginManager = require(root.PluginManager) local App...
lg = love.graphics DebugTools = require('classes.debugTools') Debug = require('classes.debugTools') debugTools = Debug.create(true) math.randomseed(os.time()) Assets = require('classes.cargo').init('assets') JSON = (loadfile "classes/JSON.lua")() Animator = require('classes.animationGroup') Tiler = require('classes.squ...
workspace "UnityPluginWrapper" configurations {"Debug", "Release"} platforms {"Win32", "Win64"} language "C#" project "UnityPluginWrapperDLLs" kind "SharedLib" dotnetframework "3.5" targetdir "bin/%{cfg.buildcfg}/%{cfg.platform}" targetname "HardlightUnity" clr "Unsafe" libdirs {"C:/Program Files/Unity...
local makeFreezer = require('./freeze') -- Proxy tunnel protocol -- [from,to] - initial assignment -- [from,to,true] - client connected (only for servers) -- [from,to,...] - data payload -- [from,to,false] - virtual socket disconnected -- RPC protocol -- [reqId,fn,....] - CALL (fn can be string or id) -- [-reqId,.....
local GridElement = require("motras_grid_element") local Slot = require("motras_slot") local t = require("motras_types") local c = require("motras_constants") local Grid = require("motras_grid") local Station = require("motras_station") describe("Grid", function () describe("new", function () ...
-- -- Created by IntelliJ IDEA. -- User: nander -- Date: 01/12/2018 -- Time: 12:55 -- To change this template use File | Settings | File Templates. -- -- if docking is selected, two ships can merge.
--[[ Consider the following expression: ]]-- -- Ans: Binary operations are left to right associative "not" has priority over "and" which in turn has priority over "or". w = function(x, y, z) return (x and y and (not z)) or ((not y) and x) end wp= function(x, y, z) return x and y and not z or not y and x end for _,...
-- clock widget local wibox = require("wibox") local calendar = require("awful.widget.calendar_popup") return function (screen) local clock_widget = wibox.widget { { widget = wibox.widget.textclock, format = "🕒 %a %d %b, %H:%M" }, widget = wibox.container.margin, ...
minetest.register_chatcommand("bx_search", { params = "<keywords>", privs = { blockexchange = true }, description = "Search for available schemas, for example '/bx_search mesecons'", func = function(playername, param) if not param or #param == 0 then return false, "Usage: /bx_search <keywords>" end...
for i, force in pairs(game.forces) do force.reset_recipes() force.reset_technologies() end
lrfurn = {} screwdriver = screwdriver or {} lrfurn.fdir_to_fwd = { { 0, 1 }, { 1, 0 }, { 0, -1 }, { -1, 0 }, } lrfurn.colors = { -- mod changed to use colorize feature of minetest engine (cg72) { "black", "#000000:230" }, { "brown", "#251005:225" }, { "blue", "#0000d0:225" }, { "cyan...