content
stringlengths
5
1.05M
---@class CS.UnityEngine.CanvasGroup : CS.UnityEngine.Behaviour ---@field public alpha number ---@field public interactable boolean ---@field public blocksRaycasts boolean ---@field public ignoreParentGroups boolean ---@type CS.UnityEngine.CanvasGroup CS.UnityEngine.CanvasGroup = { } ---@return CS.UnityEngine.CanvasGr...
----------------------------------- -- -- Zone: Arrapago_Reef (54) -- ----------------------------------- local ID = require("scripts/zones/Arrapago_Reef/IDs") require("scripts/globals/keyitems") require("scripts/globals/missions") require("scripts/globals/npc_util") require("scripts/globals/settings") require("scripts...
--[[ Project : Broker Pack Copyright : Copyright (c) 2011-2014 Frank Meus. All rights reserved. Purpose : --]] -- Local variables local UI_STATUS = { [0] = "", [1] = "<AFK>", [2] = "<DND>" }; local classFileNames, classes = {}, {}; -- Build list for class file names FillLocalizedClassList(classes,...
function MapKey(mode, keybind, command, opts) local options = {noremap = true} if opts then options = vim.tbl_extend('force', options, opts) end vim.api.nvim_set_keymap(mode, keybind, command, options) end
require("graphics_util") require("sound_util") local musics = {"main", "select_screen", "main_start", "select_screen_start"} local function load_theme_img(name) local img = load_img_from_supported_extensions("themes/"..config.theme.."/"..name) if not img then img = load_img_from_supported_extensions("themes/"...
local Type = require(script.Parent.Type) local ElementKind = require(script.Parent.ElementKind) local ElementUtils = require(script.Parent.ElementUtils) local Children = require(script.Parent.PropMarkers.Children) local Symbol = require(script.Parent.Symbol) local internalAssert = require(script.Parent.internalAss...
option("boost-python-suffix") set_default("3X") set_showmenu(true) set_category("hikyuu") set_description("Set suffix of libboost_python. ", "Boost.python 1.67 later use 3x like libboost_python35, ", "but older is libboost_python3", " - 3X a...
_G.CPlayer = {} _G.PlayerMethods = {} PlayerMethods.__call = function(self, source) local o = setmetatable({}, { __index = self, __tonumber = function(self) return self.id end, __tostring = function(self) return ('Player<%s>'):format(table.concat({'name: '..self:GetName(), 'source: '..self.source, 'id: '..s...
pink_memories = class({}) function pink_memories:GetDuration() return -1 end function pink_memories:GetEffectName() return "particles/econ/courier/courier_baekho/courier_baekho_ambient.vpcf" end function pink_memories:GetEffectAttachType() return PATTACH_CENTER_FOLLOW end function pink_memories:AllowIll...
function on_activate(parent, ability) local effect = parent:create_effect(ability:name(), ability:duration()) local cb = ability:create_callback(parent) cb:set_on_removed_fn("on_removed") effect:add_callback(cb) local anim = parent:create_anim("central_lightning") anim:set_moves_with_parent() a...
local RunService = game:GetService("RunService") local HttpService = game:GetService("HttpService") local Output local RemoteEvent = { ClassName = "RemoteEvent", Events = {} } function RemoteEvent:Constructor(...) local args = {...} if RunService:IsServer() then -- args[1] = name -- a...
-- Settings, etc. -- -- Finalize tech tree based on settings and other dependent mods. local util = require("__bztitanium__.data-util"); local mining_fluid if settings.startup["bztitanium-mining-fluid"] then mining_fluid = settings.startup["bztitanium-mining-fluid"].value end if mining_fluid == "chlorine" and dat...
object_building_player_sm_hut_house = object_building_player_shared_sm_hut_house:new { lotSize = 2, baseMaintenanceRate = 16, allowedZones = {"chandrila", "corellia", "coruscant", "dantooine", "dathomir", "endor", "geonosis", "hoth", "hutta", "jakku", "kaas", "kashyyyk", "korriban", "lok", "mandalore", "mustafar", "...
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg)...
local module = {} function module.RequestPart(part, v) local distance = 3 if v:IsA("Model") then if (v.PrimaryPart.Position - part.Position).magnitude <= distance then return true else return nil end else return nil end end return module
local invitational_pin_map = require("qnFiles/qnPlist/hall/invitational_pin"); local invitational_info= { name="invitational_info",type=0,typeName="View",time=0,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignCenter,stageW=0, { name="bg",type=1,typeName="Image",...
local util = require('utils') local opts = { silent = true } util.map('n', 'gT', ':BufferPrevious<CR>', opts) util.map('n', 'gt', ':BufferNext<CR>', opts)
-- ActionBar page 1 Stealth: slots 73 to 84 function initRogueData() azs.class.weapon = azs.class.weapon or getRogueWeapon() -- Could be "Sword" or "Dagger" azs.class.mainRole = azs.class.mainRole or "Damage" -- either "Damage" or "Stun" azs.debug("I am " .. azs.class.weapon .. " Rogue") azs.class.dps = ...
emu.keypost('\nj""\n') manager.machine.cassettes[":cassette"]:play()
pi = 3.1415 three = math.floor(3.1415) five = math.ceil(4.145) print (pi) print (three) print (five) five = 3 + 2 print (five) print (2 + 2) print (five + 1)
----------------------------------------- -- ID: 5346 -- Dvucca Fireflies -- Transports the user to Dvucca Isle Staging Point ----------------------------------------- require("scripts/globals/teleports") require("scripts/globals/status") require("scripts/globals/zone") ----------------------------------------- functi...
local function init() hook.Add("CanPlayerAccessDoor", "housessystemownerbuddy", ghomes.canUseKeyOnDoor) end local function getMoney(ply) return ply:GetCharacter():GetMoney() end local function addMoney(ply, amount) ply:GetCharacter():GiveMoney(amount) end local function formatMoney(amount) return ix.currency....
--=========== Copyright © 2019, Planimeter, All rights reserved. ===========-- -- -- Purpose: Text class -- --==========================================================================-- class "gui.text" ( "gui.box" ) local text = gui.text function text:text( parent, text ) gui.box.box( self, parent, nil ) self:se...
local auto_pairs = require('nvim-autopairs') local Rule = require('nvim-autopairs.rule') auto_pairs.setup({ check_ts = true }) -- Integration with: nvim-autopairs -- Crashed nvim on 2021-10-17 require('nvim-autopairs.completion.cmp').setup({ map_cr = true, -- map <cr> on insert mode map_complete = true, -- it ...
--[[ © 2013 GmodLive private project do not share without permission of its author (Andrew Mensky vk.com/men232). --]] local greenCode = greenCode; local concommand = concommand; greenCode.command = greenCode.kernel:NewLibrary( "Command" ); function greenCode.command:Add( sName, nAdminRight, callback...
local class = require("pl.class") local delegation = require("invokation.lang.delegation") describe("delegation", function() describe(".delegate", function() local Engine = class() -- luacheck: no self function Engine:start() return "engine started" end -- luacheck: no self function E...
-- Experiment 2 - Monospaced Text -- -- By Chris Herborth (https://github.com/Taffer) -- MIT license, see LICENSE.md for details. -- All the stuff we've loaded already. gameResources = { fonts = {}, images = {}, } -- Current state of the game. gameState = { buff = {}, -- Individual lines of text. ...
include("shared.lua") function ENT:Initialize() self.seats = {} self.passengers = {} end wac.hook("wacKey", "wac_seatswitcher_input", function(key, pressed) if not pressed or vgui.CursorVisible() then return end if key >= 2 and key <= 10 then RunConsoleCommand("wac_setseat", key-1) end end) ...
function enable_naathfir(parent) game:set_world_map_location_visible("naathfir", true) game:set_world_map_location_enabled("naathfir", true) end function naathfir_road_thugs(parent) local thug = game:entity_with_id("naathfir_thug02") game:start_conversation("naathfir_road_thug", thug) end function s...
local generator = require "zenbones.specs" local bg = vim.opt.background:get() local p = require("kanagawabones.palette")[bg] return generator.generate(p, bg, generator.get_global_config("kanagawabones", bg))
function math.lerp(a, b, k) --just fun stuff if a == b then return a else if math.abs(a-b) < 0.005 then return b else return a * (1-k) + b * k end end end function love.load() font = love.graphics.newFont(48) myStyle = uare.newStyle({ width = 400, height = 60, --color color...
AddCSLuaFile("sh_config.lua") AddCSLuaFile("sh_interface.lua") AddCSLuaFile("cl_main.lua") AddCSLuaFile("ui/base.lua") AddCSLuaFile("ui/cq_button.lua") AddCSLuaFile("ui/cq_listview.lua") --[[------------------------------------------------------------------------- HOOKS -----------------------------------------------...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) ESX.RegisterCommand('chaleco', 'superadmin', function(xPlayer, args, showError) args.playerId.triggerEvent('ch_shield:armourPlayer') args.playerId.triggerEvent('chat:addMessage', {args = {'^5Chaleco', 'Tu Chaleco Fue Devuelto'}}) end,...
--[[ Copyright 2012 Rackspace 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 writing, software dis...
return { { effect_list = { { type = "BattleBuffAddAttrRatio", trigger = { "onAttach", "onStack", "onRemove" }, arg_list = { attr = "torpedoPower", number = -50 } }, { type = "BattleBuffAddAttrRatio", trigger = { "onAttach", "onStack", "onRe...
local File, Width = ... assert(File) assert(Width) local FullFile = THEME:GetPathB("", "_frame files 3x1/" .. File) local Frame = LoadActor(FullFile) return Def.ActorFrame { Frame .. { InitCommand = function(self) self:setstate(0):pause():horizalign(right):x(-Width / 2) end }, Frame .. { InitComm...
--[[ Description: Various uncategorized utility methods. Author: Sceleratis Date: 1/8/2022 --]] local Root local Queues = {} local Utilities = {} local RateLimits = {} local ParentTester = Instance.new("Folder") local __RANDOM_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" local function PropertyCheck(obj, pro...
ESX = {} ESX.Players = {} ESX.UsableItemsCallbacks = {} ESX.Items = {} ESX.ServerCallbacks = {} ESX.TimeoutCount = -1 ESX.CancelledTimeouts = {} ESX.LastPlayerData = {} ESX.Pickups = {} ESX.PickupId = 0 ESX.Jobs ...
--[[------------------------------------------------------------------ CORE The core file of the HUD, where the other files are included and the default HUD is hid ]]-------------------------------------------------------------------- -- Configuration DS9HUD:IncludeFile("config/config.lua"); -- Util DS9HUD:Incl...
AzTranslate = AzTranslate or {} AzTranslate.Keys = AzTranslate.Keys or {} AzTranslate.Aliases = AzTranslate.Aliases or {} function AzTranslate.Fallback(lang, key, ...) if (lang != "en") then return AzTranslate.GetTranslation("en", key, ...) else -- MsgC(Color(255, 128, 0), "! Translation key \"", key,"\"...
-- Copyright (C) 2018 The Dota IMBA 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 ...
local DungeonIIIArmorVendorID = 43476 local DungeonIIIArmorLoop = { [1] = {28350,27803,28205,27475,27977}, -- Warrior -- [2] = {28225,27771,28403,27497,27870,28285,27739,28203,27535,27839}, -- Paladin -- [3] = {28275,27801,28228,27474,27874,28192,27713,28401,27528,27936}, -- Hunter -- [4] = {2841...
--[[ Copyright 2018 Chrisgbk 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, distribute, sublicen...
local TDKP_Importer = {} _G["TDKP_Importer"] = TDKP_Importer local L = LibStub("AceLocale-3.0"):GetLocale("TurboDKP") function TDKP_Importer:ParsePlayerDKP_CSV(data) local lines = splitString(data, "\n") local headerColNames = pack(strsplit(",", lines[1])) local headerPairs = {} local current = {} ...
-- generates the events for moving the snakes. local MoveSnakes = require("lockstep.events.move-snakes"); local SnakeMoveTimer = {} function SnakeMoveTimer:new(steptime, eventManager) self.__index = self return setmetatable({ manager=eventManager, steptime=steptime, lastStep=0 }, ...
if (CLIENT) then do local scale_factor_x = 1 / 1920 local scale_factor_y = 1 / 1080 -- y function math.ScaleH(size) return math.floor(size * (ScrH() * scale_factor_y)) end math.Scale = math.ScaleH -- x function math.ScaleW(size) return math.floor(size * (ScrW() * scale_factor_x)) end end en...
return {'uso'}
test = require 'u-test' common = require 'common' function LuaSetupHandler() local hr = GetLastError() print("LuaSetupHandler: hr=" .. hr) SetCheckHR(1) if hr ~= 0 then print("LuaSetupHandler: hr != 0. Calling UwpXblSigninAsync") common.doCallbackOnError = false UwpXblSigninAsy...
local ROOT = script.parent local CIRCLE_BG = script:GetCustomProperty("CircleLocalPlayerBG"):WaitForObject() local CIRCLE = script:GetCustomProperty("Circle"):WaitForObject() local NAME = script:GetCustomProperty("Name"):WaitForObject() local DEAD = script:GetCustomProperty("Dead"):WaitForObject() local DIRECTION_ROOT...
return function(c, s) return { { 'LspReferenceText', c.dark_white }, { 'LspReferenceRead', c.white }, { 'LspReferenceWrite', c.bright_white }, { 'LspDiagnosticsDefaultHint', c.intense_blue }, { 'LspDiagnosticsDefaultError', c.red }, { 'LspDiagnosticsDefaultWarning', c...
return tonumber(ARGV[1]) + 1
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** require "ISUI/ISRadialMenu" ---@class ISFirearmRadialMenu : ISBaseObject ISFirearmRadialMenu = ISBaseObject:derive("ISFirearmRadialM...
local frame = CreateFrame("FRAME"); -- Need a frame to respond to events frame:RegisterEvent("ADDON_LOADED"); -- Fired when saved variables are loaded frame:RegisterEvent("PLAYER_LOGOUT"); -- Fired when about to log out function frame:OnEvent(event, arg1) if event == "ADDON_LOADED" and arg1 == "COMBAT_DUMP" then pr...
return { ["/slow-resource"] = { GET = function(self) if self.params.prime then ngx.timer.at(0, function() local _, err = kong.db.connector:query("SELECT pg_sleep(1)") if err then ngx.log(ngx.ERR, err) end end) return kong.response.exit(204) ...
function onReceiveMail(cid, sender, item, openBox) return true end
-- Calculates the unExposure value used by post processing shaders --[[ r, g, b, and a are the color components as calculated by LumDownsample.frag, which downsamples the texture output by LogLuminance.frag. --]] Vorb.register("calculateExposure", function (r, g, b, a) local avgLuminance = math.exp(r) local ...
Config.Stations.pillboxsouth = { Label = _U('pillboxsouth-station-label'), Code = _U('pillboxsouth-station-code'), --This value will only be used if Config.PriceOverride is set to nil Price = 17, BlipInfo = { Sprite = 480, Color = 4, Pos = {x = -212.29, y = -1033.99, z = 30.14} }, Zones = { Ticket1 = ...
local OOP = require("oop"); local misc = require("misc"); local bzAi = require("bz_ai"); local bzObjects = require("bz_objects"); local bzObjective = require("bz_objt"); local rx = require("rx"); local Decorate = OOP.Decorate; local Implements = OOP.Implements; local AiDecorator = bzAi.AiDecorator; local Class...
--[[ LICENSE Copyright (c) 2014-2015 Daniel Iacoviello 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,...
local M = {} local private = {} local mesh_builder = {} local Cpml = require 'cpml' local Vec3 = Cpml.vec3 local dir = (...):gsub('.[^%.]+$', '') local Util = require(dir..'.util') local sin = math.sin local cos = math.cos local Model function M.inject(model_cls) Model = model_cls for k, v in pairs(M) do ...
-- Copyright (c) 2021 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("moonpie.tables.index_of", function() local indexOf = require "moonpie.tables.index_of" it("finds the index of an item", function() local find = {} local tb...
-- lustache: Lua mustache template parsing edited by Tigo. -- Copyright 2013 Olivine Labs, LLC <projects@olivinelabs.com> -- Copyright 2020 TigoDevelopment, LLC <me@tigodev.com> -- MIT Licensed. function CreateScanner(str) local string_find, string_match, string_sub = string.find, string.match, string.sub local sel...
-- Copyright 2015-2022 Mitchell. See LICENSE. -- PowerShell LPeg lexer. -- Contributed by Jeff Stone. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, S = lpeg.P, lpeg.S local lex = lexer.new('powershell') -- Whitespace. lex:add_rule('whitespace', token(lexer.WHITESPACE...
ffi = require "ffi" require "LDYOM.Scripts.baseNode" class = require "LDYOM.Scripts.middleclass" Node = bitser.registerClass(class("NodeNumberToString", BaseNode)); Node.static.name = imgui.imnodes.getNodeIcon("func")..' '..ldyom.langt("CoreNodeNumberToString"); function Node:initialize(id) BaseNode.initialize(self...
local function create(class, props, ...) local x = Instance.new(class) if props then for k, v in pairs(props) do x[k] = v end end for _, child in ipairs({...}) do child.Parent = x end return x end local function createText(class, props, ...) -- same as create but sets the font to SourceSans since Legacy...
k=0 function TestLoop() for i=1, 10000, 1 do for j=1, 10000, 1 do k=k+1 k=k+k+1 k=k+k+k+1 k=k+k+k+k+1 k=k+k+k+k+k+1 end end end print 'haha' TestLoop();
local nvim_lsp = require('lspconfig') -- Use an on_attach function to only map the following keys -- after the language server attaches to the current buffer local on_attach = function(client, bufnr) local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end local function buf_set_option(...) v...
addEventHandler("onResourceStart", resourceRoot, function() local upgradePrices, exclusiveUpgrades = exports.v_tuning:getTuningUpgrades() overlaysPrice = upgradePrices["Overlays"] for i, player in pairs(getElementsByType("player")) do updatePlayerOverlays(player) end end) function updatePlayerOverlays(player) i...
---@meta ---@class cc.TransitionProgressInOut :cc.TransitionProgress local TransitionProgressInOut={ } cc.TransitionProgressInOut=TransitionProgressInOut ---* Creates a transition with duration and incoming scene.<br> ---* param t Duration time, in seconds.<br> ---* param scene A given scene.<br> ---* return An a...
local I18N = require("api.I18N") local Sidequest = require("mod.elona_sys.sidequest.api.Sidequest") local Event = require("api.Event") local function order(elona_id) return 100000 + elona_id * 10000 end data:add_type { name = "guild", fields = { { name = "guest_trainer_skills", type =...
-- Copyright 2011 by Jannis Pohlmann -- Copyright 2012 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header$ --- A Stack i...
local Timer = {} local json = "" local name= nil local currentTime; local timeInSeconds; local startTime; local endTime; local userName= nil local isTimerActive= true local success= false function Timer:new() o = {} setmetatable(o, self) self.__index = self return o end function Timer:getUserName() return ...
-- export to lua tables for in-game use local parser = require("Util/wowtoolsparser") local Util = require("Util/Util") local output = "KethoWowpedia/dbc/%s.lua" Util:MakeDir("KethoWowpedia/dbc") local handlers = { creaturemodeldata = { fs = '\t[%d] = %d,\n', func = function(csv) local t = {} for l in csv:...
#!/usr/local/bin/luajit function main() -- Load data connections = {} for line in io.lines() do if line == "" then break end for value in string.gmatch(line, "%d+") do connections[#connections+1] = tonumber(value) end end -- Load queries in_conn = {} earliest_arr = {} for departure, ar...
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] -- Called when Clockwork has loaded all of the entities. function cwSaveItems:Cloc...
local M = {} M.config = function() local status_ok, presence = pcall(require, "presence") if not status_ok then return end presence:setup({ auto_update = true, neovim_image_text = "LunarVim to the moon", main_image = "file", enable_line_number = false, editing_text = "📝 Editing %s", ...
object_building_general_ord_guild_commerce = object_building_general_shared_ord_guild_commerce:new { } ObjectTemplates:addTemplate(object_building_general_ord_guild_commerce, "object/building/general/ord_guild_commerce.iff")
-- Log statistics to Prometheus -- -- Copyright (C) 2014 Daurnimator -- Copyright (C) 2018 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> -- -- This module is MIT/X11 licensed. module:set_global(); local tostring = tostring; local t_insert = table.insert; local t_concat = table.concat; local socket = require "socket"; ...
-- the device maps are somewhat simpler than keymaps in that we do not support -- n- states (press a then dash and merge into..) or state modifiers [btn1+btn2] -- but only a translation [SLOT(1), SUBID(4)] into something like PLAYER1_UP local remap_tbl = {}; remap_tbl[3] = "START"; remap_tbl[0] = "SELECT"; remap_tbl[4...
--8x5 LED Matrix local json = dofile("/home/pi/Desktop/Matrix/json.lua") local socket = require("socket") local periphery = require('periphery') local GPIO = periphery.GPIO print("Using GPIO:",GPIO.version) print("Loading the font...") local fontfile = io.open("/home/pi/Desktop/Matrix/font.json","r") local fontjson...
object_tangible_quest_rebel_rtp_luke_healed_plant = object_tangible_quest_rebel_shared_rtp_luke_healed_plant:new { } ObjectTemplates:addTemplate(object_tangible_quest_rebel_rtp_luke_healed_plant, "object/tangible/quest/rebel/rtp_luke_healed_plant.iff")
--- -- Implementation of the limited memory BFGS algorithm -- @classmod LBFGS local m = require "math" local mc = require "flos.middleclass.middleclass" local num = require "flos.num" local optim = require "flos.optima.base" -- Create the LBFGS class (inheriting the Optimizer construct) local LBFGS = mc.class("LBFGS...
util.AddNetworkString( "EPS_AddMemo" ) util.AddNetworkString( "EPS_RemoveMemo" ) util.AddNetworkString( "EPS_RetrieveMemos" ) EggrollPoliceSystem.CurrentMemos = { } -- Memos table is formatted like so: --[[ { [ 1 ] = { -- Is the player's user ID for the session. Can be retrieved with ply:UserID( ). Names can be cha...
--[[ Sticky Channels Module ]]-- local _, BCM = ... BCM.modules[#BCM.modules+1] = function() if bcmDB.BCM_Sticky then bcmDB.sticky = nil return end if not bcmDB.sticky then bcmDB.sticky = {} bcmDB.sticky.EMOTE = 1 bcmDB.sticky.YELL = 1 bcmDB.sticky.RAID_WARNING = 1 end for k, v in...
num_enemies = 2 boss_fight = false experience=360 gold=250 function start() addEnemy("Macrocat", 50, 60); addEnemy("Macrocat", 70, 100); end function get_speech() return nil end function get_item() if (getRandomNumber(2) == 0) then return ITEM_HOLY_WATER end return -1 end
--[[ Endoflame: OpenComputers Feeder for Endoflame Copyright (c) 2018, 2019 Gladox114 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 t...
function getElementsWithinMarker(marker) if (not isElement(marker) or getElementType(marker) ~= "marker") then return false end local markerColShape = getElementColShape(marker) local elements = getElementsWithinColShape(markerColShape) return elements end function table.merge(t, ...) for _,tb in pairs(...) do...
--- -- SQL specific API view -- -- Copyright Tor Hveem <thveem> 2013-2014 -- -- local setmetatable = setmetatable local ngx = ngx local string = string local cjson = require "cjson" local io = require "io" local pg = require "resty.postgres" -- https://github.com/azurewang/lua-resty-postgres local assert = assert local...
-- 83,53,10 -- brown = rt.material({.325490196, .207843137, .039215686}, {0.0, 0.0, 0.0}, 50) tree = rt.textured_material("texture/tree_texture.png", 1.0, 1.0, {0.0, 0.0, 0.0}, 0) red = rt.material({1, 0, 0}, {0.5, 0.4, 0.8}, 25) scene = rt.node('scene') scene:rotate('X', 23) scene:translate(0, -2, -15) -- cyl = rt.c...
--Function Defining function drawText(_x,_y,_line1,_line2,_line3) w, h = term.getSize() local x = _x or 1 local y = _y or h-3 term.setCursorPos(x,y) print("/"..("-"):rep(w-2).."\\") print("|".._line1..(" "):rep(w-(#_line1+2)).."|") print("|".._line2..(" "):rep(w-(#_line2+2)).."|") print("|".._line3..(" ...
-------------------------------------------------------------------------------- -- Handler.......... : onSetLocalPath -- Author........... : -- Description...... : -------------------------------------------------------------------------------- --------------------------------------------------------------------...
-- SilentsReplacement -- InitMaidFor -- August 27, 2021 --[[ InitMaidFor(tabl : table, maid : Maid, method : function) --> [] nil ]] local LocalConstants = { ErrorMessages = { InvalidArgument = "Invalid argument#%d to %s: expected %s, got %s", }, } local Maid = require(script.Maid) return function(tabl, mai...
local a = FIRST local b = SECOND assert(checkenum(a)==TRUE) assert(checkenum(b)==FALSE) print("Enum test OK")
local mod = DBM:NewMod(1750, "DBM-EmeraldNightmare", nil, 768) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 14741 $"):sub(12, -3)) mod:SetCreatureID(104636) mod:SetEncounterID(1877) mod:SetZone() --mod:SetUsedIcons(8, 7, 6, 3, 2, 1) mod:SetHotfixNoticeRev(15125) mod.respawnTime = 30 mo...
---@class CS.FairyEditor.FScrollPane ---@field public DISPLAY_ON_LEFT number ---@field public SNAP_TO_ITEM number ---@field public DISPLAY_IN_DEMAND number ---@field public PAGE_MODE number ---@field public TOUCH_EFFECT_ON number ---@field public TOUCH_EFFECT_OFF number ---@field public BOUNCE_BACK_EFFECT_ON number ---...
local api = vim.api local g = vim.g local opt = vim.opt local cmd = vim.cmd -- Remap leader and local leader to <Space> api.nvim_set_keymap("", "<Space>", "<Nop>", { noremap = true, silent = true }) g.mapleader = " " g.maplocalleader = " " opt.termguicolors = true -- Enable colors in terminal opt.hlsearch = true --Se...
--- -- Creates an opaque background of a certain height and width. -- -- @module UIBackground -- -- ------------------------------------------------ -- Required Modules -- ------------------------------------------------ local UIElement = require( 'src.ui.elements.UIElement' ) local TexturePacks = require( 'src.ui.te...
require 'torch' require 'nn' require 'dpnn' require 'cudnn' local models = {} function models.create_G_decoder_upsampling32x32(dimensions, noiseDim, cuda) local model = nn.Sequential() if cuda then model:add(nn.Copy('torch.FloatTensor', 'torch.CudaTensor', true, true)) end -- 4x4 model:a...
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0293-vehicle-type-filter.md --------------------------------------------------------------------------------------------------- -- Descr...
local _, private = ... -- Lua Globals -- -- luacheck: globals wipe next tinsert sort tonumber -- RealUI -- local RealUI = _G.RealUI local Currency = RealUI:GetModule("Currency") local characterInfo = RealUI.charInfo local currencyDB local neutralTCoords = {0.140625, 0.28125, 0.5625, 0.84375} local function GetInline...