content
stringlengths
5
1.05M
return Def.ActorFrame { Def.Quad{ InitCommand=cmd(halign,0;x,SCREEN_LEFT;y,SCREEN_CENTER_Y-160;zoomto,SCREEN_WIDTH-200,24;diffuse,color("#000000")); }; Def.Quad{ InitCommand=cmd(halign,0;x,SCREEN_LEFT;y,SCREEN_CENTER_Y-130;zoomto,SCREEN_WIDTH-200,24;diffuse,color("#000000")); }; Def.Quad{ InitCommand=cmd(hal...
_ENV=namespace () using_namespace "luaClass" using_namespace "container" using_namespace "game" class("AnimateManager"){ CLASS_DEBUG(false); public{ STATICFUNC.getInstance(function(cls) if cls.s_instance==nil then cls.s_instance=cls() end return cls...
local map = wincent.vim.map local imap = function (lhs, rhs, opts) opts = opts or {} return map('i', lhs, rhs, opts) end return imap
return { base00 = "011627", -- bg base01 = "0c2132", -- lightbg base02 = "172c3d", -- selection bg base03 = "223748", -- comments, line highlighting base04 = "2c4152", -- dark foreground base05 = "aeb6c3", -- Default Foreground, Caret, Delimiters, Operators base06 = "d6deeb", -- Light Foreground (N...
--[[ Copyright (c) 2016, Steve Freegard <steve.freegard@fsl.com> Copyright (c) 2016, Vsevolod Stakhov Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ...
-- Copyright (C) by Midoks(midoks@163.com) -- http://www.graphicsmagick.org/download.html local time_helper = require "resty.gm.time_helper" local setmetatable = setmetatable local _M = { _VERSION = '0.01' } local mt = { __index = _M } local debug_sort = 0 function _M.new(self) local p = setmetatable({ gm_...
-- local function data(file, tag, names, stripFunc, postFunc) local parser = require "otherData.featParser" local names = { "Chronicler", "Archival Training", "Archive Tutor", "Targeted Profiling", "Observation Party", "Cinematic Analysis" } local m = string.match local function strip(parser, str) -- local fi...
-- router_mgr.lua local pairs = pairs local log_err = logger.err local log_info = logger.info local mrandom = math.random local signal_quit = signal.quit local tinsert = table.insert local tunpack = table.unpack local sformat = string.format l...
object_tangible_furniture_all_frn_all_holocron_dode = object_tangible_furniture_all_shared_frn_all_holocron_dode:new { } ObjectTemplates:addTemplate(object_tangible_furniture_all_frn_all_holocron_dode, "object/tangible/furniture/all/frn_all_holocron_dode.iff")
local function getRenderAdornee(adornee: Instance) if adornee:IsA("BasePart") then return adornee :: BasePart elseif adornee:IsA("Model") then return adornee :: Model elseif adornee:IsA("Attachment") then return adornee :: Attachment elseif adornee:IsA("Humanoid") then return adornee.Parent :: Model elseif...
local K, C = unpack(select(2, ...)) local Module = K:NewModule("TooltipQuality", "AceHook-3.0") local GetModule = K:GetModule("Tooltip") function Module:SetBorderColor(_, tt) if not tt.GetItem then return end local _, link = tt:GetItem() if link then local _, _, quality = GetItemInfo(link) if quality then ...
module("luci.controller.wrtbwmon", package.seeall) function index() if not nixio.fs.access("/etc/config/wrtbwmon") then return end entry({"admin", "network", "usage"}, alias("admin", "network", "usage", "details"), _("Traffic Status"), 60).acl_depends={ "luci-app-wrtbwmon" } entry({"admin", "network", "usa...
---@class LambdaClass ---@overload fun(a: number): LambdaClass local LambdaClass = {} setmetatable(LambdaClass, { ---@param a number __call = function(_, a) local self = --[[---@type LambdaClass]] {} ---@return number function self.getNumber() return a end ...
registrar = { ASSET = 0, DRAWABLE = 0, ENTITY = 0, FACTORY = 0, PHYSICS = 1, ANIMATION = 1, INPUT = 1, SCRIPT = 0, ASSET = 0, CAMERA = 1, MOUSE_MOVE = 0, UI = 1, } selected = false mouseOver = false animState = "idle_right" lastAnimState = "idle_right" function setup() health = 100 max_health = 100 pr...
local radio = require('radio') local util = require('radio.core.util') local class = require('radio.core.class') local block = require('radio.core.block') local composite = require('radio.core.composite') local pipe = require('radio.core.pipe') describe("composite", function () it("connection logic", function () ...
function onCreate() makeLuaSprite('grass2', 'grass2', -100, -200); addLuaSprite('grass2',false) setLuaSpriteScrollFactor('grass2', 0.134, 0.9); makeLuaSprite('grass', 'grass', -200, -150); addLuaSprite('grass',false) setLuaSpriteScrollFactor('grass', 0.9, 0.9); makeAnimatedLuaSpr...
--[[ Copyright (c) 2014 Juan Carlos González Amestoy 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, publi...
local vm = require 'vm.vm' local library = require 'library' local guide = require 'parser.guide' local function checkStdLibrary(source) if source.library then return source end local globalName = vm.getGlobal(source) if not globalName then return nil end local name = glo...
function WeaponLionGadget1:_shoot_bipod_rays() local camera = managers.player:player_unit():camera() local point_1 = camera:position() local point_2 = mvector3.copy(point_1) mvector3.add_scaled(point_2, camera:forward(), SimpleBipods:option("forward_ray_length")) local point_3 = mvector3.copy(point_2) mvector3.ad...
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg)...
local path = (...) local sub1 = path:match("(.-)%.[^%.]+$") local sub2 = sub1:match("(.-)%.[^%.]+$") local font_path = sub2:gsub("%.", "/").."/res/font/%s/%s.ttf" local dpi_scale = love.window.getDPIScale() local function make_font(typeface, weight, size) return love.graphics.newFont(font_path:format(typeface, weig...
local CreateGuideViewFactory = class(); CreateGuideViewFactory.getView = function(self,p_keyString,p_data) local wnd = nil; if p_keyString == "safeBox" then local _class = require("hall/bankrupt/widget/differentGuide/safeBoxGuide"); wnd = new(_class,p_data); elseif p_keyString == "toShar...
-- Generated by CSharp.lua Compiler local System = System local UnityEngine = UnityEngine local CSharpLuaProjectProtocol local CSharpLuaSettingProto System.import(function (out) CSharpLuaProjectProtocol = CSharpLua.Project.Protocol CSharpLuaSettingProto = CSharpLua.Project.Protocol.SettingProto end) System.namespac...
--------------------------------------------------------------------------------------------------- modifier_faceless_void_time_dilation_degen_oaa = modifier_faceless_void_time_dilation_degen_oaa or class({}) function modifier_faceless_void_time_dilation_degen_oaa:IsHidden() return true end function modifier_facel...
-- midi module local Midi = {} function Midi.hello() print("hi midi") end function Midi.to_midi_msg(data) -- data table structure -- (1, message.status); -- (2, message.channel); -- (3, message.pitch); -- (4, message.velocity); -- (5, message.control); -- (6, message.val...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by heyqule. --- DateTime: 3/17/2021 8:16 PM --- require('ArmouredBiters/control') require('Cold_Biters/control') require('Explosive_Biters/control')
local baseg = cat.require"module/graphics/base_graphics" local circle = cat.class("point",baseg){ radius = 10; } function circle:__init__(fill_mode,x,y,radius) baseg.__init__(self,fill_mode,x,y) self.radius = radius or 10 end function circle:set_radius(r) self.radius = radius or self.radius end func...
--[[a = {p = print} a.p("Hello World") print = math.sin() a.p(print(1)) sin = a.print sin(10,20) --]] function foo(x) return 2 * x end 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....
---@class FrameInfoConst ---A constant FrameInfo object, passed into Lua as an argument by the FileHandler write callback function. This has similar attributes/properties as FrameInfo, but the fields can only be read from, not written to. --- ---Since: 1.11.3 ---@param time NSTime Mode: Retrieve only. The packet timest...
local _tl_compat; if (tonumber((_VERSION or ''):match('[%d.]*$')) or 0) < 5.3 then local p, m = pcall(require, 'compat53.module'); if p then _tl_compat = m end end; local ipairs = _tl_compat and _tl_compat.ipairs or ipairs; local string = _tl_compat and _tl_compat.string or string; local table = _tl_compat and _tl_comp...
start_money = 50000 map_update_ms = 80 first_spawn_location = {212225.000000, 192940.000000, 1400.000000, -180.0} -- x, y, z, h vehicle_health_update_ms = 200 vehicle_speed_update_ms = 20 start_time = 10.0 -- 0 to 24 time_locked = true -- does the time is locked time_update_ms = 25000 time_update_value = 0.1 max_...
workspace "PrevEngine" startproject "Sandbox" architecture "x64" configurations { "Debug", "Release", "Distribute" } outputDir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}/" IncludeDir = {} IncludeDir["GLAD"] = "PrevEngine/vendor/GLAD/include" IncludeDir["ImGui"] = "Prev...
--时穿剑·鸳鸯剑 local m=14000007 local cm=_G["c"..m] function cm.initial_effect(c) --link summon aux.AddLinkProcedure(c,nil,2,2,cm.lcheck) c:EnableReviveLimit() --direct attack local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_DIRECT_ATTACK) e1:SetCondition(cm.dircon) c:Reg...
-------------------------------- -- @module Widget -- @extend ProtectedNode,LayoutParameterProtocol -- @parent_module ccui -------------------------------- -- Changes the percent that is widget's percent size<br> -- param percent that is widget's percent size -- @function [parent=#Widget] setSizePercent -- @param se...
local route_111_rest = DoorSlot("route_111", "rest") local route_111_rest_hub = DoorSlotHub("route_111", "rest", route_111_rest) route_111_rest:setHubIcon(route_111_rest_hub) local route_111_mirage = DoorSlot("route_111", "mirage") local route_111_mirage_hub = DoorSlotHub("route_111", "mirage", route_111_mirage) route_...
-- Encoding: utf-8 -- Started: 2014-10-06 -- Author: Shmuel Zeigerman -- luacheck: globals rex Editors MenuPos local function LOG(fmt,...) win.OutputDebugString(fmt:format(...)) end local function ErrMsg (msg, title, flags) far.Message(msg, title or "[Highlight] Error", nil, (flags or "").."w") end -- Global varia...
--[[ Turn-In Mod version 2.1 Authored by Ian Friedman Sabindeus of Smolderthorn (Alliance) The repeatable quest turn in automating machine. Thanks to Arcanemagus of Hyjal for extra bug fixes and coding input ]] local L = TURNIN_LOCALIZATION_INFO; local TI_activenumber = 1; local TI_availnumber = ...
local M = require('xe.node_def._checker') local CalcParamNum = M.CalcParamNum local CheckName = M.CheckName local CheckVName = M.CheckVName local CheckExpr = M.CheckExpr local CheckPos = M.CheckPos local CheckExprOmit = M.CheckExprOmit local CheckCode = M.CheckCode local CheckParam = M.CheckParam local CheckNonBlank = ...
-- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE. -- Diff LPeg lexer. local l = require('lexer') local token, word_match = l.token, l.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local M = {_NAME = 'diff'} -- Text, separators, and file headers. local index = token(l.COMMENT, 'Index: ' * l.a...
local module = {} local Latte, Elements, Packages = nil, nil, {} local function fetch() Packages = {} for _,v in pairs(Latte.Constructors.Window.Window.Pages.Players:GetChildren()) do if string.lower(v.Name) ~= "target" and v:IsA("Frame") then table.insert(Packages, v.Name) end end for _,v in pairs(Latte.C...
-- circular buffer implementation. useful to represent fixed size queue -- adapted from https://gist.github.com/johndgiese/3e1c6d6e0535d4536692 -- we are defining our own __eq, don't need copy and may contain reference -- to fully-fledged objects, so we don't use a struct circular_buffer = new_class() -- params -- m...
local obj = { __gc = true } setmetatable(obj, obj) -- Garbage collector obj.__gc = function(t) t:stop() end -- Metadata obj.name = "MX" obj.version = "0.1" obj.author = "Michael Xander" obj.homepage = "https://michaelxander.com" obj.license = "MIT - https://opensource.org/licenses/MIT" -- Properties obj.caffeinat...
local dir = _DIR local work_dir = '' local yml local os = os() local install_dir local class_installer = {} function class_installer:new (work_dir_) work_dir = work_dir_ if not file_exist(work_dir_ .. '/package.lua') then out('package.yml lose,this not a correct package') return false end ...
-- -- Copyright (c) 2007, Trent Gamblin -- 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 co...
function f1() function f2() function f3() -- body end end end
local Snowflake = require('../Snowflake') local format = string.format local Emoji, property = class('Emoji', Snowflake) Emoji.__description = "Represents a custom Discord emoji." function Emoji:__init(data, parent) Snowflake.__init(self, data, parent) end function Emoji:__tostring() return format('%s...
local Screen, Menu, FileRequester = require("screen"), require("menu"), require("filerequester") local scrn, anim, frame, filename, saved, history local canvasvp, toolbarvp, palettevp, sidebarvp local updateagain, icons, wpaper, menu, crosshair, nopointer local tools = {"move", "brush", "picker", "select", "fill", "lin...
--[[ This library defines functions to initialize the values of the rawcodes[] array, which should contain the rawcodes of all existing Deco Builders, in alphabetical order. Special builders are listed first, though. ]]-- local decobuilders = {} decobuilders.typeIds = {} decobuilders.typeIds.specialDecos = { 'u0...
--[[ ElvUI_BetterTalentFrame Copyright (C) Arwic-Frostmourne, All rights reserved. ]]-- local KUI, E, L, V, P, G = unpack(select(2, ...)) local KBT = KUI:NewModule("KuiBetterTalents", "AceHook-3.0", "AceEvent-3.0") -- Config local activateButtonWidth = 200 local activateButtonHeight = 20 local tabDim = 30 loca...
local cmd = vim.cmd local g = vim.g local wo = vim.wo local bo = vim.bo local o = vim.o g.mapleader = ' ' wo.number = true o.hidden = true wo.wrap = false wo.cursorline = true o.mouse = 'a' o.splitbelow = true o.splitright = true o.timeoutlen = 1000 o.updatetime = 100 o.cmdheight = 2 -- Tab o.tabstop = 2 o.shiftwidth...
--[[ SOURCE_ https://gist.github.com/bitingsock/ad58ee5da560ecb922fa4a867ac0ecfd COMMIT_ 20200802 自定义快捷键 快速切换音频输出设备 此脚本优于在 input.conf 中使用 cycle-values audio-device 参数的方案 示例在 input.conf 中写入两行: CTRL+a script-binding cycle_adevice/back ALT+a script-binding cycle_adevice/next ]]-- local opt = require 'mp.options' l...
local _2afile_2a = "fnl/conjure/fs.fnl" local _0_ do local name_0_ = "conjure.fs" local module_0_ do local x_0_ = package.loaded[name_0_] if ("table" == type(x_0_)) then module_0_ = x_0_ else module_0_ = {} end end module_0_["aniseed/module"] = name_0_ module_0_["aniseed/locals"]...
function DrawVolumeScreen() love.graphics.clear(unpack(colors.black)) GameFont:setLineHeight(1) love.graphics.setColor(0, 0, 0, 100) love.graphics.rectangle("fill", 0, 0, love.graphics.getWidth(), love.graphics.getHeight()) local blackImage = love.graphics.newImage(settings.black_screen_path) ...
local util = require("spec.util") describe("assignment with any", function() it("is ok from any type", util.check [[ local a: any local i = 0 a = i local s = "string" a = s local m = { ["foo"] = 2, ["bar"] = 3 } a = m local arr = {1,2,3} a = arr local...
-- Code created by Kwik - Copyright: kwiksher.com {{year}} -- Version: {{vers}} -- Project: {{ProjName}} -- local _M = {} -- function _M:gotoURL(pLink) system.openURL(pLink) end -- return _M
PLUGIN.name = "PDA chatting system" PLUGIN.author = "verne" PLUGIN.description = "PDA chatting system, supporting avatars and nicknames" ix.config.Add("pdaWiringEnabled", false, "If true, PDA Wiring will be enabled.", nil, { category = "PDA Wiring" }) ix.config.Add("pdaWiringCooldown", 120, "The cooldown between wir...
include('shared.lua') local Emitter = ParticleEmitter(Vector(0,0,0)) function ENT:Initialize() self.Timer = CurTime() + 3 self.DustTimer = 0 self.Distance = 2500 self.SpawnTable = {} local trace = {} trace.start = self.Entity:GetPos() trace.endpos = trace.start + Vector(2500,2500,0) local tr = util.Trace...
--[[ Gadget: MultiParam A small gadget that collects a vent data table and a table of multi-params and melds them into the vent data table. The new function then becomes one that randomly picks from the multi-param table for that key and executes it. Usage: --------------------- local CBE = require("CBE.Library") lo...
local function toGridCode(tVector) return math.floor(tVector.x/16), math.floor(tVector.y/16), math.floor(tVector.z/16), tVector.x % 16, tVector.y % 16, tVector.z % 16 end local function setGrid(tMap, x, y, z, grid) if not tMap.map[x] then tMap.map[x] = {} end if not tMap.map[x][y] then tMap.map[x][y] = {} end...
Scrap_AutoSell = nil Scrap_AutoRepair = nil Scrap_Safe = nil Scrap_Learn = nil Scrap_Glow = nil Scrap_Icons = nil Scrap_Tut = nil Scrap_Version = nil
--- Font. -- Is a pointer to a [JUCE Font](http://www.juce.com/api/classFont.html). -- Can be used by @{juce.Graphics} for text operations. -- @classmod juce.Font ffi.cdef [[ pFont Font_new(const char *typefaceName, float fontHeight, int styleFlags, bool hinted); void Font_delete(pFont f); ]] --- Constuctor. -- Cavea...
--[[ Copyright 2019 Teverse @File add.lua @Author(s) Jay, Ly, joritochip @Updated 5/8/19 --]] -- TODO: Create a UI that allows the user to select what primitive to insert -- UI should also allow user to specify default values for the created primitives TOOL_NAME = "Add" TOOL_ICON = "fa:s-plus-sq...
-- File with hosts return { ["localhost"] = { plugins_to_run={ "CpuUsage", "DiskUsageMountedOnRootDisk", "SystemUptime", "ProcessesCount", "SwapUsage", -- for debugging -- "ValueWithTimestampInSeconds", -- "ValueWithTimestampInMillisecon...
--[[ Copyright (c) Jason White. MIT license. Description: High-level rule resolution. Client scripts add targets that may depend on each other. Since these targets can be defined in any order, they are added to a list and dependencies are resolved after all targets are defined. ]] --[[ List of targets. ]] local t...
function Auctionator.Utilities.ApplyThrottlingButton(button, isThrottling) button:SetEnabled(not isThrottling) if isThrottling then button:SetTooltip("Throttled. Waiting for the server.") else button:SetTooltip("") end end
HUD_PLUS = HUD_PLUS or {} HUD = HUD or {} if istable(HUD) then HUD.PLUS = {} -- I keep doing the mistake of using HUD.PLUS instead of HUD_PLUS. local HUD_PLUS_META = { __index = function(tab,key) return HUD_PLUS[key] end, __newindex = function(tab,key,value) HUD_PLUS[key] = value end } setmetatable...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") util.AddNetworkString("weapon_locker_use") util.AddNetworkString("weapon_locker_give") local delay = 2 local nextOccurance = 0 function ENT:Initialize() self:SetModel("models/Items/ammocrate_smg1.mdl") self:PhysicsInit(SOLID_VPHYSI...
CParamCache = torch.class('CParamCache') function CParamCache:__init() self.taCache = {} self.nFreqCache = 2 self.nCount = 0 end function CParamCache:update(teP, dErr) if dErr then local nD = teP:size(1) if self.taCache[nD] == nil then self.taCache[nD] = {} end table.insert(self.taC...
travelnet.MAX_STATIONS_PER_NETWORK = 24; -- set this to true if you want a simulated beam effect travelnet.travelnet_effect_enabled = false; -- set this to true if you want a sound to be played when the travelnet is used travelnet.travelnet_sound_enabled = false; -- if you set this to false, travelnets cannot be cr...
-- MIT License -- -- Copyright (c) 2018 Mikkel Lykke Jørgensen (MLJWare) -- -- 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 -- ...
--[[ Copyright (C) 2013-2018 Draios Inc dba Sysdig. This file is part of sysdig. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by ...
require 'nn' local model = {} -- warning: module 'data [type 5]' not found table.insert(model, {'conv1', nn.SpatialConvolution(3, 96, 11, 11, 4, 4, 0, 0)}) table.insert(model, {'relu0', nn.ReLU(true)}) table.insert(model, {'cccp1', nn.SpatialConvolution(96, 96, 1, 1, 1, 1, 0, 0)}) table.insert(model, {'relu1', nn.ReLU(...
--proc/system/time: time functions --Written by Cosmin Apreutesei. Public Domain. setfenv(1, require'winapi') ffi.cdef[[ DWORD GetTickCount(); ULONGLONG GetTickCount64(); BOOL QueryPerformanceCounter(LARGE_INTEGER *lpPerformanceCount); BOOL QueryPerformanceFrequency(LARGE_INTEGER *lpFrequency); BOOL QueryUnbiasedInt...
function n0(n, start) ROUND.chair[n].zero = ROUND.chair[n].zero or {} if ROUND.topCard.card[2] == "n0" then ROUND.chair[n].zero[ROUND.topCard.card[1]] = true if ROUND.chair[n].zero.red and ROUND.chair[n].zero.blue and ROUND.chair[n].zero.yellow and ROUND.chair[n].zero.green then unlockChair(ROUND.chair[n].owne...
local marketplace = game:GetService("MarketplaceService") --- local gamepass = {} gamepass.cache = {} gamepass.i = {} gamepass.i.chateffects = 4747921 gamepass.i.customname = 4748331 gamepass.prompt = function(player, id) marketplace:PromptPurchase(player, id) end gamepass.haspass = function(player, id) if game...
local utils = require "luacheck.utils" local function new_cyclomatic_complexity_warning(node, complexity) local warning = { code = "561", complexity = complexity } if node.location then warning.line = node.location.line warning.column = node.location.column warning.end_column = ...
function ConvertRace(i) end function ConvertAllianceType(i) end function ConvertRacePref(i) end function ConvertIGameState(i) end function ConvertFGameState(i) end function ConvertPlayerState(i) end function ConvertPlayerScore(i) end function ConvertPlayerGameResult(i) end function ConvertUnitState(i) end func...
local V = { Name = "Scion tC", Class = "prop_vehicle_jeep", Category = "TDM Cars", Author = "TheDanishMaster, Turn 10", Information = "A drivable Scion tC by TheDanishMaster", Model = "models/tdmcars/scion_tc.mdl", KeyValues = { vehiclescript = "scripts/vehicles/TDMCars/sciontc.txt" ...
local comm = require "comm" local nmap = require "nmap" local shortport = require "shortport" local string = require "string" description = [[ Detects the Java Debug Wire Protocol. This protocol is used by Java programs to be debugged via the network. It should not be open to the public Internet, as it does not provid...
if not HpwRewrite then return end if SERVER then return end if not HpwRewrite.BM then return end HpwRewrite.VGUI = HpwRewrite.VGUI or { } local infohelp local WindowColor = Color(80, 80, 80) local PlayerSpells = { } local PlayerLSpells = { } local ReceivedInfo = false net.Receive("hpwrewrite_GivI", function() tab...
------------------------------- -- "Dracula" awesome theme -- -- By Tony A. (POPCORNrules) -- ------------------------------- local themes_path = require("gears.filesystem").get_themes_dir() local current_theme_dir = os.getenv("HOME") .. "/.config/awesome/themes/dracula" local dpi = require("beautiful.xresources").a...
-- Called when chat message sent function ChatControl(args) -- Change players vehicle color if args.text:sub(0,13) == "/vehicleColor" or args.text:sub(0,13) == "/vehiclecolor"then -- Check if player is in vehicle if args.player:InVehicle() == false then args.player:SendChatMessage("You must be in a...
-- Simple 911 Command (With Location & Blip) -- -- Made By Chezza -- displayTime = 300 -- Refreshes Blips every 5 Minutes by Default -- -- Code -- blip = nil blips = {} Citizen.CreateThread(function() TriggerEvent('chat:addSuggestion', '/911', 'Envia una llamada de entorno a la Policia!', { { name="Den...
wrk.method = "PUT" wrk.body = '["455","456","457","458","459","460","461","462","463","464","465","466","467","468","469","470","471","472","473","474","475","476","477","478","479","480","481","482","483","484"]' wrk.headers["Content-Type"] = "application/json" -- '["455","456","457","458","459","460","461","462","463...
vim.cmd [[ nnoremap <silent> ct :lua require('crates').toggle()<cr> nnoremap <silent> cr :lua require('crates').reload()<cr> nnoremap <silent> cv :lua require('crates').show_versions_popup()<cr> nnoremap <silent> cf :lua require('crates').show_features_popup()<cr> nnoremap <silent> cu :lua require('crates').update_cr...
function ARCreateStaticVBOs(vtype,vertcount,indexcount,doallocs) local vsize = vtype:memsize()*vertcount local vbo = vidbuffer.new(vidtype.vertex(),vidhint.draw(1), vsize) -- indices are either 16bit or 32bit depending on vertexcount local is16bit = vertcount <= 65536 local isize = (is16bit and 2 or 4...
local socket = require("socket") local http = require("socket.http") require("love.timer") function download_available_versions(server_url, timeout, max_size, timestamp_file) local body = "" local all_versions = {} http.request{ url=server_url, create=function() local req_sock = socket.tcp() ...
package("opencolorio") set_homepage("https://opencolorio.org/") set_description("A complete color management solution geared towards motion picture production with an emphasis on visual effects and computer animation.") set_license("BSD-3-Clause") add_urls("https://github.com/AcademySoftwareFoundation...
local keyboard = {} local state = { down = {}, pressed = {}, released = {} } function keyboard.wasPressed(...) for i,v in ipairs({...}) do if state.pressed[v] == true then return true end end return false end function keyboard.wasReleased(...) for i,v in ipairs({...}) do if state.released[v] == true then ...
local NoobTacoUI, E, L, V, P, G = unpack(select(2, ...)) function NoobTacoUI:SetupTooltips() -- TOOLTIPS --------------------------------------------------------------- E.db["tooltip"]["textFontSize"] = 14 E.db["tooltip"]["font"] = "Montserrat-Bold" E.db["tooltip"]["healthBar"]["height"] = 10 E.db["tooltip"]...
local Rx = require 'rx' -- Create an observable that produces a single value and print it. Rx.Observable.of(42):subscribe(print)
slot0 = ClassLoader:aquireClass("BaseNode") slot1 = ClassLoader:aquireClass("Tools") slot2 = class_C("Timer", function () return slot0:create() end) slot2.REPEAT_FOREVER = -1 slot2.ctor = function (slot0) slot0._paused = true slot0._counter = 0 slot0._schemeSize = 0 slot0._schemes = {} slot0._namedMaps = {} end ...
local shared = require("scripts.stageapi.shared") local mod = require("scripts.stageapi.mod") StageAPI.LogMinor("Loading Custom Door Handler") StageAPI.DoorToDirection = { [DoorSlot.DOWN0] = Direction.DOWN, [DoorSlot.DOWN1] = Direction.DOWN, [DoorSlot.LEFT0] = Direction.LEFT, [DoorSlot.LEFT1] = Direct...
--[[ ui编辑器多国语选择界面 ]] Panel = g_panel_mgr.new_panel_class('editor/dialog/select_multi_lang_panel') -- overwrite function Panel:init_panel(btn, content, callback) self:add_key_event_callback('KEY_ESCAPE', function() self:close_panel() end) self._layer.OnClick = function() self:close_pan...
--[[ @author Sebastian "CrosRoad95" Jura <sebajura1234@gmail.com> @copyright 2011-2021 Sebastian Jura <sebajura1234@gmail.com> @license MIT ]]-- local b=createElement("text") setElementData(b,"name","PRACA: Drwal\nZAROBEK:\nGRACZ 250PLN | PREMIUM 350PLN\nOPIS: Zbieranie drzew") setElementPosition(b,300.12, 1141.27, 9...
-- Copyright 2006-2019 Robert Gieseke. See License.txt. -- Sass CSS preprocessor LPeg lexer. -- http://sass-lang.com local lexer = require('lexer') local token = lexer.token local P, S = lpeg.P, lpeg.S local lex = lexer.new('sass', {inherit = lexer.load('css')}) -- Line comments. lex:add_rule('line_comment', token(l...
kdrugs.config = { -- darkrp config -- Lab = { Maximum = 5, // max amount of drug labs a single player can buy Price = 1500, // price of each drug lab Allowed = { // jobs that can buy the drug lab TEAM_GANG, TEAM_MOB } }, Ingredients = { Maximum = 15, // max amount of each ingredient a player can bu...
-- Copyright 2021 gsdenys. All Rights Reserved. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http:--www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable la...
--[[ The number 12.7 is equal to the fraction 127/10, where the denominator is a power of ten. Can you express it as a common fraction where the denominator is a power of two? What about the number 5.5? "]]-- print("12.7 cannot be expressed as a fraction where the denominator is a power of two") print("5.5 can be expre...
hs.loadSpoon("SpoonInstall") -- Vim Config {{{ local VimMode = hs.loadSpoon("VimMode") local vim = VimMode:new() -- Configure apps you do *not* want Vim mode enabled in -- For example, you don't want this plugin overriding your control of Terminal -- vim vim :disableForApp('Code') :disableForApp('PyCharm') :di...