content
stringlengths
5
1.05M
local defaults = require'hop.defaults' local hint = require'hop.hint' local M = {} -- Allows to override global options with user local overrides. local function get_command_opts(local_opts) -- In case, local opts are defined, chain opts lookup: [user_local] -> [user_global] -> [default] return local_opts and set...
--[[ Name: import.lua Description: A custom require system with support for relative paths, inspired from luvit. Author: Tohru ]] local gmatch, gsub = string.gmatch, string.gsub local format, find = string.format, string.find local concat, remove = table.concat, table.remove local environment = { __in...
-- Set your RH SSO configuration below: local server = "https://CHANGE_ME_RED_HAT_SSO_SERVER:8443" local realm = "CHANGE_ME_REALM" local initial_access_token = "CHANGE_ME_INITIAL_ACCESS_TOKEN" local public_key = "CHANGE_ME_PUBLIC_KEY" local function format_public_key(key) local formatted_key = "-----BEGIN PUBLIC ...
--[[ Copyright (c) 2013 David Young dayoung@goliathdesigns.com This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, ...
-- Deal50: A game inspired by the TV show -- Developed by Joaquin -- Final project for GD50 2020 -- Require libraries Class = require 'lib/class' push = require 'lib/push' Timer = require 'lib/knife.timer' -- Require utility code require 'src/constants' require 'src/StateMachine' require 'src/Util' -- Require state ...
--Unlock functions function GetUnlockIndex( sEntryID ) --GetUnlockIndex by ROAD24 (Jose Jesus) --HUGE thanks to him -NeobeatIKK local iNumLocks = UNLOCKMAN:GetNumUnlocks(); lua.Trace("ROAD24 GetUnlockIndex: iNumLocks = " .. iNumLocks); for idx = 0, iNumLocks-1 do local sIDtoCompare = UNLOCKMAN:GetUnlockEntr...
fx_version 'cerulean' game 'gta5' description 'Standalone callback system by PiterMcFlebor' version '1.0' file 'import.lua' client_scripts { 'client/misc.lua' } server_scripts { 'server/misc.lua' }
-- -- Initialize all the votes to zero -- -- Returns a list of votes encrypted, and the ZKP that all are zero -- g = ECP.G() -- get the curve's generator coordinates h = g * 2 -- hashtopoint "h0" h1 = g * 20 -- hashtopoint "h1" order = ECP.order() -- get the curves order in a big rng = RNG.new() H = HASH.new('sha256')...
local M = {} M.client = nil M.time_counter = nil M.role = nil return M
local PAGE = {} --This is called when the page is called to load function PAGE:Load(contentFrame) self.mirrorPanel = vgui.Create("DPanel", contentFrame) self.mirrorPanel:SetSize(contentFrame:GetWide(), contentFrame:GetTall()) self.mirrorPanel.Paint = function() end --Clear background local textPanel = vgui.Creat...
-------------------------------------------------------------------------------- -- Handler.......... : onSconDigitalActionOn -- Author........... : -- Description...... : -------------------------------------------------------------------------------- -------------------------------------------------------------...
-- Drone Flash -- Created by Kiritow local component=require('component') local shrink=require('shrink') require('libevent') print("Please insert new eeprom. (Or press Ctrl+C if the eeprom is already inserted.)") while true do local e=WaitMultipleEvent("interrupted","component_added") if(e.event=="interrupted" ...
return { Name = "thru"; Aliases = {"t", "through"}; Description = "Teleports you through whatever your mouse is hovering over, placing you equidistantly from the wall."; Group = "DefaultDebug"; Args = { { Type = "number"; Name = "Extra distance"; Description = "Go through the wall an additional X studs....
-- -- BASIC.LUA Copyright (c) 2007-08, Asko Kauppi <akauppi@gmail.com> -- -- Selftests for Lua Lanes -- -- To do: -- - ... -- local lanes = require "lanes".configure{ with_timers = false} require "assert" -- assert.fails() local lanes_gen= assert( lanes.gen ) local lanes_linda= assert( lanes.lin...
-- See LICENSE for terms local table_unpack = table.unpack -- always report building as not-a-wonder to the func that checks for wonders local orig_UIGetBuildingPrerequisites = UIGetBuildingPrerequisites function UIGetBuildingPrerequisites(cat_id, template, bCreateItems, ignore_checks, ...) if template.wonder then ...
---------------------------------------------------------------------- -- This script implements a test procedure, to report accuracy -- on the test data. -- -- Ritambhara Singh ---------------------------------------------------------------------- require 'torch' -- torch require 'xlua' -- xlua provides useful t...
local offset= 52 local hns_states= { HoldNoteScore_Held= 0, HoldNoteScore_LetGo= 1, HoldNoteScore_MissedHold= 1, } return { Def.Sprite{ Texture= THEME:GetPathG("HoldJudgment", "label"), InitCommand= function(self) self:draworder(notefield_draw_order.under_field) :y(offset):animate(false):diffusealpha(0)...
local eventApi = require('event') local runEvents = require('ui/events') local c = require('component') local gpu = c.gpu local function isClicked(clickEvent) return function(h) return clickEvent.x >= h.x and clickEvent.x < h.x + h.width and clickEvent.y >= h.y and clickEvent.y < h.y + h.heigh...
local name, ns = ... local oUF = ns.oUF or oUF --[[-------------------------------------------------------------------- Values: 1 = by anyone on anyone 2 = by player on anyone 3 = by anyone on friendly 4 = by anyone on player ----------------------------------------------------------------------]] local playerClas...
--[[ test protocol file ]] local effil = cc.safe_require("effil") local protMgr = require("app.main.modules.network.ProtocolManager"):getInstance() local test = {} function test.pack_test(writer,data) data = data or {} protMgr:packData(writer,"bBhHlLfd",data.arg1 or 0,data.arg2 or 0,data.arg3 or 0,data.arg4 or 0,...
ESX = nil Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(0) end end) local listOn = false local Faketimer = 0 Citizen.CreateThread(function() if Faketimer >= 3 then Faketimer = 0 end listOn = false while true ...
local M = {} local get_row = function(row, bufnr) local count = vim.api.nvim_buf_line_count(bufnr or 0) if row > count then return count end if row < 1 then return 1 end return row end function M.set_row(row, window_id, bufnr) vim.api.nvim_win_set_cursor(window_id or 0, {get_row(row, bufnr), 0})...
if(LuaAV) then addmodulepath = LuaAV.addmodulepath else --------------------------------------------------------------- -- Bootstrapping functions required to coalesce paths local function exec(cmd, echo) echo = echo or true if(echo) then print(cmd) print("") end local res = io.popen(cmd):read("*a") ...
return "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAJFklEQVR42rWXCXBU9R3Hv+/Ye7PZTbLZJCQBRIej2JHSkStgoS2jWJlBzhpNOKscBR2wIrSlVA4NIGoJMBVBoTOFloKlDGEIV0K4hyvDCBEQAiSQY7PZ7G52913//t4L4WiCoh3ezl5v3/v/Pr/f//s7lsN9h8fjcdpstmcFnq9rjkYrOY6L1NfXq3iMB3f/F7fbnZGamrqtS5cnfnL7dk1JdXV1SSwWKzObTRV1dfW3HjuA3W...
local util = require 'utility' local define = require 'proto.define' local timer = require 'timer' ---@class config.unit ---@field caller function local mt = {} mt.__index = mt function mt:__call(...) self:caller(...) return self end function mt:__shr(default) self.default = default return self en...
local TextHandler = require("api.gui.TextHandler") local ConsoleConsts = require("mod.ui_console.api.gui.ConsoleConsts") local Env = require("api.Env") local IInput = require("api.gui.IInput") local IUiElement = require("api.gui.IUiElement") local InputHandler = require("api.gui.InputHandler") local UiConsole = requir...
-- $Id: //depot/Projects/StarWars_Expansion/Run/Data/Scripts/Evaluators/EvaluateInGalacticContext.lua#1 $ --///////////////////////////////////////////////////////////////////////////////////////////////// -- -- (C) Petroglyph Games, Inc. -- -- -- ***** ** * * -- *...
-- https://neovim.io/doc/user/api.html#nvim_set_keymap() -- https://neovim.io/doc/user/lua.html#vim.tbl_extend() local function keymap(mode, lhs, rhs, opts) local options = { noremap = true } if opts then options = vim.tbl_extend("force", options, opts) end vim.api.nvim_set_keymap(mode, lhs, rhs, options...
---------------------------------------------------------------------------------------------------- -- -- Copyright (c) Contributors to the Open 3D Engine Project. -- For complete copyright and license terms please see the LICENSE at the root of this distribution. -- -- SPDX-License-Identifier: Apache-2.0 OR MIT -- --...
name = "Level Up - Power Plant" author = "Tester" description = [[This script will catch shiny or rare Pokemon and will Level up first Pokemon of your team in Power Plant.]] mpaName = "Power Plant" -- Change map name as you want. X = 42 -- Choose a coordinate where people can't see you, choose big ammount like 150. Y ...
Enable_type_text_to_accept= true Enable_Only_1_language= false Default_language_number= 1 privs_to_grant={"shout","interact","home",} --default languages: english=1, spanish=2, france=3,germany=4 -- Add "," between the rules arok_text={ { "English", "Continue", "Yes!", "No", "Do...
local export = {} function export.run_tests(_, args) local result = require('luatest.sandboxed_runner').run(args) if result == 0 then return true else return nil, 'test suite failed.' end end return export
--[[ module: BaseCustomer author: DylanYang time: 2021-02-23 16:38:49 idea: advance: ]] local _M = Class("vBaseCustomer") _M.abstract = true local public = _M.public _M.protected._name = nil function public:IsNil() end function public.get:name() end return _M
rori_kobola_underboss_base_neutral_large_theater = Lair:new { mobiles = {{"kobola_underboss", 1},{"kobola_pitboss", 1}}, spawnLimit = 12, buildingsVeryEasy = {"object/building/poi/naboo_borvos_large1.iff","object/building/poi/naboo_borvos_large2.iff","object/building/poi/naboo_borvos_large3.iff"}, buildingsEasy = {...
require "resources/mysql-async/lib/MySQL" RegisterServerEvent('CheckMoneyForVeh') RegisterServerEvent('BuyForVeh') RegisterServerEvent('vehshop:GetIdentifier') AddEventHandler('CheckMoneyForVeh', function(name, vehicle, price) TriggerEvent('es:getPlayerFromId', source, function(user) if (user) then local ...
data:extend({ { type = "noise-layer", name = "cryolite" }, { type = "autoplace-control", name = "cryolite", richness = true, order = "b-e" }, { type = "item", name = "cryolite", icon = "__Engineersvsenvironmentalist__/graphics/icons/ore/cryolite.png", flags = {"goes-to-main-in...
local rethinkEngine = require(game:GetService("ReplicatedStorage").RethinkEngine) local scene = rethinkEngine.Scene local testScene = { Data = { Name = "myTestMap", }, Layers = { ["1"] = { MyBlueObject = { BackgroundColor3 = Color3.fromRGB(7, 98, 151), Position = UDim2.fromScale(0.5, 0.9), Anchor...
migration_0_17_61 = {} function migration_0_17_61.global() end function migration_0_17_61.player_table(player, player_table) player_table.preferences.enable_recipe_comments = nil end function migration_0_17_61.subfactory(player, subfactory) subfactory.pollution = 0 for _, floor in pairs(Subfactory.get_i...
Test = require('connecttest') require('cardinalities') local events = require('events') local mobile_session = require('mobile_session') local mobile = require('mobile_connection') local tcp = require('tcp_connection') local file_connection = require('file_connection') local module = require('testbase') -----------...
--- -- @author wesen -- @copyright 2019 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local ObjectUtils = require("LuaORM/Util/ObjectUtils") local SettingValueList = require("LuaORM/Util/SettingValueList/SettingValueList") local Type = require("LuaORM/Util/Type/Type") --- -- Provides methods ...
-- text_layoutbox local awful = require('awful') local wibox = require('wibox') ---@diagnostic disable-next-line: lowercase-global tag = tag or {} local text_layoutbox = { mt = {} } local boxes = nil local function update(w, screen) local name = awful.layout.getname(awful.layout.get(screen)) w.textbox.text...
--[[ Copyright (c) 2016 - Auke Kok <sofar@foo-projects.org> * entity_ai is licensed as follows: - All code is: GNU Affero General Public License, Version 3.0 (AGPL-3.0) - All artwork is: CC-BY-ND-4.0 A Contributor License Agreement exists, please read: - https://github.com/sofar/entity_ai/readme.md. --]] --[[ Gene...
-- Squid Plates data:extend({ { type = "item", name = "squid-plate", icon = "__SquidInk__/graphics/icons/squid-plate.png", group = "squid-ink", subgroup = "squid-items", icon_size = 64, icon_mipmaps = 4, order = "a", stack_size = 200 }, { type = "recipe", name = "squid-p...
-- LIGHTSPEED PLUGIN -- ----------------- local remap = require('core.utils').map require('lightspeed').setup { jump_to_first_match = true, jump_on_partial_input_safety_timeout = 400, highlight_unique_chars = false, grey_out_search_area = true, match_only_the_start_of_same_char_seqs = true, limit_ft_matches...
-- -- FIFO queue implemented as linked list. -- return { create = (function() local head = nil local tail = nil local length = 0 return setmetatable({ enqueue = (function(item) new = {item = item} if tail then tail.next = new else head = new ...
return function(cat9, root, builtins, suggest) local viewlut = {} function viewlut.out(set, i, job) job.view = cat9.view_raw return i + 1 end function viewlut.err(set, i, job) job.view = cat9.view_err return i + 1 end function viewlut.expand(set, i, job) job.expanded = -1 return i + 1 end function viewlut.togg...
return { version = "1.2", luaversion = "5.1", tiledversion = "1.2.4", orientation = "orthogonal", renderorder = "right-down", width = 32, height = 16, tilewidth = 32, tileheight = 32, nextlayerid = 6, nextobjectid = 54, properties = {}, tilesets = { { name = "grid", firstgid = ...
project("RED4ext.Example") targetdir(red4ext.paths.build("bin", "plugins")) kind("SharedLib") language("C++") dependson({ "RED4ext.Dll" }) includedirs( { ".", red4ext.paths.src("red4ext.sdk", "include") }) files( { "**.cpp", "**.hpp" }) lin...
module('love.image') function isCompressed() end function newCompressedData() end function newImageData() end
local WaveEndAddBuffScript = class() function WaveEndAddBuffScript:on_buff_added(entity, buff) local json = buff:get_json() self._tuning = json.script_info if not self._tuning or not self._tuning.buff_to_add then return end -- listen for both wave start and wave end: -- only grow ...
-- -- Calamath's Quest Tracker [CQT] -- -- Copyright (c) 2022 Calamath -- -- This software is released under the Artistic License 2.0 -- https://opensource.org/licenses/Artistic-2.0 -- -- Note : -- This addon works that uses the library LibAddonMenu-2.0 by sirinsidiator, Seerah, released under the Artistic License 2.0 ...
--[[This file handles exporting of Neorg files to Lua]] local exporter = neorg.modules.get_module("core.export") if not exporter then return end local dir = vim.loop.fs_opendir(".", nil, 20) for _, table in pairs(vim.loop.fs_readdir(dir)) do -- print(entry) -- print(vim.inspect(table)) if table.typ...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BseAddFriend_pb', package.seeall) local BSEADDFRIEND = protobuf.Descriptor(); local BSEADDFRIEND_USERNAME_FIELD = protobuf.FieldDescriptor(); local BSEADDFRIEND_BLACKLIST_FIELD = protobuf.FieldDescriptor(); local BSEADDFRIEND_SUCC_...
------------------------------------------------------------------------------ -- -- LGI Support for repository packages (namespaces with classes -- overriden in lgi) -- -- Copyright (c) 2012 Pavel Holejsovsky -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license.php -- -------------...
--modified for randomhoi require('utils') function CalculateAlignmentFactor(voAI, country1, country2) local dist = voAI:GetCountryAlignmentDistance( country1, country2 ):Get() return math.min(dist / 400.0, 1.0) end -- Calculates weather the AI should request (and accept) a Debt request function DiploScor...
------------------- -- C o n f i g s -- ------------------- companyName = "LsMécano" companyIcon = "CHAR_LS_CUSTOMS" -- https://wiki.gtanet.work/index.php?title=Notification_Pictures spawnRadius = 100 -- Default Value: drivingStyle = 786603 -- Default Value: 786603 simplerRepair = fals...
------------------------------------------------------------------------------------------------------------------------------------- -- Inject Default StarterScript ------------------------------------------------------------------------------------------------------------------------------------- local RobloxReplica...
ITEM.name = "Canned Fish" ITEM.model = "models/bioshockinfinite/cardine_can_open.mdl" ITEM.description = "itemFishDesc" ITEM.hunger = 50 ITEM.thirst = -10 ITEM.price = 12 ITEM:Hook("Eat", function(item) local client = item.player client:EmitSound("interface/inv_eat_can.ogg") for i = 1, 5 do timer.Simple(i, fun...
-- tllgen_spark return { ["tllgen_spark"] = { teleport_device_spawn = { air = true, class = [[CExpGenSpawner]], count = 1, ground = true, water = false, properties = { delay = [[...
--[[ Copyright (c) 2009-2018, Hendrik "Nevcairiel" Leppkes < h.leppkes at gmail dot com > All rights reserved. ]] local _, Bartender4 = ... local L = LibStub("AceLocale-3.0"):GetLocale("Bartender4") -- fetch upvalues local Bar = Bartender4.Bar.prototype -- only available on 8.0 if not StatusTrackingBarMa...
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- modifier_magnus_sk...
--[[ Copyright (c) 2014 Edvin "Lego3" Linge 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, merge, publish, distr...
Doge = Class { init = function(self, name) self.name = name self.SpriteSheet = love.graphics.newImage("/assets/" .. name .. ".png") self.Animations = { WalkLeft = newAnimation(self.SpriteSheet,64,64,0.1,1,4), WalkRight = newAnimation(self.SpriteSheet,64,64,0.1,2,4), WalkDown = newAnimation(self.SpriteSh...
-- animal.lua require 'pl.app'.require_here 'lua' local test = require 'pl.test' local asserteq = test.asserteq local A = require 'animal' local fido, felix, leo fido = A.Dog('Fido') felix = A.Cat('Felix','Tabby') leo = A.Lion('Leo','African') asserteq(fido:speak(),'bark') asserteq(felix:speak(),'meow') asserteq(le...
local version = { SdkVersion = "1.2.1" } return version
local route_15_0 = DoorSlot("route_15","0") local route_15_0_hub = DoorSlotHub("route_15","0",route_15_0) route_15_0:setHubIcon(route_15_0_hub) local route_15_1 = DoorSlot("route_15","1") local route_15_1_hub = DoorSlotHub("route_15","1",route_15_1) route_15_1:setHubIcon(route_15_1_hub) local route_15_2 = DoorSlot("rou...
module(..., package.seeall) local sorttable = require"sputnik.javascript.sorttable" local wiki = require("sputnik.actions.wiki") local util = require("sputnik.util") actions = {} local function format_list(nodes, template, sputnik, node, request) return util.f(template){ new_url = sputnik:make_url(no...
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules local Roact = require(Modules.Common.Roact) local RoactRodux = require(Modules.Common.RoactRodux) local BodyColorButton = require(Modules.AvatarExperience.AvatarEditor.Components.BodyColorButton) local AvatarEditorConstants = re...
BATTLEPASS_LEVEL_REWARD = {} BATTLEPASS_LEVEL_REWARD[10] = {"sven_rare", "common"} BATTLEPASS_LEVEL_REWARD[20] = {"blink1", "common"} -- BATTLEPASS_LEVEL_REWARD[15] = {"trail1", "common"} BATTLEPASS_LEVEL_REWARD[40] = {"blink2", "common"} -- BATTLEPASS_LEVEL_REWARD[25] = {"trail2", "common"} BATTLEPASS_LEVEL_REWARD[...
----------------------------------------------------------------------------------------- -- Civ Class - container for all high level mod variables pertaining to the civilization ----------------------------------------------------------------------------------------- Civ = {} function Civ:init() self.state = {...
function onRender(player, offer) return not player:isPzLocked() and not Tile(player:getPosition()):hasFlag(TILESTATE_NOLOGOUT) end local MIN_DISTANCE = 50 function onBuy(player, offer) if player:isPzLocked() then player:sendStoreError(STORE_ERROR_PURCHASE, "You can not purchase a transportation service while PZ Lo...
#!/usr/bin/env lua5.1 local strings = {} if #arg < 2 then print("Usage: Babel.lua varname sourcefile ...\n".. " varname - the variable name of the global table holding the translations\n".. " sourcefile ... - the source files to scavenge for localized strings\n") return end -- The first arg is ...
local _M = {} function _M.get_hostname() local handler = io.popen ("/bin/hostname") local hostname = handler:read("*a") or "" handler:close() hostname =string.gsub(hostname, "\n$", "") return hostname end function _M.resolve_fqdn(fqdn) local handler = io.popen(string.format("dig +short %s | he...
-------------------------------------------------------------------------------- -- quicksort.lua: quicksort implementation benchmark -- This file is a part of lua-nucleo library -- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license) ------------------------------------------------------------------...
local objects = { --Maxime createObject(3942,314.3994141,-101.3994141,1000.9000244,0.0000000,0.0000000,0.0000000,10), --object(bistrobar,10), (1,10), createObject(1536,323.2999878,-94.9000015,996.9000244,0.0000000,0.0000000,270.0000000,10), --object(gen_doorext15,10), (1,10), createObject(1536,323.3349915,-97.9000...
#!/usr/bin/env lua --[[ fyaml.lua - the Flukso configuration loader in UCI style Copyright (C) 2019 Bart Van Der Meerssche <bart@flukso.net> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, eit...
local _QuestSteps = { [3] = { [ 0] = "goToPolice", [ 1] = nil, [ 2] = "goToBank", [ 3] = nil, [ 4] = "goToPolice", [ 5] = nil, [ 6] = "goToBankRob", [ 7] = nil, [ 8] = "goToPolice", [ 9] = nil, [10] = nil, [11] = "goToHospital", [12] = nil, [13] = "goToMine", [14] = nil, [15] = "goToPol...
require("spitter-attack-parameters") -- local sounds = require("__base__.prototypes.entity.demo-sounds") function genSpitter(inputs) -- Copy entities local spawner = table.deepcopy(data.raw["unit-spawner"]["spitter-spawner"]) local small = table.deepcopy(data.raw["unit"]["small-spitter"]) local medium...
local CemeteryConf = require "config.cemeteryConfig" local CemeteryModule = require "module.CemeteryModule" local playerModule = require "module.playerModule" local TeamModule = require "module.TeamModule" local Time = require "module.Time" local View = {} function View:Start(data) self.view = CS.SGK.UIReference.Setup...
--[=[ MIT License Copyright (c) 2016 Johannes Westhuis, Alexander Schulz 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...
----------------------------------------- -- ID: 5479 -- White Mage Die -- Teaches the job ability Healer's Roll ----------------------------------------- function onItemCheck(target) return target:canLearnAbility(84) end function onItemUse(target) target:addLearnedAbility(84) end
-- Copyright 2022 SmartThings -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in ...
FrenchRP.registerFrenchRPVar("AFK", net.WriteBit, fn.Compose{tobool, net.ReadBit}) FrenchRP.registerFrenchRPVar("AFKDemoted", net.WriteBit, fn.Compose{tobool, net.ReadBit}) FrenchRP.declareChatCommand{ command = "afk", description = "Go AFK", delay = 1.5 }
--[[ ReDead Translation Guideline 1. Use English as base. 2. Do NOT translate special characters. e.g. <p style=</p>, %s. Keep those directly. 3. Keep translations short and concise. 4. Translate AS IS. --]] translate.AddLanguage("en", "English") -- See https://wiki.facepunch.com/gmod/Addon_Localization#supportedlangu...
--[[ Copyright (c) 2016 Technicolor Delivery Technologies, SAS The source code form of this Transformer component is subject to the terms of the Clear BSD license. You can redistribute it and/or modify it under the terms of the Clear BSD License (http://directory.fsf.org/wiki/License:ClearBSD) See LICENSE file for m...
Delegation = mondelefant.new_class() Delegation.table = 'delegation' Delegation:add_reference{ mode = 'm1', to = "Member", this_key = 'truster_id', that_key = 'id', ref = 'truster', } Delegation:add_reference{ mode = 'm1', to = "Member", this...
test = require 'u-test' common = require 'common' function TestSendInvite_Handler() MultiDeviceSyncAndWait("SendInvite"); XblMultiplayerActivitySendInvitesAsync(MultiDeviceGetRemoteXuid()) end function OnXblMultiplayerActivitySendInvitesAsync() MultiDeviceSyncAndWait("Complete") test.stopTest() end t...
--[[ cel is licensed under the terms of the MIT license Copyright (C) 2011 by Matthew W. Burk 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...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. light_table_adhesive = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/loot/collectible/collectible_parts/light_table_adhesive.iff", craftingValues = { }, customizationStringNames = {}, custo...
data:extend{ { type = "custom-input", name = "qis-search", key_sequence = "SHIFT + F", order = "a" }, { type = "custom-input", name = "qis-nav-up", key_sequence = "UP", alternative_key_sequence = "SHIFT + K", order = "ba" }, { type = "custom-input", name = "qis-nav-...
local Prop = {} Prop.Name = "MTL Building 2" Prop.Cat = "Warehouse" Prop.Price = 1000 Prop.Doors = { Vector( -5716, -5244, 39.5 ), Vector( -6060, -5244, 39.5 ), Vector( -5267, -4935.5, 119 ), Vector( -5483, -5320.5, 119 ), Vector( -5405, -5869, 63 ), Vector( -5120, -6110.2998046875, 40 ), } GM.Property:Register(...
--[[ a + b + c = 1000 && a * a + b * b = c * c --]] for a = 1, 1000 do for b = a + 1, 1000 do local c = 1000 - a - b local a2b2 = a * a + b * b local cc = c * c if cc == a2b2 and c > a then io.write(string.format("%d\n%d\n%d\n%d\n", a, b, c, a * b * c)) end ...
--[[ Windows.lua Extends operating system functionality for Windows specific behavior. --]] local Windows, dbg = OperatingSystem:newClass{ className = 'Windows' } --- Constructor for extending class. -- function Windows:newClass( t ) return OperatingSystem.newClass( self, t ) end --- ...
--[[ ModuleName : Path : ../lualib/robot/auth.lua Author : jinlei CreateTime : 2020-03-23 16:28:18 Description : --]] local skynet = require "skynet" local sproto_helper = require "common.utils.sproto_helper" local auth_data = { openid = nil, characterid = nil, } function set_openid(openid) auth_data.openid = ope...
--[[ Evasion Tab for NavComp control screen ]] function navcomp.ui.control:CreateEvasionTab () local toggleBind = iup.text {value = "", size = "100x"} local levelSelection = iup.pdasublist { font = navcomp.ui.font, dropdown = "YES", visible_items = 10, expand = "HORIZONTAL" } levelSelection [...
return { [1]={ lang={ ["Simplified Chinese"]={ [1]={ limit={ [1]={ [1]="#", [2]="#" }, [2]={ [1]="#", [2]="#" } }, text="{0} - {1} 基础副手物理伤害" } } }, stats={ [1]="off_hand_local_minimum_added_physical_damage", [2]="off_hand_loca...
keymap = function (key) local opts = {noremap = true, silent = true} for i, v in pairs(key) do if type(i) == 'string' then opts[i] = v end end local buffer = opts.buffer opts.buffer = nil if buffer then vim.api.nvim_buf_set_keymap(0, key[1], key[2], key[3], opts) else vim.api.nvim_set_keymap...
local raindrops = {} local function raindrops(n) local res if n % 3 == 0 then res = (res or "") .. "Pling" end if n % 5 == 0 then res = (res or "") .. "Plang" end if n % 7 == 0 then res = (res or "") .. "Plong" end return res or tostring(n) end return raindrop...
Inherit = 'ScrollView' PageInfo = nil Failed = false Success = false RequestURL = nil TimeoutTimer = nil TimeoutLength = 5 LoadingText = nil OnLoad = function(self) self.Failed = false self.Success = false self:RemoveAllObjects() ScrollView.OnLoad(self) self:AddObject({ X = '50%,-4', Y = '50%,-3', Type = '...
-- Biomes -- Icesheet cartographer.biomes.add("icesheet", { "ctg_mtg_simple_land", "ctg_mtg_colored_snow", }); cartographer.biomes.add("icesheet_ocean", { "ctg_mtg_simple_water", "ctg_mtg_colored_water", }); cartographer.biomes.add("icesheet_ocean", { "ctg_mtg_simple_land", "ctg_mtg_colored_snow...