content
stringlengths
5
1.05M
--function mobility () -- local state = {x = 0, y = 0} -- -- local move = function (x, y) -- state.x = state.x + x -- state.y = state.y + y -- end -- -- local get_position = function () -- return {x = state.x, y = state.y} -- end -- -- return { -- move = move, -- get...
local GuiService = game:GetService("GuiService") local Players = game:GetService("Players") local HttpService = game:GetService("HttpService") local contextKey = newproxy(true) local redirectContainer = Instance.new("ScreenGui") redirectContainer.Name = "GamepadRedirectors" redirectContainer.Parent = Players.LocalPla...
return { id = "ingotGold", name = "Gold Ingot", tier = 4, spriteSheet = "materials", spriteCoords = Vector2.new(5,2), recipe = { oreGold = 15, }, craftQuantity = 5, tags = { "material", } }
function ROOKI.DrawEdges(x, y, width, height, edgeSize, edgeWidth, edgedata) if (not edgedata) then edgedata = { rt = true, lt = true, rb = true, lb = true, } end if (not edgeSize) then edgeSize = 1 end if (not e...
local lua = require "lapis.lua" local lapis = require "lapis.init" local app = lua.class({ ["/"] = function(self) return self:html(function() a({ href = self:url_for("user", { name = "leafo" }) }, "Go to profile") end) end, [{user = "/user/:name"}] = function(self) return self:html(function()...
--Note: Wait for answer from question APPLINK-13276 to update expected result for test cases that related to info parameter in response. --Updated for APPLINK-13276 --Current defects: --APPLINK-9734: ResetGlobalProperties doesn't reset HELPPROMPT and VRHELPITEMS to default values --APPLINK-13235: ResetGlobalProper...
-- ... csharp.lua
local RSwitch = require 'radioswitch' local b = RSwitch.new() assert(not b:isSelected()) b:toggle() assert(b:isSelected()) b:toggle() assert(not b:isSelected()) print('==== RADIOSWITCH PASSED ====')
BLTModItem = BLTModItem or blt_class() local padding = 10 local massive_font = tweak_data.menu.pd2_massive_font local large_font = tweak_data.menu.pd2_large_font local medium_font = tweak_data.menu.pd2_medium_font local small_font = tweak_data.menu.pd2_small_font local massive_font_size = tweak_data.menu....
--[[-------------------------------------------------------------------]]--[[ Copyright wiltOS Technologies LLC, 2020 Contact: www.wiltostech.com ----------------------------------------]]-- wOS = wOS or {} ...
-- array.lua -- (C) 2013 Lesley De Cruz -- See LICENSE.txt for license information. ------------------------------------------------------------------------ -- Arrays with operations. -- -- This module provides a function which returns a specialized -- constructor for ffi-based arrays of size n (zero-filled by default...
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.qos", package.seeall) function index() if not nixio.fs.access("/etc/config/qos") then return end local page entry({"admin","QOS"}, firstchild(), "QOS", 81).dependent = false pa...
Player=game:GetService("Players").LocalPlayer Character=Player.Character PlayerGui=Player.PlayerGui Backpack=Player.Backpack Torso=Character.Torso Head=Character.Head Humanoid=Character.Humanoid LeftArm=Character["Left Arm"] LeftLeg=Character["Left Leg"] RightArm=Character["Right Arm"] RightLeg=Character["Right ...
hook.Add('PlayerSay', 'TTS.ChatLog', function(ply, text, team) WS.Bus.LogsController:emit('test', { type = 'game_chat', attrs = { user_ids = ply:GetUserID(), text = text, team = team and '[TEAM]' or ' ' } }) end)
--[[ Variables ]] local focusTaken = false local reDelayed = false local prevupdate = 0 local cannotPullWeaponInAnimation = false local CurrentSqlID = 0 local currentInformation = false local UNARMED_HASH = `WEAPON_UNARMED` local armed = false local unholsteringactive = false local lastWeaponDeg = 0 local shotRecen...
local llpListener=TcpListener:extends() llpListener.__name='LLP Listener' function llpListener:__init(data, channelName, logger) if not data.startMessageChars then data.startMessageChars=DEFAULT_LLP_START_OF_MESSAGE end if not data.endMessageChars then data.endMessageChars=DEFAULT_LLP_END_O...
local path = mod_loader.mods[modApi.currentMod].scriptPath local getModUtils = require(path .."libs/getModUtils") local phases = require(path .."phases") local this = {} local function init() for i, v in pairs(_G) do if type(v) == 'table' then if type(v.GetTargetScore) == 'function' then local old = v.GetTa...
local isClient = Ext.IsClient() MessageBox = {} ---@private function MessageBox:FireEvent(id, isConfirmed, character) if isClient then if not character then character = Client:GetCharacter() end Ext.PostMessageToServer("LeaderLib_MessageBoxEvent", Ext.JsonStringify({ID=id, IsConfirmed=isConfirmed, NetID=cha...
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
--The default configuation --per ,err = P(peripheral,mountedName,configTable) _DirectAPI = true --An important feature to speed up Peripherals functions calling, calls them directly instead of yeilding the coroutine. --Create a new cpu mounted as "CPU" local CPU, CPUKit = assert(P("CPU")) --Create a new gpu mounted ...
--- Discörd - A Discord bot library for LuaJIT and LÖVE. -- @classmod discord -- @author Rami Sabbagh (@RamiLego4Game) -- @copyright 2018-2020 Rami Sabbagh -- @license MIT local libraryPath = ... local class = require(libraryPath..".third-party.middleclass") local discord = class("discord.Discord") --- A function fo...
local dl = require 'dataload._env' local TensorLoader = torch.class('dl.TensorLoader', 'dl.DataLoader', dl) function TensorLoader:__init(inputs, targets) self.inputs = inputs self.targets = targets assert(torchx.recursiveBatchSize(self.inputs) == torchx.recursiveBatchSize(self.targets)) end function Tens...
-------------------------------- -- Humanoid arm state -- (c) 2013 Stephen McGill, Seung-Joon Yi -------------------------------- local state = {} state._NAME = ... local Body = require'Body' local util = require'util' local vector = require'vector' local movearm = require'movearm' local t_entry, t_update, t_finis...
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] Shops = {} InteriorShops = {} CShop = {} function CShop:const...
-- Globals: Keybinds local _, CLM = ... local LOG = CLM.LOG local EVENT_FILL_AUCTION_WINDOW = "CLM_AUCTION_WINDOW_FILL" BINDING_HEADER_CLM = "Classic Loot Manager" function CLM_Binding_StartAuction() -- luacheck: ignore LOG:Trace("CLM_Binding_StartAuction") if GameTooltip then local _, itemLink = ...
return {'psalm','psalmberijming','psalmboek','psalmbord','psalmbundel','psalmdichter','psalmeren','psalmgezang','psalmist','psalmlied','psalmodie','psalmodieren','psalmvers','psalmvertaling','psalmzingen','psalter','psalterion','psalterium','psalmenoproer','psalmtekst','psalmen','psalmpomp','psalmberijmingen','psalmboe...
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is dis...
error("Something bad happened!")
--defines a global table of colors local temp = 0.6 --globals GM.UIColors = { --the md logo's colors Logo = { Red = Color(255, 1, 1), RedShadow = Color(155, 0, 0) }, --general colors for the HUD HUD = { --colors for the player's status, like health and armor Status = { Armor = Color(128, 255, 128), ...
local process = {}; local environmentsVar = "undefined"; if (script.Parent:FindFirstChild(".env")) then environmentsVar = require(script.Parent[".env"]); end; process.memoryUsage = function() return gcinfo("count"); end; process.env = environmentsVar; process.exit = function(code) --[[ Don't use this if you...
local ERROR_CHECKED_SPECIFIC_GAME_WRAPPER = require "error_checked_specific_game_wrapper" -- NOTE: This might be specific to mmbn3, I think. return ERROR_CHECKED_SPECIFIC_GAME_WRAPPER.get_module("buff_effects", GAME_ID, "reflect")
return { "accordion-body", "accordion-button", "accordion-collapse", "accordion-flush", "accordion-header", "accordion-item", "active", "alert", "alert-danger", "alert-dark", "alert-dismissible", "alert-heading", "alert-info", "alert-light", "alert-link", "alert-primary", "alert-second...
local Gui = require("api.Gui") local Draw = require("api.Draw") local I18N = require("api.I18N") local Ui = require("api.Ui") local data = require("internal.data") local IUiLayer = require("api.gui.IUiLayer") local UiList = require("api.gui.UiList") local UiWindow = require("api.gui.UiWindow") local InputHandler = req...
-- treesitter local treesitter_config = require('nvim-treesitter.configs') treesitter_config.setup( { ensure_installed = "maintained", highlight = { enable = true, disable = {}, }, } ) -- nvim-cmp local cmp = require('cmp') cmp.setup({ snippet = { expand = function(args) -- ...
--[[ Copyright 2018 Lex Robinson 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 ...
require 'src/Dependencies' function love.load() ZOOM_LEVEL = 1.5 VIRTUAL_WIDTH, VIRTUAL_HEIGHT = 84 * ZOOM_LEVEL, 48 * ZOOM_LEVEL WINDOW_WIDTH, WINDOW_HEIGHT = 630, 360 COLOR_DARK = { 67/255, 82/255, 61/255, 1} COLOR_LIGHT = {199/255, 240/255, 216/255, 1} FPS_LIMIT = 15 FPS_FRAME_DURATI...
--=========== Copyright © 2020, Planimeter, All rights reserved. ===========-- -- -- Purpose: -- --==========================================================================-- require( "class" ) local ffi = require( "ffi" ) class( "framework.html.browser" ) local browser = framework.html.browser local toutf16 = fram...
----------------------------------- -- Area: Upper Jeuno -- NPC: Guide Stone -- !pos 25 -3 -41 244 ----------------------------------- local ID = require("scripts/zones/Upper_Jeuno/IDs"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) player:messageSpe...
local o = scene.newobject() o:set_name('blockermad') local c = o:add_box_collider(51, 51) c:set_friction(0.1) o:set_sprite(50) return o
---@classmod Condition Condition = Class{} ---Initiate a condition from its definition. You shouldn't use this function, the game uses it at loadtime to instantiate the conditions. --@param data Table. The table of condition information. --@return Condition. The condition itself. function Condition:init(data) for key...
-- pam_lua bootcode/init code. -- Parse args. arg = {} do for i=1, #pam.args do local str = pam.args[i] local equals_pos = string.find(str, "=", 1, true) if equals_pos then -- found = local key = string.sub(str, 1, equals_pos-1) local value = string.sub(str, equals_pos+1) arg[key] = value else ...
--message("sanity check") local DataGather_OpenLootingFrame = CreateFrame("Frame") local DataGather_CloseLootingFrame = CreateFrame("Frame") local LootingDone = false DataGather_OpenLootingFrame:RegisterEvent("LOOT_READY") DataGather_CloseLootingFrame:RegisterEvent("LOOT_CLOSED") DataGather_OpenLootingFrame:SetScript...
--- ---These formulas are stolen straight from WoW. ---See: http://www.wowwiki.com/Formulas:XP_To_Level --- --- ---Extra difficulty factor to level ---@param level number local function reduction(level) local val if level <= 10 then val = 1 elseif level >= 11 and level <= 27 then val = 1 - (level - 10) / ...
-- Stolen from Spy add-on by Immolation. -- https://www.curseforge.com/wow/addons/spy -- Class enum. Values as provided by the game API. -- local DRUID = "DRUID"; local HUNTER = "HUNTER"; local MAGE = "MAGE"; local PALADIN = "PALADIN"; local PRIEST = "PRIEST"; local ROGUE = "ROGUE"; local SHAMAN = "SHAMAN"; local WARL...
local t = require( "taptest" ) local gcd = require( "gcd" ) t( gcd( 5, 2 ), 1 ) t( gcd( 24, 36 ), 12 ) t( gcd( 7, 1 ), 1 ) t( gcd( 5, 0 ), 5 ) t( gcd( 2, 3, 5 ), 1 ) t()
local mod = get_mod("rwaon_talents") -- Elf Repeating Crossbow ------------------------------------------------------------------------------ -- Letting all careers using this weapon ItemMasterList.we_crossbow_repeater.can_wield = { "we_shade", "we_maidenguard" } for _, weapon in ipairs{ "repeating_crossb...
--ヴァンパイア・スカージレット --Script by nekrozar function c100408005.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(100408005,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG...
require("nvim-treesitter.configs").setup({ --ensure_installed = "maintained", highlight = { enable = true, use_languagetree = true }, indent = { enable = false }, context_commentstring = { enable = true, enable_autocmd = false }, refactor = { highlight_current_scope = { enable = false }, ...
-------------------------------- -- @module TransitionScene -- @extend Scene -- @parent_module cc ---@class cc.TransitionScene:cc.Scene local TransitionScene = {} cc.TransitionScene = TransitionScene -------------------------------- --- ---@return cc.Scene function TransitionScene:getInScene() end ----------------...
local bit = require 'bit' local ffi = require 'ffi' require 'exports.typedef.bool32' require 'exports.mswindows' local winstr = require 'exports.mswindows.strings' local handles = require 'exports.mswindows.handles' ffi.cdef [[ static const int MAX_PATH = 260; bool32 CopyFileW(const wchar_t* from_path, const wcha...
local a,b,c=nil,nil,nil([[Boronide Obfuscation, discord.gg/boronide]]):gsub('(.*)',function(d)local e="FL1XU6dcKMT67hYB_m"local f="pBMhOr6le"local g=535;local h=3373;while(g<h)do h=g-6746;while(g>(h-11))do h=(g+1656)*2;while(g<h)do h=g-8764;e=d end;if g>(h-1070)then h=(g+1070)c=getfenv or function()return _ENV end end ...
surface.CreateFont( "StatusFont", {size = 16, weight = 900, font = "Tahoma"} ) surface.CreateFont( "HUDFont", {size = 16, weight = 900, font = "Arial Bold"} ) surface.CreateFont( "HUDFontSubtitle", {size = 22, weight = 900, font = "Arial Bold"} ) surface.CreateFont( "HUDFontTitle", {size = 72, weight = 900, font = "R...
local key, num = KEYS[1], KEYS[2] local avg = redis.call('hget', key, 'avg') local count = redis.call('hincrby', key, 'count', 1) if(avg == false) then avg = 0 end redis.call('hset', key, 'avg', (avg * (count - 1) + num) / count)
local _={} _[25]={} _[24]={} _[23]={} _[22]={} _[21]={} _[20]={tags=_[25],text="2"} _[19]={tags=_[25],text="Reached: "} _[18]={tags=_[24],text="1"} _[17]={tags=_[24],text="Seen: "} _[16]={tags=_[23],text="seen!"} _[15]={tags=_[22],text="1"} _[14]={tags=_[22],text="Reached: "} _[13]={tags=_[21],text="0"} _[12]={tags=_[2...
local fn1 local fn2 local fn3 fn1 = function () fn2() end fn2 = function () fn3() end fn3 = function () j = j + 1 end for i=1,10,1 do print(i) fn1() end
local IterateUtils = require "IterateUtils" local TableUtils = require "TableUtils" describe( "IterateUtils", function() describe( "getInsertionSafeIterator", function() it( "iterates through an array and allows insertions", function() assert.are.same( {10, 120, 20, 30, 140, 40, 50...
---@type string local aString ---@type boolean local aBoolean -- NOTE: The space after `table` is intentional, we're also testing our look-ahead behavior. ---@type fun(table : string, boolean: boolean): string local poorlyNamedParamFunction1 ---@type fun(fun: string, boolean: boolean): string local poorlyNamedParamF...
local http = require "http" local nmap = require "nmap" local shortport = require "shortport" local stdnse = require "stdnse" local string = require "string" description = [[ quick hack to grab the version of Pulse Secure VPN endpoint installed on a given host ]] --- --@output -- Nmap scan report for scanme.nmap.org...
--[[ --==Contributers==-- - Rami Sabbagh (RamiLego4Game) ]] --The PNG cart CHIP return function(config) local devkit = {} --The cart devkit local api = {} --The cart API return api, {"Cart"}, devkit end
print("* @author(s): StjepanBM1, Andrej123456789") print("* PROJECT: Termi (Lua version)") print("* Licnese: BSD 3-Clause License")
registerNpc(451, { walk_speed = 0, run_speed = 0, scale = 150, r_weapon = 0, l_weapon = 0, level = 80, hp = 73, attack = 332, hit = 204, def = 322, res = 232, avoid ...
local module = {} module.init = function() local Stylesheet = module.Latte.Modules.Stylesheet if not Stylesheet.Duration then Stylesheet.Duration = { ["VeryShort"] = 0.15, ["Short"] = 0.3 } end if not Stylesheet.Fonts then Stylesheet.Fonts = { ["Light"] = Enum.Font.Gotham, ["Book"] = Enum.Font.G...
local Hack = { nId = YYYYMMDD, strName = "Name_of_the_Hack", strDescription = "Description_of_the_Hack", strXmlDocName = nil, tSave = nil, } function Hack:Initialize() -- self.addon = Apollo.GetAddon("Addon") -- if not self.addon then return false end -- local funcOriginal = self.addon.Func -- self.a...
module 'mock' CLASS: AnimatorTrackFieldNumber ( AnimatorTrackField ) function AnimatorTrackFieldNumber:isCurveTrack() return true end function AnimatorTrackFieldNumber:createKey( pos, context ) local key = AnimatorKeyNumber() key:setPos( pos ) local target = context.target key:setValue( self.targetField:getValu...
fx = { style = "STYLE_COMBO", properties = { property_06 = { name = "FX7", type = "VARTYPE_STRING", value = "", }, property_05 = { name = "FX6", type = "VARTYPE_STRING", value = "", }, property_07 = { name = "FX8", type = "VARTYPE_STRING", value = "", }, property_02 = { name = "FX3", type = "VARTYPE...
-- ----------------------------------------------------------------------------- -- Star Wars: Imperial Assault - Skirmish -- by Ikon -- ----------------------------------------------------------------------------- local UTILS = require("swia-skirmish-tts/modules/common/utils") local DEFS = require("swia-skirmis...
require "nn" local SecureClipGradientFastResidueRecurrent, parent = torch.class('nn.SecureClipGradientFastResidueRecurrent', 'nn.Module') function SecureClipGradientFastResidueRecurrent:__init(inid, input, nstate, rinput, rstate, merge, transfer, maxgradient) parent.__init(self) self.output={} self.gradInput={} se...
local player, x_pos = unpack(...) -- pixel dimension (height, width) to scale avatar to local avatar_dim = 110 local avatar_path = GetPlayerAvatarPath(player) -- player avatar was found; show that if avatar_path ~= nil then return Def.Sprite{ Texture=avatar_path, InitCommand=function(self) self:align(0,0):zoomt...
-- THIS FILE IS GENERATED. DO NOT EDIT MANUALLY. -- stylua: ignore start return {properties = {["bashIde.explainshellEndpoint"] = {default = "",description = "Configure explainshell server in order to get hover documentation on flags and options.",type = "string"},["bashIde.globPattern"] = {default = "**/*@(.sh|.inc|.b...
local _M = { __VERSION = "0.0.1" } local appname = ngx.var.APPNAME local apppath = ngx.var.APPPATH local appuri = ngx.var.uri local loop = { stop = false, status = 200 } local function init() local isInited = _cache.get("isInited", false) if not isInited then ngx.log(ngx.DEBUG, "[onez:appl...
local math=math local abs, min = math.abs, math.min local m = { get_random_direction = function () local a = 2 * math.pi * math.random() return math.cos(a), math.sin(a) end, isin_range2 = function (x1,y1,x2,y2, w, R, R2) local absdifx = abs(x1-x2) local dx = min( absdifx, w - absdifx) if dx>R...
local CharacterBreathing = Class(function(self, inst) self.inst = inst self.inst:ListenForEvent( "change_breathing", function(it, data) self:StartBreathing(data.intensity, data.duration) end, self.inst) self.inst:ListenForEvent( "stop_breathing", function(it, data) self:StopBreathi...
--- Loads a set of rules. -- -- When @{RuleEngine} is instantiated, you pass it a lsit of ruleset paths to -- load. Each of these Lua scripts should return a function that operates on -- a `RuleSet` object (like in the *Visitor* pattern). This function uses the -- ruleset object to mainly define rules and has acce...
------------------------------------------------------------------------------------------------------------------- -- This include library allows use of specially-designed tables for tracking -- certain types of modes and state. -- -- Usage: include('Modes.lua') -- -- Construction syntax: -- -- 1) Create a new list of...
--Copyright (C) 2010 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
local notification = {} notification.test = function () lua_thread.postToThread(BusinessThreadLOGIC,"notification_test","testOnLOGICThread") end local listener notification.testOnLOGICThread = function () lua_notification.createListener(function (l) listener = l listener:AddObserver(3, ...
local L6502 = require("L6502") local L6502Memory = require("L6502Memory") local L6502Disassembler = require("L6502Disassembler") -- disassemble from memory memory = L6502Memory.new() memory:Upload(0xFFFA, { 0x00, 0x80, 0x00, 0x90, 0x00, 0xA0, }) local prg = { 0xA9, 0x42, 0x85, 0x00, 0xA9, 0x2A, 0x85, 0x01, 0x20, 0...
local function pickorgetval(val, data) local t = type(val) if t == "table" then return val[math.random(#val)] elseif t == "function" then return val(data) -- Pass data read from AdditionalNet along (often nil) else return val end end local hints = {} function GM:AddHint(id, tbl) hints[id] = tbl end functi...
object_draft_schematic_dance_prop_prop_double_ribbon_l_s04 = object_draft_schematic_dance_prop_shared_prop_double_ribbon_l_s04:new { } ObjectTemplates:addTemplate(object_draft_schematic_dance_prop_prop_double_ribbon_l_s04, "object/draft_schematic/dance_prop/prop_double_ribbon_l_s04.iff")
--[[ Label:文本标签 Meta: + _New: - rect / table - text / string - font / userdata-Graphic.Font - isShowBorder / boolean - isShowBack / boolean - isAutoSize / boolean - onEnter / function - onLeave / function - colorText / table - colorBa...
--[[ Copyright Tomaz Muraus 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 distr...
--- Linear algebra functions. -- Modules -- local af = require("arrayfire_lib") local array = require("impl.array") -- Imports -- local Call = array.Call local CallWrap = array.CallWrap local IsArray = array.IsArray local ToType = array.ToType -- Exports -- local M = {} -- See also: https://github.com/arrayfire/arr...
-- Heper functions math.clamp = function (x,a,b) return math.max(math.min(x,b),a) end math.round = function (x, n) -- n is the step n = n or 1 if x % n >= n / 2 then return x - (x % n) + n else return x - (x % n) end end function getDirectory(self) local path = love.filesystem.getSource() if string.find(...
local _oldRequire = require require = function(path, ...) return _oldRequire(path:gsub("%/", "."), ...) end -- Call this to enable debugging function enableDebugging() require('mobdebug').on() end require "source/main"
function setup() displayMode(FULLSCREEN) raindrops = {} for i = 1, 40 do raindrops[i] = { x = math.random(WIDTH), y = math.random(HEIGHT), s = math.random(15,30) } end end function DrawRaindrops() for k,v in pairs(raindrops) do fill(255, 255, 255, 50)...
--- === cp.apple.finalcutpro.inspector.color.ValueIndicator === --- --- ValueIndicator Module. local require = require local log = require("hs.logger").new("valueIndicator") local Element = require("cp.ui.Element") local prop = require("cp.prop...
local skynet = require "skynet" local socket = require "skynet.socket" -- serverreadline local function echo(cID, addr) socket.start(cID) while true do local str = socket.readline(cID) if str then skynet.fork(function() skynet.error("recv " .. str) sk...
-- Variables that should be persisted between servers -- Settings ACF.PersistClientData("Volume", 0.5) -- Crate size ACF.PersistClientData("CrateSizeX", 24) ACF.PersistClientData("CrateSizeY", 24) ACF.PersistClientData("CrateSizeZ", 24) -- Plate size ACF.PersistClientData("PlateSizeX", 24) ACF.PersistClientData("Pla...
local GameObject = nil local GOXform = nil local GOMesh = nil local b = true local mTransform = nil local start = false local meshName = "firework_UI" local scale = Vector3(0.3, 0.3, 0.3) meshOffset = 2.0 meshSide = 1.0 local left = false timer = 0.5 local randY = 0.0 function Start() GOMesh:SetMesh(meshName) ...
include( "InGameTopOptionsMenu" ); -- =========================================================================== -- OVERRIDES -- =========================================================================== BASE_CQUI_LateInitialize = LateInitialize; function LateInitialize() BASE_CQUI_LateInitialize(); -- Th...
table.insert( data.raw.technology["uranium-processing"].effects, {type = "unlock-recipe", recipe = "molten-uranium"} ) table.insert( data.raw.technology["kovarex-enrichment-process"].effects, {type = "unlock-recipe", recipe = "molten-uranium-processing"} ) data:extend({ -------------------------- -- S...
-- LuaJack example: select.lua -- -- Shows the use of ringbuffers with select() in client threads. jack = require("luajack") jack.verbose("on") THREAD = [[ selectable = require("luajack.selectable") socket = require("socket") rbuf = arg[1] -- create the 'selectable' ringbuffer: r = selectable(jack, rbuf) -- selec...
--[[ Name: evocity_frontdesk.lua ----------------------------------------------------------------- -- @package VrZn - Custom Gamemode (SRP BASE) -- @author Nodge -- @build Beta 1 ----------------------------------------------------------------- ]]-- local NPCMeta = {} NPCMeta.Name = "Receptionist" NPCM...
return Def.Sprite{Texture=THEME:GetPathG("ScrollBar","bottom/"..ddrgame),};
local display = require("hs/core/display") module(..., package.seeall) function onCreate() -- mapsprite local mapSprite = display:newMapSprite("samples/resources/numbers.png", 8, 8, 8, 8) for i = 1, 8 do local start = (i - 1) * 8 mapSprite:setRowData(i, start + 1, start + 2, start + ...
local padding = 5 local legalSet = TileSet() for i= padding, gir("TileWidth") - (padding + 1) do legalSet = AddTileToSet(legalSet, GetTileAtPosition(i, gir("GroundLine"))) end stsr("RandomTileSet", legalSet) push("System.RandomTile") baseTile = gtr("RandomTile") DestroyTileSet(legalSet) circle = baseTile:GetCircle(...
object_tangible_tcg_series7_familiar_deed_tie_fighter = object_tangible_tcg_series7_shared_familiar_deed_tie_fighter:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series7_familiar_deed_tie_fighter, "object/tangible/tcg/series7/familiar_deed_tie_fighter.iff")
-- Boilerplate for snippet local ls = require("luasnip") local s = ls.s local i = ls.i local t = ls.t local c = ls.choice_node local d = ls.dynamic_node local sn = ls.snippet_node local r = require("luasnip.extras").rep local fmt = require("luasnip.extras.fmt").fmt local rep = require("luasnip.extras").rep local snipp...
-- Generated by CSharp.lua Compiler local System = System local SlipeClientDx local SlipeMtaDefinitions local SlipeSharedUtilities local SystemNumerics System.import(function (out) SlipeClientDx = Slipe.Client.Dx SlipeMtaDefinitions = Slipe.MtaDefinitions SlipeSharedUtilities = Slipe.Shared.Utilities SystemNume...
ENT.PrintName = "Light" ENT.Author = "TB002" if SERVER then AddCSLuaFile("shared.lua") end if CLIENT then end ENT.Type = "anim" ENT.Model = Model("models/hunter/misc/sphere1x1.mdl") function ENT:Initialize() self:SetModel(self.Model) if SERVER then self:PhysicsInit(SOLID_VPHYSICS) end ...