content
stringlengths
5
1.05M
--Class for sprites. Should extend Object Enemy2 = { maxVelocityX = 100, weapon = {} } function Enemy2:new(X,Y) s = Enemy:new(X,Y) setmetatable(s, self) setmetatable(self, Enemy) self.__index = self s.aiStage = 1 s.health = 2 s.maxHealth = 2 s.score = 200 s.NUMROUTES = 1 s.attackPower = 1 --s.acceleratio...
ITEM.name = "Карта" ITEM.desc = "Карта окрестностей Майенны" ITEM.model = "models/maps.mdl" ITEM.category = "misc" ITEM.functions.View = { name = "Осмотреть", icon = "icon16/map.png", onClick = function(item) local frame = vgui.Create("DFrame") frame:SetSize(840, 850) frame:SetTitle(item.name) frame:MakePop...
--[[ Author: LearningDave Date: december, 6th 2015. Steals mana from target ]] function StealManaBunshin( event ) if (event.ability:IsCooldownReady()) then if not event.target:IsBuilding() and event.target:GetMaxMana() > 0 and not event.target:IsMagicImmune() then -- Variables local caster = event.caster ...
local EQUIPMENT = script:FindAncestorByType("Equipment") EQUIPMENT.serverUserData.KillEvents = {} function ActivateRegen(player, damage) if(Object.IsValid(EQUIPMENT) ) then if(damage.sourcePlayer == EQUIPMENT.owner) and (player ~= EQUIPMENT.owner) then Events.Broadcast("ActivateRegen",EQUIPME...
-- String Util -- Stephen Leitnick -- December 3, 2019 --[[ StringUtil.Trim(String str) StringUtil.TrimStart(String str) StringUtil.TrimEnd(String str) StringUtil.EqualsIgnoreCase(String str, String compare) StringUtil.RemoveWhitespace(String str) StringUtil.RemoveExcessWhitespace(String str) StringUtil.EndsWi...
kMarineInitialIndivRes = 20 kAlienInitialIndivRes = 15
-- Enable Lua module caching if available for a speed boost local ok, impatient = pcall(require, "impatient") if ok then impatient.enable_profile() else vim.notify("impatient.nvim not found. Lua module caching is disabled.", "warn") end -- Check if Nix is managing Vim packages. If not, load them with Packer. -- ...
local Mef = require("api.Mef") local Chara = require("api.Chara") local Event = require("api.Event") local I18N = require("api.I18N") local Gui = require("api.Gui") local Input = require("api.Input") local Map = require("api.Map") local World = require("api.World") local Log = require("api.Log") local Env = require("ap...
local UIListLayout = import("./UIListLayout") local typeof = import("../functions/typeof") describe("instances.UIListLayout", function() it("should instantiate", function() local instance = UIListLayout:new() assert.not_nil(instance) end) it("should inherit from UIGridStyleLayout", function() local instance...
object_tangible_content_wod_token_2 = object_tangible_content_shared_wod_token_2:new { } ObjectTemplates:addTemplate(object_tangible_content_wod_token_2, "object/tangible/content/wod_token_2.iff")
local Root = script:GetCustomProperty("Root"):WaitForObject() local Registry = script:GetCustomProperty("Registrty"):WaitForObject() local function Update(_, prop) if prop == "ActiveChart" then local children = Root:GetChildren() local activestring = Registry:GetCustomProperty("ActiveChart") for i = 1, #active...
-- lib/server/groups.lua -- functions for managing the player groups function BSU.RegisterGroup(id, name, color, usergroup, inherit) BSU.SQLInsert(BSU.SQL_GROUPS, { id = id, name = name, color = type(color) == "table" and BSU.ColorToHex(color) or string.gsub(color, "#", ""), usergroup = u...
--- Main module for the Google Analytics implementation for the Defold game -- engine. -- -- @usage -- local ga = require "googleanalytics.ga" -- -- function init(self) -- ga.get_default_tracker().screenview("my_cool_screen") -- end -- -- function update(self, dt) -- ga.update() -- end -- -- function on_input(self...
-- type = github -- DO NOT REMOVE THIS LINE! local name = "jx" local version = "3.2.279" local org = "jenkins-x" local repo = "jx" local base_url = "https://github.com/" .. org .. "/" .. repo food = { name = name, description = "JX is a command line tool for installing and using Jenkins X", license = "Apac...
data:extend( { { type = "item", name = "economics-buyer-chest", icon = "__Economics__/graphics/icons/economics-buyer-chest.png", flags = {"goes-to-quickbar"}, subgroup = "storage", order = "a[items]-e[economics-buyer-chest]", place_result = "economics-buyer-chest", stack_size = 50 },...
local function GetItem(desiredItemID) for i = 1, 16, 1 do local data = turtle.getItemDetail(i) if(data ~= nil) then if(data.name == desiredItemID) then return i end end end -- to avoid "too long without yielding" error: turtle.inspect() en...
--============================================================================-- -- initialization.lua --============================================================================-- require 'util' require ('config') require 'scripts/utils' --==========================================================================...
-- Image and Animation Assets for fire dart. local assets = { -- Animations. Asset("ANIM", "anim/fire_dart.zip"), -- Inventory images. Asset("ATLAS", "images/inventoryimages/fire_dart.xml"), Asset("IMAGE", "images/inventoryimages/fire_dart.tex"), } -- Load additional Prefabs, just in case. local prefabs =...
-- local discordia = require('discordia') local stars = setmetatable({}, {__index = function() return 0 end}) local function star(msg) if msg.author.discriminator ~= '0000' then return end local embed = msg.embed if not embed then return end if not embed.title then return end if not embed.title:find('New star...
mapFields = require "lib/mapFields" target.play_portal_sound_effect() target.modify_skill(20000016, 0, -1) target.modify_skill(20000016, 1, 0) target.transfer_field(mapFields.getID("BurningForest3"), 1)
--[[============================================================================= ON_INIT, Timer,s and Property management functions Copyright 2015 Control4 Corporation. All Rights Reserved. ===============================================================================]] require "common.c4_driver_declara...
local home = {} local properties = {} local json = require("json") local zip = require("plugin.zip") function home:render(params) ------------------------------------------------------------------------------ -- Declarations ------------------------------------------------------------------------------ local ...
-- function setup() FONT_load("AlexBrush","asset://AlexBrush-Regular-OTF.otf") end function execute(deltaT) sysLoad("asset://List.lua") end function leave() end
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** require "OptionScreens/CharacterCreationMain" ---@class CoopCharacterCreationMain : CharacterCreationMain CoopCharacterCreationMain ...
local nvim = require("nvim") local util = require("fzfmania.util") local fzf_cmd = require("fzf-lua.cmd") local fzf = require("fzf-lua") local fzfgrep = require("fzf-lua.providers.grep") local function op(desc) return { silent = true, desc = desc } end local function _config(opts) if opts.commands then --{{{ ...
#!/usr/bin/env lua -------------------------------------------------------------------------------- -- @script Lua Module Pre-Loader -- @version 1.1 -- @author Renato Maia <maia@tecgraf.puc-rio.br> -- local assert = assert local ipairs = ipairs local pairs = pairs local select = select local io = require "io" l...
local function github(user, repo, branch, file, name) local url = "https://github.com/"..textutils.urlEncode(user).."/"..textutils.urlEncode(repo).."/raw/"..textutils.urlEncode(branch).."/"..textutils.urlEncode(file) shell.run("wget",url,name) end local function pastebin(paste, file) shell.run("pastebin","get",p...
-- FILE: alt_set_1000.lua -- VERSION: 1.0 -- AUTHOR: Carsten Lynker -- DESCRIPTION: Will increase or decrese the value of the autopilot's altitude setting -- to the next 1000th, to tune in the values more effective. -- You can easily modify this script to change the step size. ...
function onCreate() -- background shit makeLuaSprite('eteledstageback1', 'eteledstageback1', -600, -300); setScrollFactor('stageback', 0.9, 0.9); makeAnimatedLuaSprite('miibuttons','miibuttons',-350,0)addAnimationByPrefix('miibuttons','dance','miibuttons anim',6,true) objectPlayAnimation('miibuttons','danc...
if SERVER then AddCSLuaFile() end SWEP.Author = "add___123" SWEP.Base = "weapon_base" SWEP.PrintName = "Light SMG" SWEP.Instructions = "" SWEP.ViewModel = "models/weapons/c_smg1.mdl" SWEP.WorldModel = "models/weapons/w_smg1.mdl" SWEP.ViewModelFl...
AddCommand("ban", function(player, dest, reason) if PLAYER_HAVE_PERMISSION(player, "essential.ban") == false then MessageChat(player, 4, " You don't haver permission to execute this commande !") return end if dest == nil then MessageChat(player, 4, " syntaxe error /ban [player] ([reason]) !") return end i...
--Copyright (C) 2009 <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. ...
print('hello world') -- define a function function fact(n) if n == 0 then return 1 else return n * fact(n - 1) end end --print('Enter a number:') --num = io.read('*n') num = 3 print(fact(num)) --block comments --[[ print(10) --]] print(b) b = 22 print(b) b = nil print(b) -- 1.1 function fact2(n) i...
local UniversalAppOnWindows = game:GetEngineFeature("UniversalAppOnWindows") game:DefineFastFlag("InGameMenuOpenOnHover", false) return function() return UniversalAppOnWindows and game:GetFastFlag("InGameMenuOpenOnHover") end
----------------------------------- -- Area: Grauberg [S] -- Mob: Ajattara -- Note: PH for Scitalis ----------------------------------- local ID = require("scripts/zones/Grauberg_[S]/IDs") require("scripts/globals/mobs") ----------------------------------- function onMobDeath(mob, player, isKiller) end function onMo...
Action = {} local bot = GetBot() local NEARBY_RADIUS = 1500 local ACTION_MOVE = 0 local ACTION_ATTACK_HERO = 1 local ACTION_ATTACK_CREEP = 2 local ACTION_USE_ABILITY = 3 local ACTION_ATTACK_TOWER = 4 local ACTION_MOVE_DISCRETE = 5 local ACTION_DO_NOTHING = 6 local last_time_move = GameTime() local wrong_action = 0 ...
MLIB = MLIB or {} MLIB.Installed = true MLIB.Verison = "v2.0.3" WSG = {} function MLIB.Print(...) MsgC(Color(225, 20, 30), "[MLIB - " ..MLIB.Verison.." ] ", Color(129, 225, 20), ..., "\n\r") end hook.Add("ROOKI_load_prio_register", "rooki_loadutils", function() rookiutil.new("Edge HUD Utils", { ...
local lwtk = require"lwtk" local call = lwtk.call local ChildLookup = lwtk.ChildLookup local getParent = lwtk.get.parent local getChildLookup = lwtk.get.childLookup local getStyle = lwtk.get.style local Super = lwtk.MouseDispatcher(lwtk.Compound(lwtk.Widget)) local Group = lwtk.newCla...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local lib = ReplicatedStorage.lib local common = ReplicatedStorage.common local util = common.util local Dictionary = require(util.Dictionary) local RECS = require(lib.RECS) return RECS.defineComponent({ name = "Rig", generator = function(props)...
local ReactFiberScheduler = require "ReactFiberScheduler" local pi = require "pi" pi(ReactFiberScheduler)
local dap = require'dap' dap.adapters.node2 = { type = 'executable', command = 'node', args = {os.getenv('HOME') .. '/vscode-node-debug2/out/src/nodeDebug.js'}, } dap.configurations.javascript = { { type = 'node2', request = 'launch', program = '${file}', cwd = vim.fn.ge...
-- -*- coding:utf-8; -*- --- misc/ip.lua -- @script ip -- @author:phenix3443@gmail.com -- bin/resty --shdict "falcon 20m" --errlog-level debug --http-include nginx/lua/test/test.nginx.conf nginx/lua/test/mmdb_helper.lua local sp = require("serpent") local lu = require("luaunit") local MMH = require("misc.mmdb_helper"...
IngameMenuUpperSpaceComposition = IngameMenuUpperSpaceComposition or {} function IngameMenuUpperSpaceComposition.Create(_ARG_0_, _ARG_1_) local oComposition = IngameMenuUpperSpaceComposition.CreateIngameMenuUpperSpaceComposition(_ARG_0_, _ARG_1_) return oComposition end function IngameMenuUppe...
local ArtifactUI = { Name = "ArtifactUI", Type = "System", Namespace = "C_ArtifactUI", Functions = { { Name = "AddPower", Type = "Function", Arguments = { { Name = "powerID", Type = "number", Nilable = false }, }, Returns = { { Name = "success", Type = "bool", Nilable = false }, ...
local draw = draw local math = math local string = string local GetLang = LANG.GetUnsafeLanguageTable local util = util local base = "old_ttt_element" DEFINE_BASECLASS(base) HUDELEMENT.Base = base if CLIENT then local x = 0 local y = 0 local const_defaults = { basepos = {x = 0, y = 0}, size = {w = HUDELEMEN...
local DebugLogger = require "lil.DebugLogger" local OsFacts = require "lil.OsFacts" local StringUtils = require "lil.StringUtils" local useFile = function(filePath, mode, useBlock) local file = assert(io.open(filePath, mode)) local useBlockOk, useBlockErrorOrRetVal = xpcall(function() return useBlock...
local S = mobs.intllib -- Warthog originally by KrupnoPavel, B3D model by sirrobzeroone mobs:register_mob("mobs_animal:pumba", { stepheight = 0.6, type = "animal", passive = false, attack_type = "dogfight", group_attack = true, owner_loyal = true, attack_npcs = false, reach = 2, damage = 2, hp_min = 5, h...
-- Last Change: 2022 Apr 16 if vim.g.loaded_nvim_treesitter then return end vim.g.loaded_nvim_treesitter = true -- setup modules require("nvim-treesitter").setup() local api = vim.api -- define autocommands local augroup = api.nvim_create_augroup("NvimTreesitter", {}) api.nvim_create_autocmd("Filetype", { patt...
function distortions.pinch(x, y) local slen = (x * x + y * y) slen = (slen * slen) * 0.0005 return (x / slen), (y / slen) end function distortions.lens(x, y, width) local delta = vector_distance( 0, 0, x, y ) local radius = width/2 local newLength = 0 if delta < radius then newLength = radius - mat...
require("utils/functions.lua") -- Teleport the player inside the Mobile Factory -- function teleportPlayerInside(player) -- Check Internal Surface and Player -- if global.MF.fS == nil then game.print("Factory surface lost") return end if player == nil then return end -- Save the visited Factory once variabl...
--[[ TheNexusAvenger Class for a Dodgeball round. --]] local SCORE_TO_END = 3 local INTERMISSION_TIME_SECONDS = 5 local TEAM_END_DELAY_SECONDS = 5 local TEAM_COLOR_NAME_TO_NAME = { ["Bright red"] = "Red team", ["Bright blue"] = "Blue team", } local ReplicatedStorage = game:GetService("ReplicatedStorage") ...
return {[1114112]=true,[141314]=true,[31121411]=true,[31113221]=true,[14342]=true,[312111113]=true,[14131211]=true,[3123212]=true,[2142221]=true,[3332111]=true,[4112]=true,[3131411]=true,[141332]=true,[2312213]=true,[4313111]=true,[111321113]=true,[1241114]=true,[4112411]=true,[311324]=true,[11311133]=true,[1114142]=tr...
local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local R = E:NewModule('RLBox', 'AceEvent-3.0', 'AceTimer-3.0') RLBox = R local LibGroupInspect = LibStub("LibGroupInSpecT-1.1") if not LibGroupInspect then return; end local WPCache = {} local WHISPERMSG = "EUI:".. L["G...
a = 100 b = 110 print(a+b) print("Hello World") for i=0,10000 do print(i) end
----------------------------------- -- Area: Dynamis - Buburimu -- Mob: Apocalyptic Beast -- Note: Mega Boss ----------------------------------- require("scripts/globals/dynamis") ----------------------------------- function onMobDeath(mob, player, isKiller) dynamis.megaBossOnDeath(mob, player, isKiller) end
local Config = require('config') local GPS = require('gps') local turtle = _G.turtle local Home = { } function Home.go() local config = { } Config.load('gps', config) if config.home then if turtle.enableGPS() then return turtle.pathfind(config.home) end end end function Home.set() local ...
local System = System local SystemNumerics = System.Numerics local tan = math.tan local cos = math.cos local sin = math.sin local abs = math.abs local new = function (cls, ...) local this = setmetatable({}, cls) return this, cls.__ctor__(this, ...) end local Matrix3x2 = {} Matrix3x2.__ctor__ = function(this...
local modpath = minetest.get_modpath("mob_ai") dofile(modpath.."/api.lua") dofile(modpath.."/drivers.lua") dofile(modpath.."/spawn.lua") dofile(modpath.."/pathfinder.lua") minetest.register_chatcommand("pathtest",{ description = "generate path at players feet", func = function(name,param) local player = minetest....
local _, core = ...; core.Data = {} local Data = core.Data Data.roster = {} function Data:QueryForItem(id) itemId = tonumber(id) item = Item:CreateFromItemID(itemId) item:ContinueOnItemLoad(function() print(item:GetItemLink()) --local _, itemLink = GetItemInfo(id) --print(itemLin...
local handler = call ( getResourceFromName ( "rp_mysql" ), "getDbHandler") function getUserCharacters(thePlayer, userId) local query = dbQuery(handler, "SELECT * FROM lsrp_characters WHERE char_gid = '"..tonumber(userId).."'") local result = dbPoll(query, -1) if result and result[1] then charsarray = {} local ...
--- === hs.network === --- --- This module provides functions for inquiring about and monitoring changes to the network. local USERDATA_TAG = "hs.network" local module = {} -- module.reachability = require(USERDATA_TAG..".reachability") -- module.host = require(USERDATA_TAG..".host") -- module.conf...
-- ----------------------------------------------------------------------------- -- Temp fix to sasl logging issue -- ----------------------------------------------------------------------------- function logDebug(message) -- print(message) end -- -----------------------------------------------------------------------...
//________________________________ // // NS2 Single-Player Mod // Made by JimWest, 2012 // //________________________________ // base class for spawning npcs class 'NpcQueueManager' (Entity) NpcQueueManager.kMapName = "npc_queue_manager" local kMaxQueueEntries = 30 local networkVars = { } if Server then...
local invisibleBarrier = {} invisibleBarrier.name = "MaxHelpingHand/OneWayInvisibleBarrierHorizontal" invisibleBarrier.fillColor = {0.4, 0.4, 0.4, 0.8} invisibleBarrier.borderColor = {0.0, 0.0, 0.0, 0.0} invisibleBarrier.canResize = {false, true} invisibleBarrier.placements = { { name = "left", dat...
local playsession = { {"CawaEast", {141906}}, {"HumaniTea", {143424}}, {"MrJSelig", {132928}}, {"LeeFactor", {3631}}, {"625dennis", {113905}}, {"James_Hackett", {77027}}, {"Llzzard", {61741}} } return playsession
require("arshlib.tables") require("arshlib.strings")
#!/usr/bin/lua --[[ includes ]]------------------------------------------------------------ require "luarocks.require" require "json" -- http://wiki.openwrt.org/doc/devel/uci-lua package.cpath = package.cpath .. ";/Users/antoine/afrimesh/ext/darwin/lib/lua5.1/?.so" package.cpath = package.cpath .. ";/usr/share/lua/5.1...
function DIALOG() NODE(0) GETGLOBALTRIGGER("talked_sk_aw") if result == 0 then --064 SAYSPEECH("Was wollen Sie? Ich hab nichts mehr! Das verdammte Terroristenpack hat mir alles abgenommen. Nur wertlosen Plunder und radioaktives Zeug haben sie mir gelassen. Sind das etwa die 'umfangreichen Sicherheitsm...
dofile(FullSpeedSwarm._path .. "mutators/mutatorbigparty.lua") local fs_original_mutatorsmanager_init = MutatorsManager.init function MutatorsManager:init() fs_original_mutatorsmanager_init(self) table.insert(self._mutators, MutatorBigParty:new(self)) local id = MutatorBigParty._type local data = Global.mutators...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
local _, Addon = ... -- if we don't have an extra action bar in this client, then quit local ZoneAbilityFrame = _G.ZoneAbilityFrame if not ZoneAbilityFrame then Addon.Layout.zone = Addon.Layout.noop Addon.Layout.zoneBar = Addon.Layout.noop return end ----------------------------------------------------------------...
-- ImageManager.lua -- The image manager for LoveExtension Library -- Copyright (c) 2011 Robert MacGregor local Image = { } Image.DataBase = { } function Image.loadImage(File) if (Image.getImageID(File) == nil) then local nImage = love.graphics.newImage(File) Image.DataBase[File] = nImage table.ins...
ESX = nil PlayerData = {} Citizen.CreateThread(function() while ESX == nil do Citizen.Wait(10) TriggerEvent("esx:getSharedObject", function(response) ESX = response end) end if ESX.IsPlayerLoaded() then PlayerData = ESX.GetPlayerData() RemoveVehicles() Citizen...
local cjson = require("cjson") local _M = {} _M.mysql = {} function _M.mysql.replace_meta_value(store,key,value) return store:update({ sql = "replace into meta SET `key`=?, `value`=?", params = { key, value } }) end function _M.mysql.select_meta_value(store,key) return store:query({ sql = "select `value` fr...
-------------------------------------------------------------------------------- -- 81-703 controller panel -------------------------------------------------------------------------------- -- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o. -- Contains proprietary code. See license.txt for additional...
--[[ 2020-2021 Xalalau Xubilozo. MIT License https://xalalau.com/ HACKS: For some reason these functions are EXTREMELY temperamental! I was unable to use the nested code, to pass arguments and even to freely write variables or acceptable syntax. They only work when it's this mess. Test each changed li...
-- Function values can be declared or assigned function odd(x) return x % 2 == 1 end square = function (x) return x * x end twice = function (f, x) return f(f(x)) end -- We can call anonymous functions assert((function (x) return x + 5 end)(10) == 15) -- We can pass function values to other functions assert(twice(squ...
-------------------------------- -- @module EaseRateAction -- @extend ActionEase -- @parent_module cc ---@class cc.EaseRateAction:cc.ActionEase local EaseRateAction = {} cc.EaseRateAction = EaseRateAction -------------------------------- --- brief Set the rate value for the ease rate action. --- param rate The value...
-- See LICENSE for terms -- add some shortened func names dump = ChoGGi.ComFuncs.Dump dumplua = ChoGGi.ComFuncs.DumpLua dumptable = ChoGGi.ComFuncs.DumpTable trans = ChoGGi.ComFuncs.Translate MonitorFunc = ChoGGi.ComFuncs.MonitorFunctionResults so = ChoGGi.ComFuncs.SelObject -- used for console rules, so we can get ar...
--[[ /*===========================================================================* * Arch Engine - "Testers/graphicsConfig.lua" * * * * This is a tester script. It's purpose is to test some functionalities, *...
return function (connection, req, args) dofile('httpserver-header.lc')(connection, 200, 'html') --define robot dance steps --F=move forward, B=move backward, L=turn left, R=turn right, S=stop local steps = 'FFSSFFRSRFFSFFSSBBSSBBSSBBSSBBSSFFSSFFSSFFSSFFLSLBBS' --Tango local curStepIdx = 1 --1=GPIO5, 2=GPI...
-- Show off the template row layout return function(ui) if ui:windowBegin('Template Layout', 200, 100, 300, 200, 'title', 'border', 'movable', 'scalable') then x, y, width, height = ui:windowGetContentRegion() ui:layoutRow('dynamic', 40, 1) ui:label('Scale me!'); ui:layoutTemplateBegin(heig...
--[[ Swaggy Jenkins Jenkins API clients generated from Swagger / Open API specification The version of the OpenAPI document: 1.1.2-pre.0 Contact: blah@cliffano.com Generated by: https://openapi-generator.tech ]] -- extension_class_container_impl1map class local extension_class_container_impl1map = {} local...
minetest.register_alias("lv_cable", "technic:lv_cable") minetest.register_craft({ output = 'technic:lv_cable 6', recipe = { {'default:paper', 'default:paper', 'default:paper'}, {'default:copper_ingot', 'default:copper_ingot', 'default:copper_ingot'}, {'default:paper', 'default:paper', ...
local opts = { server = {}, tools = { autoSetHints = true, hover_actions = { border = { { "\226\149\173", "FloatBorder" }, { "\226\148\128", "FloatBorder" }, { "\226\149\174", "FloatBorder" }, { "\226\148\130", "FloatBorder" }, { "\226\149\175", "FloatBorder" },...
--[[ BEGIN CONFIGURATION ]]-- SEARCH_STEP_FRAMES = 30 -- Each step forward lasts this many frames. SEARCH_FORWARD_FRAMES = 60 -- When you actually execute a move, play for this many frames. This should stay at 30 to keep -- the framerate of image capture constant. PLAY_FRAMES = 30 STEERING_BINS = 11 -- The steering i...
local CollisionUtil = {} local self = CollisionUtil local sqrt = math.sqrt local min = math.min local max = math.max local pow = math.pow local dist = function(x1,y1, x2,y2) local dx, dy = x1-x2, y1-y2 return sqrt((dx*dx)+(dy*dy)) end local clamp = function(v, a, b) return max(a, min(b, v)) end -- Point ...
client_script 'playertools_client.lua'
local gl = require("galaxyline") local gls = gl.section gl.short_line_list = {" "} -- keeping this table { } as empty will show inactive statuslines local colors = { bg = "#2e3440", fg = "#e5e9f0", green = "#A3BE8C", red = "#bf616a", lightbg = "#242831", blue = "#81a1c1", yellow = "#ebcb8b...
-- _.find.lua -- -- Iterates over elements of collection, returning the first element -- predicate returns truthy for. The predicate is bound to selfArg and -- invoked with three arguments: (value, index|key, collection). -- @usage _.print(_.find({{a = 1}, {a = 2}, {a = 3}, {a = 2}, {a = 3}}, function(v) -- retur...
--------------------------------------------------------------------------------------------------- -- Issue: https://github.com/SmartDeviceLink/sdl_core/issues/2379 --------------------------------------------------------------------------------------------------- -- Description: Check SDL is able to ignore notificati...
--[[---------------------------------------------------------------------------- Implementation of the Gallery Remote Protocol. Copyright (C) 2007-2009 Arnaud Mouronval <arnaud.mouronval@yahoo.com> Copyright (C) 2007 Moritz Post <mail@moritzpost.de> Released under the GNU GPL. -------------------------------------...
local images = nil -- don't reload the images each time -- Import all of the cards, give them attributes. function importCards(client) -- Okay, lots of stuff here. -- We're constructing a cards array with their image and value. -- We're also giving each card a "charVal", which is a one-character representation o...
--[[----------------------------------------------------------------------------------------------------------------------- Play a sound -----------------------------------------------------------------------------------------------------------------------]]-- local PLUGIN = {} PLUGIN.Title = "Play" PLUGIN.Descriptio...
return { tag = 'modules', summary = 'Provides information about the current operating system and platform.', description = [[ The `lovr.system` provides information about the current operating system, and platform, and hardware. ]] }
object_tangible_quest_must_debris_door = object_tangible_quest_shared_must_debris_door:new { } ObjectTemplates:addTemplate(object_tangible_quest_must_debris_door, "object/tangible/quest/must_debris_door.iff")
-- vim: set tabstop=2 softtabstop=2 shiftwidth=2 expandtab: use "roman/golden-ratio"
local Path = require('plenary.path') require('cmake').setup({ cmake_executable = 'cmake', -- CMake executable to run. parameters_file = 'neovim.json', -- JSON file to store information about selected target, run arguments and build type. build_dir = tostring(Path:new('{cwd}', 'build', '{os}-{build_type}')),...
local function reql_error_formatter(err) if type(err) ~= 'table' then return end if err.ReQLError then return err.message() end end local version = require('semver')(string.match(_VERSION, '%d+%.%d+')) describe('control', function() local r setup(function() assert:add_formatter(reql_error_formatter...
--====================================================================-- -- dmc_corona/dmc_netstream.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2014-2015 David McCuskey Permission is hereby...