content
stringlengths
5
1.05M
--[[ This file is part of cvetool. It is subject to the licence terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/libertine-linux/cvetool/master/COPYRIGHT. No part of cvetool, including this file, may be copied, modified, propagated, or distribute...
-- Copyright 2015 Carnegie Mellon University -- -- 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 o...
-- https://github.com/ImagicTheCat/love-DPBR -- MIT license (see LICENSE or src/love-DPBR.lua) -- Bake some useful textures. -- requirements: LuaJIT, MGL, lua-vips -- params: --- BRDF <output .tiff 32-bit file> [size] [samples] local bit = require("bit") local ffi = require("ffi") local mgl = require("MGL") local vips...
local ls = require "lovesnow" require "lovesnow.manager" -- register protocol text before ls.start would be better. ls.register_protocol { name = "text", id = ls.PTYPE_TEXT, unpack = ls.tostring, dispatch = function(_, address, msg) print(string.format(":%08x(%.2f): %s", address, ls.time(), msg)) end } ls.regi...
local spell = Spell("instant") function spell.onCastSpell(player, variant) local targetPlayer = Player(variant:getString()) or player local guest = targetPlayer:getTile():getHouse() local owner = player:getTile():getHouse() if not owner or not guest or not guest:kickPlayer(player, targetPlayer) then player:send...
AddCSLuaFile(); SWEP.Base = "weapon_cc_base"; SWEP.PrintName = "Crowbar"; SWEP.Slot = 2; SWEP.SlotPos = 21; SWEP.UseHands = true; SWEP.ViewModel = "models/weapons/c_crowbar.mdl"; SWEP.WorldModel = "models/weapons/w_crowbar.mdl"; SWEP.Firearm = false; SWEP.Melee = true; SWEP.Primary.Automatic =...
require "hsmatrixsolver" fixed = {steel = 1} free = {} matrix = { iron = { make_iron = 1, make_steel = -5 }, steel = { make_steel = 1 } } hs_init() haskell_matrix_solver(fixed, free, matrix) hs_exit()
local List=require("logic/src/List"); local Room=require("logic/src/Room"); local Player=require("logic/src/Player"); local LogicConfig=require("logic/LogicConfig"); local CmdType=require("logic/const/CmdType"); local Respones=require("Respones"); local config=require("GameConfig"); local PlayerState=require("logic/con...
if GameHelpers.Net == nil then GameHelpers.Net = {} end --- Shortcut for calling Ext.PostMessageToClient to the host character. --- @param channel string Channel that will receive the message --- @param payload string Message payload function GameHelpers.Net.PostMessageToHost(channel, payload) local host = Character...
--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 version. ...
--[[------------------------------------------------------------------- This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or no...
local args = ...; local KeySequence = args.PiroGame.class('KeySequence'); local debug = require('Debug'); function KeySequence:clear() self._pressedKeys = {}; self._pressedCount = 0; self._neededCount = 0; self.active = false; end function KeySequence:initialize(arg, eventManager) self.eventMan...
function address(val) check("t|u|f|th") return utf8.match(tostring(val), "^.+:%s(%x+)$") end function toboolean(v) check("b|s") if v == false or v == true then return v end if v == "true" then return true end if v == "false" then return false end return nil end function tonil(v) check("?s") if v == nil ...
--# selene: allow(unused_variable) ---@diagnostic disable: unused-local -- Utility object to represent points, sizes and rects in a bidimensional plane -- -- An hs.geometry object can be: -- * a *point*, or vector2, with `x` and `y` fields for its coordinates -- * a *size* with `w` and `h` fields for width and heigh...
local directories = require("directories") local common = require("common") local wikilib = require("wikilib") local f = "https://placehold.it/%dx%d/%x%x%x/%x%x%x?text=%s" wikilib.setPlaceHolderColor(0, 255, 0, 0, 0, 0) print(wikilib.getBanner(" ", 18))
-- Game agnostic functions gav.u.ch = function(v) minetest.chat_send_all(v) return true end gav.u.sh = function(v) return type(v) == "string" and gav.u.ch(v) or minetest.chat_send_all(minetest.serialize(v)) end gav.u.s = function(v) return minetest.serialize(v) end gav.u.pl = function(v) return type(v) == "...
minetest.register_alias("adminboots","3d_armor:boots_admin") minetest.register_alias("adminhelmet","3d_armor:helmet_admin") minetest.register_alias("adminchestplate","3d_armor:chestplate_admin") minetest.register_alias("adminleggings","3d_armor:leggings_admin") minetest.register_tool("3d_armor:helmet_admin", { descri...
print('test2h.lua') function onFunctionDefined(fn, ...) print("onFunctionDefined:", '`'..fn.result..'` '..fn.name..' (`'..table.concat(fn, '`, `')..'`)') end
local comments = {} function comments.init() local space = box.schema.space.create("comments", { if_not_exists = true }) space:format({ { name = "id", type = "uuid" }, { name = "article_id", type = "uuid" }, { name = "user_id", type = "uuid" }, { name = "value", type = "string" }, { name = "lik...
-- Generated by CSharp.lua Compiler local System = System local SlipeMtaDefinitions System.import(function (out) SlipeMtaDefinitions = Slipe.MtaDefinitions end) System.namespace("Slipe.Client.Effects", function (namespace) -- <summary> -- Class that enables creation of short lived effects in the world -- </summ...
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB E.Options.args.skins = { type = "group", name = L["Skins"], childGroups = "tree", args = { intro = { order = 0, type = "description", name = L["SKINS_DESC"], }, blizzardEnable = { order = 1, type = '...
module 'mock' CLASS: SceneSession () :MODEL{} function SceneSession:__init() self.scene = Scene() self.scene.session = self self.initialized = false self.initialScene = false self.name = false self.main = false end function SceneSession:getName() return self.name end function SceneSession:init() if self.in...
--[[ 脚本基类 ]] local ScriptBase = class("ScriptBase", require("app.main.modules.meta.MetaBase")) -- 执行函数 function ScriptBase:execute() end return ScriptBase
slot0 = class("BackyardPool") slot0.Ctor = function (slot0, slot1, slot2) slot0.prefab = slot1 slot0.maxSize = slot2 slot0.items = {} end slot0.Enqueue = function (slot0, slot1) setActive(slot1, false) if slot0.maxSize <= #slot0.items then Destroy(go(slot1)) else table.insert(slot0.items, slot1) end end ...
theme_park_marauder_lizardman = Creature:new { objectName = "@npc_name:trandoshan_base_male", customName = "Lizardman", socialGroup = "", faction = "", level = 10, chanceHit = 0.26, damageMin = 55, damageMax = 65, baseXp = 187, baseHAM = 900, baseHAMmax = 1000, armor = 0, resists = {0,0,0,0,0,0,0,-1,-1}, ...
-- SubRip basic parser -- Part of Live Simulator: 2 -- See copyright notice in main.lua local function sortSub(a, b) return a.start < b.start end return function(iter) local res = {} -- ignore sub number, unnecessary local line = iter() if line and #line == 0 then line = nil end while line do ...
local naughty = require('naughty') local gears = require("gears") local awful = require("awful") local beautiful = require('beautiful') local geoms = {} geoms.crt43 = function () return { width=1280, height=1024, } end --|awful.screen.focused().workarea.y is required for --|multiple monitors to ...
--this = SceneNode() function destroy() if form then form:setVisible(false) form:destroy() end end function create() if not DEBUG then return false end if this:getNodeType() == NodeId.playerNode then local menuNode = this:getRootNode():addChild(SceneNode()) --camera = Camera() menuNode:...
meshes = { { vertexes = {{0,0}, {1000,0}, {1000,1000}, {0,1000}}, colors = {0x0000ffff, 0x0000ffff, 0x0000ffff, 0x0000ffff}, segments = {{0,1,2,3,0}} } }
local ground = {} ground.posx = 0 ground.posx2 = 256 ground.posx3 = 512 ground.posy = love.graphics.getHeight() - 152 groundtexture = love.graphics.newImage("images/bricks.png") local function drawing() love.graphics.draw(groundtexture, ground.posx, ground.posy) love.graphics.draw(groundtexture, ground.posx2, ground.po...
--[[ DBR architecture **************************************** PUC-RIO 2014 **************************************** Implemented by: - Breno Riba Implemented on December 2014 ********************************************************************************************** ]]-- local dbr = {} local st...
return function(player,moveSpeed) return { type = script.Name, player = player, moveSpeed = moveSpeed, replicateTo = player, } end
---- -- @file NodeState ---- Brief description. -- <#Description#> -- @return <#return value description#> function NodeState:calculateSerializeBufferSize() end ---- Brief description. -- @author James Folk, 16-02-11 15:02:04 -- <#Description#> -- @param dataBuffer <#dataBuffer description#> -- @param btSerializer ...
v1 = vessel.get_interface('GL-01S') note = oapi.create_annotation() note:set_pos (0.25,0.1,0.8,0.95) note:set_colour ({r=0.9,g=0.5,b=0.2}) intro = 'This tutorial gives a brief hands-on demonstration of the Delta-glider\'s atmospheric autopilot.' note:set_text(intro) proc.wait_sysdt(10) intro = intro..'\n\ The autop...
local entity_id = GetUpdatedEntityID() local proj_comps = EntityGetComponent( entity_id, "ProjectileComponent" ) if proj_comps then for i, comp in ipairs(proj_comps) do --ComponentSetValue2( comp, "collide_with_world" , true ) --ComponentSetValue2( comp, "collide_w...
--[[ PrintUtil v1.0 Authors: Ellomenop#2254 | https://twitch.tv/Ellomenop Museus#7777 | https://twitch.tv/Museus7 Contains functions to print to the screen in an efficient and customizable manner, and to get the current stack trace, to determine who is calling a function and from where. ]] ModUtil.Re...
require('constants') require('fn') module('racemaster', package.seeall) local turtle_race_bet_prop = "turtle_race_bet" local race_running_prop = "race_running" local racemaster_id_prop = "racemaster_id" local turtle_ids_prop = "turtle_ids" function complete_race(winning_turtle_id, racemaster_id) local pl_...
--[[ team.TechColors was set improperly here. The last entry should be for ShadeHive but it was being set as CragHive. ]] local kRed = Color(1, 0, 0, 1) function GUIInsight_PlayerFrames:UpdateTechColors(team) local teamNumber = team.TeamNumber local teamColor = PlayerUI_GetTeamColor(teamNumber) ...
print("[stairsplus] loaded.") stairsplus = {} dofile(minetest.get_modpath(minetest.get_current_modname()).."/stair.lua") dofile(minetest.get_modpath(minetest.get_current_modname()).."/corner.lua") dofile(minetest.get_modpath(minetest.get_current_modname()).."/slab.lua") dofile(minetest.get_modpath(minetest.get_curren...
local helpByFunction = {} local helpByGroup = {} local GetKeysSorted local GetArgsSignature local PrintFunctionHelp local PrintGroupHelp local PrintAllHelp -- help table keys: -- shortDescription - Short function description -- longDescription - (Optional) Long function description -- args - (Optional) Array o...
------------------------------------------------------------------------ --[[ ImageClassFactory ]]-- -- interface, factory -- Builds Image Classification datasources with common preprocessings ------------------------------------------------------------------------ local ImageClassFactory, parent = torch.class("dp.Imag...
dofile(LockOn_Options.common_script_path.."elements_defs.lua") SetScale(FOV) RADAR_DEFAULT_LEVEL = 4 RADAR_DEFAULT_NOCLIP_LEVEL = RADAR_DEFAULT_LEVEL - 1 RADAR_SCALE = 0.7--1 function AddElement(object) object.use_mipfilter = true object.additive_alpha = true object.h_clip_relation = h_clip_rel...
local KUI, E, L, V, P, G = unpack(select(2, ...)) local KA = KUI:GetModule("KuiArmory") if KUI._Compatibility["DejaCharacterStats"] or IsAddOnLoaded('ElvUI_SLE') then return end --Credits: Dejablue --GLOBALS: PAPERDOLL_STATCATEGORIES, PAPERDOLL_STATINFO, PaperDollFrame_SetAttackSpeed, PaperDollFrame_SetMovementSpeed, ...
local _M = {} --------------------------------------- --------------------------------------- _M.controllerSetupPage = "views.page04Scene" -- _M.activefillColor = { (55/255)+(0.3), (68/255)+(0.3), (77/255)+(0.3), 1 } _M.activefillColor = { 1, 1 ,1 , 1 } _M.inactivefillColor = { (55/255)+(0.15), (68/2...
local api = require "luci.model.cbi.passwall2.api.api" local appname = api.appname m = Map(appname) -- [[ Rule Settings ]]-- s = m:section(TypedSection, "global_rules", translate("Rule status")) s.anonymous = true s:append(Template(appname .. "/rule/rule_version")) ---- Auto Update o = s:option(Flag, "auto_update", ...
-------------------------------- -- @module MWException -- @extend MWObject -- @parent_module mw -------------------------------- -- Get error code.<br> -- return Error code of the exception. -- @function [parent=#MWException] errorCode -- @param self -- @return int#int ret (return value: int) -------------...
local lanes = require("lanes").configure{ with_timers = false} local l = lanes.linda "my linda" -- we will transfer userdata created by this module, so we need to make Lanes aware of it local dt = lanes.require "deep_test" local test_deep = false local test_clonable = true local performTest = function( obj_) obj_:s...
local bench = script and require(script.Parent.bench_support) or require("bench_support") function test() -- https://github.com/stefandd/Tic4 local negaMax = {maxdepth = 4, minsearchpos = 0, numsearchpos = 0} negaMax.__index = negaMax function negaMax:evaluate(board, depth) --[[ What ...
local Widget = Class(function(self, name) self.children = {} self.callbacks = {} self.name = name or "widget" self.inst = CreateEntity() self.inst.widget = self self.inst:AddTag("widget") self.inst:AddTag("UI") self.inst.entity:SetName(name) self.inst.entity:AddUITransform() se...
local M = {} ---Get the highlight groups for the plugin ---@param theme table ---@return table function M.get(theme) return { NvimTreeNormalNC = { -- Color when nvim-tree is no longer in focus bg = theme.config.options.window_unfocussed_color and theme.colors.color_column or the...
local function parse_args(args) if args == nil then args = {} end if args.compress_key == nil then args.compress_key = "C" end if args.extract_key == nil then args.extract_key = "X" end if args.compressors == nil then args.compressors = {} end if args.keep_selection == nil then ...
local L = BigWigs:NewBossLocale("Corborus", "frFR") if not L then return end if L then L.burrow = "Fouir/Émergence" L.burrow_desc = "Prévient quand Corborus s'enterre ou émerge." L.burrow_message = "Corborus s'enterre" L.burrow_warning = "Fouir dans 5 sec. !" L.emerge_message = "Corborus émerge !" L.emerge_warnin...
ModelPlugInfo = {} --uncomment line 15 and line 26-34 to enable sending model packs to clients function ModelPlug_Register(category) if (not ModelPlugInfo[category]) then local catinfo = {} local packs = file.Find("WireModelPacks/*.txt", "DATA") for _,filename in pairs(packs) do --resource.AddF...
#!/usr/bin/env tarantool json = require('json') yaml = require('yaml') os = require('os') fiber = require('fiber') function echo(...) return ... end function echo_1(a) return {a} end function echo_2(a, b) return {a, b} end function rest_api(a, b) return echo_2(a, b) end function rest_api_get(a, b) ret...
att.PrintName = "Toy Soldier" att.Icon = Material("snowysnowtime/2k/ico/m6dico/toysoldier.png", "smooth mips") att.Description = "Toy Soldier skin for the M6D" att.Desc_Pros = { " Purely Cosmetic" } att.Desc_Cons = { } att.Slot = "skin_hcem6d" att.Free = true att.ActivateElements = {"toy"} att.AttachSound = "at...
----------------------------------- -- Area: Throne Room -- Mob: Shadow of Rage -- Mission 9-2 BCNM Fight ----------------------------------- require("scripts/globals/status"); ----------------------------------- function onMobDeath(mob, player, isKiller) end; function onEventUpdate(player,csid,option) -- printf...
include("weaponry_shd.lua") -- inits WEPS tbl -- Weapon system, pickup limits, etc local IsEquipment = WEPS.IsEquipment -- Prevent players from picking up multiple weapons of the same type etc function GM:PlayerCanPickupWeapon(ply, wep) if not IsValid(wep) or not IsValid(ply) then return end if ply:IsSpec() then r...
if (SERVER) then AddCSLuaFile("shared.lua") end if (CLIENT) then SWEP.PrintName = "G3SG1" SWEP.Author = "cheesylard" SWEP.SlotPos = 1 SWEP.IconLetter = "i" SWEP.NameOfSWEP = "rcs_g3sg1" --always make this the name of the folder the SWEP is in. killicon.AddFont(SWEP.NameOfSWEP, "CSKillIcons", ...
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg)...
local gears = require 'gears' local naughty = require 'naughty' local widgets = require 'ui.widgets' awesome.connect_signal('bling::playerctl::title_artist_album', function (title, artist, art) naughty.notify { title = 'Now Playing\n' .. title, text = artist, icon = gears.surface.load_uncached_silently(art) } ...
--!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...
--[[ Contains definitions for the possible lines that a talking NPC may use --]] local BaseLine = require 'services.chatter.baseline' local Statuses = {} -------------------------------------------------------- -- Health Related -------------------------------------------------------- --[[------------------------...
--- === plugins.compressor.watchfolders.panels.media === --- --- Compressor Watch Folder Plugin. local require = require local log = require "hs.logger".new "compressorWatchFolder" local fnutils = require "hs.fnutils" local host = require "hs.host" local i...
local ExtraAbilityContainer = _G.ExtraAbilityContainer if not ExtraAbilityContainer then return end local AddonName, Addon = ... local L = LibStub("AceLocale-3.0"):GetLocale(AddonName) local BAR_ID = 'extra' local ExtraAbilityBar = Addon:CreateClass('Frame', Addon.Frame) function ExtraAbilityBar:New() local...
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild -- -- This file is compatible with Lua 5.3 local class = require("class") require("kaitaistruct") local enum = require("enum") local str_decode = require("string_decode") local stringstream = require("string_stream") E...
return require ('options')
VirtualGamepad = Object:extend() function VirtualGamepad:new(spriteInputBuffer) self.spriteInputBuffer = spriteInputBuffer self.directionButtons = {false, false, false, false} self:refresh_map_reverse_lookup_cache() end function VirtualGamepad:refresh_map_reverse_lookup_cache() self.keyToButtonMap = ...
-- 'glepnir/lspsaga.nvim' return function(c, s) return { { 'LspSagaDiagnosticBorder', c.orange }, { 'LspSagaDiagnosticHeader', c.orange, c.none, s.bold }, { 'LspSagaDiagnosticTruncateLine', c.orange }, { 'LspDiagnosticsFloatingWarn', c.orange }, { 'LspDiagnosticsFloatingInfor...
-- Modulo di tabelle sui gruppi uova dei Pokémon. In caso un Pokémon non -- abbia il secondo gruppo uova, tale indice non esiste. Tutti gli indici sono in minuscolo local t = {} t.bulbasaur = {group1 = 'mostro', group2 = 'erba'} t[1] = t.bulbasaur t.ivysaur = {group1 = 'mostro', group2 = 'erba'} t[2] = t.ivysaur t.ve...
-- Ampton becomes a Yeti local M = {} local M_mt = { __index = M } function M:new(start) if self ~= M then return nil, "First argument must be self" end local o = setmetatable({}, M_mt) o._count = start return o end setmetatable(M, { __call = M.new }) function M_mt:__tostring() return s...
plc_versionControl = plc_versionControl or {} plc_hg = {} local function init_config() plc_hg.priority = plc_hg.priority or plc_versionControl.priority or plc_priority_versionControl or 61 -- Colors. plc_hg.branch_textColor = plc_hg.branch_textColor or plc_hg_branch_textColor or colorBlack plc_hg.bran...
local NumWheelItems = THEME:GetMetric("MusicWheel", "NumWheelItems") local WheelWidth = THEME:GetMetric("MusicWheel", "WheelWidth") return Def.ActorFrame{ -- the MusicWheel is centered via metrics under [ScreenSelectMusic]; offset by a slight amount to the right here InitCommand=function(self) self:x(26) end, ...
includeFile("tangible/wearables/armor/armor_imperial_guard_saber/armor_imperial_guard_saber_bicep_l.lua") includeFile("tangible/wearables/armor/armor_imperial_guard_saber/armor_imperial_guard_saber_pants.lua") includeFile("tangible/wearables/armor/armor_imperial_guard_saber/armor_imperial_guard_saber_bracer_r.lua") inc...
huurton_matron = Creature:new { objectName = "@mob/creature_names:huurton_matron", socialGroup = "huurton", faction = "", level = 26, chanceHit = 0.36, damageMin = 250, damageMax = 260, baseXp = 2637, baseHAM = 7700, baseHAMmax = 9400, armor = 0, resists = {15,15,15,140,200,-1,-1,-1,-1}, meatType = "meat_w...
pfDB["objects"]["enUS-turtle"] = { [1000082] = "Stolen Elwynn Pumpkin", [1000250] = "Razlik's Tools", [1000370] = "Ripe Garden Pumpkin", [1000371] = "Garden Berry Bush", [1000372] = "Ripe Garden Watermelon", [1000380] = "Gryphon Chew Toy", [1000383] = "Seaweed-covered Footlocker", [1000502] = "Brightwat...
function love.conf(t) t.console = true; end;
object_tangible_deed_vehicle_deed_twing_ship_deed = object_tangible_deed_vehicle_deed_shared_twing_ship_deed:new { } ObjectTemplates:addTemplate(object_tangible_deed_vehicle_deed_twing_ship_deed, "object/tangible/deed/vehicle_deed/twing_ship_deed.iff")
local TeamModule = require "module.TeamModule" local playerModule = require "module.playerModule" local NetworkService = require "utils.NetworkService" local SmallTeamDungeonConf = require "config.SmallTeamDungeonConf" local Time = require "module.Time" local ActivityTeamlist = require "config.activityConfig" local Pla...
-- Hide the status bar display.setStatusBar( display.HiddenStatusBar ) -- Display a background local myBG = display.newImage( "bg.jpg" ) myBG.x = display.contentCenterX myBG.y = display.contentCenterY -- Display a simple text local myTitle = display.newText( "Hello I'm the chicken!", display.contentCenterX, 50, nativ...
local pointer = image.load("assets/png/gui/pointer.png") local rama = image.load("assets/png/gui/rama.png") -- window table (see menu.lua) window = {88, 0} -- variables point = 1 while true do buttons.read() rama:blit(0,0) screen.print(window[1],window[2] + 50,"Select a language:",1.2) screen.print(...
workspace "Battleships" architecture "x86" configurations { "Debug", "Release" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" project "Battleships" location "Battleships" kind "ConsoleApp" language "C++" targetdir ("bin/" .. outputdir .. "/%{prj.name}") objdir ("bin-int/" .. outputdi...
local kp = game.Players.LocalPlayer:WaitForChild("AddKeyBind") local bind = { ["name"] = "raise dead"; ["key"] = string.byte("r"); ["on_down"] = true; ["errors"] = {}; ["bind"] = function() local char = player.Character local tor = char.Torso local ls = tor["Left Shoulder"] local rs = tor["Right Shoulder"] ls.Pare...
@dofile "samples/def_forall.lua" @forall x in {10, 20, 30} do print(x) --> 10 20 30 end local t = {40, 50, 60} @forall x in t do print(x) --> 40 50 60 end
--[[ ~ sent_liftbutton cl_init.lua ~ ~ Lexi ~ --]] include('shared.lua') local timr = lift.WaitingPeriod; local tex = surface.GetTextureID"lift/arrow" local lfloor,dir = 0,0; local waiting = 0; hook.Add("LiftStartedMoving","Lift Moving buttons",function(ndir, target) dir = ndir; end); hook.Add("LiftPassedFloor","Lif...
local AddonName, HubData = ...; local LocalVars = TidyPlatesHubDefaults -- Widget Helpers local WidgetLib = TidyPlatesWidgets local CreateThreatLineWidget = WidgetLib.CreateThreatLineWidget local CreateAuraWidget = WidgetLib.CreateAuraWidget local CreateClassWidget = WidgetLib.CreateClassWidget local CreateRangeWi...
--[[ Netherstorm -- Parasitic Fleshbeast.lua This script was written and is protected by the GPL v2. This script was released by BlackHer0 of the BLUA Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation community. ~~End of License Agreement -- Bla...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by mac. --- DateTime: 2021/10/1 10:33 下午 --- local bit = require "bit" local ok, new_tab = pcall(require, "table.new") if not ok then new_tab = function(arr_n, rec_n) return {} end end local _M = {} -- rc4 symmetric encryption algorithm implemen...
--[[-- Persistent date and time handling. All of Lua's time functions are dependent on the Unix epoch, which means we can't have dates that go further than 1970. This library remedies this problem. Time/date is represented by a `date` object that is queried, instead of relying on the seconds since the epoch. ## Futh...
local voting_right_unit_id local current_trustee_id local current_trustee_name local head_text local unit = Unit:by_id(param.get("unit_id", atom.integer)) local area = Area:by_id(param.get("area_id", atom.integer)) local issue = Issue:by_id(param.get("issue_id", atom.integer)) local initiative = Initiative:by_id(para...
local function isGroupLeader() return UnitIsGroupLeader("player") end local function sendOutput(msg) if isGroupLeader() then if IsInRaid() then SendChatMessage(msg, "RAID") elseif IsInGroup() then -- this shouldn't run, but here in case this expands to parties SendChatMessage(msg, "PARTY") end end end ...
if mmpkg.isOutside(gmcp.room.info.zone) then local length = matches[2]:len() local coords = gmcp.room.info.coord.x .. ", " .. gmcp.room.info.coord.y local dashlength = 44 - string.len(coords) - 13 local coordinsert = "<blue>-[ <gray>" .. coords .. "<blue> ]" .. string.rep("-", dashlength) .. "<yellow>*Forested*...
---@meta ---@class cc.TMXLayerInfo :cc.Ref local TMXLayerInfo={ } cc.TMXLayerInfo=TMXLayerInfo ---* ---@param properties map_table ---@return self function TMXLayerInfo:setProperties (properties) end ---* ---@return map_table function TMXLayerInfo:getProperties () end ---* js ctor ---@return self function TMXLay...
local function exports(width, height) local grid = {} grid.data = {} grid.first_object = nil grid.last_object = nil grid.width = width grid.height = height grid.is_setup = false -- grid state grid.MODE_SIGNAL = 'signal' grid.MODE_EVOLUTION = 'evolution' grid.tiles = {} grid.placeable = {} function inde...
local playerModule = require "module.playerModule" local heroModule = require "module.HeroModule" local ItemHelper = require "utils.ItemHelper" local ItemModule=require"module.ItemModule" local playInfo = {} function playInfo:Start() self:initData() self:initUi() end function playInfo:initData() self.sho...
ITEM.name = "Crude Pistol Ammunition" ITEM.model = "models/kek1ch/ammo_9x19_fmj.mdl" ITEM.ammo = "item_ammo_357"-- type of the ammo ITEM.ammoAmount = 30 -- amount of the ammo ITEM.description = "A Box that contains %s of Crude Pistol Ammo" ITEM.chance = 37
local F, C = unpack(select(2, ...)) C.themes["Blizzard_IslandsPartyPoseUI"] = function() F.StripTextures(IslandsPartyPoseFrame) F.SetBD(IslandsPartyPoseFrame) F.Reskin(IslandsPartyPoseFrame.LeaveButton) F.StripTextures(IslandsPartyPoseFrame.ModelScene) IslandsPartyPoseFrame.ModelScene:SetAlpha(.8) IslandsPartyPo...
local base = _G local math = require("math") local table = require("table") local string = require("string") module("resty.smtp.qp") --[[ [Quoted-Printable Rules](http://en.wikipedia.org/wiki/Quoted-printable) * "All characters except printable ASCII characters" or "end of line characters" must be encoded. * A...
---MeasureStringWidth --- --- Reference : Frazzle <3 --- ---@param str string ---@param font number ---@param scale number ---@return _G ---@public function MeasureStringWidth(str, font, scale) BeginTextCommandWidth("CELL_EMAIL_BCON") AddTextComponentSubstringPlayerName(str) SetTextFont(font or 0) SetT...
local module = {} local mp = require 'MessagePack' local log = ngx.log local ERR = ngx.ERR local INFO = ngx.INFO local json = require 'cjson.safe' module.console = {} function module.console.info(...) return log(INFO, ...) end function module.console.error(...) return log(ERR, ...) end function module.console.e...
ITEM.name = "Walther P-38" ITEM.desc = "A Standard Issue German Pistol." ITEM.model = "models/weapons/w_p38.mdl" ITEM.class = "dod_p38" ITEM.weaponCategory = "sidearm" ITEM.width = 1 ITEM.height = 2 ITEM.flag = "Y"