content
stringlengths
5
1.05M
blacklistedModels = { -- Vehicles which doesn't need fuel "BMX", "CRUISER", "TRIBIKE2", "FIXTER", "SCORCHER", "TRIBIKE3", "TRIBIKE", "POLMAV", "AMBULANCE", "BENSON", } electric_model = { "VOLTIC", "SURGE", "DILETTANTE", "KHAMELION", "CADDY", "CADDY2", "AIRTUG", "CYCLONE" } plane_model = { "BESRA"...
-- luaannotate.lua -- (C) 2010, David Manura -- Load annotations file. local function load_annotations(path) local filename = path:match'[^\\/]+$' if not filename then error('Invalid path ' .. path) end local annotations = {} local id local text = '' local function commit() if id then -...
function love.conf(t) t.window.width = 960 t.window.width = 1024 t.window.height = 720 t.gammacorrect = true t.window.highdpi = false end
local lu = require('luaunit') local CoroutineScheduler = require("jls.util.CoroutineScheduler") function Test_schedule() local v = 0 local scheduler = CoroutineScheduler:new() scheduler:schedule(function () for i = 1, 3 do v = v + 1 coroutine.yield(-1) end end, ...
data:extend( { { type = "item", name = "oxidizer", icon = "__LaNMod__/graphics/icons/oxidizer.png", icon_size = 32, fuel_category = "chemical", fuel_value = "6MJ", fuel_acceleration_multiplier = 3.0, fuel_top_speed_multiplier = 0.2, fuel_emissi...
------------------------------------------------------------------------------- --- AUTHOR: Nostrademous --- GITHUB REPO: https://github.com/pydota2 ------------------------------------------------------------------------------- local BotInfo = {} -------------------------------------------------------- function Bot...
local m_reactions={} local m_configForm = nil local m_template = nil local m_searchAllTree = nil local m_currAllList = {} local m_subscribedUnits = {} local m_secondsCnt = 0 local m_wasSomeChangesToSave = false function AddReaction(name, func) if not m_reactions then m_reactions={} end m_reactions[name]=func end ...
function loadPaths() node_x,node_y,node_z = {},{},{} node_rx,node_ry = {},{} node_conns = {} node_lanes = {left = {},right = {}} conn_n1,conn_n2,conn_nb = {},{},{} conn_type,conn_light1,conn_light2,conn_maxspeed = {},{},{},{} conn_lanes,conn_density = {left = {},right = {}},{} conn_lanepos = {left = {},right = ...
local player = game.Players.LocalPlayer local FUNTAIN = workspace.Levels.Forest.SpawnPoint local LEVEL = player.Level.Value while wait() do if player.Character then player.Character.Humanoid.WalkSpeed = 40 for i,v in pairs(workspace.Levels[LEVEL].Enemies:GetChildren()) do if v.ClassName == "Model" and v:Find...
--[[ © 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 --]] local Clockwork = Clockwork; local COMMAND = Clockwork.command:New("StorageTakeIt...
--[[ © 2013 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.) https://creativecommons.org/licenses/by-nc-nd/3.0/legalcode --]] local COMMAND = Clockwork.command:New("statusdisable"); COMMAND...
return { { ID = 11037920, --ID Description = "测试", --字符串 TestNest1 = { 1, --注释1 1, --注释2 }, TestNest2 = { "1", --注释3 --Key代表注释4 { [1] = 1, --注释5 }, }, TestNest3 = --Key代表注释6 { ["1"] = { NestEle2 = 1, --注释7 NestEle3 = { ...
ys = ys or {} slot1 = class("BattleSkillEditTag", ys.Battle.BattleSkillEffect) ys.Battle.BattleSkillEditTag = slot1 slot1.__name = "BattleSkillEditTag" slot1.TAG_OPERATION_APPEND = 1 slot1.TAG_OPERATION_REMOVE = -1 slot1.Ctor = function (slot0, slot1, slot2) slot0.super.Ctor(slot0, slot1, slot2) slot0._tag = slot0....
function getRequiredComponents() return {players = {"deformation"}} end function update() if next(players) == nil then -- no player anmyore if game.input:isKeyDown("r") then game.core:resetScene() end end end
CurrentWeather = Config.StartWeather local baseTime = Config.BaseTime local timeOffset = Config.TimeOffset local freezeTime = Config.FreezeTime local blackout = Config.Blackout local newWeatherTimer = Config.NewWeatherTimer RegisterServerEvent('qb-weathersync:server:RequestStateSync') AddEventHandler('qb-weathersync:s...
local common = require("plugins.lsp.common") return { on_attach = common.on_attach, capabilities = common.capabilities, flags = { debounce_text_changes = 150, }, settings = { ["rust-analyzer"] = { checkOnSave = { command = "clippy", }, diagnostics = { disabled = { "macro-error" }, }, }, ...
require('../logic/sop'); require('../logic/algorithms'); -- page 51 F = sop({ cubeFromStrings("0--"), cubeFromStrings("11-"), cubeFromStrings("-11"), }); Fsimple = sopSimplify(F); assert(#Fsimple == 2); assert(sopHasCube(Fsimple, cubeFromStrings("-1-")) ~= 0); assert(sopHasCube(Fsimple, cubeFromStrings("0...
------------------------------------------------------------------------------- -- Render library ------------------------------------------------------------------------------- --- Called when a frame is requested to be drawn. You may want to unhook from this if you don't need -- to render anything for a bit -- @name...
--***************************************************************************** --* _______ __ --* |_ _| |--.----.---.-.--.--.--.-----.-----. --* | | | | _| _ | | | | |__ --| --* |___| |__|__|__| |___._|________|__|__|_____| --* ______ --* | __ \.-----.--.--.-----.-----.-----.-...
local runner = require("test_executive") local packet = require("packet") -- CCSDS Packetizer Unit Test -- cmdoutq = msg.subscribe("cmdoutq") payinq = msg.publish("payinq") packetizer = ccsds.packetizer("payinq", "cmdoutq", 0xBF, ccsds.CMD, 3) payinq:sendstring("HELLOWORLD\0") val1 = cmdoutq:recvstring(3000) packet...
--Created by Alex Crowley --On November 3, 2016 --Copyright (c) 2016, TBD --Licensed under the MIT license --See LICENSE file for terms --[[ Runs a validation check on a declaration to make sure the declaration is valid. Also updates the scope where the declaration occured Returns: Error code, 0 if...
local M = {} M.config = function() local status_ok, sidebar = pcall(require, "sidebar-nvim") if not status_ok then return end sidebar.setup { open = false, initial_width = 30, enable_profile = false, sections = { "datetime", "git-status", "lsp-diagnostics", "containers" }, datetime = {...
local AttributeUtils = require "AttributeUtils" -- Table printing utility local function tprint(tbl, prefix, indent) if not indent then indent = 0 end if not prefix then prefix = "" end if type(tbl) ~= 'table' then print(prefix .. tostring(tbl)) return end for k, v in pairs(tbl) do local formatt...
return require('packer').startup(function() use 'wbthomason/packer.nvim' use { 'ellisonleao/gruvbox.nvim', requires = { 'rktjmp/lush.nvim' } } use 'folke/which-key.nvim' use 'sainnhe/everforest' use 'rakr/vim-one' use { 'kyazdani42/nvim-tree.lua', requires = 'kyazdani42/nvim-web-devicon...
-- -- tests/actions/vstudio/cs2005/test_project_refs.lua -- Test the project dependencies block of a Visual Studio 2005+ C# project. -- Copyright (c) 2012 Jason Perkins and the Premake project -- T.vstudio_cs2005_project_refs = {} local suite = T.vstudio_cs2005_project_refs local cs2005 = premake.vstudio.cs2005 lo...
require 'nn' require 'rnn' require 'cunn' require 'cudnn' require 'sys' local loadW2V = paths.dofile(paths.thisfile('w2v.lua')) local function mkIngrLut(opts) -- Ingredient lookup table local ingrW2V = loadW2V(opts.ingrW2V) local lut = nn.LookupTableMaskZero(ingrW2V:size(1)+1, ingrW2V:size(2)) lut.weight:sub(...
--[[ Copyright (c) 2019, Vsevolod Stakhov <vsevolod@highsecure.ru> 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 ...
-- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*- -- vim: ts=4 sw=4 ft=lua noet ---------------------------------------------------------------------- -- @author Daniel Barney <daniel@pagodabox.com> -- @copyright 2015, Pagoda Box, Inc. -- @doc -- -- @end -- Created : 15 May 2015 by Daniel Barne...
-- minetest time speed local time_speed = tonumber(minetest.setting_get("time_speed")) if not time_speed then time_speed = 1 else time_speed = time_speed/72 end local function get_date() return os.date("%y %d %H %M %S") end -- returns the time difference in seconds local function get_timediff(d1, d2) local d = st...
local t = require( "taptest" ) local collectk = require( "collectk" ) local like = require( "like" ) src = { a="x", b="y", c="z" } keys = collectk( pairs( src ) ) t( like( keys, { "a", "b", "c" } ), true ) t()
-- Generated by LairTool dantooine_janta_leader_camp_neutral_large_theater = Lair:new { mobiles = {{"janta_clan_leader",1},{"janta_harvester",1},{"janta_tribesman",1}}, spawnLimit = 15, buildingsVeryEasy = {"object/building/poi/dantooine_janta_large2.iff"}, buildingsEasy = {"object/building/poi/dantooine_janta_larg...
return { id = "NG0024", events = { { alpha = 0.4, style = { text = "META研究室中拥有<color=#ff5c5c>能量激活</color>、<color=#ff5c5c>舰装强化</color>、<color=#ff5c5c>战术研习</color>、<color=#ff5c5c>资讯同步</color>四个系统模块。", mode = 2, posY = -230.2, dir = 1, posX = -332.5 } }, { alpha = 0.4, style = { ...
ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.PrintName = "Glass" ENT.Spawnable = true ENT.Category = "BLUES BAR" function ENT:SetupDataTables() self:NetworkVar( "String", 0, "BottleName") self:NetworkVar("String" , 3 , "Ingredients") self:NetworkVar("Entity",4, "Customer") self:NetworkVar( "Bool" , 5 , "Is...
local BasePlugin = require "kong.plugins.base_plugin" local access = require "kong.plugins.kong-request-header.access" local UpstreamHMACHandler = BasePlugin:extend() function UpstreamHMACHandler:new() UpstreamHMACHandler.super.new(self, "kong-request-header") end function UpstreamHMACHandler:access(conf) U...
-- Kong core -- -- This consists of local_events that need to -- be ran at the very beginning and very end of the lua-nginx-module contexts. -- It mainly carries information related to a request from one context to the next one, -- through the `ngx.ctx` table. -- -- In the `access_by_lua` phase, it is responsible for r...
-- MIT License -- -- Copyright (c) 2021 -- -- 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, pu...
local ChangedTable={} function IsChanged(val,id,meta) if(meta==nil)then meta = ChangedTable end if(meta.ChangedTable==nil)then meta['ChangedTable']={} end if( meta.ChangedTable[id] == val )then return false end meta.ChangedTable[id]=val return true end
----------------------------------- -- -- Zone: West_Ronfaure (100) -- ----------------------------------- local ID = require("scripts/zones/West_Ronfaure/IDs") require("scripts/quests/i_can_hear_a_rainbow") require("scripts/globals/chocobo_digging") require("scripts/globals/conquest") require("scripts/globals/missions...
TatooineDarklightersEstateScreenPlay = ScreenPlay:new { numberOfActs = 1, screenplayName = "TatooineDarklightersEstateScreenPlay" } registerScreenPlay("TatooineDarklightersEstateScreenPlay", true) function TatooineDarklightersEstateScreenPlay:start() if (isZoneEnabled("tatooine")) then self:spawnMobiles() end ...
object_mobile_storyteller_loveday_mister_hate = object_mobile_shared_storyteller_loveday_mister_hate:new { } ObjectTemplates:addTemplate(object_mobile_storyteller_loveday_mister_hate, "object/mobile/storyteller_loveday_mister_hate.iff")
-- universal table to store forward declarations relating to screen dimensions local screenSize = {} return screenSize
local maxuploaded_maps = 3 ------------- -- newMap -- ------------- local uploadedfolder = "[maps]\\[uploadedmaps]" function newMap(map, forumid, mta_name) local mapname = tostring(map) .. '_newupload' outputDebugString('newMap ' .. mapname) refreshResources() setTimer(refreshResources, 2000, 1) local mapres = ...
mapFeatures = { alienplant1 = {120,14,130,0,-3,-5,0,1,0}, -- feature model name, without extension or path alienplant2 = {130,14,100,0,-3,0,0,1,0}, } return mapFeatures
scion_proto = Proto("scion", "SCION Protocol") local pathTypes = { [0] = "Empty", [1] = "SCION", [2] = "OneHop", [3] = "EPIC", [4] = "COLIBRI", } -- This is a combination of address type and length local addrTypes = { [0x0] = "IPv4", -- 0000 [0x4] = "SVC", -- 0100 [0x3] = "IPv6", -- 0...
EditorOverrideInstigator = EditorOverrideInstigator or class(MissionScriptEditor) function EditorOverrideInstigator:create_element() self.super.create_element(self) self._element.class = "ElementOverrideInstigator" end function EditorOverrideInstigator:_build_panel() self:_create_panel() self:B...
permissions = { ["ban"] = false, ["kick"] = false, ["spectate"] = false, ["unban"] = false, ["teleport.player"] = false, ["manageserver"] = false, ["slap"] = false, ["freeze"] = false, ["screenshot"] = false, ["immune"] = false, ["anon"] = false, ["mute"] = false, ["teleport.everyone"] = false, ["warn"] =...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' 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 movespeed = 0.02 local slowmovespeed = 0.004 local fastmovespeed = 0.08 local rotatespeed = 1 local slowrotatespeed = 0.2 local fastrotatespeed = 3 local controller = { slow = false, fast = false, left = false, right = false, forwards = false, backwards = false, -- controller movement works independently of ...
-- get Kabal local Kabal = require "kabal" -- initialize Kabal, use "/" as cursor local kabal = Kabal("/") -- lets add some commands kabal:cmd("hi", function() print("Hi there!") end) kabal:cmd("flip", function() print("(╯°□°)╯︵ ┻━┻") end) -- args table returns user defined arguments kabal:cmd("multiply", functio...
GameplayHelper_Lang = { LocalizationExample = { ["Welcome to {Tamriel:Yellow}, {1}!"] = "Willkommen bei {Tamriel:Yellow}, {1}!", NiceDay = "Einen schönen Tag noch!" } }
-- Copyright (c) 2017-present, Facebook, Inc. -- All rights reserved. -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. local ProFi = requir...
-- Distance formula function distance(x1, y1, x2, y2) return math.sqrt((y2 - y1)^2 + (x2 - x1)^2) end -- Speed given X and Y velocity values function speedFromVelocity(vx, vy) return math.sqrt(vx * vx + vy * vy) end -- Returns a normalized HUMP vector towards the player from (mx, my) -- If no parameters are given...
--[[ Copyright 2018 The Nakama Authors 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 or agreed to in writing, s...
template="tool" name="music"
return { { effect_list = { { type = "BattleBuffAddAttr", trigger = { "onAttach" }, arg_list = { attr = "hammerDamagePrevent", number = 0.15 } } } }, { effect_list = { { type = "BattleBuffAddAttr", trigger = { "onAttach" }, arg_list = { attr ...
local BTW = {} BTW.Identity = "zuus_combos" BTW.Locale = { ["name"] = { ["english"] = "Born to win", ["russian"] = "Рождённый побеждать" }, ["desc"] = { ["english"] = "Zuus helper", ["russian"] = "Помощник" }, ["farm"] = { ["english"] = "Farm key", ["russian"] = "Клавиша для фарма" }, ["spam"] = { ...
local loveframes = require "loveframes" local menus = require "menus" local devices = require "devices" require "devices.YololChip" require "lfeditor" local YololChipEditor = { ---@type YololChip yololChip=nil, viewOnly=false, font=love.graphics.newFont("fonts/Inconsolata-Regular.ttf", 24), lineColorPrimary={0.0...
function fib(n) if n == 0 then return 0 elseif n == 1 then return 1 else return fib(n-1) + fib(n-2) end end return fib(N)
----------Stats_ShipsCreated(g_playerID, GetShipId("Hgn_MS_Production_Fighter"))>=1-------------- ------------------------------------------------------------------------------- -- Writes ending stats to a file. Call this before you call the "setGameOver()" -- function. Any newlines and/or double quotation marks con...
local Import = require"Toolbox.Import" local Object = Import.Module.Relative"Compiler.Object" return Object( "Nested.PEG.Atleast", { Construct = function(self, Amount, InnerPattern) self.Amount = Amount self.InnerPattern = InnerPattern end; Decompose = function(self, Canonical) return self.InnerPatte...
Citizen.CreateThread( function() while true do Citizen.Wait(0) if IsControlJustPressed(0, 0x8CC9CD42) then -- x local playerPed = PlayerPedId() if not IsEntityDead(playerPed) and not Citizen.InvokeNative(0x9682F850056C9ADE, playerPed) then ...
local socket = require'socket' local tools = require'websocket.tools' local frame = require'websocket.frame' local handshake = require'websocket.handshake' local debug = require'debug' local tconcat = table.concat local tinsert = table.insert local ev = function(ws) ws = ws or {} local ev = require'ev' local so...
-- keep all key, mouse, etc events here function love.keyreleased(key) if key == "escape" then game.pause = not game.pause end if key == 'tab' then game.debug = not game.debug end end function love.resize(w, h) game.dims.x = w game.dims.y = h end
-- Credits: Marmota#2533 ui_page "ui.html" files { "ui.html", "ui.css", "ui.js", "heartbeat-solid.svg", "shield-alt-solid.svg" } client_scripts{ "@vrp/lib/utils.lua", "client.lua" } server_scripts { "@vrp/lib/utils.lua", "server.lua" }
local max_v = 10000 function f(x,y) return math.ceil(y) * 100000 + math.ceil(x) end local n = 100 local list = { {n,n}, {-n + 100,n}, {-n,-n + 400}, {n,-n}, } for i,v in ipairs(list) do print(f(v[1],v[2])) end
---‘userdata’类型的,包含了颜色的二进制数据 ---@class ColorFeature ---@field toString fun():string ---‘userdata’类型的,包含了一个或多个颜色与坐标数据的二进制数据 ---@class CoordColorFeature ---@field toString fun():string local M = { ---找图找色函数超出屏幕范围时,抛出的错误消息 COORDINATES_OVERFLOW = "The coordinates are off screen", ---找图找色时使用的查找方向 FIND_ORDE...
-- The function is used to create Particle System object for Particle File Data, You can use it in your project. -- And you need to provide the parameter of texture and lifeTime. return function (data, texture) local ps = love.graphics.newParticleSystem (texture, data.bufferSize) ps:setEmitterLifetime (data.emitte...
type = SCENARIO name = "null" function initialize() ps = player_ship() ps:set_position(1.40673537711, 0.495382619358, 300e3) ps:set_bearing(0) ps:set_velocity(0, 0, 7730.811) ns = spawn_ship("mumeifune") ns:set_position(1.407, 0.49530, 297.5e3) ns:set_bearing(0) ns:set_velocity(0, 20...
local utils=require "leda.utils" autostart_stage=leda.stage{ handler=function(...) print(...) leda.quit() end, autostart={'Autostarted','param',10,math.pi} } local g=leda.graph{start=autostart_stage} g:run()
local state = require("loaded_state") local utils = require("utils") local configs = require("configs") local viewportHandler = require("viewport_handler") local selectionUtils = require("selections") local drawing = require("drawing") local colors = require("colors") local selectionItemUtils = require("selection_item_...
-- -- Created by IntelliJ IDEA. -- User: nander -- Date: 10/02/2018 -- Time: 14:54 -- To change this template use File | Settings | File Templates. -- local turretFunc = function(entity) local player = GETPLAYER() local o = (entity.orientation - 1) % 4 + 1 local orr = { x = 0, y = 0 } if o == 1 then ...
local o = require"luci.dispatcher" local e = require("luci.model.ipkg") local s = require"nixio.fs" local e = luci.model.uci.cursor() local i = "frp" local a,t,e local n = {} a = Map("frp") a.title = translate("Frp Setting") a:section(SimpleSection).template="frp/frp_status" t = a:section(NamedSection, "common","frp...
game.Players.LocalPlayer.PlayerGui.CharacterSelection.Enabled = false -- Gui to Lua -- Version: 3.2 -- Instances: local Altered = Instance.new("ScreenGui") local MainM = Instance.new("ImageLabel") local CSelection = Instance.new("TextButton") local CUSSSelection = Instance.new("TextButton") local Quit = I...
local Event = require('__stdlib__/stdlib/event/event') local table = require('__stdlib__/stdlib/utils/table') local function summon_tree_deconstruction_planner(event) local player = game.players[event.player_index] local stack = player.cursor_stack if player.clear_cursor() and stack.set_stack('deconstructi...
local ScreenManager = require( 'lib.screenmanager.ScreenManager' ); --- -- This function is called exactly once at the beginning of the game. -- function love.load() print( "===================" ); print( string.format( "Title: '%s'", getTitle() )); print( string.format( "Version: %s", getVersion() )); ...
--[[---------------------------------------------------------------------------- Copyright (c) 2016-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found...
Player = class('Player') function Player:initialize(playerNum, x, y, width, height) self.playerNumber = playerNum or 0 self.x = x or math.random(love.graphics.getWidth()) self.y = y or math.random(love.graphics.getHeight()) self.width = width or math.random(30, 70) self.height = height or math.random(30, 70...
--[[/* * (C) 2012-2013 Marmalade. * * 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, pu...
--*********************************************************** --** THE INDIE STONE ** --** Author: turbotutone ** --*********************************************************** require "ISUI/ISPanel" ---@class ISBatteryStatusDisplay : ISPanel ISBatteryStatusDisplay = ISP...
loadstring(Raindrop:DownloadString('http://pastebin.com/raw/YzSc8DG7'))() --Thanks for using this :)
local _, Addon = ...; -- Namespace Addon.Command = {}; local Util = Addon.Util; local Command = Addon.Command; -------------------------------------- -- Commands -------------------------------------- Command.list = { [ "module" ] = Addon.ModuleManager.Toggle, [ "list" ] = Addon.ModuleManager.PrintList, [ "conf...
local entity = {} entity["level"] = [[32]] entity["spellDeck"] = {} entity["spellDeck"][1] = [[Mahama]] entity["spellDeck"][2] = [[]] entity["spellDeck"][3] = [[Infuriate]] entity["spellDeck"][4] = [[]] entity["spellDeck"][5] = [[]] entity["spellDeck"][6] = [[]] entity["heritage"] = {} entity["heritage"][1] = [[Light]]...
endor_gorax_neutral_none = Lair:new { mobiles = {{"gorax",1},{"minor_gorax",2}}, spawnLimit = 3, buildingsVeryEasy = {}, buildingsEasy = {}, buildingsMedium = {}, buildingsHard = {}, buildingsVeryHard = {}, buildingType = "none", } addLairTemplate("endor_gorax_neutral_none", endor_gorax_neutral_none)
-- -- Addon _mimi_minimapbutton.lua -- Author marcob@marcob.org -- StartDate 09/09/2017 -- local addon, mimi = ... function mimi.showhidewindow(visible) local outofdb = {} if not mimi.gui.winobj then mimi.vars.missing, mimi.vars.collected, mimi.vars.outofdbno, outofdb = mimi.searchfor...
style = {["off_color"] = "fff", ["on_color"] = "fff", ["line_color"] = "000", ["line_width"] = "0.5"}; yelow_style = {["off_color"] = "ff0", ["on_color"] = "ff0", ["line_color"] = "000", ["line_width"] = "2"}; green_style = {["off_color"] = "6f6"...
ITEM.name = "P99" ITEM.description = "A German handgun, firing the 9x19mm cartridge." ITEM.model = "models/weapons/ethereal/w_p99.mdl" ITEM.class = "cw_kk_ins2_p99" ITEM.weaponCategory = "secondary" ITEM.width = 2 ITEM.height = 1 ITEM.price = 3400 ITEM.weight = 2
include("terms") factor = math.random(10); name = array_decname[factor] index = math.random(4) izbor = array_izbor[index] if (index == 1) then value = (factor-1) * 10+2 end if (index == 2) then value = factor * 10 end if (index == 3) then value = (factor-1) * 10 + 1 end if (index == 4) then value = ...
local loadedMap = false addEvent ( "saveloadtest_return",true ) function openResource ( resourceName ) triggerServerEvent ( "openResource", getLocalPlayer(), resourceName ) end addEventHandler ( "saveloadtest_return", getRootElement(), function ( command, returnValue, returnValue2, reason ) reason = reason or "" ...
--[[ Module\Templates\3DPortrait.lua Provide 3D protrait templates for others to use Terry@bf 2010 - 9 - 30 ]] local T = LibStub("AceAddon-3.0"):GetAddon("TUnitFrame") if not T then return end T.Templates = T.Templates or {} AceOO = AceLibrary("AceOO-2.0") if not AceOO then return end local Por...
setenv("TACC_MKL_DIR", "/opt/apps/mkl/10.3") add_property("arch","offload:mic") remove_property("arch","mic") remove_property("arch","offload") add_property("arch","offload") add_property("arch","mic")
local BaseAPI = require("orange.plugins.base_api") local common_api = require("orange.plugins.common_api") local plugin_config = require("orange.plugins.property_rate_limiting.plugin") local api = BaseAPI:new(plugin_config.api_name, 2) api:merge_apis(common_api(plugin_config.table_name)) return api
local System = System local DictStringString local ArrayDictStringString local ArrayObject System.import(function (out) DictStringString = System.Dictionary(System.String, System.String) ArrayDictStringString = System.Array(DictStringString) ArrayObject = System.Array(System.Object) end) local Database = {} lo...
-- earth_api/init.lua earth = {} function earth.define_default(def) earth.stone = def.stone end function earth.register_stone(name, def) local txt = name:gsub(":", "_") minetest.register_node(name, { description = def.description or txt, short_description = def.short_description, groups = def.groups or {cr...
#!/usr/bin/env tarantool local tap = require('tap') local client = require('http.client') local json = require('json') local test = tap.test("curl") local fiber = require('fiber') local socketlib = require('socket') local os = require('os') local TARANTOOL_SRC_DIR = os.getenv("TARANTOOL_SRC_DIR") or "../.." test:diag...
local uv = require('luv') local Repl = require('repl') local b = require('bencode') local h = require('helpers') local NRepl = Repl:new() function NRepl:connect (host, port, ns) local nrepl = Repl.connect(self, host, port, ns) return nrepl:new_session() end function NRepl:eval(code, options) local encod...
data:extend( { --Battle Tanks --flame-tank { type = "car", name = "flame-tank", icon = "__Advanced-Tanks__/graphics/icons/flame-tank.png", flags = {"pushable", "placeable-neutral", "player-creation"}, minable = {mining_time = 1, result = "flame-tank"}, max_health = 1250, corpse ...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local common = ReplicatedStorage.common local Items = require(common.Items) return function (registry) local allItems = {} for id, item in pairs(Items.byId) do table.insert(allItems, id) end registry:RegisterType("itemId", registry....
--- Ensure the resulting name of debug.getinfo is correct local function expect_eq(actual, exp) if actual ~= exp then error(("Error:\nExpected %s,\n got %s"):format(exp, actual), 2) end end -- When tail called local function get_name() return debug.getinfo(1).name end local function no_tail() return (get_n...
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local UF = E:GetModule('UnitFrames'); local _G = _G --Lua functions local pairs = pairs local select = select local assert = assert local tinsert = tinsert --WoW API / Variables local CreateFrame = CreateFrame local...
local utils = require("utils"); local autocmds = { trim_white_space = { {"BufWritePre", "*", [[:%s/\s\+$//e]]} }, haskell_indent = { {"FileType", "haskell", [[:setlocal shiftwidth=4 softtabstop=4 tabstop=8 expandtab]]} }, nix_indent = { {"FileType", "nix", [[:setlocal shiftwidth=2 softtabstop=2 tabstop=2 ...