content stringlengths 5 1.05M |
|---|
Physics = Class:extend()
function Physics:init_physics(w, h, centered)
if not self.x or not self.y or not self.w or not self.h then
error('GameObject ~' ..self.class ..'~ has invalid transform properties')
return
end
self.mouse_stay = false
main.current.world:add(self, self.x, self.y, w or sel... |
function system_storage(x,y)
interval = 10
font_size = 18
spacing = 1.4
local color = color2
timer = (updates % interval)
if timer == 0 or conky_start == 1 then
result = io.popen("df -h")
ss_t = {}
for line in result:lines() do
table.insert(ss_t, line)
end
result:close()
end
i... |
-- // Wont be documented! Simple and easy to read!
local UW = {}
-- Will be used in future scripts
function UW.ServerHopper(limit)
for i,v in pairs(game.HttpService:JSONDecode(game:HttpGet("https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Asc&limit=" .. limit)).data) do
if... |
--[=[
Stack of values that allows multiple systems to enable or disable a state.
```lua
local disabledStack = StateStack.new()
print(disabledStack:GetState()) --> false
disabledStack.Changed:Connect(function()
print("From changed event we have state: ", disabledStack:GetState())
end)
local cancel = disabled... |
-- LibMCNet
local component=require('component')
local core=require('mcnet_core')
local mcnetd_version=1
local default_ttl=5
local function NetSendEx(modem,dest,port,...)
local t={}
t.ver=mcnetd_version
t.ttl=default_ttl
t.src=modem.address
t.dest=dest
t.port=port
t.data=table.pack(...)
... |
-- Connections
--
-- LICENCE: http://opensource.org/licenses/MIT
-- 2016-10-29 tschaban https://github.com/tschaban
local module = {}
local function getIP()
if wifi.sta.getip() == nil then
print("IP unavailable, Waiting...")
else
tmr.stop(1)
print("\n===================================... |
-- Config.lua
-- @Author : Dencer (tdaddon@163.com)
-- @Link : https://dengsir.github.io
-- @Date : 8/31/2019, 7:22:32 PM
---@type ns
local ns = select(2, ...)
---@type L
local L = ns.L
local WEAPON = GetItemClassInfo(LE_ITEM_CLASS_WEAPON) -- 武器
local ARMOR = GetItemClassInfo(LE_ITEM_CLASS_ARMOR) -- 护甲
local CONT... |
group "Dependencies"
include "Scarlet-OpenGL/Vendor/GLAD"
group ""
group "Scarlet-Additions"
include "Scarlet-Window"
include "Scarlet-GLFW"
include "Scarlet-OpenGL"
include "Scarlet-Vulkan"
include "Scarlet-DirectX"
include "Scarlet-AudioFX"
include "Scarlet-OpenAL"
include "Scarlet-Renderer"
include "S... |
local CAT = "100early" -- prkd, hundo, rbo, kpdr25, gtclassic, kpdr21, 14ice, 14speed, allbosskpdr, allbosspkdr, allbossprkd, 100early
local last_state = {} -- holds all state that has been changed up untill last save
local preset_output = ""
local last_step = nil
local MEMTRACK = { -- {{{
{ 0x07C3, 0x6, 'GFX Po... |
----------------------------------------->>
-- IGC: International Gaming Community
-- Date: 06 Feb 2017
-- Project: Online Live Map
-- Type: Server Side
-- Author: tcaram
----------------------------------------->>
CACHE = {}
function returnServerData(count)
if (not count or not tonumber(count)) then retur... |
local a=1+3
testfunc()
|
local Model = Workspace.DarkShadow6
local CharacterMesh = Instance.new("CharacterMesh")
CharacterMesh.Name = "ROBLOX 2.0 Torso"
CharacterMesh.BodyPart = "Torso"
CharacterMesh.MeshId = "27111894"
CharacterMesh.Parent = Model
local CharacterMesh = Instance.new("CharacterMesh")
CharacterMesh.Name = "ROBLOX 2.0 Torso"
Char... |
-----------------------------------
-- Area: Bibiki Bay
-- NPC: Tswe Panipahr
-- Type: Manaclipper
-- !pos 484.604 -4.035 729.671 4
-----------------------------------
local ID = require("scripts/zones/Bibiki_Bay/IDs")
require("scripts/globals/keyitems")
-----------------------------------
function onTrade(player, np... |
local thread = require("thread")
local computer = require("computer")
local fs = require("filesystem")
local fractalCore = {}
local dirs = {}
function fractalCore.getDir(dirName)
return dirs[string.lower(dirName)]
end
function fractalCore.getInstallPastebin()
return "MtcYnVyp"
end
local keysDown = {}
for i = 0,... |
require('class.timer')
Animation = Object:extend()
function Animation:new(animationTemplate)
self.frames = animationTemplate.frames
self.loop = animationTemplate.loop
self.isStopped = false
self.speed = 1
self:set_frame_index(1)
end
function Animation:get_quad()
return self.currentFrame.quad... |
local filter = require("kong.plugins.oidc.filter")
local lu = require("luaunit")
TestFilter = {}
ngx = {
var = {
uri = ""
}
}
local config = {
filters = { "^/pattern1$","^/pattern2$"}
}
function TestFilter:testIgnoreRequestWhenMatchingPattern1()
ngx.var.uri = "/pattern1"
lu.assertFalse(f... |
if not moon or not moon.inject then
module("moon", package.seeall)
end
local util = require("moonscript.util")
dump = util.dump
run_with_scope = function(fn, scope, ...)
local old_env = getfenv(fn)
local env = setmetatable({ }, {
__index = function(self, name)
local val = scope[name]
if val ~= nil... |
local constants = require("constants")
local uid = require("uid")
local update_array = require("update_array")
local logger = require("logger")
local node = {}
local recreate_metatables = false
function node:new(entity_id, gui)
new_node = {}
setmetatable(new_node, self)
self.__index = self
new_node.id... |
--[[
A WordEmbedModule takes two things as input:
1) a lookup-table for word embeddings
It encodes word indices to embeddings which could either be hash
indices or hash + LSTM indices
--]]
local WordEmbedModule = torch.class('dmn.WordEmbedModule')
function WordEmbedModule:__init(config)
-- parameters ... |
--[[
@Authors: Ben Dol (BeniS)
@Details: MoveProcedure class for auto moving things.
]]
if not Procedure then
dofile("procedure.lua")
end
MoveProcedure = extends(Procedure, "MoveProcedure")
MoveProcedure.create = function(thing, position, verify, timeoutTicks)
local proc = MoveProcedure.internalCreate()
pr... |
return {'orwelliaans','orwelliaanse'} |
--[[
@description Arm tracks for recording
@author Ben Smith
@link
Author https://www.bensmithsound.uk
Repository https://github.com/bsmith96/Reaper-Scripts
@version 1.3
@changelog
# Added user identifier to provided file names
@metapackage
@provides
[main] . > bsmith96_Arm Tracks For Recording.lua
... |
local moreGames_pin_map = require("qnFiles/qnPlist/hall/moreGames_pin");
local num_download_pin_map = require("qnFiles/qnPlist/hall/num_download_pin");
local num_online_pin_map = require("qnFiles/qnPlist/hall/num_online_pin");
local roomLevels_pin_map = require("qnFiles/qnPlist/hall/roomLevels_pin");
local moreGameList... |
--[[
User Study - Button Click
v1.1
by: standardcombo
Manages replication of UI button clicks from subjects to observers.
--]]
local API = require( script:GetCustomProperty("UserStudyAPI") )
local CLICK_SFX = script:GetCustomProperty("ClickSFX"):WaitForObject()
local UI_CONTAINER = script:GetCustomProperty("UICo... |
return require "loop.component.base" |
local statistics = {}
local aiStats = {}
if not DEDICATED then
IMAGE_STATS_PICKUP = love.graphics.newImage("Images/StatsIconPickUp.png")
IMAGE_STATS_DROPOFF = love.graphics.newImage("Images/StatsIconDropOff.png")
IMAGE_STATS_DROPOFF_WRONG = love.graphics.newImage("Images/StatsIconDropOffWrong.png")
IMAGE_STATS_C... |
local mt = {} -- metatable for complex numbers
mt.__add = function(x, y)
return {
a = x.a + y.a,
b = x.b + y.b
}
end
mt.__sub = function(x, y)
return {
a = x.a - y.a,
b = x.b - y.b
}
end
mt.__mul = function(x, y)
return {
a = x.a * y.a - x.b * y.b,
b = x.b * y.a + x.a * y.b
}
end
m... |
local function _lshift(a, i)
return math.floor(a * 2^i)
end
local function _rshift(a, i)
return math.floor(a / 2^i)
end
local function _band(a, b)
local r = 0
for i = 0, 31 do
if _rshift(a, 31 - i) % 0x2 == 1 and _rshift(b, 31 - i) % 0x2 == 1 then
r = r * 2 + 1
else
r = r * 2
end
end
return r
end
l... |
local ChangeBgScreen = Class("ChangeBgScreen")
dir = love.filesystem.getSource()
str = dir.."/res/bg/"
str1 = dir.."/res/bg/xiao/"
function ChangeBgScreen:init(game,bg)
self.game = game
self.bg = bg
self.winWidth = love.graphics.getWidth()
self.dir = "res/bg/xiao"
self.files = love.filesystem.getDirectoryItems(s... |
--[[
BY : LuffyTEAM
Channel Files : https://t.me/lllEll2
]]
local function keko_Luffy(data)
local msg = data.message_
redis = (loadfile "./libs/redis.lua")()
database = Redis.connect('127.0.0.1', 6379)
sudos = dofile('sudo.lua')
JSON = (loadfile "./libs/dkjson.lua")()
bot_id_keko = {string.matc... |
--ウィッチクラフト・コンフュージョン
--
--Script by Trishula9
function c100285006.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,100285006)
e1:SetTarget(c100285006.target)
... |
local wibox = require ('wibox')
local beautiful = require ('beautiful')
local dpi = beautiful.xresources.apply_dpi
local l = wibox.layout.stack()
local content_views = require ('widget.settings.content_view')
for key,content in ipairs(content_views) do
content.widget.visible = (key == 1)
-- Every widget
awe... |
--[[
KnownPaths.lua
This segment deals with who knows what flight path.
]]
-- Function: Record that the player knows this flight master.
function EFM_KP_AddLocation(myContinent, myNode)
if (EFM_KnownNodes == nil) then
EFM_KnownNodes = {};
end
if (EFM_KnownNodes[myContinent] == nil) then
EFM_KnownNodes[myCon... |
--[[remove
__STANDARD_WEBSERVER_LOG_FILE_APPENDER__ - ../logs/rms-webserver
__STANDARD_WHITELIST_FILE__ - ../config/whitelist.txt
__STANDARD_BLACKLIST_FILE__ - ../config/blacklist.txt
__STANDARD_SERVERKEY_FILE__ - ../config/server.key
__STANDARD_SERVERCERT_FILE__ - ../config/server.cert
__STANDARD_WEBROOT_FOLDER_... |
local pickupobjective =
{
Properties =
{
EventName = { default = "ObjectivePickupEvent", description = "The name of the event to broadcast." },
ObjectiveID = { default = -1, description = "The ID of the objective (sent as past of the event when picked up)." },
ShowMarkerMessage = { default = "ShowMarkerEvent", ... |
local sql = exports.sql
--------- [ Element Data returns ] ---------
local function getData( theElement, key )
local key = tostring(key)
if isElement(theElement) and (key) then
return exports['[ars]anticheat-system']:callData( theElement, tostring(key) )
else
return false
end
end
local function setData( t... |
--- Turbo.lua WebSocketClient example.
--
-- Copyright 2013 John Abrahamsen
--
-- 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 r... |
-- battery widget: http://awesome.naquadah.org/wiki/Closured_Battery_Widget_with_time
local io = io
local math = math
local pairs = pairs
local battery = {}
local limits = {{25, 5},
{12, 3},
{ 7, 1},
{0}}
local function file_exists(name)
local f=io.open(name,"r")
if f~=nil then... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
---------------------------------------------------
-- Self-Destruct
--
---------------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/monstertpmoves")
---------------------------------------------------
function onMobSkillCheck(targ... |
local t = require(script.Parent.Parent.lib.t)
local getUserIdCheck = t.instanceOf("Player")
local function getUserId(player)
assert(getUserIdCheck(player))
return tostring(player.UserId)
end
return getUserId
|
return {
gok_fblackdawn = {
buildangle = 8200,
buildcostenergy = 5051,
buildcostmetal = 352,
builder = false,
buildpic = "gok_fblackdawn.dds",
buildtime = 7000,
canattack = true,
canstop = 1,
category = "ALL SURFACE",
collisionvolumeoffsets = "0 0 0",
collisionvolumescales = "30 40 30... |
loadstring(game:HttpGet("https://raw.githubusercontent.com/Tescalus/Pendulum-Hubs-Source/main/Reanimation.lua"))()
_G.loop = true
local player = game.Players.LocalPlayer
local char = player.Character
local Align = function(Part0, Part1,Mesh)
local Aligns = {
AlignOrientation = Instance.new("AlignOrientation... |
--------------------------------------------------------------------------------
-- Preconditions before ATF start
--------------------------------------------------------------------------------
local commonPreconditions = require('user_modules/shared_testcases/commonPreconditions')
-----------------------------------... |
package.path = './?/?.lua;./?/lua.lua;./?.lua;./tests/?.lua;./lua/includes/modules/?.lua;' .. package.path
_G.include = function (path)
return dofile ("lua/" .. path)
end
for k, v in next, require ('test_mock') do
_G[k] = v
end
for k, v in next, require ('test_ext_misc') do
_G[k] = v
end
require ('test_ext_table'... |
local loaded, scene -- ./ecs/ecs.can:51
if ... then -- ./ecs/ecs.can:52
loaded, scene = pcall(require, (...):match("^(.-)ecs") .. "scene") -- ./ecs/ecs.can:52
end -- ./ecs/ecs.can:52
if not loaded then -- ./ecs/ecs.can:53
scene = nil -- ./ecs/ecs.can:53
end -- ./ecs/ecs.can:53
local ecs -- ./ecs/ecs.can:55
local recDes... |
---@meta
---
---@class RemoteDebugUtility
---
local utility = {}
---
---@return string
---获取当前路径
---
function utility.fs_current_path()
end
---
---@return string
---获取exe所在目录
---
function utility.fs_program_path()
end
---
--- * Windows下的行为
--- 1. 向主线程发送WM_QUIT消息。
--- * 非Windows下的行为
--- 1. 什么都不做
---
function utili... |
modifier_mutation_rupture = modifier_mutation_rupture or class({})
function modifier_mutation_rupture:IsDebuff() return true end
function modifier_mutation_rupture:IsPurgable() return false end
function modifier_mutation_rupture:GetTexture()
return "bloodseeker_rupture"
end
if IsServer() then
function modifier_mut... |
-- plays only part of the animation, by manually rewinding then played x seconds
b = BinooAPI
b:ClearObjects()
target = "mocapdude"
stringkey = "mybvh"
zisup=true
b:SetWaitForMe(true)
b:LoadStringFromURL("https://gist.githubusercontent.com/unitycoder/cc5e1e171a2218a85dad7ca3bc652bec/raw/5a6629176cf05d808e1c9aae165f8ea1... |
include("shared.lua")
function ENT:Draw()
self:DrawModel()
end
function ENT:Initialize()
self:SetModel("models/hardbass/bomb_c4.mdl")
end |
-- Dependencies
require "AI\\USER_AI\\actor"
-- Global
local ST = dofile("./AI/USER_AI/lib/state.lua")
-- Const
-- Custom States
-- Transition Table
local ftran = {}
ftran[ST.follow] = function(me)
local disguised
getActors(function(actor)
if actor == 'player' and actor.canAttack then
disguised = actor
... |
--vim: filetype=lua ts=2 sw=2 sts=2 et :
local eg,shuffle,top,sorted,sort,per,inc,max
-- ### List Functions
function eq(a,b, ta,tb)
ta, tb = type(a), type(b)
if ta ~= tb then return false end
if ta ~= 'table' and tb ~= 'table' then return a == b end
for k,v in pairs(a... |
function handleArguments(functionName, items)
for index, data in pairs(items) do
local badType = true
local typeOrClass
for _, typ in pairs(data.allowedTypes) do
if typeof(data.item) == typ then
typeOrClass = "type"
badType = false
break
elseif data.class and (getmetatable(data.item).__class =... |
includeFile("dantooine/abandoned_rebel_private.lua")
includeFile("dantooine/adwan_turoldine.lua")
includeFile("dantooine/ancient_graul.lua")
includeFile("dantooine/baby_bol.lua")
includeFile("dantooine/bek_rabor.lua")
includeFile("dantooine/bile_drenched_quenker.lua")
includeFile("dantooine/bol.lua")
includeFile("danto... |
--- @author Mercor
include("Scripts/Core/Common.lua")
-------------------------------------------------------------------------------
if PraiseMod == nil then
PraiseMod = EternusEngine.ModScriptClass.Subclass("PraiseMod")
end
-------------------------------------------------------------------------------
-- Create ... |
--[[
This module provides literals:
true and false
'c' for chars
"string" for strings
123 for integers
0x123 for hex notation of integers
123.456e78 for doubles
future plans include:
123.456x10^78
some way for verbatim multiline string literals, probably the cpp one
]]
rule([[ Literal <- Boolean / CharLiteral / String... |
--[[ INFO ]]--
--[[
Name: FirstCalc
Version: 0.2.1
Date: 10/08/2013
Author: Alex Crawford
Notes: My first attempt at programming in LUA (and at all really, besides simple HTML and CSS), through ComputerCraft. I used the calculator tutorial on the ComputerCraft wiki as a starting point, and elaborated on that, adding ... |
-- This file contains constant definitions (for now, only colors)
module('passion.colors')
-- You can browse these colors here: http://www.w3schools.com/Html/html_colorvalues.asp
aliceBlue = {240,248,255}
antiqueWhite = {250,235,215}
aqua = {0,255,255}
aquamarine = {127,255,212}
azure = {240,255,255}
beige = {2... |
local ffi = require("ffi")
local libc = require("libc")
local putil = require("path-util")
--[[
local function dirent_ensure_type(DIR *d, struct dirent *de)
struct stat st;
assert(d);
assert(de);
if (de.d_type != libc.DT_UNKNOWN)
return 0;
if (fstatat(dirfd(d... |
gfx = require 'gfx.js'
-- Plots information about a perceptron classifier on a 2-dimensional dataset.
function plot_perceptron(neg_examples, pos_examples, mistakes0, mistakes1, num_err_history, w, w_dist_history)
--[[%%
% The top-left plot shows the dataset and the classification boundary given by
% the weights of the... |
var_1 = {}
function var_1.add(number_1, number_2)
return number_1 + number_2
end
function var_1.hello(text)
return "Sup "..text
end
return var_1
|
local app = require('waffle')
local s3 = require('s3')
local ML = require('ml')
local bucket = s3:connect{
awsId="<Your AWS ID here>",
awsKey="<Your AWS Secret Key here>",
bucket="<target bucket name here>",
}
app.get('/', function(req, res)
res.send('Hello from our LuaJIT/Torch microservice!')
end)
app.... |
--action event pack
--O_gate_40102Controller
return
{
} |
local awful = require("awful")
local beautiful = require("beautiful")
local gears = require("gears")
local wibox = require("wibox")
local xresources = require("beautiful.xresources")
local dpi = xresources.apply_dpi
panel = { item = {} }
awful.screen.connect_for_each_screen(function(scr)
-- separator
local SP = w... |
-- --------------------
-- TellMeWhen
-- Originally by Nephthys of Hyjal <lieandswell@yahoo.com>
-- Other contributions by:
-- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol,
-- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune
-- Currently maintained by
-- Cybeloras... |
require "spirograph"
pncl("#F0A0A0")
-- +-------------------------- radius of equator circle
-- | +--------------------- radius of the bicycle wheel circle
-- | | +---------------- (optional) position of the drawing point
-- | | | +------------ (optional) resolution of the graph
-- | ... |
--***********************************************************
--** THE INDIE STONE **
--** Author: turbotutone **
--***********************************************************
require "ISUI/ISPanel"
---@class ISMoveablesIconToolTip : ISPanel
ISMoveablesIconToolTip = ISP... |
object_tangible_collection_rock_burning_05 = object_tangible_collection_shared_rock_burning_05:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_rock_burning_05, "object/tangible/collection/rock_burning_05.iff") |
--
-- Defines which commands are defined in the context player
--
local COMMANDS = require 'scripts.helpers.command'
local PLA = require 'scripts.modules.player.actions'
local PLAYER = {}
PLAYER[#PLAYER + 1] = { COMMANDS.zeroArg("/who"), PLA.who }
PLAYER[#PLAYER + 1] = { COMMANDS.arbyArg("/setName"), PLA.setName }
re... |
local vmf = get_mod("VMF")
-- #####################################################################################################################
-- ##### Local functions ###############################################################################################
-- ###############################################... |
local typedefs = require "kong.db.schema.typedefs"
local openssl_pkey = require "resty.openssl.pkey"
local openssl_x509 = require "resty.openssl.x509"
local type = type
return {
name = "certificates",
primary_key = { "id" },
dao = "kong.db.dao.certificates",
workspaceable = true,
fields = ... |
mapFields = require "lib/mapFields"
target.transfer_field(mapFields.getID("PenguinPort"), 1) |
project "ImGuizmo"
kind "StaticLib"
language "C++"
cppdialect "C++17"
staticruntime "on"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
files
{
"ImGuizmo.h",
"ImGuizmo.cpp",
"ImSequencer.h",
"ImSequencer.cpp",
"ImGradient.cpp",
... |
local Console =
{
Name = "Console",
Type = "System",
Namespace = "C_Console",
Functions =
{
{
Name = "GetAllCommands",
Type = "Function",
Returns =
{
{ Name = "commands", Type = "table", InnerType = "ConsoleCommandInfo", Nilable = false },
},
},
{
Name = "GetColorFromType",
Type = ... |
function setup (thread)
print ("setup >> " .. thread.tindex .. " of " .. thread.tcount)
end
function init(x)
print ("init >> " .. wrk.thread.tindex .. " of " .. wrk.thread.tcount)
end
|
--[[
╔════════════════════════════════════════╗
║ Settings for monsonjeremy/onedark.nvim ║
╚════════════════════════════════════════╝
--]]
require("onedark").setup {
-- Change the 'hint' color to the 'orange' color, and make the 'error' color bright red
colors = { hint = 'orange', error = '#ff0000' },
sidebars =... |
-----------------------------------------------------------------------------
-- =x=|DoN|=x= ( 7eJAzZy )
-- Date: 2014/2015
-- Skype: DON.81
-- Please don't remove my rights
-----------------------------------------------------------------------------
local LanguageTableList = {
{"Arabic"},
{"Spanish"},
{"... |
local L = LibStub("AceLocale-3.0"):GetLocale("MillButton")
local mill = CreateFrame("Button","MillButton",UIParent,"SecureActionButtonTemplate")
mill:SetAttribute("type","macro")
local item_herb = GetItemSubClassInfo(LE_ITEM_CLASS_TRADEGOODS, 9) --Simple way to get ingame localized ItemType "Herb" through Auctionsho... |
local path = (...):sub(1, #(...) - #(".motion.MotionQueueManager"))
local Luaoop = require(path..".3p.Luaoop")
local MotionQueueEntry = require(path..".motion.MotionQueueEntry")
---@alias L2DF.MotionEventFunction fun(caller: L2DF.MotionQueueManager, eventValue: string, customData)
---@class L2DF.MotionQueueManager
-... |
bc.private = {}
function bc.private.sendPrivate( chan, from, to, text, noLog )
if not to or not to:IsValid() then return end
if not noLog then
bc.logs.sendLog( bc.defines.channelTypes.PRIVATE, "Private", from, " → ", to, ": ", text )
end
if bc.base.playersEnabled[to] then
net.Start( "BC... |
--[[
/////// //////////////////
/////// PROJECT: MTA iLife - German Fun Reallife Gamemode
/////// VERSION: 1.7.2
/////// DEVELOPERS: See DEVELOPERS.md in the top folder
/////// LICENSE: See LICENSE.md in the top folder
/////// /////////////////
]]
-- #######################################
-- ## Project: MTA i... |
--------------------------------------------------------------------------------
-- Панели с реле и контакторами (ПР-143, ПР-144)
--------------------------------------------------------------------------------
Metrostroi.DefineSystem("PR_14X_Panels")
function TRAIN_SYSTEM:Initialize()
------------------------... |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
ESX.RegisterUsableItem(Config.itemuse, function(source) --แก้ตรงpickaxe เป็นไอเท็มของคุณ
TriggerClientEvent('renzer_treasure:pickaxe', source)
TriggerClientEvent('esx_inventoryhud:cl', source)
end)
RegisterServerEvent('renzer_t... |
function isempty(s)
return s == nil or s == ''
end
function sendResponse(conn, response)
reponseNiceName = "unknown"
if response.status == nil then
response.status = 200
reponseNiceName = "OK"
end
if response.headers == nil then
response.headers = {}
end
... |
--
-- Example for stream compress
--
-- Initialize:
local bzlib = require 'ffi_bzlib.compress'
--[[
local bz = bzlib:new(
compresslevel, -- Optional, default is 9.
workfactor -- Optional, default is 30.
-- In fact, these two are parameters 'blockSize100k'
-- and 'workFactor' o... |
--[[
Variables
]]
local Apartments = {}
--[[
Events
]]
RegisterNetEvent("SpawnEventsServer")
AddEventHandler("SpawnEventsServer", function()
local src = source
local cid = exports["caue-base"]:getChar(src, "id")
local hotel = exports["caue-base"]:getChar(src, "hotel")
local type = hotel... |
require "strict"
local tiny = require("tiny")
local render = tiny.processingSystem()
render.filter = tiny.requireAll(
"position",
"rotation",
"sprite"
)
function render:process(e, dt)
love.graphics.draw(
assets.sprites[e.sprite],
e.position.x, e.position.y,
-e.rotation
)
e... |
//THIS IS NOT A CONFIG, YOU CAN EDIT THESE
//BUT IT IS NOT RECOMMENDED!
bb_bottles = {}
bb_bottles.colors = {}
bb_bottles.row1 = {}
bb_bottles.row2 = {}
bb_bottles.row3 = {}
function bb_addBottle(name, row, bottleType , bottleMat , glassMat , color , density)
local temp = {}
temp.name = name
temp.row = row
temp.... |
local InfoControl = {}
function InfoControl:AddCategory(control,data,categoryId,typeId,parentId)
if control == nil or data == nil or categoryId == nil then return end
ZO_ScrollList_AddCategory(control,categoryId,parentId)
typeId = data.typeId or typeId or 0
self:AddEntries(control,{data},typeId,parentId)
end
func... |
ExportMetalCommand = Command:extends{}
ExportMetalCommand.className = "ExportMetalCommand"
function ExportMetalCommand:init(path)
self.path = path
end
function ExportMetalCommand:execute()
Spring.CreateDir(Path.GetParentDir(self.path))
local projectPath = SB.project.path
local METAL_RESOLUTION = 16
... |
return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 32,
height = 32,
tilewidth = 16,
tileheight = 16,
properties = {},
tilesets = {
{
name = "tiles",
firstgid = 1,
tilewidth = 64,
tileheight = 64,
spacing = 0,
margin = 0,
imag... |
local M = {}
M.config = function()
do
local lsp = vim.lsp
lsp.handlers['textDocument/publishDiagnostics'] = lsp.with(
lsp.diagnostic.on_publish_diagnostics,
{underline = false, virtual_text = false}
)
end
do
local function defsign(name, icon)
vim.fn.sign_define(
'LspDia... |
---------------------------------------------------------------------------------------------------
-- func: delcurrency <currency type> <amount> <target player>
-- desc: Removes the specified currency from the player
---------------------------------------------------------------------------------------------------
c... |
local M = {}
local M_PI = math.pi
local sqrt = math.sqrt
local floor = math.floor
local tan = math.tan
local function snippet_normalize(cr, width, height)
cr:scale(width, height)
cr:set_line_width(0.04)
end
local function torgb(s)
if not s or s == "" or s == {} then
return 0,0,0
end
... |
local degHealth = {
["breaks"] = 0,-- has neg effect
["axle"] = 0, -- has neg effect
["radiator"] = 0, -- has neg effect
["clutch"] = 0, -- has neg effect
["transmission"] = 0, -- has neg effect
["electronics"] = 0, -- has neg effect
["fuel_injector"] = 0, -- has neg effect
["fuel_tank"]... |
v=429
txd = engineLoadTXD("banshee.txd")
engineImportTXD(txd, v)
dff = engineLoadDFF("banshee.dff", v)
engineReplaceModel(dff, v) |
do
local settings_img = "1713705576b.png"
local powers_img = "17136ef539e.png"
local help_img = "17136f9eefd.png"
GameInterface = Interface.new(0, 0, 800, 400, true)
:addImage({
image = settings_img,
target = ":1",
x = 772, y = 32
})
:addTextArea({
text = "<a href='event:settings'><font size='50'... |
mystical_agriculture.register_normal_ore_crop("silver","moreores:silver_ingot","Silver",3,4,mystical_agriculture.get_inv_image("moreores:silver_ingot"))
mystical_agriculture.register_normal_ore_crop("mithril","moreores:mithril_ingot","Mithril",3,2,mystical_agriculture.get_inv_image("moreores:mithril_ingot")) |
local tester = require("scripts/tester")
function setup(thread)
return tester.setup(thread)
end
function init(args)
return tester.init(args)
end
function done(summary, latency, requests)
return tester.done(summary, latency, requests)
end
request = function()
return tester.request()
end
response = function(... |
InitUG(2, AlgebraType("CPU", 1));
ug_load_script("ug_util.lua")
ug_load_script("util/refinement_util.lua")
requiredSubsets = {"LIP", "COR", "BOTTOM_SC", "TOP_SC"}
gridName = "skin2d-aniso.ugx"
numRefs = 2
dom = util.CreateDomain(gridName, numRefs, requiredSubsets)
approxSpaceDesc = { fct = "c", type = "Lagrange", or... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.