content stringlengths 5 1.05M |
|---|
function CustomizeCarWindow( ID )
local Vtable = VEHICLE_DATABASE[ID]
local DermaPanel = vgui.Create( "DFrame" )
DermaPanel:SetPos( 0, 0 )
DermaPanel:SetSize( 200, 705 )
DermaPanel:SetTitle( "Car Color" )
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( false )
DermaPanel:ShowCloseButton( false )
Derm... |
-- simple "On the fly" fileupload
local cURL = require("lcurl")
count=0
cURL.easy()
:setopt_url("ftp://ftptest:secret0815@targethost/file.dat")
:setopt_upload(true)
:setopt_readfunction(function()
count = count + 1
if count < 10 then
return "Line " .. count .. "\n"
end
end)
:perform()
:clos... |
-- Version 1.0.1
MobsTagged = {}
TimeToDead = 300 -- 5mins then remove from table
THMode = 1
THModes = {
{ name = "Off", thfMain = false, onEngage = false, fulltime = false },
{ name = "Tag", thfMain = false, onEngage = true, fulltime = false },
{ name = "FullTime", thfMain = true, onEngage = true, fullt... |
local data = {}
function guiSetData(element, key, value)
if not scheck("u:element:gui,s") then return false end
local elementData = data[element] or {}
if elementData[key] == value then return false end
elementData[key] = value
data[element] = elementData
return true
end
function guiGetData(element, key)
i... |
--Generate the UI
local container = teverse.construct("guiFrame", {
parent = teverse.coreInterface,
size = guiCoord(0,
math.max(teverse.coreInterface.absoluteSize.x / 3, 100),
0,
math.max(teverse.coreInterface.absoluteSize.y / 3, 200));
position = guiCoord(0, 20, 0, 20);
visible = false;
strokeWidth = 2;
st... |
local playerModule = require "module.playerModule";
local heroModule = require "module.HeroModule"
local ShopModule = require "module.ShopModule"
local ItemModule = require "module.ItemModule"
local ActivityModule = require "module.ActivityModule"
local NetworkService = require "utils.NetworkService";
local EventManage... |
ITEM_UPGRADE_CRYSTAL = 1
ITEM_ENCHANT_CRYSTAL = 2
ITEM_ALTER_CRYSTAL = 3
ITEM_CLEAN_CRYSTAL = 4
ITEM_FORTUNE_CRYSTAL = 5
ITEM_FAITH_CRYSTAL = 6
COMMON = 1
RARE = 2
EPIC = 3
LEGENDARY = 4
US_CONFIG = {
{
[ITEM_UPGRADE_CRYSTAL] = 26383, -- Upgrade Crystal item id
[ITEM_ENCHANT_CRYSTAL] = 26384, -- Enchantment... |
--[[ GitHub : Selene-Desna ]]--
-- If you need help editing
-- this script, contact me on
-- my github or add an issue
-- in the github script page
-- Si vous avez besoin d'aide
-- pour modifier ce script
-- contacter moi sur github
-- ou créez une issue sur la
-- page github du script
-----------------
--- ... |
------------------------
----- Hunger Games -----
------------------------
local Assets = {
Asset("ANIM", "anim/platform.zip") -- neonix
}
local function MakePlatform(anims)
local inst = CreateEntity()
inst.entity:AddTransform()
inst.entity:AddAnimState()
MakeObstaclePhysics(inst, 1)
inst.AnimS... |
local config = require("locator_config")
local insert, sort
do
local _obj_0 = table
insert, sort = _obj_0.insert, _obj_0.sort
end
local check_require
check_require = function(path)
local ok, value = pcall(function()
return require(path)
end)
if ok or ("string" == type(value) and value:find("module '" .. t... |
---@class Cfgavatar_initdatasTable
local Cfgavatar_initdatasTable ={
[1] = {role = 1,race = 1,sex = 1,modelID = 90000001,modelScale = 1,spaceUType = 1,spawnPos = {771.5861,211.0021,776.5501},spawnYaw = 0,money = 0,level = 0,moveSpeed = 60,hp_max = 158,hp = 158,mp_max = 97,mp = 97,anger = 0,anger_max = 150,energy = 10,... |
Network:Subscribe( 'DamageVehicle', function( vehicle, sender )
if not sender or not IsValid(sender) then return end
if not vehicle or not IsValid(vehicle) then return end
-- if the vehicle isn't invulnerable, its likely being driven by a player
-- return here so we don't apply standard game damage + custom damage... |
-------------------------------------------------
-- FILE DESCRIPTION HERE
-------------------------------------------------
local isDebug = false
local _systemGetTimer = system.getTimer
local isSimulator = system.getInfo("environment") == "simulator" and true or false
local composer = require("composer")
local c... |
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com>
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
describe("Log Entries", function()
require "moonpie.ui.components"
local log_entries = require "moonpie.ui.components.debug.log_entries"
local logger = req... |
object_building_kashyyyk_decd_wroshyr_tree_dead04 = object_building_kashyyyk_shared_decd_wroshyr_tree_dead04:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_decd_wroshyr_tree_dead04, "object/building/kashyyyk/decd_wroshyr_tree_dead04.iff")
|
ConquestSystem.CapturePoints = {}
include("ui/cq_button.lua")
include("ui/cq_listview.lua")
include("ui/base.lua")
ConquestSystem.Materials = {}
ConquestSystem.Materials["circle32"] = Material("materials/conquestsystem/circle32.png", "noclamp smooth")
ConquestSystem.Materials["circle64"] = Material("materials/con... |
local accumulator = require "resty.batch.accumulator"
local f = accumulator.new(3, 10.0, function(tasks)
print("Start calculations")
ngx.sleep(3.0)
local result = {}
for i = 1, #tasks do
result[i] = i
end
print("Stop calculations")
return result
end)
return function()
ngx.say(f(... |
minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- start loading from "..minetest.get_modpath(minetest.get_current_modname()))
farming_xpfw={}
farming_xpfw.path = minetest.get_modpath("farming")
farming_xpfw.config = minetest.get_mod_storage()
farming_xpfw.modname=minetest.get_current_modname()
basi... |
-- This file is automatically generated, do not edit!
-- Item data (c) Grinding Gear Games
local itemBases = ...
itemBases["Plate Vest"] = {
type = "Body Armour",
subType = "Armour",
socketLimit = 6,
tags = { default = true, armour = true, body_armour = true, str_armour = true, },
armour = { ArmourBase... |
local ffi = require 'ffi'
local C = ffi.C
local ev
ffi.cdef[[
typedef struct {
int id;
uint32_t width;
uint32_t height;
} ev_texture;
ev_texture* ev_texture_create(void);
void ev_texture_destroy(ev_texture*);
void ev_texture_bind(ev_texture*);
ev_err_t ev_texture_load(ev_texture*, const char*);... |
#!/usr/bin/lua5.3
-- test de lecture et d'ecriture de fichier en utilisant les modules (extension) de Lua
-- hg180705.1154
-- source: http://lua-users.org/wiki/ModulesTutorial
require "hfunc1"
-- Main...
zmatrice={}
hfunc1.hread_file("chiffres_input.txt")
hfunc1.hprint_file(zmatrice[i])
hfunc1.hwrite_file("chiffres_... |
local accel = require('accel')
describe("Accelerator", function()
it("should calculate pitch", function()
p = accel.pitch(1/math.pi, 1/math.pi)
assert.are.equal(45, p)
end)
it("should calculate tilt", function()
p = accel.tilt(1/math.pi, 1/math.pi, 1/math.pi)
assert.are.equal(49.877220524420... |
--[[--
A menu item.
When a `menu` is created, any sub-items not having a specified type
are automatically given a type of `'menu.item'`. These widgets should
not be explicitly created.
@widget menu.item
--]]--
local ROOT = (...):gsub('[^.]*.[^.]*.[^.]*$', '')
local Backend = require(ROOT .. 'backend')
local Shortcut... |
slot0 = class("TechnologyMediator", import("..base.ContextMediator"))
slot0.ON_START = "TechnologyMediator:ON_START"
slot0.ON_FINISHED = "TechnologyMediator:ON_FINISHED"
slot0.ON_TIME_OVER = "TechnologyMediator:ON_TIME_OVER"
slot0.ON_REFRESH = "TechnologyMediator:ON_REFRESH"
slot0.ON_STOP = "TechnologyMediator:ON_STOP"... |
-- ===========================================================================
-- Notification Panel
-- ===========================================================================
include( "ToolTipHelper" );
include( "InstanceManager" );
-- ===========================================================================... |
-- Breakout for Golly
-- Author: Chris Rowett (crowett@gmail.com), November 2016
-- Use F12 to save a screenshot
local build = 84
local g = golly()
-- require "gplus.strict"
local gp = require "gplus"
local split = gp.split
local op = require "oplus"
local ov = g.overlay
local ovt ... |
Options = {
AppID = "589614097683972096",
AssetName = "test1",
IconText = nil,
} |
-- Returns true if the player is out of the zone, false otherwise
-- function isPlayerOutOfZone(safeZoneCoord, safeZoneRadius)
-- local playerPos = GetEntityCoords(GetPlayerPed(PlayerId()))
-- local distance = math.abs(GetDistanceBetweenCoords(playerPos.x, playerPos.y, 0, safeZoneCoord.x, safeZoneCoord.y... |
--
-- ClassMods - clickcast module
--
local L = LibStub("AceLocale-3.0"):GetLocale("ClassMods")
function ClassMods.CanUseClicktocast(spell)
-- Check if they can use the spell, maybe they have not trained it...
local usable, _ = IsUsableSpell(spell)
if (not usable) then
if (select(1, GetSpellCooldown(spell) ) ==... |
local o = vim.o
local vg = vim.g
local wo = vim.wo
local bo = vim.bo
--global options
o.swapfile = false
o.mouse = "a"
o.hidden = true
o.scrolloff = 7
o.timeoutlen = 500
o.laststatus= 3
o.termguicolors= true
--window local options
wo.colorcolumn = "79"
wo.number = true
--buffer local options
bo.autoindent = true
bo.... |
--------------------------------
-- @module Terrain
-- @extend Node
-- @parent_module cc
--------------------------------
-- initialize heightMap data
-- @function [parent=#Terrain] initHeightMap
-- @param self
-- @param #char heightMap
-- @return bool#bool ret (return value: bool)
------------------------... |
ArcCW = ArcCW or {}
ArcCW.AttachmentTable = {}
ArcCW.AttachmentIDTable = {}
ArcCW.AttachmentSlotTable = {}
ArcCW.AttachmentBlacklistTable = {}
ArcCW.NumAttachments = 1
ArcCW.GenerateAttEntities = true
local shortname = ""
local genAttCvar = GetConVar("arccw_reloadatts_registerentities")
function ArcCW.LoadAttachmentT... |
dofile("config.lua")
dofile(config.path().."luacms/luacms.lua")
luacms.printheader()
print ([[<h1>LuaCMS First Time Config</h1><br>
LuaCMS running version ]]..luacms.version()..[[<br>
Lua running version ]].._VERSION:sub(5)..[[<br>
<br>
Autoconfiguring... <br>]])
local err, errcode = luacms.setup()
if err or errcode... |
local table = require("hs/lang/table")
local DisplayObject = require("hs/core/DisplayObject")
local TextureManager = require("hs/core/TextureManager")
--------------------------------------------------------------------------------
-- 単一のテクスチャをグリッドで描画するクラスです.
-- TODO:関数の充実化
-- @class table
-- @name MapSprite
---------... |
require 'image';
require 'imgfun';
o = image.load('obama.jpg');
newimg = imgfun.gen_kmeans_image(o, 3)
image.save('obama-3.jpg', newimg)
|
MAX_PRIRORITY_SLOT = 500
scoreboardColumns = {
{ ["name"] = "name", ["width"] = 200, ["friendlyName"] = "Name", ["priority"] = 1 },
{ ["name"] = "ping", ["width"] = 40, ["friendlyName"] = "Ping", ["priority"] = MAX_PRIRORITY_SLOT }
}
resourceColumns = {}
function toboolean( bool )
bool = tostring( bool )
if bool ... |
return {
outfile = "warrior-v1"
} |
file 'style.css'
file 'shadow.js'
chat_theme 'gtao' {
styleSheet = 'style.css',
script = 'shadow.js',
msgTemplates = {
default = '<b>{0}</b><span>{1}</span>'
}
}
game 'gta5'
fx_version 'cerulean' |
slot0 = class("FriendSearchCard", import(".FriendCard"))
slot0.Ctor = function (slot0, slot1)
slot0.super.Ctor(slot0, slot1)
slot0.addBtn = slot0.tf:Find("frame/add_btn")
slot0.levelTF = slot0.tf:Find("frame/request_info/lv_bg/Text"):GetComponent(typeof(Text))
end
slot0.update = function (slot0, slot1)
slot0.sup... |
AddCSLuaFile()
SWEP.PrintName = 'Structure creator'
SWEP.Author = 'Shark_vil'
SWEP.Purpose = 'Create trigger for selected event.'
SWEP.Category = 'Quest System Tools'
SWEP.AdminOnly = true
SWEP.Slot = 0
SWEP.SlotPos = 4
SWEP.Spawnable = false
SWEP.ViewModel = Model('models/weapons/c_toolgun.mdl')
SWEP.WorldModel = Mode... |
message = {}
message.showText = function(image, message, options)
host_showText(image, message, options)
coroutine.yield()
end
message.showChoices = function(image, prompt, choices, options)
for i, choice in ipairs(choices) do
if choice.hidden == nil then choice.hidden = false end
if choice.disabled == nil the... |
function UpdateFlippers()
local x,y = 0,0
while y < height do
while x < width do
if GetChunk(x,y).hasflipper then
if not cells[y][x].updated and cells[y][x].ctype == 29 and cells[y][x].rot%2 == 0 then
for i=-1,1,2 do --when lazy
if cells[y][x+i].ctype == 8 then cells[y][x+i].ctype = 9
elsei... |
CustomizableWeaponry:addFireSound("T50.FIRE", {"Weapons/T5000_awp/fire1.wav","Weapons/T5000_awp/fire2.wav","Weapons/T5000_awp/fire3.wav",}, 1, 125, CHAN_STATIC)
CustomizableWeaponry:addReloadSound("T50.BOLTUP", "Weapons/T5000_awp/boltup.wav")
CustomizableWeaponry:addReloadSound("T50.BOLTB", "Weapons/T5000_awp/boltb.wa... |
module("luci.controller.flowoffload", package.seeall)
function index()
if not nixio.fs.access("/etc/config/flowoffload") then
return
end
local page
page = entry({"admin", "network", "flowoffload"}, cbi("flowoffload"), _("Turbo ACC Center"), 101)
page.i18n = "flowoffload"
page.dependent = true
entry({"admin"... |
-- Include guard
#if(includeGuard()) then return end
#local bitXor = bit32 and bit32.bxor or require('bit').bxor
#local function encode(str)
# local outputBytes = {}
# local inputBytes = {str:byte(1, str:len())}
# for i, byte in ipairs(inputBytes) do
# table.insert(outputBytes, bitXor(byte, (outputBytes[i-1... |
local class = require 'middleclass'
local buffer = class("Modbus_Stream_Buffer")
function buffer:initialize(max_size)
self._max_size = max_size or 1394
self._buf = ''
end
function buffer:sub(s, e)
return string.sub(self._buf, s, e)
end
function buffer:append(data)
self._buf = self._buf .. data
if string.len(se... |
---@class AuctionHouseCommoditySortOrder
local AuctionHouseCommoditySortOrder = {
UnitPrice = 0,
Quantity = 1,
}
---@class AuctionHouseFilter
local AuctionHouseFilter = {
UncollectedOnly = 0,
UsableOnly = 1,
UpgradesOnly = 2,
ExactMatch = 3,
PoorQuality = 4,
CommonQuality = 5,
UncommonQuality = 6,
RareQualit... |
local url = request.path:match("/context/attributes(.*)")
assert(url)
local function checkCode(newcode)
if newcode > 999 or newcode < 0 then
error('not a valid path')
end
return newcode
end
local lastCode = context.getAttr("code")
local code = lastCode or 0
local skip
if url:match("\\/set\\/\\d+... |
---
-- @module autopilot_endpoint_deletion
--
-- This module deletes the deployed Autopilot endpoint
--
local exaerror = require("exaerror")
_G.global_env = {
pquery = pquery,
error = error
}
---
-- This function deletes the given Autopilot endpoint
--
-- @schema_name The name of schema on which the scri... |
return function(state)
return state.optionsVisible
end |
local mod = DBM:NewMod(1720, "DBM-Party-Legion", 7, 800)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 15008 $"):sub(12, -3))
mod:SetCreatureID(104218)
mod:SetEncounterID(1870)
mod:SetZone()
mod.onlyMythic = true
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_... |
--======================================
--luastg scoredata
--======================================
----------------------------------------
--
function new_scoredata_table()
t={}
setmetatable(t,{__newindex=scoredata_mt_newindex,__index=scoredata_mt_index,data={}})
return t
end
function scoredata_mt_newindex(t,k... |
-- returns the mapblock the player points to
function eco_placement.get_pointed_mapblock_pos(player)
local raybegin = vector.add(player:get_pos(),{x=0, y=player:get_properties().eye_height, z=0})
local rayend = vector.add(raybegin, vector.multiply(player:get_look_dir(), 100))
local ray = minetest.raycast(raybegin, ... |
local noise = require("noise")
function deepcopy(orig)
local orig_type = type(orig)
local copy
if orig_type == 'table' then
copy = {}
for orig_key, orig_value in next, orig, nil do
copy[deepcopy(orig_key)] = deepcopy(orig_value)
end
setmetatable(copy, deepcopy(ge... |
local addonName, RIC = ...
local AceGUI = LibStub("AceGUI-3.0")
local LD = LibStub("LibDeflate")
local LSM = LibStub("LibSharedMedia-3.0")
local L = LibStub("AceLocale-3.0"):GetLocale(addonName)
local DEFAULT_FONT = LSM.MediaTable.font[LSM:GetDefault('font')]
local selectedRoster
local rosterCopy = {}
-- Creates rele... |
-- from https://github.com/jonathanpoelen/xmlparser
module(..., package.seeall)
local logger = require "logger"
local io = io
local string = string
local pairs = pairs
-- http://lua-users.org/wiki/StringTrim
local trim = function(s)
local from = s:match"^%s*()"
return from > #s and "" or s:match(".*%S", f... |
local unaryOpData = {
-- ["OPERATOR"]={Precedence, TypeName}
["not"]={11, "not"},
["-"]={11, "neg"},
["#"]={11, "len"},
["~"]={11, "bit_not"},
}
local binaryOpData = {
-- ["OPERATOR"]={Precedence, TypeName, RightAssoc}
["^"]={12, "exp", true},
-- UNARY
["*"]={10, "mul", false},
["/"]={10, "mul", false},
["... |
local skynet = require "skynet"
local M = {}
local SERVICENAME = "SSDB"
function M.sendExecute(...)
skynet.send(SERVICENAME, "lua", ...)
end
function M.execute(...)
return skynet.call(SERVICENAME, "lua", ...)
end
function M.close()
skynet.send(SERVICENAME, "lua", "CLOSE")
end
return M
|
require "app.uicommon.WADemoNaviLayer"
require "app.wasdklua.WACallback"
require "app.wasdklua.WAUtil"
require "app.wasdklua.WASocialProxy"
require "app.uicommon.WADemoLuaAlertView"
require("src/cocos/cocos2d/json")
WADemoShareLayer = class("WADemoShareLayer", function()
local layer = WADemoNaviLayer:new()
... |
------------------------------------------------------
-- ___ _ --
-- | __| |___ _ __ _____ __ _____ _ _ --
-- | _|| / -_) '_ \/ _ \ V V / -_) '_| --
-- |___|_\___| .__/\___/\_/\_/\___|_| --
-- _ _ |_| _ _ _ ... |
---@class sprite_renderer
local sprite_renderer = {
---@type color32
tint = color32.white(),
---@type v2f
scale = v2f.unit(),
---@type sprite_renderer_modes
mode = sprite_renderer.modes.simple,
---@type sprite_renderer_blendings
blending = sprite_renderer.blendings.normal,
---@ty... |
require('packer').startup(
function()
use { 'kabouzeid/nvim-lspinstall', requires = 'neovim/nvim-lspconfig' }
use { 'mfussenegger/nvim-dap' }
end)
local dap = require 'dap'
local M = {}
function M.execute_buf_command(command, callback)
vim.lsp.buf_request(
0, 'workspace/executeCo... |
return function(uuid)
Ext.AddVoiceMetaData(uuid, "h0002c88eg09a6g4f51g9976g8d7091681e05", "Localization/English/Soundbanks/v41a0698578514c298a78398ccb313f39_h0002c88eg09a6g4f51g9976g8d7091681e05.wem", 0.875)
Ext.AddVoiceMetaData(uuid, "h003e5db6g7b77g4e5ega069g7e552686f934", "Localization/English/Soundbanks/v41a0698578... |
local maxButtons = 6
local buttonSize = 27
local spacing = 5
local frameWidth = (buttonSize + spacing) * maxButtons - spacing
local frameHeight = buttonSize
local classR, classG, classB = GetClassColor(select(2, UnitClass("player")))
local backdrop = { edgeFile = "Interface/Buttons/WHITE8X8", edgeSize = 2, }
local bind... |
--[[=========================================
_ _ _
| | | | | | /\ /\
| | | | | | / \ _ __ _ __ / \ _ __ ___
| | | | | |/ /\ \ | '_ \| '_ \ / /\ \ | '__/ __|
| |___| |__| / ____ \| |_) | |_) / ____ \| | | (__
|______\____/_/ \_\ .__/| .__/_/ \_\_| \___|
Scripting Pro... |
local lunatest = require "lunatest"
local assert_equal = lunatest.assert_equal
local assert_function = lunatest.assert_function
local assert_table = lunatest.assert_table
local common = require "common_test_functions"
local document = require "luchia.document"
-- Server.
local good_protocol = common.server_good_proto... |
local skynet = require "skynet"
local socket = require "socket"
local proxy = require "socket_proxy"
local packer = require "packer"
local print_t = require "print_t"
local cache_util = require "cache_util"
local sqlutil = require "sqlutil"
local service = require "service"
local des_encrypt = require "des_encrypt"
loc... |
return function(parent, dir)
local lgi = require 'lgi'
local GLib = lgi.GLib
local GObject = lgi.GObject
local Gtk = lgi.Gtk
local Gdk = lgi.Gdk
-- Create main dialog window
local window = Gtk.Dialog {
title = "Change Screen or Display",
transient_for = parent,
default_width = 300,
default_height = 400,
... |
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
-- vim.api.nvim_command('packadd packer.nvim')
--[[ use {
'myusername/example', -- The plugin location string
-- The following keys are all optional
disable = boolean, -- Mark a plugin as inactive
as = string, ... |
local present, lspconfig = pcall(require, "lspconfig")
if not present then return end
local on_attach = function(client, bufnr)
local function buf_set_keymap(...)
vim.api.nvim_buf_set_keymap(bufnr, ...)
end
local function buf_set_option(...)
vim.api.nvim_buf_set_option(bufnr, ...)
end
... |
local bench = script and require(script.Parent.bench_support) or require("bench_support")
-- Copyright 2008 the V8 project authors. All rights reserved.
-- Copyright 1996 John Maloney and Mario Wolczko.
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Pu... |
object_tangible_food_generic_dessert_ryshcate = object_tangible_food_generic_shared_dessert_ryshcate:new {
}
ObjectTemplates:addTemplate(object_tangible_food_generic_dessert_ryshcate, "object/tangible/food/generic/dessert_ryshcate.iff")
|
local function getRootName(name)
return string.sub(name, string.find(name, "/") + 1)
end
local function getFrameName(name, frameAction, frameSide, frameNumber)
local folderName = getRootName(name) .. "_" .. frameAction .. "_" .. frameSide
local fileName = folderName .. "_" .. string.format("%.5d", frameNumber)
re... |
local SipCreateMsg = require "voip.sip.message".new
local utils = require "voip.sip.impl.utils"
local date = require "date"
local format = utils.format
local Generators = utils.generators
local SipDigest = utils.SipDigest
----------------------------------------------
local SIP_UA do
SIP_UA = {
... |
--[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/404rq/GTW-RPG/
Bugtracker: https://discuss.404rq.com/t/issues
Suggestions: https://discuss.404rq.com/t/deve... |
---------------------------------------------------------------------------------------------------
--
--filename: game.effect.text.DamageTextController
--date:2019/10/14 0:12:59
--author:hegung
--desc:伤害文字动画
--
---------------------------------------------------------------------------------------------------
local s... |
addon.name = 'Porter';
addon.author = 'Thorny';
addon.version = '1.01';
addon.desc = 'Simplifies usage of porter moogles.';
addon.link = 'https://github.com/ThornyFFXI/';
require('common');
chat = require('chat');
gData = require('data');
gPack = require('pack');
gPrep = require('prep');
gSettings ... |
-- Funcion para todos.
RegisterCommand("oxinfo", function(source)
TriggerClientEvent("esx_test:oxicity", source)
-- TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
-- local xPlayer = ESX.GetPlayerFromId(source)
end)
RegisterCommand("givemoney", function(source, args)
TriggerEvent('esx:... |
return {'pegel','pegelen','peggen','pegulanten','peggy','pegge','pegelde','pegelden','pegels','pegelt','pegeltje','pegeltjes','peggys'} |
local Track = {}
Track.__index = Track
local nullfunc = function()end
local interpolation_functions = {
none = function(a, b, lerp)
return a
end,
ceil = function(a, b, lerp)
return b
end,
floor = function(a, b, lerp)
return a
end,
linear = function(a, b, lerp)
return jge.lerp(lerp, a, b)
end,
min = fu... |
-----------------------------------------------------------------------------------------------------------------------
-- RedFlat layoutbox widget --
--------------------------------------------------------------------------------... |
-- © 2016-2021 Resurface Labs Inc.
UsageLoggers = {}
-- VERSION
UsageLoggers._VERSION = "1.2-3"
UsageLoggers.__BRICKED = os.getenv("USAGE_LOGGERS_DISABLE") == 'true'
UsageLoggers.__disabled = UsageLoggers.__BRICKED
function UsageLoggers:disable ()
self.__disabled = true
end
function UsageLoggers:enable ()
... |
-- Copyright (C) 2010 ARATA Mizuki
-- See file COPYRIGHT for more information
local ipairs = ipairs
local assert = assert
local string = require "string"
local objc = require "objc"
local runtime = require "objc.runtime"
local types = require "objc.types"
local typeencoding = require "objc.typeencoding"
module "cocoa"... |
require("MapEditor/menuStyle.lua")
require("MapEditor/menuScriptPanel.lua")
--this = SceneNode()
ModelPlaceToolMenu = {}
function ModelPlaceToolMenu.new(toolPanel, changeModelCallbackString, settingPanel, updateSettings)
local self = {}
--Load config
local rootConfig = Config("ToolsSettings")
--Get the Mo... |
-- Solar Panel
minetest.register_node("mesecons_solarpanel:solar_panel_on", {
drawtype = "nodebox",
tiles = { "jeija_solar_panel.png", },
inventory_image = "jeija_solar_panel.png",
wield_image = "jeija_solar_panel.png",
paramtype = "light",
paramtype2 = "wallmounted",
walkable = false,
is_ground_content = true,... |
C_MythicPlus = {}
---[Documentation](https://wowpedia.fandom.com/wiki/API_C_MythicPlus.GetCurrentAffixes)
---@return MythicPlusKeystoneAffix[] affixIDs
function C_MythicPlus.GetCurrentAffixes() end
---[Documentation](https://wowpedia.fandom.com/wiki/API_C_MythicPlus.GetCurrentSeason)
---@return number seasonID
functi... |
-- Advanced NPC System by Jiddo
if NpcHandler == nil then
-- Constant talkdelay behaviors.
TALKDELAY_NONE = 0 -- No talkdelay. Npc will reply immedeatly.
TALKDELAY_ONTHINK = 1 -- Talkdelay handled through the onThink callback function. (Default)
TALKDELAY_EVENT = 2 -- Not yet implemented
-- Currently applied tal... |
local Event = require('__stdlib__/stdlib/event/event')
local function shortcut(event)
if event.prototype_name == 'picker-auto-circuit' then
local player = game.get_player(event.player_index)
if player.is_shortcut_available('picker-auto-circuit') then
player.set_shortcut_toggled('picker-... |
-- =============================================================
-- Copyright Roaming Gamer, LLC. 2008-2016 (All Rights Reserved)
-- =============================================================
-- Line Factories
-- =============================================================
-- Last Updated: 29 NOV 2016
-- Last Val... |
-- getEternalStorage and setEternalStorage
-- can be added to data/global.lua if you want to use eternal storage for another purpose than this.
-- Regular TFS global storage values get reset every time server reboots. This does not.
local function getEternalStorage(key, parser)
local value = result.getString(db.stor... |
--@name Basic event chair controller
--@author Name
--@server
-- USAGE:
-- Place chip on the ground, a chair will spawn, sit in it and press W or S to move the hologram
-- Create a frozen SENT `Seat_Jeep` 20 units above the chip
local chair = prop.createSent(chip():getPos() + chip():getUp() * 20, Angle(), "Seat_Jeep"... |
test_run = require('test_run').new()
errinj = box.error.injection
space = box.schema.space.create('gh-4973-alter', {engine = 'memtx'})
space:format({ {'key', 'unsigned'}, {'value', 'string'}, {'key_new', 'unsigned'} })
index = space:create_index('primary', {parts = {'key'}})
N = 10000
value = string.rep('a', 10)
box.... |
require("nvim-web-devicons").setup({
override = {
zsh = {
icon = "",
color = "#FFF",
name = "Zsh",
},
},
default = true,
})
|
package.loaded['dev'] = nil
package.loaded['cheat'] = nil
package.loaded['cheat.entry'] = nil
package.loaded['cheat.window'] = nil
package.loaded['cheat.curl'] = nil
vim.api.nvim_set_keymap('n', ',r', ':luafile dev/init.lua<CR>', {})
vim.api.nvim_set_keymap('n', ',w', ":lua require('cheat.entry').query()<CR>", {norem... |
--[=[
Utility functions for constructing rays from input objects
@class InputObjectRayUtils
]=]
local Workspace = game:GetService("Workspace")
local DEFAULT_RAY_DISTANCE = 1000
local InputObjectRayUtils = {}
--[=[
Computes a camera ray from an inputObject
@param inputObject InputObject
@param distance number
... |
local class = require "libs.middleclass"
require "libs.ui.widget"
Slider = class("Slider", Widget)
function Slider:initialize()
Widget.initialize(self)
self.text = "Slider"
self.minValue = 0
self.maxValue = 100
self.value = 0
self.nbTicks = 11
self.cursorX = self.x + 10
self.cursorY = s... |
local h = require 'controller_helpers'
local m = require 'model_helpers'
return {
show = function(params)
local pipeline = m.find('pipelines', { middlewares = {[params.uuid] = {uuid = params.uuid}} })
if pipeline then
h.send_json(pipeline.middlewares[params.uuid])
else
error({status = 404... |
return function(n)
local o = ''
while n > 0 do
o = o .. ({
[0] = 'a',
[1] = 's',
[2] = 'd',
[3] = 'f'
})[n % 4]
n = math.floor(n / 4)
end
return o:reverse()
end
|
--my collection lol
--thx Camellia mod, weegee mod, oh **** a shark mod, dark sheep mod, roses modchart mod, techno mod, and the person who made the modchart engine mod.
local kindamove = false
local resetti = false
local slowswayer = false
local spin1 = false
local spin2 = false
local spincenter = false
local normal1 ... |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
RegisterServerEvent('esx_ambulancejob:revive')
AddEventHandler('esx_ambulancejob:revive', function(target)
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
xPlayer.addMoney(Config.ReviveReward)
TriggerClientEvent('esx_a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.