content
stringlengths
5
1.05M
require "Polycode/SceneEntity" class "SceneSound" (SceneEntity) function SceneSound:SceneSound(...) if type(arg[1]) == "table" and count(arg) == 1 then if ""..arg[1]:class() == "SceneEntity" then self.__ptr = arg[1].__ptr return end end for k,v in pairs(arg) do if type(v) == "table" then if v....
-- Maps claim keys to request headers return { ["aid"] = "X-Consumer-AID", ["uid"] = "X-Consumer-Token-User-Id", ["sub"] = "X-Consumer-Token-User-Email", ["aud"] = "X-Consumer-Token-Scopes" }
describe('Subscription', function() describe('create', function() it('returns a Subscription', function() local subscription = Rx.Subscription.create() expect(subscription).to.be.an(Rx.Subscription) end) end) describe('unsubscribe', function() it('runs the function passed to create', func...
---------------------------- ----- BadgerStockMarket ---- -- DOCWEIRD#6666 VRP EDIT -- ---------------------------- local Tunnel = module("vrp", "lib/Tunnel") local Proxy = module("vrp", "lib/Proxy") vRP = Proxy.getInterface("vRP") vRPclient = Tunnel.getInterface("vRP", "vrp_stocks") vRPstockS = {} Tunne...
-- rIngameModelViewer -- zork 2014 ------------------------------------- -- ADDON TABLES ------------------------------------- local an, at = ... at.G = {} --global (if any) at.L = {} --local at.C = {} --config at.DB = {} --database ------------------------------------- -- V...
-- This file contains -- - all editor settings including all options and global -- - vim variables plus some functions -- - all editor commands and autocommands -- vim options (:set) vim.o.encoding = 'UTF-8' vim.o.relativenumber = true vim.o.hlsearch = true vim.o.hidden = true vim.o.errorbells = false vim.o.t...
forbidden_message = {oRoot = nil}
local ngx_log = ngx.log local ngx_DEBUG = ngx.DEBUG local ngx_ERR = ngx.ERR local str_sub = string.sub local str_find = string.find local zedcup = require("zedcup") local GLOBALS = zedcup.globals() local DEBUG = GLOBALS.DEBUG local utils = require("zedcup.utils") local locks = require("zedcup.locks") local _M = {...
local max_sequence = tonumber(ARGV[3]) local num_ids = tonumber(ARGV[2]) local logical_shard_id = tonumber(ARGV[1]) + 1 local lock_key = KEYS[1] local sequence_key = KEYS[2] if redis.call('EXISTS', lock_key) == 1 then redis.log(redis.LOG_NOTICE, 'Icicle: Cannot generate ID, waiting for lock to expire.') return re...
local base = "ZinoLib\\" local path = base.."misc\\" ZQuads = Include(path..'VertexRenderer.lua') Vector = Include(path..'BrineVector.lua') Include(path..'MiscFunctions.lua') Include(path..'Stack.lua') path = base.. "BMF\\" BMF = Include(path..'main.lua') --path = base.. "player\\" --Include(path..'player.lua') path = ...
QBCore = nil TriggerEvent('QBCore:GetObject', function(obj) QBCore = obj end) -- Code local trunkBusy = {} RegisterServerEvent('qb-trunk:server:setTrunkBusy') AddEventHandler('qb-trunk:server:setTrunkBusy', function(plate, busy) trunkBusy[plate] = busy end) QBCore.Functions.CreateCallback('qb-trunk:...
local utils=require('utils') local function round(n) return math.floor(n+.5) end validArgs = validArgs or utils.invert({ 'unit' }) local args = utils.processArgs({...}, validArgs) local unit = df.unit.find(args.unit) unit.body.physical_attrs.STRENGTH.value=math.min(round(unit.body.physical_attrs.STRENGTH.valu...
Require("ProjectDir","../../Common/IngenUtils.lua"); Require("ProjectDir","../../Common/Easing.lua","Easing"); Require("ProjectDir","../../Common/LuaGen.lua","LG"); Require("ProjectDir","Marionette4.lua"); Require("ProjectDir","Cutscenes.lua"); Require("ProjectDir","GpuParticleSystemCurl.lua","GPUPS"); PROFILING = fa...
local util = require("__core__.lualib.util") if global.__lualib and global.__lualib.event and not global.__lualib.event.conditional_events then -- migrate conditional event table to new format local new_data = {conditional_events={}, players={}} for n,t in pairs(global.__lualib.event) do -- copy data loc...
include("names") include("terms") rz = math.random(#zensko_ime_nom); imez = zensko_ime_nom[rz]; lesson = (4 + math.random(8)) * 5; number = 2; pause = 30 if(lesson > 40 and lesson < 55) then number = 3 pause = 20 end if(lesson > 30 and lesson < 45) then number = 4 pause = 15 end if( lesson < 35)...
--beacon mk1 is at the end --beacon mk2 local beacon2 = util.table.deepcopy(data.raw["item"]["beacon"]) beacon2.name = "beacon2-item" beacon2.place_result = "beacon2" beacon2.icon = nil beacon2.icons = { {icon = "__wret-beacon-rebalance-mod__/graphics/icon/beacon2.png", icon_size = 64, icon_mipmaps = 4}, {i...
--------------------------------- --! @file StringUtil.lua --! @brief 文字列操作関数定義 --------------------------------- --[[ Copyright (c) 2017 Nobuhiko Miyamoto ]] local StringUtil= {} --_G["openrtm.StringUtil"] = StringUtil -- 文字列先頭の空白削除 -- @param _str 文字列 -- @return 空白削除後の文字列 StringUtil.eraseHeadBlank = function(_str)...
ui.SysMsg("==== addonLoader ===="); addonloader = {}; addonloader.loaded = false; -- ====================================================== -- settings -- ====================================================== addonloader.settings = {}; addonloader.settings.devMode = false; addonloader.settings.closeAfter = true; -...
-- Called when Bet is cast on enemies function gambler_bet_on_spell_start(keys) local caster = keys.caster local target = keys.target local ability = keys.ability local radius = ability:GetLevelSpecialValueFor("radius", ability:GetLevel() - 1) local targetCurrentHP = target:GetHealth() local targetMaxHP = targ...
me = game.Players.xSoulStealerx if script.Parent.className ~= "HopperBin" then h = Instance.new("HopperBin",me.Backpack) h.Name = "LAZOR" script.Parent = h end bin = script.Parent function prop(part, parent, collide, tran, ref, x, y, z, color) part.Parent = parent part.formFactor = 0 part.CanCollide = collide part.Tr...
-- Store Service -- Crazyman32 -- December 1, 2015 -- Updated: December 31, 2016 -- Updated: March 2, 2017 --[[ Server: StoreService:HasPurchased(player, productId) StoreService.PromptPurchaseFinished(player, receiptInfo) Client: StoreService:HasPurchased(productId) StoreService:GetNumberPurc...
function ScornedSpiritofWater_OnSpawn(Unit,Event) Unit:CastSpell(36206) end RegisterUnitEvent(21131, 6, "ScornedSpiritofWater_OnSpawn")
registry = scene:GetRegistry() entity = registry:Create() registry:assign_NameComponent(entity) nameComp = registry:get_NameComponent(entity) nameComp.name = "LUAEntity" registry:assign_Transform(entity) tran = registry:get_Transform(entity) tran:SetLocalPosition(Vector3.new(10.0,0.0,-2.0)) registry:assign_MeshCompone...
----------------------------------- -- Area: GM Home -- NPC: Trader -- Type: Debug NPC for testing trades. ----------------------------------- function onTrade(player,npc,trade) if (trade:hasItemQty(4096,1) and trade:getItemCount() == 1) then player:startEvent(126); end end; function onTrigger(player...
theme_park_nightsister_outcast = Creature:new { objectName = "@mob/creature_names:nightsister_outcast", randomNameType = NAME_GENERIC, randomNameTag = true, socialGroup = "nightsister", faction = "nightsister", level = 81, chanceHit = 0.75, damageMin = 555, damageMax = 820, baseXp = 7761, baseHAM ...
PlazaKFWxCcsView = class("PlazaKFWxCcsView") PlazaKFWxCcsView.onCreationComplete = function (slot0) ClassUtil.extends(slot0, ZoomPopUpChildView, true, slot0, slot0.bg, slot0.view) slot0.model.gzhFileUrlChangedSignal:add(slot0.onGzhErweima, slot0) slot0.view.imgErWeiMa:setVisible(false) end PlazaKFWxCcsView.onGzhEr...
-- Load PBX groups from DDBB -- Copyright (C) 2013 Sipwise GmbH <development@sipwise.com> -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local lookup_query = [[ SELECT g.username, s.username, d.domain FROM provisioning.voip_subscribers AS s LEFT JO...
--Start of Global Scope--------------------------------------------------------- -- Delay in ms between visualization steps for demonstration purpose local DELAY = 1000 -- Creating viewer local viewer = View.create("viewer2D1") -- Setting up graphical overlay attributes local decoration = View.ShapeDecoration.creat...
--[[ Name: "sh_book_c.lua". Product: "HL2 RP". --]] local ITEM = {}; -- Set some information. ITEM.base = "book_base"; ITEM.name = "Community"; ITEM.cost = 5; ITEM.model = "models/props_lab/bindergreenlabel.mdl"; ITEM.uniqueID = "book_c"; ITEM.business = true; ITEM.description = "A green book with a patriarchal cross...
if UseItem(191) == true then goto label0 end; do return end; ::label0:: AddItemWithoutHint(191, -1); Talk(0, "谢前辈,这是成昆的项上人头.成昆作恶多端已遭天谴.", "talkname0", 1); Talk(13, "是吗?哈!哈!成昆啊,成昆!你作恶多端终遭天谴,但,可惜啊,可惜!我不能亲手杀了你.   ", "talkname13", 0); Talk(0, "成昆一事已了,谢大侠还是尽快回到中土,以免明教四分五裂.", "talkname0", 1); Talk(13,...
local StringBuffer = banana.Define("StringBuffer") function StringBuffer:__ctor() self.position = 0 self.string = banana.New("BitString") end function StringBuffer:GetString() return self.string end function StringBuffer:incrementPosition(n) self.position = self.position + 1 end function StringBuffe...
local class = require('middleclass') local Controller = require('mvc.Controller') local HasSignals = require('HasSignals') local TranslateView = require('app.helpers.TranslateView') local ChatController = class("ChatController", Controller):include(HasSignals) function ChatController:initialize() Controller.initiali...
local t = My.Translator.translate My = My or {} My.Comms = My.Comms or {} My.Comms.UpgradeBroker = Comms:upgradeBrokerFactory({ -- the label that leads to these commands label = t("comms_upgrade_broker_label"), mainScreen = function(screen, comms_target, comms_source, info) if Util.size(info.upg...
Config = {} Config.DrawDistance = 1000.0 Config.Locale = 'de' Config.Plates = { taxi = "TAXI", fisherman = "FISH", cop = "LSPD", ambulance = "EMS", depanneur = "MECA", fuel = "FUEL", lumberjack = "BUCH", miner = "MINE", reporter = "JOUR", slaughterer = "ABAT", textil = "COUT" }...
-- Freezer: Freezes arbitrary actions while the user is looking at a script -- Used to prevent a test the user is editing from requiring after every key-press local StudioService = game:GetService("StudioService") local stepped = game:GetService("RunService").Stepped local Freezer = {} Freezer.__index = Freezer functio...
-- Load Profile(GUID) or PlayerNumber function profile_or_player(pn) if PROFILEMAN:IsPersistentProfile(pn) then return PROFILEMAN:GetProfile(pn):GetGUID(); else return ToEnumShortString(pn); end; end; -- ComboGraphic function ComboGraphic(pn) local profile_or_player = profile_or_player(pn); local readpref = R...
--NOTE: using LUA 5.3 --Beside all the basic language --All available standard functions in {string, math, table} plus {tonumber, tostring, type} can be used here -- NOTE: -- This script does NOT use LINE_OFFSET, much better -- Some other word types exist in the EXML file. YOU COULD ADD THEM ALSO... -- WORDS_TO_LEAR...
-- TppMain start script Fox.Log("Tpp/start.lua") -- 変えてみる Y.Ogaito 2010.10.29 -- 起動ロードアイコン用ftexリクエスト UiDaemon.SetPrefetchTexture( "/Assets/tpp/ui/ModelAsset/cmn_loadmark/Pictures/cmn_loadmark_logo_mini_nmp.ftex" ) UiDaemon.SetPrefetchTexture( "/Assets/tpp/ui/ModelAsset/cmn_loadmark/Pictures/cmn_loadmark_logo_mini.ftex...
-- Filename: main.lua -- Author: Luke Perkin -- Date: 2010-02-25 -- Initialization goo = require 'goo/goo' anim = require 'anim/anim' panels = {} panels.name = { 'Open panel with button', 'Slide in panel with checkbox', 'Zoom in panel with textinput and colorpick', 'using the null object', 'Change skin', 'Multiline T...
----------------------------------- -- -- tpz.effect.WEAKENED_DAZE_3 -- ----------------------------------- function onEffectGain(target,effect) target:addMod(tpz.mod.MEVA, -20) end function onEffectTick(target,effect) end function onEffectLose(target,effect) target:delMod(tpz.mod.MEVA, -20) end
local DEFAULT_COLORS = { bg = "#1e1e1e", fg = "#d4d4d4", fg_dark = "#5a5a5a", orange = '#CE9178', light_blue = '#4e94ce' } -- Overwrite default colors with custom user defined colors local colors = vim.tbl_deep_extend('force', DEFAULT_COLORS, vim.g.glance_colors or {}) return colors
local M = {} local api = vim.api M.init = function(opts) local dir_hl = "FilittleDir" local link_hl = "FilittleLink" vim.cmd(("highlight %s guifg=#82aaff"):format(dir_hl)) vim.cmd(("highlight %s guifg=#7fdbca"):format(link_hl)) local ns = api.nvim_create_namespace("filittle") api.nvim_buf_cle...
local miniGameName = "colorblinded"; local miniGamePath = "miniGames/colorblinded/"; --utils:log(miniGameName, "Loaded"); local miniGameBase = require("miniGames.miniGameBase"); local scene = miniGameBase:newMiniGameScene(miniGameName); -- Game instructions. scene.instructions = "Radiation meets turtles! How else do...
return "test"
local _, Engine = ... local Module = Engine:GetModule("ActionBars") local MenuButtonWidget = Module:SetWidget("Template: MenuButton") -- Lua API local setmetatable = setmetatable -- WoW API -- our new flyout template local MenuButton = CreateFrame("CheckButton") local MenuButton_MT = { __index = MenuButto...
local K, C = unpack(select(2, ...)) local Module = K:GetModule("Miscellaneous") local _G = _G local pairs = _G.pairs local table_insert = _G.table.insert local GetSpellCooldown = _G.GetSpellCooldown local GetSpellInfo = _G.GetSpellInfo local InCombatLockdown = _G.InCombatLockdown local IsCurrentSpell = _G.IsCurrentSp...
--[[ ZJUT Drcom Cliet Luci configration page. Made By Shangjiyu ]]-- local fs = require "nixio.fs" local drcom=(luci.sys.call("pidof drcom > /dev/null") == 0) if drcom then m = Map("drcom", translate("Dr.COM"), translate("Dr.COM is running")) else m = Map("drcom", translate("Dr.COM"), translate("Dr.COM is not runn...
return function(ASS, ASSFInst, yutilsMissingMsg, createASSClass, re, util, unicode, Common, LineCollection, Line, Log, SubInspector, Yutils) local CommandBase = createASSClass("Draw.CommandBase", ASS.Tag.Base, {}, {}) function CommandBase:new(args) local args = {self:getArgs(args, 0, true)} if ...
H.keymap('n', '<leader>tq', ':lua require("harpoon.term").gotoTerminal(0)<cr>', { silent = true }) H.keymap('n', '<leader>tw', ':lua require("harpoon.term").gotoTerminal(1)<cr>', { silent = true }) H.keymap('n', '<leader>te', ':lua require("harpoon.term").gotoTerminal(2)<cr>', { silent = true }) H.keymap('n', '<leader>...
return { tlabel = { type = 'tlabel', fields = { caption = { type = 'string' }, left = { type = 'integer' }, top = { type = 'integer' }, width = { type = 'integer' }, height = { type = 'integer' }, alignme...
local system = require "coutil.system" function testobject(create, ...) do case "garbage generation" garbage.sock = assert(create(...)) done() end do case "garbage collection" garbage.sock = assert(create(...)) gc() assert(garbage.sock == nil) assert(system.run() == false) done() end do case "...
--nvim tree config vim.g.nvim_tree_ignore = {'.git'} vim.g.nvim_tree_indent_markers = 1 require'nvim-tree'.setup { disable_netrw = true, -- disables netrw completely hijack_netrw = true, -- hijack netrw window on startup open_on_setup = true, -- open the tree when running this setup function ignore_ft_o...
require 'totem' require 'nngraph' local test = {} local tester = totem.Tester() function test.test_output() local input = {torch.randn(7, 11)} local module = nngraph.JustElement() tester:eq(module:forward(input), input[1], "output") end function test.test_grad() local input = {torch.randn(7, 11)} loca...
--[[ MIT License Copyright (c) 2018 JWRR.COM git clone https://github.com/jwrr/lued.git 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 righ...
require 'spec.helper' describe('pb.standard.unpack', function() before(function() pb = require 'pb' repeated = require 'spec.fixtures.repeated' repeated_packed = require 'spec.fixtures.repeated_packed' bid_request = require 'spec.fixtures.bid_request' end) it('should unpa...
local base_layer = require("app.public.base.base_layer") local layer_auto_fight = class("layer_auto_fight", base_layer) local ui_fight_user = require("app.views.ui.ui_fight_user") local gate_manager = require("app.public.config.gate_manager") local enemy_manager = require("app.public.config.enemy_manager") local public...
require 'string' _ = require 'moses' require 'xlua' require 'fs' require 'os' require 'sys' require 'lfs' require 'torchx' require 'json' hypero = {} torch.include('hypero', 'utils.lua') torch.include('hypero', 'Postgres.lua') torch.include('hypero', 'Connect.lua') torch.include('hypero', 'Battery.lua') torch.include...
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules local Roact = require(Modules.Packages.Roact) local RoactRodux = require(Modules.Packages.RoactRodux) local UIBlox = require(Modules.Packages.UIBlox) local SecondaryButton = UIBlox.App.Button.SecondaryButton local withStyle = U...
-- Team Changer GUI by DontEatThemCookies [02/19/2022] -- Declarations local Player = game:GetService("Players").LocalPlayer local Teams = game:GetService("Teams") local TeamGui = script.Parent local Event = TeamGui:WaitForChild("TeamGuiEvent") local Frame = TeamGui.ButtonFrame local Ref = Frame.Reference local Udim2 ...
--- The cvars library allows you to control what happens when a cvar (console variable) is changed. _G.cvars = {} --- Adds a callback to be called when the named convar changes. --- 🦟 **BUG**: [This does not callback convars in the menu state.](https://github.com/Facepunch/garrysmod-issues/issues/1440) --- 🦟 **...
-- utils.lua module("utils", package.seeall) local json = require("json") function tablelength(T) local count = 0 for _ in pairs(T) do count = count + 1 end return count end -- http://lua-users.org/wiki/TableSerialization function table_print (tt, indent, done) done = done or {} indent = indent o...
local function starts_with(str, start) return str:sub(1, #start) == start end local more_module_slots_defines = require('defines') local can_have_modules = { ['assembling-machine'] = settings.startup[more_module_slots_defines.names.settings.assembling_machine].value, ['furnace'] = settings.startup[more_mo...
lsp = require('lspconfig') lsp.rnix.setup{} lsp.bashls.setup{} vim.api.nvim_exec([[ autocmd! BufWritePost *.nix,*.sh :lua vim.lsp.buf.formatting() ]], false)
local server = require "nvim-lsp-installer.server" local dotnet = require "nvim-lsp-installer.core.managers.dotnet" return function(name, root_dir) return server.Server:new { name = name, root_dir = root_dir, languages = { "f#" }, homepage = "https://github.com/fsharp/FsAutoComplete...
/* * @package : rlib * @author : Richard [http://steamcommunity.com/profiles/76561198135875727] * @copyright : (C) 2018 - 2020 * @since : 1.0.0 * @website : https://rlib.io * @docs : https://docs.rlib.io * * MIT License * * THE SOFTWARE IS PROVIDED "AS IS",...
Physical = require("entities.core.physical") Tile = class("Tile", Physical) function Tile:initialize(w, h, collisiongroup) self.collisiongroup = collisiongroup or "shared" self.solid = true self.width = w self.height = h self.type = "TILE" self:initPhysics() end function Tile:destroy() ...
local function GetExploit() local exploit = "Unknown" local exploits = { ["syn"] = "Synapse", ["SENTINEL_LOADED"] = "Sentinel", ["is_sirhurt_closure"] = "Sirhurt", ["PROTOSMASHER_LOADED"] = "ProtoSmasher", ["KRNL_LOADED"] = "Krnl", ["WRDAPI"] = "WeAreDevs", ...
-- local log = require("hs.logger").new("t_named") -- local inspect = require("hs.inspect") local require = require local test = require("cp.test") local named = require("named") return test.suite("named"):with( test("call", function() local o = named(0x01, "test") ok(eq(o:name(), test)) en...
local Player = game:GetService("Players").LocalPlayer local Character = Player.Character local Torso = Character.Torso ca=CFrame.Angles cn=CFrame.new it=Instance.new rd=math.rad v3=Vector3.new Interpolate = function(CFrame1, CFrame2) local Table1 = {CFrame1:components()} local Table2 = {CFrame2:components()} local...
function menudraw() lg.setCanvas(canvas3) bg(0,0,0,0) lg.setCanvas(canvas) bg(153/255.0,152/255.0,100/255.0) title=title or '' titlelock=titlelock or 1 if t%2==0 and bar_dist==0 then if #title<#'MOMENTUM' then title=title..string.char(random(33,96)) end for i=titlelock,...
function onCreate() -- background shit makeLuaSprite('happy', 'happy', -600, -300); setScrollFactor('happy', 0.9, 0.9); addLuaSprite('happy', false); close(true); --For performance reasons, close this script once the stage is fully loaded, as this script won't be used anymore after loading the stage end
function sinxshake(pos, a, s, t) local p = pos.x for i = 1, t do pos.x = p + sin(i*s/10)*(a/i*a) yield() end pos.x = p end function clearcoroutines() for c in all(coroutines) do del(coroutines, c) c = nil end parts, tran, flock, rspwn, nextlvl = nil, nil, nil, nil, nil end function resumecoroutines() ...
--- 赌马Gui模块 --- @module Gui Snail, client-side --- @copyright Lilith Games, Avatar Team local GuiSnail, this = ModuleUtil.New('GuiSnail', ClientBase) local gui local snailBtn = {} local snailIndex = 0 local arrowEffect = {} local emoText = {} -- 蜗牛心情 local snailEmo = { 'Normal', 'Happy', 'Sad', 'Excit...
-- The __common.ack__ module provides an interface to the -- [ack](http://betterthangrep.com/) command line utility for searching -- in a directory of source files.<br> -- As an alternative Textadept's find in files can be used. -- Ack runs on Windows as well, but since it is not a package -- repository away, Lua ...
local gl = require 'galaxyline' local gls = gl.section local devicons = require 'nvim-web-devicons' local vcs = require 'galaxyline.provider_vcs' gl.short_line_list = {'vim-plug', 'tagbar', 'Mundo', 'MundoDiff', 'coc-explorer', 'startify'} -- Gruvbox local colors = { bg0_h = '#1d2021', bg0 = '#282828', bg1 = '#...
local cmd, fn = vim.cmd, vim.fn local g = vim.g local fmt = string.format local M = {} M.modes = { ['?'] = {text = '???', state = 'inactive'}, ['n'] = {text = 'NOR', state = 'normal'}, ['i'] = {text = 'INS', state = 'insert'}, ['R'] = {text = 'REP', state = 'replace'}, ['v'] = {text = 'VIS', state = 'visual'...
local M = {} local function matches(patterns, toMatch) if (patterns) then for _, pattern in ipairs(patterns) do local isMatching = not (string.find(toMatch, pattern) == nil) if (isMatching) then return true end end end return false end function M.shouldProcessRequest(config) return not mat...
local TunedVehs = {} local currentVehicle = nil RegisterNetEvent('mythic_veh:client:EnteredVehicle') AddEventHandler('mythic_veh:client:EnteredVehicle', function(currVeh, currSeat, name) if currentVehicle ~= currVeh then SendNUIMessage({ action = 'ResetVehicle' }) currentVehi...
if get_application_name() == "zathura" then set_window_workspace(6) end
--[[ --Copyright (c) 2022 Bruno Sales <baliestri@icloud.com>. Licensed under the MIT license. --See the LICENSE file in the repository root for full license text. --]] local function createLanguagesGroup(palette, aura) return { -- CSS cssTagName = aura.Purple, cssSelectorOp = aura.Purple, cssSelector...
return {'cajun','cajun','cajunmuziek','cajunkruiden','cajunkeuken','cajuns'}
spawned = false flintLocation = vec3.new(-62.0, 0.0, 182.0) parksLocation = vec3.new(-83.0, 0.0, 1334.0) contactId = 0; -- This could be removed if the dialog button included which contact/entity the player was interacting with. entity_interact = function(id, location) if location ~= nil then prin...
#!/usr/bin/env sysbench -- you can run this script like this: -- $ ./prime-test.lua --cpu-max-prime=20000 --threads=8 --histogram --report-interval=1 run sysbench.cmdline.options = { -- the default values for built-in options are currently ignored, see -- https://github.com/akopytov/sysbench/issues/151 [...
-- -- File: _init.lua --[[ This is a template for the LFS equivalent of the SPIFFS init.lua. It is a good idea to such an _init.lua module to your LFS and do most of the LFS module related initialisaion in this. This example uses standard Lua features to simplify the LFS API. For Lua 5.1, the first section...
--------------------------- -- Dark awesome theme -- --------------------------- local theme_name = "dark" local theme_assets = require("beautiful.theme_assets") local xresources = require("beautiful.xresources") local dpi = xresources.apply_dpi local gfs = require("gears.filesystem") local themes_path = gfs.get_theme...
------ Misc -- vim.opt.exrc = true -- vim.opt.secure = true -- vim.opt.hidden = true -- vim.opt.scrolloff = 8 -- vim.opt.hidden = true -- vim.opt.scrolloff = 8 -- vim.opt.wrap = false -- vim.opt.signcolumn = "yes" -- not quite sure what this does -- set colorcolumn=80 -- set noerrorbells vim.opt.clipboard = "unnamedplu...
--[=[ Utility functions involving badges on Roblox @class BadgeUtils ]=] local BadgeService = game:GetService("BadgeService") local require = require(script.Parent.loader).load(script) local Promise = require("Promise") local BadgeUtils = {} --[=[ @interface BadgeInfoDictionary .Name string -- The name of the ...
require('plugins.dadbod-ui.variables')
local GuidWarden = LibStub("AceAddon-3.0"):NewAddon( 'GuidWarden', 'AceConsole-3.0', 'AceComm-3.0', 'AceEvent-3.0', 'AceSerializer-3.0' ) local db --local LibDeflate = LibStub:GetLibrary("LibDeflate") local genderTable = { "Unknown", "Male", "Female" } local options = { name = 'GuidWarden', handler = GuidWarden,...
-- ============================================= -- -== Vim Bufferline ==- -- ============================================= local colorizer = require("colorizer") colorizer.setup({ "*" }, { RGB = true, -- #RGB hex codes RRGGBB = true, -- #RRGGBB hex codes names = true, -- "Name" codes like Blue RRGGBBAA ...
local type, pairs = _G.type, _G.pairs local libpath = select(1, ...):match(".+%.") or "" local NIL = require(libpath .. "nil") local function dopatch(tbl1, tbl2, nilval) if tbl1 ~= tbl2 then if type(tbl2) == "table" and type(tbl1) == "table" then local result = {} for k, v in pairs(tbl1) do result[k] = ...
----------------------------------- -- Area: Tahrongi Canyon -- NPC: Tahrongi Cacti -- Involved in Quest: Say It with Flowers -- !pos -308.721 7.477 264.454 ----------------------------------- local ID = require("scripts/zones/Tahrongi_Canyon/IDs") require("scripts/globals/quests") ----------------------------------- ...
---@class tf.TFFunction --- TF_Function is a grouping of operations with defined inputs and outputs. --- Once created and added to graphs, functions can be invoked by creating an --- operation whose operation type matches the function name. local M = class('tf.TFFunction') local lib = require('tf.c._c_api') local libex...
------------------------------------------------------------------ -- HelpInfoConfig.lua -- Author : XueXL -- Version : 1.15 -- Date : -- Description: 帮助配置, ------------------------------------------------------------------ module("HelpInfoConfig", package.seeall) function getHelpInf...
modifier_invoker_walk_custom = class({}) function modifier_invoker_walk_custom:IsHidden() return false end function modifier_invoker_walk_custom:IsDebuff() return false end function modifier_invoker_walk_custom:IsPurgable() return true end function modifier_invoker_walk_custom:OnCreated(kv) self.speed_buff_...
local type = type local assert = assert local ssub = string.sub local char = string.char local mlog = math.log local mexp = math.exp local msqrt = math.sqrt local mcos = math.cos local msin = math.sin local mrandom = math.random local mrandomseed = math.randomseed local NV_MAGIC = 4 * mexp(-0.5) / msqrt(2.0) local ...
-- -- define the extension -- premake.extensions.compilationunit = { -- -- these are private, do not touch -- enabled = false, numcompilationunits = 8, compilationunits = {} } -- -- Specify the path, relative to the current script or absolute, where the compilation -- unit files will be stored. This is manda...
local encoding = require 'core.encoding' local assert, describe, it = assert, describe, it describe('core.encoding', function() it('', function() assert.not_nil(encoding) end) end)
project "Example" kind "WindowedApp" location (action) objdir (builddir .. "/obj") targetdir (bindir) SetupNativeProjects() files { "**.h", "**.cpp", "**.cpp", } includedirs { srcdir, incdir, "../inc/vapor", "../dep/freetype/include", "../dep/glew/include", "../dep/lua/include", "../d...
local Template = require "oil.dtests.Template" local template = Template{"Client"} -- master process name Server = [=====================================================================[ ObjectMapMeta = {} orb = oil.dtests.init{ port = 2809, objectmap = setmetatable({}, ObjectMapMeta), } if oil.dtests.flavor.corba...