content
stringlengths
5
1.05M
for _, method in pairs(peripheral.getMethods "back") do print(method) end
--[[-------------------------------------------------------------------------- -- Dragoon Framework - A Framework for Lua/LOVE -- -- Copyright (c) 2014-2015 TsT worldmaster.fr <tst2005@gmail.com> -- --]]-------------------------------------------------------------------------- local deny_package_access = false --l...
local status_file = os.getenv("MFMODULE_RUNTIME_HOME") .. "/var/status" local function load_status() local f = io.open(status_file, "r") if f == nil then return "NOT FOUND" end local content = f:read() f:close() return content end local function process() local status = load_status...
local music = {} local app = require "hs.application" local itunes = require 'music/itunes' local spotify = require 'music/spotify' local function provider() if app.get('Spotify') ~= nil then return spotify end if app.get('iTunes') ~= nil then return itunes end return nil end local function call(m...
-- Boilerplate to support localized strings if intllib mod is installed. if minetest.get_modpath("intllib") then attrans = intllib.Getter() else attrans = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end end --advtrains --Constant for maximum connection value/division o...
local enabled = CreateConVar("action_drawholsteredweapons", "1", FCVAR_REPLICATED, "Whether or not to draw holstered weapons on your character.") local drawguns = { ["weapon_ak47"] = { model = "models/weapons/w_rif_ak47.mdl", bone = "ValveBiped.Bip01_Spine2", pos = Vector(-1.841, 3.062, -7.473), ang = Angle(...
-- scite_other.lua -- This uses the scite_other.dll to provide the following functions -- PerformOther(verb,arg) -- Perform(verb,arg) -- (executes above commands in _this_ instance of SciTE) -- Execute(cmd) -- (quiet replacement for os.execute - no more flashing black boxes!) -- OpenOther(file,line) -- (open a file ...
SB.Include(Path.Join(SB_VIEW_DIR, "asset_view.lua")) MaterialBrowser = AssetView:extends{} function MaterialBrowser:init(tbl) if not self.textures then self.textures = {} for texName, _ in pairs(SB.model.textureManager.materialTextures) do table.insert(self.textures, texName) e...
serpent = dofile("./File_Libs/serpent.lua") https = require("ssl.https") http = require("socket.http") JSON = dofile("./File_Libs/JSON.lua") local database = dofile("./File_Libs/redis.lua").connect("127.0.0.1", 6379) Server_Feuon = io.popen("echo $SSH_CLIENT | awk '{ print $1}'"):read('*a') local AutoFiles_Feuon = func...
object_tangible_tcg_series7_garage_display_vehicles_snowspeeder = object_tangible_tcg_series7_garage_display_vehicles_shared_snowspeeder:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series7_garage_display_vehicles_snowspeeder, "object/tangible/tcg/series7/garage_display_vehicles/snowspeeder.iff")
return function(Context,ServiceName) Context:Reply("Starting service '"..ServiceName.."'...") if shared.DragonEngine.Services[ServiceName]~=nil then local Success,Error=shared.DragonEngine:StartService(ServiceName) if Success then return "Service started successfully." else return "Service could not be s...
local db = require 'std.database':new() -- 裝備 db:update('abc', 'a') db:update('def',"a", 'b') -- 符文 db:update('crum', '符文', '攻擊力') db:update('sde', '次級符文', "法術攻擊力") db:update('s', '次級符文', "防禦力") db:update('d', '次級符文', "火系元素傷害") db:update('e', '次級符文', "水系元素傷害") db:update('ae', '次級符文', "法術防禦力") db:update('aq', '次級符文', ...
local Curve = require("mod.skill_tracker_ex.api.gui.Curve") local ColorBand = class.class("ColorBand") function ColorBand:init(colors) self.colors = colors or {} self.bands = {} for i = 1, 4 do local band = Curve:new() for _, pair in ipairs(colors) do local color = pair.color lo...
local BoxLayout = require("hs/core/BoxLayout") ---------------------------------------------------------------- -- デフォルトで垂直方向にオブジェクトを配置するBoxLayoutです -- @class table -- @name VBoxLayout ---------------------------------------------------------------- local M = BoxLayout() --------------------------------------- -- コンス...
local M_PI = math.pi local xc = 128.0; local yc = 128.0; local radius = 100.0; local angle1 = 45.0 * (M_PI / 180.0); local angle2 = 180.0 * (M_PI / 180.0); local s = DisplayShape.new(stage:getSize()) :setLineWidth(10) :arcNegative(xc, yc, radius, angle1, angle2) :stroke() :setSourceColor(1, 0.2, 0.2, 0.6) :setLi...
-- 注意: -- 1. 将KCP设置为`fast`模式可以提升实时性; -- 2. 建议使用KCP传输的数据包应该尽可能的小; -- 3. 使用前请先做技术调研确认是否必须使用KCP; -- 4. 不再使用的时候请注意销毁所有对象资源; local lua_kcp = require "lua-kcp" local cf = require "cf" local k1 = lua_kcp:new { conv = 1, ip = "127.0.0.1", port = 9999 } k1:setmode("fast") local k2 = lua_kcp:new { conv = 1, ip = "localho...
corellian_butterfly_monarch = Creature:new { objectName = "@mob/creature_names:corellian_butterfly_monarch", socialGroup = "butterfly", faction = "", level = 20, chanceHit = 0.33, damageMin = 200, damageMax = 210, baseXp = 1803, baseHAM = 4500, baseHAMmax = 5500, armor = 0, resists = {-1,125,-1,5,5,-1,-1,-1...
local C, N = unpack(select(2, ...)) local UF = N.UnitFrame local function UpdateStatus(frame) frame.Level:SetFont(N:GetFont('StatusFont'), C.db.StatusSize, C.db.StatusFlag) frame.PerHP:SetFont(N:GetFont('StatusFont'), C.db.StatusSize, C.db.StatusFlag) end local function UpdateName(frame) frame.Name:Se...
local ITEM = {}; ITEM.ID = 170; ITEM.Reference = "item_car_lock"; ITEM.Name = "Car Security Upgrade"; ITEM.Description = "No lockpick will get passed this security system. (Vehicles Only)"; ITEM.Weight = 5; ITEM.Cost = 1000; ITEM.MaxStack = 100; ITEM.InventoryModel = "models/p...
local lu = require 'luaunit' local xtest = require 'test.xtest' local App = require 'tulip.App' local M = {} function M:setup() xtest.extrasetup(self) end function M:teardown() xtest.extrateardown(self) end function M:beforeAll() local ok, cleanup, err = xtest.newdb('', xtest.mockcron) if not ok then cleanu...
local p = require('lib/utils').prettyPrint local uv = require('luv') -- The parent is going to pass us the server handle over a pipe -- This will be our local file descriptor at PIPE_FD local pipe = uv.new_pipe(true) uv.pipe_open(pipe, tonumber(os.getenv("PIPE_FD"))) -- Configure the server handle local server = uv....
local helper = require("piemenu.lib.testlib.helper") describe("piemenu.core.angle_range", function() before_each(helper.before_each) after_each(helper.after_each) for _, c in ipairs({ { start_angle = 0, end_angle = 0, exclude_s = 0, exclude_e = 0, expected = {} }, { start_angle = 10, end_angle = 30, exc...
local icons = require('nvim-web-devicons') icons.setup { -- your personnal icons can go here (to override) -- DevIcon will be appended to `name` override = { zsh = { icon = "", color = "#428850", name = "Zsh" } }; }
local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/kav"))() local Window = Library.CreateLib("Floppa Hub - Da Hood", "BloodTheme") local runService = game:GetService("RunService") local players = game:GetService("Players") local localPlayer = players.LocalPlay...
local awful_hotkeys_popup = require("awful.hotkeys_popup") local sig = require("theme.fly.signal") local hotkeys_popup = {} function hotkeys_popup:init(config) self.widget = awful_hotkeys_popup.widget.new{ merge_duplicates = true } awesome.connect_signal(sig.hotkeys_popup.show_help,function() ...
-- Filename to store scores local scoreFileName = "./scores.txt" -- Colors for printing scores local color_finish = {238, 198, 78} local color_highscore = {238, 78, 118} -- Save scores to JSON file function saveScores(scores) local file = io.open(scoreFileName, "w+") if file then local cont...
local playsession = { {"Nate66873", {899815}}, {"svjatosha", {677285}}, {"Peanut-buddy", {373505}}, {"Hitman451", {891926}}, {"Immerial", {278558}}, {"Malorie_sXy", {840110}}, {"Kirugama", {837149}}, {"JB_Delta", {368447}}, {"DarwinistSombra", {7252}}, {"Factorian12321", {652901}}, {"wildgrim", {748434}}, {...
local t = require( "taptest" ) local repeatedly = require( "repeatedly" ) local same = require( "same" ) local add = function( a, b ) return a + b end t( same( repeatedly( 5, add, 2, 3 ), { 5, 5, 5, 5, 5 } ), true ) t()
require("gitsigns").setup({ on_attach = function(bufnr) -- Navigation vim.keymap.set( "n", "]h", "&diff ? ']h' : '<cmd>Gitsigns next_hunk<CR>'", { expr = true, buffer = bufnr } ) vim.keymap.set( "n", "[h", "&diff ? '[h' : '<cmd>Gitsigns prev_hunk<CR>'", { expr = true, buffer = bufnr } ...
local PERK = Atomic.perks:New(); PERK.name = "Power Armor Training"; PERK.icon = "atomic/hud/perks/power_armor.png"; PERK.description = "You have received the specialized training needed to move in any form of Power Armor."; PERK:Register();
-- CONFIG THIS BEFORE INJECTING! -- CONFIG THIS BEFORE INJECTING! -- CONFIG THIS BEFORE INJECTING! local AllowMessages = true -- This cant be toggled when injected! local ShortcutProtectedMSG = false -- EPIC custom GUI! (SERVER SIDED) local Rank = "User" -- Your shortcut custom rank local allowads = false -- Let us pu...
function table.merge(a,b) for k,v in pairs(b) do if not a[k] then a[k]=v end end return a end function table.clone(a) local ret = {} for k,v in pairs(a) do ret[k] = type(v) == "table" and table.clone(v) or v end return ret end local function reversedipairsiter(t, i) i = i - 1 if i ~= 0 then ...
-- TODO Editing options: positionMode local lightFade = {} lightFade.name = "lightFadeTrigger" lightFade.placements = { name = "light_fade", data = { lightAddFrom = 0.0, lightAddTo = 0.0, positionMode = "NoEffect" } } return lightFade
--[[ A client's view of their inventory uses a different reducer than the server's view of all client's inventories. ]] local ReplicatedStorage = game:GetService('ReplicatedStorage') local Modules = ReplicatedStorage:WaitForChild('Modules') local logger = require(Modules.src.utils.Logger) local Dict = require(Modul...
local transposer = require("component").transposer local sides = require("sides") local transposerUtils = {} function transposerUtils.IsInventoryFull(side) for i = 1, transposer.getInventorySize(side) do if transposer.getSlotStackSize(side, i) == 0 then return false end end return true end function ...
term.setPaletteColour(colours.black, 1, 0, 0) term.setTextColour(colours.black) howlci.log("debug", "Logging some useful information") howlci.status("success", "Loaded") howlci.close()
--- Maps a number to a set of inputs. Useful for shortcut codes in menus. -- @module NumberToInputKeyUtils -- @author Quenty local NUMBERS = { [0] = { Enum.KeyCode.Zero; Enum.KeyCode.KeypadZero; }; [1] = { Enum.KeyCode.One; Enum.KeyCode.KeypadOne; }; [2] = { Enum.KeyCode.Two; Enum.KeyCode.KeypadTwo; }; [3] = { Enu...
game = hs.hotkey.modal.new({"cmd", "alt"}, "g") function game:pause() game.paused = not game.paused end function game:rng_color() return { red = math.random(), blue = math.random(), green = math.random() } end function game:reset() game.paused = false game.tick = nil screen = hs.screen.primar...
local tds = require 'tds' local a = tds.AtomicCounter() print(a) print(a:get()) assert(a:get()==0) print(a:inc()) assert(a:get()==1) print(a:inc()) assert(a:get()==2) print(a) a:set(100) print(a:get()) assert(a:get()==100) print(a) print('OK')
local condition = Condition(CONDITION_DROWN) condition:setParameter(CONDITION_PARAM_DELAYED, 1) condition:addDamage(20, 5000, -20) local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_DROWNDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) combat:setArea(createCombatArea(AREA_CIRCL...
...
local mvc = {} mvc.AppBase = import(".AppBase") return mvc
-- Copyright (c) 2016 Robert Bosch LLC, USA. -- All rights reserved. -- -- This source code is licensed under the MIT license found in the -- LICENSE file in the root directory of this source tree. -- Timing of LeNet require 'sys' require 'nn' require 'torch' -- Initialize and Configure variables for LeNet benchmar...
local ui = require 'ui' local Machine = { __id = 0, next = nil, previous = nil, max_sequence_length = 1, clock_count = 0, dials = {}, position = 1, label = '', metro = nil, previous_value = 0, slew_count = 1, slew_counter = 1, send_midi_cc = nil, playback_icon =...
-- A moving average NPS calculator -- movable stuff local allowedCustomization = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).CustomizeGameplay --still kept this here because idk man local enabled = { NPSDisplay = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).NPSDisplay, NPSGraph = playerConfig:get_data...
--### Incluindo modulos - libraries ###-- local composer = require( "composer") composer.recycleOnSceneChange = true local physics = require("physics") local widget = require( "widget" ) local sounds = require( "soundsfile" ) local base = require( "base") local base2 = require( "base") --### Criando Coordenadas ###-...
--[[ Copyright (C) 2014 HarpyWar (harpywar@gmail.com) This file is a part of the PvPGN Project http://pvpgn.pro Licensed under the same terms as Lua itself. ]]-- function command_ping(account, text) -- allow warcraft 3 client only if (account.clienttag == CLIENTTAG_WAR3XP) and (config.ghost) then return gh_c...
-- Experience handling functions base config script -- IT'S NOT A GOOD IDEA TO CHANGE THINGS IN HERE UNLESS -- YOU KNOW WHAT YOU'RE DOING, but reading this file over -- is a good way to get to know how DSB works. -- These functions are not called by the engine directly, -- but they are used by objects and so you...
--- tuit/array/lazy.lua - iteration over a lazy-evaluated array ------------------------------------------------------------------- -- Copyright (C) 2013-2014 TAGA Yoshitaka <tagga@tsuda.ac.jp> -- -- Permission is hereby granted, free of charge, to any person -- obtaining a copy of this software and associated documen...
AddCSLuaFile() local PLAYER = {} PLAYER.DisplayName = "Barrel" PLAYER.WalkSpeed = 200 PLAYER.CrouchedWalkSpeed = 0.2 PLAYER.RunSpeed = 100 PLAYER.DuckSpeed = 0.4 PLAYER.JumpPower = 0 PLAYER.PlayerModel = "models/props_c17/oildrum001_explosive.mdl" PLAYER.MaxHealth = 1 PLAYER.StartHealth ...
local display = require("hs/core/display") module(..., package.seeall) function onCreate() g = display:newGraphics({width = 50, height = 50}) g:setPenColor(0, 1, 0, 1):fillRect(0, 0, 50, 50) g:setPenColor(1, 0, 0, 1):setPenWidth(1):drawRect(0, 0, 50, 50) g.x = 10 g.y = 10 end
-- A generic C string library project "Lib-Stringy" kind "StaticLib" language "C" files { "**.h", "**.c", "premake4.lua" } vpaths { [""] = { "../Libraries/Stringy" } } includedirs { "." } location ( "../../Projects/" .. os.get() .. "/" .. _ACTION ) -- Linux specific stuff configuration "linux" ...
--[[ Copyright (C) 2011 Pau Escrich <pau@dabax.net> Contributors Jo-Philipp Wich <xm@subsignal.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License...
local csock = require "ldebug.socket" local tconcat = table.concat local tinsert = table.insert local srep = string.rep local type = type local pairs = pairs local tostring = tostring local next = next local ldebug = {} local socks_fd = nil local socks_buffer = "" local socks_prompt = "debug>" local debug_env = {} lo...
local Behavior = CreateAIBehavior("CivilianAlerted", "CivilianIdle", { Destructor = function(self, entity) AI.RemovePersonallyHostile(entity.id, entity.AI.hostileId); end, OnEnemySeen = function(self, entity) entity:SelectPipe(0, "Civilian_HideFromEnemy"); end, OnNoTarget = function(self, entity) AI.SetBeh...
--[[ Copyright (c) 2009-2017, Hendrik "Nevcairiel" Leppkes < h.leppkes at gmail dot com > All rights reserved. ]] local _, Bartender4 = ... local StateBar = Bartender4.StateBar.prototype local ActionBar = setmetatable({}, {__index = StateBar}) Bartender4.ActionBar = ActionBar local LAB10 = LibStub("LibActio...
require("premake_modules/export-compile-commands") require("premake_modules/cmake") workspace "oxide" configurations { "Debug", "Release" } platforms { "x32", "x64" } location "premake" filter {"system:windows"} characterset "MBCS" filter {} -- Set up platforms filter {"plat...
AddCSLuaFile( "cl_init.lua" ) -- Make sure clientside AddCSLuaFile( "shared.lua" ) -- and shared scripts are sent. include('shared.lua') ENT.BouncesTillDeath = 4 ENT.Bounces = 0 local Color2 function ENT:Initialize() self:SetModel( "models/hunter/misc/sphere025x025.mdl" ) self:PhysicsInit( SOLID_VPHYSICS ) ...
data:extend({ { type="sprite", name="FactCalc-main-sprite", filename = "__core__/graphics/no-building-material-icon.png", priority = "extra-high", width = 64, height = 64, }, { type="sprite", name="FactCalc-arrow-sprite", filename = "__...
local match_gameover_detail = require(ViewPath .. "/games/common2/match/match_gameover_detail"); local MatchGameOverDetail = class(CommonGameLayer, false); local h_index = 0; local getIndex = function(self) h_index = h_index + 1; return h_index; end MatchGameOverDetail.s_controls = { infoView = ...
pfUI:RegisterSkin("Inspect", function () local border = tonumber(pfUI_config.appearance.border.default) local bpad = border > 1 and border - 1 or 1 HookAddonOrVariable("Blizzard_InspectUI", function() local cache = {} CreateBackdrop(InspectFrame, nil, nil, .75) InspectFrame.backdrop:SetPoint("TOPLEF...
require("util") local dbg = require("debugger") local module = {} local enabled = true module.err = function(node, msg) if not enabled then --print("Discarded error; "..msg) return end if node ~= nil then print("------------------------") print(tostring(node.file or "Unknown")..":"..tostring(no...
-- Load modules ----------------------------------------------------------------------------------------------------------------------- local awful = require("awful") local beautiful = require("beautiful") local gears = require("gears") local wibox = require("wibox") local core ...
local AS = unpack(AddOnSkins) function AS:Blizzard_Alerts() local function SkinAchievementAlert(frame) if not frame.Backdrop then AS:CreateBackdrop(frame, "Transparent") frame.Backdrop:Point("TOPLEFT", frame.Background, "TOPLEFT", -2, -6) frame.Backdrop:Point("BOTTOMRIGHT", frame.Background, "BOTTOMRIGHT",...
-- ============================================================= -- Copyright Roaming Gamer, LLC. 2008-2016 (All Rights Reserved) -- ============================================================= -- Actions Loader -- ============================================================= -- Last Updated: 23 NOV 2016 -- Last Val...
-------------------------------------------------------------------------------- idleState = {} -------------------------------------------------------------------------------- function idleState.enter() if self.state.hasState() then return nil,entity.configParameter("gardenSettings.cooldown", 15) end return {} end...
function love.load() love.graphics.setBackgroundColor(1,1,1); love.graphics.setFont(love.graphics.newFont(math.floor(love.graphics.getDimensions()/40))); love.keyboard.setTextInput(false); --Core Simulation mode = "setting";--setting, running, paused, info, egg livingPoints = {};--Each Point is a table with two v...
OrderType["AutomatedTrade"] = OrderType["NumActions"] OrderType["NumActions"] = OrderType["NumActions"] + 1 OrderTypes[OrderType.AutomatedTrade] = { name = "Trade+ /* short order summary */"%_t, icon = "data/textures/icons/battery-pack.png", pixelIcon = "data/textures/icons/battery-pack.png", }
ITEM.name = "Banana" ITEM.model = "models/props/cs_italy/bananna.mdl" ITEM.description = "A curved yellow fruit." ITEM.hungerAmount = 0.15 ITEM.price = 100 ITEM.useSound = "gmodz/items/food1.wav" ITEM.rarity = { weight = 48 } if (SERVER) then ITEM.dropUsedItem = nil end
print2(midiGetInputPortCount()) for i=0,midiGetInputPortCount()-1,1 do print2(midiGetInputPortName(i)) end Midi Through:0 USB Uno MIDI Interface:0 midiOpenInputPort() midiin = {midiInputPortMessage()} clearTrace() do midiin = {midiInputPortMessage()} print(#midiin) for i=1,#midiin,1 do print(midiin[i]) ...
local onlooker_spinner_pin_map = require("qnFiles/qnPlist/games/onlooker_spinner_pin"); local onlooker_spinner_item= { name="onlooker_spinner_item",type=0,typeName="View",time=0,x=0,y=0,width=130,height=37,visible=1,fillParentWidth=0,fillParentHeight=0,nodeAlign=kAlignTopLeft, { name="name",type=4,typeName="Text",t...
local bit32 = require('bit') unicode = {} function unicode.utf32_to_utf8_char(utf32chr) assert(type(utf32chr) == 'number') if utf32chr < 0 or 0x10ffff < utf32chr then return nil end if utf32chr < 128 then return string.char(utf32chr) elseif utf32chr < 2048 then local c1 = bit32.bor(0xc0, bit32.rshift(utf32c...
if not modules then modules = { } end modules ['data-pre'] = { version = 1.001, comment = "companion to luat-lib.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } local resolvers = r...
local tasks_management = require("lib.ngx_tasks") local function apply(invoke) -- client heartbeats -- /channel_name/invoke?heartbeat invoke.heartbeat = function(route, channel, arg) local cluster = route.cluster if cluster.worker_initiated then route.cc('/_/invoke', { direction='super', args={reportHubPort=...
project "DuplicityMain" language "C++" kind "ConsoleApp" links { "Shared", "CitiCore" } includedirs { "../../client/citicore/", "include/" } files { "**.cpp", "**.h", "../../client/common/Error.cpp" } pchsource "src/StdInc.cpp" pchheader "StdInc.h" targetname "...
-- local M = {} ---@class TF_DataType --- TF_DataType holds the type for a scalar value. E.g., one slot in a tensor. --- The enum values here are identical to corresponding values in types.proto. local TF_DataType = {} M.TF_DataType = TF_DataType TF_DataType.FLOAT = 1 TF_DataType.DOUBLE = 2 TF_DataType.INT32 = 3 ---...
addEvent("onPlayerKillMessage") function createKillMessage(_, killer, weapon, bodypart, stealth) local usedVehicle, killerType local weapon = weapon or 255 -- In very rare cases killer isn't nil or false but isn't an element. if killer and (not isElement(killer)) then killer = nil end ...
package("numactl") set_homepage("https://github.com/numactl/numactl") set_description("NUMA support for Linux") set_license("LGPL-2.1") add_urls("https://github.com/numactl/numactl/releases/download/v$(version)/numactl-$(version).tar.gz") add_versions("2.0.14", "826bd148c1b6231e1284e42a4db51020774...
vim.opt.termguicolors = true vim.opt.background = "dark" -- kikwis options vim.g.kikwis_pallete = "lopsa" -- gruvbox-material options vim.g.gruvbox_material_background = "soft" -- try to set the colorscheme vim.cmd[[ try colorscheme gruvbox-material catch /^Vim\%((\a\+)\)\=:E185/ " TODO: handle error e...
-- 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") require("opaque_external_type_02_child") OpaqueExternalType02Parent = class.class(KaitaiStruct) function OpaqueExternal...
----------------------------------- -- NPC: Small Keyhole -- Area: Sacrarium -- !pos 99.772 -1.614 51.545 28 ----------------------------------- local ID = require("scripts/zones/Sacrarium/IDs") require("scripts/globals/keyitems") require("scripts/globals/npc_util") ----------------------------------- function onTrig...
local get = {} local mattata = require('mattata') local redis = require('mattata-redis') function get:init(configuration) get.arguments = 'get <variable>' get.commands = mattata.commands(self.info.username, configuration.commandPrefix):c('get').table get.help = configuration.commandPrefix .. 'get <variable> - Retur...
modifier_omniknight_degen_aura_lua = class({}) -------------------------------------------------------------------------------- -- Classifications function modifier_omniknight_degen_aura_lua:IsHidden() return true end function modifier_omniknight_degen_aura_lua:IsDebuff() return false end function modifier_omnikni...
Locales['en'] = { ['male'] = 'male', ['female'] = 'female', ['carjack'] = 'Carjack in progress: a %s was spotted jacking an %s at %s', ['combat'] = 'Fight in progress: a %s has been spotted fighting at %s', ['gunshot'] = 'Shootout in progress~s~: a %s has been spotted firing a weapon at %s', }
local ReplicatedStorage = game:GetService("ReplicatedStorage") local BitBuffer = require(ReplicatedStorage.Packages.BitBuffer) return function(b) local buffer = BitBuffer.new() b.start() for _ = 1, 2^14 do buffer:ReadInt(15) end b.done() end
TOOL.Category = "Constraints" TOOL.Name = "#tool.pulley.name" TOOL.Command = nil TOOL.ConfigName = nil TOOL.ClientConVar[ "width" ] = "3" TOOL.ClientConVar[ "forcelimit" ] = "0" TOOL.ClientConVar[ "rigid" ] = "0" TOOL.ClientConVar[ "material" ] = "cable/cable" function TOOL:LeftClick( trace ) -...
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' description 'ESX Identity' version '1.1.0' server_scripts { '@mysql-async/lib/MySQL.lua', '@es_extended/locale.lua', 'server/main.lua' } client_scripts { '@es_extended/locale.lua', 'client/main.lua' } ui_page 'html/index.html' files { 'html/in...
print('|cff55DFFFBugg|r|cff29D5C5Addon|r|cffFF1212 WARNING|r|cffF9F9F7: The users of this addon are professionals, imaginary or just plain kooks. DO NOT ATTEMPT any of these maneuvers without proper supervision. VIOLATORS WILL BE SMACKED!|r') local frame = CreateFrame("Frame") r = { "takes name on the Jerry Springer...
local DragAndDroppableMT = { __index = { onDragBegin = function(self, pos) self.beingDragged = true self.rect.pos = pos - self.rect.dim/2 if self.onDragBeginCB then self.onDragBeginCB() end self.timeSinceDrag = 0 end, onDrag = function(self, pos) if self.beingDragged then self.rec...
----------------------------------- -- Area: Kuftal Tunnel -- NM: Pelican ----------------------------------- require("scripts/globals/hunts") require("scripts/globals/mobs") ----------------------------------- function onMobInitialize(mob) mob:setMobMod(tpz.mobMod.ADD_EFFECT, 1) end function onAdditionalEffect...
--[[ Name: subaruo.lua For: TalosLife By: TalosLife ]]-- local Car = {} Car.Make = "Subaru" Car.Name = "Subaru Legacy GT 2010" Car.UID = "subaru_legacy_gt" Car.Desc = "The Subaru, gmod-able by TDM" Car.Model = "models/tdmcars/sub_legacygt10.mdl" Car.Script = "scripts/vehicles/TDMCars/subleggt10.txt" Car.Price = 340...
local pop = {} local popSuppressed = {} local SCOPE_RANGE_LOAD = 100.0 local SCOPE_RANGE_UNLOAD = 120.0 Citizen.CreateThread( function() while true do Citizen.Wait(1000) -- 10 sec local playerPosition = GetEntityCoords(PlayerPedId()) for indexComposite = 1, #Composite...
#!/usr/bin/env luajit local ffi = require'ffi' local skt = require'skt' local ADDRESS, PORT = "239.255.65.56", 6556 local transport = assert(skt.init_mc(ADDRESS, PORT)) if ffi.os=='Linux' then local msgs repeat msgs = transport:recvm() skt.poll({}, 500) until msgs print(#msgs, transport.counter) for i...
--- Copyright (c) 2011-2015 Rob Hoelz <rob@hoelz.ro> --- --- Further hacked by others. --- --- 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 lim...
#!/usr/bin/env lua --- -- @author Gianluca Fiore -- @copyright 2014-2020, Gianluca Fiore <forod.g@gmail.com> -- local PATH = '/usr/bin' ---Extract a random command in a path and open its manpage, ---recursively rerunning itself if there's none. --@param path the path to search in function find_a_page(path) local cm...
local FIND_LOGS_LIMIT = 50 cPenaltyLogs = {} function cPenaltyLogs.init() cDB.query([[ CREATE TABLE IF NOT EXISTS penalty_logs ( id INTEGER PRIMARY KEY AUTOINCREMENT, timestamp INTEGER NOT NULL, action TEXT NOT NULL, admin_account TEXT NOT NULL, serial TEXT N...
local Class = require("luna.class") local Canvas = Class:extend("Canvas") function Canvas:constructor(width, height, filter) local width = width or love.graphics.getWidth() local height = height or love.graphics.getHeight() local filter = filter or "nearest" self.width = width self.height = height self.canvas = ...
local test = require 'pl.test' local asserteq, assertmatch = test.asserteq, test.assertmatch local dump = require 'pl.pretty'.dump local T = require 'pl.test'.tuple local Date = require 'pl.Date' --[[ d = Date() print(d) print(d:year()) d:day(20) print(d) d:add {day = 2} print(d:day()) d = Date() -- 'now' print(d:las...
car_max_speed_forward=4 car_nitro_speed_increase=2 car_max_speed_reverse=-1 car_turn_speed=0.1 car_inertia=0.95 car_gravity=-0.2 car_half_width=4 car_half_length=8 car_terrain_slip=0.85 car_dirt_slip=0.96 car_scale=5 car_colors_default={ {8,2, "red hurricane"}, {11,3,"green devil"}, {12,1,"blue lightning"}, {10,9,"...
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> --------------------------------------------------- -- {{{ Grab environment local io = { popen = io.popen } local math = { max = math.max } local setmetatable = setmeta...