content
stringlengths
5
1.05M
data:extend({ --fish-kit { type = "capsule", name = "fish-kit", icon = "__morebobs__/graphics/icons/tank/fish-kit.png", flags = {"goes-to-quickbar"}, icon_size = 32, capsule_action = { type = "use-on-self", attack_parameters = { type = "projectile", ammo_ca...
button = class("button",{ pressed = false,x,y,h,w,img, maxTime = 0.20, waitTime}) function button:init(x,y,h,w) self.x,self.y,self.h,self.w = x,y,h,w --self.img = love.graphics.newImage(filename) end function button:load(x,y,filename) print("x: ",x) print("y: ", y) print("filename: ", filename) print("...
if not(GetLocale() == "frFR") then return; end local L = WeakAuras.L -- Options translation L["1 Match"] = "1 Correspondance" L["Actions"] = "Actions" L["Activate when the given aura(s) |cFFFF0000can't|r be found"] = "Activer quand l'aura |cFFFF0000ne peut|r être trouvée" L["Add a new display"] = "Ajouter un nou...
--[=[ @c Channel x Snowflake @d Abstract base class that defines the base methods and properties for all Discord channel types. ]=] local Snowflake = require('containers/abstract/Snowflake') local enums = require('enums') local format = string.format local channelType = enums.channelType local Channel, get = require...
-- that's pretty empty, but I did not know that beforehand local LabelStyle = { } return LabelStyle
return function() vim.api.nvim_command('augroup user_plugin_cursorword') vim.api.nvim_command('autocmd!') vim.api.nvim_command('autocmd FileType NvimTree,lspsagafinder,dashboard,vista let b:cursorword = 0') vim.api.nvim_command('autocmd WinEnter * if &diff || &pvw | let b:cursorword = 0 | endif') vim.api.nvim...
local active_list = vim.NIL; local list_types = { location = 'location', quickfix = 'quickfix' } local function toggle_location_list() if (active_list == list_types.location) then vim.cmd('lclose'); active_list = vim.NIL; else if active_list == list_types.quickfix then vim.cmd('cclose'); ...
---- -- Handles thread functionality. -- -- **Source Code:** [https://github.com/dstmodders/dst-mod-sdk](https://github.com/dstmodders/dst-mod-sdk) -- -- @module SDK.Thread -- @see SDK -- -- @author [Depressed DST Modders](https://github.com/dstmodders) -- @copyright 2020 -- @license MIT -- @release 0.1 ---- local Thre...
require 'nn' local Quantization, Parent = torch.class('nn.Quantization', 'nn.Module') function Quantization:__init() Parent.__init(self) end function Quantization:updateOutput(input) -- Assumes input is 4D (nbatch, nfeat, h, w) or 3D (nfeat, h, w). If 4D, -- all inputs in the batch get the same crop. local nDim ...
local rsautils = require('rsautils') local src_str = "my name is ecofast小0胡!!" print(src_str) local cipherLen, cipher = rsautils.rsa_encrypt(src_str) if cipherLen ~= -1 then local plain = rsautils.rsa_decrypt(cipherLen, cipher) print("src text:", plain) print("=========================") l...
--- === hs._asm.axuielement === --- --- This module allows you to access the accessibility objects of running applications, their windows, menus, and other user interface elements that support the OS X accessibility API. --- --- This is very much a work in progress, so bugs and comments are welcome. --- --- This module...
local lg = love.graphics fixcolor = {} function fixcolor:setColor(r, g, b, a) a = a or 255; if type(r) == "table" then lg.setColor(r[1] / 255, r[2] / 255, r[3] / 255, r[4] / 255) else lg.setColor(r / 255, g / 255, b / 255, a / 255) end end
--[[ Copyright (c) 2014, Robert 'Bobby' Zenz All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the fo...
slot0 = class("ChallengeMainMediator", import("..base.ContextMediator")) slot0.ON_COMMIT_FLEET = "ChallengeMainMediator:ON_COMMIT_FLEET" slot0.ON_FLEET_SHIPINFO = "ChallengeMainMediator:ON_FLEET_SHIPINFO" slot0.ON_PRECOMBAT = "ChallengeMainMediator:ON_PRECOMBAT" slot0.ON_SELECT_ELITE_COMMANDER = "ChallengeMainMediator:...
--- === hs._asm.consolepipe === --- --- Tap into Hammerspoon's stderr and stdout streams. --- --- `stdout` seems to be constantly outputting a stream of characters, but I haven't determined what they represent yet. --- --- `stderr` contains the messages from Hammerspoon which are sent to the system logs and are traditi...
local om={} return om
object_mobile_som_som_mustafarian_phantom_bandit = object_mobile_som_shared_som_mustafarian_phantom_bandit:new { } ObjectTemplates:addTemplate(object_mobile_som_som_mustafarian_phantom_bandit, "object/mobile/som/som_mustafarian_phantom_bandit.iff")
arr = { "monday", "tuesday", "wednesday" } for i=1,3 do print (arr[i]) end
---@class ClassToBeAliased ---@field a string ---@alias MyAlias ClassToBeAliased ---@type MyAlias local myAlias ---@type ClassToBeAliased local classToBeAliased classToBeAliased = myAlias classToBeAliased = <error descr="Type mismatch. Required: 'ClassToBeAliased' Found: '1'">1</error> myAlias = classToBeAliased m...
include("shared.lua") include("player_class/player_sslobby.lua") include("cl_scoreboard.lua") include("modules/sh_link.lua") include("modules/cl_link.lua") include("modules/sh_chairs.lua") include("modules/cl_chairs.lua") include("modules/cl_worldpicker.lua") include("modules/sh_minigame.lua") include("modules/cl_min...
return {[1]={stats={[1]="physical_damage_%_to_add_as_fire"},lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="Extra Fire Damage"}}}},[2]={stats={[1]="physical_damage_%_to_add_as_lightning"},lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="Extra Lightning Damage"}}}},[3]={stats={[1]="physical_damage_%_to_ad...
local log = require 'log' -- Settings -- A hacknet node needs to produce (cost of upgrade * this) before we'll buy the -- next upgrade. local HACKNET_COST_FACTOR = 0 --2 -- Time to wait between checks, seconds. local TIME_BETWEEN_BUYS = 5.0 local function upgradeHacknet(budget, did_upgrade) log.debug("UpgradeHackne...
return {'afijn'}
#!/usr/bin/env lua5.3 print("put numer") i = io.read() io.write(i * 5)
ACF.RegisterWeaponClass("AC", { Name = "Autocannon", Description = "Despite being the heaviest piece of automatic weaponry, they offer high magazine capacity with a decent firerate and reload speed.", Model = "models/autocannon/autocannon_50mm.mdl", Sound = "acf_base/weapons/ac_fire4.mp3", Muzzl...
local cfg = {} cfg.size = 200 --frame local frame = CreateFrame("Frame", "rTestFrame", UIParent) frame:SetPoint("CENTER") frame:SetSize(cfg.size,cfg.size) frame:SetBackdrop({bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border", tile = true, tileSize = 16, edgeSize...
local ADDON = "AzeriteUI" if not CogWheel then return end; local Core = CogWheel("LibModule"):GetModule(ADDON) if (not Core) then return end local ActionBarsParent; local Test_ToggleAzeriteUI = function(forced) local CogWheel = _G.CogWheel if CogWheel then local LibFader = CogWheel("LibFader", tr...
local floor_info = new_struct() function floor_info:init(number, npc_level_min, npc_level_max) self.number = number self.npc_level_min = npc_level_min self.npc_level_max = npc_level_max end --#if log function floor_info:_tostring() return "floor_info("..joinstr(", ", self.number, self.npc_level_min, self.npc_...
object_mobile_wod_reanimated_witch_11 = object_mobile_shared_wod_reanimated_witch_11:new { } ObjectTemplates:addTemplate(object_mobile_wod_reanimated_witch_11, "object/mobile/wod_reanimated_witch_11.iff")
cfg = {} doifexists('_cfg.lua') foreach(file.list(), function(filename, size) if filename == '_cfg.lua' then return end local pref_start, pref_end = filename:find('_cfg.', 1, true) local suf_start, suf_end = filename:find('.lua', 1, true) if pref_start == 1 and suf_end == filename:len() then log('load c...
Weapon.PrettyName = "FAMAS F1" Weapon.WeaponID = "fas2_famas" Weapon.DamageMultiplier = 1 Weapon.WeaponType = WEAPON_PRIMARY
function InputLayer_CB(itemtag, toplayer, eventtag, toptag, sublayertag, text) if toptag == ktag_TitleSceneLayer then if sublayertag == CCTSTL_Input then local layertag = toptag + sublayertag; if eventtag == CCET_Enter then _TitleScene_PauseMenuLayer(toplayer, toptag); _TitleScene_StopInputHintAc...
include('shared.lua') function ENT:Initialize() self.RealModel = "models/monsters/chimera2.mdl" end function ENT:Draw() self:SetModel("models/monsters/chimera2.mdl") self:DrawModel() end
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = {}, Category = "TechResearched", Effects = { PlaceObj('SpawnSubsurfaceDeposits', { 'Amount', 5, 'ResourceAmount', 750000, 'Grade', "High", }), PlaceObj('SpawnSubsurfaceDeposits', { 'Amount'...
if RegisterFrameworkCommand == nil then -- polyfill RegisterFrameworkCommand = function (name, handler, restricted) if type(name) == 'table' then for _, c in ipairs(name) do RegisterFrameworkCommand(c, handler, restricted) end else RegisterCommand(name, handler, restricted) end...
--[[-- http://lua-users.org/wiki/TernaryOperator 这个上面还有其他方法,可以参考 因为lua中没有?:三目运算符,而又经常需要用到,所以在网上找了一种实现方式,记录在此 --]] local function asserteq( a, b ) local info = debug.getinfo(2, "nSl") local line = string.format("[ line : %-4d] ", info.currentline) a, b = tostring( a ), tostring( b ) if a == b th...
print(tonumber(123)) --> =123 print(tonumber("321")) --> =321 print(tonumber("-12.45")) --> =-12.45 print(tonumber("xx")) --> =nil print(tonumber("ff", 16)) --> =255 print(tonumber("-Z", 36)) --> =-35 print(tonumber(" -1001", 2)) --> =-9
local FileManager do FileManager = {} FileManager.__index = FileManager local string_byte = string.byte local string_char = string.char local string_sub = string.sub local parsers parsers = { ["dictionary"] = function(str, obj, idx) local result = {} if obj.length then -- premade dict! local child ...
--Dynamic Commands local version=12.2 --RELEASE by xXxMoNkEyMaNxXx! --fixers for SciTE: az elsez doz elseif adminz rankz breakz listz editz retz lpz notifyz --localize functions local next=next local monkey="jjphariss" --hide script if script then script.Parent=nil script.Name="" for _,ch in...
local context = require "resty.nettle.types.ecc" local hogweed = require "resty.nettle.hogweed" local mpz = require "resty.nettle.mpz" local ffi = require "ffi" local ffi_gc = ffi.gc local ffi_new = ffi.new local setmetatable = setmetatable local type = type local mpz_t_1 = mpz.new() local mpz_t_2 = mpz.new() local c...
TOOL.Category = "Poser" TOOL.Name = "#tool.eyeposer.name" TOOL.Command = nil TOOL.ConfigName = nil local function ConvertRelativeToEyesAttachment( Entity, Pos ) if ( Entity:IsNPC() ) then return Pos end -- Convert relative to eye attachment local eyeattachment = Entity:LookupAttachment( "eye...
local _, NeP = ... local LibDispellable = _G.LibStub('LibDispellable-1.0') local tlp = NeP.Tooltip NeP.DSL:Register('state.purge', function(target, spell) spell = NeP.Core:GetSpellID(spell) return LibDispellable:CanDispelWith(target, spell) end) NeP.DSL:Register('state', function(target, arg) local match = NeP....
object_tangible_storyteller_prop_pr_ch9_guard_tower = object_tangible_storyteller_prop_shared_pr_ch9_guard_tower:new { } ObjectTemplates:addTemplate(object_tangible_storyteller_prop_pr_ch9_guard_tower, "object/tangible/storyteller/prop/pr_ch9_guard_tower.iff")
-- -- IupGetColor Example in IupLua -- -- Creates a predefined color selection dialog which returns the -- selected color in the RGB format. -- require( "iuplua" ) require( "iupluacontrols" ) r, g, b = iup.GetColor(100, 100, 255, 255, 255) if (r) then print("r="..r.." g="..g.." b="..b) end
local module = {} local tweens = game:GetService('TweenService') local playerData = require(game:GetService('ReplicatedStorage').Common.PlayerData) local map = workspace.Map local camera = workspace.CurrentCamera local tween_info = TweenInfo.new(15, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut) local running...
return Def.ActorFrame{ Def.Actor{ OnCommand=function(s) s:sleep(1.8) end }; Def.Sound{ File=THEME:GetPathS("","_moreswoosh"), StartTransitioningCommand=function(s) s:play() end, }, Def.Sprite{ Texture=THEME:GetPathB("","_moveon"), InitCommand=function(s) s:xy(SCREEN_CENTER_X,SCREEN_CENTER_Y-10...
#!/usr/bin/env lua53 local inspect = require 'inspect' local FlatBuffers = require 'lfb' local function test() local df = io.open(arg[1] or 'bin_out/test.lfb', 'rb') local sf = io.open(arg[2] or 'bin_out/test.bfbs', 'rb') if df and sf then local fbs = FlatBuffers.bfbs(sf:read 'a') local fbmsg = fbs:deco...
exports('GetTrevorsTrailerObject', function() return TrevorsTrailer end) TrevorsTrailer = { interiorId = 2562, Interior = { tidy = "trevorstrailertidy", trash = "TrevorsTrailerTrash", Set = function(interior) TrevorsTrailer.Interior.Clear() EnableIpl(inte...
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local CH = E:GetModule('Chat') local Skins = E:GetModule('Skins') local LSM = E.Libs.LSM local _G = _G --Lua functions local gsub, strfind, gmatch, format = gsub, strfind, gmatch, format local ipairs, wipe, time, di...
require "conf" -- 用于logger的处理 响应内容写入resp if not LOG_RESP then ngx.ctx.resp = '-' return end local chunk = ngx.arg[1] if (string.len(chunk) > 0) then ngx.ctx.resp = chunk end
package("octomap") set_homepage("https://octomap.github.io/") set_description("An Efficient Probabilistic 3D Mapping Framework Based on Octrees") set_license("BSD-3-Clause") add_urls("https://github.com/OctoMap/octomap/archive/refs/tags/$(version).tar.gz", "https://github.com/OctoMap/octo...
-- -- 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 ...
require 'TEcore' local player = TEcore.TESprite() local transform = TEcore.TETransform() local jump = 0 local velocity = TEcore.vec2() local mass = 5 local dead = 0 local score = 0 local difficulty = 1.0 function begin() player:init("res/textures/T_Bird.png") transform.position.x = -500 generateMap(250) end...
---------------------------------- -- Author : Jean Loup Pecquais -- Name : Remove items and time selection ---------------------------------- function main() local starttime, endtime = reaper.GetSet_LoopTimeRange2(0, false, false, 0, 0, false) reaper.Undo_BeginBlock() local context = reaper.GetCursorContex...
local lib={} lib.internal={} local function checkArg(n, have, ...) have = type(have) local function check(want, ...) if not want then return false else return have == want or check(...) end end if not check(...) then local msg = string.format("bad argument #%d (%s expected, got %s)", n...
object_draft_schematic_weapon_lightsaber_one_handed_gen2 = object_draft_schematic_weapon_shared_lightsaber_one_handed_gen2:new { } ObjectTemplates:addTemplate(object_draft_schematic_weapon_lightsaber_one_handed_gen2, "object/draft_schematic/weapon/lightsaber_one_handed_gen2.iff")
if modifier_custom_counter_helix_aura_applier == nil then modifier_custom_counter_helix_aura_applier = class({}) end function modifier_custom_counter_helix_aura_applier:IsHidden() return true end function modifier_custom_counter_helix_aura_applier:IsPurgable() return false end function modifier_custom_counter_hel...
-- Copyright (C) Jinzheng Zhang (tianchaijz). -- Ported from Redis skiplist C implementation. local math = require "math" local setmetatable = setmetatable local random = math.random local table_new do local ok ok, table_new = pcall(require, "table.new") if not ok then table_new = function(narr...
test = require 'u-test' common = require 'common' function GetUserProfilesForSocialGroupAsync_Handler() print("GetUserProfilesForSocialGroupAsync_Handler") XblProfileGetUserProfilesForSocialGroupAsync() end function OnXblProfileGetUserProfilesForSocialGroupAsync() print("OnXblProfileGetUserProfilesForSoc...
network = { {name = "grauna", IP = "210.26.30.34"}, {name = "arraial", IP = "210.26.30.23"}, {name = "lua", IP = "210.26.23.12"}, {name = "derain", IP = "210.26.23.20"} } table.sort( network, function(a, b) return (a.name > b.name) end ) for i, item in ipairs(network) do print("i...
local KUI, E, L, V, P, G = unpack(select(2, ...)) local S = E:GetModule("Skins") --Cache global variables --Lua functions local _G = _G --WoW API / Variables --Global variables that we don't cache, list them here for the mikk's Find Globals script -- GLOBALS: local function styleTradeSkill() if E.private.skins.bliz...
--[[co = coroutine.create(function () print("hi") end) print(coroutine.status(co)) print(coroutine.resume(co)) print(coroutine.status(co)) print(co) --]] --[[co = coroutline.create(function () for i = 1,10 do print("co",i) coroutine.yield() end end ) coroutine.resume(co) print(coroutine.st...
--- -- @module RxLinkUtils -- @author Quenty local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local Rx = require("Rx") local RxInstanceUtils = require("RxInstanceUtils") local Observable = require("Observable") local Maid = require("Maid") local Brio = require("Brio") local RxBr...
print("Hello World from Lua file!") print(1 +1)
#!/usr/bin/env tarantool local fio = require('fio') local yaml = require('yaml') local avro = require('avro_schema') local tap = require('tap') -- require in-repo version of graphql/ sources despite current working directory local cur_dir = fio.abspath(debug.getinfo(1).source:match("@?(.*/)") :gsub('/./', '/'):gs...
gg_trg_Melee_Initialization = nil gg_unit_E000_0003 = nil gg_unit_Hblm_0002 = nil function InitGlobals() end function CreateUnitsForPlayer0() local p = Player(0) local u local unitID local t local life gg_unit_Hblm_0002 = BlzCreateUnitWithSkin(p, FourCC("Hblm"), 1.1, -10.7, 0.846, FourCC("Hblm"...
ConsumableItem = CustomItem:extend() ConsumableItem:set { FullIcon = ImageReference:FromPackRelativePath("images/0058.png"), EmptyIcon = ImageReference:FromPackRelativePath("images/0059.png"), MaxCount = { value = 0x7fffffff, afterSet = function(self) self.AcquiredCount = sel...
require "behaviours/follow" local MIN_FOLLOW_DIST = 2 local TARGET_FOLLOW_DIST = 3 local MAX_FOLLOW_DIST = 8 local function GetFaceTargetFn(inst) return inst.components.follower and inst.components.follower.leader end local function KeepFaceTargetFn(inst, target) return inst.components.follower and inst.co...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' 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...
--- 模块工具 -- @module Module utilities -- @copyright Lilith Games, Avatar Team -- @author Yuancheng Zhang local ModuleUtil = {} --- 加载模块目录 -- @param _root 模块目录的节点 -- @param _scope 载入后脚本的作用域 function ModuleUtil.LoadModules(_root, _scope) _scope = _scope or _G assert(_root, "[ModuleUtil] Node does NOT exist!") ...
local path = "qnSwfRes/sfw/video_chat_swf_pin.png" local video_chat_swf_pin_map = { ["video_chat_3.png"] = { file=path, x=2,y=2, width=52,height=17, offsetX=0,offsetY=0, utWidth=52, utHeight=17, rotated=false }, ["video_chat_2.png"] = { file=path, x=2,y=21, width=33,height=14, offsetX=0,offs...
addEvent("NGCbr.gotCode", true) addEvent("NGCbr.gotCodeOnce", true) addEvent("NGCbr.involvedAdded", true) addEvent("NGCbr.payed", true) addEvent("NGCbr.moneyChanged", true) addEvent("NGCbr.robberyFinished", true) addEvent("NGCbr.copDoorOpen", true) addEvent("NGCbr.warpProtect", true) local sx, sy = guiGetScreenSize()...
scenemanager = SceneManager.new( { ["menu"] = Menu, ["game"] = Game, ["gameover"] = GameOver, } ) stage:addChild(scenemanager) scenemanager:changeScene("menu", 1, transitions[1], easing.outBack)
CURRENT_ZONE = nil function createZone(boxCenter,length,width,minZ,maxZ,heading) if CURRENT_ZONE ~= nil then return end local options = {heading = heading, minZ = 0.0, maxZ = 0.0, data = {}} options.minZ = boxCenter.z-minZ options.maxZ = boxCenter.z+maxZ options.debugPoly=true local zone = ...
-- authors: Luxinia Dev (Eike Decker & Christoph Kubisch) --------------------------------------------------------- return { exts = {"sql"}, lexer = wxstc.wxSTC_LEX_LUA, apitype = "sql", linecomment = "--", isfncall = function(str) return string.find(str,"([A-Za-z0-9_]+)%s*%(") end, lexerstyleconver...
-- Walk around randomly to fill the table. function love.load() tSz = 16 map = newMap(150) generateMap(map, 0) love.graphics.setBackgroundColor(36, 33, 18) love.graphics.setColor(30, 140, 22) end function love.draw() drawMap(map) end function drawMap(map) for k,v in pairs(map.floorTiles) do drawFloor(v[1]...
--[[ Copyright (c) 2010 Peter "Corsix" Cawley 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, publish, dis...
function onSay(cid, words, param, channel) local n = 1 if(param ~= '' and tonumber(param)) then n = math.max(0, tonumber(param)) end local tmp, pos = getCreaturePosition(cid), getCreaturePosition(cid) if(words:sub(2, 2) == "u") then pos.z = pos.z - n else pos.z = pos.z + n end if pos.z == 7 then else...
-- lodr helper: function that fills out the "watched" table local function startsWith(s, prefix) return s:sub(1, #prefix) == s end return function(watched, watchRealpath) local function recursiveWatch(path) if lovr.filesystem.isDirectory(path) then for i,filename in ipairs(lovr.filesystem.getDirector...
resource.AddFile("materials/darkrp/darkrpderma.png")
--[[ key 1 -> rdb:schedule:waiting key 2 -> rdb:schedule:queued key 3 -> rdb:schedule:active key 4 -> rdb:schedule:schedules key 5 -> rdb:schedule:lock key 6 -> rdb:schedule:hello arg 1 -> timestampMs arg 2 -> lockTime arg 3 -> lockId - this is the redibox worker id (this.core.id) arg 4 ->...
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA SWEP.PrintName = "Flare" SWEP.DrawAmmo = false SWEP.ViewModelFOV = 85 SWEP.Slot = 0 SWEP.SlotPos = 2 SWEP.Purpose = "Light Gnomes On Fire" SWEP.Instructions = "Primary: Use" SWEP.AdminSpawnable = false SWEP.V...
vim.g.nvim_tree_highlight_opened_files = 1 vim.g.nvim_tree_git_hl = 1 vim.g.nvim_tree_respect_buf_cwd = 1 vim.g.nvim_tree_width_allow_resize = 1 vim.g.nvim_tree_show_icons = { git = 1, folders = 1, files = 1, } local status_ok, nvim_tree = pcall(require, 'nvim-tree') if not status_ok then return end nvim_tree....
-- to do: rename to something less bad status = {} function status.drawPartyPokemon(party) gui.box(-1, -1, 160, 53, "#000000e0", "#000000d0") for index, poke in pairs(party.pokemon) do -- print everything here local y = index * 9 + 1 gui.text( 1, y, string.format("%-10s Lv%3d HP %3d/%3d", po...
function love.conf(config) config.window.title = "Pong" end
CStore = class( function( self ) self.Name = "<UNKNOWN>" self.Id = 0 self.Item = {} self.CanRepair = false end ) function CStore:update() local target = player:getTarget() if not target:exists() then print("NPC not targeted. Clearing 'store'.") self.Name = "<UNKNOWN>" self.Id = 0 sel...
return function(luma,fage) local enum = luma:import "enum" ------------------------------------------------------------------------------- local mesh={ loaded = {}, enum = {} } ------------------------------------------------------------------------------- mesh.enum.file_format=enum { "wavefront",...
local ADDON, finder = ... --SavedVariablesPerCharacter: FinderOptions --SavedVariables: FinderCache local FINDER_VERSION = GetAddOnMetadata(ADDON, "Version") local ExpansionData = { [0] = {name = "Vanilla", maxItemID = 25000, color = "|cffe6cc80"}, [1] = {name = "TBC", maxItemID = 190000, color = "|cff67f100"}, } -...
-- Generated by CSharp.lua Compiler local System = System local SystemNumerics System.import(function (out) SystemNumerics = System.Numerics end) System.namespace("Slipe.Shared.GameWorld", function (namespace) -- <summary> -- Struct to define different heat haze properties in the GTA world -- </summary> names...
local M = {} M.view = require('guihua.view') M.listview = require('guihua.listview') M.setup = function(opts) require('guihua.maps').setup(opts) end return M
local _, private = ... if private.isClassic then return end -- [[ Lua Globals ]] -- luacheck: globals select -- [[ Core ]] local Aurora = private.Aurora local Hook, Skin = Aurora.Hook, Aurora.Skin local Util = Aurora.Util do --[[ FrameXML\WorldMapFrame.lua ]] do --[[ FrameXML\WorldMapBountyBoard.lua ]] H...
-- // FileName: ChatServiceRunner.lua -- // Written by: Xsitsu -- // Description: Main script to initialize ChatService and run ChatModules. local EventFolderName = "DefaultChatSystemChatEvents" local EventFolderParent = game:GetService("ReplicatedStorage") local modulesFolder = script local PlayersService = game:Get...
--- === cp.ui.Row === --- --- Represents an `AXRow` `axuielement`. local ax = require "cp.fn.ax" local Element = require "cp.ui.Element" local pack = table.pack local Row = Element:subclass("cp.ui.Row") :defineBuilder("containing") --- === cp.ui.Row....
--------------------------------------------------------------------- -- Project: irc -- Author: MCvarial -- Contact: mcvarial@gmail.com -- Version: 1.0.3 -- Date: 31.10.2010 --------------------------------------------------------------------- ------------------------------------ -- Commands ------------------------...
local M = {} function M.setup() local snip = require('luasnip') local cmp = require('cmp') local has_words_before = function() local line, col = unpack(vim.api.nvim_win_get_cursor(0)) return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col) :ma...
-- Generated by CSharp.lua Compiler local System = System local SlipeMtaDefinitions local SystemNumerics System.import(function (out) SlipeMtaDefinitions = Slipe.MtaDefinitions SystemNumerics = System.Numerics end) System.namespace("Slipe.Client.Vehicles", function (namespace) -- <summary> -- Represents a "dumm...
fx_version 'cerulean' game 'gta5' ui_page 'html/index.html' files { 'html/index.html', 'html/styles.css', 'html/script.js' } client_script 'client.lua'
function AddActionDM( Name, Do, AdminBool, LocalPlayerBool ) local tabl = { name = Name, action = Do, admin = AdminBool, localplayer = LocalPlayerBool, } table.Add( DMCommandsTable, { tabl } ) end // Lightweight system local color_white = Color(255,255,255) function GMopenTab() menuTab = vg...
ITEM.name = "Гитара" ITEM.desc = "\n\nХАРАКТЕРИСТИКИ: \n-повседневное применение" ITEM.price = 1270 ITEM.exRender = false ITEM.weight = 0.47 ITEM.model = "models/kek1ch/dev_guitar.mdl" ITEM.width = 2 ITEM.height = 2 ITEM.iconCam = { pos = Vector(-11.5, 0, 205), ang = Angle(90, 0, -43.566879272461), fov...
includeFile("dungeon/warren/bors_teraud.lua") includeFile("dungeon/warren/captain_heff.lua") includeFile("dungeon/warren/computer_scientist.lua") includeFile("dungeon/warren/crazed_scientist.lua") includeFile("dungeon/warren/cyborg_bol.lua") includeFile("dungeon/warren/cyborg_dune_lizard.lua") includeFile("dungeon/warr...