content
stringlengths
5
1.05M
local cv = require 'cv._env' require 'cutorch' require 'cv.calib3d' -- TODO: remove this after gathering all CUDA packages in a single submodule cv.cuda = cv.cuda or require 'cv._env_cuda' local ffi = require 'ffi' ffi.cdef[[ struct PtrWrapper createStereoBM(int numDisparities, int blockSize); struct PtrWrapper Ste...
local rand = am.rand(5321112) print(rand()) print(rand()) print(rand()) print(rand(2)) print(rand(10)) print(rand(7)) print(rand(4, 10)) print(rand(-10, 0)) print(rand(-10, 10)) print(rand(-10, 10)) local t = {1, 2, 3, 4, 5, 5} table.shuffle(t, rand) print(table.tostring(t))
cmd [[packadd packer.nvim]] packer = require('packer') return packer.startup(function() -- Packer manages itself use { 'wbthomason/packer.nvim' } -- Colorscheme use { 'shaunsingh/moonlight.nvim' } -- Statusline use { 'nvim-lualine/lualine.nvim', config = function() require('statusline').setup() end, re...
function getVariableType(variable) local variableType = type(variable) if variableType ~= "userdata" then return variableType end local variableType = getUserdataType(variable) if variableType ~= "element" then return variableType end return getElementType(variable) end -- wrapper for a table wit...
--[[ GNode Version: 1 Author: Droog71 License: AGPLv3 ]]-- minetest.settings:set("viewing_range", 1000) minetest.settings:set_bool("menu_clouds", false) minetest.settings:set_bool("smooth_lighting", true) minetest.settings:set_bool("enable_damage", false) minetest.register_item(":", { type = "none", wi...
local configs = require("lspconfig/configs") local util = require("lspconfig/util") local binary_path = "/home/mulhaq/.local/bin/matlab-langserver" local root_files = { ".git", } configs.matlab = { default_config = { cmd = {"sh", binary_path}, filetypes = {"octave"}, root_dir = function(filename) ...
-- -- xcode_common.lua -- Functions to generate the different sections of an Xcode project. -- Copyright (c) 2009-2015 Jason Perkins and the Premake project -- local p = premake local xcode = p.modules.xcode local tree = p.tree local workspace = p.workspace local project = p.project local config = p.config loc...
-- -- All uiprim/* will become increasingly generalised for re-use outside durden. -- To facilitate that, these functions provide the glue needed for the uiprims -- to handle the input routing and context sensitive semantics that can't be -- generalised inside uiprim. -- -- One thing to note is that right now, these po...
--[[Author: Pizzalol Date: 07.02.2015. Checks if the current ability level is supposed to stun, if yes then stun the target]] function PoisonTouchStun( keys ) local caster = keys.caster local target = keys.target local ability = keys.ability local ability_level = ability:GetLevel() - 1 local stun_duration = abi...
---@meta ---@class cc.Ref local Ref={ } cc.Ref=Ref ---* Releases the ownership immediately.<br> ---* This decrements the Ref's reference count.<br> ---* If the reference count reaches 0 after the decrement, this Ref is<br> ---* destructed.<br> ---* see retain, autorelease<br> ---* js NA ---@return self function R...
require("mineunit") mineunit("core") mineunit("player") mineunit("server") describe("Chests API", function() fixture("default") fixture("digilines") --fixture("pipeworks") sourcefile("init") -- Our player Sam will be helping, he promised to place some nodes local Sam = Player("Sam") -- Construct test world...
-- See LICENSE for terms local trailblazer_skins = { Drone = "Drone_Trailblazer", RCRover = "Rover_Trailblazer", RCTransport = "RoverTransport_Trailblazer", ExplorerRover = "RoverExplorer_Trailblazer", SupplyRocket = "Rocket_Trailblazer", } g_TrailblazerSkins = trailblazer_skins function OnMsg.PopsOwnedProducts...
-- // fader functionality - frame fading -- // zork - 2012 ----------------------------- -- GLOBAL FUNCTIONS ----------------------------- --add some global functions local defaultFadeIn = {time = 0.4, alpha = 1} local defaultFadeOut = {time = 0.3, alpha = 0} local frameFadeManager ...
local config = require 'goldsmith.config' local ac = require 'goldsmith.autoconfig' local M = {} function M.current_symbol() if ac.all_servers_are_running() then if config.get('highlight', 'current_symbol') == true then vim.lsp.buf.clear_references() vim.lsp.buf.document_highlight() end end en...
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] -- Called when a HUD element should be drawn. function cwWeaponSelect:HUDShouldDra...
---@class CS.UnityEngine.AssetBundleRecompressOperation : CS.UnityEngine.AsyncOperation ---@field public humanReadableResult string ---@field public inputPath string ---@field public outputPath string ---@field public result number ---@field public success boolean ---@type CS.UnityEngine.AssetBundleRecompressOperation...
STMTS = {} STMTS.F = { -- SETS Set_Exp = function (me) local fr, to = unpack(me) local err do if AST.get(me.__par,'Stmts', me.__i+1,'Escape') then err = 'invalid `escape´' else err = 'invalid assignment' end end ...
fail = false if (v_size() ~= 3 or v_empty() ~= false) then fail = true end if (v_at(1) ~= 2 or v_at(2) ~= 3) then fail = true end v_set(1, 11) if (v_at(1) ~= 11) then fail = true end v_clear() if (v_size() ~= 0 or v_empty() ~= true) then fail = true end v_push(42) if (v_size() ~= 1 or v_empty() ~= false or v_at(0) ...
-- -- init.lua -- init modules -- require("modules.ipc") require("modules.expose") require("modules.layouts") require("modules.spaces") require("modules.cheatsheet") require("modules.floating_terminal")
require("Class") local M = Class("Monster", "Creature") function M:Init() self.name = "Monster" end function M:Attack() M.__super.Attack(self) self.MonsterAddParam = "kill them all" print("Monster Attack") end function M:Print() M.__super.Print(self) print("Monster Print"...
local signs_setting = require('vgit.settings.signs') local Object = require('vgit.core.Object') local Namespace = Object:extend() function Namespace:new() return setmetatable({ ns_id = vim.api.nvim_create_namespace(''), }, Namespace) end function Namespace:sign_ns_id(buffer) return string.format('tanvirtin...
local c = require("component") local unicode = require("unicode") local term = require("term") local holo local gpu = c.gpu --Проверка на наличие нужных устройств if not c.isAvailable("hologram") then ecs.error("Подключите голографический проектор 2-ого уровня") return else holo = c.hologram end local hologram ...
local b = require("buftabline.buffers") local o = require("buftabline.options") local set_bufferline = require("buftabline.set-bufferline") local set_maps = require("buftabline.set-maps") local add_commands = require("buftabline.add-commands") local M = {} M.build_bufferline = function() local bufferline = {} ...
function HandleCommitIDCommand(Split, Player) Player:SendMessageInfo(cRoot:GetBuildCommitID()) return true end function HandleBuildTimeCommand(Split, Player) Player:SendMessageInfo(cRoot:GetBuildDateTime()) return true end function HandleBuildIDCommand(Split, Player) Player:SendMessageInfo(cRoot:G...
include("asset://vector2.lua") include("asset://grid.lua") Item = {} Item.new = function(type, initalRotation, initalPosition) local this = {} this.setPosition = function(position) for i=1, 4 do this.grids[i].setParentPosition(position) end end this.getGridPosition = function(index, isTarget) if isTarg...
--- Service. -- Wraps service implementation module. -- @classmod grpc_lua.server.Service local Service = {} local pb = require("luapbintf") local Replier = require("grpc_lua.server.Replier") local Reader = require("grpc_lua.server.Reader") local Writer = require("grpc_lua.server.Writer") --[[ Method info = { na...
local _M = {} local cjson = require("cjson.safe") local tostring = tostring local tonumber = tonumber local type = type local fmt = string.format local sub = string.sub local cjson_encode = cjson.encode local cjson_decode = cjson.decode local TYPES_LOOKUP = { number = 1, boolean = 2, string = 3, t...
-- Created by: Dude112113 local colors = setmetatable({ os = love ~= nil and love.system.getOS() or "Windows" }, { __index=function(self, index) return rawget(self, index) or "" end }) function colors.strip(s) return s:gsub("\x1b[%[%]][%d;]*m", "") end colors.CSI = "\x1b[" colors.OSC = "\x1b]" colors.reset = ...
--[[ BaseLua https://github.com/dejayc/BaseLua Copyright 2012 Dejay Clayton All use of this file must comply with the Apache License, Version 2.0, under which this file is licensed: http://www.apache.org/licenses/LICENSE-2.0 --]] --[[ ---------------------------------------------------------...
bump = require "bump" sti = require "sti" function love.load() mapa = sti("mapa/mapa.lua", {})-- importa o mapa for i = 1, #mapa.layers do--viaja o vetor até o tamanho do vetor. if (mapa.layers[i].name == "Camada de Objetos 1") then for j = 1, #mapa.layers[i].objects do v = mapa.layers[i].objects...
map = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 0, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 0, 2, 2,...
Ambi.Entity = Ambi.Entity or {} local ENTITY = FindMetaTable( 'Entity' ) setmetatable( Ambi.Entity, { __index = ENTITY } ) -- ------------------------------------------------------------------------------------- function ENTITY:Distance( eObj ) return self:GetPos():Distance( eObj:GetPos() ) end function ENTITY:Chec...
return { uiEffect = "", name = "黑企业剧情战斗技能", cd = 0, focus_duration = 1, picture = "1", desc = "轰炸", painting = 1, id = 7500, castCV = "skill", aniEffect = { effect = "jineng", offset = { 0, -2, 0 } }, effect_list = { { type = "BattleSkillFire", casterAniEffect = "", target_choise =...
local A = vim.api local F = vim.fn local M = {} M.url = 'rmagatti/auto-session' M.description = 'Automatically save session based on path' M.wants = { } -- ways to activate this M.activation = { wanted_by = { 'target.tui' } } -- allow at most one unnamed, unmodified buffer, closing all others local functio...
F = { ParOr = function (me) ASR(not _ITER'Async'(), me,'not permitted inside async') end, ParAnd = function (me) ASR(not _ITER'Async'(), me,'not permitted inside async') end, ParEver = function (me) ASR(not _ITER'Async'(), me,'not permitted inside async') end, EmitE ...
function sum2(accu, n) if n > 0 then accu.value = accu.value + n return sum2(accu, n-1) end end local accu = {value = 0} sum2(accu, 1000000) print(accu.value)
-- Utility functions local job_utils = {} -- http://lua-users.org/wiki/SplitJoin -- Function: true Python semantics for split function string:split(sSeparator, nMax, bRegexp) assert(sSeparator ~= '') assert(nMax == nil or nMax >= 1) local aRecord = {} if self:len() > 0 then local bPlain = not bReg...
local path = {} -- TODO: Can we use vim.loop for this? path.separator = package.config:sub(1, 1) path.home = vim.fn.expand("~") path.make_relative = function(filepath, cwd) if not cwd or not filepath then return filepath end if filepath:sub(1, #cwd) == cwd then local offset = 0 -- if cwd does ends in...
local workspaceFindPart = workspace.FindPartOnRayWithIgnoreList local typedFunction = require(game:GetService("ReplicatedStorage"):WaitForChild("typedFunction")) return typedFunction({ "Sunshine", "Ray", "table" }, function(Sunshine, ray, ignoreList) local part, position, normal, material = workspaceFi...
local name = 'keymaps' local utils = require('utils').start_script(name) local M = {} -- Remap leader key vim.api.nvim_set_keymap('', '<Space>', '<Nop>', { noremap = true, silent = true }) vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' -- Modes -- normal_mode = n -- insert_mode = i -- visual_mod...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. halloweenitems11 = { minimumLevel = 0, maximumLevel = 0, customObjectName = "Halloween Song Book", directObjectTemplate = "object/tangible/event_perk/halloween_song_book.iff", craftingValues = { }, customizationStringNames = {}, customizationVal...
return { units = { motoquad = {health = 10, speed = 4, attack = 2, cooldown = 1, is_alien = false}, hovercraft = {health = 20, speed = 6, attack = 3, cooldown = 1, is_alien = false}, tower = {health = 40, speed = 0.5, attack = 30, cooldown = 3, is_alien = false, is_tall = true}, robot = {health = 100, speed = ...
return { init_effect = "ATK", name = "测试-伊丽莎白-链接", time = 0, picture = "", desc = "女王号令-友军链接", stack = 1, id = 60026, icon = 60026, last_effect = "", effect_list = { { type = "BattleBuffLink", trigger = { "onBulletHit" }, arg_list = { buff_id = 60027, targetTemplateID = 20501, ta...
-- Выражаю благодарность Zer0Galaxy (http://computercraft.ru/profile/7-zer0galaxy/) за помощь с длинной арифметикой -- Закрытый ключ - как ключ от вашей квартиры. Не показывайте его всем и не передавайте незнакомым лицам. local RSA = {} local Long = require("metaint") local RSA_math = require("RSA/Math") function dont...
dofile("common.inc"); askText = singleLine([[ This macro will watch your skills window and only click when you are not tired. Move mouse to a spot you want clicked and press shift to repeat clicks when not tired. ]]); function doit() local mousePos = askForWindow(askText); askQty(); local star...
local lastPushKey = KEYS[1] local debounceKey = KEYS[2] return {redis.call('get', lastPushKey), redis.call('get', debounceKey)}
local Native = require('lib.native.native') ---@class Placement local Placement = { Random = Native.ConvertPlacement(0), --MAP_PLACEMENT_RANDOM Fixed = Native.ConvertPlacement(1), --MAP_PLACEMENT_FIXED UseMapSettings = Native.ConvertPlacement(2), --MAP_PLACEMENT_USE_MAP_SETTINGS TeamsTogether = Native....
local _, core = ...; local _G = _G; local MonDKP = core.MonDKP; local L = core.L; local lootTable = {}; --[[["132744"] = "|cffa335ee|Hitem:12895::::::::60:::::|h[Breastplate of the Chromatic Flight]|h|r", ["132585"] = "|cffa335ee|Hitem:16862::::::::60:::::|h[Sabatons of Might]|h|r", ["133066"] = "|cffff8000|Hitem:...
object_draft_schematic_space_chassis_blacksun_heavy_vaksai = object_draft_schematic_space_chassis_shared_blacksun_heavy_vaksai:new { } ObjectTemplates:addTemplate(object_draft_schematic_space_chassis_blacksun_heavy_vaksai, "object/draft_schematic/space/chassis/blacksun_heavy_vaksai.iff")
local socket = require "socket" local u = socket.udp() assert(u:setsockname("*", 5088)) u:close() local u = socket.udp() assert(u:setsockname("*", 0)) u:close() local t = socket.tcp() assert(t:bind("*", 5088)) t:close() local t = socket.tcp() assert(t:bind("*", 0)) t:close() print("done!")
--[[ -- added by passion @2021/12/17 19:30:36 -- +UIChangeServer控制层 --]] local UIChangeServerCtrl = BaseClass("UIChangeServerCtrl", UIBaseCtrl) local function CloseWindow(self) -- body UIManager:GetInstance():CloseWindow(UIWindowNames.UIChangeServer) end UIChangeServerCtrl.CloseWindow = CloseWindow return UI...
-- Create a table to store the past 1 second of damage taken -- We will keep each second seperate, and prune off anything beyond 5 periodically -- When we display the numbers, we'll display local TrackedDamageTable_Physical = {}; local TrackedDamageTable_Magical = {}; local damageTrackedSinceLastInterval_Physical ...
--[[ Prepare the sources to be compiled. -- Using: src = require 'bbq.src' -- Define data structure using YAML recipe. -- 'src' may contain definitions for multiple sources; fields here: -- url (mandatory) -- allows placeholders: $n - for name value; $v - version... -- allow schem...
-- https://github.com/sharpobject/panel-attack/blob/master/queue.lua local Queue = torch.class('Queue') function Queue:__init() self.first = 0 self.last = -1 self.q = {} end function Queue:push(value) local last = self.last + 1 self.last = last self.q[last] = value end function Queue:empty() re...
local ItemPurchaseSystem = dofile(GetScriptDirectory() .. "/constants/ItemPurchaseSystem") local ItemsToBuy = { "item_tango", "item_mantle", "item_circlet", "item_branches", "item_branches", "item_branches", "item_recipe_null_talisman", "item_magic_stick", "item_recipe_magic_wand", "item_boots", "item_energy_booste...
AnimationId = "35154961" local Anim = Instance.new("Animation") Anim.AnimationId = "rbxassetid://"..AnimationId local k = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim) while wait(0.00703125) do k:Play() k:AdjustSpeed(640)
local http = require "http" local httpspider = require "httpspider" local shortport = require "shortport" local stdnse = require "stdnse" local table = require "table" local url = require "url" description = [[ Spiders a website and attempts to identify output escaping problems where content is reflected back to the u...
-------------------------------------------------------------------------------- ------------------------------ ##### ## ------------------------------ ------------------------------ ## ## # ## ------------------------------ ------------------------------ ## ## ## ## ---------------------------...
object_tangible_food_foraged_shared_edible_jar_berries_generic = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/food/foraged/shared_edible_jar_berries_generic.iff" } ObjectTemplates:addClientTemplate(object_tangible_food_foraged_shared_edible_jar_berries_generic, "object/tangible/food/fo...
cc = cc or {} ---NodeGrid object ---@class NodeGrid : Node local NodeGrid = {} cc.NodeGrid = NodeGrid -------------------------------- ---brief Set the effect grid rect.<br> ---param gridRect The effect grid rect. ---@param gridRect rect_table ---@return NodeGrid function NodeGrid:setGridRect(gridRect) end ----------...
--- @module slider local BASE = (...):match("(.-)[^%.]+$") local core = require( BASE .. "core" ) local style = require( BASE .. "style" ) local FPS = 60 ------------------------------------------------------------------------------- local function getValueFromPercent( percent, size ) return math.floor( percent * (...
--[[ 管理围观者的个人信息 ]] require("core/object"); OnlookerPlayerManager = class(); OnlookerPlayerManager.getInstance = function() if not OnlookerPlayerManager.s_instance then OnlookerPlayerManager.s_instance = new(OnlookerPlayerManager); end return OnlookerPlayerManager.s_instance; end OnlookerPlayerMan...
local theme={colors={normal={blue={0.52549019607843,0.54901960784314,0.70196078431373,1},green={0.52941176470588,0.70196078431373,0.52549019607843,1},cyan={0.52549019607843,0.70196078431373,0.70196078431373,1},white={0.42745098039216,0.50980392156863,0.55686274509804,1},red={0.70196078431373,0.52549019607843,0.52549019...
local _, C = unpack(KkthnxUI) -- Reminder Buffs Checklist C.SpellReminderBuffs = { ITEMS = { { itemID = 178742, -- Bottled Flayedwing Toxin spells = { [345545] = true, }, equip = true, instance = true, combat = true, }, { itemID = 174906, -- Lightning-Forged Augment Rune spells = { ...
local function rebuild() for disp in all_tilers_iter() do disp:tile_update(); end end local tab_menu = { { label = "Column Weight", description = "Percentage of screen width reserved for tab column", name = "htab_weight", kind = "value", initial = function(ctx) return tostring(gconfig_get("htab_barw"));...
local a,b,c,d,e,f,g,h,i,j,k,l,m,n="ShortOS Bootloader","Internet boot","Change label","key_down","/init.lua","filesystem",component.proxy,component.list,computer.pullSignal,computer.uptime,table.insert,math.max,math.min,math.huge;local o,p,q,r,s,t,u,v=1,0,1,1,0,g(h("eeprom")()),g(h("gpu")()),h("internet")()u.bind(h("sc...
-- This hook returns whether character is recognised or not. function SCHEMA:IsCharRecognised(char, id) local character = nut.char.loaded[id] local client = character:getPlayer() if (client and character) then local faction = nut.faction.indices[client:Team()] if (faction and faction.isPublic) then return ...
Font = { System = "Common Normal", Combo = "Combo Numbers", UIHeavy = "NewRodinEB-24", UINormal = "NewRodinB-24", EditorUIHeavy = "RodinEB-20", EditorUINormal = "RodinDB-20", LargeNumbers = "NewRodinEB-64-Numbers", }
---Read dynamic size ---@param b string @buffer. ---@param p number @buffer pointer. ---@return number, number local function type_dsize(b, p) local bb = string.byte(b, p) p = p + 1 n = (bb&0XC0)>>6 s = (bb&0X3F) while n > 0 do bb = string.byte(b, p) p = p + 1 s = (s<<8)|bb n = n - 1 end return s, p end ...
--[[ @Author: Eoussama @Version: v0.0.1 @Creation date: 6/12/2019 - 11:24PM ]] --[[ @description Global configurtions @param {Table} t: Love2D's configuration table ]] function love.conf(t) -- Specifying the used version of Love2D t.version = '11.0' -- Enableling the console t...
--[[ Unit tests for the directory manipulation module of the Lua/APR binding. Author: Peter Odding <peter@peterodding.com> Last Change: March 27, 2011 Homepage: http://peterodding.com/code/lua/apr/ License: MIT --]] local status, apr = pcall(require, 'apr') if not status then pcall(require, 'luarocks.require...
describe('lift.fs', function() local fs = require 'lift.fs' local stream = require 'lift.stream' local su = require 'spec.util' it('offers is_dir() to test if a directory exists', function() assert.False(fs.is_dir'nothing', fs.is_dir'README.md') assert.True(fs.is_dir'spec') end) it('offers is_fil...
AddCSLuaFile() DEFINE_BASECLASS("base_wire_entity") ENT.PrintName = "Wire Numpad Output" ENT.WireDebugName = "Numpad Output" if CLIENT then return end -- No more client local keylist = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q"...
return { version = "1.1", luaversion = "5.1", orientation = "orthogonal", width = 200, height = 100, tilewidth = 32, tileheight = 32, properties = {}, tilesets = { { name = "tilemap2", firstgid = 1, tilewidth = 32, tileheight = 32, spacing = 0, margin = 0, ...
local log = require('el.log') local processor = require('el.processor') local sections = {} sections.split = '%=' sections.collapse_builtin = function(items) return {'%(', items, '%)'} end sections.left_subsection = function(config) vim.validate { items = { config.items, 't' }, highlight = { config.hig...
CLASS.name = "Marine Commander" CLASS.desc = "You are a Commander of the United States Marine" CLASS.faction = FACTION_MARINE function CLASS:onCanBe(client) return client:isMarineRank(SCHEMA.commanderRanks) end CLASS_MARINE_COMMAND = CLASS.index
-- ============================================================= -- Copyright Roaming Gamer, LLC. 2008-2017 (All Rights Reserved) -- ============================================================= -- houseAdHelpers.lua -- ============================================================= --[[ Includes these functions: ...
local function getLearningUpdate(opt) local function learn() end return learn end return getLearningUpdate
local class = require 'middleclass' local Texture = require 'core/graphics/Texture' local LightWorld = require 'core/graphics/LightWorld' local DirectionalLight = require(here('DirectionalLight')) local SphereLight = require(here('SphereLight')) local AmbientBrdfLut = Texture:load{fileName=here('AmbientBrdfLut.png'...
-------------------------------------------------------------------------------- local _ = require 'cherry.libs.underscore' local animation = require 'cherry.libs.animation' local colorize = require 'cherry.libs.colorize' local gesture = require 'cherry.libs.gesture' local file = _G.file or require 'cherry.libs.file' ...
object_static_item_item_component_transducer = object_static_item_shared_item_component_transducer:new { } ObjectTemplates:addTemplate(object_static_item_item_component_transducer, "object/static/item/item_component_transducer.iff")
local L = BigWigs:NewBossLocale("Cordana Felsong", "itIT") if not L then return end if L then --L.kick_combo = "Kick Combo" --L.light_dropped = "%s dropped the Light." --L.light_picked = "%s picked up the Light." --L.warmup_text = "Cordana Felsong Active" --L.warmup_trigger = "I have what I was after. But I stay...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" local ERRORCODE_PB = require("ErrorCode_pb") local TOWERRECORD_PB = require("TowerRecord_pb") module('GetTowerActivityTopRes_pb') GETTOWERACTIVITYTOPRES = protobuf.Descriptor(); local GETTOWERACTIVITYTOPRES_ERROR_FIELD = protobuf....
local path = technic.modpath.."/machines" technic.digilines = { rules = { -- digilines.rules.default {x= 1,y= 0,z= 0},{x=-1,y= 0,z= 0}, -- along x beside {x= 0,y= 0,z= 1},{x= 0,y= 0,z=-1}, -- along z beside {x= 1,y= 1,z= 0},{x=-1,y= 1,z= 0}, -- 1 node above along x diagonal {x= 0,y= 1,z= 1},{x= 0,y= 1,z=-1}...
data.raw.technology["military"].upgrade = true data.raw.technology["military-2"].upgrade = true data.raw.technology["military-3"].upgrade = true data.raw.technology["military-4"].upgrade = true data.raw.technology["military-5"].upgrade = true
-- stack trace by SquidDev (MIT License) -- https://raw.githubusercontent.com/SquidDev-CC/mbs/master/lib/stack_trace.lua local type = type local debug_traceback = type(debug) == "table" and type(debug.traceback) == "function" and debug.traceback local function traceback(x) -- Attempt to detect error() and error("xyz...
module(..., lunit.testcase, package.seeall) local common = dofile("common.lua") local net = require("luanode.net") function test() local server1 = net.createServer(function (self, socket) end) server1:listen(common.PORT) local server2 = net.createServer(function (self, socket) end) server2:addList...
function bubbleSort(A) local itemCount=#A local hasChanged repeat hasChanged = false itemCount=itemCount - 1 for i = 1, itemCount do if A[i] > A[i + 1] then A[i], A[i + 1] = A[i + 1], A[i] hasChanged = true end end until hasChanged == false end
logs = {} function logs.mutePlayer(id,name,usgn,steam,duration,toggle) -- open save file with read properties local fileUSGN = io.open(directory.."users/"..usgn..".txt", "r") local fileSTEAM = io.open(directory.."users/"..steam..".txt", "r") -- check if save file exists local fd if fi...
--------------- --[[ TWEEN ]]-- --------------- --@include tween.txt local tween = require("tween.txt") --------------- --[[ ANIMX ]]-- --------------- --@name AnimX local AnimX = { -- user configuration time = timer.realtime, cleanupOnDestroy = true, -- perform additional cleanup incase user ...
object_static_item_wp_mine_xg = object_static_item_shared_wp_mine_xg:new { } ObjectTemplates:addTemplate(object_static_item_wp_mine_xg, "object/static/item/wp_mine_xg.iff")
local AlmaApiInternal = {}; AlmaApiInternal.ApiUrl = nil; AlmaApiInternal.ApiKey = nil; local types = {}; types["log4net.LogManager"] = luanet.import_type("log4net.LogManager"); types["System.Net.WebClient"] = luanet.import_type("System.Net.WebClient"); types["System.Text.Encoding"] = luanet.import_type("Syst...
if(GetRealmName() == "Earthfury")then WP_Database = { ["Recksy"] = "ST:823/99%SB:839/99%SM:1002/99%", ["Stench"] = "ST:826/99%SB:875/99%SM:1007/99%", ["Kalero"] = "LT:761/96%SB:827/99%LM:972/98%", ["Atroce"] = "LT:782/98%SB:822/99%SM:1086/99%", ["Gurky"] = "ET:727/93%SB:806/99%SM:961/99%", ["Inflames"] = "ST:940/99%SB:...
AddCSLuaFile() if ( CLIENT ) then CreateConVar( "cl_drawcameras", "1", 0, "Should the cameras be visible?" ) end ENT.Type = "anim" ENT.Spawnable = false ENT.AdminSpawnable = false ENT.RenderGroup = RENDERGROUP_BOTH ENT.PrintName = "" ENT.Author = "" ENT.Contact = "" ENT.Purpose = "" ENT...
local gui = { m_tRegisteredSkins = {}, m_pWorldPanel = nil, m_pHoveredPanel = nil, m_pFocusedPanel = nil, m_pTooltip = nil, m_strSkin = "default", } DOCK_NONE = 0 DOCK_TOP = 1 DOCK_LEFT = 2 DOCK_BOTTOM = 4 DOCK_RIGHT = 8 DOCK_FILL = 16 local object = require("class.object") require("extensions.table") functio...
dark_jedi_knight = Creature:new { objectName = "@mob/creature_names:dark_jedi_knight", randomNameType = NAME_GENERIC, randomNameTag = true, socialGroup = "dark_jedi", faction = "", level = 265, chanceHit = 23.5, damageMin = 1645, damageMax = 3000, baseXp = 25266, baseHAM = 261000, baseHAMmax = 320000, armo...
local startTime,endTime; local function getBpmData(data) local result = {} for i,v in pairs(data:GetBPMsAndTimes()) do local chunk = split("=", v) table.insert( result, {data:GetElapsedTimeFromBeat(tonumber(chunk[1])),tonumber(chunk[2])} ) end return result; end; local function ...
-- -- Created by IntelliJ IDEA. -- User: seletz -- Date: 21.02.18 -- Time: 19:13 -- To change this template use File | Settings | File Templates. -- Attack = GameObject:extend() function Attack:new(area, x, y, opts) Attack.super.new(self, area, x, y, opts) local direction = utils.table.random({-1, 1}) se...
local suit = require("lib.suit") local Keys = require("mod.keys") local help = require("mod.helpers") local pauseState = require("mod.states.pause") local widgets = require("mod.widgets") local introText = "Welcome to Valis!" local gui = suit.new() local overworldState = {} function overworldState:update(dt) if ...
-- Author : Tourahi Amine -- Object = require "classic"; -- Remove it from here if its erequired in the main.lua Bonocles = Object:extend("Bonocles") function Bonocles:new(options) self.active = options.active or false self.names = {} self.listeners = {} self.results = {} self.metaInfo = {} self.printer = opti...