content stringlengths 5 1.05M |
|---|
--[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG
Bugtracker: https://forum.404rq.com/bug-reports
Suggestions: https://forum.404rq.com/mta-se... |
print("Cubic Pixel Works") |
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, 0)
local condition = Condition(CONDITION_LIGHT)
condition:setParameter(CONDITION_PARAM_LIGHT_LEVEL, 8)
condition:setParameter(CONDITION_PARAM_LIGHT_COLOR, 215)
condition:setParameter(CONDI... |
-- Spectate
local spectating = nil
local sx, sy = guiGetScreenSize ()
local randomButton = guiCreateButton ( sx / 2 - 100, sy - 50, 110, 30, "Random Player", false )
local backButton = guiCreateButton ( sx / 2 + 15, sy - 50, 110, 30, "Back", false )
guiSetVisible( backButton, false )
guiSetVisible( randomButton, false... |
import "UnityEngine"
import "UnityEngine.UI"
import "UnityEngine.EventSystems"
local scriptInclude = {
}
function include(name)
table.insert(scriptInclude, name)
end
function progress(value, text)
XBootstrap.GetSingleton():SetProgress(value, text)
if value >= 1.0 then
XBootstrap.G... |
local tilemap = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0,
0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0,
0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0,
0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ... |
function love.conf(t)
t.console = true
t.window.width = 1440
t.window.height = 720
end
|
PAM_EXTENSION.name = "terrortown_support"
PAM_EXTENSION.enabled = true
function PAM_EXTENSION:OnInitialize()
-- terrortown support
if GAMEMODE_NAME ~= "terrortown" then return end
-- Notify PAM that the round has ended
hook.Add("TTTEndRound", "PAM_RoundEnded", function()
PAM.EndRound()
end)
-- ttt2/ttt2
if... |
---@type Plugin
local plugin = ...
local function moveItem(item, difference)
item.pos:add(difference)
item.rigidBody.pos:add(difference)
end
local function teleportHumanWithItems(man, pos)
local oldPos = man.pos:clone()
oldPos:mult(-1.0)
local difference = pos:clone()
difference:add(oldPos)
man:teleport(pos)
... |
local setmetatable = setmetatable
local profiling = require("unity.profiling")
local IsUnityProfilerAvailable = profiling and profiling.IsAvailable or false
local ProfilerMarker = {}
local DummyProfilerMarkerPrototype = {}
DummyProfilerMarkerPrototype.__index = DummyProfilerMarkerPrototype
do
function DummyProfi... |
function love.conf(t)
t.window.title = "Horse Breeder"
t.window.width = 800
t.window.height = 600
t.window.display = 2
t.console = true
end
|
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com>
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
local drawing = {}
local colors = require "moonpie.graphics.colors"
local image = require "moonpie.graphics.image"
function drawing.standard(node)
if node.hid... |
local SolidShape = {}
SolidShape.__index = SolidShape
local SHAPE_INDEX = {
circle = 1,
triangle = 2,
square = 3,
pentagon = 4,
hexagon = 5
}
SolidShape.SHAPE_INDEX = SHAPE_INDEX -- enum accessible to the outside
--[[
local SHAPE_KILL_RULES = {
circle = { circle = true, triangle = true ... |
--
--------------------
-- Constructors
--------------------
--- Constructor for the "[Color](Color.md)" class.
---
--- When using the [Font](Font.md) class, use [KColor()](KColor.md) instead.
---
--- Colors are made of three separate components, tint, colorize and offset. Tint acts like a color multiplicator. Offs... |
local BUILDER, PART = pac.PartTemplate("base")
PART.ClassName = "faceposer"
PART.FriendlyName = "face poser"
PART.Icon = 'icon16/monkey.png'
PART.Group = 'entity'
BUILDER:StartStorableVars()
:GetSet("Preset", "", {enums = function(part)
local ent = part:GetOwner()
if not ent:IsValid() then return end
local ... |
--[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Copyright 2013 Edwin Chen <edwin@dragino.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the Licen... |
-- This module implements interface for sending and receiving DNS messages
local ffi = require('ffi')
local n16 = require('dns.utils').n16
-- Declare module
local M = {}
function M.family(addr)
if addr:find('/', 1, true) then
return 'unix'
end
if addr:find(':', 1, true) then
return 'inet6'
end
return 'inet'
... |
--[[
qcview for vrecord, based on:
mpv scopes
Copyright 2017 Paul B Mahol
License: public domain
Source: https://paste.ubuntu.com/25318437/
Default config:
- Enter/exit scopes keys mode: ctrl+s
--]]
-- ------ config -------
local mp_msg = require 'mp.msg'
local start_keys_enabled = true -- if true then choose the ke... |
local cairo = require("lgi").cairo
local awful = require("awful")
local gears = require("gears")
local wibox = require("wibox")
local beautiful = require("beautiful")
local helpers = require(tostring(...):match(".*bling") .. ".helpers")
local dpi = beautiful.xresources.apply_dpi
local window_switcher_first_client -- T... |
--===========================================================================--
-- --
-- System.Date --
-- --
... |
local casino = require("casino")
local event = require("event")
local shell = require("shell")
local unicode = require("unicode")
local settings = require("settings")
local computer = require('computer')
local games
local currencies
local image
local buffer
local colorlib
REPOSITORY = settings.REPOSITORY
CURRENT_APP ... |
local Cuboid = assert(foundation.com.Cuboid)
local ng = Cuboid.new_fast_node_box
local function pie_on_rightclick(pos, node, clicker, itemstack, pointed_thing)
local nodedef = minetest.registered_nodes[node.name]
if nodedef.pie_stage > 1 then
-- TODO: add a pie slice to clicker's inventory
node.name = "ya... |
/*
* Torrent - 2013 Illuminati Productions
*
* This product is 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 ... |
-- This file is subject to copyright - contact swampservers@gmail.com for more information.
-- INSTALL: CINEMA
SWEP.PrintName = "Golf Club"
SWEP.ViewModel = "models/pyroteknik/putter.mdl"
SWEP.WorldModel = "models/pyroteknik/putter.mdl"
SWEP.Slot = 0
SWEP.AutoSwitchTo = false
------------------------------------------... |
-- This file is licensed under the terms of the BSD 2-clause license.
-- See LICENSE.txt for details.
irc.msgs = irc.lib.msgs
function irc:logChat(message, name)
if name then
name = " to "..name
else
name = ""
end
minetest.log("action", "IRC CHAT"..name..": "..message)
end
function irc:sendLocal(message)
mi... |
function PowerUpVariaSuit.main()
end
PowerUpVariaSuit.Self = nil
function PowerUpVariaSuit.OnPickedUp(_ARG_0_)
Game.PlayEntitySoundContinueOnDead("generic/obtencion.wav", _ARG_0_.sName, 1, 500, 4000, 1)
local oActor = Game.GetActor("cutsceneplayer_30")
if oAct... |
return {'efedrine','efemeer','efemeriden','efe','efemere'} |
require('utils')
local image = require("../image");
local item = require("../item")
return {
name = "Rummage",
amount = 5,
condition = function (state)
return state.knightInvited and state.coins >= 10
end,
description = "You decide to rummage through the knights' storeroom.",
heads = {
... |
--[[
Nameplate Filter
Add the nameplates name that you do NOT want to see.
]]
local E, L, V, P, G = unpack(select(2, ...)) --Engine
G.nameplate.filters = {
ElvUI_Boss = {
triggers = {
level = true,
curlevel = -1,
priority = 2
},
actions = {
usePortrait = true,
scale = 1.15
}
},
ElvUI_Targe... |
local name = "nfpm"
local version = "2.15.1"
food = {
name = name,
description = "nFPM is a simple, 0-dependencies, deb, rpm and apk packager.",
license = "MIT",
homepage = "https://nfpm.goreleaser.com",
version = version,
packages = {
{
os = "linux",
arch = "arm... |
if not LoadResourceFile(GetCurrentResourceName(), "players.json") then
SaveResourceFile(GetCurrentResourceName(), "players.json", "{}", -1)
end
Citizen.CreateThread(function()
while GetConvar('rcon_password', nil) ~= nil do
local buffer = GetConsoleBuffer()
for i=0, GetNumPlayerIndices() -1 do... |
local AddUiTop = {}
local Controller = require('mvc.Controller')
local App = require('app.App')
local _suitop
function AddUiTop.show(type_, callBack_)
type_ = type_ or 1
if not _suitop then
_suitop = Controller.loadController('UiTopController');
--App.topLayer:addChild(_suitop.view)
end
_s... |
--Vayne
local pred = module.internal("pred")
local ts = module.internal('TS')
local orb = module.internal("orb")
local EvadeInternal = module.seek("evade")
local minionmanager = objManager.minions
local delayedActions, delayedActionsExecuter = {}, nil
local function DelayAction(func, delay, args) --delay i... |
-- Main ----------------------------------------------------------
local OneSignal = require("plugin.OneSignal")
local composer = require("composer")
local json = require("json")
local myData = require("mydata")
local loadsave = require( "loadsave" )
local lfs = require( "lfs" )
display.setStatusBar( display.HiddenStat... |
local log = require("log")
local Api = require("coreApi")
local json = require("json")
local http = require("http")
function ReceiveFriendMsg(CurrentQQ, data)
return 1
end
function ReceiveGroupMsg(CurrentQQ, data)
if data.FromUserId ==2986807981 then--防止自我复读
return 1 end
if string.find(data.Content, "#") and ... |
---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0273-webengine-projection-mode.md
--
-- Description:
-- Check that SDL doesn't close the connection with WebEngine
-- projection app if ... |
local function invert_map(m)
local inv = {}
for k, v in pairs(m) do
inv[v] = k
end
return inv
end
-- x- to x+
local param2_x_mapping = {
[1] = 3,
[3] = 1,
[5] = 7,
[9] = 11,
[16] = 11,
[18] = 14,
[23] = 21,
[21] = 23
}
-- x- to x+
local param2_x_mapping_inv = ... |
meta.name = "The Floor is Lava"
meta.version = "0.5"
meta.description = "All floor tiles become lava shortly after standing on them"
meta.author = "garebear"
TILES = {}
DEFAULT_LAVA_TIMER = 60 * 2
PARTICLE_DELAY = 15
SAFE_FLOOR = nil
UNSAFE_FLOORS = {
[ENT_TYPE.FLOORSTYLED_MINEWOOD] = true,
[ENT_TYPE.FLOOR_GE... |
return
{
['int'] = { _name='NormalClazz',name='int',desc='primity type:int',parents={},methods={},is_abstract=false,fields={},},
} |
-- started: 2015-07-16
--------------------------------------------------------------------------------
-- _G [false] = true
-- _G [true] = false
-- _G [{}] = "aaa"
--------------------------------------------------------------------------------
-- luacheck: new_globals Settings
far.ReloadDefaultScript = true
... |
-- 字符串操作
-- 字符串全部转为大写字母。
print(string.upper("argument"))
-- 字符串全部转为小写字母。
print(string.lower("Argument"))
-- string.gsub(mainString,findString,replaceString,num)
-- 在字符串中替换,mainString为要替换的字符串, findString 为被替换的字符,replaceString 要替换的字符,num 替换次数(可以忽略,则全部替换),如:
str, len = string.gsub("abc", "a", "b", 1)
print(str .. le... |
local ErrorController = {}
function ErrorController:error()
local view = self:getView()
view:assign(self.err)
return view:display()
end
return ErrorController
|
local env = vim.env
local g = vim.g
local fn = vim.fn
local api = vim.api
local o = vim.o
local utils = require("utils")
local nmap = utils.nmap
local xmap = utils.xmap
local omap = utils.omap
local imap = utils.imap
if (fn.isdirectory(".git")) then
nmap("<leader>t", ":GitFiles --cached --others --exclude-standard<c... |
function Client_PresentConfigureUI(rootParent)
rootParentobj = rootParent;
JustSpectatorinit = Mod.Settings.JustSpectator;
if(JustSpectatorinit == nil)then
JustSpectatorinit = true;
end
ShowUI();
end
function ShowUI()
local horz = UI.CreateHorizontalLayoutGroup(rootParentobj);
inputJustSpectator = ... |
-- note: the garbage collector can be explicitly invoked with collectgarbage
function test_gc_does_not_remove_values_from_regular_tables_with_references()
local t = {}
t.foo = {}
collectgarbage()
assert_equal(__('table'), type(t.foo))
end
function test_gc_removes_values_from_tables_with__mode_set_to_v_if_the... |
local copas=require'copas'
local ws_client
local sslparams = {
mode = "client",
protocol = "tlsv1_2",
verify = "none",
options = "all",
}
copas.addthread(function ( )
copas.sleep(0.1)
local ws_uri='wss://echo.websocket.org'
ws_client = require('websocket.client').copas()
local r,msg=ws_client:connect(ws_uri,... |
name = "EcoManager"
uid = "b2cde810-15d0-4bfa-af66-ec2d6ecd561b"
version = 3
copyright = "Crotalus"
description = "EcoManager v3, more efficient energy throttling"
author = "Crotalus"
url = ""
icon = ""
selectable = true
enabled = true
exclusive = false
ui_only = true
requires = {}
requiresNames = {}
conflicts = {
"e6... |
minetest.register_entity("factory:moving_item", {
initial_properties = {
hp_max = 1,
physical = false,
collisionbox = {0.125, 0.125, 0.125, 0.125, 0.125, 0.125},
visual = "wielditem",
visual_size = {x = 0.2, y = 0.2},
textures = {""},
spritediv = {x = 1, y = 1},
initial_sprite_basepos = {x = 0, y = 0},... |
------------------------------------------------------------------
--
-- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Copyright (C) 2015 Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Licensed according to the included 'LICENSE' document
--
-- This file is part of lua-lluv-websocket library.
--
... |
return {
summary = 'Get the type of the Texture.',
description = 'Returns the type of the Texture.',
arguments = {},
returns = {
{
name = 'type',
type = 'TextureType',
description = 'The type of the Texture.'
}
},
related = {
'TextureType',
'lovr.graphics.newTexture'
}
}
|
--This file should contain all commands meant to be used by mappings.
local cc = require("neo-tree.sources.common.commands")
local fs = require("neo-tree.sources.filesystem")
local utils = require("neo-tree.utils")
local filter = require("neo-tree.sources.filesystem.lib.filter")
local renderer = require("neo-tree.ui.r... |
cc = cc or {}
---EventListenerFocus object
---@class EventListenerFocus : EventListener
local EventListenerFocus = {}
cc.EventListenerFocus = EventListenerFocus
--------------------------------
--
---@return bool
function EventListenerFocus:init() end
--------------------------------
---/ Overrides
---@return EventLi... |
-- ffi setup
local ffi = require("ffi")
local C = ffi.C
local Lib = require("extensions.sn_mod_support_apis.lua_library")
local menu = {}
local dock_menu = {}
local sto_menu = {}
local config = {
modes = {
[1] = { id = "travel", name = ReadText(1002, 1158), stoptext = ReadTe... |
function onCreate()
makeAnimatedLuaSprite('Trall_Back', 'Trall_Back', -800, -190);
scaleObject('Trall_Back', 5.3, 5.3)
addAnimationByPrefix('Trall_Back', 'Trall_Back', 'Trall_Back', 24, true);
objectPlayAnimation('Trall_Back', 'Trall_Back', true)
addLuaSprite('Trall_Back', false);
makeLuaSprit... |
local PANEL = {}
PANEL.last_pos = 0
PANEL.margin = 0
function PANEL:Init()
self.VBar.Paint = function() return true end
self.VBar.btnUp.Paint = function() return true end
self.VBar.btnDown.Paint = function() return true end
self.VBar.btnGrip.Paint = function() return true end
self:PerformLayout()
functio... |
---@class CS.FairyEditor.PackageGroupSettings : CS.FairyEditor.SettingsBase
---@field public groups CS.System.Collections.Generic.List_CS.FairyEditor.PackageGroupSettings.PackageGroup
---@type CS.FairyEditor.PackageGroupSettings
CS.FairyEditor.PackageGroupSettings = { }
---@return CS.FairyEditor.PackageGroupSettings
-... |
-- Bench transformation matrix computation for a list of entities.
package.path = "src/?.lua;../src/?.lua;"..package.path
local mgl = require("MGL")
local tvec3 = mgl.require_vec(3)
local ents, ticks = ...
ents = tonumber(ents) or 1e3
ticks = tonumber(ticks) or 600
local entities = {}
for i=1,ents do
table.insert(e... |
ys = ys or {}
slot1 = ys.Battle.BattleUnitEvent
ys.Battle.BattleAircraftCharacter = class("BattleAircraftCharacter", ys.Battle.BattleCharacter)
ys.Battle.BattleAircraftCharacter.__name = "BattleAircraftCharacter"
ys.Battle.BattleAircraftCharacter.Ctor = function (slot0)
slot0.super.Ctor(slot0)
slot0._hpBarOffset = ... |
pfDB["zones"]["koKR-tbc"] = {
[1] = "던 모로",
[3] = "황야의 땅",
[4] = "저주받은 땅",
[8] = "슬픔의 늪",
[10] = "그늘숲",
[11] = "저습지",
[12] = "엘윈 숲",
[14] = "듀로타",
[15] = "먼지진흙 습지대",
[16] = "아즈샤라",
[17] = "불모의 땅",
[21] = "쿨 티라스",
[22] = "프로그래머의 섬",
[25] = "검은바위 산",
[28] = "서부 역병지대",
[30] = "나인",
[33] =... |
#!/home/jart/bin/redbean -i
assert(unix.sigaction(unix.SIGUSR1, function(sig)
gotsigusr1 = true
end))
gotsigusr1 = false
assert(unix.raise(unix.SIGUSR1))
if gotsigusr1 then
print('hooray the signal was delivered')
else
print('oh no some other signal was handled')
end
|
require"ISUI/ISPanelJoypad"
---@class ISColorPicker : ISPanelJoypad
ISColorPicker = ISPanelJoypad:derive("ISColorPicker");
function ISColorPicker:render()
ISPanelJoypad.render(self)
for i,color in ipairs(self.colors) do
local col = (i-1) % self.columns
local row = math.floor((i-1) / self.columns)
self:drawRec... |
local M = {}
M._user_options = {}
M.setup = function(opts, _bufnr)
local bufnr = _bufnr or 0
function M._user_options.picker(...)
local pickers = require('sqls.pickers')
return (pickers[opts.picker] or pickers.default)(...)
end
vim.api.nvim_buf_call(bufnr, function()
vim.cmd [... |
local addon, tbl = ...;
tbl.Ignore = function(arg)
if tonumber(arg) ~= nil then
arg = tonumber(arg)
tbl.Ignore_ID(arg)
else
tbl.Ignore_Text(arg)
end
end
tbl.Remove = function(arg)
if tonumber(arg) then -- The passed argument is a number or item ID.
arg = tonumber(arg);
if tbl.Items[arg] then
if tbl.I... |
--[[
The OpenSSL stack library. Note `safestack` is not usable here in ffi because
those symbols are eaten after preprocessing.
Instead, we should do a Lua land type checking by having a nested field indicating
which type of cdata its ctx holds.
]]
local ffi = require "ffi"
local C = ffi.C
require "resty.open... |
--[[
poo funcional
]]--
local function novo(pixelPorMetro, gx, gy)
love.physics.setMeter(pixelPorMetro)
local classe = love.physics.newWorld(pixelPorMetro *gx, pixelPorMetro *gy, true)
--classe:setCallbacks(inicioContato, fimContato, preContato, posContato)
return classe
end
mundo = {
no... |
local Cuboid = assert(foundation.com.Cuboid)
local ng = Cuboid.new_fast_node_box
local node_box = {
type = "fixed",
fixed = {
ng( 0, 2, 0, 15, 4, 1),
ng( 0, 10, 0, 15, 4, 1),
ng(15, 2, 0, 1, 4, 15),
ng(15, 10, 0, 1, 4, 15),
ng( 1, 2, 15, 15, 4, 1),
ng( 1, 10, 15, 15, 4, ... |
local _, addon = ...
local quickgroups = addon.new_module("quickgroups")
local colors = addon.get_module("colors")
local function add_tooltip_text(tooltip)
local name, _ = tooltip:GetItem();
-- Add tooltip text only when hovering over keystone
if name == "Mythic Keystone" and not CursorHasItem() then
... |
--[[
EVALSHA SHA1(__FILE__) model id
> Time complexity: O(1)
Delete a hash at "#model:id:#id", and the corresponding id from the indexed
attribute id sets.
# Return value
The number of keys deleted from Redis
--]]
-- The arguments can be accessed by Lua using the KEYS global variable in the
-- form of a one-based a... |
ITEM.name = "Telephone"
ITEM.description = "itemTelephoneDesc"
ITEM.price = 5
ITEM.model = "models/mosi/fallout4/props/junk/phone.mdl" |
-- Natural Selection 2 'Classic Entities Mod'
-- Adds some additional entities inspired by Half-Life 1 and the Extra Entities Mod by JimWest - https://github.com/JimWest/ExtraEntitesMod
-- Designed to work with maps developed for Extra Entities Mod.
-- Source located at - https://github.com/xToken/ClassicEnts
-- lua\... |
package("bgfx")
set_homepage("https://bkaradzic.github.io/bgfx/")
set_description("Cross-platform, graphics API agnostic, “Bring Your Own Engine/Framework” style rendering library")
set_license("BSD-2-Clause")
add_urls("https://github.com/bkaradzic/bgfx.git")
add_versions("7816", "5ecddbf4d51e2dda... |
modifier_chashaobao = class({})
function modifier_chashaobao:IsPurgable() return false end
function modifier_chashaobao:RemoveOnDeath() return false end
function modifier_chashaobao:GetTexture() return "player/chashaobao" end
function modifier_chashaobao:OnCreated()
self.iHealthRegen = 1.0
self.iIncomingDamage = -8... |
test_run = require('test_run').new()
test_run:cmd('restart server default with cleanup=1')
fio = require('fio')
test_run:cmd("setopt delimiter ';'")
function dump_header(path)
local f = io.open(path)
local header = {}
while true do
local line = f:read()
if line == "" then break end
... |
-- generated from corecrt_wstdio.h
local ffi = require 'ffi'
ffi.cdef[[
struct _iobuf{
void* _Placeholder;
};
typedef struct _iobuf FILE;
]]
|
return {'aerobic','aerobics','aeroclub','aerodroom','aerodynamica','aerodynamisch','aeronaut','aeronautiek','aeronautisch','aeroob','aerosol','aerostatica','aerobiccen','aerosolverpakking','aerts','aerdt','aernout','aertssen','aertsen','aerssens','aerobe','aeroclubs','aerodynamische','aerosolen','aerobict','aerobicte',... |
local _, ns = ...
local oUF = ns.oUF or oUF
ns.PortraitTimerDB = {
-- Immunitys
[1022] = true, -- Hand of Protection
[104773] = true, -- Unending Resolve
[18499] = true, -- Berserker Rage
[196555] = true, -- Netherwalk (Talent)
[204018] = true, -- Blessing of Spellwarding (Talented verion of Blessing of Protecti... |
LANGUAGE = {
optDrawSafezones = "Disable rendering of safezones.",
optdDrawSafezones = "Disables the drawing of safe zones, such green circles.",
optEntityShadows = "Entity shadow drawing",
optdEntityShadows = "Sets whether an entity's shadow should be drawn.",
optDrawOutlineSZ = "Disable drawing of players in s... |
Blips = {
entities = {},
}
function Blips:Add(netId, coords)
-- Check duty and entity.
if not exports.jobs:IsOnDuty(Config.Marking.Faction) or self.entities[netId] ~= nil then
return
end
-- Create blip.
local blip = AddBlipForCoord(coords.x, coords.y, coords.z)
SetBlipSprite(blip, 317)
SetBlipColour(blip, 4... |
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)... |
getglobal game
getfield -1 Workspace
getfield -1 Player1
getfield -1 HumanoidRootPart
getglobal game
getfield -1 Workspace
getfield -1 Player2
getfield -1 Torso
getfield -1 CFrame
setfield -6 CFrame
emptystack |
-- This file contains the following functions:
-- load_rotated_mnist(file_name, count)
-- get_transformed(batch_inputs, opt)
-- calculate_error(model, data_to_check, opt)
-- Loads the dataset from an .amat file.
function load_rotated_mnist(file_name, count)
local loaded_data = {}
for line in io.lines(file_na... |
--[[
@author gilaga4815
Last Update : 6 / 8 / 2021
A-Chassis Vehicle Output Interpreter Bootstrapper
]]
-- Services
local SelectionService = game:GetService("Selection")
local StudioService = game:GetService("StudioService")
local LogService = game:GetService("LogService")
local OutputAnalyzer = require(script.Pare... |
-- A Redis script is transactional by definition
-- http://redis.io/topics/transactions
local channel = KEYS[1]
-- get oldest message in processing list
local messageId = redis.call('RPOP', channel .. ".processing")
if not messageId then
-- processing list is empty
redis.call('set', 'debug', 'return nil')
... |
ESX = nil
function defESX()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Wait(0)
end
end
Citizen.CreateThread(function()
defESX()
end)
function Notification(msg)
SetNotificationTextEntry('STRING')
AddTextComponentSubstringPlayerName(msg)
DrawNoti... |
local skynet = require "skynet"
local datacenter = require "skynet.datacenter"
local mysocket = require "mysocket"
local pm = require "playerctrl"
local tm = require "tablectrl"
local utils = require "myfunlib.base_tips.utils"
local MsgList = require 'MsgList'
local comman_msg = MsgList.comman
local CMD = {}
local db
l... |
local drawableFunction = {}
function drawableFunction.fromFunction(func, ...)
local drawable = {
_type = "drawableFunction"
}
drawable.func = func
drawable.args = {...}
drawable.draw = function(self)
self.func(unpack(self.args))
end
return drawable
end
return drawableFunc... |
-------------------------------------------------------------------------------
-- Module Declaration
--
local mod, CL = BigWigs:NewBoss("High Priest Venoxis", 859, 175)
if not mod then return end
mod:RegisterEnableMob(52155)
mod.engageId = 1178
mod.respawnTime = 30
--------------------------------------------------... |
description = [[
Crawls webservers in search of RFI (remote file inclusion) vulnerabilities. It tests every form field it finds and every parameter of a URL containing a query.
]]
---
-- @usage
-- nmap --script http-rfi-spider -p80 <host>
--
--
-- @output
-- PORT STATE SERVICE REASON
-- 80/tcp open http syn-ack
... |
application =
{
content =
{
width = 600,
height = 1024,
scale = "Letterbox",
fps = 60,
antialias = true,
imageSuffix =
{
["@2x"] = 2,
},
},
} |
data.raw["utility-constants"].default.ghost_tint =
{
r = settings.startup['blue-ghosts-r'].value,
g = settings.startup['blue-ghosts-g'].value,
b = settings.startup['blue-ghosts-b'].value,
a = settings.startup['blue-ghosts-alpha'].value
}
for _, drill in pairs(data.raw["mining-drill"]) do
if dri... |
Class("Slider")(
{
["load"] = function(s)
table.insert(GUIs, s)
end,
["clickedOn"] = false,
["hoverShadingPercent"] = 20, --Better to have a darker shading because it's harder to see on a slider
["mouseDownShadingPercent"] = 30,
["slots"] = 6, --How many slots for the slideRectangle to fit into.
["slo... |
local function Symbol(Name: string)
local self = newproxy(true)
local Metatable = getmetatable(self)
local SymbolName = string.format("Symbol(%s)", Name)
function Metatable.__tostring()
return SymbolName
end
return self
end
return Symbol
|
local RecruitAFriendShared =
{
Tables =
{
{
Name = "RafLinkType",
Type = "Enumeration",
NumValues = 4,
MinValue = 0,
MaxValue = 3,
Fields =
{
{ Name = "None", Type = "RafLinkType", EnumValue = 0 },
{ Name = "Recruit", Type = "RafLinkType", EnumValue = 1 },
{ Name = "Friend", Type = ... |
-------------------------------------------------------------------------------
-- Prints logging information to console
--
-- @author Thiago Costa Ponte (thiago@ideais.com.br)
--
-- @copyright 2004-2021 Kepler Project
--
-------------------------------------------------------------------------------
local logging = r... |
require('torch')
require('onmt.init')
local tokenizer = require('tools.utils.tokenizer')
local unicode = require('tools.utils.unicode')
local separators = require('tools.utils.separators')
local HookManager = require('onmt.utils.HookManager')
local tds = require('tds')
local cmd = onmt.utils.ExtendedCmdLine.new('lear... |
local wezterm = require 'wezterm';
return {
font = wezterm.font("MonoLisa", {weight="Book"}),
font_size = 10.0,
enable_tab_bar = false,
enable_scroll_tab = false,
window_padding = {
left = 30,
right = 30,
top = 30,
bottom = 30,
}
}
|
fx_version "cerulean"
games { "gta5" }
dependency "connectqueue"
dependency "oxmysql"
server_scripts {
"@oxmysql/lib/MySQL.lua",
"@connectqueue/connectqueue.lua",
"@caue-lib/shared/sh_ids.lua",
"sv_whitelist.lua"
} |
require("games/common2/module/props/vipKickConfig2");
RoomPropsLogic = class(DataInterfaceBase);
--[[
房间内使用道具
]]
RoomPropsLogic.propCmds = {
PROPS_NO_ENOUGH = 0, -- 道具不足
PROPS_VIP = 1, -- VIP道具
PROPS_OUTDATE = 2, -- 道具过时
PROPS_NORMAL = 3, -- 正常使用
}
RoomPropsLogic.getInstance = function()
i... |
-- PASTE THIS ALONG WITH THE OTHER 3 SCRIPTS TO "ServerScriptService" or the phone will not work!
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local PhoneCallEvent = ReplicatedStorage:WaitForChild("PhoneCallEvent")
PhoneCallEvent.OnServerEvent:Connect(function(player, receiver)
print("Ringing a cal... |
local ItemId = pExodus.ItemId
local CostumeId = pExodus.CostumeId
pExodus.ItemId.YIN = Isaac.GetItemIdByName("Yin")
pExodus.CostumeId.YIN = Isaac.GetCostumeIdByPath("gfx/characters/costume_Yin.anm2")
pExodus:AddItemCostume(ItemId.YIN, pExodus.CostumeId.YIN)
function pExodus.yinCache(player, flag)
local heartmap = pl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.