content
stringlengths
5
1.05M
local deepcopy = require("deepcopy").deepcopy local List = { first = 1, last = 0, list = {} } function List.new () return deepcopy(List) end function List:get (index) return self.list[index] end function List:set (index, value) if not ( self.last >= index and index >= self.first ) then error("Index out...
require 'busted.runner'() local assert = require 'spec.tools.assert' local configer = require 'nelua.configer' local config = configer.get() local version = require 'nelua.version' describe("Nelua runner should", function() it("version numbers" , function() version.detect_git_info() assert.same(#version.NELUA_GI...
local skynet = require("skynet") local function print_t(s) local str = "{" for k, v in pairs(t) do if type(v) == "table" then v = print_v(v) end str = str .. k .. "=" .. v .. "," end str = str .. "}" return str end skynet.start(function() skynet.error("Serv...
-- -- Copyright (c) 2016-2017 Nicholas Corgan (n.corgan@gmail.com) -- -- Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt -- or copy at http://opensource.org/licenses/MIT) -- local pkmn = require("pkmn") local luaunit = require("luaunit") local items_tests = {} items_tests.item_list = {} --...
return { -- Whether or not to enable Git index clean/dirty display index_enabled = false, -- Whether or not to enable showing the date and/or time at the right side of the terminal -- screen on the prompt date_time_enabled = true, -- Date/time format, see http://man7.org/linux/man-pages/man3/str...
--[[ # LuaJIT Vector library This file implements some vector utillity functions, and multiple conventions for using vector operations in Lua(mostly graphics/game programming). It has been designed for best performance with LuaJIT and it's FFI library in mind. Currently, only 2 or 3 component vectors are supported. ...
AAPClassic.QL = {} if (tonumber(string.sub(AAPClassic.Build, 1, 1)) > 2) then --return end function AAPClassic.MakeQuestList() AAPClassic.GroupQuestFrame = {} AAPClassic.GroupQuestFrame = CreateFrame("frame", "AAP_SugQuestFrameFrame", UIParent, BackdropTemplateMixin and "BackdropTemplate") ...
require'ffi'.cdef[[ unsigned XXH_versionNumber(void); typedef union { uint64_t u64[2]; uint32_t u32[4]; uint8_t u8[16]; } XXH128_hash_t; uint32_t XXH32 (const void* input, size_t length, uint32_t seed); uint64_t XXH64 (const void* input, size_t length, uint64_t seed); XXH128_hash_t XXH128(const void* inp...
local luvitTime = require"timer" local time = {} function time.setTimeout(timeout, callback) local timer = luvitTime.setTimeout(timeout, callback) return function() luvitTime.clearTimer(timer) end end function time.setInterval(timeout, callback) local timer = luvitTime.setInterval(timeout, callback) re...
-- Copyright 2006-2021 Mitchell. See LICENSE. -- jq 1.6 Lua lexer -- https://stedolan.github.io/jq/wiki -- Anonymously contributed. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, S = lpeg.P, lpeg.S local lex = lexer.new('jq') -- Whitespace. lex:add_rule('whitespace', ...
local time = {} local skynet_loaded, skynet = pcall(require, 'skynet') --- Default time now time.now = function() if skynet_loaded then return math.floor(skynet.time() * 1000) end return os.time() + math.random(1000) end return time
-- Homebrew menubar local Homebrew = { menubar = hs.menubar.new(), items = {}, disabled = false, notified = false, } function Homebrew:showMenu() self.menubar:returnToMenuBar() self.menubar:setIcon('./assets/cask.pdf') self.menubar:setTooltip(string.format("%d updated formula%s availabl...
--[[ Project: SA-MP API Author: LUCHARE All structures are taken from mod_s0beit_sa. Copyright: BlastHack mod_sa is available from https://github.com/BlastHackNet/mod_s0beit_sa/ ]] local sys = require 'SA-MP API.kernel' sys.ffi.cdef[[ struct stTextdraw { char szText[800 + 1]; char szString[1600 + 2];...
MINOMODELS = { { name = "Corpse", model = "models/player/corpse1.mdl", cost = 0 }, { name = "Zombie", model = "models/player/zombie_classic.mdl", cost = 1000 }, { name = "Fast Zombie", model = "models/player/zombie_fast.mdl", cost = 5000 }, { name = "Skeleton", model = "models/...
dofile("codeblocks/_codeblocks.lua") dofile("codeblocks/codeblocks.lua") ACTION.Manual = true
data:extend({ { type = "double-setting", name = "heli-gun-damage-modifier", setting_type = "startup", default_value = 1, minimum_value = 0, }, { type = "string-setting", name = "heli-consumption", setting_type = "startup", default_value...
local object = require 'object' local timer = require 'timer' local color = require 'color' local graphics = require 'graphics' local input = require 'input' local debugscreen = object { active = __TESTING, fps = 0, mem = 0, _init = function(self) self.update_clock = timer:create_interval(1, self:bind(s...
local System = System local io = io local stdin = io.stdin local stdout = io.stdout local read = stdin.read local write = stdout.write local select = select local string = string local byte = string.byte local char = string.char local Console = {} function Console.Read() local ch = read(stdin, 1) return byte...
--[[ Title: Sessions Data Filter Author(s): big CreateDate: 2021.06.09 ModifyDate: 2021.11.04 Desc: use the lib: ------------------------------------------------------------ local SessionsDataFilter = NPL.load('(gl)Mod/WorldShare/filters/database/SessionsDataFilter.lua') SessionsDataFilter:Init() ---------------------...
-- an implementation of printf function sprintf(...) return string.format(...) end function printf (...) print(sprintf(...)) end x = sprintf("Hello %s from %s on %s", "there", "Lua Tests", "XYZ") assert (x == "Hello there from Lua Tests on XYZ") print(x)
--[[ BonaLuna bignumber library Copyright (C) 2010-2015 Christophe Delord http://cdsoft.fr/bl/bonaluna.html BonaLuna is based on Lua 5.3 Copyright (C) 1994-2015 Lua.org, PUC-Rio Freely available under the terms of the Lua license. --]] -- Inspired by BigNum (http://oss.digirati.com.br/luabignum/) bn = {} do -- ...
BigWigs:AddColors("Falric", { [72422] = {"blue","orange"}, [72426] = {"blue","red"}, }) BigWigs:AddColors("Marwyn", { [72363] = "red", [72368] = {"blue","yellow"}, [72383] = {"blue","orange"}, })
------------------------------------------------------------------------------ -- Require -- ------------------------------------------------------------------------------ require ("orm.class.global") require ("orm.tools.func") ----------------------...
local ExampleController = {} -- that's gonna be a problem in tests :/ local service = require "ServiceOutsideThisProject" function ExampleController.calculate(number1, number2) return service.multiply(number1, number2) end return ExampleController
object_tangible_loot_npc_loot_spice_giggledust_generic = object_tangible_loot_npc_loot_shared_spice_giggledust_generic:new { } ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_spice_giggledust_generic, "object/tangible/loot/npc/loot/spice_giggledust_generic.iff")
if onServer() then package.path = package.path .. ";data/scripts/lib/?.lua" include ("common") professions = include ("professions") ranks = include ("ranks") function initialize(help, action, ...) local flag, msg = false, "" player = Player() if action then local args = {...} local rest_command = ""...
-- Lightweight module implementing a routine to split a string. -- -- sample usage: -- local stringsplit = require 'stringsplit' -- stringsplit on path -- split = stringsplit.split -- local s = split('t', 'earth') -- assert (type(s) == 'table' and #s == 2) -- assert (s[1] == 'ear' and s[2] == 'h') -- -- Author: J. 'Kw...
dire_zombie_attack_meele = class({}) function dire_zombie_attack_meele:GetCastAnimationCustom() return ACT_DOTA_ATTACK end function dire_zombie_attack_meele:GetPlaybackRateOverride() return 1.0 end function dire_zombie_attack_meele:GetCastPointSpeed() return 0 end function dire_zombie_attack_meele:GetCastPoint() if ...
local function L(s, ...) return string.format(SH_SZ.Language[s] or s, ...) end function SH_SZ:GetStepText(step, numstep) local t = step.type if (t == "place") then return L("place_point_x", numstep) elseif (t == "confirm") then return L"finalize_placement" end end function SH_SZ:MakePoint(parent, pos, mx, my...
local Menu = Game:addState('Menu') function Menu:enteredState() end function Menu:update(dt) --Put the actual Menu Logic Here end function Menu:draw() -- Draw the Menu PARTS here. Separate from Logic. end function Menu:keypressed(key, code) end
id = 'V-38681' severity = 'low' weight = 10.0 title = 'All GIDs referenced in /etc/passwd must be defined in /etc/group' description = 'Inconsistency in GIDs between /etc/passwd and /etc/group could lead to a user having unintended rights.' fixtext = 'Add a group to the system for each GID referenced without a correspo...
-- hammerspoon config --#region requires -- these are nice to have loaded when generating docs. idk if there's an overhead cost require("hs.ipc") require("hs.doc") --#endregion requires --#region loggers local configLog = hs.logger.new("config", "info") --#endregion loggers --#region Spoons hs.loadSpoon("Zoom") hs...
local matchesNeeded = 50 local bombs = {"lr", "ud", "14", "23"} return { number = 9, name = "Diagonals Disabled", message = "Diagonal matches are diabled for this level. Make sure you destroy " .. matchesNeeded .. " to proceed.", timer = true, countDownSpeed = 12, -- only used if timer is true. Controls the...
-- lua test by ysoftman -- argument test -- 커맨드라인의 인자를 전역 arg 테이블로 제공한다. -- lua -v argument.lua a b 10 -- arg 주소값 print(arg) -- (.lua 뒤부터)인자 개수 print(#arg) print(arg[0]) -- argument.lua print(arg[1]) -- a print(arg[2]) -- b print(arg[3]) -- 10 print(arg[4]) -- nil print(arg[-1]) -- -v print(arg[-2]) -- ...
--初始化日志模块 Debug.LogInit("../logs/logic","logic",true); --读取配置文件 local sType = require("ServiceType"); local config = require("GameConfig"); --初始化协议 ProtoManager.Init(config.protoType,"C:\\Users\\Administrator\\Documents\\GitHub\\distributed-architecture-of-moba-game-server\\ServerApp\\scripts\\logic\\const"); --如果是P...
sacred_tome_smc_aujante = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/mission/quest_item/aujante_klee_q2_needed.iff", craftingValues = {}, customizationStringNames = {}, customizationValues = {} } addLootItemTemplate("sacred_tome_smc_aujante", sacred_tom...
require "helm" -- Variables -{{{ local api = vim.api local fn = vim.fn -- }}} -- Set the filetype -{{{ function helm_filetype() helm_start({ prompt = 'Filetype:', on_enter = function(f) vim.cmd('set filetype=' .. f) end, items = fn.getcompletion('', 'filetype'), }) end -- }}} -- Run commands...
local ECSSystemMgr = BaseClass() function ECSSystemMgr:Init( world, sceneMgr ) self.ecs_system_mgr_list = {} local arge = { sceneMgr=sceneMgr } local systems = { "UMO.DamageSystem", "UMO.AISystem", "UMO.MovementUpdateSystem", } for i,v in ipairs(systems) do local system = world:CreateManager(v, arge)...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by shuieryin. --- DateTime: 12/01/2018 10:43 PM --- function cofiCostFunc(params, Y, R, num_users, num_movies, num_features, lambda) --COFICOSTFUNC Collaborative filtering cost function -- [J, grad] = COFICOSTFUNC(params, Y, R, num_users, n...
-- language specific higlights local lush = require("lush") local base = require("lush_jsx.base") local M = {} M = lush(function() return { luaIn {base.LushJSXRed}, luaFunction {base.LushJSXAqua}, luaTable {base.LushJSXOrange}, } end) return M
local vim = vim local results = {} local handle = nil local function onread(err, data) if err then print('ERROR: ', err) end if data then local vals = vim.split(data, "\n") for _, d in pairs(vals) do if d ~= "" then table.insert(results, d) end end end ...
local cvarName = "hostname" local logger = GPM.Logger( "Hostname" ) if (SERVER) then timer.Remove( "HostnameThink" ) local hook_Run = hook.Run do local cvars_String = cvars.String local GetHostName = GetHostName function game.HostName() return cvars_String( cvarName...
--[[ Made by Jesus. o/ --]] local ITEM = Clockwork.item:New(); ITEM.name = "Turret"; ITEM.cost = 30000; ITEM.batch = 1; ITEM.model = "models/Combine_turrets/Floor_turret.mdl"; ITEM.weight = 6.5; ITEM.access = "VI"; ITEM.useText = "Deploy"; ITEM.color = Color(0, 25, 255, 255); ITEM.classes = {CLASS_EMP, CLASS_EOW}; ITE...
mobs:register_mob("livingnether:whip", { type = "monster", passive = false, attack_type = "dogfight", attack_animals = false, damage = 15, reach = 4, damage = 25, hp_min = 45, hp_max = 60, armor = 100, collisionbox = {-0.4, -0.01, -0.4, 0.4, 2, 0.4}, visual = "mesh", mesh = "Whip.b3d", visua...
MINIGAME.Time = 120 --------------------------------------------------------- -- --------------------------------------------------------- function MINIGAME:Start() print(self.Name .. " has started.") self.BaseClass.Start(self) end --------------------------------------------------------- -- --------------------...
local Button = require("window_button") local MessageBox = {} local __metatable = {} local _MESSGB_SIZE = { WIDTH = 770, HEIGHT = 292 } MessageBox.States = { SINGLE = "single", DOUBLE = "double" } MessageBox.Button = 1 MessageBox.Inited = false MessageBox.Textures = {} MessageBox.Textu...
ITEM.name = "Scrap Cloth" ITEM.model = Model("models/props_debris/concrete_chunk04a.mdl") ITEM.description = "A set of scrap cloth." ITEM.width = 1 ITEM.height = 1 ITEM.price = 5 ITEM.category = "Crafting" ITEM.rarity = "Common" ITEM.noBusiness = true ITEM.maxStack = 15; ITEM.defaultStack = 1;
local enumUtils = LazarusMod:GetModule('enumutilities') enumUtils:AppendToEnum(kMinimapBlipType, "TunnelExit")
local Registry = {} local self = Registry function Registry.initialize(preload) if not self.preload then self.base_scripts = {} for _,path in ipairs(Utils.getFilesRecursive("data/common", ".lua")) do local chunk = love.filesystem.load("data/common/"..path..".lua") self.base_...
local f = string.format local function useAnsi() return (LivelyEpsilonConfig or {}).useAnsi or false end local function showDeprecations() return (LivelyEpsilonConfig or {}).logDeprecation or true end local function logLevel() local logLvl = (LivelyEpsilonConfig or {}).logLevel if isString(logLvl) th...
local RunState = class('RunState', PlayerActState) function RunState:OnEnter() PlayerActState.OnEnter(self) --localPlayer.Avatar:PlayAnimation("RunFront", 2, 1, 0.1, true, true, 1) localPlayer.Avatar:PlayAnimation('RunFront', 2, 1, 0.1, true, true, localPlayer.WalkSpeed / 6) if Data.Player.curEquipment...
slot0 = require("protobuf") slot1 = require("common_pb") module("p13_pb") SC_13001 = slot0.Descriptor() SC_13002 = slot0.Descriptor() CS_13003 = slot0.Descriptor() SC_13004 = slot0.Descriptor() CS_13005 = slot0.Descriptor() SC_13006 = slot0.Descriptor() CS_13007 = slot0.Descriptor() SC_13008 = slot0.Descriptor() CS_1...
sneeker = {} sneeker.modname = core.get_current_modname() sneeker.modpath = core.get_modpath(sneeker.modname) local debugging = core.settings:get_bool("enable_debug_mods", false) sneeker.log = function(lvl, msg) if lvl == "debug" and not debugging then return end if msg == nil then msg = lvl lvl = nil end m...
-- 原作:Already Known? -- 原作者:ahak (https://wow.curseforge.com/projects/alreadyknown) -- 修改:houshuu ------------------- -- 主要修改条目: -- 模块化 -- 增加颜色设定 local E, L, V, P, G = unpack(ElvUI); local AK = E:NewModule('Wind_AlreadyKnown'); local _G = _G local r, g, b local knownTable = {} -- Save known items for later use local ...
require("mod.weird_thing.data.init")
BLT.Items.Menu = BLT.Items.Menu or class(BLT.Items.Item) local Menu = BLT.Items.Menu Menu.type_name = "Menu" function Menu:Init(params) self:WorkParams(params) self.menu_type = true self.panel = self.parent_panel:panel({ name = self.name .. "_panel", w = self.w, h = self.h, v...
local E, C, L = select(2, ...):unpack() local module = C.aura local TIER = 7 -- Legion local INSTANCE = 822 -- Broken Isles module:RegisterDebuff(TIER, INSTANCE, 1790, 219045) module:RegisterDebuff(TIER, INSTANCE, 1774, 217877) module:RegisterDebuff(TIER, INSTANCE, 1789, 219812) module:RegisterDebuff(TIER, INSTANCE, ...
------------------------------------------------------------------------------ -- Dial class ------------------------------------------------------------------------------ local ctrl = { nick = "dial", parent = iup.WIDGET, creation = "S", subdir = "elem", callback = { -- mousemove_cb = "d", -- alre...
SILE.frames = {} -- Buggy, relies on side effects -- luacheck: ignore solver frame -- See https://github.com/sile-typesetter/sile/issues/694 local cassowary = require("cassowary") local solver = cassowary.SimplexSolver() local solverNeedsReloading = true local widthdims = pl.Set { "left", "right", "width" } local he...
pie = game:GetService("Workspace").Scripts.AccessStats plr = game.Players.LocalPlayer.Name stats = plr.."Stats" for _,v in next, pie:GetChildren() do if v.Name == stats then v.EXP.Value = 999999 end end
-- New Mode local compat = require("compat") local function W() return of.getWidth() end local function W2() return of.getWidth() / 2 end local function H() return of.getHeight() end local function H2() return of.getHeight() / 2 end local function C() return glm.vec3(W2(), H2(), 0) end local config = {...
local entityEnumerator = { __gc = function(enum) if enum.destructor and enum.handle then enum.destructor(enum.handle) end enum.destructor = nil enum.handle = nil end } local function EnumerateEntities(initFunc, moveFunc, disposeFunc) return coroutine.w...
--- Turbo.lua HTTP Utilities module -- Contains the HTTPHeaders and HTTPParser classes, which parses request and -- response headers and also offers utilities to build request headers. -- -- Also offers a few functions for parsing GET URL parameters, and different -- POST data types. -- -- Copyright John Abrahamsen 201...
--This script runs a graphical user interface (GUI) in order to built up a documentation tree of the balance of an enterprise. It displays the tree saved in documentation_tree_balance.lua, the passive tree in documentation_tree_balance_passive.lua and the active tree stored in documentation_tree_balance_active.lua --1...
fx_version 'bodacious' games { 'gta5' } author 'Nosmakos' description 'Titans Productions Report System' version '1.2.0' ui_page 'html/index.html' client_scripts { 'config.lua', 'client/main.lua', } server_scripts { '@mysql-async/lib/MySQL.lua', 'config.lua', 'server/main.lua', } files { 'html...
return function () local events = require'nvim-tree.events' local M = {} M.cfwob_whitelist = { ".git" } vim.g.nvim_tree_indent_markers = 0 vim.g.nvim_tree_git_hl = 1 vim.g.nvim_tree_gitignore = 0 vim.g.nvim_tree_width = 30 vim.g.nvim_tree_group_empty = 1 vim.g.nvim_tree_lsp_diagnostics = 1 v...
object_tangible_furniture_all_frn_all_chair_wooden_s1 = object_tangible_furniture_all_shared_frn_all_chair_wooden_s1:new { } ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_chair_wooden_s1, "object/tangible/furniture/all/frn_all_chair_wooden_s1.iff")
local installer = require "nvim-lsp-installer.core.installer" local _ = require "nvim-lsp-installer.core.functional" local process = require "nvim-lsp-installer.core.process" local path = require "nvim-lsp-installer.core.path" local Result = require "nvim-lsp-installer.core.result" local spawn = require "nvim-lsp-insta...
----------------------------------- -- Ability: Spectral jig -- Allows you to evade enemies by making you undetectable by sight and sound. -- Obtained: Dancer Level 25 -- TP Required: 0 -- Recast Time: 30 seconds -- Duration: 3 minutes ----------------------------------- require("scripts/globals/settings") require("scr...
local awful = require "awful" local beautiful = require "beautiful" local wibox = require "wibox" local vars = require "config.vars" local widgets = require "widgets" screen.connect_signal("request::desktop_decoration", function(s) -- awful.tag(vars.tags, s, awful.layout.layouts[1]) for i = 1, 9, 1 do ...
data:extend({ { type = "custom-input", name = "aq_quickbar_swap", key_sequence = "X", }, { type = "custom-input", name = "aq_quickbar_rotate", key_sequence = "SHIFT + X", } })
local ObjectManager = require("managers.object.object_manager") local QuestManager = require("managers.quest.quest_manager") FsCrafting4 = { waypoints = { keren = { 1215, 2740, "naboo" }, coronet = { 19, -4775, "corellia" }, mosentha = { 1209, 2923, "tatooine" } }, NOWIRE = 0, REDWIRE = 1, BLUEWIRE = 2, Y...
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local tables = require "moonpie.tables" local timer = {} timer.__index = timer function timer:new(name, range) return setmetatable({ total = 0, count ...
Hooks:PostHook(PlayerTweakData, "init", "PredatorShieldInit", function(self) -- Thanks luffy <3 --Weapons stances --Standalone shield Stance --self.stances.predatorshield.standard.shoulders.translation = Vector3(-4.9, -13.573, -4.567) --self.stances.predatorshield.crouched.shoulders.trans...
ITEM.name = "Plastic" ITEM.description = "itemPlasticDesc" ITEM.price = 1 ITEM.model = "models/mosi/fallout4/props/junk/components/plastic.mdl"
return { version = "1.1", luaversion = "5.1", tiledversion = "0.18.2", orientation = "orthogonal", renderorder = "right-down", width = 40, height = 19, tilewidth = 16, tileheight = 16, nextobjectid = 1, properties = {}, tilesets = { { name = "Tiles", firstgid = 1, tilewidth...
require("keybindings") require("plugins") require("theme") require("basic") require("lsp.setup") require('plugin-config.nvim-cmp') require('plugin-config.nvim-tree')
object_tangible_item_quest_force_sensitive_fs_crystal_force = object_tangible_item_quest_force_sensitive_shared_fs_crystal_force:new { } ObjectTemplates:addTemplate(object_tangible_item_quest_force_sensitive_fs_crystal_force, "object/tangible/item/quest/force_sensitive/fs_crystal_force.iff")
io.write(os.date("%F %T"))
local num_online_pin_map = require("qnFiles/qnPlist/hall/num_online_pin"); local roomLevels_pin_map = require("qnFiles/qnPlist/hall/roomLevels_pin"); local hall_game_list_item= { name="hall_game_list_item",type=0,typeName="View",time=0,report=0,x=0,y=0,width=296,height=370,visible=1,fillParentWidth=0,fillParentHeight=...
local ffi = require 'ffi' local torch = require 'torch' local utils = require 'pcl.utils' local pcl = require 'pcl.PointTypes' local Correspondences = torch.class('pcl.Correspondences', pcl) local methods = {} local function init() local Correspondences_method_names = { 'new', 'clone', 'delete', 's...
local itemUtil = {} local sounds = require("__base__.prototypes.entity.sounds") local danyao_pic = "__xiuxian__/graphics/icons/danyao/dan-juqi.png" local dihuo_pic = "__xiuxian__/graphics/icons/地火.png" function itemUtil.createDanyao(item_name) data:extend( { { type =...
local dist, pos = ... --[[ My Math: newPos = pos[n] + change[n] dist[n] = math.sqrt(change[n].x ^ 2 + change[n].y ^ 2 + change[n].z ^ 2) dist[n] ^ 2 = change[n].x ^ 2 + change[n].y ^ 2 + change[n].z ^ 2 Which leads to: newPos = pos[n] + change[n] newPos = pos[1] + change[1] newPos = pos[2] + change[2] ...
fx_version 'cerulean' game 'gta5' description 'QB-Doorlock' version '1.0.0' shared_scripts { 'config.lua', '@qb-core/import.lua' } server_script 'server/main.lua' client_script 'client/main.lua'
local mock = require("luassert.mock") local stub = require("luassert.stub") local p = require("plenary.scandir") local options = require("nvim-lsp-ts-utils.options") local utils = require("nvim-lsp-ts-utils.utils") local rename_file = require("nvim-lsp-ts-utils.rename-file") local _loop = require("nvim-lsp-ts-utils.l...
----------------------------------------------------- -- Ah shit, here we go again made in MTA:SA -- Haxardous ----------------------------------------------------- function startAhShit() local timehour, timeminute = getTime() -- set CJ's skin model. if not (getElementModel(localPlayer) == 0) the...
local M = {} -- fallback to using global variable as default local completion_opt_metatable = { __index = function(_, key) key = 'completion_'..key return vim.g[key] end } local option_table = setmetatable({}, completion_opt_metatable) M.set_option_table = function(opt) if opt ~= nil then option_t...
-- 128 models outdoor / 8192 facets indoor is too restricting -- This script extends that to x4 of the amounts if offsets.MMVersion ~= 8 then return end FacetRefsLimit = 0x8000 local _KNOWNGLOBALS = Game local abs, floor, ceil, round, max, min = math.abs, math.floor, math.ceil, math.round, math.max, math.min local ...
data:extend( { { type = "recipe", name = "underground-belt-7", category = "crafting-with-fluid", enabled = false, energy_required = 6, ingredients = { {"steel-gear-wheel", 120}, {"underground-belt-6", 2}, {type="fluid", name="aerated-lubricant", amount=80} }, resu...
local Packages = script.Parent.Parent.Parent.Parent.Parent.Parent local Roact = require(Packages.Roact) local UIBlox = Packages.UIBlox local withStyle = require(UIBlox.Style.withStyle) local AccordionView = require(UIBlox.App.Accordion.AccordionView) local testImages = { -- The 1st image is transparent. "http://www...
-- Copyright (C) 2010-2013 Ian MacLarty. See Copyright Notice in ../lt.h function lt.Text(str, font, halign, valign) halign = halign or "left" valign = valign or "center" local em = font.m or font.M or font["0"] or {width = 0.1, height = 0.1} local space = em.width * (font.space or 1.0) local hmove...
local dbg = rdebug() local allItemsData = {} function allItems() MySQL.ready(function() local data = MySQL.Sync.fetchAll('SELECT name FROM items', { }) if data[1] ~= nil then for i,v in pairs(data) do allItemsData[v.name] = v end else ...
#!/usr/bin/env tarantool package.path = "../?/init.lua;./?/init.lua;" .. package.path package.cpath = "../?.so;../?.dylib;./?.so;./?.dylib;" .. package.cpath local fiber = require 'fiber' local tap = require 'tap' local zookeeper = require 'zookeeper' local zkacl = require 'zookeeper.acl' local zkconst = require 'zoo...
function scene5_load() love.graphics.setBackgroundColor(153, 217, 234) love.audio.play(bgmusic) clouds2 = {} for i = 1, 3 do for y = 1, 8 do table.insert(clouds2, cloud2:new(math.random()*140)) end end lastexplosion = {50, 40} starttimer = 0 flyingquad = 3 playerx = 50 playery ...
return {'live','liveact','livealbum','liveband','liveconcert','livemuziek','liveopname','liveoptreden','liveprogramma','liveshow','livetelevisie','living','livrei','livreibediende','livreiknecht','livret','liv','livia','livio','livingstone','liveacts','liveopnamen','liveopnames','liveprogrammas','livreibedienden','livr...
--love-polyfill version 1.2.0 --Implements 0.9.3 features and bugfixes into 0.9.2 --Lucien Greathouse (LPGhatguy) local ffi = require("ffi") --SDL headers we use ffi.cdef([[ typedef struct SDL_Window SDL_Window; SDL_Window *SDL_GL_GetCurrentWindow(void); void SDL_MaximizeWindow(SDL_Window *window); ]]) --PhysFS ...
local function clamp(x, x1, x2) return math.min(math.max(x, x1), x2) end local function squaredDistance(x1, y1, x2, y2) return (x2 - x1) ^ 2 + (y2 - y1) ^ 2 end local function distance(x1, y1, x2, y2) return math.sqrt((x2 - x1) ^ 2 + (y2 - y1) ^ 2) end local function sign(x) return x < 0 and -1 or 1 end loc...
-- -- 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 Util = {} Util.safeDestroy = function(object) if object.body:isDestroyed() == false then object.body:destroy() end if object.fixture:isDestroyed() == false then object.fixture:destroy() end end Util.deepcopy = function(orig) local orig_type = type(orig) local copy if ...
Objects = { createObject ( 11149, 3147.0029, -738.26074, 10.4, 0, 0, 90 ), createObject ( 10815, 3008.9004, -788.90039, 7.7, 0, 0, 44.995 ), createObject ( 10771, 3141.7998, -732.2002, 3.9, 0, 0, 90 ), createObject ( 11145, 3141.7998, -795.09961, 2.7, 0, 0, 90 ), createObject ( 11146, 3141.2559, -741.2002, 10.78133, 0,...