content
stringlengths
5
1.05M
-- Copyright (c) 2021 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("game.ui.splash", function() local Splash = require "game.ui.splash" it("renders a component", function() local splash = Splash() assert.is_table(splash) ...
local L = LibStub("AceLocale-3.0"):NewLocale("MakePeopleGreetAgain", "deDE") if not L then return end -- Put the language in this locale here L["Loaded language"] = "Deutsch" -------------------------------------------------- -- General -------------------------------------------------- L["MPGA_Title"] = "Make Peopl...
name="about" template="tool"
local wCK, gCK, bClose addEvent( "showCKList", true ) addEventHandler( "showCKList", getLocalPlayer(), function( names, data ) if wCK then destroyElement( wCK ) wCK = nil showCursor( false ) else local sx, sy = guiGetScreenSize() local windowname = data == 2 and "In Remembrance of ....
local next_position_update = 0 function init_ship_controls() return { direction = Vector(), angle = Angle(), controller_angle = Angle() } end hook.Add("KeyPress", "Ship Controls PBD", function(ply, key) local controller = ply:GetEntityUnderControl() if !IsValid(controller) or controller:GetClass() != "aw_sh...
local Vendor = script.Parent.Parent.Parent local Roact = require(Vendor.Roact) local DropdownConstants = require(script.Parent.Constants) local Constants = require(script.Parent.Parent.Constants) local withTheme = require(script.Parent.Parent.withTheme) local DropdownItem = Roact.Component:extend("DropdownItem") fun...
--[[ ]]-- --[[ Generated by FAF Map Editor ]]-- --[[ ]]-- --[[ ...
if vim.b.did_ftp == true then return end local map = require("vimrc").map local bufnr = vim.api.nvim_get_current_buf() vim.opt_local.cursorline = true vim.opt_local.cursorcolumn = false vim.opt_local.colorcolumn = "" map("n", "]dp", ":call search('^dap>', 'W')<CR>", { silent = true, buffer = bufnr }) map("n", "[d...
require 'lfs' -- Ensure the test is launched within the specs/ folder assert(string.match(lfs.currentdir(), "specs")~=nil, "You must run this test in specs folder") local initial_dir = lfs.currentdir() -- Go to specs folder while (not string.match(lfs.currentdir(), "/specs$")) do lfs.chdir("..") end local specs_d...
#!/usr/bin/env tarantool box.load_cfg() -- testing start-up script floor = require("math").floor -- -- Access to box.cfg from start-up script -- box_cfg = box.cfg() function print_config() return box_cfg end -- -- Test for bug #977898 -- Insert from detached fiber -- local function do_insert() box.fiber.deta...
function init() print("Sup world.", math.pow(2, 10)) end function update(t) scr_clean(math.abs(math.sin(t)), 0.4, 0.9, 1.0) end
require("__zk-lib__/static-libs/lualibs/event_handler_vZO.lua").add_lib(require("models/passive_player_income"))
--[[-------------------------------------------------------------------- Grid Compact party and raid unit frames. Copyright (c) 2006-2009 Kyle Smith (Pastamancer) Copyright (c) 2009-2016 Phanx <addons@phanx.net> All rights reserved. See the accompanying LICENSE file for details. https://github.com/Phanx/Grid htt...
----------------------------------------------------------------------------------------- -- -- main.lua -- ----------------------------------------------------------------------------------------- -- Physiques local physics = require( "physics" ) physics.start() -- physics.setDrawMode("hybrid") physics.setGravity(0,0...
function Le_dados(string, rtype) io.write(string) return io.read(rtype or "*l") end Tpr = require "TabelaProdutos" function Main() local op; local estoque = Tpr:new(); local nome; local codigo; local fabricante; local quantidade; repeat io.write( "\t\tMENU DE OPCOES\n".. ...
---@diagnostic disable: lowercase-global local awful = require("awful") local wibox = require("wibox") local M = {} M.setup = function() mykeyboardlayout = awful.widget.keyboardlayout() mytextclock = wibox.widget.textclock() local name_tags = { "www", "term", "dev", "etc", "5", } screen.connect_signa...
--[[ Info.lua ###1 not rev.1: fixed gps sign. Automate app freshening (e.g. exiftool) prior to release. --]] return { appName = "ExifMeta", author = "Rob Cole", authorsWebsite = "www.robcole.com", platforms = { 'Windows', 'Mac' }, pluginId = "com.robcole.li...
HudComponentEnum = { WANTED_STARS = 1, WEAPON_ICON = 2, CASH = 3, MP_CASH = 4, MP_MESSAGE = 5, VEHICLE_NAME = 6, AREA_NAME = 7, VEHICLE_CLASS = 8, STREET_NAME = 9, HELP_TEXT = 10, FLOATING_HELP_TEXT_1 = 11, FLOATING_HELP_TEXT_2 = 12, CASH_CHANGE = 13, RETICLE = 14, SUBTITLE_TEXT = 15, RA...
config = { var0 = "hello", }
#!/usr/bin/env th require 'dp' require 'hdf5' require 'batcher' require 'convnet_io' require 'convnet' require 'postprocess' ---------------------------------------------------------------- -- parse arguments ---------------------------------------------------------------- cmd = torch.CmdLine() cmd:text() cmd:text('...
_G.logger = require("titan.logger").new { level = "info", } function _G.put(...) return logger.debug(...) end
function foo() end function foo() end a, b, c = function_name(x, y, z) x = y + c + variable function foo() end function bar() foo() end function wrapper_func(a, b) local a = b if a == b then a = 0 ...
local skynet = require "skynet.manager" local codecache = require "skynet.codecache" local cluster = require "skynet.cluster" local clusterMonitor = require "utils/clusterMonitor" local TAG = "LoginServiceMgr" local LoginServiceMgr = {} function LoginServiceMgr:init(pGameCode, pIdentify) local pServerConfig = requi...
local wibox = require('wibox') local calendar = require('library.wibox.widget.calendar') local awful = require('awful') local gears = require('gears') local colors = require('themes.dracula.colors') local clickable_container = require('widget.clickable-container') -- Initialize empty styles table local styles = {} --...
resource_manifest_version '05cfa83c-a124-4cfa-a768-c24a5811d8f9' client_script "@np-errorlog/client/cl_errorlog.lua" client_script "@np-infinity/client/cl_lib.lua" server_script "@np-infinity/server/sv_lib.lua" client_script 'carhud.lua' server_script 'carhud_server.lua' client_script 'cl_autoKick.lua' s...
local mp = require 'msgpack' local glue = require'glue' local ffi = require'ffi' local N = mp.N local repl = glue.repl local data = { false, "false", true, "true", nil, "nil", 0, "0 Positive FixNum", 0, "0 uint8", 0, ...
------------------------------------------------------------------------- -- This is a debug printing class. The point is to add these debug print -- statement permanently and use command line options to turn these print -- stmts on when necessary. -- -- Test code for using Dbg.lua -- require("strict") -- local...
return{ width = 32, height = 30 }
--[[ Quas InvokerAI ]] require( "ai/invoker_shared_ai" ) function Spawn( entityKeyValues ) if IsServer() then thisEntity:SetContextThink( "QuasInvokerThink", QuasInvokerThink, 0.25 ) s_Quas = thisEntity:FindAbilityByName( "invoker_quas" ) s_Wex = thisEntity:FindAbilityByName( "invoker_wex" ) s_Exort = thi...
local dumper = dofile 'dumper.lua' local dump = dumper.dump local idump = dumper.idump local tdump = dumper.tdump local bdump = dumper.bdump --dumper.setoutput(nil) local t = setmetatable({}, getmetatable('')) -- dump assert(dump('hello world') == 'hello world') assert(dump(true) == 'true') assert(dump(false) == 'f...
-- -- a collection of abstractions for making selections from a population -- local table = require('table') local music = require('musicutil') local choice = include('sky/lib/choice') -- -- Rule object -- local Rule = {} Rule.__index = Rule --- constructor -- @param items : values selected by rule -- @param weight...
ENT.Type = "anim" ENT.Base = "cw_ammo_ent_base" ENT.PrintName = "Small ammo kit" ENT.Author = "Spy" ENT.Spawnable = true ENT.AdminSpawnable = true ENT.Category = "CW 2.0 Ammo" ENT.ResupplyMultiplier = 12 -- max amount of mags the player can take from the ammo entity before it considers him as 'full' ENT.AmmoCapacity ...
------------------------------------ -- CSCOPE settings for nvim in lua ------------------------------------ if io.open("cscope.out", "r") ~= nil then -- use both cscope and ctag for 'ctrl-]', ':ta', and 'vim -t' vim.opt.cscopetag = true -- check cscope for definition of a symbol before checking ctags: set to 1 --...
--- Execute processes in the background and capture their output --- --- Notes: --- --- * This is not intended to be used for processes which never exit. While it --- is possible to run such things with `hs.task`, it is not possible to read --- their output while they run and if they produce significant output, --- eve...
--[[ Copyright 2015 vurtual VurtualRuler98@gmail.com vurtual.org 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 o...
local flaglineHelper = require("helpers.flagline") local utils = require("utils") local cliffsideFlagline = {} cliffsideFlagline.name = "cliffflag" cliffsideFlagline.nodeLimits = {1, 1} cliffsideFlagline.depth = 8999 local flagLineOptions = { lineColor = {128 / 255, 128 / 255, 163 / 255}, pinColor = {128 / 2...
return {'zutendaal','zutphen','zutphenaar','zutphens','zutt','zut','zutphense'}
--[[ Designed and written in it's entirety by Kironte (roblox.com/users/49703460/profile). Made for the Roblox Neural Network Library. For documentation and the open source license, refer to: github.com/Kironte/Roblox-Neural-Network-Library Last updated 10/13/2020 ]] local Package = script:FindFirstAncestorOfClass("F...
local net = net local snet = slib.Components.Network -- net.Receive('sv_network_rpc_success', function(len, ply) local id = net.ReadString() local request = snet.FindRequestById(id) if not request then return end request.receiver_complete_count = request.receiver_complete_count + 1 if request.func_success then ...
local function pre_action() end local function post_action() end --- -- Lua Setup and Plugins --- pre_action() require("plugin_loader").startup() post_action()
local tap = require('tap') local json = require('json') local yaml = require('yaml') local test_utils = require('test.test_utils') local multihead_conn_testdata = {} function multihead_conn_testdata.get_test_metadata() local schemas = json.decode([[{ "hero": { "name": "hero", "type...
----------------------------------------- -- Spell: Triumphant Roar -- Enhances Attack -- Spell cost: 36 MP -- Monster Type: Demon -- Spell Type: Magical (Fire) -- Blue Magic Points: 3 -- Stat Bonus: STR+3 -- Level: 71 -- Casting Time: 3 seconds -- Recast Time: 90 seconds -- -- Combos: None ----------------------------...
--Atomic bomb technology table.insert( data.raw["technology"]["atomic-bomb"].effects, {type = "unlock-recipe", recipe = "atomic-bomb-from-Pu-239"} ) --Nuclear fuel reprocessing technology data.raw["technology"]["nuclear-fuel-reprocessing"].localised_name = {"technology-name.nuclear-fuel-reprocessing"} data.raw["tec...
messageTime = 3 --You can change this so that the message will stay up longer. Right now, it will stay for 3 seconds. function onChatted(msg, recipient, speaker) if speaker.Character ~= nil then speaker.Character.Name = msg wait(messageTime) speaker.Character.Name = speaker.Name end end function onPlayerE...
local redBeaconMK2 = table.deepcopy(data.raw["beacon"]["beacon"]) redBeaconMK2.name = "red-beacon-mk2" redBeaconMK2.minable.result = "red-beacon-mk2" redBeaconMK2.allowed_effects = {"consumption", "speed", "productivity", "pollution"} redBeaconMK2.energy_usage = "720kW" redBeaconMK2.distribution_effectivity = 1.0 redBe...
local shineColor = Color3.new(1, 1, 1) -- TextColor3 for TextButtons when clicked on local shineDuration = 0.25 local flavourToName = { Regular = "Coffee", -- all others just use the flavour as the name } local module = {} local list = {} local buttonToMachine = {} local buttonOrigColour = {} local machineToCup = {...
local x = aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa + aaaaaaa x = wwwwwwwwwwwwwwwwwwwwwwwwwww...
--!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...
--[[ NPC Waypoint by: standardcombo v1.0.0 The waypoint detects NPCs entering its trigger and directs them to move to the next objective. Can be used for patrolling behaviors, random folks in town, traffic lanes, etc. See the "Waypoint Example" template that is part of this package. Any object that enters the waypo...
-- Options related to the interface implementation. options.cache = true options.close = false options.info = true
_G.Config = { common = require("nvim-config.common"), } Config.lib = require("nvim-config.lib") local lib = Config.lib local utils = Config.common.utils local api = vim.api _G.pi = function(a, opt) print(vim.inspect(a, opt)) end _G.uv = vim.loop require("nvim-config") ToggleTermSplit = lib.create_buf_toggler(...
return { id=10002, name="random move", desc="demo behaviour tree haha", executor="SERVER", blackboard_id="demo", root= { __type__ = "Sequence", id=1, node_name="test", desc="root", services= { }, decorators= { { __type__="UeLoop", id=3,node_name="",flow_abort_mode="SELF", num_loops=0,infin...
modifier_pantsushot = class({}) -------------------------------------------------------------------------------- -- Classifications function modifier_pantsushot:IsHidden() -- actual true return true end function modifier_pantsushot:IsPurgable() return false end function modifier_pantsushot:AllowIllusionDuplicate()...
return { armshltx = { acceleration = 0, brakerate = 0, buildcostenergy = 364421, buildcostmetal = 16951, builder = true, buildinggrounddecaldecayspeed = 0.01, buildinggrounddecalsizex = 10, buildinggrounddecalsizey = 10, buildinggrounddecaltype = "armshltx_aoplane.dds", buildpic = "armsh...
local patch = {} patch.__index = patch local l = require('lume') local efx = require('efx') local notes = require('notes') local sampler = require('sampler') local hexpad = require('hexpad') local hexgrid = require('hexgrid') local controls = require('controls') local colorScheme = { background = {l.rgba(0x0a0a0cf...
return { leak_remove = { [72] = {X = 80, Y = 156, Sheet = 3926316119}, [36] = {X = 84, Y = 124, Sheet = 3926305904}, [96] = {X = 604, Y = 4, Sheet = 3926333840}, [48] = {X = 108, Y = 4, Sheet = 3926309567} }, surround_sound = { [72] = {X = 4, Y = 916, Sheet = 3926316119}, [36] = {X = 684, Y = 404, Sheet ...
-- @Author: YiangYang -- @Date: 2018-10-24 09:51:56 -- @Last Modified by: YiangYang -- @Last Modified time: 2018-10-29 17:13:00 local HandCardView = class("HandCardView",cc.load("boyaa").mvc.BoyaaLayout) local BehaviorExtend = cc.load("boyaa").behavior.BehaviorExtend local CardView = require("app.demo.Yia...
local medic = {} local sounds = require("__base__.prototypes.entity.demo-sounds") local recipeUtils = require("utils/RecipeUtils") local technologyUtils = require("utils/TechnologyUtils") local projectileUtils = require("utils/ProjectileUtils") local ammoUtils = require("utils/AmmoUtils") local turretUtils = require("...
a = "string" b = a print(a == b) -->true print(b) -->string
local socket = require 'socket' local http = require 'socket.http' local json = require 'dkjson' local log = require 'log' local xml_parse = require 'xml_parse' local utils = require 'st.utils' local listen_ip = "0.0.0.0" local listen_port = 0 local multicast_ip = "239.255.255.250" local multicast_port = 1900 local m...
require('csv') TrialID = TrialID or 'Trial1' t = dbquery('UIDMODS', 'MODTime, OldUID, MODType, NewUID, Stage', 'Stage="(empty)"') writeCSV(t, 'keytables/'..TrialID..'_modifiers1.csv') -- {'MODTime', 'OldUID', 'MODType', 'NewUID', 'Stage'} t = dbquery('UIDMODS', 'MODTime, OldUID, MODType, NewUID, Stage', 'Stage="'..Tr...
{{~ if dialog_function.parent_preview_text != "" ~}} -- Parent Nodes: {{ dialog_function.parent_preview_text }} {{~ end ~}} function {{ dialog_function.function_name }}(this) {{~ if dialog_function.code | string.contains "dialogManager" ~}} local dialogManager = DialogManager:new() {{~ end ~}} {{...
mhf = require("message_handler_factory") unistd = require("posix.unistd"); local xml_string = [=[<?xml version="1.0" encoding="UTF-8"?> <ns1:struct_with_various_types xmlns:ns1="http://test_example.com"> <int>123</int> <string> This is a name: Thimmashetty Dasiah </string> <no...
obs = obslua bit = require('bit') SETTING_ALPHA_THRESHOLD = 'alpha_threshold' SETTING_LINE_COLOR = 'line_color' SETTING_LINE_ALPHA = 'line_alpha' SETTING_LINE_WIDTH = 'line_width' TEXT_ALPHA_THRESHOLD = '透明度閾値' TEXT_LINE_COLOR = '線の色' TEXT_LINE_ALPHA = '線の不透明度' TEXT_LINE_WIDTH = '線の幅' SHADER = [[ uniform float4x4 Vi...
-- Copyright 2016-2021 Gabriel Dubatti. See LICENSE. ---------------------------------------------------------------------- -------- Project file format -------- -- Valid project lines: -- 1) [b] [n] '::' [fn] '::' [opt] -- 2) [b] [fn] -- 3) [b] -- -- The first project line MUST BE an "option 1" -- -- [b] = optional...
local active = true local numericinputactive = false local whee local tabNames = {"General", "MSD", "Scores", "Search", "Profile", "Filters", "Goals", "Playlists", "Packs", "Tags"} -- this probably should be in tabmanager. local function input(event) if event.type ~= "InputEventType_Release" and active then if num...
function tableMax(table) local max, maxVal = next(table, nil); for k, v in pairs(table) do if(k ~= max and v ~= nil) then if(v > maxVal) then max = k; maxVal = v; end end end return max; end function splitText(text) local tempTable = {}; for value in text:gmatch("[^%s]+") do table.insert(temp...
Path_Name = "hiigaran_hwce" Symbolic_Name = "hiigaran_hwce" Display_Name = "Hiigaran (HWCE)" Prefix = "HGN_" ExtFilter = "races_dm_hwce,races_hw2,races_hgn,races_hwrm,races_dm_hw2" Tags = "race_dm_hwce" SG_Pass_Tags = "sgf_common,sgf_hgn"
local args = ... local GroupWheel = args.GroupWheel local SongWheel = args.SongWheel local OptionsWheel = args.OptionsWheel local OptionRows = args.OptionRows -- initialize Players to be any HumanPlayers at screen init -- we'll update this later via latejoin if needed local Players = GAMESTATE:GetHumanPlayers() local...
----------------------------------- -- Area: Yuhtunga_Jungle ----------------------------------- require("scripts/globals/zone") ----------------------------------- zones = zones or {} zones[tpz.zone.YUHTUNGA_JUNGLE] = { text = { NOTHING_HAPPENS = 119, -- Nothing happens... ITEM_...
----------------------------------- -- Area: Port Bastok -- NPC: Corann -- Start & Finishes Quest: The Quadav's Curse ----------------------------------- require("scripts/globals/quests") require("scripts/globals/settings") local ID = require("scripts/zones/Port_Bastok/IDs") ----------------------------------- functi...
------------------------------------------------------------------------------- -- Announce Rare By Crackpot ------------------------------------------------------------------------------- local AR = LibStub("AceAddon-3.0"):GetAddon("AnnounceRare") local L = LibStub("AceLocale-3.0"):GetLocale("AnnounceRare", false) if...
require 'hdf5' require 'torch' include '../utils/shortcut.lua' require 'deptreeutils' local function getOpts() local cmd = torch.CmdLine() cmd:text('== convert CoNLL-X dependency trees to hdf5 format ==') cmd:text() cmd:text('Options:') cmd:option('--train', '', 'train CoNLL X file') cmd:option('--valid',...
function s080_shipyard.main() end function s080_shipyard.OnLoadScenarioFinished() if Game.GetCurrentSubAreaId() == "collision_camera_020" then local L0_2 = Game.GetActor("cutsceneplayer_108") if L0_2 ~= nil and L0_2.CUTSCENE:HasCutsceneBeenPlayed() == false then Game.ResetFader() Game.FadeOut...
local Handle = Inherit(Object) local weakmeta = {__mode = "v"} function Handle:Ctor(mgr, callback, EventHandle) self.passtime = 0 self.num = 0 self.totalnum = nil self.mgr = mgr self.callback = callback self.bIsBound = false self.EventHandle = EventHandle self.OwnerTable = setmetatable({}, weakmeta) end funct...
function onCreate() -- background shit makeLuaSprite('limoSunset2', 'limo2/limoSunset', -120, -50); setLuaSpriteScrollFactor('limoSunset2', 0.1, 0.1); makeAnimatedLuaSprite('limoDrive2', 'limo2/limoDrive',-120, 550); setLuaSpriteScrollFactor('limoDrive2', 1, 1); makeAnimatedLuaSprite('bgLimo2','limo2/bgLimo...
DEFINE_BASECLASS("ma2_proj_javelin_lvl1") AddCSLuaFile() ENT.Base = "ma2_proj_javelin_lvl1" ENT.Damage = 140 ENT.ParticleAttach = "gm_MA2_javelin_lvl2" ENT.FireSound = Sound("MA2_Weapon.Javelin2") PrecacheParticleSystem("gm_MA2_javelin_lvl2")
class "SpriteState" function SpriteState:SpriteState(...) local arg = {...} for k,v in pairs(arg) do if type(v) == "table" then if v.__ptr ~= nil then arg[k] = v.__ptr end end end if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then self.__ptr = Polycode.SpriteState(unpack(arg)) end end functi...
----------------------------------- -- Area: Hall of the Gods -- NPC: Cermet Gate -- Gives qualified players access to Ru'Aun Gardens. -- !pos 0 -12 48 251 ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/keyitems"); require("scripts/globals/missions"); ------------------...
push([[ ----------------------------------------------------------- --- /client/gui/radiobutton_class.lua --- --- Part of openFrame project --- --- Written by 50p. Additional changes by Orange. --- --- Lately edited in revision number 13 by Orange --- --- Li...
------------------------------------------------------------------------------- -- -- Date and time widget with calendar popup display for Awesome 3.4 -- Copyright (C) 2011 Tuomas Jormola <tj@solitudo.net> -- -- Licensed under the terms of GNU General Public License Version 2.0. -- -- Description: -- -- This widget dis...
print("seri test") math.randomseed(os.time()) --math.randomseed(10086) local tbChar = { "0","1","2","3","4","5","6","7","8","9", "a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z", "A","B","C","D","E","F","G","H","I","J","K","L","M","N","O...
describe('all', function() it('passes through errors', function() expect(Rx.Observable.throw():all()).to.produce.error() end) it('calls onError if the predicate errors', function() expect(Rx.Observable.fromRange(3):all(error)).to.produce.error() end) it('produces an error if the parent errors', func...
local utils = require('utils') -- highlight yank utils.augrp('ag_hl_yank', [[TextYankPost * silent! lua vim.highlight.on_yank {on_visual = false, timeout=150}]]) -- switch numbering in insert mode utils.augrp('ag_sw_line_number', { [[InsertEnter * set norelativenumber]], [[InsertLeave * set relativenumber]] }) -- le...
--Initial LAM Settings support and code cleanup by Baertram PetHealth = PetHealth or {} function PetHealth.buildLAMAddonMenu() local settings = PetHealth.savedVars if not PetHealth.LAM or not settings then return false end local defaults = PetHealth.savedVarsDefault local addonVars = PetHealth.addonDa...
local floor, ceil = math.floor, math.ceil local min, max = math.min, math.max local base = require("layouts.base") local grid_mt = require("grid_mt") local pole_grid_mt = require("pole_grid_mt") local mpp_util = require("mpp_util") local coord_convert, coord_revert = mpp_util.coord_convert, mpp_util.coord_revert local...
dofile("temp_to_cloud.lua")
local closestBank = nil local inRange local requiredItemsShowed = false local copsCalled = false local PlayerJob = {} currentThermiteGate = 0 CurrentCops = 0 Citizen.CreateThread(function() while true do Citizen.Wait(1000 * 60 * 5) if copsCalled then copsCalled = false end ...
-- extremely basic execution tests -- uncomment individual test blocks with a space to run examples --[[ local x = 0 -- loop test while x ~= 10 do --10000000 do x = x + 1 end--]] --[[ local function f(x) return x + 1 end -- function call test local x = 0 while x ~= 10 do --10000000 do x = f(x) end--]] --[[ local y =...
-- -- vs200x_vcproj_user.lua -- Generate a Visual Studio 2002-2008 C/C++ project .user file -- Copyright (c) 2011 Jason Perkins and the Premake project -- -- -- Set up namespaces -- local vc200x = premake.vstudio.vc200x -- -- Generate the .vcproj.user file -- function vc200x.generate_user(prj) vc200x.header('...
-- Plugin configuration: nvim-lspconfig -- ============================================================================ local nvim_lsp = require('lspconfig') local util = require('lspconfig/util') -- Do not show virtual text since we are using lspsaga. vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.wit...
--[[ Update rule alert count in redis Input: KEYS[1] Rule key KEYS[2] Rule alerts key Output: updated alert count ]] local ruleKey = KEYS[1] local ruleAlertsKey = KEYS[2] local total = redis.call('ZCARD', ruleAlertsKey) redis.call('HSET', ruleKey, 'alertCount', total) r...
local new = require "LuaObservable.src.new" local isObservable = require "LuaObservable.src.is" local subscribe = require "LuaObservable.src.subscribe" --[[ ]] local function defaultConcatMapMutator(x) return x end return function (observable, mutator) mutator = type(mutator) == "function" and mutator ...
local log = { } local function format(s, ...) for i=1,select('#',...) do s = s:gsub('$'..tostring(i), tostring(select(i,...))) end return s end function log.verbose(msg, ...) print('[VERBOSE] '..format(msg, ...)) end function log.info(msg, ...) print('[ INFO ] '..format(msg, ...)) end function log.warning(m...
local playsession = { {"jeffertoot", {999}}, {"Krono", {70474}}, {"BlkKnight", {31726}}, {"waxman", {20339}}, {"MasterManiaZ", {999}} } return playsession
require 'torch' lua_utils = {} function lua_utils:secondsToClock(sSeconds) local nSeconds = tonumber(sSeconds) if nSeconds == 0 then --return nil; return "00:00:00"; else nHours = string.format("%02.f", math.floor(nSeconds/3600)); nMins = string.format("%02.f", math.floor(nSeconds/60 - (nHours*60))); nSec...
local lightBeamHelper = require("helpers.light_beam") local lightBeam = {} lightBeam.name = "lightbeam" lightBeam.depth = -9998 lightBeam.placements = { name = "lightbeam", data = { width = 32, height = 24, flag = "", rotation = 0.0 } } lightBeam.sprite = lightBeamHelper.g...
function onEvent(name, value1, value2) noteTweenAngle('E',4 , 1440 + 180, 120, linear); noteTweenAngle('B',5 , 1440 * -1.3, 120, linear); noteTweenAngle('C',6 , 1440 + 500, 120, linear); noteTweenAngle('D',7 , 1440 * -1, 120, linear); end
local HideParty, super = Class(Event) function HideParty:init(x, y, w, h, alpha) super:init(self, x, y, w, h) self.alphas = {} self.target_alpha = alpha or 0 end function HideParty:onEnter(chara) if chara.is_player then local id = self:getUniqueID().."_alpha" for _,follower in ipairs(...
DEFINE_BASECLASS("ma2_proj_flame_lvl1") AddCSLuaFile() ENT.Base = "ma2_proj_flame_lvl1" ENT.Damage = 259 ENT.ParticleAttach = "gm_MA2_flamer_lvl2" ENT.ImpactEffect = "gm_MA2_explosion_flamer_lvl2" ENT.FireSound = Sound("MA2_Weapon.Flame2") PrecacheParticleSystem("gm_MA2_flamer_lvl2") PrecachePa...