content
stringlengths
5
1.05M
-------------------- -- Battery widget -- -------------------- -- Copyright (c) 2013-2015 Vladimir Gorbunov -- Release under MIT license, see LICENSE file for more details local wibox = require("wibox") local awful = require('awful') local naughty = require('naughty') local utils = require("fainty.utils") local base =...
local L = LibStub("AceLocale-3.0"):NewLocale("BestInSlotNG", "deDE") if L then L["%1$s from raid tier: %2$s"] = "%1$s aus dem Raid Tier: %2$s" L["%1$s needs nothing from %2$s %3$s"] = "%1$s ben\195\182tigt nichts mehr von %2$s %3$s" L["%1$s needs the following bosses from %2$s %3$s"] = "%1$s ben\195\182tigt die folgend...
-- a script for synthesising images with MGAN require 'torch' require 'nn' require 'optim' require 'cutorch' require 'cunn' require 'image' --camera-- require 'sys' require 'camera' require 'xlua' loadcaffe_wrap = paths.dofile('lib/loadcaffe_wrapper.lua') util = paths.dofile('lib/util.lua') pl = require('pl.import_in...
-- Selects the most recent input mode and attempts to -- identify the best state from it -- @classmod InputModeSelector local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local INPUT_MODES = require("INPUT_MODES") local Maid = require("Maid") local ValueObject = require("ValueObje...
ENT.Type = "anim" ENT.Base = "base_wire_entity" ENT.PrintName = "Wire Magnet" ENT.Author = "cpf" ENT.Contact = "" ENT.Purpose = "" ENT.Instructions = "" ENT.Spawnable = false ENT.AdminSpawnable = false function ENT:SetOn( boolon ) self:SetNetworkedBool( "On", boolon, true ) self:GetTable().On=b...
local version = myModuleVersion() local base = "/vf/users/MEGmodules/modules/megnet" .. version family("MEGnet") prepend_path("PATH", pathJoin(base,"bin")) local omp_nt = os.getenv("OMP_NUM_THREADS") or "1" pushenv("OMP_NUM_THREADS", omp_nt) if (mode() == "load") then LmodMessage("[+] Loading MEGnet ",version," ...
---@type src.proto.text local text = { node = "text", pos = { 8, 8 }, text = "У попа была собака, он её любил. Она съела кусок мяса...", colors = { "white", "brown" }, shadow = true, wrap = true, -- XXX } ---@type src.proto.rect local rect = { id = "#rect", node = "rect", pos = { "50%8", "50%8" }, ...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. carbine_dh17 = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/weapon/ranged/carbine/carbine_dh17.iff", craftingValues = { {"mindamage",28,52,0}, {"maxdamage",81,150,0}, {"attackspeed",4.5,3.1,1}, ...
-------------------------------- -- @module EaseBounceIn -- @extend ActionEase -- @parent_module cc -------------------------------- -- -- @function [parent=#EaseBounceIn] create -- @param self -- @param #cc.ActionInterval action -- @return EaseBounceIn#EaseBounceIn ret (return value: cc.EaseBounceIn) ----...
local pl = require "pl.file" local read = pl.read local g = {} g.wtf = [[S: ``T`` (U V)]] g.grammar_s = [[ A : B C ( E / F ) / G H I : "J" K : L* M+ N? O : !P &Q !R* `S` : ``T`` (U V) W : {XY} [a-z] A : (B$2)* C$-3 D$4..5* E$+4 ]] g.deco_s = [[ A: `-(B C/ D)$2..5*` ]...
data:extend({ { type = "recipe", name = "early-roboport", enabled = true, energy_required = 5, ingredients = { {"iron-plate", 25}, {"iron-gear-wheel", 20}, {"electronic-circuit", 15} }, result = "early-roboport" } })
-- -- Advanced Friends Interface (SetUp) -- local _, L = ...; local AddOn = "Arranger_AdvancedFriendsUI" local Path = "Interface\\AddOns\\"..AddOn.."\\" local Build = "0150924:012" local Constant = {ADVANCED_INTERFACE_FRIENDS_TRACKING = {}} local function AdvancedInterface(L, key) return key; end local function CopyA...
function os.winSdk() local reg_arch = iif( os.is64bit(), "\\Wow6432Node\\", "\\" ) local sdk_version = os.getWindowsRegistry( "HKLM:SOFTWARE" .. reg_arch .."Microsoft\\Microsoft SDKs\\Windows\\v10.0\\ProductVersion" ) if sdk_version ~= nil then return sdk_version else return "8" end -- Assumes that at least...
--[[ Desc: a component for projectile logic Feature: 1.Death: by anim playing end / by time / by distance 2.Combat: Attack / BeHit 3.Move: forward / rotate / changeDirection Author: SerDing Since: 2020-03-18 Alter: 2021-05-26 ]] local _Vector3 = require("utils.vector3") local...
-- Line buffering. push() takes arbitrarily chunked data, and -- push_line() is called for each line. local linebuf = {} -- default implementation for convenience. override! function linebuf:push_line(data) io.stderr:write("line: " .. data) end function linebuf:push(data) self.buf = self.buf .. data while ...
require('!/DieRoller') function onload() onLoadShared("blue") end
local composer = require( "composer" ) local scene = composer.newScene() local physics = require( "physics" ) -- ----------------------------------------------------------------------------------- -- Code outside of the scene event functions below will only be executed ONCE unless -- the scene is removed entirely (no...
object_tangible_component_genetic_engineering_enzyme_extraction_unit = object_tangible_component_genetic_engineering_shared_enzyme_extraction_unit:new { } ObjectTemplates:addTemplate(object_tangible_component_genetic_engineering_enzyme_extraction_unit, "object/tangible/component/genetic_engineering/enzyme_extraction_...
local UIButton = require("lib.classes.UIButton") local Event = require("lib.classes.Event") local Color = require("lib.datatypes.Color") local JUtils = require("lib.utils.JUtils") local Slider = UIButton:subclass("Slider") function Slider:init() self.super:init() self.minValue = 0 self.maxValue = 100 ...
-- Copyright (c) 2021 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local types = require "game.settings.actions.types" return function(name, value) return { type = types.settings_set_option, payload = { name = name, valu...
return {'paadje','paaien','paaigebied','paaiplaats','paaitijd','paaivis','paal','paalbalk','paaldansen','paaldanseres','paaldorp','paalfundering','paalgat','paalgording','paalstand','paalsteek','paaltje','paalvast','paalwerk','paalwoning','paalworm','paalzitten','paan','paander','paap','paapje','paaps','paapsgezind','p...
-- Automation 4 test file -- Create a Macro feature, that displays some text script_name = "Automation 4 set-selection test" script_description = "Test setting the grid selection" script_author = "Niels Martin Hansen" script_version = "1" function selecttest(subtitles, selected_lines, active_line) -- get line-id o...
#!/usr/bin/env tarantool local test = require("sqltester") test:plan(1) --!./tcltestrunner.lua -- 2011 October 13 -- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive ...
--[[ #class Bitmap |Needed methods:| -[x] clear -[x] clear_rect -[x] zoom_blur,box_blur,pixel_blur **TODO:** -[x] function 'text_size' -[x] function 'draw_text' classic -[x] function 'gradient' ]]-- Bitmap = class("Bitmap") function Bitmap:init(width,height) self._width = 0 self._height = 0 self._name = "" ...
local rth = require("test_refactoring") local test = { params = { line = { type = "current_line" }, col = { type = "current_column" }, } } function test:determine_input_files(params, opts) return opts.input_files end function test:before_execute(ast, params, opts) end function test:execute(ast,...
-- https://github.com/premake/premake-core/wiki local action = _ACTION or "" local VULKAN_SDK = os.getenv("VULKAN_SDK"); solution "cinder-vulkan" location (action) configurations { "Debug", "Release" } language "C++" configuration "vs*" platforms {"x64", "x86"} cppdial...
Crate:describe(function(s) s.name = 'Active Network' s.version = '1.0' s.date = '2019-03-09' s.summary = 'Networking utilities' s.description = 'Active Network provides various convenience libraries for automatic variable networking from server to client and vice versa.' s.authors ...
local configs = require 'lspconfig/configs' local util = require 'lspconfig/util' configs.verilog_language_server = { default_config = { cmd = {"vls"}; filetypes = {"verilog"}; root_dir = util.path.dirname; -- root_dir = function(fname) -- local filename = util.path.is_absolute(fname) and fname...
--[[ AscendScripting Script - This software is provided as free and open source by the staff of The AscendScripting Team.This script was written and is protected by the GPL v2. The following script was released by a AscendScripting Staff Member. Please give credit where credit is due, if modifying, redistributing and/...
local bit = require "bit32" local utils = require "luainlua.common.utils" local function int(str, i, n) if n == 1 then return str:byte(i), i + 1 end local k = str:byte(i) local m, i = int(str, i + 1, n-1) return bit.lshift(m, 8) + k, i end local function short(str, i) return int(str, i, 2...
FACTION.name = "USMLC" FACTION.desc = "You're fighting the German in the United States army as a Lance Corporal." FACTION.color = Color(229, 113, 113) FACTION.isDefault = false FACTION.models = { "models/player/PMC_1/PMC__06.mdl", "models/player/PMC_1/PMC__07.mdl", } FACTION.isGloballyRecognized = true
PLUGIN.name = "Noob Hinter" PLUGIN.author = "Black Tea" PLUGIN.desc = "This plugin adds good HUD." if (SERVER) then return end local function languageDeclare() local langkey = "english" do local langTable = { helpFist1 = "Attack with Fists", helpFist2 = "Knock", helpFist3 = "Pi...
local map = vim.api.nvim_set_keymap map('n', '<c-p>', '<cmd>Telescope find_files find_command=fd,--type,f,--hidden<cr>', { noremap = true }) map('n', 'gb', '<cmd>Telescope buffers<cr>', { noremap = true })
include("terms") measure = {"\(^\circ\)", "'", "''"} numb = {} index = {} value = {} numb[1] = {} for i = 1,3 do index[i] = math.random(4) - 1 if (index[i] > 0) then index[i] = 1 end end numb[1][1] = math.random(80) value[1] = numb[1][1] for i = 2,3 do numb[1][i] = index[i] * math.random(59) ...
-- You can define factions in the factions/ folder. You need to have at least one faction that is the default faction - i.e the -- faction that will always be available without any whitelists and etc. FACTION.name = "Citizen" FACTION.description = "An oppressed group of people forced to wear ridiculous blue jumpsuits...
pg = pg or {} pg.box_data_template = { { name = "物资箱", type = 1, id = 1, icon = "event2", effect_id = 10001 }, { name = "物资箱", type = 1, id = 2, icon = "event2", effect_id = 10002 }, { name = "物资箱", type = 1, id = 3, icon = "event2", effect_id = 10003 }, { name = "物资箱", type = 1...
---------------------------------------------------------------------------------- -- -- LibCompress.lua -- -- Authors: jjsheets and Galmok of European Stormrage (Horde) -- Email : sheets.jeff@gmail.com and galmok@gmail.com -- Licence: GPL version 2 (General Public License) ---------------------------------------------...
//NS2 Pause Plugin local gamestate = { gamepaused = false, gamepausedtime = 0, gamepausedcountdown = 0, gamepausedmessagetime = 0, gamepausingteam = 0, team1pauses = 0, team2pauses = 0, team1resume = false, team2resume = false, gamepauseddelta = 0 } local SharedGetTimeAdjustments = 0 local ClassUpdatesBlock = { } ...
tests = {"tests/parse.c", "tests/gen.c"} function gen_tests() for k, v in pairs(tests) do b, e = v:find("/[a-z]+"); b=b+1; name = v:sub(b,e); print ("generating test", name) project ("test_" .. name) kind "ConsoleApp" language "C" targetdir "bin" debugdir "tests" includedirs "./" links ("...
-- youtube-upnext.lua -- -- Fetch upnext/recommended videos from youtube -- This is forked/based on https://github.com/jgreco/mpv-youtube-quality -- -- Diplays a menu that lets you load the upnext/recommended video from youtube -- that appear on the right side on the youtube website. -- If auto_add is set to true (defa...
-- Copyright 2015 Alex Browne. All rights reserved. -- Use of this source code is governed by the MIT -- license, which can be found in the LICENSE file. -- get_jobs_by_ids is a lua script that takes the following arguments: -- 1) The key of a sorted set of some job ids -- The script then gets all the data for those...
local ball = dxCreateTexture("items/coloredprojectiles/texture.png") function attachMarkerToProjectile() for _, proj in ipairs(getElementsByType("projectile")) do local color = getElementData(proj,"color") if color then local x,y,z = getElementPosition(proj) setCoronaPosition(color[1],x,y,z) setCoronaPos...
function Initialize() discColor1 = SKIN:GetVariable("DiscColor1") discColor2 = SKIN:GetVariable("DiscColor2") name1 = SKIN:GetVariable("DiscName1") name2 = SKIN:GetVariable("DiscName2") col = SKIN:GetVariable("BoardCol") + 0 row = SKIN:GetVariable("BoardRow") + 0 spacing = SKIN:GetVariable(...
-- some material utils function GetBillBoardMat (texpath,bAdditive) return GetTexturedMat(bAdditive and "billboard_add_base" or "billboard_base",texpath) end gTexturedMatCache = {} function GetTexturedMat (base,texpath) local cachename = base.."#"..texpath local cache = gTexturedMatCache[cachename] if (cache) th...
local o={} function o:OnActivate() self.time=0; self.origin = TransformBus.Event.GetWorldTranslation(self.entityId); self.origin.x=502 self.origin.y=553 self.origin.z=41 self.tickBusHandler = TickBus.Connect(self); self.tah= TriggerAreaNotificationBus.Connect(self,self.entityId); self.radius = SphereS...
--!A cross-platform build utility based on Lua -- -- 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...
local log = require('utils.log') local config = require('definitions.config') local format = require('utils.format') local fx = require('library.fx') local io = require('definitions.io') local custom_actions = { move = require('custom_actions.movement'), select = require('custom_actions.selection') } function cus...
return { setup = { "terryma/vim-expand-region", -- + to expand, _ to shrink "unblevable/quick-scope", -- highlights f, t, F, T "justinmk/vim-sneak", -- s, S to jump anywhere }, install = { "vim-scripts/ReplaceWithRegister", -- {Visual}["x]gr - replace {Visual} with register x "tpope/vim-repeat...
require('packer').use { 'FixCursorHold.nvim', event = { "BufRead", "BufNewFile" }, config = function() vim.g.cursorhold_updatetime = 100 end }
local pathes = defs.pathes.sprites local names = defs.names.sprites data:extend({ { type = "sprite", name = names.questionmark_white, filename = pathes.questionmark_white, priority = "high", width = 64, height = 64, scale = 0.5, }, { type = "sprite", name = names.ignore_white,...
local Class = require("lib.class") local Animation = Class("Animation") function Animation:initialize(frames, frameTime) self.frames = frames self.frameTime = frameTime self.currentTime = 0 self.currentFrame = 1 end return Animation
ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.PrintName = "Wall ATM" ENT.Author = "<CODE BLUE>" ENT.Contact = "Via Steam" ENT.Spawnable = true ENT.Category = "Blue's ATM" ENT.AdminSpawnable = true ENT.KeypadButtons = { [1] = { v1 = Vector(6.3242154121399, 4.6794362068176, 42.315120697021), v2 = Vector(5.277...
---------------- DIMENSIONAL LOGISTIC ------------------- -- Matter Serialization -- local msT = {} msT.name = "MatterSerialization" msT.type = "technology" msT.icon = "__Mobile_Factory_Graphics__/graphics/matter-serialization/MatterSerializationI.png" msT.icon_size = 64 msT.unit = { count=15, time=60, i...
--ZFUNC-pathedges-v1 local function pathedges( path ) --> edges local edges = {} if #path < 2 then return edges end for n = 2, #path do local i = n - 1 table.insert( edges, { path[ i ], path[ n ] } ) end return edges end return pathedges
local function init() minetest.register_privilege("hs_admin", { description = "Admin commands of HideNSeek mod", give_to_singleplayer = true, }) end return { init = init }
local name = 'setup-autopairs' local utils = require('utils').start_script(name) local M = {} M.setup = function(autopairs) local cmp = require 'cmp' local cmp_autopairs = require 'nvim-autopairs.completion.cmp' autopairs.setup { check_ts = true, } cmp.event:on('confirm_done', cmp_autopairs.on_confirm_...
local portal_targeter = util.table.deepcopy(data.raw["ammo-turret"]["gun-turret"]) portal_targeter.name = "teleportation-portal" portal_targeter.icon = "__Teleportation_Redux__/graphics/portal-64.png" portal_targeter.flags = {"placeable-neutral", "player-creation","placeable-off-grid"} portal_targeter.collision_m...
#!/usr/bin/env tarantool local tap = require('tap') local client = require('smtp').new() local test = tap.test("curl") local fiber = require('fiber') local socket = require('socket') local os = require('os') test:plan(1) mails = fiber.channel(100) local function smtp_h(s) s:write('220 localhost ESMTP Tarantool\r...
local addonName, GreyHandling = ...; local function defaultFunc(GreyHandling, key) -- If this function was called, we have no localization for this key. -- We could complain loudly to allow localizers to see the error of their ways, -- but, for now, just return the key as its own localization. This allows you to—av...
function Client_SaveConfigureUI(alert) Mod.Settings.NoTerritory = InputNoTerritory.GetIsChecked(); end
local moon = require("moon") local seri = require("seri") local conf = ... local pack = seri.pack local packs = seri.packs local unpack = seri.unpack local co_yield = coroutine.yield local function cluster_service() local json = require("json") local buffer = require("buffer") local socket = require("mo...
--[[ Allows you to easily construct complex hierarchies of instances. This has been particularly useful in unit tests, as we can easily fake the DataModel. Usage: local mockDataModel = new({ Name = "game" }, { ServerScriptService = newFolder({ Script = Instance.new("Script") }), ReplicatedSto...
-- Game settings -- Part of Live Simulator: 2 -- See copyright notice in main.lua -- luacheck: read_globals DEPLS_VERSION local love = require("love") local Luaoop = require("libs.Luaoop") local Async = require("async") local color = require("color") local Gamestate = require("gamestate") local LoadingIn...
local bit = require("bit") local cjson = require("cjson") local ffi = require("ffi") local lshift = bit.lshift local rshift = bit.rshift local band = bit.band local pow = math.pow local str_find = string.find local str_len = string.len local str_sub = string.sub local str_byte = string.byte local fopen = io.open ff...
notify.registry = {} notify.registry.n = 0 local function callback(tag) for k, v in pairs(notify.registry) do if k ~= "n" and v ~= nil then local fntag, fn = v[1], v[2] if tag == fntag then fn() end end end end if not _notifysetup then notify._setup(callback) _notifysetup = t...
resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5' client_script 'client.lua' server_script 'server.lua'
local testArray = { [0] = 4, 0, "Background", 1, 0, 0, "<font color=\"#C80030\">Origin:</font> The Red Prince", 2, 0, 0, 0, "You are infamous: a brilliant warrior-general exiled from his empire for cavorting with demons. Fallen from grace, you refuse to give up. The throne will be yours again.", 2, 0, 0,...
object_tangible_loot_creature_loot_collections_aurebesh_tile_orenth = object_tangible_loot_creature_loot_collections_shared_aurebesh_tile_orenth:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_aurebesh_tile_orenth, "object/tangible/loot/creature/loot/collections/aurebesh_tile_orenth...
function lutro.graphics.setBackgroundColorTest() red = 115 green = 27 blue = 135 alpha = 50 color = { red, green, blue, alpha } lutro.graphics.setBackgroundColor(color) lutro.graphics.setBackgroundColor(red, green, blue, alpha) end function lutro.graphics.getBackgroundColorTest() r, g, b, ...
local agreementKey = KEYS[1] local agreementTxListKey = KEYS[2] local txId = ARGV[1] local txCounterField = ARGV[2] local addedTx = redis.call("SADD", agreementTxListKey, txId) if addedTx ~= 1 then return redis.call("HGET", agreementKey, txCounterField) end return redis.call("HINCRBY", agreementKey, txCounterField...
local http_cache = http_cache local FILE = {__index = {}} local FILE_INDEX = FILE.__index function FILE_INDEX:Initialize(url) self.url = url self.xurl = http_cache.StringXOR(url) local name, etag, lastmodified, lastvalidation, maxage, crc32 = http_cache.GetInfo(self.xurl) if name ~= false then local content = ...
-- Objects local FHH = Instance.new("ScreenGui") local main = Instance.new("Frame") local title = Instance.new("TextLabel") local main2 = Instance.new("Frame") local handcuff = Instance.new("TextButton") local gamepass = Instance.new("TextButton") local inviswalls = Instance.new("TextButton") local roomdoors = Instanc...
local awful = require("awful") local common = require("common") local modkey = common.modkey local ctrlkey = common.ctrlkey -- Focus related keybindings awful.keyboard.append_global_keybindings({ awful.key({ modkey, }, "j", function () awful.client.focus.byidx( 1) end, ...
------------------------------------------------------------------------------ -- -- Ce travail est sous liscence: -- Creative Commons Attribution-NonCommercial-NoDerivatives-NoDistribution 4.0 International License. -- ------------------------------------------------------------------------------ local PosWidth = -11...
--[[ Copyright (C) 2006-2007 Nymbia Copyright (C) 2010-2017 Hendrik "Nevcairiel" Leppkes < h.leppkes@gmail.com > This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, ...
--------------------------------- --Local and global variables --------------------------------- local Ragdoll = false ragdol = true --------------------------------- --KeyMapping Register --------------------------------- RegisterKeyMapping('rdoll', 'Toggle Ragdoll', 'keyboard', 'z') -- ('(Chat Command)', '(...
function loadClass(tbl) setmetatable(tbl, { __call = function(cls, ...) local self = {} setmetatable(self, { __index = cls }) self:__init__(...) return self end }) return tbl end
fluid = {} fluid.path = minetest.get_modpath("fluid") dofile(fluid.path.."/functions.lua") dofile(fluid.path.."/nodes.lua")
-------------------------------------------------------------------------------- -- Load needed modules -------------------------------------------------------------------------------- require("nn") require("nngraph") -------------------------------------------------------------------------------- -- Sequencer ------...
local Prop = {} Prop.Name = "Evocity District House Farm 1" Prop.Cat = "House" Prop.Price = 2500 Prop.Doors = { Vector( -7139, 13611, 252 ), } GM.Property:Register( Prop )
#!lua my_gcc_flags = { "-Wall", "-Wextra", "-pedantic", "-Wshadow", "-Wconversion", "-Wformat=2", "-Wstrict-prototypes", "-Wbad-function-cast" } newoption { trigger = "doxygen_path", value = "path", description = "Doxygen executable path" } newoption { trigger = "pth...
require "iuplua" -- Bizarre kludge: For reasons I do not understand at all, radio buttons do not work in FCEUX. Switch to menus there only local optionLetter = "o" if FCEU then optionLetter = "l" end function ircDialog() local res, server, port, nick, partner, forceSend = iup.GetParam("Connection settings", n...
local util = { merge = require(script.merge), copy = require(script.copy), } return util
local local0 = 0.2 local local1 = 0 - local0 local local2 = 2.9 - local0 local local3 = 0 - local0 local local4 = 3 - local0 local local5 = 0 - local0 local local6 = 0 - local0 local local7 = 1.1 - local0 local local8 = 0 - local0 local local9 = 1.1 - local0 local local10 = 2.2 - local0 local local11 = 8.4 - local0 loc...
type A = { b: number, c: number } local a: A = { b = 1, c = 2 } print( a.b, a.c )
---@class CS.FairyGUI.Image : CS.FairyGUI.DisplayObject ---@field public texture CS.FairyGUI.NTexture ---@field public textureScale CS.UnityEngine.Vector2 ---@field public color CS.UnityEngine.Color ---@field public fillMethod number ---@field public fillOrigin number ---@field public fillClockwise boolean ---@field pu...
require("core/anim") --region NewFile_1.lua --Author : KimWang --Date : 2015/6/11 --此文件由[BabeLua]插件自动生成 if AnimBase ~= nil then AnimBase.pause = function(self) if anim_set_pause ~= nil then anim_set_pause(self.m_animID,1); end end AnimBase.resume = function(self) ...
--[[ Copyright (c) 2013, Ikonic All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the followi...
--[[ ============= input.lua ============= OpenFNaF Input wrapper in LUA ]] -- Input Modes INPUT_BUTTON_DOWN = 0 INPUT_KEYBOARD_DOWN = 1 -- Controller INPUT_CROSS = 0 INPUT_SQUARE = 1 INPUT_TRIANGLE = 2 INPUT_CIRCLE = 3 INPUT_UP = 4 INPUT_DOWN ...
local config = require("tabset.config") local tabset = {} function tabset.setup(user_config) user_config = user_config or {} config.set_config(user_config) end vim.cmd([[ augroup tabset autocmd FileType * lua require('tabset.logic').set_settings() augroup END ]]) return tabset
---------------------------------------------------------------------------------------------------- -- MUDpp Race - Human ---------------------------------------------------------------------------------------------------- human = { name = "Human" , desc = "Human characters can master any skills but have av...
local N, S, E, W = 1, 2, 4, 8 local NEC, SEC, SWC, NWC = 16, 32, 64, 128 local DX = { [E] = 1, [W] = -1, [N] = 0, [S] = 0 } local DY = { [E] = 0, [W] = 0, [N] = -1, [S] = 1 } local OPPOSITE = { [E] = W, [W] = E, [N] = S, [S] = N } return { DIRECTIONS = {N, S, E, W, NEC, SEC, SWC, NWC}, DX = D...
return function(table, methodname, args, callback) for k, v in pairs(table) do callback(k,v) v[methodname](v, unpack(args)) end end
plate_chest_db = { id0 = { source = "Shattershard", drop_rate = "0.0", name = "Wardenguard's Chestplate", category_territory = "", territory = "War Zone", id = "0", expansion = "", location = "Darkshore" }, id1 = { source = "Onu", drop_rate = "0.0", name = "Deathguard's Chestplate", category_...
T.vs2010_sln = { } local vs_magic_cpp_build_tool_id = "8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942" local constant_uuid = "AE61726D-187C-E440-BD07-2556188A6565" local constant_project_name = "MyProject" -- -- Configure a solution for testing -- local sln function T.vs2010_sln.setup() _ACTION = "vs2010" sln = solutio...
local SkillQueueViewModel = my_load_mod_script("skill_queue_view_model") local QueuedSkillContainer = my_load_mod_script("queued_skill_container") local SkillValidator = my_load_mod_script("skill_validator") local SkillQueuer = my_load_mod_script("skill_queuer") local SkillQueueUi = {} --# assume SkillQueueUi: SKILL_QU...
return { summary = 'Get the current operating system.', description = 'Returns the current operating system.', arguments = {}, returns = { { name = 'os', type = 'string', description = 'Either "Windows", "macOS", "Linux", "Android" or "Web".' } } }
OrbItem = class(CustomItemOrb) -- states -- 0 => unknown -- 1 => undine -- 2 => gnome -- 3 => sylphid -- 4 => salamando -- 5 => shade -- 6 => lumina -- 7 => luna -- 8 => dryad function OrbItem:init(name, code) self:createItem(name) self.code = code self.baseCode = code self:setProperty("active", fals...
--- === FadeLogo === --- --- Show a fading-and-zooming image in the center of the screen --- --- By default the Hammerspoon logo is shown. Typical use is to show it as an indicator when your configuration finishes loading, by adding the following to the bottom of your `~/.hammerspoon/init.lua` file: --- ``` --- hs.lo...
local tempKey = "tmp-key" local cycles redis.call("SET", tempKey, "1") redis.call("PEXPIRE", tempKey, 10) for i = 0; ARGV[1], 1 do local isKeyExist = redis.call("EXISTS", tempKey) cycles = i if isKeyExist == 0 then break; end end return cycles