content
stringlengths
5
1.05M
local class = require 'EasyLD.lib.middleclass' local WorldSlice = class('WorldSlice') function WorldSlice:initialize(map, offset) self.map = map self.offset = offset self:load() end function WorldSlice:load() self.mapHeight = self.map.h * self.map.tileset.tileSizeY self.entities = {} self.entitiesOrder = {} f...
---------------------- -------------------- -- Math Functions ---------------- -------------- ------------ ---------- -------- ------ ---- -- ------------------ -- Public Functions -------- ------ ---- -- -- _:abs(num) -- Returns absolute value of `num`. -- -- @param number(num) -- @return number function _:abs(num...
--[[--------------------------------------------------------------------------- DarkRP custom jobs --------------------------------------------------------------------------- This file contains your custom jobs. This file should also contain jobs from DarkRP that you edited. Note: If you want to edit a default DarkRP ...
local awful = require("awful") local client_placement_f = awful.placement.no_overlap + awful.placement.no_offscreen local mon_width = awful.screen.focused().geometry.width local mon_height = awful.screen.focused().geometry.height awful.rules.rules = { { id = "global", rule = { }, ...
local PistolRun = class("PistolRun", PlayerActState) local dirStateEnum = { Forward = 1, Back = 2, Right = 3, Left = 4 } local curDirState = 0 local function Turn(_dir) if _dir ~= curDirState then curDirState = _dir if _dir == dirStateEnum.Forward then localPlayer.Avat...
object_tangible_furniture_jedi_frn_all_table_light_01_hue = object_tangible_furniture_jedi_shared_frn_all_table_light_01_hue:new { } ObjectTemplates:addTemplate(object_tangible_furniture_jedi_frn_all_table_light_01_hue, "object/tangible/furniture/jedi/frn_all_table_light_01_hue.iff")
-- General Hammerspoon configurations hs.window.animationDuration = 0.1 hs.application.enableSpotlightForNameSearches(true) hs.hints.hintChars = { "J", "K", "L", ";", "A", "S", "D", "F", "H", "G" } -- Window size and position history local windowHistory = {} function windowHistory:save() local window = hs.window.f...
if kode == nil then return end local modules_init_ = { "role", nil, } -- moduleName = {skippedModel, skippedService} local skip_ = { test = {true} } local facade_ = kode.facade facade_:skip(skip_) facade_:registerModules(modules_init_) -- Event.checkEvents() --[[ Usage: local roleModel = app.model("role") ...
DriftPoints = {} local screenSize = Vector2(guiGetScreenSize()) local isActive = false local FONT_SIZE = 36 local font local listFont local totalScore = 0 local drawScore = 0 local borderOffset = 15 local playersScoreList = {} local scoreListUpdateTimer local themeColor = tocolor(255, 150, 0) addEvent("dpDriftPoints....
--[[ file:fishSystem.lua ]] local class = require("class") local gameSystem = require("game.system") ---@class fishSystem:gameSystem local system = class(gameSystem) ---构造 function system:ctor() end return system
local Movement = Component:extend("Movement") function Movement:initialize(speed) assert(self.physics_type ~= "static", "tried to add a Movement component to a static physical entity") self.speed = speed or 200 self.movement = {} self.movement.x = 0 self.movement.y = 0 self.movable =...
--[[---------------------------------------------------------------------------- Application Name: LocateAndMeasure Summary: Measuring part dimensions, independent on rotation and translation Description: Teach...
--[[---------------------------------------------------------------------------- 12345678901234567890123456789012345678901234567890123456789012345678901234567890 Debug Copyright 2010-2012, John R. Ellis -- You may use this script for any purpose, as long as you include this notice in any versions derived in whole or...
--[[ Justify Module ]]-- local _, BCM = ... BCM.modules[#BCM.modules+1] = function() if bcmDB.BCM_Justify then bcmDB.justify = nil return end if bcmDB.justify then local noDel for k, v in pairs(bcmDB.justify) do _G[k]:SetJustifyH(v) noDel = true end if not noDel then bcmDB.justif...
local mg = require "moongen" local memory = require "memory" local device = require "device" local stats = require "stats" local log = require "log" function configure(parser) parser:description("Generates TCP SYN flood from varying source IPs, supports both IPv4 and IPv6") parser:argument("dev", "Devices to tra...
local CemeteryModule = require "module.CemeteryModule" local MapConfig = require "config.MapConfig" local SmallTeamDungeonConf = require "config.SmallTeamDungeonConf" local View = {} function View:Start(data) self.view = CS.SGK.UIReference.Setup(self.gameObject) self.IsShow = false self.descArr = {} self.view.bg.de...
-- -- Author: zen.zhao88@gmail.com -- Date: 2015-12-02 15:35:49 -- BehaviorTree3 init && require lua file b3 = {} b3.Com = require('cocos.framework.BehaviorTree3.Com') --core b3.BaseNode = require('cocos.framework.BehaviorTree3.Core.BaseNode') b3.Action = require('cocos.framework.BehaviorTr...
local module = {} module.__index = module local signal = require(game:GetService('ReplicatedStorage').Common.Signal) function module:Make(key, new) local info = { value = new, changed = signal.new() } self.data[key] = info return info end function module:GetInfo(key) local info = self.data[key] return ...
local input = require('core/input') input:right(101638) input:down(101639) input:down(101641) input:down(101643) input:down(101645) input:cross(101646) input:cross(101904) return input:all()
local ffi = require"ffi" local cdecl = require"imgui.cdefs" local ffi_cdef = function(code) local ret,err = pcall(ffi.cdef,code) if not ret then local lineN = 1 for line in code:gmatch("([^\n\r]*)\r?\n") do print(lineN, line) lineN = lineN + 1 end print(e...
--lune/base/Import.lns local _moduleObj = {} local __mod__ = '@lune.@base.@Import' local _lune = {} if _lune6 then _lune = _lune6 end function _lune._Set_or( setObj, otherSet ) for val in pairs( otherSet ) do setObj[ val ] = true end return setObj end function _lune._Set_and( setObj, otherSet ) loc...
package("jasper") set_homepage("https://www.ece.uvic.ca/~frodo/jasper/") set_description("Official Repository for the JasPer Image Coding Toolkit") set_license("BSD-2-Clause") add_urls("https://github.com/jasper-software/jasper/archive/refs/tags/version-$(version).tar.gz") add_versions("2.0.28", "...
local MODNAME = minetest.get_current_modname() -- Syrup local SYRUP_VISCOSITY = 6 local SYRUP_EFFECT_COLOR = {a = 103, r = 73, g = 36, b = 0} minetest.register_node(MODNAME .. ":syrup_source", { description = "Syrup Source", drawtype = "liquid", tiles = { { name = "waffleworld_mapgen_syrup_source.png", bac...
ITEM.name = "SG-552" ITEM.desc = "A Weapon." ITEM.model = "models/weapons/w_rif_sg552.mdl" ITEM.class = "nut_cs_sg552" ITEM.weaponCategory = "primary" ITEM.width = 4 ITEM.height = 2 ITEM.price = 4000 ITEM.iconCam = { ang = Angle(-1.7068501710892, 271.58676147461, 0), fov = 10.780103254469, pos = Vector(0, 200, 0) } ...
require "cutorch" require "nn" require "libcunn" torch.include('cunn', 'test.lua')
-- -- ClassMods - timers wizard -- local L = LibStub("AceLocale-3.0"):GetLocale("ClassMods") -- constants local panelWidth = 500 -- not resizable local panelHeight = 500 -- resizable by user local elementWidth = 464 local AceGUI = nil local wizFrame = nil local wizPanel = 0 local TimerBars_CreateFrame = {} local DoP...
for var=exp1,exp2,exp3 do -- for 1 -- local 1 local something for var=exp1,exp2,exp3 do -- for 2 -- local 2 local something for var=exp1,exp2,exp3 do -- for 3 -- local 3 local something for var=exp1,exp2,exp3 do -- for 4 -- local 4 local something end end end end for var=exp1,...
-- All bases have 40mm width g_base_width_inches = 1.5748031496062992126 -- All bases are 3mm tall g_base_height_inches = 0.11811023622047244094 -- The default table is not at y=0 position, but rather a bit higher g_base_height_tabletop = 1.06 -- Position in the y axis of a standard height base in the graveyard -- E...
local entity = {} entity["level"] = [[11]] entity["spellDeck"] = {} entity["spellDeck"][1] = [[Cleave]] entity["spellDeck"][2] = [[]] entity["spellDeck"][3] = [[Dodge Slash]] entity["spellDeck"][4] = [[]] entity["spellDeck"][5] = [[]] entity["spellDeck"][6] = [[]] entity["heritage"] = {} entity["heritage"][1] = [[Slash...
local _G = _G; local ABP_4H = _G.ABP_4H; local pos = { healerTL = { 40, 25 }, healerTR1 = { 67, 20 }, healerTR2 = { 64, 30 }, healerTR3 = { 67, 40 }, healerBL = { 40, 60 }, healerBR = { 65, 60 }, tankdpsTL = { 29, 28 }, tankdpsTR = { 76, 28 }, tankdpsBL = { 29, 69 }, tankdpsBR ...
--!strict -- override math -- local math = require(Path.To.ThisModule) local Math = {} Math.tau = math.pi * 2 -- Replacement for math.round that allows defining the number of places. function Math.roundPlaces(number: number, places: number): number local places = places or 0 local exponent = 10^places if places =...
function love.conf(t) t.window.width = 1280 t.window.height = 960 t.window.title = 'DEFENSELESS' end
--------------------------------------------------------------------------- --- Prompt module for awful. -- -- **Keyboard navigation**: -- -- The following readline keyboard shortcuts are implemented as expected: -- <table class='widget_list' border=1> -- <tr><th>Name</th><th>Usage</th></tr> -- <tr><td><kbd>CTRL+A<...
package.path = "../?.lua;../?/init.lua;" .. package.path local png = require 'glua.lib.png' local bitmap, width, height, channels = png.Bitmap('textures/GraniteWall-ColorMap.png') print('width='..width) print('height='..height) print('channels='..channels)
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
mobs:register_mob("dmobs:gnorm", { type = "npc", can_dig = true, passive = true, reach = 1, damage = 1, attack_type = "dogfight", hp_min = 32, hp_max = 42, armor = 130, collisionbox = {-0.4, -0.3, -0.4, 0.4, 0.8, 0.4}, visual = "mesh", mesh = "gnorm.b3d", textures = { {"dmobs_gnorm.png"}, }, blood_text...
--[[ The MIT License (MIT) Copyright (c) 2015 Matthias Richter 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, m...
Script.ReloadScript("scripts/gamerules/GameRulesUtils.lua"); Miscreated = { Properties = { AirDrop = { fMinTime = 300, -- min time to spawn a plane (in seconds) fMaxTime = 600, -- max time to spawn a plane (in seconds) } } } GameRulesSetStandardFuncs(Miscreated); function Miscreated.Server:OnInit() self...
SimpleUnitFramesDB = { ["profileKeys"] = { ["落赎 - 碧玉矿洞"] = "落赎 - 碧玉矿洞", ["酸橙子 - 龙之召唤"] = "酸橙子 - 龙之召唤", }, ["profiles"] = { ["落赎 - 碧玉矿洞"] = { ["party"] = { ["rhp"] = "HPnone", ["mmp"] = "MPcurrent", ["rmp"] = "MPnone", }, ["player"] = { ["rhp"] = "HPnone", ["mmp"] = "MPnone", [...
syntax = {} local syntax = syntax syntax.DEFAULT = 1 syntax.KEYWORD = 2 syntax.IDENTIFIER = 3 syntax.STRING = 4 syntax.NUMBER = 5 syntax.OPERATOR = 6 syntax.types = { "default", "keyword", "identifier", "string", "number", "operator", "ccomment", "cmulticomment", "...
return LoadActor(THEME:GetPathG("ControllerStateDisplay","Center")) .. { InitCommand = function(self) self:xy(-8, 8) end }
local Draw = require("api.Draw") local UiMousePadding = require("mod.mouse_ui.api.gui.UiMousePadding") local UiMouseFit = require("mod.mouse_ui.api.gui.UiMouseFit") local UiMouseStyle = {} function UiMouseStyle.draw_vertical_line(x, y1, y2, color_dark, color_light) Draw.set_color(color_dark) Draw.line(x, y1, x,...
function onCreate() makeLuaSprite('ship', 'among/documentroom', -100,600) addLuaSprite('ship', false) end
-- init file for kill_spikes local modpath = minetest.get_modpath("kill_spikes"); dofile(minetest.get_modpath('kill_spikes').."/kill_spikes.lua")
-- Some custom event hooks I call -- The following code calls a hook on both the client and the server. No built-in hooks seem to be called right when the Sending Client Info process is complete. if CLIENT then hook.Add( "InitPostEntity", "ARCLib_FullyLoadedConfirm", function() net.Start("ARCLib_FullyLoaded") ...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BceEnterRoom_pb', package.seeall) local BCEENTERROOM = protobuf.Descriptor(); local BCEENTERROOM_ROOMID_FIELD = protobuf.FieldDescriptor(); local BCEENTERROOM_MAPID_FIELD = protobuf.FieldDescriptor(); local BCEENTERROOM_ROOMNAME_FI...
local class = require 'lib.middleclass' -- Pass callbacks through to gamestate function love.mousepressed(x, y, button) if GameState then GameState:mousepressed(x, y, button) end if InputManager then InputManager:mousepressed(x,y,button) end end function love.mousemoved(x, y, dx, dy, istouch) if GameState ...
local localPlayer = getLocalPlayer() questionsBike = { {"Yolun hangi tarafından gitmelisiniz?", "Sol", "Sağ", "Yukardakilerden hepsi.", 2}, {"Güvenlik ekipmanları(örneğin;Kask) kullanmanın amacı nedir?", "Havalı görünmek.", "Korunmak.", "Dikkat çekmek.", 2}, {"Kamyonların kör noktası neresidir:", "Gövdenin hemen a...
local function contains(table, val) for i = 1, #table do if table[i] == val then return true end end return false end math.randomseed(os.time()) local sequences = {} -- The first sequence can only be a combo number between 1 and 3 sequences[1] = math.random(1, 3) -- The secon...
object = {"Kocka", "Kvadar"} title = {" strana." , " ivica.", " temena.", " sve ivice jednake.", " sve strane podudarne.", " naspramne strane podudarne."} tvrdjenje_str = "Tvrđenje" n_str = "n" t_str = "t" ima_str = " ima "
--[[ = ABOUT This module uses Roberto Ierusalimschy's powerful new pattern matching library LPeg[1] to tokenize Lua source-code in to a table of tokens. I think it handles all of Lua's syntax, but if you find anything missing I would appreciate a xolox aatt home ddoott nl. This lexer is based on the BNF[2] from the Lu...
local t = {} t.init = {x = 0, y = 0} t.layout = {} t.layout[1] = { {6}, {6}, {5} } t.moves = {1, 3} t.message = { en = "You can pass throught more than one block with only one movement", es = "Puedes pasar a través de más de un bloque en un solo movimiento", } return t
level = { id = 248972157, --- LEVEL_1 name = "Level 1", players = 2, entities = { { prototypeId = 2979648629, entityId = 9000 }, { prototypeId = 2252448813, entityId = 9001 }, { prototypeId = 1316782920, ...
--鉄獣の抗戦 -- --Script by JustFish function c101102070.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,101102070+EFFECT_COUNT_CODE_OATH) e1:SetTarget(c101102070.target) e1:SetOperat...
local core = require "sys.core" local mysql = require "sys.db.mysql" local testaux = require "testaux" return function() local db = mysql.create { host="127.0.0.1:3306", user="root", password="root", } db:connect() local status, res = db:query("show databases;") print("mysql show databases;", status) testa...
local mod = DBM:NewMod(655, "DBM-Party-MoP", 4, 303) local L = mod:GetLocalizedStrings() local sndWOP = mod:SoundMM("SoundWOP") mod:SetRevision(("$Revision: 9469 $"):sub(12, -3)) mod:SetCreatureID(56906) mod:SetZone() mod:SetUsedIcons(8) mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_...
-- Copyright (c) 2018 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local tiny = require "ext.tiny-ecs" local settings = require "settings" local RenderSprites = tiny.processingSystem() RenderSprites.filter = tiny.requireAll("pos...
-- The MIT License (MIT) -- -- Copyright (c) 2015 Matthew J. Runyan -- -- 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 ...
local CMFogMgr = Inherit(CppObjectBase) function CMFogMgr:Ctor() self.m_MIDs = {} self.m_UpdateInterval = 0.3 self.m_PastTime = self.m_UpdateInterval end function CMFogMgr:LuaInit(Controller) self.m_Controller = Controller self.Controller = Controller self.MapSize = 127 self.LandscapeSize = 127 self.EyeLen = ...
--# Monster converted using Devm monster converter #-- local mType = Game.createMonsterType("Island Troll") local monster = {} monster.description = "an island troll" monster.experience = 20 monster.outfit = { lookType = 282, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0, lookMount = 0 ...
sources = tup.glob("../src/*.cpp") objects = table.map(sources, function(name) return '../src/' .. tup.base(name) .. OBJSUFFIX end) library('performance_log', objects)
-- -- Created by IntelliJ IDEA. -- User: nander -- Date: 21/04/2018 -- Time: 14:09 -- To change this template use File | Settings | File Templates. -- local addBuilding = {} -- previously: Gamestate.new() addBuilding.name = "addBuilding" function addBuilding:enter(prev, state, building, card) addBuilding.prev = pr...
object_static_structure_dathomir_static_science_desk = object_static_structure_dathomir_shared_static_science_desk:new { } ObjectTemplates:addTemplate(object_static_structure_dathomir_static_science_desk, "object/static/structure/dathomir/static_science_desk.iff")
Keys = { ["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57, ["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKSPACE"] ...
local ffi = require('ffi') local vida = require('vida') local os = require('os') local bench = require('bench') local fast = vida.compile( vida.interface [[ int func(int a, int b); ]], vida.code [[ EXPORT int func(int a, int b) { return a + b; } ]]) local vector = vida.compile( vida.interf...
--[[ Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com> This file is part of luci-pbx. luci-pbx 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 3 of the License, or ...
function dbg.lunaType(c) if type(c)~='userdata' then return nil end local mt= getmetatable(c) if mt==nil then return nil end return mt.luna_class end function dbg.listLunaClasses(line) local usrCnam= string.sub(line, 7) local out2='' local out='' local outp='' for k,v in pairs(__luna)do if type(v)=='ta...
------------------------------------------------------------------------------- -- -- IMAP widget for Awesome 3.4 -- Copyright (C) 2011 Tuomas Jormola <tj@solitudo.net> -- -- Licensed under the terms of GNU General Public License Version 2.0. -- -- Description: -- -- Displays status of IMAP mailboxes by showing the amo...
-- ======= Copyright (c) 2003-2016, Unknown Worlds Entertainment, Inc. All rights reserved. ======= -- -- lua/TeamInfo.lua -- -- TeamInfo is used to sync information about a team to clients. -- A client on team 1 or 2 will only receive team info regarding their -- own team while a client on the kSpectatorIndex team wil...
loader.LoadModel("matBall.obj") --here model for materials showcase is loaded loader.LoadModel("cube.obj") --here model for signs is loaded loader.LoadModel("capsule.obj") --here model for signs is loaded
--Minetest --Copyright (C) 2013 sapier -- --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.1 of the License, or --(at your option) any later version. -- --This program is ...
function elektraOpen(config, errorKey) return 0 end function elektraGet(returned, parentKey) return -1 end function elektraSet(returned, parentKey) return -1 end function elektraError(returned, parentKey) return -1 end function elektraClose(errorKey) return 0 end
----------------------------------- -- Area: Toraimarai Canal -- Mob: Scavenger Crab ----------------------------------- require("scripts/globals/regimes") ----------------------------------- function onMobDeath(mob, player, isKiller) tpz.regime.checkRegime(player, mob, 621, 1, tpz.regime.type.GROUNDS) end
setenv("TACC_A_DIR", "/unknown/apps/a/1.0")
local ECS = require "ECS" local skynet = require "skynet" local skill_cfg = require "game.config.scene.config_skill" local math_random = math.random local FightHelper = {} function FightHelper:Init( sceneMgr ) self.sceneMgr = sceneMgr self.entityMgr = sceneMgr.entityMgr end local randomAddOrMinus = function ( ) ...
--------------------------------------------------------------------------------------------------- -- Issue: https://github.com/smartdevicelink/sdl_core/issues/2129 --------------------------------------------------------------------------------------------------- -- Description: -- In case: -- 1) Mobile app is audio/...
local function ChangeUser(msg) local text = msg.content_.text_ if ChatType == 'sp' or ChatType == 'gp' then if text then tdcli_function({ID = "GetUser",user_id_ = msg.sender_user_id_},function(arg,result) if result.id_ then local Alli = DevAli:get("IrAqTEAM:User"..result.id_) if not result.username_ then if...
colour_style = {["off_color"] = "cfc", ["on_color"] = "cfc", ["line_color"] = "000", ["line_width"] = "2"}; line_style = {["off_color"] = "fff", ["on_color"] = "fff", ["line_color"] = "000", ["line_width"] = "2"}; text_style = {["font_size"] = "16"} numb = {} ou...
--# selene: allow(unused_variable) ---@diagnostic disable: unused-local -- Switch focus with a transient per-application keyboard shortcut ---@class hs.hints local M = {} hs.hints = M -- A fully specified family-face name, preferrably the PostScript name, such as Helvetica-BoldOblique or Times-Roman. (The Font Book a...
----------------------------------------------- -- weapon.lua -- Represents a generic weapon a player can wield or pick up -- I think there should be only 2 types of weapons: ---- the only action that should play once is the animation for ing your weapon -- Created by NimbusBP1729 --------------------------------------...
id = 'V-38588' severity = 'medium' weight = 10.0 title = 'The system must not permit interactive boot.' description = 'Using interactive boot, the console user could disable auditing, firewalls, or other services, weakening system security.' fixtext = [==[To disable the ability for users to perform interactive startups...
--!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...
-- --------------------------------------------- -- ts.lua 2017/08/09 -- Copyright (c) 2017 Toshi Nagata -- released under the MIT open source license. -- --------------------------------------------- local ffi = require "ffi" local bit = require "bit" local util = require "util" local ctl = require "ctl" ...
structure.library_project("coconut-pulp-primitive")
local fzy = require("ctrlspace.fzy_lua") local function ctrlspace_filter(candidates, query, max) local results = {} for _, n in ipairs(candidates) do if fzy.has_match(query, n.text) then n.score = fzy.score(query, n.text) table.insert(results, n) end end table.sort(results, function(x, ...
object_tangible_veteran_reward_frn_vet_tusken_raider_toy = object_tangible_veteran_reward_shared_frn_vet_tusken_raider_toy:new { } ObjectTemplates:addTemplate(object_tangible_veteran_reward_frn_vet_tusken_raider_toy, "object/tangible/veteran_reward/frn_vet_tusken_raider_toy.iff")
local persistent_mt = { mt_store = { } } function persistent_mt.init(module, module_name, module_metatable) fail_if_missing(module) fail_if_missing(module_name) fail_if_missing(module_metatable) assert(persistent_mt.mt_store[module_name] == nil) persistent_mt.mt_store[module_name] = module_metatable module_m...
local Class = require("facto.class") local Event = require("facto.event") local AbstractExchanger = require("facto.exchanger.abstractexchanger") local CargoWagonExchanger = Class.extend({}, AbstractExchanger) -- @section property members -- @property string The type of this concrete exchanger which will be used for re...
local fn = require 'fn' local handler = require 'tulip.handler' local tcheck = require 'tcheck' local xerror = require 'tulip.xerror' local xtable = require 'tulip.xtable' local function match(routes, path) local _, _, _, route = fn.any(function(_, route) return string.find(path, route.pattern) end, ipairs(rou...
--types/winuser: winuser types and macros from multiple headers --Written by Cosmin Apreutesei. Public Domain. setfenv(1, require'winapi') --constants IMAGE_BITMAP = 0 IMAGE_ICON = 1 IMAGE_CURSOR = 2 IMAGE_ENHMETAFILE = 3 DLGC_WANTARROWS = 0x0001 -- Control wants arrow keys DLGC_W...
local lockzoom = false local swayingsmall = false local swayinglarge = false local swayingbigger = false local swayingbiggest = false local swayingbiggest2 = false local gfAscend = false local gfBack = false local background = nil function update (elapsed) local currentBeat = (songPos / 1000)*(bpm/60) hudX = getHudX...
-- -- Created by IntelliJ IDEA. -- User: sdcuike -- Date: 2015/12/29 -- Time: 22:46 -- To change this template use File | Settings | File Templates. -- --[[ Lua is a dynamically typed language. There are no type definitions in the language; each value carries its own type. There are eight basic types in ...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by flori. --- DateTime: 01/11/2020 20:58 --- local LibAtlas = LibStub:NewLibrary("LibAtlas", 1) if not LibAtlas then return end local debug = 0 local pairs = pairs local Atlas = {} function LibAtlas:RegisterAtlas(name, path, spriteSheet) ...
--Time all SET sec = 217.49171447754 day = 16 mon = 2 year = 2019 --End of SampleText
------------------------------------------------------------------------------- -- ElvUI Chat Tweaks By Crackpotx (US, Lightbringer) -- Based on functionality provided by Prat and/or Chatter ------------------------------------------------------------------------------- local Module = ElvUI_ChatTweaks:NewModule("Custom...
function gcd(a,b) return a == 0 and b or gcd(b % a, a) end do local function coerce(a, b) if type(a) == "number" then return rational(a, 1), b end if type(b) == "number" then return a, rational(b, 1) end return a, b end rational = setmetatable({ __add = function(a, b) local a, b = coerce(a, b...
local handler = require("handler") local computations = require("computations") -- pretends that the system is doing an IO operation for 0.3 seconds computations.slow(0.3) handler.writeStatus(200) handler.writeBody("from LUA!")
local M = {} M.throttle_leading = function(fn, ms) local timer = vim.loop.new_timer() local running = false return function(...) if running then return end timer:start(ms, 0, function() running = false end) running = true fn(...) end end M.debounce_trailing = function(fn, m...
local uv = require('luv') local tap = require('util/tap') tap.test("test uv.new_work", function() print('Please be patient, the test cost a lots of time') local count = 1000 -- for memleaks dected local step = 0 local worker = nil -- after work, in loop thread local callback = function(n, r, id, s) ...
--[================================[ @Language.ko-KR @Summary [Player]의 [Tech]의 현재값을 [Amount]만큼 [Modifier]합니다. @Group 테크 @param.Tech.Tech @param.Player.TrgPlayer @param.Modifier.TrgModifier @param.Amount.Number @Language.us-EN @Summary [Player]의 [Tech]의 현재값을 [Amount]만큼 [Modifier]합니다. @Group 테크 @param.Tech.Tech @param...