content
stringlengths
5
1.05M
local HttpRequest = require('charon.net.HttpRequest') local test = {} test.before = function() end test.should_append_header = function() local request = HttpRequest.new() request:cookie('box', 'full') assert(request._response[1] == 'Set-Cookie: box=full', request._response[1]) end test.should_append_header_wi...
a = {} a["bg_day"]={width=288, height=512, x=0, y=0} a["bg_night"]={width=288, height=512, x=292, y=0} a["bird0_0"]={width=48, height=48, x=0, y=970} a["bird0_1"]={width=48, height=48, x=56, y=970} a["bird0_2"]={width=48, height=48, x=112, y=970} a["bird1_0"]={width=48, height=48, x=168, y=970} a["bird1_1"]={width=48, ...
require("prototypes.flamenades")
-- LuaTools需要PROJECT和VERSION这两个信息 PROJECT = "air302_mqtt2" VERSION = "1.0.0" -- 引入必要的库文件(lua编写), 内部库不需要require sys = require "sys" mqtt2 = require "mqtt2" -- 打印一下项目的信息 log.info("version", _VERSION, VERSION, PROJECT) sys.taskInit(function () sys.wait(2000) while not socket.isReady() do log.info("ne...
-- 'Third Party Files Loaded' bypass for Counter-Strike: Global Offensive, by nicole -- Libraries local ffi = require "ffi" -- Game/engine definitions local vftable_e = { asyncfilesystem = { get_whitelist_spew_flags = 128 } } -- Filesystem vtable local g_pAsyncFileSystem = ffi.cast("uintptr_t**", ...
require("NPC/npcBase.lua") --this = SceneNode() local npcBase = nil function destroy() npcBase.destroy() end function create() print("Rat::create()") npcBase = NpcBase.new() npcBase.init("rat","npc_rat.mym",0.175,0.6,0.45,3.5) local mat = npcBase.getModel():getLocalMatrix() npcBase.getSoul().enableBlood("BloodSpl...
loadstring(game:HttpGet('https://lao-hax.online/INSTAKILLVERYDEFEXEEPIC.lua',true))()
---@class file local mt = {} mt.__index = mt mt.type = 'file' mt._uri = '' mt._oldText = '' mt._text = '' mt._version = -1 mt._vmCost = 0.0 mt._lineCost = 0.0 ---@param buf string function mt:setText(buf) self._oldText = self._text self._text = buf end ---@return string function mt:getText() return self._...
----------------------------------- ----- Core.lua ----- 使用Ace库创建插件 并提供开关 ----- 2010 - 09 - 29 ----- Terry@ bf ----------------------------------- TUF_Config = {} local _G = _G local T = LibStub("AceAddon-3.0"):NewAddon("TUnitFrame") if not T then return end T:SetDefaultModuleLibraries("AceEvent-3.0") T:...
local input, con, dm, d, state local sub_i = {} sub_i[1] = function() input = string.capitalize( input ) local path = Account.save_loc .. input .. ".lua" -- start with if its already connected??? d.account = Account.by_name[input] if( d.account ) then con:send( "\r\nWhat is your password?: " ) ...
dt = require "darktable" table = require "table" local _debug = false local hugin_install_path = "/Applications/Hugin/Hugin.app/Contents/MacOS/" local panorama_source_tag = dt.tags.create("darktable|stack|panorama") local hdr_source_tag = dt.tags.create("darktable|stack|hdr") local mini_threshold = 3 local pcall_erro...
pg = pg or {} pg.activity_event_pt = { [284] = { convert_resource_type = 0, unlock_story = "", target_buff = "", type = 1, buff_group = "", pt_list = "", drop_display = "", pic_list = "", buff_time = "", id_2 = 280, link_id = 0, id = 284, pt = 123, target = { 100, 300, 500, 700,...
--[[ // // MIT License // // Copyright (c) 2021 MotoLegacy, JariKCoding // // 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 // t...
--**********************skript lokomotivy 131**************************-- DEBUG = true --TRCH absolutniMax_kN = 249.1 -- X. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. ...
local E, L, V, P, G = unpack(ElvUI) --local LSM = LibStub("LibSharedMedia-3.0") local WT = E:GetModule("WindTools") local _G = _G P["WindTools"]["Interface"] = { ["Auto Buttons"] = { ["enabled"] = true, ["questNum"] = 5, ["itemList"] = {}, ["slotNum"] = 5, ["AptifactItem"] = true, ["slotList"] = {}, ["...
class("BackYardGetSpecifiedTypeThemplateCommand", pm.SimpleCommand).execute = function (slot0, slot1) return end return class("BackYardGetSpecifiedTypeThemplateCommand", pm.SimpleCommand)
MessageBox = {} local FADE_SCREEN = true local MAX_TRANSORM_ANGLE = 20 local screenWidth, screenHeight = guiGetScreenSize() local isActive = false local headerText = "" local messageText = "" local width, height = 300, 150 local headerHeight = 40 local maskShader local renderTarget local font local animationProgress =...
wrk.method = "PUT" wrk.headers["content-type"] = "application/json" wrk.headers["authorization"] = "user" wrk.body = "{\"foo\": \"bar\"}" framework = os.getenv("FRAMEWORK") filename = os.getenv("FILENAME") done = function(summary, latency, requests) file = assert(io.open(filename, "a")) file.write( ...
ardour { ["type"] = "EditorAction", name = "Get File Start", license = "MIT", author = "David Healey", description = [[Prints the file start value for the selected regions]] } function factory () return function () local sel = Editor:get_selection () local rl = sel.regions:regi...
local knowledge_base = { hb = "The IRC client we use is weechat ( https://weechat.org/files/doc/stable/weechat_quickstart.en.html ), running in the tmux terminal multiplexer ( https://www.tmuxcheatsheet.com/ )"; } return { hooks = { PRIVMSG = function(irc, state, sender, origin, message, pm) -- luacheck: ignore 21...
if not rq then rq = {} end function options(player) local caption = player.gui.center.Q.add2q.add{type = "label", name = "options_caption", caption = "Options"} caption.style.minimal_width = player.mod_settings["research-queue-table-width"].value * 68 local options = player.gui.center.Q.add2q.add{type = "table", na...
local keys = {} -- local naughty = require("naughty") local function _get_return(cmd) local rt = false local code, _ = os.execute(cmd) if (code) then rt = true end return rt end function keys.ssh_loaded() return _get_return("ssh-add -L") end function keys.ssh_notify() if (keys.ssh_loaded()...
--[[ cel is licensed under the terms of the MIT license Copyright (C) 2011 by Matthew W. Burk 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...
AddCSLuaFile() AddCSLuaFile("sh_sounds.lua") include("sh_sounds.lua") if CLIENT then SWEP.DrawCrosshair = false SWEP.PrintName = "Taurus Judge" SWEP.CSMuzzleFlashes = true SWEP.ForeGripOffsetCycle_Draw = 0 SWEP.ForeGripOffsetCycle_Reload = 0.85 SWEP.ForeGripOffsetCycle_Reload_Empty = 0.85 SWEP.SightWithRail = ...
local playsession = { {"Nate66873", {71576}}, {"Scuideie-Guy", {71309}}, {"Dimava", {55007}}, {"danyal_knights", {70218}}, {"Nikkichu", {46904}}, {"KIRkomMAX", {41977}}, {"tykak", {13387}}, {"Shyrr", {13575}}, {"Shade316PL", {10624}}, {"SteamEngine", {6604}} } return playsession
object_tangible_storyteller_prop_pr_ch9_landspeeder_av21 = object_tangible_storyteller_prop_shared_pr_ch9_landspeeder_av21:new { } ObjectTemplates:addTemplate(object_tangible_storyteller_prop_pr_ch9_landspeeder_av21, "object/tangible/storyteller/prop/pr_ch9_landspeeder_av21.iff")
--[[ TheNexusAvenger Extends the graph solver to add caching. --]] local ReplicatedStorage = game:GetService("ReplicatedStorage") local ReplicatedStorageProject = require(ReplicatedStorage:WaitForChild("Project"):WaitForChild("ReplicatedStorage")) local GraphSolver = ReplicatedStorageProject:GetResource("State.Path...
function save_settings() dofile("write_setngs.lua") end function set_rotate(rotate) if rotate == true then if IS_POWER_ON == true then gpio.write(ROTATOR, gpio.HIGH) end else gpio.write(ROTATOR, gpio.LOW) end IS_ROTATE = rotate save_settings() end function set_mode(mode) gpio.write(ENGIN...
------------------------------------ ------wirting by 98wubi Group------- ------http://98wb.ys168.com/-------- ------------------------------------ --*******农历节气计算部分 --========角度变换=============== local rad = 180*3600/math.pi --每弧度的角秒数 local RAD = 180/math.pi --每弧度的角度数 function int2(v) --取整数部分 v=math.floor(v) if v...
MultishotPlayerScreens = { ["Cervus"] = { "WoWScrnShot_020915_203511.jpg", -- [1] "WoWScrnShot_020915_203512.jpg", -- [2] "WoWScrnShot_020915_203513.jpg", -- [3] }, }
local class = require 'middleclass' local skynet = require 'skynet' local socket = require 'skynet.socket' local socketdriver = require 'skynet.socketdriver' local serial = require 'serialdriver' local master = class("Modbus_Master_Skynet") --- -- stream_type: tcp/serial function master:initialize(mode, opt, little_...
--------------------------------------------------- -- ___ _ -- -- | __| |___ _ __ _____ __ _____ _ _ -- -- | _|| / -_) '_ \/ _ \ V V / -_) '_| -- -- |___|_\___| .__/\___/\_/\_/\___|_| -- -- |_| -- -- ...
return { { effect_list = { { type = "BattleSkillFire", casterAniEffect = "", target_choise = "TargetNil", targetAniEffect = "", arg_list = { weapon_id = 67041, emitter = "BattleBulletEmitter" } } } }, { effect_list = { { type = "BattleSkillFire", casterAniEffe...
_addon.name = 'yarr' _addon.author = 'Suteru' _addon.version = '0.8' _addon.language = 'English' require('luau') texts = require('texts') -- Config defaults = {} defaults.display = {} defaults.display.pos = {} defaults.display.pos.x = 1500 defaults.display.pos.y = 0 defaults.display.bg = {} defaults.display.bg.red =...
class = require 'misc/30logclean' Node = class { id = 0, radius = 20, x = 0, y = 0 } Node.name = "Node"
local version = { major = love._version_major, minor = love._version_minor, revision = love._version_revision } local function getNumbers(tbl) return tbl.major or tbl[1], tbl.minor or tbl[2] or 0, tbl.revision or tbl[3] or 0 end local mt; mt = { __eq = function(self, other) local x1, x2, x3 = getNumbers...
local skynet = require "skynet" local socket = require "skynet.socket" local sproto = require "sproto" local sprotoloader = require "sprotoloader" local pbcoder = require "protobufcoder" local msgdef = require "protobufmsgdef" local sharetable = require "skynet.sharetable" local util = require "util" local httpc = requ...
local _2afile_2a = "fnl/conjure/client/clojure/nrepl/init.fnl" local _1_ do local name_4_auto = "conjure.client.clojure.nrepl" local module_5_auto do local x_6_auto = _G.package.loaded[name_4_auto] if ("table" == type(x_6_auto)) then module_5_auto = x_6_auto else module_5_auto = {} end...
local Util do local _class_0 local _base_0 = { replace_special_chars = function(str) return vim.api.nvim_replace_termcodes(str, true, false, true) end, normal_bang = function(keys) return vim.api.nvim_feedkeys(Util.replace_special_chars(keys), 'nx', true) end, rnormal = function(keys...
--[[ © 2015 CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] CW_SPANISH = Clockwork.lang:GetTable("Spanish"); CW_SPANISH["MapSceneRemoved"...
local null_ls = require("null-ls") null_ls.config({ diagnostics_format = "[#{c}] #{m} (#{s})", sources = { -- global null_ls.builtins.formatting.trim_whitespace, -- lua null_ls.builtins.diagnostics.luacheck, null_ls.builtins.formatting.stylua, -- js / ts null_ls.builtins.diagnostics.eslint, null_ls.b...
Scoreboard = class("Scoreboard") function Scoreboard:initialize(player, x) self.player = player if player == 1 then self.x = x or 30 else self.x = x or love.graphics.getWidth() - 200 end end
-- Author : bobby.cannon -- Create Date : 1/13/2012 7:41:32 PM BobsCastingBarThinTemplate = { } function BobsCastingBarThinTemplate:Layout(bar) -- Set the bar settings. bar:SetWidth(bar.Settings.Width); bar:SetHeight(bar.Settings.Height); -- Reset the graphics settings. local Graphics = bar.Graphics; Gr...
local function useHeadphones () local output = hs.audiodevice.findOutputByName("External Headphones") if (output) then output:setDefaultOutputDevice() end local input = hs.audiodevice.findInputByName("External Microphone") if (input) then input:setDefaultInputDevice() end end audio = { useHeadph...
-- -- (C) 2013 Kriss@XIXs.com -- local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,Gload,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,_VERSION,xpcall,module,require=coroutine,package,str...
Plane = {} Plane.__index = Plane function Plane.new(normal, d) local self = {} self.normal = normal self.d = d self.position = self.normal * d setmetatable(self, Plane) return self end function Plane:intersect(ray) local a = ray.d:dot(self.normal) if a >= 0 then return nil end local b = self.normal:dot(...
local sv = net.createServer(net.TCP, 10) sv:listen(81, function(conn) conn:on("receive", function(conn, payload) -- local _, count = payload:gsub('\n', '\n') -- print('received', count, 'lines') local header = {} local x = 0 if (sjson == nil) then sjson = cjson end for line in string.gmatch(payload, '[^\n]+...
-- ITS - In The Shadows -- Copyright (C) 2015, 2016, 2017 James Niemira -- -- 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 3 of the License, or -- (at your option) any later ve...
---@meta ---@class cc.CatmullRomBy :cc.CardinalSplineBy local CatmullRomBy={ } cc.CatmullRomBy=CatmullRomBy ---* Initializes the action with a duration and an array of points.<br> ---* param dt In seconds.<br> ---* param points An PointArray. ---@param dt float ---@param points point_table ---@return boolean func...
#!/usr/bin/env lua --[[ - ltkimage.lua - - an example for some ltk image stuff and idle callbacks - - Gunnar Zötl <gz@tset.de>, 2010. - Released under MIT/X11 license. See file LICENSE for details. --]] require "ltk" img = ltk.image{'create', 'photo', width=256, height=256} imgcmd = ltk.wcmd(img) function dra...
--- Array constructors. -- Standard library imports -- local assert = assert local error = error local select = select local type = type local unpack = unpack -- Modules -- local af = require("arrayfire_lib") local array = require("impl.array") -- Imports -- local CallWrap = array.CallWrap local IsArray = array.IsAr...
return require('packer').startup(function() -- Packer can manage itself as an optional plugin use {'wbthomason/packer.nvim', opt = true} -- Color scheme use { 'sainnhe/gruvbox-material' } -- Fuzzy finder use { 'nvim-telescope/telescope.nvim', requires = {{'nvim-lua/popup.nvim'}, {'nvim-lu...
local dims = {[5001]=true, [5002]=true,[5003]=true,[5004]=true,[5005]=true, [5006]=true} function transferedDim (thePlayer, lastDim) if (dims[getElementDimension(thePlayer)]) then for k, thePlayers in ipairs ( getElementsByType( "player" ) ) do if (getElementDimension(thePlayers) == getElementDimension(thePlaye...
--[[ redis_asm.lua approximate string matching for redis Copyright (c) 2015 Masato Yamaguchi This software is released under the MIT License. http://opensource.org/licenses/mit-license.php USAGE: > eval "(content of this script)" 1 KEY NEEDLE MAX_RESULTS @param {string} KEY Name of key. Accepts ZSET, S...
return function(sources) local hello = of('Hello World!') local onStop = sources.stop:map(always("Bye!")) return { print=hello:concat(interval(100):merge(onStop)), stop=of(true):delay(2500) } end
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local TweenService = game:GetService("TweenService") local Roact = require(ReplicatedStorage.Vendor.Roact) local Tooltip = Roact.Component:extend("Tooltip") Tooltip.defaultProps = { HoverInSpeed = 3, Hover...
ITEM.name = "File Cabinet" ITEM.description = "containerFileCabinetDesc" ITEM.ContainerModel = "models/props_lab/filecabinet02.mdl" ITEM.price = 300
----@type string local AddOnName = ... ---@type Addon local AddOn = select(2, ...) local L = AddOn.L ---@type Database AddOn.DB = LibMan1:Get("LibDatabase", 1):New(AddOnName, "CountIt_DB", L.DEFAULT) local DB = AddOn.DB DB:SetDefault(LibStub("LibSharedMedia-3.0"):GetDefault(LibStub("LibSharedMedia-3.0").MediaType.FO...
--[[ GD50 Match-3 Remake -- Tile Class -- Author: Colton Ogden cogden@cs50.harvard.edu The individual tiles that make up our game board. Each Tile can have a color and a variety, with the varietes adding extra points to the matches. ]] Tile = Class{} function Tile:init(x, y, color, variety, shiny) -- boar...
object_intangible_vehicle_tcg_hk47_jetpack_pcd = object_intangible_vehicle_shared_tcg_hk47_jetpack_pcd:new { } ObjectTemplates:addTemplate(object_intangible_vehicle_tcg_hk47_jetpack_pcd, "object/intangible/vehicle/tcg_hk47_jetpack_pcd.iff")
function initWifi(callback) if config == nil or config.wifi == nil or config.wifi.enabled ~= true then return end wifi.setmode(wifi.STATION) wifi.sta.config({ssid=config.wifi.ssid, pwd=config.wifi.password}) wifi.sta.autoconnect(1) -- wait for the wifi connection to be established -- this is basical...
Lobbies = {} CLobbyBrowser = {} function CLobbyBrowser:constructor() triggerServerEvent("onClientRequestLobbies", getRootElement(), getLocalPlayer()) self.Gui ={ ["Window"] = false, ["Image"] = {}, ["Button"] = {}, ["Label"] = {}, ["List"] = {} } self.Gui["Window"] = new(CDxWindow, "Lobbybrowser", 602...
-- 以下列出了 Lua 的保留关键字。保留关键字不能作为常量或变量或其他用户自定义标示符 -- 一般约定,以下划线开头连接一串大写字母的名字(比如 _VERSION)被保留用于 Lua 内部全局变量 --[[ and break do else elseif end false for function if in local nil not or repeat return then true until while --]]
local helpers = require('test.unit.helpers') local cimport = helpers.cimport local internalize = helpers.internalize local eq = helpers.eq local ffi = helpers.ffi local lib = helpers.lib local cstr = helpers.cstr local to_cstr = helpers.to_cstr local NULL = helpers.NULL require('lfs') local env = cimport('./src/nvim...
if GetBot():IsInvulnerable() or not GetBot():IsHero() or not string.find(GetBot():GetUnitName(), "hero") or GetBot():IsIllusion() then return; end local ability_item_usage_generic = dofile( GetScriptDirectory().."/ability_item_usage_shutnik" ) local utils = require(GetScriptDirectory() .. "/util") local mutil = requ...
local Version = "1.0.3_rww" --[[ For game developers, feel free to take everything in this script without credit, I don't mind :) Tips: If you remove Wally UI reference (which I'll do in newer version if I have time), this script works in Level 2 (LocalScript in normal games, not exploit) ]] print...
require 'nn' require 'model/common' local function createModel(opt) local addbn = opt.modelVer == 1 local addrelu = (opt.modelVer == 1) or (opt.modelVer == 2) local actParams = {} actParams.actType = opt.act actParams.l = opt.l actParams.u = opt.u actParams.alpha = opt.alpha ...
local env=env local event,hook,grid=env.event,env.ProFi,env.grid local prof=jit and jit.profile local tracer={status="off",profiler="off"} tracer.prof_cache={} function tracer.profile(thread, samples, vmstate) local func=prof.dumpstack(thread, 'pl\tF', 1) if func:find("input.lua",1,true) then return end l...
--[[ Copyright (c) 2009-2015, Hendrik "Nevcairiel" Leppkes < h.leppkes at gmail dot com > All rights reserved. ]] local AceGUI = LibStub("AceGUI-3.0") -------------------------- -- Edit box -- -------------------------- --[[ Events : OnTextChanged OnEnterPressed ]] do local Type = "NumberEditBox" local Ve...
local regendelay = 4 local regenhps = 200 -- Health per second after delay function GM:EntityTakeDamage(ent, dmg) if ent:IsPlayer() then if not ent:GetIsDowned() then if dmg:GetDamage() >= ent:Health() then ent:DownPlayer() return true else ent.nzu_RegenStart = CurTime() + regendelay end else...
-- Online Interiors IPL Edits -- Use https://github.com/Bob74/bob74_ipl/wiki to edit below -- Apartment 5 (4 Integrity Way, Apt 28)
data:extend({ -- Item { type = "item", name = "5d-masher", icon = "__5dim_resources__/graphics/icon/icon_5d_masher_.png", flags = {"goes-to-quickbar"}, icon_size = 32, subgroup = "masher", order = "a", place_result = "5d-masher", stack_size = 50 }, --Recipe { type = "recipe", name = "5d-mash...
local BasePlugin = require "kong.plugins.base_plugin" local responses = require "kong.response.exit" local constants = require "kong.constants" local jwt_decoder = require "kong.plugins.jwt.jwt_parser" local ngx_re_gmatch = ngx.re.gmatch local JWTValidateHandler = BasePlugin:extend() JWTValidateHandler.PRIORITY = 990...
local reg = debug.getregistry() local GetActiveWeapon = reg.Player.GetActiveWeapon local GetDTFloat = reg.Entity.GetDTFloat local GetRunSpeed = reg.Player.GetRunSpeed local GetWalkSpeed = reg.Player.GetWalkSpeed local GetCrouchedWalkSpeed = reg.Player.GetCrouchedWalkSpeed local Crouching = reg.Player.Crouching local w...
HallViewPath = ViewPath .. "hall/" SettingViewPath = ViewPath .. "hall/setting/" RechargeViewPath = ViewPath .. "hall/recharge/" BrokeAllowanceViewPath = ViewPath .. "hall/brokeAllowance/" ActivityViewPath = ViewPath .. "hall/activity/" SafeBoxViewPath = ViewPath.."hall/safebox/" TaskRewardViewPath = ViewPath.....
function nCharacterList( len ) GAMEMODE.Characters = net.ReadTable(); end net.Receive( "nCharacterList", nCharacterList ); function GM:CharCreateThink() if( self.QueueCharCreate ) then if( !self.IntroCamStart or !self:InIntroCam() ) then if( !CCP.Quiz or !CCP.Quiz:IsValid() ) then self.Que...
bit = {} function bit.tobit(...) end function bit.bnot(...) end function bit.band(...) end function bit.bor(...) end function bit.bxor(...) end function bit.lshift(...) end function bit.rshift(...) end function bit.arshift(...) end function bit.rol(...) end function bit.ror(...) end function bit.bswap(...) en...
local i = assets.images back = { N = { default = { all = i.bg_N_all, cool = i.bg_N_cool, pure = i.bg_N_pure, smile = i.bg_N_smile }, idolized = { all = i.bg_N_all, cool = i.bg_N_cool_idolized, pure = i.bg_N_pure_idolized, smile = i.bg_N_smile_idolized } }, R = { default = { al...
function OnDamagedRecord(player, damage) if damage then if damage.sourcePlayer then damage.sourcePlayer:SetResource("TankDamage", damage.sourcePlayer:GetResource("TankDamage") + damage.amount) end end end function OnJoined(player) player:SetResource("TankDamage", 0) player.damagedEvent:Conne...
local function diplazer_getAmount(player, mode,admin) local Name=player:get_inventory():get_stack("main", player:get_wield_index()-1):get_name() local is_node=(minetest.registered_nodes[Name] or Name == "air") local stack_count=player:get_inventory():get_stack("main", player:get_wield_index()-1):get_count() ...
local Enums = require("common/enums") local Cursor if not love._console_name then Cursor = love.mouse.newCursor( love.image.newImageData( "assets/gfx/common/cursor.png" ), 0, 0 ) --mouse functionality not implemented end local Atlases = { Title = { Selection = love.graphics.newImage("assets/gfx/title/at...
function onClick ( button ) local parent = guiGetElementParent ( source ) local event = guiGetElementEvents ( source ) local info = guiGetElementInfo ( source ) if button == "left" then if parent == "utilButton" then if info == "close" then ...
return { name = "Upgrade Bench", desc = "For upgrading tools", sprite = 'upgrade_bench', usage = 'bench', bench = { { time = 0, output = {item = 'iron', count = 1}, input = {{item = 'stone', count = 2}} }, { time = 10, outpu...
-- Server Main Test RegisterCommand('server:test', function() TriggerClientEvent('t-notify:client:Custom', -1, { style = 'success', duration = 10500, title = 'Markdown Formatting Example', message = '``Code``\n **Bolded Text** \n *Italics Yo* \n # Header 1\n ## Header 2\n', sound = true ...
require "logging.file" local logger = logging.file("__TEST%s.log", "%Y-%m-%d") logger:info("logging.file test") logger:debug("debugging...") logger:error("error!") logger:info({id = "1"})
return function(rt) --@sec: Label --@def: type Label --@doc: Label is a widget that displays text. local Label = {__index={}} local function updateInteract(self) if self.style then local mod if self.disabled then mod = "Disabled" end self.style:SetExclusiveFlags(self.root, mod) end end --@sec: Label.new ...
-- Please dont remove my rights -- Made by Oscar_Moe_Jadi --for High Style and Arab Master -- Menu configuration, array of menus to display menuConfigs = { ['VRP'] = { -- Example menu for vehicle controls when player is in a vehicle enableMenu = function() ...
return { init_effect = "", name = "航空副油箱T3", time = 0, color = "yellow", picture = "", desc = "舰载机耐久增加30点", stack = 1, id = 6091, icon = 6091, last_effect = "", effect_list = { { type = "BattleBuffAddAttr", trigger = { "onAttach" }, arg_list = { attr = "hiveExtraHP", number = 120 ...
local class = require("class") local Player = class.newClass() function Player:init(creature) self.creature = creature end function Player:updateInputs() self.creature.oldJumpInput = self.creature.jumpInput local left = love.keyboard.isDown("a") local right = love.keyboard.isDown("d") local up = love.keyb...
function fadeToBlack() fadeCamera (true, 0, 0, 0, 0 ) fadeCamera ( false, 1, 0, 0, 0 ) end function fadeFromBlack() fadeCamera (false, 0, 0, 0, 0 ) fadeCamera (true, 1, 0, 0, 0 ) end
local Selection = game:GetService("Selection") local Modules = script.Parent.Parent local Roact = require(Modules.Roact) local RoactStudioWidgets = require(Modules.RoactStudioWidgets) local GeneratorService = require(script.Parent.GeneratorService) local EnumProperty = require(script.Parent.EnumProperty) local SliderP...
local window = {} local hastaunt = false window.state = false window.CurrentlyOpen = false net.Receive("PH_ForceCloseTauntWindow", function() if window.CurrentlyOpen then window.frame:Close() end window.state = false end) net.Receive("PH_AllowTauntWindow", function() window.state = true end) local function M...
ITEM.name = "Ithaca 37" ITEM.description= "A 12 gauge pump-action shotgun." ITEM.longdesc = "As one of the only pre-World War II shotguns still being produced, the Ithaca 37 is a well designed, well tested shotgun made for both the military, police and civilian markets. The loading and ejection port is situated on the ...
--[[ Copyright 2017 wrxck <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local captionbotai = {} local mattata = require('mattata') local https = require('ssl.https') local url = require('socket.url') local ltn12 = require('ltn12') local json = require...
local table = require"luv.table" local string = require"luv.string" local dev = require"luv.dev" local pairs, require, select, unpack, type, rawget, rawset, math, os, tostring, io, ipairs, dofile = pairs, require, select, unpack, type, rawget, rawset, math, os, tostring, io, ipairs, dofile local error, debug = error, d...
-- Copyright (C) 2009-2011 Florian Zeitz -- -- This file is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- -- luacheck: ignore 212/self 212/data 212/state 412/err 422/err local _G = _G; local prosody = _G.prosody; local hosts = prosody.hosts; local t_concat = table.con...
-- Copyright © (C) Zhendong (DDJ) -- 更新日期:2019.02.28 11.25 -- 定时器主配置文件调用的库函数,和conf/lua/init_worker.lua -- 配合使用 local _M = {} local sm = require"resty.kerri.basic.send_message" local log = ngx.log local INFO = ngx.INFO local ERR = ngx.ERR -- black&white ip timer -- 黑白...
local _, L = ... local UI, Control, db = ConsolePortUI:GetEssentials() local KEY = db.KEY local Button = {} L.Button = Button function Button:OnEnter() self:LockHighlight() Control:AddHint(KEY.CROSS, ACCEPT) if self.Hilite.flashTimer then db.UIFrameFlashStop(self.Hilite, self.Hilite:GetAlpha()) end db.UIFrameF...
--[===[DOC = shellcommand [source,lua] ---- function shellcommand( commandTab ) --> commandStr ---- Construct the shell command string `commandStr`, suitable to be executed by `os.execute`. The input is the array of strings `commandTab`, the first being the external command path, the other being all the arguments. ...
-- -- Suicidal Snail -- -- Author: Robert G. Jakabosky <bobby@sharedrealm.com> -- require"zmq" require"zmq.threads" require"zhelpers" -- --------------------------------------------------------------------- -- This is our subscriber -- It connects to the publisher and subscribes to everything. It -- sleeps for a...