content
stringlengths
5
1.05M
require 'commons' nt = require 'netcon' ftr = require 'futures' ldfile('wsconsole.lua')() require 'helpers' ftr.spawn(function() nt.deploy({wifi=false}) end) ftr.spawn(function() nt.deploy({ws=true}) end) ftr.spawn(function() nt.deploy({mqtt=true}) end) wscon = ldfile('wscon.lua') wscon:connect() wscon:close() wsco...
----------------------------------------------------------------------- -- Fern Zapata -- https://github.com/fernzi/dotfiles -- Awesome Window Manager - Weather Widget ----------------------------------------------------------------------- local wibox = require('wibox') local gears = require('gears') local naughty = r...
-- jump (lazy only) cam_size = 5.4 scale_sprite = 0.75 cam_pose_center = {-0.4,0, cam_size} cam_pose_left = {-9.5,0,cam_size} cam_pose_right = {9.5, 0, cam_size} cam_pose_rec_right = {9, 0, cam_size} cam_pose_rec_left = {-7, 0 , cam_size} pos_gg = {6.05, -0.55, 0.75, 0, 0} pos_gg_res_iv = {16.02, -0.55, scale_sprite,...
#!/usr/bin/env tarantool -- https://github.com/tarantool/graphql/issues/243 local fio = require('fio') -- require in-repo version of graphql/ sources despite current working directory package.path = fio.abspath(debug.getinfo(1).source:match("@?(.*/)") :gsub('/./', '/'):gsub('/+$', '')) .. '/../../?.lua' .. ';' ....
---------------------------------------------------------------------------------- -- CSG -- CSGdrugs/drugFactory.lua -- Drugs -- Rozza ---------------------------------------------------------------------------------- local blip = createBlip(-1826.84, 43.76, 16.12, 17, 2, 255, 0, 0, 255, 0, 400) local drugMarker...
require 'os' require 'nn' require 'rnn' require 'optim' require 'parallel' function genNbyK(n, k, a, b) out = torch.LongTensor(n, k) for i=1, n do for j = 1, k do out[i][j] = torch.random(a, b) end end return out end function buildTokenCounts(summary, stopwordlist) loca...
-- Test the delete command test.open('blanklines.txt') local lineno = test.lineno local colno = test.colno local assertEq = test.assertEq test.key('j', 'j', 'j') assertEq(colno(), 0) assertEq(lineno(), 3) assertEq(buffer:get_cur_line(), "three\n") test.key('d', 'd') assertEq(buffer:get_text(),[[ one two four five six...
return {'bvtjes'}
Description="Add man7.org reference links to HTML, LaTeX, RTF and ODT output of Bash scripts" Categories = {"bash", "html", "rtf", "latex", "odt", "hyperlinks" } function syntaxUpdate(desc) if desc~="Bash" then return end function Set (list) local set = {} for _, l in ipairs(list) do set[l] = tru...
-------------------------------- -- @module LoadingBar -- @extend Widget -- @parent_module ccui -------------------------------- -- Changes the progress value of LoadingBar.<br> -- param percent Percent value from 1 to 100. -- @function [parent=#LoadingBar] setPercent -- @param self -- @param #float percent -- @re...
-- -*- lua -*- local defaultcluster = os.getenv("VSC_DEFAULT_CLUSTER_MODULE") or "" if defaultcluster ~= "" then load("cluster/" .. defaultcluster) else LmodError([[No default cluster can be loaded. You need to choose one: 'ml spider cluster' gives an overview]]) end
mmpkg.QL = {} mmpkg.QL.searchstring = table.concat(string.split(matches[3], " "), "+") mmpkg.QL.link = "https://annwn.info/quest/search/?search=quest&keyword=" .. mmpkg.QL.searchstring .. "&sort=questname" cechoLink(" <cyan>[annwn.info]", [[openWebPage("]] .. mmpkg.QL.link .. [[")]], "Lookup quest on annwn.info", true)...
local status_ok, toggleterm = pcall(require, "toggleterm") if not status_ok then return end function _G.set_terminal_keymaps() local opts = {noremap = true} vim.api.nvim_buf_set_keymap(0, 't', '<esc>', [[<C-\><C-n>]], opts) -- vim.api.nvim_buf_set_keymap(0, 't', 'jk', [[<C-\><C-n>]], opts) vim.api.nv...
local V = { Name = "Volvo S60R", Class = "prop_vehicle_jeep", Category = "TDM Cars", Author = "TheDanishMaster, Turn 10", Information = "A drivable Volvo S60R by TheDanishMaster", Model = "models/tdmcars/vol_s60.mdl", KeyValues = { vehiclescript = "scripts/vehicles/tdmcars/vols60.txt" ...
require("love.event") local view = require("lib.fennelview") local event, channel = ... if channel then local prompt = nil local function _0_(next_line_3f) local function _1_() if next_line_3f then return ".." else return ">> " end end io.write...
object_tangible_collection_rare_carbine_blackscale_hall_sweeper = object_tangible_collection_shared_rare_carbine_blackscale_hall_sweeper:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_rare_carbine_blackscale_hall_sweeper, "object/tangible/collection/rare_carbine_blackscale_hall_s...
--[[ pun Start PUN process for given user --]] function pun(r, bin, user, app_init_url) local cmd = bin .. " pun -u '" .. r:escape(user) .. "'" if app_init_url then cmd = cmd .. " -a '" .. r:escape(app_init_url) .. "'" end local err = capture2e(cmd) if err == "" then return nil -- success els...
require "util" require "GlobalConstants" require "CommonBus" require "ResMgr" require "TimerMgr" local MyApp = class("MyApp", cc.load("mvc").AppBase) function MyApp:onCreate() cc.Image:setPVRImagesHavePremultipliedAlpha(true) math.randomseed(os.time()) ResMgr:start() TimerMgr:start() end return...
local util = require 'util' local lovetoys = require 'lovetoys.lovetoys' local Position = lovetoys.Component.create('Position') function Position:initialize(x, y) self:reset(x, y) end function Position:reset(x, y) self.x = x or 0 self.y = y or 0 self.dirty = {} end function Position:translate(x, y...
local module = {} module.priority = 3 local TeleportService = game:GetService("TeleportService") local network local utilities local configuration local function preparePlayerToTeleport(player, destination) if player:FindFirstChild("DataSaveFailed") then network:fireClient("alertPlayerNotification", player, { ...
--[[Keli'dan the Breaker yells: Closer! Come closer... and burn! Keli'dan the Breaker yells: Good...luck. You'll need it. Keli'dan the Breaker yells: Just as you deserve! Keli'dan the Breaker yells: Who dares interrupt--What is this; what have you done? You'll ruin everything! Keli'dan the Breaker yells: Your friends w...
-- RigidBodies are formed by Constraints, Points and UI Elements. -- Services and utilities local Point = require(script.Parent.Point) local Constraint = require(script.Parent.Constraint) local Globals = require(script.Parent.Parent.Constants.Globals) local Signal = require(script.Parent.Parent.Utilities.Signal) local...
Debug = true require "core/myLove" MainScene = require "MainScene" JOYSTICK_AXIS_LX = 1 JOYSTICK_AXIS_LY = 2 JOYSTICK_AXIS_RX = 5 JOYSTICK_AXIS_RY = 4 local joystick_state = "joystickremoved" local joystick_guid = "-" local joystick_lx = "-" local joystick_ly = "-" local joystick_rx = "-" local joystick_ry...
----------------------------------------------------------------------------------- local ADDONNAME, THIS = ...; ----------------------------------------------------------------------------------- local AceLocale = LibStub:GetLibrary("AceLocale-3.0") local L = AceLocale:NewLocale(ADDONNAME, "deDE") if ( not L ) ...
minetest.register_craft({ output = '3d_armor:boots', recipe = { {'', '', ''}, {'group:wood', '', 'group:wood'}, {'group:wood', '', 'group:wood'}, } }) minetest.register_craft({ output = '3d_armor:boots_mega1', recipe = { {'tutorial:obsidian4', 'tutorial:obsidian4', 'tutorial:obsi...
--todo, silently fail and return an error message, don't stop the whole program from running local vec2 = require("vec2") local sliderCalc = require("slidercurves") require("util") local map = {} local prefile = {} if bit then--we are running in luajit bit32 = bit end function map:init() --defaults self.section = ...
return { name = 'server', version = '0.0.1', description = "Boilerplate for web server in Luvit", author = "Vladimir Dronnikov <dronnikov@gmail.com>", dependencies = { curl = "https://github.com/dvv/luvit-curl/zipball/master", kernel = "https://github.com/luvit/kernel/zipball/master", static = ...
-- table of previously-played tracks playedBin = {} function RandomMusicRule() -- function created by Mikail, EvilleJedi local passBool = 1 local musicPath = [[data:sound\music\]] local listLen = getn(TracksTable) local binLen = getn(playedBin) local randNum = random(listLen) local track_title = TracksTable[ran...
-------------------------------- -- @module Player -- @extend Sprite -- @parent_module video ---@class video.Player:cc.Sprite local Player = {} video.Player = Player -------------------------------- --- ---@param path string ---@return video.Player function Player:create(path) end -------------------------------- ...
local bs = torch.class('basler.bs') local ffi = require 'ffi' local C = basler.C function bs:__init() self.handle = ffi.new'void*[1]' local old_handle = self.handle[1] C.init_basler(self.handle) if(self.handle[1] == old_handle) then print 'Unsuccessful init' end self.frame = torch.ByteTensor(1200, 1920, ...
--[[ MIT License Copyright (c) 2022 Michael Wiesendanger 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, mod...
include('shared.lua') function ENT:Initialize() self.TEMP_Emitter = ParticleEmitter(Vector(0,0,0), false) end --ENT.TEMP_Emitter = ParticleEmitter(Vector(0,0,0), false) function ENT:Think() self.TEMP_Emitter:SetPos(self:GetPos(), false) if(IsValid(self.TEMP_Emitter)) then local TEMP_Particle = self.TEMP_Emi...
function Client_SaveConfigureUI(alert) Alert = alert; Mod.Settings.Conditionsrequiredforwin = inputConditionsrequiredforwin.GetValue(); InRange(Mod.Settings.Conditionsrequiredforwin); TakenSettings = 0; Mod.Settings.Capturedterritories = inputCapturedterritories.GetValue(); InRange(Mod.Settings.Captured...
local Console = {} function Console.start() local lua = 'lua' -- if VANILLA_JIT_BIN ~= nil then -- lua = VANILLA_JIT_BIN -- end local cmd = lua .. " -i -e \"_PROMPT='v-console>';package.path='" .. package.path .. "' package.cpath='" .. package.cpath .. "' require 'vanilla.sys.con...
--Riptide.lua --made by ace28545 and madiik function clerp(c1,c2,al) local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} for i,v in pairs(com1) do com1[i] = v+(com2[i]-v)*al end return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) end ...
object_tangible_terminal_gcw_table_keren_reb = object_tangible_terminal_shared_gcw_table_keren_reb:new { } ObjectTemplates:addTemplate(object_tangible_terminal_gcw_table_keren_reb, "object/tangible/terminal/gcw_table_keren_reb.iff")
--- AndroLua Touch handling. -- This module returns a function which generates a suitable `OnTouchEvent` -- handler. When creating a custom view using @{android.luaView} you can say: -- -- T = { -- draw = ...; -- onTouchEvent = require 'android.touch'(T) -- touch = function(kind,idx,x,y,dir,movement) ...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:KeyValue(key, value) self.VMF = self.VMF or {} self.VMF[key] = value end -------------------------------------------------------------------------------- function ENT:Initialize() self:EntIndex() self.VMF = self.VMF or {} se...
test_run = require('test_run').new() test_run:cmd("create server test with script='vinyl/low_quota.lua'") test_run:cmd("start server test with args='1048576'") test_run:cmd('switch test') fiber = require 'fiber' box.cfg{vinyl_timeout=0.01} box.error.injection.set('ERRINJ_VY_SCHED_TIMEOUT', 0.01) -- -- Check that a ...
local PASSIVE_RESOURCE_NAME = "passive" local passiveResource = nil local thisResource = getThisResource() local PASSIVE_REQUEST_KEY = "manual-command" -- passivePlayers[<player>] = <true> local passivePlayers = createElementKeyedTable() function isPlayerPassiveEnabled(player) assertArgumentType(player, "player"...
-- 基础控制器 local require = require local type = type local error = error local unpack = table.unpack or unpack local ngx_now = ngx.now local math_floor = math.floor local APP_ROOT = APP_ROOT local BaseController = {} function BaseController:new(helper) local new = {helper=helper, cleanups={}} helper.Extends(new, self...
TextBannerActor = function(y, contents) local t = Def.ActorFrame { InitCommand = function(this) this:xy(SCREEN_CENTER_X, y) end, } t[#t+1] = Def.Quad { InitCommand = function(this) this:zoomto(SCREEN_WIDTH, 64) :diffuse(ThemeColor.Black) end, } t[#t+1] = contents ret...
local Schema = require 'scripts.config.schema' local Logs = require 'lib.logs' local colors = require 'lib.colors' local fun = require 'lib.fun' local i18n = require 'i18n' local function format_value(v) if type(v) == 'table' then local list = fun.iter(v):map(format_value):totable() return '[' .. table.conca...
local configs = require("configs") local graphicsDevice = {} function graphicsDevice.focused() DRAW_INTERVAL = configs.graphics.focused_draw_rate UPDATE_INTERVAL = configs.graphics.focused_update_rate MAIN_LOOP_SLEEP = configs.graphics.focused_main_loop_sleep end function graphicsDevice.unfocused() D...
-- RedFlat util submodule local cairo = { textcentre = {} } -- Functions ----------------------------------------------------------------------------------------------------------------------- -- Draw text aligned by center ------------------------------------------------------------ function cairo.textcentre.full(...
--[[ Events ]] AddEventHandler("caue-police:showVehicles", function(pArgs, pEntity, pContext) local data = {} local ownedVehicles = RPC.execute("caue-vehicles:ownedVehiclesModels") for _, vehicle in ipairs(pArgs["Vehicles"]) do if vehicle.first_free and not has_value(ownedVehicles, vehicle.m...
--------------------------------------------------------------------------------------------------- -- Issue: https://github.com/smartdevicelink/sdl_core/issues/2990 -- -- Steps: -- 1. Start SDL, HMI, connect Mobile device -- 2. Register mobile application -- 3. Activate application -- 4. App creates a few interaction ...
return { id = "bowl", name = "Ramen Bowl", description = "Had some good ramen in it. Now it's a cool hat!", type = "hat", rarity = 1, hidden = false, }
return { summary = 'Set the Shape\'s user data.', description = 'Sets the user data associated with the Shape.', arguments = { { name = 'data', type = '*', description = 'The custom value associated with the Shape.' } }, returns = {}, notes = 'User data can be useful to identify th...
local re = require "relabel" local peg = {} -- from relabel.lua local errinfo = { {"NoPatt", "no pattern found"}, {"ExtraChars", "unexpected characters after the pattern"}, {"ExpPatt1", "expected a pattern after '/' or '//{...}'"}, {"ExpPatt2", "expected a pattern after '&'"}, {"ExpPatt3", "expected a pa...
--- Helper methods to access to player notebooks within TTS. local Notebook = {} ---@return tts__Notes_GetParameter[] function Notebook.getAll() return Notes.getNotebookTabs() end --- Returns the content of the first notebook with the given title. ---@param title string ---@return nil | string function Notebook.g...
local function rotate(event) if (event.entity.name == "DirectedBouncePlate" and global.BouncePadList[event.entity.unit_number] ~= nil) then CantSeeMe = rendering.get_visible(global.BouncePadList[event.entity.unit_number].arrow) rendering.destroy(global.BouncePadList[event.entity.unit_number].arrow) if (event.ent...
-- -- Copyright (C) 2021 Masatoshi Fukunaga -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, ...
local eapi = select(1,...) --The editor library is provided as an argument --=Contributing Guide=-- --[[ Try your best to keep your work light, documented and tidy, since this will be the base of other places where text editors exist. self.cx, self.cy are the position of the brown blinking cursor * the top-left corn...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") ENT.BogeyDistance = 650 -- Needed for gm trainspawner ENT.SyncTable = { "A53","A56","A54","A24","A39","A23","A14","A13","A31","A32","A16","A12","A49","A15","A27","A50","A8","A52","A19","A10","A22","A30","A1","A2","A3","A4","A5","A6","A72"...
local L = LibStub("AceLocale-3.0"):NewLocale("BronCena", "enUS", true) -- Slash commands L["broncena"] = true L["bron"] = true -- Options L["Disabled"] = true L["Disables or enables the addon"] = true L["Zones"] = true L["World"] = true L["Enables or disables when you're not in an instance"] = true L[...
---------------------------------------------------------------------------- -- Plot functionality -- contains all the functions and tables for plotting -- ---------------------------------------------------------------------------- tPlot = { --gnuplot_library=[[""D:\Meine Dateien/Software_Programme/gnuplot/bi...
--[[function onCreate() for i=0, getProperty('unspawnNotes.length')-1 do if getPropertyFromGroup('unspawnNotes', i, 'noteType') == 'plr3' then setPropertyFromGroup('unspawnNotes', i, 'ignoreNote', true) end end end--]]
--[[ class Signal Description: Lua-side duplication of the API of Events on Roblox objects. Needed for nicer syntax, and to ensure that for local events objects are passed by reference rather than by value where possible, as the BindableEvent objects always pass their signal arguments by value, meaning tables will...
---------------------------------------------------------------------- -- This script demonstrates how to define a couple of different -- models: -- + linear (FNN) -- + 2-layer neural network (MLP) -- + recurrent neural network (RNN) -- + neural network ensemble -- -- It's a good idea to run this script with th...
-- Bootstrap for packer local fn = vim.fn local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' if fn.empty(fn.glob(install_path)) > 0 then packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) end vim.cmd([[ augroup packe...
local __scriptsindex = LibStub:GetLibrary("ovale/scripts/index") local registerScripts = __scriptsindex.registerScripts registerScripts()
--[[ MIT License rsys.lua is the main chunk of everything, assisted by a few other files. Copyright (c) 2021 JasonP 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, includi...
local server = require "nvim-lsp-installer.server" local path = require "nvim-lsp-installer.path" local installers = require "nvim-lsp-installer.installers" local Data = require "nvim-lsp-installer.data" local std = require "nvim-lsp-installer.installers.std" local platform = require "nvim-lsp-installer.platform" local...
-- Scripts pour jouer un fichier son sur un HP print("\n play_file.lua zf190131.1023 \n") -- **************************************************************************** -- Play file with pcm module. -- -- Upload jump_8k.u8 to spiffs before running this script. -- -- *************************************************...
local cel = require 'cel' local M = cel.getface('label') M.textcolor = 'current' M.color = false M.layout = { padding = { l=function(w, h, font) return math.floor(font.metrics[' '].advance/2) end, r=function(w, h, font) return math.floor(.9+font.metrics[' '].advance/2) end, }, } function M.draw(crc, f, t...
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Balakaf -- Type: Standard NPC -- !pos 25.505 -6.999 126.478 50 ----------------------------------- function onTrade(player,npc,trade) end function onTrigger(player,npc) player:startEvent(515) end function onEventUpdate(player,csid,option)...
title = {" Конвексни четвороугао има све углове мање од 180°.", " Четвороугао може имати све углове оштре.", " Четвороугао има бар један угао мањи од 90°.", " Правоугаоник је паралелограм коме су сви углови једнаки.", " Ако је један угао паралелограма прав, паралелограм је правоуг...
Matchmaking = {} local ROOM_TIME_NOPLAYERS = 20 local ROOM_TIME_ENOUGH_PLAYERS = 10 local rooms = {} local players = {} local playersCount = {} local function findRoom(rank, mapName) for i, room in ipairs(rooms) do if room.rank == rank and room.mapName == mapName then return room end end return false end l...
-- Tests for 'fixeol' local helpers = require('test.functional.helpers')(after_each) local feed = helpers.feed local clear, feed_command, expect = helpers.clear, helpers.feed_command, helpers.expect if helpers.pending_win32(pending) then return end describe('fixeol', function() local function rmtestfiles() os....
local SpatialSubSampling, parent = torch.class('nn.SpatialSubSampling', 'nn.Module') function SpatialSubSampling:__init(nInputPlane, kW, kH, dW, dH) parent.__init(self) dW = dW or 1 dH = dH or 1 self.nInputPlane = nInputPlane self.kW = kW self.kH = kH self.dW = dW self.dH = dH self.weight...
local plane = require("imports.geometries.plane") local M = {} function M.plane() return plane() end return M
local check local function lookup(tab) local val = tab[check] if type(val) == "function" then return val() end return val end return function (var) check = var return lookup end
local RNN, parent = torch.class('cudnn.RNN', 'nn.Module') local ffi = require 'ffi' local errcheck = cudnn.errcheck local DESCS = {'rnnDesc', 'dropoutDesc', 'wDesc', 'xDescs', 'yDescs', 'hxDesc', 'hyDesc', 'cxDesc', 'cyDesc'} RNN.linearLayers = { CUDNN_LSTM = 8, CUDNN_GRU = 6, CUDNN_RNN_RELU = 2, CUDN...
-- Set the mapleader. This should be done first to make sure that it works in the rest of my keybindings vim.g.mapleader = "," require'tom.config' -- Set some general options require'tom.plugins' -- Load plugins. This will also load my completion and LSP configs require'tom.keybinds' -- Load some keybinds -- Kick ...
require 'Toolkit' require 'Inventory' require 'Common' require 'Inventory' -- Inventory.parts and Inventory.tools ToolCraft = {} local divider1Height = 150 local divider2Height = 600 local toolListHeight = divider1Height local partListHeight = divider2Height - divider1Height local toolDisp...
--[[ Exports all types that are required for Fluent to work properly Licensed under the MIT license ]] export type fluent_interface = { -- allow for auto complete while styling classes -- any BorderRadius: number?, sizeX: number?, sizeY: number?, Pos: UDim2?, Background: Color3?, ...
include "shared.lua" ENT.RenderGroup = RENDERGROUP_BOTH local GM = (GAMEMODE or GM) GM.Net:RegisterEventHandle( "ent", "creg_open", function( intMsgLen, pPlayer ) local register, money = net.ReadEntity(), net.ReadUInt(32) if not IsValid( register ) then return end local nearItems = {} local num = net.ReadUInt( 1...
local _worlds = nil -- should not have visbility of each other... _DEBUG = false function love.load() love.graphics.setDefaultFilter("nearest", "nearest", 0) -- Globals Vector = require("libs.vector") Timer = require("libs.timer") _constants = require("src.constants") _util = require("libs.util") Concord...
--[[========================================= _ _ _ | | | | | | /\ /\ | | | | | | / \ _ __ _ __ / \ _ __ ___ | | | | | |/ /\ \ | '_ \| '_ \ / /\ \ | '__/ __| | |___| |__| / ____ \| |_) | |_) / ____ \| | | (__ |______\____/_/ \_\ .__/| .__/_/ \_\_| \___| Scripting Pro...
-- -- 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 ...
local Generator = {}
------------------------------------------------------------------------------- -- -- tek.ui.class.numeric -- Written by Timm S. Mueller <tmueller at schulze-mueller.de> -- See copyright notice in COPYRIGHT -- -- OVERVIEW:: -- [[#ClassOverview]] : -- [[#tek.class : Class]] / -- [[#tek.class.object : Object]] / -- [...
-- steel-plate data.raw["recipe"]["steel-plate"]["normal"].energy_required = 8 -- electronics data.raw["recipe"]["electronic-circuit"]["normal"].ingredients = { {"iron-plate", 1}, {"copper-cable", 2} } -- rocket-fuel data.raw["recipe"]["rocket-fuel"].ingredients = { {"solid-fuel", 10}, {"oxidizer", 4}...
-- Setup lspconfig local lspconfig = require'lspconfig' ---------------------------------------------------------------------------- -- HTML ---------------------------------------------------------------------------- local capabilities = require'cmp_nvim_lsp'.update_capabilities( vim.lsp.protocol.make_client_capabi...
local function AutoFile(msg) local text = msg.content_.text_ if Sudo(msg) then if text == 'تفعيل النسخه التلقائيه' or text == 'تفعيل جلب نسخه الكروبات' or text == 'تفعيل عمل نسخه للمجموعات' then Dev_ky(msg.chat_id_,msg.id_, 1, "⌁︙تم تفعيل جلب نسخة الكروبات التلقائيه\n⌁︙سيتم ارسال نسخه تلقائيه للكروبات كل يوم الى...
local folderName = ... local cosFix = LibStub("AceAddon-3.0"):GetAddon(folderName) -- Hardcoded offsets of player models. These are not to be changed in the GUI. -- Because if they are wrong, all the other custom offsets are also wrong. cosFix.playerModelOffsetFactors = { -- Alliance core races [10116...
while true do wait() script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.1) end
function Exo_Auber(pUnit, Event) pUnit:Teleport(1, 6499.8, 795.6, 7.9) end RegisterGameObjectEvent(200002, 2, "Exo_Auber")
local auto = vim.api.nvim_exec vim.g.colors_name = 'onedark' auto([[ augroup ColorschemeTweaks autocmd! autocmd ColorScheme * highlight TabLineFill guifg=#5c6370 guibg=#2d323d autocmd ColorScheme * highlight TabLine guifg=#5c6370 guibg=#2d323d autocmd ColorScheme * highlight TabLineSel guifg=#abb2b...
data:extend( { { type = "selection-tool", name = "bluebuild-selector", localised_name = "Bluebuild Selector", icon = "__ght-lo-bluebuild__/graphics/icons/bluebuild-selector.png", flags = { "goes-to-quickbar" }, subgroup = "tool", order = "c[automated-construction]-a[blueprint]", stack_size = 1, stack...
return PlaceObj("ModDef", { "title", "The Parish Boy's Progress", "version", 2, "version_major", 0, "version_minor", 2, "saved", 0, "image", "Preview.png", "id", "ChoGGi_TheParishBoysProgress", "steam_id", "1780346181", "pops_any_uuid", "511b3733-2ba0-4097-9e5f-77daed702556", "author", "ChoGGi", "lua_revisio...
return function(object) if typeof(object) == "table" then return object.objectType or "table" else return typeof(object) end end
SUPERMACRO_VERSION = "3.17"; UIPanelWindows["SuperMacroFrame"] = { area = "left", pushable = 7, whileDead = 1 }; UIPanelWindows["SuperMacroOptionsFrame"] = { area = "left", pushable = 0, whileDead = 1 }; MACRO_ROWS = 3; MACRO_COLUMNS = 10; MACROS_REGULAR_SHOWN = 36; MACROS_SUPER_SHOWN = MACRO_ROWS * MACRO_COLUMNS; MAX_...
SB.Include(Path.Join(SB_VIEW_DIR, "editor.lua")) AnimationsView = Editor:extends{} -- AnimationsView:Register({ -- name = "animationsView", -- tab = "Objects", -- caption = "Anims", -- tooltip = "Unit animations", -- image = SB_IMG_DIR .. "meeple.png", -- }) function AnimationsView:init...
local attrib = require "attrib" local e = attrib.expression { "攻击 = 力量 * 10", "防御 = (攻击 - 3) * 力量", } local a = attrib.new(e) a["力量"] = 3 for k,v in pairs(a) do print(k,v) end a("力量",1) for k,v in pairs(a) do print(k,v) end
object_mobile_storyteller_loveday_protocol_droid = object_mobile_shared_storyteller_loveday_protocol_droid:new { } ObjectTemplates:addTemplate(object_mobile_storyteller_loveday_protocol_droid, "object/mobile/storyteller_loveday_protocol_droid.iff")
function LOG(str) if settings.global["enable-logging"].value then log(str) end end
--=========== Copyright © 2019, Planimeter, All rights reserved. ===========-- -- -- Purpose: Move Indicator HUD -- --==========================================================================-- class "gui.hudmoveindicator" ( "gui.box" ) local hudmoveindicator = gui.hudmoveindicator function hudmoveindicator:hudmove...
local current_folder = (...):gsub('%.init$', '') return require(current_folder .. '.init')