content
stringlengths
5
1.05M
log = {} local c27 = string.char(27) local reset = c27 .. '[' .. tostring(0) .. 'm' local red = c27 .. '[' .. tostring(31) .. 'm' local green = c27 .. '[' .. tostring(32) .. 'm' local yellow = c27 .. '[' .. tostring(33) .. 'm' function log.info(msg) print(green .. "[info ] " .. msg .. reset) end function log.er...
local signs = { Error = " ", Warn = " ", Hint = " ", Information = " " } for type, icon in pairs(signs) do local hl = "LspDiagnosticsSign" .. type vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" }) end vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with( vim.lsp.diagnostic.on_p...
local Import = require"Toolbox.Import" local Tools = require"Toolbox.Tools" local rawtype = type local type = Tools.Type.GetType local Object = Import.Module.Relative"Object" local Namer = Import.Module.Relative"Objects.Namer" local Merger = Import.Module.Relative"Objects.Merger" local Flat = Import.Module.Relative"...
--[[ -- author: xjdrew -- date: 2014-08-08 --]] local class = require "levent.class" local hub = require "levent.hub" local timeout = require "levent.timeout" local lock = require "levent.lock" local Queue = class("Queue") -- if maxsize is nil or less than 0, the queue size is infinite function Queue:_init(...
require("lockbox").insecure(); local Bit = require("lockbox.util.bit"); local AND = Bit.band; local OR = Bit.bor; local XOR = Bit.bxor; local LSHIFT = Bit.lshift; local RSHIFT = Bit.rshift; --NOTE: TEA is endian-dependent! --The spec does not seem to specify which to use. --It looks like most implementations use b...
local Addon = select(2, ...) local Slider = Addon:CreateClass('Slider') do local nextName = Addon:CreateNameGenerator('Slider') local getOrCall = function(self, v, ...) if type(v) == 'function' then return v(self, ...) end return v end local function editBox_OnEditFocusGained(self) self:HighlightText(...
---@class BedSubType @enum BedSubType = {} --- --- 0 BedSubType.BED_ISAAC = 0 --- --- 1 BedSubType.BED_MOM = 1 return BedSubType
test.open('words.txt') local lineno = test.lineno local colno = test.colno local assertEq = test.assertEq local log = test.log assertEq(lineno(), 0) assertEq(colno(), 0) test.key('~') assertEq(colno(), 1) assertEq(buffer:get_line(0), 'One two three four five\n') test.key('$', '~') assertEq(colno(), 22) assertEq(buffe...
--[[ Copyright (c) 2019 igor725, scaledteam released under The MIT license http://opensource.org/licenses/MIT ]] local wt = {} WT_SUNNY = 0 WT_RAIN = 1 WT_SNOW = 2 WT = {[0]='sunny', 'rain', 'snow'} WTN = {} for i = 0, #WT do WTN[WT[i]] = i end local function weatherFor(player, w) if player:isSupported('EnvWea...
local util = include( "modules/util" ) local commondefs = include( "sim/unitdefs/commondefs" ) local simdefs = include( "sim/simdefs" ) local NEVER_SOLD = 10000 local function onHolocircuitTooltip( tooltip, unit, userUnit ) local cdefs = include( "client_defs" ) local simquery = include( "sim/simquery" ) ...
local DEFS = {} DEFS.WAGON_DIR = '.wagon' DEFS.ROCKTREE_DIR = DEFS.WAGON_DIR .. '/rocktree' DEFS.LUA_DIR = DEFS.ROCKTREE_DIR .. '/share/lua' DEFS.LIB_DIR = DEFS.ROCKTREE_DIR .. '/lib/lua' DEFS.BIN_DIR = DEFS.ROCKTREE_DIR .. '/bin' DEFS.CONFIG_FILE = DEFS.WAGON_DIR .. '/config.lua' DEFS.CONFI...
-- == Uptime == -- Copyright (c) 2018 by Rene K. Mueller <spiritdude@gmail.com> -- License: MIT License (see LICENSE file) -- Description: displays uptime in seconds -- -- History: -- 2018/02/04: 0.0.2: hours corrected -- 2018/01/03: 0.0.1: first version return function(...) local t = tmr.time() console.print(s...
_G.technic = {} _G.technic.S = string.format _G.technic.getter = function(...) return "" end _G.technic.get_or_load_node = minetest.get_node _G.technic.digilines = { rules = { -- digilines.rules.default {x= 1,y= 0,z= 0},{x=-1,y= 0,z= 0}, -- along x beside {x= 0,y= 0,z= 1},{x= 0,y= 0,z=-1}, -- along z beside {...
function SetRoot(image_path) local programs={"hsetroot -cover", "feh --no-fehbg --bg-center --bg-fill", "display -window root", "gm display -window root", "xli -fullscreen -onroot -quiet", "qiv --root_s", "wmsetbg -s -S", "Esetroot -scale", "xv -max -smooth -root -quit", "setwallpaper", "setroot"} if strutil.strlen...
-- module_void.lua -- Written by KyrosKrane Sylvanblade (kyros@kyros.info) -- Copyright (c) 2015-2020 KyrosKrane Sylvanblade -- Licensed under the MIT License, as per the included file. -- Addon version: @project-version@ -- This file defines a module that APR can handle. Each module is one setting or popup. -- This ...
local fio = require('fio') local t = require('luatest') local g = t.group() local helpers = require('test.helper') local cluster g.before_all = function() cluster = helpers.Cluster:new({ datadir = fio.tempdir(), server_command = helpers.entrypoint('srv_multisharding'), cookie = require('d...
return function (_, players) for _, player in pairs(players) do player:Kick("Kicked by admin.") end return ("Kicked %d players."):format(#players) end
-- create node Arccosine require "moon.sg" local node = moon.sg.new_node("sg_arccosine") if node then node:set_pos(moon.mouse.get_position()) end
--[[ LuiExtended License: The MIT License (MIT) --]] -- Addon Settings Menu localization -- Translation by: KiriX local strings = { -- Settings SI_LUIE_LAM_COMPATIBILITY_WARNING = "Отключите эту настройку, если у вас наблюдаются проблемы совместимости с другими аддонами.", ...
-- -- lua-Coat : <http://fperrad.github.io/lua-Coat/> -- local setmetatable = setmetatable local pairs = pairs local _G = _G local Coat = require 'Coat' local checktype = Coat.checktype local does = Coat.does local error = Coat.error local isa = Coat.isa local _ENV = nil local _M = {} local _TC = {} local _COERCE =...
local module = { Name = "Bring", Description = "Brings a player to you", Location = "Player", } module.Execute = function(Client, Type, Attachment) if Type == "command" then local char = module.API.getCharacter(module.API.getPlayerWithName(Attachment)) if char then if Client.Character then local prim...
local map_generator = { } local map = { } local square = 24 local width = love.graphics.getWidth() / square local height = love.graphics.getHeight() / square - 1 love.graphics.setBackgroundColor(107 / 255, 74 / 255, 22 / 255) local turn_prop = 0.3 local worm_prop = 0.1 local player_set = false local playerx = 0 local p...
function IShadowstalker_OnEnterCombat(Unit,Event) Unit:FullCastSpellOnTarget(7159,Unit:GetClosestPlayer()) Unit:RegisterEvent("IShadowstalker_Backstab", 8000, 0) end function IShadowstalker_Backstab(Unit,Event) Unit:FullCastSpellOnTarget(7159,Unit:GetClosestPlayer()) end function IShadowstalker_Stealth(Unit,Event)...
-- credit to atom0s for help with decompiling -- Decompiled using luadec 2.2 rev: for Lua 5.1 from https://github.com/viruscamp/luadec return { ATTR_COLOR = { { Color = "τ╗\191", Range = { 0, 30 } }, { Color = "Φô\157", Range = { 31, 60 } }, { Color = "τ┤\171", Range = { 61, 80 } }, ...
package.path = "?.lua;../?.lua" local input = require "input" function parse_claim(str) -- Example: #1 @ 1,3: 4x4 local a, b, c, d, e = str:match('#(%d+) @ (%d+),(%d+): (%d+)x(%d+)') return { id = a, x = b, y = c, width = d, height = e } end function add_coverage(claim, coverage) local count = 0 -- Compute index...
--[[ Copyright (C) 2014- Rochet2 <https://github.com/Rochet2> 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 either version 2 of the License, or (at your option) any later version...
slot0 = class("BattleGateDodgem") ys.Battle.BattleGateDodgem = slot0 slot0.__name = "BattleGateDodgem" slot0.Entrance = function (slot0, slot1) slot1:sendNotification(GAME.BEGIN_STAGE_DONE, { prefabFleet = ys.Battle.BattleDataFunction.GetDungeonTmpDataByID(slot3).fleet_prefab, stageId = slot0.stageId, system = ...
---@class CS.FairyEditor.View.Document ---@field public panel CS.FairyGUI.GComponent ---@field public selectionLayer CS.FairyGUI.Container ---@field public inspectingTarget CS.FairyEditor.FObject ---@field public inspectingTargets CS.System.Collections.Generic.IList_CS.FairyEditor.FObject ---@field public inspectingObj...
--[[ This is a bare minimum S2E config file to demonstrate the use of libs2e with PyKVM. Please refer to the S2E documentation for more details. This file was automatically generated at {{ creation_time }} ]]-- s2e = { logging = { -- Possible values include "all", "debug", "info", "warn" and "none". ...
local COMMAND = Clockwork.command:New("PGI"); COMMAND.tip = "Gets a player's IC name, OOC name and steam ID and optionally his health and armor."; COMMAND.text = "[anything HP/Armor]" COMMAND.flags = CMD_DEFAULT; COMMAND.access = "o"; COMMAND.optionalArguments = 1; -- Called when the command has been run. function COM...
--[[ This script downloads all of the external dependencies and unzips them to the proper directory. You will need to have 7z in your path to run this, as well as the LuaSocket, UFS, and EX Lua modules. ]] local io = require("io") local http = require("socket.http") local ltn12 = require("ltn12") local lfs = re...
local about local core = require("one.core") local text = [[ Produced in 72 hours for the 28th Ludum Dare Game Jam Code - Lucien Greathouse Art - Cassie Scheirer HOW TO PLAY (scroll wheel or arrow keys to scroll) In this game, you have one button and one button only. You can pick this button and it can be anything,...
--[===[DOC = jsonishout [source,lua] ---- function jsonishout( inputValue ) --> jsonStr ---- Generate the JSON-like string `jsonStr` from the lua value `inputValue`. Only number or string keys are allowed in a table value. The value can be a table itself; any other value will be converted to string. If a table valu...
-- Change_Posture-- Implements the change posture task. -- The maximum modifier due to EW attack. -- This number scales posture change time, so if a unit is -- completely dependent on comms for operations, and comms -- are 100% degraded by an EW attack, then posture change -- times will be MAX_EW_MODIFIER x normal. MA...
local class = require 'ext.class' local table = require 'ext.table' local InitCond = require 'init.init' return table{ { name = 'Brio-Wu', initState = function(self, solver) if solver.eqn.guiVars.heatCapacityRatio then solver.eqn.guiVars.heatCapacityRatio.value = 2 end return [[ ion_rho = lhs ? 1 : ...
local class = require "lib.lua-oop" local Behavior = require "amour.stage.behavior" local Lvl4 = class("Behavior-Lvl4", Behavior) function Lvl4:constructor() Behavior.constructor(self) end function Lvl4:init() self.rectsGame = self:getCurrentStage().rectsGame self.rectA = ObjectsBasic.RectangleObj:ne...
local m = tigris.player -- Registered effects. m.effects = {} -- Sorted keys. m.keys = {} -- Status image elements. m.huds = {} -- Status text elements (player indexed). m.sts = {} local players = {} -- Get/set effect. function m.effect(player, name, set) local t = players[player:get_player_name()] local ...
local function find_suitable_location(self, hint) local size = Parameters.municipality_half_size local max_variance = size / 2 local pos = MapData.get_surface_pos(MapData.random_point_near(hint, 10)) local min = vector.new(pos.x - size, pos.y, pos.z - size) local max = vector.new(pos.x + size, pos.y, pos.z + ...
-- initialize Loader local require = require(game:GetService('ReplicatedStorage'):WaitForChild('Loader')) local Cache = {} -- keep track of the modules local List = {'Manager','Roblox','DataSync','Interface','Network'} -- lets set up a list of modules to require local function Boot() -- a simple function to load the ...
-- This is a comment # This is another comment print("passed # comment") assert(10 != 10 == false) assert(10 != 9 == true) print("passed !=") array = {1, 2, 3} for i, v in array do assert(i == v) end print("passed implicit pairs") i = 0 k = 0 repeat i = i + 1 if math.mod(i, 2) == 0 then continue end k...
aw_enable_noclip = false local function is_in_world( pos ) local tr = { collisiongroup = COLLISION_GROUP_WORLD } tr.start = pos tr.endpos = pos return util.TraceLine( tr ).HitWorld end function GM:Move( ply, mv ) if !aw_enable_noclip then return end local speed = 0.0005 * FrameTime() if ( mv:KeyDown( IN_SPE...
-- tostring replacement that assigns ids local ts, id, nid, types = tostring, {}, 0, { table = 'tbl', thread = 'thr', userdata = 'uda', ['function'] = 'func' } tostring = function(x) if not x or not types[type(x)] then return ts(x) end if not id[x] then nid = nid + 1; id[x] = types[type(x)] .. '.' .. nid end return ...
local Table = require('table') local Path = {} -- Split a filename into [root, dir, basename], unix version -- 'root' is just a slash, or nothing. local function split_path(filename) local root, dit, basename local i, j = filename:find("[^/]*$") if filename:sub(1, 1) == "/" then root = "/" dir = filename...
--- Wrapper for XCB $NAME local ffi = require("ffi") local xcbr = require("xcb.raw") local index = { } ffi.metatype("$TYPE", {__index=index})
-- Invector, License MIT, Author Jordach -- Disable the hand if in survival mode or play game mode, while -- creative mode acts as the built in track editor if not minetest.settings:get_bool("creative_mode") then minetest.override_item("", { wield_scale = {x=1,y=1,z=1}, wield_image = "transparent.png", range = ...
--------------------------------------------------------------------------------------------------- -- GetPolicyConfigurationData common module --------------------------------------------------------------------------------------------------- --[[ General configuration parameters ]] config.defaultProtocolVersion = 2 c...
object_mobile_dressed_droid_enemy_05 = object_mobile_shared_dressed_droid_enemy_05:new { } ObjectTemplates:addTemplate(object_mobile_dressed_droid_enemy_05, "object/mobile/dressed_droid_enemy_05.iff")
-- Euph:TODO , roar movie to set combatcapable and proper blizzlikeness. Done for now. function Roar_Frightened_Scream(Unit, event, miscUnit, misc) Unit:FullCastSpellOnTarget(31013, Unit:GetRandomPlayer()) end function Roar_OnKilledTarget(Unit, event, miscUnit, misc) Unit:SendChatMessage(14, 0, "You didn't have to...
FRAMED = {} local RoundStarted = false function FRAMED.UpdateRoundState() RoundStarted = net.ReadBool() print("Round Updated",RoundStarted) end function FRAMED.RoundStarted() return RoundStarted or false end net.Receive("RoundState",FRAMED.UpdateRoundState)
-- Validity check to prevent some sort of spam local function IsDelayed(ply) local lastTauntTime = ply:GetNWFloat("LastTauntTime") local delayedTauntTime = lastTauntTime + GetConVar("ph_customtaunts_delay"):GetInt() local currentTime = CurTime() return delayedTauntTime > currentTime end net.Receive("CL2SV_PlayThis...
local ffi = require("ffi") local ffi_util = require("common.ffi_util") ffi.cdef[[ typedef struct s_t { int v, w; } s_t; typedef const s_t cs_t; typedef enum en_t { EE } en_t; typedef struct pcs_t { int v; const int w; } pcs_t; typedef struct foo_t { static const int cc = 17; enum { CC = -37 }; int i; ...
function love.conf( t ) t.console = true t.window.width = 1080 t.window.height = 540 end
return { sharp = { 22, 9, 14 }, sharpp = { 22, 9, 16, 9 } }
--[[ lang.lua Copyright (C) 2019 Kano Computing Ltd. License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPLv2 Generated translation from 'es_AR' locale po file ]]-- return { ["letsGo"] = "\194\161Vamos! [ENTER]", ["cPowerTitle"] = "Potencia", ["binaryborderArea"] = "La Frontera Binaria", ["mrIn...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BseFinishAchievement_pb', package.seeall) local BSEFINISHACHIEVEMENT = protobuf.Descriptor(); local BSEFINISHACHIEVEMENT_ID_FIELD = protobuf.FieldDescriptor(); local BSEFINISHACHIEVEMENT_PERCENT_FIELD = protobuf.FieldDescriptor(); ...
savedata = function(name) local playerInfos = players[name] if not playerInfos.dataLoaded then return end if ROOM.name ~= '*#fofinho' and ROOM.name ~= '*#fofinho1' then if string.find(ROOM.name:sub(1,1), '*') then TFM.chatMessage('<R>Stats are not saved in rooms with "*".', name) return elseif ROOM.uniqueP...
local petstore_client = require "petstore.api.pet_api" local petstore_client_pet = require "petstore.model.pet" local my_pet_http_api = petstore_client.new("petstore.swagger.io", "/v2", {"http"}) local my_pet = my_pet_http_api:get_pet_by_id(5) for k,v in pairs(my_pet) do print(k,v) end local my_new_pet = petstore_c...
function toEmblem(amount) for i = 1, amount do MerchantItem4ItemButton:Click("Right") StaticPopup1Button1:Click() end end
furious_ronto = Creature:new { objectName = "@mob/creature_names:ronto_furious", socialGroup = "ronto", faction = "", level = 60, chanceHit = 0.55, damageMin = 470, damageMax = 650, baseXp = 5830, baseHAM = 11000, baseHAMmax = 14000, armor = 3, resists = {165,165,140,160,140,130,135,140,140}, meatType = "...
vehicle_generator "airtug" { -54.26639938354492, -1679.548828125, 28.4414, heading = 228.2736053466797 } spawnpoint 'mp_m_freemode_01' { x = -1045.3986816406, y = -2751.0119628906, z = 21.363430023193 }
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] ITEM.name = "Canned Tomato"; ITEM.model = "models/kek1ch/dev_tomato.mdl"; ITEM.width = 1; ITEM.height = 1; ITEM.description = "An aluminium can filled with diced tomato. You could eat these from the can, if you're desp...
require 'torch' require 'xlua' require 'optim' require 'pl' require 'trepl' require 'nn' ---------------------------------------------------------------------- local cmd = torch.CmdLine() cmd:addTime() cmd:text() cmd:text('Training a convolutional network for visual classification') cmd:text() cmd:text('==>Options') ...
Player=game:GetService("Players").LocalPlayer Character=Player.Character PlayerGui=Player.PlayerGui Backpack=Player.Backpack Torso=Character.Torso Head=Character.Head Humanoid=Character.Humanoid m=Instance.new('Model',Character) LeftArm=Character["Left Arm"] LeftLeg=Character["Left Leg"] RightArm=Character["Righ...
--[[ This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize co...
local CorePackages = game:GetService("CorePackages") local CoreGui = game:GetService("CoreGui") local Roact = require(CorePackages.Roact) local RoactRodux = require(CorePackages.RoactRodux) local t = require(CorePackages.Packages.t) local UIBlox = require(CorePackages.UIBlox) local withStyle = UIBlox.Style.withStyle ...
local json = require("JSON") local gears = require("gears") local lain = require("lain") local awful = require("awful") local naughty = require("naughty") local wibox = require("wibox") local brightness = require("widgets.brightness") local network_menu = require("widgets.damn.network") local notifier = require('widget...
----------------------------------- -- Area: Bastok Markets -- NPC: Salimah -- Notes: Start & Finishes Quest: Gourmet -- !pos -31.687 -6.824 -73.282 235 ----------------------------------- require("scripts/globals/quests") require("scripts/globals/titles") local ID = require("scripts/zones/Bastok_Markets/IDs") require...
---------------------------------------------- --Com ---------------------------------------------- local Com = class("Com") function Com:ctor() self.name = name end function Com:match(req, res) end function Com:get_name() if not self.name then return self.__cname end end function Com:get_node() return se...
Locales['en'] = { -- Global ['custom_kick'] = 'INPUT CUSTOM KICK MESSAGE', ['blip_garage'] = 'Garage | Public', ['blip_garage_private'] = 'Garage | Private', ['blip_pound'] = 'Garage | Pound', ['blip_police_pound'] = 'Garage | Policing Pound', ['blip_ambulance_pound'] = 'Garage | Ambulance Pound', ['garage'] = ...
--[[------------------------------------------------------------------ NUMBERS Draw image based numbers ]]-------------------------------------------------------------------- if CLIENT then -- Declare fonts surface.CreateFont("ds9hud_label", { font = "Helvetica Ultra Compressed", size = 13 * DS9HUD:Ge...
return function (Data) local TmpTable = {} local ArrayString, ErrMsg = Split(tostring(Data), ";") if not ArrayString then return nil, ErrMsg end for i,TmpData in pairs(ArrayString) do local TableString, ErrMsg = Split(tostring(TmpData), "|") if not TableString then return nil, ErrMsg end assert(#Ta...
---@class Browser C_Browser = {}
#!/usr/bin/env luajit package.path = "../?.lua" local procfs = require("lj2procfs.procfs") print(arg[1]..': ', procfs.sys.kernel[arg[1]])
local fs = require('filesystem') local term = require('term') local shell = require('shell') local repoName = "OC" local repoAuthor = "IdleAway" local repoBranch = "main" local url = "https://raw.githubusercontent.com/"..repoAuthor..'/'..repoName..'/'..repoBranch local targetPath = "/home/"..repoName local ...
require "import" import "android.app.*" import "android.os.*" import "android.widget.*" import "android.view.*" import 'android.support.*' import "com.androlua.LuaAdapter" import "org.w3c.dom.Text" import "android.view.WindowManager" import "android.widget.TextView" import "com.androlua.LuaAdapter" import "android.widg...
function HSLToRGB(h,s,l) local c = s * (1 - math.abs((2 * l) - 1)); local h6 = h * 6; --local hRem = h6 - math.floor(h6); local hRem = math.abs((h6 % 2) - 1); local x = c * (1 - hRem); local r,g,b = 0,0,0; if h6 <= 1 then r=c; g=x; b=0; elseif h6 <= 2 then r=x; g=c; b=0; elseif h6 <= 3 then r=0; g=c; b=...
local status_ok, nvim_tree = pcall(require, "nvim-tree") if not status_ok then return end local config_status_ok, nvim_tree_config = pcall(require, "nvim-tree.config") if not config_status_ok then return end local tree_cb = nvim_tree_config.nvim_tree_callback nvim_tree.setup { renderer = { root_folder_modi...
object_tangible_tcg_series7_garage_display_vehicles_podracer_anakin = object_tangible_tcg_series7_garage_display_vehicles_shared_podracer_anakin:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series7_garage_display_vehicles_podracer_anakin, "object/tangible/tcg/series7/garage_display_vehicles/podracer_anakin...
--[[ Copyright (C) 2012-2014 Spacebuild Development Team Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
-- $Id: //depot/Projects/StarWars_Expansion/Run/Data/Scripts/AI/LandMode/SellTacticalStructure.lua#1 $ --///////////////////////////////////////////////////////////////////////////////////////////////// -- -- (C) Petroglyph Games, Inc. -- -- -- ***** ** * * -- * ...
describe('stringstrong.startsWith() #search #startsWith', function() local strongstring lazy_setup(function() strongstring = require('src/strongstring') end) it('string starts with a given search string', function() local str = 'Some string to search in.' local search_str = 'So...
PLUGIN.name = "Vortigaunt Faction" PLUGIN.author = "JohnyReaper | Voicelines: sQubany" PLUGIN.description = "Adds some features for vortigaunts." ix.util.Include("sh_voices.lua") ix.config.Add("VortHealMin", 5, "Minimum health value that can be healed by vortigaunt" , nil, { data = {min = 1, max = 100}, category = ...
function uploadAll() require('getFirstLog') local first = getFirstLog() package.loaded['getFirstLog'] = nil getFirstLog = nil if (not first) then require('sleepWifi') sleepWifi() package.loaded['sleepWifi'] = nil sleepWifi = nil print('No more logs to...
----------------------------------- -- Ability: Chocobo jig -- Increases Movement Speed. -- Obtained: Dancer Level 55 -- TP Required: 0 -- Recast Time: 1:00 -- Duration: 2:00 ----------------------------------- require("scripts/globals/settings") require("scripts/globals/status") ----------------------------------- ...
object_tangible_item_som_blistmok_rug = object_tangible_item_som_shared_blistmok_rug:new { } ObjectTemplates:addTemplate(object_tangible_item_som_blistmok_rug, "object/tangible/item/som/blistmok_rug.iff")
require "lua/tools" header("Dna/Dnaa") local PI = 3.14159265358979323846 local E = 2.7182818284590452354 -- Create a new Dna local da = Dna() print(pad("da = Dna()"), da) -- Add some numbers da:AddNumber(PI) da:AddNumber(E) da:InsertNumber(2, 10.999999999999) da:AddNumber(PI*PI) da:AddNumber(E^(1/PI)) print("... a...
local data = {} data.Dataset = require('onmt.data.Dataset') data.Batch = require('onmt.data.Batch') data.Vocabulary = require('onmt.data.Vocabulary') return data
--[[ 3p8 Uses: Required for the gamemode to work. Initializes all the global variables. Spawns plants Spawns planets Spawns cities cities spawn shops and teleporters Todo: ]] AddCSLuaFile() ENT.Type = "anim" ENT.Model = "models/props_combine/breenglobe.mdl" --need a list of ENT. va...
-- credit to atom0s for help with decompiling -- Decompiled using luadec 2.2 rev: for Lua 5.1 from https://github.com/viruscamp/luadec return { AreaEvent = { [102] = { [104] = { { Msg = "I will surpass you and become the strongest hero!" }, { Msg = "Haahaha! Then...
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local usermanager = require "core.usermanager"; local new_sasl = require "util.sasl".new; local log = mod...
local Dungeon_PATH =({...})[1]:gsub("[%.\\/]dungeon$", "") .. '/' local class =require (Dungeon_PATH .. 'vendor/30log') local Dungeon = ROT.Map:extends { _rooms, _corridors } function Dungeon:__init(width, height) Dungeon.super.__init(self, width, height) self._rooms ={} self._corridors={} end function Dungeo...
local cachedGamemodeList local recacheInterval = 5000 --ms local lastRecacheTime = 0 function getCachedGamemodeList() if getTickCount() - lastRecacheTime > recacheInterval then cachedGamemodeList = getGamemodes() lastRecacheTime = getTickCount() end return cachedGamemodeList end
DarkRP.storeJailPos = DarkRP.stub{ name = "storeJailPos", description = "Store a jailposition from a player's location.", parameters = { { name = "ply", description = "The player of whom to get the location.", type = "Player", optional = false }, { name = "addingPos", description = "Whether t...
function Vocation.getBase(self) local base = self while base:getDemotion() do base = base:getDemotion() end return base end
Core = nil CreateThread(function() while Core == nil do TriggerEvent('RLCore:GetObject', function(obj) Core = obj end) Wait(0) end while not Core.Functions.GetPlayerData().job do Wait(0) end TriggerServerEvent('bb-banking:server:setNui') end) local createdBlips = {} isPopup = false is...
local assets = { Asset("ANIM", "anim/sch_scythe.zip"), Asset("ANIM", "anim/sch_swap_scythe.zip"), Asset("ATLAS", "images/inventoryimages/sch_scythe.xml"), Asset("IMAGE", "images/inventoryimages/sch_scythe.tex"), } local prefabs = { "sch_shadowtentacle_ice", "sch_shadowtentacle_fire", ...
--[[ Executes tasks with the help of coroutines. The tasks has to implement a Run method and should implement a Failed method. Copyright (C) Udorn (Blackhand) 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 Soft...
AddCSLuaFile() function ENT:Use( activator, caller, useType, value ) self.last_use = CurTime() if !self.sending then self:SetSpeaker( activator ) self:SetSending( true ) self.sending = true end end function ENT:OnButton(btn) if btn.x < self.curser.x and btn.x + btn.width > self.curser.x and btn.y < self.cur...
require "modules.options" require "modules.keymaps" require "modules.plugins" require "modules.colorscheme" require "modules.cmp" require "lsp" require "modules.telescope" require "modules.treesitter" require "modules.autopairs" --require("modules.go").setup() -- require("modules.gopls") -- Format on save vim.api.nvim...
----------------------------------- -- -- Zone: Kuftal_Tunnel (174) -- ----------------------------------- local ID = require("scripts/zones/Kuftal_Tunnel/IDs") require("scripts/globals/conquest") require("scripts/globals/treasure") require("scripts/globals/weather") require("scripts/globals/status") ------------------...