content
stringlengths
5
1.05M
version = 4 loopStart = 224442 loopEnd = 288549 envelope = { { distance = 0, volume = 1.0, reverb = 0, duration = 0, equalizer = { 1, 1, 1, 1, 1, 1, 1, 1, }, }, { distance = 441.666656, volume = 0.48, reve...
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') function ENT:Initialize() self.flightvector = self.Entity:GetForward() * ((110*52.5)/66) self.timeleft = CurTime() + 10 self.Owner = self:GetOwner() if ( file.Exists( "models/conviction/proxmine.mdl", "GAME" ) ) then self.Entity:SetMo...
--- -- @author wesen -- @copyright 2019-2021 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local GlobalCallbackFunctionNotFoundException = require "AC-LuaServer.Core.Event.Exception.GlobalCallbackFunctionNotFoundException" local InvalidCallbackFunctionException = require "AC-LuaServer.Core.Event.Exception...
function Eykenen_OnEnterCombat(Unit,Event) Unit:CastSpell(32734) Unit:RegisterEvent("Eykenen_EarthShield", 43000, 0) Unit:RegisterEvent("Eykenen_EarthShock", 10000, 0) end function Eykenen_EarthShield(Unit,Event) Unit:CastSpell(32734) end function Eykenen_EarthShock(Unit,Event) Unit:FullCastSpellOnTarget(13281,U...
local AddonName, AddonTable = ... AddonTable.gundrak = { -- Slad'ran 35583, 37626, 37627, 35584, 157578, 37628, 35585, 37629, -- Drakkari Colossus 35590, 37636, 37635, 35591, 35592, 37634, 37637, -- Moorabi 37631, 35587, 37633, 1575...
local cutils = require 'libcutils' local ffi = require 'ffi' local cmem = require 'libcmem' local cVector = require 'libvctr' local Scalar = require 'libsclr' local to_scalar = require 'Q/UTILS/lua/to_scalar' local is_in = require 'Q/UTILS/lua/is_in' local get_ptr = require 'Q/UTILS/lua/get_ptr...
local HideNSeek local node_description = { description = "The initial node", tiles = {"wool_white.png"}, is_ground_content = true, groups = { oddly_breakable_by_hand = 3 }, on_construct = function(pos) local meta = minetest.get_meta(pos) meta:set_string("formspec", "field[text;;${text}]") end, o...
---@class CS.FairyEditor.View.DocumentFactory ---@field public contextMenu CS.FairyEditor.Component.IMenu ---@type CS.FairyEditor.View.DocumentFactory CS.FairyEditor.View.DocumentFactory = { } ---@return CS.FairyEditor.View.DocumentFactory function CS.FairyEditor.View.DocumentFactory.New() end ---@return CS.FairyEdito...
local Utils = {} function Utils.addPlayerPoints(x) for _, e in pairs(Utils.getEngine().entities) do if e:has("IsPlayer") then e:get("RemainingPoints"):add(x) break end end end function Utils.getCenter() return {x = love.graphics.getWidth() / 2, y = love.graphics.getHeight() / 2} end local e...
-- verify that pitches are rendered correctly abclua = require "abclua" function get_durations(stream, event) -- return a table representing the computed durations of each note local notes = {} event = event or 'note' for i,v in ipairs(stream) do if v.event==event then ...
local Map = {} local Center = require("./Graph.Center") local Corner = require("./Graph.Corner") local Edge = require("./Graph.Edge") local cornerLookup = {} local centerLookup = {} local edgeLookup = {} function Map:new (o) local o = o or { centers = {}, corners = {}, edges = {}, SIZE = 256 } setmetatable...
-- Gemeinschaft 5 module: phone class -- (c) AMOOMA GmbH 2012-2013 -- module(...,package.seeall) Phone = {} -- create phone object function Phone.new(self, arg) arg = arg or {} object = arg.object or {} setmetatable(object, self); self.__index = self; self.log = arg.log; self.database = arg.database; ...
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild -- -- This file is compatible with Lua 5.3 local class = require("class") require("kaitaistruct") -- -- Native format of Hashcat password "recovery" utility -- See also: Source (https://hashcat.net/wiki/doku.php?id=hc...
--Copyright: https://github.com/coolsnowwolf/lede/tree/master/package/lean/luci-app-cpufreq --Planner: https://github.com/unifreq/openwrt_packit --Extended support: https://github.com/ophub/luci-app-amlogic --Function: Support multi-core local fs = require "luci.fs" local mp --Remove the spaces in the string function...
function Schema:PlayerSwitchFlashlight(ply) return ply:IsEmployee() end function Schema:PlayerTick(ply) ply:SetDuckSpeed(0.4) ply:SetUnDuckSpeed(0.4) end
require('luvit-test/helper') local _ = require('../lib/ludash') local people = { { name = 'Robert', age = 24 }, { name = 'Simona', age = 29 }, { name = 'Jekyll', age = 26 }, { name = 'Aurora', age = 24 } } local function twentyFour (human, ...) return human.age == 24 end local function byAge (a, b) return a.n...
----------------- -- Pathfinding -- ----------------- ---- Ver 1.0 ---- -- Thanks to Oil_boi for base code ---------------------- -- Helper Functions -- ---------------------- local function hitbox(self) return self.object:get_properties().collisionbox end local function hitbox_index(self, pos) local...
local PANEL = {} --[[--------------------------------------------------------- Function: Init -----------------------------------------------------------]] function PANEL:Init() --> Variables self.URL = "" --> HTML self.HTML = vgui.Create("HTML", self) self.HTML:Dock(FILL) end --[[-----------...
function QuickApp:setPresenceStatus(status) if status == "Away" then self:updateProperty('value', false) else self:updateProperty('value', true) end self:updateView("presenceStatus", "text", status) end function QuickApp:loginUnifi() if self.cookie == nil then self.http:requ...
-- Saved settings setup for OmniCC local AddonName, Addon = ... local DB_NAME = AddonName .. "DB" local DB_VERSION = 5 local LEGACY_DB_NAME = "OmniCC4Config" function Addon:InitializeDB() self.db = LibStub("AceDB-3.0"):New(DB_NAME, self:GetDBDefaults(), DEFAULT) self.db.RegisterCallback(self, "OnProfileChanged", ...
help([[The MPFR library is a C library for multiple-precision floating-point computations with correct rounding. - Homepage: http://www.mpfr.org]]) whatis([[Description: The MPFR library is a C library for multiple-precision floating-point computations with correct rounding. - Homepage: http://www.mpfr.org]]) loc...
local error = error local string = require "string" module "objc.typeencoding" function skipqualifier(s) return string.match(s,"^[rnNoORV]*(.*)") end function skiptype(s) s = skipqualifier(s) if string.match(s,"^[cislqCISLQfdBv*@#:?]") then return string.match(s,"^.(.*)") elseif string.match(s,"^%b[]") the...
local mail = require "resty.mail" local message = require "resty.mail.message" describe("message get_body", function() it("contains message-id, which uses 'from' host", function() local msg = message.new(mail.new({ domain = "example.com" })) assert.matches("Message%-ID: <.+@example.com>", msg:get_body_string...
acklibrary { name = "lib", srcs = { "./*.e", "./*.c", "plat/em/libsys/*.c", "plat/em/libsys/*.e", }, deps = { "plat/em/libsys/*.h", "lang/cem/libcc.ansi/headers+headers", "plat/em22/include+pkg", "h+emheaders", }, vars = { plat = "em22" } }
--[[ Author: TheOriginalBIT Version: 2.0.4 Created: 03 Jan 2013 Last Update: 17 Feb 2013 License: COPYRIGHT NOTICE Copyright © 2013 Joshua Asbury a.k.a TheOriginalBIT [theoriginalbit@gmail.com] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
help([[Szip compression software, providing lossless compression of scientific data - Homepage: http://www.hdfgroup.org/doc_resource/SZIP/]]) whatis([[Description: Szip compression software, providing lossless compression of scientific data - Homepage: http://www.hdfgroup.org/doc_resource/SZIP/]]) local root = "/opt/...
local o = vim.o local fn = vim.fn local api = vim.api local augroup = dm.augroup -- Clear command-line messages {{{1 do local timer local timeout = 5000 -- Automatically clear command-line messages after a few seconds delay -- Source: https://unix.stackexchange.com/a/613645 augroup("dm__clear_cmdline_messa...
require "xlog" require "xconst" require "xclass" require "xpack" local log = xlog("xpackage") xpackage = xclass { __parent = xpack, __create = function (self, code, id_from, id_to, buffer) self = xpack.__create(self, buffer) self.code = assert(code, "no code") self.id_from = assert(id_from, "no id_from") ...
Hooks:PostHook(CrimeSpreeTweakData, "init", "HCSP_crimespreetweakdata", function(self) --remove rewards for var1 = 1, 5, 1 do self.rewards[var1].amount = 0 end self.all_cosmetics_reward.amount = 0 self.cosmetic_rewards = {} --rework cs --damage/health modifier every 100k spree self.modifier_levels...
local name = "fzf" local version = "0.29.0" food = { name = name, description = "command line fuzzy finder", homepage = "https://github.com/junegunn/fzf", version = version, packages = { { os = "darwin", arch = "amd64", url = "https://github.com/junegunn...
--interface: -- output.short_status -- output.descriptive_status -- output.currently_executing local output = function() local success_string = function(test_index, test_status) return string.format("ok %d - %s", test_index, test_status.description) end local failure_string = function(test_index, test_st...
#!/usr/bin/lua -- cal_simple.lua t = {69,76,78,63,70,60,61,62,80,60,83,61,65,63,60,76,66,60,77,72,60,60,65,82,80,78,70,84,85,86,83,95,100,90,88,95,81,76,80,79,80,60,81,84,80,85,72,76,73,87,60,85,75,80,80,75,78,91,88,80,71,80,90,88,100} numA = 0 numB = 0 for i = 1, #t do numA = math.floor(( t[i] - 50.0 ) / 10.0 ) ...
function plugindef() finaleplugin.RequireSelection = true finaleplugin.Author = "Carl Vine" finaleplugin.AuthorURL = "http://carlvine.com" finaleplugin.Copyright = "CC0 https://creativecommons.org/publicdomain/zero/1.0/" finaleplugin.Version = "v0.50" finaleplugin.Date = "2022/05/17" finalep...
local hierarchyMenu hierarchyMenu = require("./hierarchy.lua"){ parent = core.construct("guiFrame", { parent = core.interface, zIndex = 10, size = guiCoord(1, 0, 1, 0) }), size = guiCoord(0, 400, 0, 800), position = guiCoord(0, 50, 0, 0), defaultBackgroundColour = colour(0.0, 0.0, 0.0), defaultTextColour ...
-- This program builds for ARM/x64 concretely local test_prog = Program { Name = "test_prog", Sources = { "main.c" }, Config = { "macos-arm-*", "macos-x64-*" }, } -- This build step glues together programs DefRule { Name = "Lipo", Annotation = "Lipo $(@)", Command = "lipo -create -output $(@) $(<)", Blueprint =...
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] -- ####################################### -- ## Project: iL...
depends_on(between("bar","1.2","<1.4"))
local o = require("nvim-lsp-ts-utils.options") local s = require("nvim-lsp-ts-utils.state") local u = require("nvim-lsp-ts-utils.utils") local ts_utils = require("nvim-lsp-ts-utils") local import_all = require("nvim-lsp-ts-utils.import-all") local watcher = require("nvim-lsp-ts-utils.watcher") local pwd = vim.api.nvim...
PowerUp = class("PowerUp",Obj) PowerUps = {} function PowerUp:initialize(x,y) Obj.initialize(self,Images.POWERUP_IMG,POWERUP_R) self.x = x self.y = y self.bigTick = 0 self.hp = POWERUP_VALUE end function PowerUp:update(dt) self.y = self.y + POWERUP_SPEED self:updateBox(dt) end function PowerUp:getHp() retur...
local isTired = false local player = Game.GetLocalPlayer() local Stamina = script:GetCustomProperty("Stamina") local StaminaRate = script:GetCustomProperty("StaminaChange") local Running = false local MaxStamina = script:GetCustomProperty("MaximumStamina") local KeyBind = script:GetCustomProperty("SprintKey") local hol...
--[[ 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 not use ...
local pps = require('pipes') local log = require('pipes.logger') pps.dispatch('error', function(err) log.error('sock_test1 caught err:'..err) end) local sock = require('pipes.socket') local args = {...} local sid = args[1] local pid = args[2] log.info('sock_test1 start') --print('sock_test1, pid=', pid) --pps.s...
IncludeDir = {} IncludeDir["glfw"] = "%{wks.location}/Vega/vendor/glfw/include/glfw" IncludeDir["glew"] = "%{wks.location}/Vega/vendor/glew/include" IncludeDir["ImGui"] = "%{wks.location}/Vega/vendor/imgui" IncludeDir["glm"] = "%{wks.location}/Vega/vendor/glm/glm" LibraryDir = {}
-- Input file based on Gorler et al, Phys Plasmas 23 (2016) -- ITG with adiabatic electron case, see section IV.A of paper -- 'Local' geometry (narrow domain in x) -- Plasma ------------------------------------------------------------------------ local Plasma = require ("App.PlasmaOnCartGrid").Gyrokinetic() local Cons...
---- -- -- Example of how to create defined names with the xlsxwriter.lua module. -- -- This method is used to define a user friendly name to represent a value, -- a single cell or a range of cells in a workbook. -- -- Copyright 2014, John McNamara, jmcnamara@cpan.org -- local Workbook = require "xlsxwriter.workbook" ...
local modemsFound = false for _, v in pairs(rs.getSides()) do if peripheral.getType(v) == "modem" then rednet.open(v) modemsFound = true end end if not modemsFound then printError("No modems attached") return end local tArgs = {...} if #tArgs < 1 then print("Usage: netsend <file> [<name>]") return end loca...
local try = require "try-catch-finally" -- full test try(function() print("in try block") error("raise an error..") end). catch(function(ex) print("catch the error: " .. ex) end). finally(function() print("in finally block") end) print("after try-catch-finally") --- finally fires even without catc...
function RTRank:updateText(msg) self.frame.text:SetText(msg) local width = self.frame.text:GetStringWidth() self.frame:SetWidth(width) end -- event handlers should maybe not be in frontend file function RTRank.events:PLAYER_ENTERING_WORLD(...) local isInitialLogin, isReloadingUi = ... if isInitialLogin or isReloa...
local http_request = require "http.request" local http_tls = require "http.tls" local openssl_ssl = require "openssl.ssl" local helpers = require "spec.helpers" local cjson = require "cjson" local meta = require "kong.meta" local tonumber = tonumber local null = ngx.null local HTTP_PROXY_HOST = helpers.get_proxy_ip...
#!/usr/bin/env texlua -- Build script for LaTeX3 "l3doc" example files module = "l3doc-examples" -- Find and run the build system kpse.set_program_name("kpsewhich") if not release_date then dofile(kpse.lookup("l3build.lua")) end
local helpers = require('test.functional.helpers') local clear, execute, nvim = helpers.clear, helpers.execute, helpers.nvim local expect = helpers.expect local feed = helpers.feed local command = helpers.command describe(':emenu', function() before_each(function() clear() execute('nnoremenu Test.Test inorm...
---- -- @file PhysicsConstraintSliderBuilder ---- Brief description. -- <#Description#> -- @return <#return value description#> function PhysicsConstraintSliderBuilder:calculateSerializeBufferSize() end ---- Brief description. -- @author James Folk, 16-02-11 15:02:49 -- <#Description#> -- @param dataBuffer <#dataBu...
xy = ""; local keyboard = require("MHR_Overlay.Game_Handler.keyboard"); local quest_status = require("MHR_Overlay.Game_Handler.quest_status"); local screen = require("MHR_Overlay.Game_Handler.screen"); local singletons = require("MHR_Overlay.Game_Handler.singletons"); local time = require("MHR_Overlay.Game_Handler.tim...
ITEM.name = "Shevkoff Black Ultra Premium Vodka, 500ml" ITEM.description = "A bottle with a clear substance inside." ITEM.longdesc = "Ukrainian high-shelf vodka. Goes down incredibly smooth, and pulling one of these out of your bag will make you the most popular guy in your camp." ITEM.model = "models/lostsignalproject...
-- Copyright (c) 2021 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local maths = require "moonpie.math" local tables = require "moonpie.tables" local readOnly = require "moonpie.utility.read_only_table" local Position = {} local hashDB = {} loca...
function onEvent(name, value1, value2) if name == 'Change Default Zoom' then setProperty('defaultCamZoom', toNumber(value1)); --setProperty('camGame.zoom', toNumber(value1)); end print('Event triggered: ', name, value1, value2); end
-- this gets called starts when the level loads. function start(song) -- arguments, the song name end -- this gets called every frame function update(elapsed) -- arguments, how long it took to complete a frame end -- this gets called every beat function beatHit(beat) -- arguments, the current beat of the song end ...
description = [[ Attempts to enumerate the users on a remote Windows system, with as much information as possible, through two different techniques (both over MSRPC, which uses port 445 or 139; see <code>smb.lua</code>). The goal of this script is to discover all user accounts that exist on a remote system. This can be...
-- See https://github.com/nanotee/nvim-lua-guide for tips require("lspconfig").tsserver.setup({ on_attach = function(client, bufnr) client.resolved_capabilities.document_formatting = false client.resolved_capabilities.document_range_formatting = false local ts_utils = require("nvim-lsp-ts-u...
Task = class.new(); function Task:constructor(_func, _time) -- Ensure that we were given a function to execute. if( type(_func) ~= "function" ) then return end if( type(_time) == "number" ) then self.driver = 'relative'; elseif( type(_time) == "table" and _time.isPast ) then self.driver = 'timestamp'; end...
----------------------------------- -- Area: Lower Jeuno -- NPC: Vola -- Starts and Finishes Quest: Fistful of Fury -- Involved in Quests: Beat Around the Bushin (before the quest) -- !pos 43 3 -45 245 ----------------------------------- require("scripts/globals/status"); require("scripts/globals/settings"); require("...
function init(args) entity.setInteractive(true) if storage.state == nil then output(false) else output(storage.state) end if storage.timer == nil then storage.timer = 0 end self.interval = entity.configParameter("interval") end function onInteraction(args) if storage.state == false then ...
local M = { ATTACHED_UI = {}, UI_NS = vim.api.nvim_create_namespace('esearch_highlights'), LAST_PATH_SEPARATOR_RE = "/[^/]*$", ABOVE_OR_BELOW_ICON_RE = '^%s+[+^_]', LINENR_RE = '^%s+[+^_]?%s*%d+%s', } local function highlight_header(bufnr, text) vim.api.nvim_buf_add...
-- backgrounds AND labels (again because I'm lazy) local bgWidth = 256; -- was 256 local bgHeight = 22; -- was 24 local labelZoom = 0.75; local labelOffsetX = 127; -- was 64 local labelAlpha = 0.625; -- was 0.8 local labelSkew = -0.1; local t = Def.ActorFrame{}; t[#t+1] = Def.Quad{ Name="P1TopSep"; InitCommand=cmd...
local assets = require 'assets' local Signal = require 'lib.hump.signal' local love = love local lg = love.graphics local lk = love.keyboard local lgw, lgh, seaLevel,bar, wh local pad = 70 local bpad = 50 local sq = 26.5 local speed local flyTime = 60 return function() local p = {} local function resize() lgw =...
--Copyright 2013-2015 - Leystryku --Sharing this software, or re-selling it is a break against the law. AddCSLuaFile("autorun/client/cl_lvl.lua") util.AddNetworkString( "Level.ClientFile" ) util.AddNetworkString( "Level.Int_File" ) resource.AddSingleFile( "materials/sleeklvl/def/start.png" ) resource.AddSingleFile( ...
object_draft_schematic_droid_cyborg_crafting_headband = object_draft_schematic_droid_shared_cyborg_crafting_headband:new { } ObjectTemplates:addTemplate(object_draft_schematic_droid_cyborg_crafting_headband, "object/draft_schematic/droid/cyborg_crafting_headband.iff")
package.path = package.path..";?/init.lua" local M = require("appFunctionalX") return M
local inv_hlp = {} function inv_hlp.in_inventory(player, entity_name) local cnt = 0 if not global.player_state[player.index].bp_no_inv_checks and pcall(function() cnt = player.get_main_inventory().get_item_count(entity_name) end) then return (cnt>0) else return true end...
if (!file.Exists("autorun/vj_base_autorun.lua","LUA")) then return end ENT.Base = "base_ai" ENT.Type = "ai" ENT.PrintName = "Inn Keeper" ENT.Author = "DrVrej" ENT.Contact = "http://steamcommunity.com/groups/vrejgaming" ENT.Purpose = "Just a testing NPC." ENT.Instructions = "Don't change anything." ENT....
--This is an example that uses the PS-ITG-3200 Gyroscope on the I2C Bus on EIO4(SCL) and EIO5(SDA) --Outputs data to Registers: --X gyro = 46000 (degrees per second) --Y gyro = 46002 --Z gyro = 46004 fwver = MB.R(60004, 3) devType = MB.R(60000, 3) if (fwver < 1.0224 and devType == 7) or (fwver < 0.2037 and devType == ...
local function check_condition(key, value, mapblock_pos, building_def) local condition = building_lib.conditions[key] if condition and type(condition.can_build) == "function" then return condition.can_build(mapblock_pos, building_def, value) end return true end local function check_map(mode, map, mapblock_pos, ...
object_tangible_loot_npc_loot_tube_paste_generic = object_tangible_loot_npc_loot_shared_tube_paste_generic:new { } ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_tube_paste_generic, "object/tangible/loot/npc/loot/tube_paste_generic.iff")
--[[ ------------------------------------------------------------ Actor - the so-called NPCs that are part of this system. ------------------------------------------------------------ The name of the table key does not matter. The main thing is the team in which the actor is. Teams: 1. residents - main team for ...
NPC.Class = "npc_zm_poisonzombie" NPC.Name = translate.Get("npc_class_hulk") NPC.Description = translate.Get("npc_description_hulk") NPC.Icon = "VGUI/zombies/info_hulk" NPC.Flag = FL_SPAWN_HULK_ALLOWED NPC.Cost = GetConVar("zm_cost_hulk"):GetInt() NPC.PopCost = GetConVar("zm_popcost_hulk"):GetInt() NPC.Model = {"model...
local max_stars = 60 local bgm_volume = 10 local af = Def.ActorFrame{ StartSceneCommand=function(self) self:visible(true):smooth(1.5):diffuse(1,1,1,1) end } for i=1, max_stars do local x = math.random(1, _screen.w) local y = math.random(1, _screen.h) local w = math.random(1,3) af[#af+1]=Def.Sprite{ Texture=THE...
local LGPS = LibStub("LibGPS2") local LMP = LibStub("LibMapPing") HowToColossus = HowToColossus or {} local HowToColossus = HowToColossus local COLOSSUS = 1 local HORN = 2 local MAJOR_VULNE_ID = 122397 local MAJOR_FORCE_ID = 40225 local HORN_ID = 40224 local WROTHGAR_MAP_INDEX = 27 local WROTHGAR_MAP_STEP_SIZE = 1...
-- Importing modules local PutWarmer = require "elasticsearch.endpoints.Indices.PutWarmer" local MockTransport = require "lib.MockTransport" local getmetatable = getmetatable -- Setting up environment local _ENV = lunit.TEST_CASE "tests.endpoints.IndicesTest.PutWarmerTest" -- Declaring local variables local endpoint ...
local modal = hs.hotkey.modal.new({}, "F17") -- Enter Hyper Modal when HyperKey is pressed local pressHyper = function() modal.triggered = false modal:enter() end -- Leave Hyper Modal when Hyper key is pressed, -- send ESCAPE if no other keys are pressed. local releaseHyper = function() modal:exit() if not ...
-- oh no people are going to be mad at me for using coin mode what ever shall I do --[[ ########## #### #### ## ## ## #### #### ## ## ##XXXX## ##XXXX## ## ## ## XXXX ## XXXX ## ## ## ## ## ## ## ## ...
local InspectAndBuyFolder = script.Parent.Parent local Thunk = require(InspectAndBuyFolder.Thunk) local Analytics = require(InspectAndBuyFolder.Services.Analytics) local SetTryingOnInfo = require(InspectAndBuyFolder.Actions.SetTryingOnInfo) local requiredServices = { Analytics, } local BUNDLE = "Bundle" local ASSET ...
local infoview = require('lean.infoview') local helpers = require('tests.helpers') local fixtures = require('tests.fixtures') local position = require('lean._util').make_position_params helpers.setup { infoview = { autoopen = true }, lsp = { enable = true }, lsp3 = { enable = true }, } local lines describe('inf...
-- @description Clear glitchy stutter generator stored values -- @author Aaron Cendan -- @version 1.1 -- @metapackage -- @provides -- [main] . > acendan_Clear glitchy stutter generator stored values.lua -- @link https://aaroncendan.me -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~~~~~~~~~~~~~~~~ CLEA...
module("luci.controller.netkeeper-interception", package.seeall) function index() if not nixio.fs.access("/etc/config/netkeeper-interception") then return end local page page = entry({"admin", "services", "netkeeper-interception"}, cbi("netkeeper-interception"), _("Netkeeper Interception"), 100) page.dependent ...
Hooker = function(this) --modle = {钩头模型路径, 钩身模型路径} --size = {钩头缩放, 钩身缩放} --lookat = {模型朝向} --source = 起点 --from = 发起者 --x = 起点修正x --y = 起点修正y --z = 起点修正z --angle = 钩子角度 --speed = 钩子速度 --distance = 最大距离 --range = 判定范...
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE) function onGetFormulaValues(player, level, maglevel) min = -((level / 5) + (maglevel * 1.8) + 12) max = -((level ...
module("luci.controller.oled", package.seeall) function index() if not nixio.fs.access("/etc/config/oled") then return end local page = entry({"admin", "services", "oled"}, alias("admin", "services", "oled", "setting"),_("OLED")) page.order = 10 page.dependent = true page.acl_depends = { "luci-app-oled" } ent...
local root = am.root_audio_node() am._register_pre_frame_func(function() root:remove_all() end) function am.schedule_audio(audio_node) root:add(audio_node) end local buffer_cache = {} local function play_file(file, loop, pitch, gain) pitch = pitch or 1 gain = gain or 1 local buf = buffer_cache[f...
data:extend { { type = "bool-setting", name = "pam3-nvm2", setting_type = "startup", default_value = false, per_user = false, order = "a1" }, { type = "bool-setting", name = "pam3-esm3", setting_type = "startup", defaul...
local _G=_G module('passion.gui') Button = _G.class('passion.gui.Button', _G.passion.gui.Label) local VALID_OPTIONS = { 'onClick', 'onPress', 'onRelease', 'onMouseOver', 'onMouseOut', 'onFocus', 'onBlur', 'focus' } local _focus = nil local _setFocus= function(button) if(_focus ~= nil and _focus ~= button) the...
-- This file is part of the SAMP.Lua project. -- Licensed under the MIT License. -- Copyright (c) 2016, FYP @ BlastHack Team <blast.hk> -- https://github.com/THE-FYP/SAMP.Lua local BitStreamIO = require 'lib.samp.events.bitstream_io' local utils = require 'lib.samp.events.utils' BitStreamIO.PlayerScorePingMap = { r...
local qconsts = require 'Q/UTILS/lua/qconsts' local function TM_to_I2_specialize(tm_fld) local subs = {} assert(type(tm_fld) == "string") local fn if ( tm_fld == "tm_sec" ) then fn = "TM_to_sec" end if ( tm_fld == "tm_min" ) then fn = "TM_to_min" end if ( tm_fld == "tm_hour" ) then fn = "TM_to_hour" end ...
//unstuck config local function SetupDefaultConfig() local DefaultConfig = { } DefaultConfig.kMinimumWaitTime = 5 DefaultConfig.kTimeBetweenUntucks = 30 DefaultConfig.kUnstuckAmount = 1 DefaultConfig.kUnstuckChatCommands = { "stuck", "unstuck", "/stuck", "/unstuck" } return DefaultConfig end DAK:RegisterEventHo...
--[[-------------------------------------------------------------------------- -- -- File: UTActivity.Ui.Matchmaking.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: July 27, 2010 -- ----------------------------...
data:extend( { { type = "tool", name = "science-pack-steel1", icon = "__base__/graphics/technology/explosives.png", flags = {"goes-to-main-inventory"}, subgroup = "steel-pots", order = "a-steel2", stack_size = 200, durability = 1, durability_description_key = "description.science-pac...
--[[ ________ _______ ________ _____ ______ ___ ________ ________ ___ ________ ________ ________ |\ __ \|\ ___ \ |\ __ \|\ _ \ _ \|\ \|\ ____\ |\ ____\|\ \|\ __ \|\ ___ \|\ ____\ \ \ \|\ \ \ __/|\ \ \|\ \ \ \\\__\ \ \ \ \ \ \___|_\ \ \___|\ \ \ \ \|\ \ ...
local awful = require 'awful' local l = awful.layout.suit tag.connect_signal('request::default_layouts', function() awful.layout.append_default_layouts { l.max, l.tile.right, } end)
--# selene: allow(unused_variable) ---@diagnostic disable: unused-local -- Contains two low latency audio recognizers for different mouth noises, which can be used to trigger actions like scrolling or clicking. -- The recognizers are also high accuracy and don't use much CPU time. -- -- This module was written by [Tri...
local metadata = { plugin = { format = 'staticLibrary', -- This is the name without the 'lib' prefix. staticLibs = { 'plugin_perk','z','xml2','System','c++','stdc++'}, frameworks = {'EventKitUI','EventKit','CoreMedia','CoreTelephony','AssetsLibrary','WebKit','AssetsLibrary','JavaScriptCore','StoreKit','AdS...
-- scaffold geniefile for flatGLM flatGLM_script = path.getabsolute(path.getdirectory(_SCRIPT)) flatGLM_root = path.join(flatGLM_script, "flatGLM") flatGLM_includedirs = { path.join(flatGLM_script, "config"), flatGLM_root, } flatGLM_libdirs = {} flatGLM_links = {} flatGLM_defines = {} ---- return { _add_included...