content
stringlengths
5
1.05M
/* * @package : rlib * @author : Richard [http://steamcommunity.com/profiles/76561198135875727] * @copyright : (C) 2018 - 2020 * @since : 1.0.0 * @website : https://rlib.io * @docs : https://docs.rlib.io * * MIT License * * THE SOFTWARE IS PROVIDED "AS IS",...
local currencies = {} local function addCurrency(name, id, dmg, model, color, max) table.insert(currencies, { name = name, id = id, dmg = dmg, model = model, color = color, }) end addCurrency("Деньги", "customnpcs:npcMoney", 0, 'INGOT', 0x85BB65, nil) a...
-- Broyden's rank one update local function broyden (B, dx, df) local u = mmul(df, B, dx, "n", "n", -1) -- u = df - B * dx return mmul(B, u, dx, "n", "t", dot(dx, dx)) -- B = B + u * dx' / u' * u end
local function Reply(msg) local text = msg.content_.text_ if ChatType == 'sp' or ChatType == 'gp' then if not DevAbs:get(DevProx..'Abs:Lock:Reply'..msg.chat_id_) then if text == "انجب" or text == "نجب" or text == "انجبي" or text == "نجبي" or text == "انجبو" or text == "نجبو" then if SudoId(msg.sender_user_id_) then rd...
----------------------------------------------------------------------------------------- -- -- view1.lua -- ----------------------------------------------------------------------------------------- local widget = require "widget" local composer = require( "composer" ) local ixdata = require( "ixdatadef" ) require "mod...
Ship = Core.class(Sprite) function Ship:init(x,y) self.statut = "wait" self.speed = 20 self.x = x self.y = y self.img = Bitmap.new(Texture.new("img/vaisseaux.png",true)) self.img:setPosition(self.x,self.y) self.img:setAnchorPoint(0.5, 0.5) self:addEventListener(Event.ENTER_FRAME, self....
--- --- API说明,配合EmmyLua --- Created by colin. --- DateTime: 2020/12/24 23:13 --- ---------------------------------------------------------------------------------------------------- ---@class listobj 数组对象 ---@class colist 数组模块 local colist = {} ---新建一个列表对象 ---@overload fun(): listobj ---@param cap numb...
add_rules("mode.debug", "mode.release") add_requires("capnproto") target("test") set_kind("binary") set_languages("c++14") add_packages("capnproto") add_files("src/**.cc") add_files("proto/*.capnp", {rules = "capnproto.cpp", capnp_rootdir = "proto"})
local tremove = table.remove local tinsert = table.insert local function log_print(tbl, indent) local freturn = 1 if not indent then indent = 0 freturn = 0 end local toprint = "\n" .. string.rep(" ", indent) .. "{\r\n" indent = indent + 1 if type(tbl) == "table" then for k, v in pairs(tbl) do toprint = ...
-- Pong Packet local packet = {} packet.name = "pong" packet.type = 3 packet.fields = { nonce = ProtoField.uint64("handshake.pong.nonce", "Nonce", base.HEX) } function packet.parse(protocol, tree, buffer, offset) -- Nonce local nonce_buf = buffer(offset, 8) tree:add_le(packet.fields.nonce, nonce_buf)...
return function(reg, mask, data) spi.set_mosi(1, 0, 8, mask, data) spi.transaction(1, 8, 0x05, 8, reg, 16, 0, 0) end
item_giant_form = class(TransformationBaseClass) LinkLuaModifier( "modifier_item_giant_form_grow", "items/transformation/giant_form.lua", LUA_MODIFIER_MOTION_NONE ) -------------------------------------------------------------------------------- function item_giant_form:GetIntrinsicModifierName() -- we're not modi...
--エアロピΞ --scripted by XyLeN function c101105031.initial_effect(c) --sequence & move local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(101105031,0)) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetHintTiming(0,TIMING_END_PHASE+TIMINGS_CHECK_...
-- Copyright (c) 2010-2011 by Robert G. Jakabosky <bobby@neoawareness.com> -- -- 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 -...
Star = class("Star") local map = { I = 1, V = 5, X = 10, L = 50, C = 100, D = 500, M = 1000, } local numbers = { 1, 5, 10, 50, 100, 500, 1000 } local chars = { "I", "V", "X", "L", "C", "D", "M" } function ToRomanNumerals(s) --s = tostring(s) s = tonumber(s) if not s or s ~= ...
local nk = require("nakama") local items = require("inventory_items") local admin_user_id = "admin" local migration_table = "tpv_migrations" -- THIS IS WHAT NEEDS TO REFLECT THE LATEST DATE POST MIGRATION local migration_version_date = "01082020" -- THIS IS WHERE YOU MAKE MIGRATIONS HAPPEN function latest_migration...
local currentStock = redis.call('GET',KEYS[1]) if currentStock then local currentStockNum = tonumber(currentStock) local increment = tonumber(ARGV[1]) if currentStockNum > 0 and (currentStockNum - increment) >= 0 then redis.call('INCRBY', KEYS[1], -(increment)) return 'OK' end return 'NO' end return "NOKEY"
--[[ module:RepeatCommandNode author:DylanYang time:2021-02-12 21:44:37 ]] local CommandListNode = require("patterns.behavioral.interpreter.CommandListNode") local super = require("patterns.behavioral.interpreter.Node") local _M = Class("RepeatCommandNode", super) local public = _M.public _M.number = nil ...
local cmd = {} cmd.title = "Set Frags" cmd.description = "Set the number of frags (kills) a player has." cmd.author = "Nub" cmd.timeCreated = "May 22 2020 @ 12:06 AM CT" cmd.category = "Fun" cmd.call = "frags" cmd.usage = "<player> [frags]" cmd.server = function(caller, args) if #args > 0 then if ...
Album = Object:extend() require "picture" require "title" function Album:new() self.pcurrent = Picture() self.pnext = Picture() self.title = Title() end function Album:set(dir) -- Find pictures in directory self.list = {} local files = love.filesystem.getDirectoryItems(dir) for k, file in ipairs(files) do ...
--[[ mpv script to toggle equalizer useful for equalizing headphones ctrl+e -- toggle Copyright F Fitzgerald 2021 https://github.com/mrffr License CC0-1.0 --]] -- Script settings -- local key_toggle_equalizer = 'ctrl+e' local default_on = false -- EQ settings -- --[[ The following eq settings are for DT 770 pro 25...
local buildMode = ... local FILE_PATH = "/SCRIPTS/TELEMETRY/SnakeHD/" local FLASH = 3 local SMLCD = LCD_W < 212 local HORUS = LCD_W >= 480 local v, r, m, i, e = getVersion() local env = "tc" print("") print("--------------------- COMPILE SCRIPTS ---------------------") print("") -- local data, PREV, NEXT, MENU = load...
local skynet = require("skynet") require "skynet.manager" skynet.register_protocol{ name = "text", id = skynet.PTYPE_TEXT, pack = skynet.packstring, unpack = skynet.tostring, dispatch = function(_, address, msg) print(string.format( ":%08x(%.2f) : %s", address, skynet.time(), msg)) end ...
nw.Register("REP_FULL"):Write(net.WriteTable):Read(net.ReadTable):SetLocalPlayer() nw.Register("REP_WEIGHT"):Write(net.WriteInt,16):Read(net.ReadInt,16):SetPlayer() nw.Register("REP_TOP"):Write(net.WriteUInt,7):Read(net.ReadUInt,7):SetPlayer() nw.Register("REP"):Write(net.WriteTable):Read(net.ReadTable):SetPlayer()
vim.g.neovide_refresh_rate = 140 vim.g.neovide_transparency = 1.0 vim.g.neovide_fullscreen = false vim.g.neovide_remember_window_size = false vim.g.neovide_touch_deadzone = 6.0 vim.g.neovide_touch_drag_timeout = 0.17 vim.g.neovide_cursor_animation_length = 0.13 vim.g.neovide_cursor_trail_length = 0.8 vim.g.neovide_curs...
#!/usr/bin/env lua local basedir = require 'findbin' '/..' --print("# basedir: " .. basedir) require 'lib' (basedir) require 'lib' (basedir .. '/lib') local getopt = require 'getopt' require 'lib.schwartzianTransforms' --print("Testing getopt version " .. getopt.version()) local opts = {} local ret = getopt.std("...
-- -- Grail -- Written by scott@mithrandir.com -- -- Version History -- 001 Initial version. -- 002 Converted to using a hooked function to register completed quests. -- Made it so quests that never appear in the quest log can be marked completed assuming the quest data is up to date. -- Condensed the debug state...
local EntityManager = {} EntityManager.__index = EntityManager local __ctor = function(self, init) self.__nodeEntityTable = {} self.__sceneEntityTable = {} self.__worldEntityTable = {} self.__nodeEntityStateTable = {} self.__sceneEntityStateTable = {} self.__worldEntityStateTable = {} end local __dtor =...
--[[ Write an iterator uniquewords that returns all words from a given file without repetitions. (Hint: start with the allwords code in Listing 7.1; use a table to keep all words already reported.) ]] function uniquewords() local line = io.read() local pos = 1 local found_words = {} return function() whi...
slot0 = class("CommanderHomeLevelCard") slot1 = "#9A9898" slot2 = "#a59897" slot3 = "#6a5a5a" slot0.Ctor = function (slot0, slot1, slot2) slot0._go = slot1 slot0._tf = slot1.transform slot0.view = slot2 slot0.mask = findTF(slot0._tf, "mask"):GetComponent(typeof(RectMask2D)) slot0.progress = findTF(slot0._tf, "mas...
--Last Edited 10/12/21 by SaturnSpades --Tricky mod credits will be put here temporarily until in-game credits can be modified within Lua --Tricky Mod Developers: Banbuds, Rosebud, KadeDev, CVal, YingYang48, JADS, Moro --Special Thanks: Tom Fulp, Krinkels, GWebDev, Tsuraran local allowCountdown = false function onStart...
--[[ Subscription ]] local Connection = {} Connection.__index = Connection function Connection.New(event, handler) return setmetatable({ _event = event, _handler = handler }, Connection) end -- Unsubscribe function Connection:Disconnect() local event = self._event if (event and not event.destroyed) then ...
if nil == sc.SCValue then return end -- SCValue constant sc.SCValue.kTypeUnknown = 0 sc.SCValue.kTypeByte = 1 sc.SCValue.kTypeChar = 2 sc.SCValue.kTypeInt = 3 sc.SCValue.kTypeUnit = 4 sc.SCValue.kTypeLong = 5 sc.SCValue.kTypeInt64 = 6 sc.SCValue.kTypeBool = 7 sc.SCValue.kTypeFloat = 8 sc.SCValue....
if file.Exists("bsecure/disallowed_countries.json", "DATA") then local JSON = file.Read("bsecure/disallowed_countries.json") bSecure.RegionRestrictions.DisallowedCountries = util.JSONToTable(JSON) end util.AddNetworkString("bSecure.RegionRestrictions.RequestCountry") util.AddNetworkString("bSecure.RegionRestri...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" module('ReconnArg_pb') RECONNARG = protobuf.Descriptor(); local RECONNARG_SESSION_FIELD = protobuf.FieldDescriptor(); local RECONNARG_SCENEID_FIELD = protobuf.FieldDescriptor(); local RECONNARG_ROLEID_FIELD = protobuf.FieldDescrip...
TerrainSmoothState = AbstractHeightmapEditingState:extends{} function TerrainSmoothState:GetCommand(x, z, strength) strength = math.abs(strength) self.sigma = math.max(math.min(math.sqrt(math.sqrt(strength)) / 2, 1.5), 0.20) return TerrainSmoothCommand({ x = x + self.size/2, z = z + self.si...
veermok_pygmy = Creature:new { objectName = "@mob/creature_names:veermok_pygmy", socialGroup = "self", faction = "", level = 20, chanceHit = 0.3, damageMin = 200, damageMax = 230, baseXp = 1357, baseHAM = 4000, baseHAMmax = 5500, armor = 0, resists = {15,-1,5,5,5,5,5,5,-1}, meatType = "meat_carnivore", me...
telnetsrv = net.createServer(net.TCP, 180) telnetsrv:listen(23, function(socket) local fifo = {} local fifo_drained = true local function sender(sck) if #fifo > 0 then sck:send(table.remove(fifo, 1)) else fifo_drained = true end end local function s...
local Iterator = require(script.Parent.Parent.Iterator) local Once = setmetatable({}, Iterator) Once.__index = Once Once.__call = Iterator.__call function Once.new(value) return setmetatable({ value = value, flag = false, }, Once) end function Once:after() if self.flag then return nil else ...
local octave = 440 local keymap = { [keys.a] = 3, [keys.w] = 4, [keys.s] = 5, [keys.e] = 6, [keys.d] = 7, [keys.f] = 8, [keys.t] = 9, [keys.g] = 10, [keys.y] = 11, [keys.h] = 12, [keys.u] = 13, [keys.j] = 14, [keys.k] = 15, } local topRow = {[keys.w] = 2, [keys.e] = 4...
function DocumentsOpen(Panel,Arg0) FicheJoueurPanelDocuments:Show(); FicheJoueurOngletInventaire:Disable(); FicheJoueurOngletInventaireIcon:SetAlpha(0.5); FicheJoueurOngletDocument:Disable(); FicheJoueurOngletDocumentIcon:SetAlpha(0.5); FicheJoueurFond:SetTexture("Interface\\Stationery\\AuctionStationery1.blp");...
AuctionatorTranslatorMixin = {} function AuctionatorTranslatorMixin:OnLoad() self.FlagTexture:SetTexture(self.textureLocation) self.TranslatorsText:SetText(self.translators) end
BufferTable = {} function BufferReached(key, buffer) if key == nil then return end if BufferTable[key] == nil then BufferTable[key] = {} end BufferTable[key].buffer = buffer or 15 BufferTable[key].now = GetFrameTimeSeconds() if BufferTable[key].last == nil then BufferTable[key].last = Buffer...
local skynet = require "skynet" local socket = require "skynet.socket" local httpd = require "http.httpd" local sockethelper = require "http.sockethelper" local urllib = require "http.url" local table = table local string = string local mode, protocol = ... protocol = protocol or "http" if mode == "agent" then local...
-- first the synthdefs require"sc.Compilesynth" -- for Compander --12 resonator strings SynthDef("resonDWG", {busout=0,freqC= 40, amp=0.5, gate=1,pos=1-1/7,c1=0.3,c3=1,mistune = 3,mp=0.55,gc=10,wfreq=18000,release=0.2,ingain=5},function() local N = 12 local inp =Mix(In.ar(busout,2))*ingain --* EnvGen.ar(env,gate) ...
------------------------------------------------------------------ -- -- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Copyright (C) 2015-2016 Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Licensed according to the included 'LICENSE' document -- -- This file is part of lua-tpdu library. ...
-- Copyright (c) 2009 Sebastian Nowicki <sebnow@gmail.com> -- -- 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, ...
--weiner function createBall(diam, color) local part=Instance.new"Part" part.Parent=workspace Instance.new("SpecialMesh", part).MeshType=Enum.MeshType.Sphere part.FormFactor="Custom" part.Size=Vector3.new(diam, diam, diam) part.Anchored=false part.CanCollide=true if color then part.BrickColor=BrickColor.new...
local String = { lower = function(...) return (string.utf8lower or string.lower)(...) end, upper = function(...) return (string.utf8upper or string.upper)(...) end, sub = function(...) return (string.utf8sub or string.sub)(...) end } local string_meta = getmetatable('') do local vowels = { ...
project "OptickCore" uuid "830934D9-6F6C-C37D-18F2-FB3304348F00" cppdialect "C++11" systemversion "latest" kind "SharedLib" buildoptions { "/wd4127", -- Conditional expression is constant "/wd4091" -- 'typedef ': ignored on left of '' when no variable is declared } flags { "NoManifest", "FatalWarnings...
-- Autogenerated from KST: please remove this line if doing any edits by hand! local luaunit = require("luaunit") require("position_to_end") TestPositionToEnd = {} function TestPositionToEnd:test_position_to_end() local r = PositionToEnd:from_file("src/position_to_end.bin") luaunit.assertEquals(r.index.foo...
-- regex > lpeg local rex = require "rex_pcre" -- pcre compile flags local cf = "ims" -- regex patterns local pattern = { b = "\\[b\\](.*?)\\[\\/b\\]", i = "\\[i\\](.*?)\\[\\/i\\]", u = "\\[u\\](.*?)\\[\\/u\\]", s = "\\[s\\](.*?)\\[\\/s\\]", center = "\\[center\\](.*?)\\[\\/center\\...
seed=random(1,2472472472) dex= { {'🌱','🥀','🌷','🌹', --'🍂','🍃', '☘','🍀','🌼','🌻',--'💐', --'🌲','🌳','🌴', '🌿','🌾', '🍁', '🍄',--'🌰', --'🌵', '🌺', '💮', '🌸', '🏵', }, { '🥛', '☕', '🍵', '🍷','🍸','🍹','🥤','🧃','🧉', }, } dex_...
PLUGIN.name = "Books" PLUGIN.author = "Chessnut" PLUGIN.desc = "Adds books that you can read."
function onCreate() makeLuaSprite('theRoom','room',-600,-350) addLuaSprite('theRoom',false) setLuaSpriteScrollFactor('theRoom', 0.9, 0.9); makeLuaSprite('theShadow','shadow',-400, -300) addLuaSprite('theShadow',true) setLuaSpriteScrollFactor('theShadow', 0, 0); end function onBeatHit()-- for eve...
GameObject = Class{} function GameObject:init(x, y) self.relative = true self.direction = 1 self.flip = 1 self.pos = {x=x, y=y} self.visible = true end function GameObject:move(x, y) self.pos.x = self.pos.x + x self.pos.y = self.pos.y + y end function GameObject:update() if self.anima...
factorial = function(n) if n == 1 then return 1 end return n * factorial(n-1) end n = io.read('*number', '*l') print(factorial(n))
--烙印の裁き --Scripted by mallu11 function c101104069.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(101104069,0)) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetHin...
stackline = require "stackline" -- stackline = require "stackline.stackline.stackline" -- local config = { -- -- appearance = { -- -- showIcons = false, -- default is true -- -- }, -- features = { -- clickToFocus = false, -- default is true -- -- fzyFrameDetect = { -- -...
local M = {} local uv = vim.loop local lib = require('utility/lib') local pub = require('utility/pub') -- LaTeX recipes local latex_step local latex_name local function latex_xelatex(cb, cb_cb, cb_cb_cb) Handle_latex = uv.spawn('xelatex', { args = { '-synctex=1', '-interaction=non...
--[[ Configurations for "kyazdani42/nvim-tree.lua" plugin For more info on configuring the File Explorer to fit your needs check out `h: nvim-tree.lua` Know bugs for this plugin 1. Any of the "vim.g.nvim_tree..." variables might break because of an ongoing refactoring project. Refer to https://github.com/kyazdani...
return { { effect_list = { { type = "BattleSkillFire", casterAniEffect = "", target_choise = "TargetHarmRandom", targetAniEffect = "", arg_list = { weapon_id = 64121 } } } }, { effect_list = { { type = "BattleSkillFire", casterAniEffect = "", target_choise = "T...
local base = _G module('twitch.server') local require = base.require local table = base.table local string = base.string local math = base.math local assert = base.assert local pairs = base.pairs local ipairs = base.ipairs local socket = require('socket') local tracer = require('twitch.tracer') local Server = { co...
require("libs.LoveFrames") dialogueWindow = {} function dialogueWindow.Create() dialogueWindow.frame=loveframes.Create("frame") dialogueWindow.frame:SetState(loveframes.GetState()) dialogueWindow.frame:SetName("") dialogueWindow.frame:SetResizable(true) dialogueWindow.frame:ShowCloseButton(false) local ww=love....
-- main.lua local entities = require('entities') local world = require('world') -- Boolean to keep track of whether our game is paused or not local paused = false local key_map = { escape = function() love.event.quit() end, space = function() paused = not paused end } love.draw = function() for _,...
local pncInfoPress = {} local function openPNC(ply) if not IsValid(ply:GetVehicle()) then XYZShit.Msg("PNC", PNC.Config.Color, "You need to be in a vehicle to use the PNC", ply) return end if not PNC.Config.AllowedVehicles[ply:GetVehicle():GetVehicleClass()] then XYZShit.Msg("PNC", PNC.Config.Color, "This vehi...
//________________________________ // // NS2 Single-Player Mod // Made by JimWest, 2012 // //________________________________ Script.Load("lua/Class.lua") Script.Load("lua/Team.lua") // modded to stop the "Couldnt find ..." print // Overrides the function so its not printing "system" all the time local overr...
--[[ LuCI - Lua Configuration Interface - Device Sharing Copyright 2015 Stephen Groat 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 $Id$ ]]-- local ...
local Actor = require "actor" local Tiles = require "tiles" local SlippersOfSwiftness = Actor:extend() SlippersOfSwiftness.char = Tiles["shoes"] SlippersOfSwiftness.name = "Slippers of Swiftness" SlippersOfSwiftness.components = { components.Item(), components.Equipment{ slot = "boots", effects = { ...
CrimeSpreeMissionModule = CrimeSpreeMissionModule or BeardLib:ModuleClass("CrimeSpreeMission", ItemModuleBase) function CrimeSpreeMissionModule:AddMissionDataToTweak(c_self, tweak_data) local icon = self._config.icon and "mods_"..Path:GetFileNameWithoutExtension(self._config.icon) if icon then tweak_da...
--[[ © 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 the character background should be drawn. function cwMapScene:Shoul...
return {'vzw'}
local C = {} function C:init(unit) self.unit = unit self.activeTime = unit.unitResource.parameters:getFloat("activeTime", 10) self.spawnDelay = unit.unitResource.parameters:getFloat("spawnDelay", 2) self.mover = unit.unitResource.parameters:getString("mover", "") self.spawnUnit = unit.unitResource.par...
local path = mod_loader.mods[modApi.currentMod].scriptPath local menu = require(path .."libs/menu") local Ui2 = require(path .."ui/Ui2") local DecoSolid2 = require(path .."ui/deco/decoSolid2") local this = Class.inherit(Ui2) function this:new(adjust, color, duration) Ui2.new(self) adjust = copy_table(adjust) or ...
require("toggleterm").setup { size = function(term) if term.direction == "horizontal" then return 15 elseif term.direction == "vertical" then return vim.o.columns * 0.4 end end, hide_numbers = true, shade_filetypes = {}, shade_terminals = false, sh...
-- Formatting local formatters = require "lvim.lsp.null-ls.formatters" formatters.setup {} -- Linting local linters = require "lvim.lsp.null-ls.linters" linters.setup {} -- Lsp config -- credit: https://github.com/ChristianChiarulli/nvim -- local status_ok, jdtls = pcall(require, "jdtls") -- if not status_ok then -- ...
-- the debug_print command does only print anything to stdout -- if devilspie2 is run using the --debug option debug_print("Application name: " .. get_application_name()) -- Handling program default workspaces -- Chromium if (string.find(get_application_name(), "Google Chrome")) then set_window_workspace(1); -- XT...
local MSb = ModernScoreboard print("askjlhqaskdlfhasfhdladshflk") if CLIENT then MSb.Disabled = CreateClientConVar("msb_disable", "0", true, false) cvars.AddChangeCallback("msb_disable", function(name, old, new) if new == "1" then MSb.Disable() else if old == "1" then MSb.Init() end end end) f...
local status_ok, _ = pcall(require, "feline") if status_ok then local C = require "default_theme.colors" local hl = require("core.status").hl local modes = require("core.status").modes local provider = require("core.status").provider local conditional = require("core.status").conditional local feline = { ...
local ADDON_NAME, ADDON = ... local item = {} item.__index = item -- can I mog it config local itemMogitFunc = nil if CIMI_AddToFrame then itemMogitFunc = function(self) if not self or not self:GetParent() then return end if not CIMI_CheckOverlayIconEnabled(self) then self.C...
-- -- flash 1.2.11 modulefile -- -- "URL: https://www.psc.edu/resources/software" -- "Category: Biological Sciences" -- "Description: FLASH (Fast Length Adjustment of SHort reads) is a very fast and accurate software tool to merge paired-end reads from next-generation sequencing experiments." -- "Keywords: singularity ...
-- Core local List = require "pl.List" local modules = List { "jesse.core.auto", "jesse.core.commands", "jesse.core.general", "jesse.core.performance", "jesse.core.tab", "jesse.core.util", } modules:foreach(function(module) require(module) end)
object_mobile_ewok_m_greeter = object_mobile_shared_ewok_m_greeter:new { } ObjectTemplates:addTemplate(object_mobile_ewok_m_greeter, "object/mobile/ewok_m_greeter.iff")
----------------------------------- -- Area: Phomiuna_Aqueducts -- NPC: _ir9 (Iron Gate) -- !pos 70 -1.5 140 27 ----------------------------------- require("scripts/globals/status"); require("scripts/globals/missions"); local ID = require("scripts/zones/Phomiuna_Aqueducts/IDs"); ----------------------------------- fu...
--[[ desc: Element, A module of element buff. author: Musoucrow since: 2019-6-26 ]]-- local _RESMGR = require("actor.resmgr") local _FACTORY = require("actor.factory") local _BUFF = require("actor.service.buff") local _Attack = require("actor.gear.attack") local _Base = require("actor.buff.base") ---@class Act...
--- -- Essentially a lazy seq that works in a manner compatible with -- Lua's iterator functions (so that the usual seq functions can -- be used in place of Lua's generic for). -- -- TODO: Some of this could use some refactoring... but I'm le tired. --- require 'class/List' require 'class/Vector' do local function _...
local Gesture = require ("dmc_corona.dmc_gestures") local composer = require("composer") local drop_item = {} local drop_item_mt = { __index = drop_item} -- metatable ------------------------------------------------- -- PRIVATE FUNCTIONS ------------------------------------------------- ---------------------...
local PhysicsService = game:GetService("PhysicsService") local CollectionService = game:GetService("CollectionService") local Validator = {} function Validator:IsPartOOB(part) return not CollectionService:HasTag(part, "Hitbox") and PhysicsService:CollisionGroupsAreCollidable("Default", PhysicsService:GetCollisionGro...
serial_version = 1.0 return { scenery_animation = "assets/animations/scenes/scene_trees_anim.lua", scenery_layers = 6, sun_layer = 5, scene_width = 1000, scene_height = 300, start_x = 50, start_y = 50, red = 100, green = 150, blue = 100, scene_brightness = -1.0, scenery_floor = "assets/spri...
local mod = getfenv(1) local self = getfenv(1) function OnSpawn(Unit, Event) Unit:SendChatMessage(14, 0, "Keep your minds focused for the days of reckoning are close at hand. Soon, the destroyer of worlds will return to make good on his promise. Soon the destruction of all that is will begin!") Unit:PlaySoundToSet(1...
local present, lspconfig = pcall(require, "lspconfig") if not present then return end local M = {} require("plugins.configs.others").lsp_handlers() -- Borders for LspInfo winodw local win = require "lspconfig.ui.windows" local _default_opts = win.default_opts win.default_opts = function(options) local opts =...
local _, private = ... if private.isClassic then return end --[[ Lua Globals ]] -- luacheck: globals select next --[[ Core ]] local Aurora = private.Aurora local Base = Aurora.Base local Hook, Skin = Aurora.Hook, Aurora.Skin local Color, Util = Aurora.Color, Aurora.Util local function SkinSearchButton(button) b...
--- Generally useful routines. -- @class module -- @name pl.utils local format,gsub,byte = string.format,string.gsub,string.byte local clock = os.clock local stdout = io.stdout local append = table.insert local collisions = {} --[[ module ('pl.utils') ]] local utils = {} utils._VERSION = "0.9.0" utils.dir_separato...
local expression = {} expression.is = function(eq) return function(value) return value == eq end end expression.is_not = function(neq) return function(value) return value ~= neq end end expression.min = function(min) return function(value) return value >= min end end ...
include("shared.lua") function ENT:Draw() self:DrawModel()--We dont draw becuase of a rendering issue so it gets called after the customer is rendered. end
ITEM.name = "Weapon" ITEM.desc = "A Weapon." ITEM.category = "Weapons" ITEM.model = "models/weapons/w_pistol.mdl" ITEM.class = "weapon_pistol" ITEM.width = 2 ITEM.height = 2 ITEM.isWeapon = true ITEM.weaponCategory = "sidearm" ITEM.color = Color(100,110,100) ITEM.multiChance = 20 --for scrapping -- Inventory drawing ...
--[[ Concept of using an explosion to play a sound copied from Supercheese's Red Alerts mod https://forums.factorio.com/viewtopic.php?f=92&t=19579 We're using this as a hack to play a sound when the user clicks one of the buttons (because we're using checkboxes (with the icons as the checkmarks to display the graphics...
local COMMAND = Command.new('setgroup') COMMAND.name = 'SetGroup' COMMAND.description = 'command.setgroup.description' COMMAND.syntax = 'command.setgroup.syntax' COMMAND.permission = 'administrator' COMMAND.category = 'permission.categories.player_management' COMMAND.arguments = 2 COMMAND.immunity = true COMMAND.aliase...
return function() error('Error: from ModuleScript init.lua') end
_tmp_grounds = {} _tmp_joints = {} function addGround1(t, x, y, other) local id = newId(groundId) _tmp_grounds[#_tmp_grounds + 1] = id do_addGround(id, x, y, other) t[#t + 1] = id return id end addJoint2 = { function(t, id1, id2, other) local id = newId(jointId) _tmp_joints[#_tmp_joints ...