content
stringlengths
5
1.05M
local awful = require("awful") local watch = require("awful.widget.watch") local wibox = require("wibox") local beautiful = require("beautiful") local gears = require("gears") local json = require("json") local gfs = require("gears.filesystem") local spawn = require("awful.spawn") local naughty = require("naughty") loc...
-- This script is intended to generate the "flags.c" file local io_write = io.write local table_insert = table.insert local function add_defines (src, trg) for c in src:gmatch("#define%s+([%w_]+)%s+%(?%s*-?%d+%s*%)?") do table_insert(trg, c) end end local function add_enums (src, trg) for enum in src:gm...
local skynet = require "skynet" local core = require "skynet.core" local api = require "api" local sys = require "sys" local log = require "log" local dump = require "utils.dump" local text = require("text").appmgr local interval = 500 -- 5 seconds local limit = 4 -- 15 seconds local locked = true local sysinfo = {} ...
object_tangible_tcg_series5_hangar_ships_black_sun_fighter_heavy_01 = object_tangible_tcg_series5_hangar_ships_shared_black_sun_fighter_heavy_01:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series5_hangar_ships_black_sun_fighter_heavy_01, "object/tangible/tcg/series5/hangar_ships/black_sun_fighter_heavy_01...
#!/usr/bin/env lua ------------------------------------------------------------------------------- -- Name: wxluafreeze.lua -- Purpose: Append a wxLua script to the wxLuaFreeze executable to run -- Author: John Labenski -- Created: 2005 -- Copyright: (c) 2005 John Labenski -- Licence: wxWidge...
require('nn') require('torch') --- @class GaussianKullbackLeiblerDivergence local GaussianKullbackLeiblerDivergence, GaussianKullbackLeiblerDivergenceParent = torch.class('nn.GaussianKullbackLeiblerDivergence', 'nn.Module') --- Initialize. -- @param lambda weight of loss function GaussianKullbackLeiblerDivergence:__i...
Character = { -- Ativa ou desativa a criação de personagens. Creation = true, -- Ativa ou desativa a exclusão de personagens. Delete = true, -- Leve mínimo para exclusão. DeleteMinLevel = 1, -- Level máximo para exclusão. DeleteMaxLevel = 50, -- Impede que outras sprites sejam escolhidas por edição de paco...
PPM2.AVALIABLE_EMOTES = { { ['name'] = 'gui.ppm2.emotes.sad', ['sequence'] = 'sad', ['time'] = 6 }, { ['name'] = 'gui.ppm2.emotes.wild', ['sequence'] = 'wild', ['time'] = 3 }, { ['name'] = 'gui.ppm2.emotes.grin', ['sequence'] = 'big_grin', ['time'] = 6 }, { ['name']...
if ( LANG ) then return end LANG = {} DM.Include( 'lang_cl.lua' ) local dir = ( GM.FolderName or 'dm' ) .. '/gamemode/config/languages/' local files = file.Find( dir .. '*.lua', 'LUA' ) for _, fname in ipairs( files ) do local path = dir .. fname if ( string.Right( fname, 3 ) == 'lua' ) then DM.Include( path ...
return function(parent, dir) local coroutine = require 'coroutine' local lgi = require 'lgi' local bytes = require 'bytes' local GLib = lgi.GLib local Gio = lgi.Gio local Gtk = lgi.Gtk local GdkPixbuf = lgi.GdkPixbuf local window = Gtk.Window { title = 'Images', border_width = 8, Gtk.Box { id = 'vbox',...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BceGuildReqCancel_pb', package.seeall) local BCEGUILDREQCANCEL = protobuf.Descriptor(); local BCEGUILDREQCANCEL_GUILDID_FIELD = protobuf.FieldDescriptor(); BCEGUILDREQCANCEL_GUILDID_FIELD.name = "guildID" BCEGUILDREQCANCEL_GUILDID...
local backend = require("ilk.backend.numpy.backend-symbols") local metat = require("ilk.common").metatypes local logging = require('log') local M = {} M.logger = logging.new("warning", require('log.writer.console.color').new()) local formalParameter = function(metaparameter) local name = metaparameter.defname --...
--- Helper functions for NSE script output -- -- These functions are useful for ensuring output is consistently ordered -- between scans and following conventions for output formatting. -- -- @author Daniel Miller -- @copyright Same as Nmap--See https://nmap.org/book/man-legal.html -- @class module -- @name outlib loc...
local mod = DBM:NewMod(1426, "DBM-HellfireCitadel", nil, 669) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 14990 $"):sub(12, -3)) mod:SetCreatureID(90019)--Main ID is door, door death= win. 94515 Siegemaster Mar'tak mod:SetEncounterID(1778) mod:SetZone() mod:SetUsedIcons(6, 5, 4, 3, 2, 1) ...
local turfsOwned = {} local turfs = { SANDY = { id = 1, income = 700, } } -- Loading MySQL Class require "resources/essentialmode/lib/MySQL" -- MySQL:open("IP", "databasname", "user", "password") MySQL:open("127.0.0.1", "gta5_script_turfs", "root", "1202") AddEventHandler("es:playerLoaded", funct...
local _, data = ... data.classes = { [0] = { name = "Consumables", subclasses = { [-3] = "Temporary Enchantments", -- stephenswat (not used, replaced by Poisons, Weapon & Fishing Buffs subclass categories) [ 0] = nil, -- -- Wowhead subclass categories [ 1] ...
local hosts, ports = dofile("/etc/nginx/conf.d/hosts.lua") local balancer = require "ngx.balancer" local host = hosts[tonumber(ngx.header['posicao'])] local port = ports[tonumber(ngx.header['posicao'])] local ok, err = balancer.set_current_peer(host, port) if not ok then ngx.log(ngx.ERR, "falha ao tentar balancea...
fprp.registerfprpVar("AFK", net.WriteBit, fn.Compose{tobool, net.ReadBit}); fprp.registerfprpVar("AFKDemoted", net.WriteBit, fn.Compose{tobool, net.ReadBit}); fprp.declareChatCommand{ command = "afk", description = "Go AFK", delay = 1.5 }
ENDPOINT = '0.0.0.0:8080' ws = websocket.createClient() up = false right = false down = false left = false -- Up, right, down, left gpio.mode(5, gpio.INT, gpio.PULLUP) gpio.mode(6, gpio.INT, gpio.PULLUP) gpio.mode(7, gpio.INT, gpio.PULLUP) gpio.mode(12, gpio.INT, gpio.PULLUP) gpio.mode(1, gpio.OUTPUT) gpio.mode(2, g...
local function gen_regex(text) return "(" .. string.gsub(text, " +", ").*(") .. ")" end --- Splits a string `str` on separator `sep`. --- --- @tparam string str --- @tparam[opt] string sep defaults to "\n" --- @treturn {string} function string.split(str,sep) sep = sep or "\n" local ret={} local n=1 for ...
stormstrike_mage = { cast = function(player, target) local spellName = "Stormstrike" if not player:canCast(1, 1, 0) then return end local damage = 125 + (player.level * 4) + math.ceil(((player.will + 1) / 2) * 3.5) local worked = global_zap.cast(player, target, damage, 150, 0) if worked ~= 0 then pla...
local snips, autosnips = {}, {} local util = {} util.pipe = function(fns) return function(...) for _, fn in ipairs(fns) do if not fn(...) then return false end end return true end end util.on_top = function() local cursor = vim.api.nvim_win_get_cursor(0) if cursor[1] <= 3 then return true end...
--[[ 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, ...
-- Copyright (c) 2021 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local colors = require "moonpie.graphics.colors" colors.drawDefault = {1, 1, 1, 1} colors.lowHealth = colors.danger -- Message colors colors.msgText = colors.text colors.ms...
--[[ This change log was meant to be viewed in game. You may do so by typing: /wim changelog ]] local currentRevision = tonumber(("$Revision$"):match("(%d+)")); local log = {}; local beta_log = {}; local t_insert = table.insert; local function addEntry(version, rdate, description, transmitted) t_insert(log...
package("fontconfig") set_homepage("https://www.freedesktop.org/wiki/Software/fontconfig/") set_description("A library for configuring and customizing font access.") set_urls("https://www.freedesktop.org/software/fontconfig/release/fontconfig-$(version).tar.gz") add_versions("2.13.1", "9f0d852b39d75fc...
package.path = "../?.lua;"..package.path local collections = require("wordplay.collections") local Stack = collections.Stack local s = Stack() s:push(1) s:push(2) s:push(3) for idx, value in s:items() do print(idx, value) end print("stack length: ", s:length()) print(s:pop()) print(s:pop()) print(s:pop())
-- NOTE: This does not work yet. local kSocketedModelName = PrecacheAsset("models/system/editor/power_node.model") local kSocketedAnimationGraph = PrecacheAsset("models/system/editor/power_node.animation_graph") local function NinSetupWithInitialSettings(self) if self.startSocketed then self:SetIntern...
local geo3x3 = require("geo3x3") print(geo3x3.encode(35.65858, 139.745433, 14)) pos = geo3x3.decode("E9139659937288") print(pos[1], pos[2], pos[3], pos[4])
-- converts RGB values in the range of 0-1 -- to HSV values in the range of 0-360, 0-1, and 0-1 respectively function rgb_to_hsv(r, g, b) r, g, b = r, g, b local min = math.min(r, g, b) local max = math.max(r, g, b) if min == max then return 0, 0, max end local d = max - min loca...
package.path = package.path..";/usr/servers/nginx/conf/lua/?.lua" local module_hello = require("module_hello") module_hello.hello()
build_path = os.getenv("BUILDDIR") package.cpath = build_path..'/test/box/?.so;'..build_path..'/test/box/?.dylib;'..package.cpath log = require('log') net = require('net.box') c = net.connect(os.getenv("LISTEN")) box.schema.func.create('function1', {language = "C"}) box.schema.user.grant('guest', 'execute', 'functio...
local levels = { debug = 1, info = 2, warning = 3, error = 4 } context.log = function(message, level) if not level then level = 'debug' end if not config.level or levels[config.level] <= levels[level] then context.lusty.event:publish({ 'log', level }, { context = context, message = m...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. death_watch_bunker_ingredient_protective = { description = "", minimumLevel = 0, maximumLevel = 0, lootItems = { {itemTemplate = "protective_liquid_coating", weight = 10000000} } } addLootGroupTemplate("death_watch_bunker_ingredient_prot...
local rx = require"rx" local Observable = rx.Observable local Observer = rx.Observer local Subscription = rx.Subscription function Observable:endWith(...) local endVal = rx.util.pack(...) return Observable.create(function(observer) local function onNext(...) observer:onNext(...) end local function onError(...
local gamemode = ScriptedGamemode() gamemode.PlayerPcts = {} local massLossPerPct = 0.2 local startingMass = 50 function gamemode:OnPlayerSpawn(player) self.Base:OnPlayerSpawn(player) local entity = player:GetControlledEntity() entity:GiveWeapon("weapon_sword_emmentalibur") entity:GiveWeapon("weapon_graspain") ...
local awful = require('awful') local beautiful = require('beautiful') local gears = require('gears') local apps = require('configuration.apps') local dpi = require('beautiful').xresources.apply_dpi local tags = {{ text = 'web', screen = 1 }, { text = 'dev', screen = 1 }, { text = 'term', screen...
--- === cp.apple.finalcutpro.main.EffectsBrowser === --- --- Effects Browser Module. local require = require -- local log = require("hs.logger").new("EffectsBrowser") local geometry = require("hs.geometry") local fnutils = require("hs.fnutils") local axutils = require("cp.ui.axutils") local...
--------------------------------------------- -- Gates of Hades -- -- Description: Deals severe Fire damage to enemies within an area of effect. Additional effect: Burn -- Type: Magical -- -- -- Utsusemi/Blink absorb: Wipes shadows -- Range: 20' radial -- Notes: Only used when a cerberus's health is 25% or lower...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = {}, Category = "Tick_BeforeFounders", Effects = { PlaceObj('DiscoverTech', { 'Field', "Physics", 'Tech', "ExtractorAmplification", }), PlaceObj('RewardTechBoost', { 'Field', "Physics", 'Res...
----------------------------------- -- Area: Ranguemont Pass -- NPC: _4m0 -- Type: Door -- !pos -180 1.375 -159 166 ----------------------------------- function onTrigger(player, npc) return 1 end
require "my_init" local skynet = require "skynet" local db = require "db" local sock_mgr = require "sock_mgr" local player_mgr = require "player_mgr" local login_mgr = require "login_mgr" local msg_handler = require "msg_handler.init" local CMD = {} function CMD.start(conf) db:init() sock_mgr:start(conf) ...
-- const auto city_entity = registry.create(); -- auto city_transform = Transform{city_entity}; -- city_transform.scale = vec3{0.25f}; -- city_transform.translation = vec3{0.0f, -1.0f, 0.0f}; -- registry.assign<Afk::Transform>(city_entity, city_transform); -- registry.assign<Afk::ModelSource...
-- Места, в которых может расти что-то -- ARR.herbPlaces.x[ herbPlaceID ] ... -- g - ID группы, в которой находится точка ARR.herbPlaces = { x = { 0.00, 0.00 }; y = { 0.00, 1.00 }; z = { 2.00, 2.00 }; g = { 1, 1 }; }
--[[------------------------------------------------------------------------------ * Copyright (C) Fluffy(76561197976769128 - STEAM_0:0:8251700) - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited * Proprietary and confidential --]]---------------------------------...
ix.bar = ix.bar or {} ix.bar.list = {} ix.bar.delta = ix.bar.delta or {} ix.bar.actionText = "" ix.bar.actionStart = 0 ix.bar.actionEnd = 0 ix.bar.totalHeight = 0 -- luacheck: globals BAR_HEIGHT BAR_HEIGHT = 10 function ix.bar.Get(identifier) for _, v in ipairs(ix.bar.list) do if (v.identifier == id...
-- space index create/drop tree incorrect key pos space = box.schema.space.create('test', { engine = 'sophia' }) index = space:create_index('primary', {type = 'tree', parts = {3, 'num'}}) space:drop() -- space index create/drop tree sparse space = box.schema.space.create('test', { engine = 'sophia' }) index = space:cr...
loader.SetMSAA(2) -- 4 Samples loader.MSAAOnEdited() loader.SetCounter(5)
-[[ Commissioned By: Reverse Produced By: Tasid --]] print("SH")
modifier_pudge_flesh_heap_oaa_ardm = modifier_pudge_flesh_heap_oaa_ardm or class({}) function modifier_pudge_flesh_heap_oaa_ardm:IsHidden() return false -- needs tooltip end function modifier_pudge_flesh_heap_oaa_ardm:IsDebuff() return false end function modifier_pudge_flesh_heap_oaa_ardm:IsPurgable() return f...
if vim.fn.has('termguicolors') == 1 then vim.opt.termguicolors = true end local status_ok, colorizer = pcall(require, "colorizer") if not status_ok then return end colorizer.setup ( {'*';}, { RGB = true; RRGGBB = true; names = false; RRGGBBAA = true; rgb_fn = true; hsl_fn = true; ...
local D=55 local I=1 local portier=createPed(54,3574.08,-1303.40,1625.80,180,false) setElementDimension(portier,D) setElementInterior(portier,I) setElementFrozen(portier, true) setElementData(portier, "npc", true) setPedAnimation (portier, "COP_AMBIENT", "Coplook_loop", -1, true, false )
local heroStar = require"hero.HeroStar" local ParameterConf = require "config.ParameterShowInfo"; local skillConfig = require "config.skill" local roleStar = {} local arrowRotate = { [5] = -153, [4] = -100, [3] = -69, [2] = -20, [1] = 70, [0] = 136, } local sliderRotate = { [0] = 0, [...
local IAspect = require("api.IAspect") local IItemUseable = require("mod.elona.api.aspect.IItemUseable") local IEvented = require("mod.elona.api.aspect.IEvented") local SmithingFormula = require("mod.smithing.api.SmithingFormula") local Gui = require("api.Gui") local Enum = require("api.Enum") local Calc = require("mod...
---- Copyright(c) Cragon. All rights reserved. ---- 由ControllerPlayer管理 -- ----------------------------------------- --OnlineReward = {} -- ----------------------------------------- --function OnlineReward:new(o, view_mgr) -- o = o or {} -- setmetatable(o, self) -- self.__index = self -- self.ViewMgr = view...
-- premake5.lua --require "dlls" workspace "Maze" location "" configurations { "Debug", "Release" } platforms { "Win32", "Win64" } filter { "platforms:Win32" } system "Windows" architecture "x86" filter { "platforms:Win64" } system "Windows" architecture "x64" ...
ESX = nil Jobs = {} RegisteredSocieties = {} TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) function stringsplit(inputstr, sep) if sep == nil then sep = "%s" end local t={} ; i=1 for str in string.gmatch(inputstr, "([^"..sep.."]+)") do t[i] = str i ...
OPCODE_LOAD = vec("7b0000011"); OPCODE_OP_IMM = vec("7b0010011"); OPCODE_AUIPC = vec("7b0010111"); OPCODE_STORE = vec("7b0100011"); OPCODE_OP = vec("7b0110011"); OPCODE_LUI = vec("7b0110111"); OPCODE_BRANCH = vec("7b1100011"); OPCODE_JALR = vec("7b1100111"); OPCODE_JAL = vec("7b1101111"); FUNCT3_ALU_A...
Config = {} Config.Locale = 'br' --Traduções disponives "br/en/fr" Config.ShouldWaitBetweenRobbing = true Config.MinWaitSeconds = 60 Config.MaxWaitSeconds = 180 Config.RobDistance = 3 Config.RobAnimationSeconds = 10 Config.MinMoney = 100 Config.MaxMoney = 500
SessionManager = {} SessionManager.Sessions = {} function SessionManager:Initialize() end function SessionManager:AddSession(session) table.insert(self.Sessions, session) debug("Session added!") end function SessionManager:Start(session) debug("Session started!") session.State = Session.States.Running end func...
function Client_SaveConfigureUI(alert) Mod.Settings.NumTurns = numberInputField.GetValue(); end
pfDB["items"]["enUS-turtle"] = { [1262] = "Keg of Thunderbrew Lager", [2676] = "Shimmerweed", [4868] = "Scorched Heart", [5126] = "Knowledge: Defias Disguise", [5127] = "Knowledge: South Seas Pirate Disguise", [5129] = "Knowledge: Dark Iron Dwarf Disguise", [5130] = "Knowledge: Dalaran Wizard Disguise", ...
local ControlSpec = require 'controlspec' local Formatters = require 'jah/formatters' local Gong = {} -- Autogenerated using Engine_Gong.generateLuaEngineModuleSpecsSection local specs = {} specs.timbre = ControlSpec.new(0, 5, "linear", 0, 1, "") specs.timemod = ControlSpec.new(1, 5, "linear", 0, 1, "") specs.osc1ga...
return {'shabby','shag','shagindustrie','shagje','shagroker','shaken','shaker','shamponeren','shampoo','shampoos','shampooen','shantoeng','shantykoor','shareware','sharia','shawl','shanty','shakespearedrama','shabushabu','shakespeareaans','shakespeare','shanna','sharjah','sharon','shady','shah','shahid','shai','shakira...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. no_drop_holocron_dark = { minimumLevel = 0, maximumLevel = 0, customObjectName = "", directObjectTemplate = "object/tangible/jedi/no_drop_jedi_holocron_dark.iff", craftingValues = { }, customizationStringNames = {}, customizationValues = {} } a...
-- @brief Permanently stores and restores the game state. -- @full Permanently stores and restores the game state. The state is -- persistent between game starts. local state = {} -- The name of the file (in the storage) with the state. state.filename = 'state' -- @brief Gets the last component of table and ...
require "kong.tools.ngx_stub" local json = require "cjson" local utils = require "kong.tools.utils" local ALFBuffer = require "kong.plugins.mashape-analytics.buffer" local MB = 1024 * 1024 local ALF_STUB = {hello = "world"} local STUB_SIZE = string.len(json.encode(ALF_STUB)) local COMMA_SIZE = string.len(",") local J...
-- Team System function GM:ShowTeam() end function GM:HideTeam() end do local TEAM_UNASSIGNED = TEAM_UNASSIGNED function GM:GetTeamColor( ent ) return self:GetTeamNumColor( (ent.Team == nil) and TEAM_UNASSIGNED or ent:Team() ) end end do local team_GetColor = team.GetColor function GM:GetTeamNumColor( num ) ...
local Screen = require('lib/ScreenManager/Screen') require 'src/render/worldgen-render' require 'src/utils/start-game' require 'src/utils/chunk-mgr' require 'src/gen/overworld-gen' require 'src/gen/mapchunk-gen-util' local WorldGenScreen = {} function WorldGenScreen.new() local self = Screen.new() local curMa...
local errno = require("errno") local utils = require("utils") local stat = require("stat") local path_m = require("path") local WrapFs = require("wrapfs") local FsBase = require("fsbase") local MountFs = {} setmetatable(MountFs, {__index = WrapFs}) local function find_mountpoint(self, path) local node = self._pa...
---@class ISMouseDrag ISMouseDrag = {} ISMouseDrag.dragView = nil;
vim.keymap.set({ 'n', 'x', 'o' }, ':', '<Plug>(eft-repeat)') for _, v in ipairs { 'f', 'F', 't', 'T' } do vim.keymap.set({ 'n', 'x', 'o' }, v, string.format('<Plug>(eft-%s)', v)) end
package.path = package.path .. ';./LuaRPT/?.lua' local serpent=require("serpent") local pm=require("primitives") local rt=require("raytracer") local os = require("os") require("love.thread") local receivechn = love.thread.newChannel() local sendchn = nil local scene = {} local section = {} local result={} local use_...
--- Fort Module -- @module fort -- @pragma nostrip local cfort = require "cfort" ---@class fort local fort = {} -- enable table object access cfort.ftable_mt.__index = fort setmetatable(fort, fort) local function split(inputstr, sep) if sep == nil then sep = "%s" end local t = {} -- a bit weird, but need...
modifier_riven_runic_blade_stack = class({}) local tempTable = require("util/tempTable") -------------------------------------------------------------------------------- -- Classifications function modifier_riven_runic_blade_stack:IsHidden() return true end function modifier_riven_runic_blade_stack:GetAttributes() r...
local composer = require "composer" local scene = composer.newScene() local TutorialPresenter = require "Presenter.TutorialPresenter" local TutorialData = require "Model.TutorialData" local Preferences = require "Preferences" local Language = require "Language" local widget = require "widget" local sceneView local c...
require("user.options") require("user.keymaps") require("user.autocommands") require("user.plugins") require("user.colorscheme") require("user.impatient") require("user.dressing") require("user.autosave") require("user.todo") require("user.comment") require("user.toggleterm") require("user.bufferline") require("user.a...
local Log = require "internal.log" local M = {} local mode_color = function(colors) return { n = colors.cyan, i = colors.red, v = colors.yellow, [""] = colors.yellow, V = colors.yellow, c = colors.magenta, no = colors.red, s = colors.orange, ...
local h = require("null-ls.helpers") local methods = require("null-ls.methods") local CODE_ACTION = methods.internal.CODE_ACTION local ACTIONS = { p = "pick", r = "reword", e = "edit", s = "squash", f = "fixup", x = "exec", b = "break", d = "drop", } return h.make_builtin({ name = ...
local g_Queries = {} local g_BingAppId = '3F57A5F6F90AA286DB6B0557CC897B1C4C88206E' local g_Langs = false addEvent('onTranslateReq', true) addEvent('onTranslateLangListReq', true) addEvent('onClientTranslate', true) addEvent('onClientTranslateLangList', true) addEvent('onHttpResult') local function xmlUnesc...
--------------------------------------------------------------------------------------------------- --===============================================================================================-- --filename: welcome.lua --data:2015.4.17 --author:pu --desc: --=========================================================...
measure = {"\(^\circ\)", "'", "''"} answ = {"=", "<", ">"} numb = {} index = {} value = {} reply = {""} for i = 1,3 do index[i] = math.random(5) - 1 if (index[i] > 0) then index[i] = 1 end end if (index[1] == 0 and index[2] == 0) then index[1] = 1 end numb[1] = {} numb[1][1] = index[1] * math.ran...
ENT.Base = "base_anim" ENT.Type = "anim" ENT.PrintName = "Console" ENT.Spawnable = true ENT.AdminSpawnable = true ENT.Category = "Drones Rewrite Tools" ENT.Useable = true ENT.Hp = 120 ENT.MaxSymbols = 65 function ENT:ChangeLine(newstr, line) local line = line or #self.Cache local oldstr = self.Cache[line] if not ...
require'clipboard-image'.setup { default = { img_dir = 'img', img_dir_txt = 'img', img_name = function () -- local img_dir = 'img' -- require'clipboard-image.config'.get_config().img_dir() return os.date('%Y-%m-%d-%H-%M-%S') end, affix = '![](%s)', }, -- markdown = { -- img_dir = ...
local string_ex = {} function string_ex.split (str, pat) local t = {} local fpat = "(.-)" .. pat local last_end = 1 local s, e, cap = str:find (fpat, 1) while s do if s ~= 1 or cap ~= "" then table.insert(t,cap) end last_end = e+1 s, e, cap = str:find (fpat, last_end) ...
local Log = require("api.Log") local IKeyInput = require("api.gui.IKeyInput") local KeybindTranslator = require("api.gui.KeybindTranslator") local Queue = require("api.Queue") local data = require("internal.data") local input = require("internal.input") local MODIFIERS = table.set { "ctrl", "alt", "shift", ...
-- TODO: this file hasn't been used in the addon. FOAddon = {}; FOAddon.fully_loaded = false; local function GetAllRaidMembers(msg) if msg == "reset" then _G.FallenOathRaidMembers = {} print("Reset stored RaidMemebers.") return end _G.FallenOathRaidMembers[msg] = {} local memb...
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0216-widget-support.md -- -- Description: Check that SDL restored Widget window to NONE level after unexpected disconnect -- -- Precondi...
----------------------------------- -- Ability: Saboteur -- If the next spell you cast is enfeebling magic, its effect and duration will be enhanced. -- Obtained: Red Mage Level 83 -- Recast Time: 5:00 -- Duration: 1:00 ----------------------------------- require("scripts/globals/settings") require("scripts/globals/sta...
--[[----------------------------------------------------------------------- * | Copyright (C) Shaobo Wan (Tinywan) * | Github: https://github.com/Tinywan * | Blog: http://www.cnblogs.com/Tinywan * |------------------------------------------------------------------------ * | Date: 2017/6/02 22:29 * | Function: msyq...
--- === hs === --- --- Core Hammerspoon functionality -- this file is modified to kickstart the live enhancement suite installation process. return {setup=function(...) local modpath, frameworkspath, prettypath, fullpath, configdir, docstringspath, hasinitfile, autoload_extensions = ... local tostring,pack,tconca...
----------------------------------- -- Area: Wajaom Woodlands -- NPC: Engraved Tablet -- !pos 233 -9 -634 51 ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) player:startEvent(515); end; function onEventUpdate(player,csid,option) end; function onEventFi...
local has_telescope, telescope = pcall(require, 'telescope') if not has_telescope then error('telescope-ctags-outline.nvim requires nvim-telescope/telescope.nvim') end local finders = require("telescope.finders") local pickers = require("telescope.pickers") local conf = require("telescope.config").values local act...
local usemouseover = true -- Make this false or nil (or just delete the line altogether) to make your healing bars not change when you mouse over something. function EventHorizon:InitializeClass() self.config.gcdSpellID = 528 -- dispel magic self.config.hastedSpellID = {2006, 10}-- Resurrection self.config.past =...
--[[ Copyright (C) 2020 The DMLab2D Authors. 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writ...
-- QUENCE: sequencer -- v2.2.8 @spunoza -- llllllll.co/t/29436 -- Q * U * E * N * C * E -- -- a probababilistic -- 4-track sequencer -- for norns and grid -- with output for MIDI -- and Molly the Poly -- and crow -- -- by Rob Schoen -- millxing at gmail -- https://llllllll.co/u/spunoza/summary -- https://github.com/mi...
--- Provides a collection of CSS color names and their RGB values. -- For more details, see the documentation for `colorswatches`. -- -- @module colorswatches.css -- -- @usage -- css_colors = require 'colorswatches.css' -- -- -- -- print out the names and RGB values -- for name, color in pairs(css_colors) do -- p...
local joint_meta = global_metatable("joint", "entity") function IsJoint(e) return IsEntity(e) and e.type == "joint" end function Joint(handle) if handle > 0 then return setmetatable({handle = handle, type = "joint"}, joint_meta) end end function FindJointByTag(tag, global) return Joint(FindJo...
function ix.weight.CalculateWeight(character) -- Calculates the total weight of all items a character is carrying. local inventory = character:GetInventory() local weight = 0 for i, v in pairs(inventory:GetItems()) do if (v:GetWeight()) then weight = weight + v:GetWeight() end end return weight end func...
----------------------- -- NO: A game of numbers -- Created: 23.08.08 by Michael Enger -- Version: 0.2 -- Website: http://www.facemeandscream.com -- Licence: ZLIB ----------------------- -- States used. ----------------------- -- Menu State -- Main menu... Menu = {} Menu.__index = Menu function Menu.cr...