content
stringlengths
5
1.05M
-- -- src/project/oven.lua -- Premake next-generation configuration "baking" API. -- Copyright (c) 2011-2012 Jason Perkins and the Premake project -- premake5.oven = premake5.oven or { } local oven = premake5.oven -- -- These configuration fields are used to support the baking process, and -- should not be include...
--[[ usage example, keep components to 3 or less buildM.updater.bldg_from_components({bldg="assembling-machine-1", components={"iron-plate", "stone"}}) --]] --[[ All recipe changes are indexed and the current data.raw.recipe list is checked against it Any mods not loaded will not cause nil references this way --...
-- Data lineDefs = { {"ESC", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "SYSRQ", "SCROLLLOCK", "PAUSE"}, {"GRAVE", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "MINUS", "EQUAL", "BACKSPACE", "INSERT", "HOME", "PAGEUP", "NUMLOCK", "KPSLASH", "KPASTERISK", "KPM...
p.test=function() -- ts(res.kexiezhaoxin) -- first(); -- chenjiong.first(); return ; end
local StateType = require 'State.Type' local state = {} --[[ When called, tells the engine that it should go back the previous state. If the current state is the last state, it will exit. This all depends on how the State stack is built. This function is only available if `cfg.console.enabled` is true @...
function backhome() local outTime = os.time() while (os.time()-outTime <= 60 ) do if active(app,10)then elseif UI('在地图中','在地图界面')then click(11,370) elseif UI_pic('回城','回城展开')then delay(2) UI_pic('回城','回城展开_技能',true) elseif UI_pic('回城','弹窗回城',true)then delay(1) click(983,499) delay(10) re...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by Administrator. --- DateTime: 2018/11/20 15:26 --- --- @class StageAbout --- @field world World --- @field area Area StageAbout = Object:extend() function StageAbout:new() self.area = Area(self) self.font = font self.main_canvas = lov...
AddCSLuaFile() if CLIENT then SWEP.Author = "DarkRP Developers" SWEP.PrintName = "Glock" SWEP.Instructions = "Shoot with it" SWEP.Slot = 1 SWEP.SlotPos = 0 SWEP.IconLetter = "c" killicon.AddFont("weapon_glock2", "CSKillIcons", SWEP.IconLetter, Color(255, 80, 0, 255)) end SWEP.Base = "weap...
return {function() -- wrap the function in a table to avoid detection by the TestRunnerPlugin local modules = game.ServerStorage.TestRunnerPlugin local NewTry = require(modules.Utils.NewTry) local progress = "startup" spawn(function() wait(); wait() if not progress then print("NewTry tests successful") elseif prog...
local ffi = require("ffi"); local ffi_cdef = ffi.cdef local ffi_load = ffi.load local ffi_new = ffi.new local wirefilter = ffi_load "wirefilter"; ffi_cdef [[ typedef struct wirefilter_scheme wirefilter_scheme_t; typedef struct wirefilter_execution_context wirefilter_execution_context_t; typ...
-- Crimson premake file group "ex" include "ex/tinyxml2" include "ex/glfw" include "ex/physfs" include "ex/glad" include "ex/imgui" include "ex/angelscript" group "" crimsonSystemDeps = {} if os.host() == "linux" then crimsonSystemDeps = { "pthread", "dl", "X11", "GL", } elseif os.host() == "windows" then ...
--[[ 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 pu...
myyydrilreturnScreenPlay = ScreenPlay:new { numberOfActs = 1, } registerScreenPlay("myyydrilreturnScreenPlay", true) function myyydrilreturnScreenPlay:start() if (isZoneEnabled("kashyyyk")) then self:spawnMobiles() self:spawnSceneObjects() end end function myyydrilreturnScreenPlay:spawnSceneObjects() end ...
object_static_worldbuilding_camping_eqp_camping_chair_s3 = object_static_worldbuilding_camping_shared_eqp_camping_chair_s3:new { } ObjectTemplates:addTemplate(object_static_worldbuilding_camping_eqp_camping_chair_s3, "object/static/worldbuilding/camping/eqp_camping_chair_s3.iff")
local AL = _G.AtlasLoot.GetLocales("esES") if not AL then return end -- These localization strings are translated on WoWAce: https://www.wowace.com/projects/atlasloot-enhanced/localization -- Options AL["A window with possible loot is shown if a Bonus Roll is started."] = "Si se inicia una tirada de dados, se muestra...
modifier_ramza_mystic_mystic_arts_disbelief = class({}) function modifier_ramza_mystic_mystic_arts_disbelief:IsPurgable() return false end function modifier_ramza_mystic_mystic_arts_disbelief:GetStatusEffectName() return "particles/status_fx/status_effect_avatar.vpcf" end function modifier_ramza_mystic_mystic_arts_d...
return {'meander','meanderen','meao','meander','mea','meadow','meanders','meanderde','meanderend','meanderende','meandert','meas','meadows'}
--[[ PlayState = Class:extend() PlayState:implement(State) function PlayState:new(name) self:init_state(name) self.timer = Timer() self.main = Group() self.persistent_draw = false self.persistent_update = false end function PlayState:on_enter(from end function PlayState:update(dt) self.main:upda...
return {'eemien','eemnes','eems','eemshaven','eemsmond','eem'}
----------------------------- 以下为 UI代码 不可修改 ----------------------------------- ---@type Framework.UI.Prefab local super = require("Framework.UI.Prefab") ---@class Examples.12_DragAndDrop.UI_12:Framework.UI.Prefab ---@field Image Framework.UI.Image ---@field Image_1 Framework.UI.Image UI_12 = class("Examples.12_DragAn...
-- -- created with TexturePacker - https://www.codeandweb.com/texturepacker -- -- $TexturePacker:SmartUpdate:cadcfe307a1eb19417de4d4c0dcda166:1e2a9027e60fc70d48b2e90cb500a164:1784b3470aad1b82bb9f03684bcf642d$ -- -- local sheetInfo = require("mysheet") -- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheet...
--[[Author: Pizzalol Date: 04.03.2015. Kills the target and applies a modifier with a duration according to the remaining hp of the target Checks if the target is in the allowed table for taking abilities If it is then get the abilities of the target and give them to the caster]] function Devour( keys ) local cast...
local PlayerChoice = { Name = "PlayerChoice", Type = "System", Namespace = "C_PlayerChoice", Functions = { { Name = "GetPlayerChoiceInfo", Type = "Function", Returns = { { Name = "choiceInfo", Type = "PlayerChoiceInfo", Nilable = false }, }, }, { Name = "GetPlayerChoiceOptionInfo", ...
buffer = {} -- buffer namespace currentBuffer = { -- currently opened file buffer lines = { -- content of the file "Welcome to lua nano!", "to start using lua nano do one of the following:", "1: Erase this then use ^o to save the file with a new name", "2: Use ^X to close this file and open lua nano with...
--! @file pcap-test.lua --! @brief This is a simple test for MoonGen's pcap import and export functionality local mg = require "dpdk" local memory = require "memory" local device = require "device" local log = require "log" local ts = require "timestamping" local pcap = require "pcap" function master(source, sin...
function get_filtered_amount(amount) -- spawn deep core ore chunks depending on the ore patch removed amount -- 10 000 = 3% -- 300% = 1 000 000 -- Set to 10% of amount by removing ore patch and max 1 000 chunks (stacks to 100, so 10 stacks to be transportable) -- eg : Yields 100 per refine, so total...
-- ############################### -- ## Project: MTA:Speedrace ## -- ## Name: CVehicle.lua ## -- ## Author: Noneatme ## -- ## Version: 1.0 ## -- ## License: See top Folder ## -- ############################### -- FUNCTIONS / METHODS -- local cFunc = {}; -- Local Functions local cSetting = {}; -- Local Settin...
local Map = game.GetMap() or "" if Map:find("gm_mus_loop") then Metrostroi.PlatformMap = "loop" Metrostroi.CurrentMap = "gm_loop" else return end Metrostroi.Skins["717_schemes"]["p"] = { adv = "metrostroi_skins/81-717_schemes/int_loop_spb_adv", clean = "metrostroi_skins/81-717_schemes/int_loop_spb_clean", } Metro...
local has_notify, notify = pcall(require, "notify") local a = vim.api local uv = vim.loop local M = {} M.is_windows = vim.fn.has "win32" == 1 or vim.fn.has "win32unix" == 1 function M.Notify(msg) vim.schedule(function() vim.notify(msg) end) end function M.GetInputChar(prompt) vim.api.nvim_comma...
require( "config" ) function new_size( oldvalue, offset, factor ) if oldvalue == nil then oldvalue = 1 end local v = offset + oldvalue * factor if v > oldvalue then return( v ) else return oldvalue end end if my_inventory_size then data.raw.player.player.inventory_size = my_inventory_size end if my_running_...
<div id="content"> <div class="panel"> <% if topics and #topics > 0 then %> <div class="inner no-padding"> <%- partial('item', {collection = topics, as = 'topic'}) %> </div> <% else %> <div class="inner"> <p>无话题</p> </d...
package.path = package.path .. ";../?.lua" local TLBE = { Camera = require("scripts.camera"), Main = require("scripts.main"), Config = require("scripts.config") } local lu = require("luaunit") local tileSize = 32 TestNewCamera = {} function TestNewCamera.TestUniqueName() local camera1 = TLBE.Camera....
AddCSLuaFile("shared.lua") AddCSLuaFile("cl_init.lua") include("shared.lua") util.AddNetworkString("fw.updateTurretStatus") util.AddNetworkString("fw.upgradeTurret") util.AddNetworkString("fw.toggleMenu") util.AddNetworkString("fw.buyAmmo") --setup initial conditions :v --wow that's a lot of network variables functio...
-- I have no idea what im doing. - TheEndBoss_101 -- NOTE: I started on roblox, wasent my best idea. -- you're doing some cool stuff - Xalalau C_GM13B_GUI_Panel = {} function C_GM13B_GUI_Panel:CreateWindow() --print("Hello, World") math.randomseed(os.time()) -- Random local DermaFrame = vgui.Create("DFrame...
SecurityCamConfig = {} SecurityCamConfig.DebugMode = false SecurityCamConfig.HideRadar = true SecurityCamConfig.Locations = { { camBox = {label = "Hackerspace", x = 1072.02, y = -202.10, z = 71.30}, cameras = { {label = "Camera Praça", x = 141.06698608398, y = -1032.443359375, z = 39.1...
dofile('common.lua') local hack_symbols = read_asm_sym_file('src/m2-hack.sym') local includes_symbols = read_asm_sym_file('working/m12-includes.sym') local asm_symbols = {} for k,v in ipairs(hack_symbols) do if v.IsGlobal then table.insert(asm_symbols,v) end end for k,v in ipairs(includes_symbols) do...
local Class = require "hump.class" local Vector = require "hump.vector" local BaseObject = require "toys/baseObject" ExplodingPlatform = Class{__includes = BaseObject} function ExplodingPlatform:init(world, mapObject) self.mapObject = mapObject -- Save all our map object values for re-spawn self.width, self.heig...
local status_ok, _ = pcall(require, "nvim-lsp-installer") if not status_ok then return end -- automatically install -- https://github.com/neovim/nvim-lspconfig/wiki/Installing-language-servers#automatically local servers = { "sumneko_lua", "rust_analyzer" } require("nvim-lsp-installer").setup({ ensure_install...
MATCH_STATES = { WARM_UP = 1, PREPARING = 2, IN_PROGRESS = 3, POST_TIME = 4, } GAME_MODE = { DEATHMATCH = 1, GUNGAME = 2 }
local utils = require("lib.utils") local cjson = require "cjson" local Assignment = require "assignment" local Experiment = {} function Experiment:new(inputs) return utils._new_(self, {}):init(inputs) end function Experiment:init(inputs) self.inputs = inputs self.exposureLogged = false self.salt...
-- customize how ever you like shared.stop = true wait(5) shared.stop = false local str = shared.scr or "qw[er]ty" local FinishTime = shared.ftime or 10 print("Finishing in",FinishTime/60,"minutes") local vs = game:GetService("VirtualUser") local nstr = string.gsub(str,"[[\]\n]","") local delay = shared.delay or F...
net.Receive("XYZ911:StartCall", function() local caller = net.ReadEntity() local callID = net.ReadUInt(32) local reason = net.ReadString() XYZ911.UI.Popup(caller, callID, reason) end) function XYZ911.UI.Popup(caller, callID, reason) local frame = XYZUI.Frame("911 Call #"..tostring(callID), XYZ911.Config.Color, n...
-- Mean to be a module dedicated to debugging create mode? local toolsController = require("tevgit:create/controllers/tool.lua") local uiController = require("tevgit:create/controllers/ui.lua") local uiTabController = require("tevgit:create/controllers/uiTabController.lua") uiController.devTab = uiController.cre...
-- copy all globals into locals, some locals are prefixed with a G to reduce name clashes local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,Gload,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,un...
local cassowary = require("cassowary") describe('cassowary.SimplexSolver', function () it('should be constructable without args', function () assert.is.truthy(cassowary.SimplexSolver()) end) end) describe("addEditVar", function () it("works with required strength", function () local solver = cassowar...
local Label, Timer, AttackProperties, Damage, AttackRange, BulletProperties = Component.load({"Label", "Timer", "AttackProperties", "Damage", "AttackRange", "BulletProperties"}) DefaultAttackConstructors = {} function createPlayerAttack(parent) local entity = Entity(parent) local stats = parent:get("Stats") ent...
-- @namespace yatm.wrench local Directions = assert(foundation.com.Directions) local table_copy = assert(foundation.com.table_copy) yatm.wrench = {} yatm.wrench.ROTATE_FACE = 'face' yatm.wrench.ROTATE_AXIS = 'axis' -- Contains a table of all the supported paramtype2 that can be rotated yatm.wrench.type_handler = {} ...
local PART = {} PART.ClassName = "light" PART.Group = 'effects' PART.Icon = 'icon16/lightbulb.png' pac.StartStorableVars() pac.GetSet(PART, "Brightness", 1) pac.GetSet(PART, "Size", 5, {editor_sensitivity = 0.25}) pac.GetSet(PART, "Style", 0, {editor_clamp = {0, 16}}) pac.GetSet(PART, "Color", Vector(255, 255, 25...
-- TODO: implement in-place version of functions require 'randomkit' require 'cephes' require 'torch' if not distributions.gamma then distributions.gamma = {} end function distributions.gamma.entropy(params) assert(params.shape) assert(params.scale or params.rate) if params.scale then local k = params.sh...
local granite = { {"granite", "Granite grigio"}, {"graniteR", "Granite ruggine"}, {"graniteA", "Granite avorio"}, {"graniteP", "Granite rosa"}, } local stairs_mod = minetest.get_modpath("stairs") local stairsplus_mod = minetest.get_modpath("moreblocks") and minetest.global_exists("stairsplus") for _, granite in ...
--[[ GetIndexOfValue =============== Super simple helper function to get the index of a value in a table. This is primarily used in conjunction with table.remove, as we will sometimes know the value of an item, but not its index. This allows us to pass in the value, get the index, and then remove that va...
-------------------------------------------------------------------------------- --[[ Hose Demonstrates use of cycleAngle to wave back and forth. --]] -------------------------------------------------------------------------------- local CBE = require("CBE.CBE") local display_newImageRect = display.newImageRect loc...
local core = require "sys.core" local ns = require "sys.netstream" local assert = assert --when luaVM destroyed, all process will be exit --so no need to clear socket connection local socket_pool = {} local socket = {} local EVENT = {} local type = type local assert = assert local function new_socket(fd) local s = ...
---@type cocodec local cocodec = require "colibc.codec" return cocodec
#!/usr/bin/env lua --[[ This requires the restserver-xavante rock to run. run server (this file) th tools/rest_translation_server.lua -model ../Recipes/baseline-1M-enfr/exp/model-baseline-1M-enfr_epoch13_3.44.t7 -gpuid 1 query the server: curl -v -H "Content-Type: application/json" -X POST -d '[{ "src" : "int...
local branch_prob = 190 local n2 = { name = "default:ladder_wood", param2 = 4, force_place=true } local n6 = { name = "stairs:stair_inner_junglewood", param2 = 3, force_place=true } local n7 = { name = "stairs:stair_junglewood", param2 = 2, force_place=true } local n8 = { name = "stairs:stair_inner_junglewood", param2...
Config = {} Config.Font = 'Montserrat' -- ฟ้อนท์ข้อความ Config.PositionX = 0.850 -- ตำแหน่งข้อความ X Config.PositionY = 0.530 -- ตำแหน่งข้อความ Y Config.ShowNotifyInSafeZone = "<b style='color:#1E90FF'>Bạn đã vào Đảo Khỉ" -- แจ้งเตือนเวลาเข้าเซฟโซน Config.ShowNotifyOutSafeZone = "<b style='color:red'>Bạn đã rời ...
return { gok_ch = { acceleration = 0.288, brakerate = 0.9, buildcostenergy = 3285, buildcostmetal = 171, builddistance = 180, builder = true, buildpic = "gok_ch.dds", buildtime = 5000, canguard = true, canhover = true, canmove = true, canpatrol = true, canreclamate = 1, canst...
local core = require 'core' local parser = require 'parser' local function posToRange(lines, start, finish) local start_row, start_col = lines:rowcol(start) local finish_row, finish_col = lines:rowcol(finish) return { start = { line = start_row - 1, character = start_col -...
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** require "ISUI/ISUIElement" ---@class ISVehicleGauge : ISUIElement ISVehicleGauge = ISUIElement:derive("ISVehicleGauge") function IS...
local r = require "resources" local input = require "input" local Chat = require "chat" local HUD = require "hud" local Scenario = require "scenario" local Achievements = require "achievements" local readers = require "readers" local w = love.graphics.getWidth() local h = love.graphics.getHeight() local chatMargin = ...
target.stand_alone_mode = true
--[[ spoonacular API The spoonacular Nutrition, Recipe, and Food API allows you to access over 380,000 recipes, thousands of ingredients, 800,000 food products, and 100,000 menu items. Our food ontology and semantic recipe search engine makes it possible to search for recipes using natural language queries, such ...
Name = 'Text' OnUse = function(artboard, event, side, x, y) local layer = artboard:GetCurrentLayer() if layer.Layer.LayerType ~= 'Normal' then layer.Bedrock:DisplayAlertWindow('Tool Not Supported!', "You cannot use the text tool on non-normal layers.", {'Ok'}, function()end) elseif side == 1 then layer.CursorPo...
--[[ README: ]] script_name="C Smooth" script_description="Smooth v1.0" script_author="chaaaaang" script_version="1.0" include("karaskel.lua") require("lfs") function main(subtitle, selected, active) local meta,styles=karaskel.collect_head(subtitle,false) --count the size N local i = 0 for sa,la...
PLUGIN.englishTranslation = { pistol = "Pistol", ar2 = "Rifle", smg1 = "Sub Machine Gun", buckshot = "Shotgun", sniperround = "Sniper Rifle", ["357"] = "Magnum", -- These are for item description translation. att_rdot = "Red Dot Sight", attRDotDesc = "A Small Sight that displays a red dot in the cent...
require("test/bustedhelper_game") local character_info = require("content/character_info") describe('character_info', function () describe('init', function () it('should init a character_info with id, name, level, initial quote ids', function () local f_info = character_info(8, "employee") assert.ar...
local function clean_path(p) -- todo: replace with dfhack.filesystem call? return p:gsub('\\', '/'):gsub('//', '/'):gsub('/$', '') end local fs = dfhack.filesystem local old_cwd = clean_path(fs.getcwd()) local function restore_cwd() fs.chdir(old_cwd) end function test.getDFPath() expect.eq(clean_path(...
--- Multishell allows multiple programs to be run at the same time. -- -- When multiple programs are running, it displays a tab bar at the top of the -- screen, which allows you to switch between programs. New programs can be -- launched using the `fg` or `bg` programs, or using the @{shell.openTab} and -- @{multishell...
--[[ Copyright 2018 American Megatrends Inc. 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 a...
--[[ Get title for current song from external source ]]-- local settings = { radio_title_helper = "radio_title_helper", -- Path to Radio title helper interval = 10, -- Renew every 10 seconds (default) radios = {"fip", "franceculture", "francemusique", "tsfjazz", "franceinter", "rfimonde", "rfiafrique", "...
package.path = '../../src/lua/?.lua;' .. package.path tools = require('tools') myTableHeaders, myTableRows = tools.csv('../../data/weather.csv') assert(#myTableHeaders == 6, 'wrong number of header columns') for i = 1, #myTableRows do assert(#myTableRows[i] == #myTableHeaders, string.format('row %d: %d number...
io.write "Something\n" Point = {} Point.new = function(x, y) local self = {} x = x or 0 x = y or 0 self.getx = function() return x end self.gety = function() return y end self.write = function() io.write(string.format("(%d, %d)\n", x, y)) end return self end p = Point.new(2,5) p...
--[[ Template script for Loading necessary packages and functions. This file is part of the CTSeg project. Stavros Tsogkas <stavros.tsogkas@centralesupelec.fr> Last update: October 2016 --]] -------------------------------------------------------------------------------- -- Load modules -------------------------------...
local cjson = require "cjson.safe" local http = require "resty.http" local hmac = require("crypto").hmac local ipairs = ipairs local pairs = pairs local ngx_http_time = ngx.http_time local ngx_re_gsub = ngx.re.gsub local ngx_time = ngx.time local setmetatable = setmetatable local string_byte ...
-- lua/rs/UmbraMixin.lua Script.Load("lua/MapConnector.lua") MinimapConnectionMixin = CreateMixin( MinimapConnectionMixin ) MinimapConnectionMixin.type = "MinimapConnection" MinimapConnectionMixin.expectedMixins = { Team = "For team number." } MinimapConnectionMixin.expectedCallbacks = { GetConnectionStartP...
function ui.sectionHead ( arg1, arg2 ) local class = "sectionHead" local content if arg2 then class = class .. " " .. arg1 content = arg2 else content = arg1 end ui.container { attr = { class = class }, content = content } end
require "busted.runner" () local assert = require "luassert" describe ("c3 algorithm implementation", function () it ("can be required", function() assert.has.no.errors (function () require "c3" end) end) it ("can be instantiated", function () assert.has.no.error (function () local C3 ...
package.loaded["libvenus"] = nil local venus = require("libvenus") local shell = require("shell") local filesystem = require("filesystem") local args, ops = shell.parse(...) if #args < 1 then io.stderr:write("Usage: venus <init|push>\n") return end local cmd = args[1] if cmd == "init" then local dir = args[2] or ...
-- Simple input handler for gui nodes. Register nodes and pass any call to -- on_input() to this module and it will automatically do picking and invoke -- a registered callback. Example: -- -- local input_gui = require "in.gui" -- -- function init(self) -- input_gui.acquire() -- -- input_gui.register(gui.get_node("b...
joystick = nil shootModes = { primarySecondary = 1, rotating = 2, } function love.joystickadded(j) joystick = j end function isReasonable(key) return key ~= "shift" and key ~= "lshift" and key ~= "rshift" and key ~= "up" and key ~= "down" and key ~= "left" and key ~= "right" end function handleJoystic...
isFirstSpawn = true AddEventHandler("playerSpawned", function() -- Give the basic player model local model = GetHashKey("mp_m_freemode_01") RequestModel(model) while not HasModelLoaded(model) do RequestModel(model) Citizen.Wait(1) end SetPlayerModel(PlayerId()...
-- Stateless fromto with step parameter function fromto(n, m, s) function iter(state, ix) ix = ix + state.step if ix > state.max then return nil else return ix, state end end return iter, {max=m, step=s}, n - s end io.write('Give me a start number: ') local min = io.read('*number') ...
local function God(ply, cmd, args) if not FAdmin.Access.PlayerHasPrivilege(ply, "God") then FAdmin.Messages.SendMessage(ply, 5, "No access!") return false end local targets = FAdmin.FindPlayer(args[1]) if not targets or #targets == 1 and not IsValid(targets[1]) then FAdmin.Messages.SendMessage(ply,...
-- score vocalization assets can be downloaded at -- http://www.mediafire.com/file/mpsmto82d8diflr/Vocalize.zip -- ------------------------------------- -- Vocalization is a global table that will contain timing data -- for each digit of each available voice Vocalization = {} -- voice directories should be installed ...
-- SPDX-License-Identifier: MIT hexchat.register('SmartParts', '1', 'Intelligently hide parts, joins, modes, and nick changes') local TIME_THRESHOLD = 60 * 5 -- in seconds local function check_lasttalk (nick) local nick = hexchat.strip(nick) for user in hexchat.iterate('users') do if hexchat.nickcmp(nick, user.ni...
-- handle searching finding local nav = {} nav.setup = function() local actions = require('telescope.actions') require('telescope').setup { defaults = { layout_config = { width = 0.75, prompt_position = "top", preview_cutoff = 120, ...
local migration = {} function migration.global() end function migration.player_table(player_table) end function migration.subfactory(subfactory) if subfactory.icon and subfactory.icon.type == "virtual-signal" then subfactory.icon.type = "virtual" end end function migration.packed_subfactory(packed_s...
muellabfuhr = { ["Window"] = false, ["Label"] = {}, ["Button"] = {} } addEvent("onClientMuellabfuhrMarkerHit", true) addEventHandler("onClientMuellabfuhrMarkerHit", getRootElement(), function() muellabfuhr["Window"] = new(CDxWindow, "Muellabfuhr!", 200, 320, true, true, "Center|Middle") muellabfuhr["Label"][1] = ...
--- The TestReport class encapsulates the result of a test set. -- @classmod lovecase.TestReport -- @author Fabian Staacke -- @copyright 2020 -- @license https://opensource.org/licenses/MIT local TestReport = {} TestReport.__index = TestReport TestReport.indentSpaces = 4 TestReport.failedPrefix = "FAILED: " TestRepor...
SB.Include(Path.Join(SB_VIEW_DIR, "editor.lua")) MetalEditor = Editor:extends{} MetalEditor:Register({ name = "metalEditor", tab = "Map", caption = "Metal", tooltip = "Edit metal map", image = SB_IMG_DIR .. "minerals.png", order = 3, }) function MetalEditor:init() self:super("init") s...
fx_version 'bodacious' game 'gta5' author 'bulva2' description 'Working bullet proof vest for LSPD' client_scripts { 'client/main.lua' } server_script 'server/main.lua' dependencies { 'es_extended' }
--[[ Main production interface ]]
local lunit, RUN = lunit do RUN = lunit and function()end or function () local res = lunit.run() if res.errors + res.failed > 0 then os.exit(-1) end return os.exit(0) end lunit = require "lunit" end local TEST_CASE = assert(lunit.TEST_CASE) local skip = lunit.skip or function() end ...
Config = {} Config.Stables = { Valentine = { Pos = {x=-367.73, y=787.72, z=116.26}, Name = 'Lovarda', Heading = -30.65, SpawnPoint = { Pos = {x=-372.43, y=791.79, z=116.13}, CamPos = {x=1, y=-3, z=0}, Heading = 182.3 } }, BlackWater = { Pos = {x=-873.167, y=-1366.040, z=43.531},...
local RandomBatcher, Parent = torch.class('laia.RandomBatcher', 'laia.CachedBatcher') function RandomBatcher:__init(opt) Parent.__init(self, opt) end --[[ Use this method to shuffle the samples to serve following batches in a different order. This should be called at the beginning of each EPOCH to p...
--remotes.lua -- Registers remote calls for other mods to use -- Register a Locomotive Type as an electric locomotive with the given dummy fuel item. -- This locomotive type will then be handled by RET. The registration is not persistent -- so it needs to be repeated whenever the map is loaded (i.e. during the evaluat...
#!/usr/bin/luajit local magick = require("magick") image = magick.load_image(arg[1]) image:crop(image:get_width() - 200, image:get_height() - 200, 100, 100) -- this will use lanczos2 image:resize(image:get_width() * 0.9, image:get_height() * 0.9) -- gaussblur with radius 1 image:sharpen(1, 0) image:write(arg[2])...
local util = {} util.get_group = function(table, player_index, surface_index) for _, group in pairs(table) do if group.player.index == player_index and group.surface.index == surface_index then return group end end return nil end util.table_contains_value = ...
-- Copyright 2006-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE. -- Light lexer theme for Scintillua. module('lexer', package.seeall) colors = { green = color('4D', '99', '4D'), blue = color('4D', '4D', '99'), red = color('99', '4C', '4C'), yellow = color('99', '99', '4D'), teal = color...