content stringlengths 5 1.05M |
|---|
-- init.lua
-- Coltrane Willsey
-- 2022-03-07 [22:32]
--[[
-- TODO: Add documentation
--]]
local Settings = require('src/shell/Settings')
local caretaker = require('src/common/caretaker')
local stdin, stdout = require('src/common/stdin'), require('src/common/stdout')
local shell = {}
shell.__index = shell
funct... |
local View = {};
function View:Start()
self.view = CS.SGK.UIReference.Setup(self.gameObject);
end
function View:UpdateResult(data)
local pid=data and data[1]
local win=data and data[2]
utils.IconFrameHelper.Create(self.view.IconFrame,{pid=pid})
-- self.view.newCharacterIcon[SGK.newCharacterIcon]:SetInfo(player,tr... |
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com>
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
local region = require("moonpie.ui.region")
local function get_rekt(element, property)
if type(element[property]) == "table" then
return {
left = el... |
--[[
High Quality Vayne Script by Izsha
For Last News, check the Thread on the Bot of Legends Forum;
https://forum.botoflegends.com/topic/100617-vippewalksacprime-vaynelegacy-of-shadow-reloaded-working-for-624/
Best Regards.
]]--
LoadEncryptedScript("qHBLTJqhCKI5uRJ5awFDFhBPV4BCicLwu5qzE4BhjQRsv7LT4M3t... |
-- decode stringified JSON
local function decodeJson(encodedJson)
local ok, decodedJson = pcall(sjson.decode, encodedJson)
if ok then
return (decodedJson)
else
print("Decoding failed: ", encodedJson)
end
end
-- stringify JSON
local function encodeJson(tableToEncode)
local ok, encode... |
--------------------------------------------------------------------------------
-- 0450-testing-decorators.lua: Test for check_decorator and friends
-- This file is a part of lua-nucleo library
-- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license)
--------------------------------------------------... |
object_tangible_npe_npe_blacksun_heavy_s01 = object_tangible_npe_shared_npe_blacksun_heavy_s01:new {
}
ObjectTemplates:addTemplate(object_tangible_npe_npe_blacksun_heavy_s01, "object/tangible/npe/npe_blacksun_heavy_s01.iff")
|
local dev = require("libdev/dev")
dev.defaultPackages()
local Color = require("FSGL/Color")
local color = Color:new(0.5, 255, 0, 128)
print(0.5, 255, 0, 128)
print(color:getAlpha(), color:getRed(), color:getGreen(), color:getBlue())
print(0xFF0080)
print(color:getRGB())
|
-- NetHack 3.7 tower.des $NHDT-Date: 1432512784 2015/05/25 00:13:04 $ $NHDT-Branch: master $:$NHDT-Revision: 1.9 $
-- Copyright (c) 1989 by Jean-Christophe Collet
-- NetHack may be freely redistributed. See license for details.
--
des.level_init({ style = "solidfill", fg = " " });
des.level_flags("mazelevel", "notel... |
--D-HERO Bloo-D (Anime)
--Destiny HERO - Plasma (Anime)
--fixed by Larry126
local s,id,alias=GetID()
function s.initial_effect(c)
alias=c:GetOriginalCodeRule()
c:EnableReviveLimit()
--cannot special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_D... |
local windowOpen = true
local toggled = false
local checkbox = false
local textBoxText = "Edit"
local textBoxActive = false
local spinnerValue = 3
local spinnerActive = false
local spinnerValueRange = { 0, 10 }
local sliderValue = 5.0
local sliderValueRange = { 0.0, 10.0 }
local scrollbarValue = 0.0
local dropdownValue... |
-- (c) Synack Inc 2016
-- some required types
ORIENTATION_TYPE = {
UNKNOWN = 0,
PORTRAIT = 1,
PORTRAIT_UPSIDE_DOWN = 2,
LANDSCAPE_LEFT = 3,
LANDSCAPE_RIGHT = 4
}
function screen_press(x, y)
local cmd = '/usr/bin/stouch touch ' .. tostring(x) .. ' ' .. tostring(y)
log(cmd)
local p... |
local UtilityServer = {
Cache = {
SavedJobs = {},
SavedxPlayer = {}
}
}
local function RemoveFromJob(pId, oldJob)
--print("Removing "..pId.." to the job "..oldJob)
if UtilityServer.Cache.SavedJobs[oldJob] ~= nil then
for i=1, #UtilityServer.Cache.SavedJobs[oldJob] do... |
-- Copyright (c) 2017-present, Facebook, Inc.
-- All rights reserved.
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
local LinearSegCrite... |
local
PushUISize, PushUIColor,
PushUIStyle, PushUIAPI,
PushUIConfig, PushUIFrames = unpack(select(2, ...))
local _chatbackground = PushUIFrames.UIView()
PushUIConfig.skinType(_chatbackground.layer)
_chatbackground:set_size(
PushUIFrameActionBarFrame:GetWidth() + PushUISize.padding * 2,
PushUIFr... |
--记录需要加密的文件列表
g_Encrypt_File_table =
{
{
ENTYPE="Type_1",
"../Media/all.particle",
"../Media/all.material",
"../Media/all.effect",
"../Media/all.obj",
"../Media/all.skill",
-- 2008.2.16 added for longmen
"../Media/模型/大理/大理酒楼.mesh",
"../Media/模型/大宛/大宛栅栏台.mesh",
"../Media/人物/秦家寨探子/秦家寨兵头.mesh",
".... |
local Gui = require("api.Gui")
local Log = require("api.Log")
local CircularBuffer = require("api.CircularBuffer")
local Tools = require("mod.tools.api.Tools")
local PlotViewer = require("mod.plot.api.PlotViewer")
local IUiWidget = require("api.gui.IUiWidget")
local PerfPlot = class.class("PerfPlot", IUiWidget)
funct... |
local snapshot = require "snapshot"
local S1 = snapshot()
local tmp = {}
local S2 = snapshot()
for k,v in pairs(S2) do
if S1[k] == nil then
print(k,v)
end
end
|
ITEM.name = "Хорошая табуретка"
ITEM.desc = "Табуретка, сделанная достаточно умелым плотником"
ITEM.model = "models/props/furnitures/humans/stool01.mdl"
ITEM.width = 2
ITEM.height = 2 |
local _M = {}
local aes = resty.aes
local prefix = [[^/generate/]]
function _M.handler(event)
local request = event.request
local uri = request.uri
-- 符合格式的 path 进行签名
if re.find(uri, prefix, 'joi') then
-- 获取签名 path
local true_uri = string.sub(uri, 10)
-- 生成校验 path
... |
return PlaceObj("ModDef", {
"title", "Mark Deposit Ground",
"version", 7,
"version_major", 0,
"version_minor", 7,
"saved", 0,
"image", "Preview.png",
"id", "ChoGGi_MarkDepositGround",
"steam_id", "1555446081",
--~ "pops_desktop_uuid", "8a57f30a-6bae-46c0-99b9-ca497bf74bd3",
"pops_any_uuid", "3b37cc32-66d0-423... |
---
-- @classmod RotatingCharacterBuilder
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local RotatingCharacter = require("RotatingCharacter")
local RotatingCharacterBuilder = {}
RotatingCharacterBuilder.__index = RotatingCharacterBuilder
RotatingCharacterBuilder.ClassName =... |
--[[
LegacyCamera - Implements legacy controller types: Attach, Fixed, Watch
2018 Camera Update - AllYourBlox
--]]
-- Local private variables and constants
local UNIT_X = Vector3.new(1,0,0)
local UNIT_Y = Vector3.new(0,1,0)
local UNIT_Z = Vector3.new(0,0,1)
local X1_Y0_Z1 = Vector3.new(1,0,1) --Note: not a unit ve... |
-- General configuration
local utils = require('utils')
-- Toggle debugging of configuration.
vim.g.debug = false
utils.debug('S General configuration sequence started')
-- Choose colorscheme.
local colors = 'OceanicNext'
vim.cmd('colorscheme ' .. colors)
-- Turn on current line and column highlighting.
utils.opt(... |
------------------------------------------------------------------------
--[[ Choose ]] --
-- Uniformly Chooses one of the provided options.
------------------------------------------------------------------------
local Choose = torch.class("dp.Choose")
Choose.isChoose = true
function Choose:__init(options)
self.... |
if not modules then modules = { } end modules ['strc-rsc'] = {
version = 1.001,
comment = "companion to strc-ref.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
-- The scanner is in a ... |
-- Copyright (C) 2018 The Dota IMBA Development Team
--
-- 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 by applicable ... |
require('window_resize')
require('open_app')
require('wifi')
require('reload')
require('bluetooth')
|
local function init()
local obj = {
root = {},
options = {noreduce = {}}
}
obj._stack = {obj.root, n=1}
return obj
end
--- @module XML Tree Handler.
-- Generates a lua table from an XML content string.
-- It is a simplified handler which attempts
-- to generate a more 'natural' table b... |
--Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... |
local Tunnel = module('_core', 'libs/Tunnel')
local Proxy = module('_core', 'libs/Proxy')
local hpp = Tunnel.getInterface("delivery_milk")
hppC = {}
Tunnel.bindInterface("delivery_milk", hppC)
API = Proxy.getInterface('API')
cAPI = Tunnel.getInterface('cAPI')
animApi = module("_core", "client/functions/_Anims")
l... |
--import all vrp
local Tunnel = module("vrp", "lib/Tunnel")
local Proxy = module("vrp", "lib/Proxy")
vRP = Proxy.getInterface("vRP")
local lobbies = {}
RegisterNetEvent("race:send_data_to_lobby_members")
AddEventHandler("race:send_data_to_lobby_members", function (data)
table.insert(lobbies, data.lo... |
-- vim: ts=2 sw=2 sts=2 et :
-- testing recursive contrast sets
-- (c) 2021 Tim Menzies (timm@ieee.org) unlicense.org
package.path = '../src/?.lua;' .. package.path
local r=require
local Tbl, Lib, contrast = r("tbl"), r("lib"), r("contrast")
local function _t1(f)
local the =Lib.the()
local t=Tbl()
for row in ... |
--------------------------------------
-- Namespaces
--------------------------------------
local _, core = ...;
core.Config = {}; -- adds Config table to addon namespace
local Config = core.Config;
local UIConfig;
--------------------------------------
-- Defaults (usually a database!)
------------------------------... |
require("firecast.lua");
local __o_rrpgObjs = require("rrpgObjs.lua");
require("rrpgGUI.lua");
require("rrpgDialogs.lua");
require("rrpgLFM.lua");
require("ndb.lua");
require("locale.lua");
local __o_Utils = require("utils.lua");
local function constructNew_frmSODLSheet()
local obj = GUI.fromHandle(_obj_newObject(... |
--
-- GTSRB dataset loader
--
local image = require 'image'
local paths = require 'paths'
local t = require 'datasets/transforms'
local ffi = require 'ffi'
local M = {}
local GTSRBDataset = torch.class('GTSRBDataset', M)
function GTSRBDataset:__init(imageInfo, opt, split)
-- imageInfo: result from gtsrb-gen.lua... |
-----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Quartermaster
-- !pos -22 2 -3 80
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
player:startEvent(201);
end;
function onEventUpdate(player,csid,option)
end;
function onEventFi... |
local collector = {
name = 'upstream',
ngx_phases = { [[log]] },
fields = {
rps = { format = '%d', cyclic = true, window = true, },
connect_time = { format = '%0.3f', mean = true, },
header_time = { format = '%0.3f', mean = true, },
response_time = { format = '%0.3f', mean = true, },
}
}
functi... |
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
require("lualib_bundle");
__TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["5"] = 3,["6"] = 3,["7"] = 5,["8"] = 5,["9"] = 6,["10"] = 6,["11"] = 7,["12"] = 7,["13"] = 8,["14"] = 8,["15"] = 11,["16"] = 11,["17"] = 13,["18"] = 14,["19"] = 14,[... |
local scrollers = {}
scrollers[PLAYER_1] = setmetatable({disable_wrapping=true}, sick_wheel_mt)
scrollers[PLAYER_2] = setmetatable({disable_wrapping=true}, sick_wheel_mt)
local mpn = GAMESTATE:GetMasterPlayerNumber()
local orderMenu_input
-- ----------------------------------------------------
local invalid_count = 0... |
--[[----------------------------------------------------------------------------
Application Name:
ScriptUnittest
Summary:
Showing basic option for unittesting scripts
Description:
This sample shows an approach to unittest script functions. It has two exemplary
modules and this 'main' script. The actua... |
local function rk4_evaluate(initial, dt, deriv)
local state = {}
state.position = initial.position + deriv.velocity * dt
state.velocity = initial.velocity + deriv.acceleration * dt
local newDeriv = {}
newDeriv.velocity = state.velocity
newDeriv.acceleration = initial.acceleration
return ne... |
require('plugins')
vim.o.background = "dark"
vim.o.termguicolors = true
vim.api.nvim_set_var('gruvbox_contrast_dark', 'hard')
vim.api.nvim_set_var('gruvbox_invert_selection', '0')
vim.api.nvim_set_var('&t_8f', '<Esc>[38;2;%lu;%lu;%lum')
vim.api.nvim_set_var('&t_8f', '<Esc>[48;2;%lu;%lu;%lum')
vim.cmd([[colorscheme g... |
-- luacheck: globals ignore quickApp plugin api net netSync setTimeout clearTimeout setInterval clearInterval json
-- luacheck: globals ignore hc3_emulator HUEv2Engine fibaro
-- luacheck: ignore 212/self
local version = 0.2
local v2 = "1948086000"
local debug = { info = true, call=true, event=true, v2api=true, logger=... |
--[[
Copyright (C) 2019 Onset Roleplay
Developers:
* Bork
* Logic_
Contributors:
* Blue Mountains GmbH
]]--
-- Variables
local charAngle = 0
local customUI = 0
local customizationOpen = false
local TexturesLoaded = {}
-- Functions
local function Rotate(rotation)
charAngle = charAngle + rotation
GetPlayerSkelet... |
-- { Dict = "mp_arresting", Name = "idle", Flag = 0 },
Restraints = Restraints or {}
Restraints.controls = {
22, -- INPUT_JUMP
24, -- INPUT_ATTACK
25, -- INPUT_AIM
45, -- INPUT_RELOAD
46, -- INPUT_TALK
47, -- INPUT_DETONATE
51, -- INPUT_CONTEXT
52, -- INPUT_CONTEXT_SECONDARY
55, -- INPUT_DIVE
58, -- INPUT_TH... |
-- Author: Carsten Gips <carsten.gips@fh-bielefeld.de>
-- Copyright: (c) 2018 Carsten Gips
-- License: MIT
-- transform headers to questions
function headerToQuestion(el)
-- only handle level 1 and level 2 headers
local level = tonumber(el.level)
if level ~= 1 and level ~= 2 then
return el
end... |
require "/lib/stardust/sync.lua"
function init()
--
end
function update()
sync.runQueue()
end
function onRecvInfo(rpc)
if rpc:succeeded() then
local res = rpc:result()
if not res then return nil end
selSlot = res.slot
widget.setText("filter", res.filter)
widget.setText("priority", res.prior... |
dxDrawText = dxDrawText
dxDrawRectangle = dxDrawRectangle
triggerServerEvent = triggerServerEvent
getTickCount = getTickCount
getKeyState = getKeyState
tocolor = tocolor
faction = {}
faction.__index = faction
faction.screen = Vector2(guiGetScreenSize())
faction.width, faction.height = 800, 550
faction.sizeX, ... |
-- This is just the physical interface
-- See digital.lua for the digital interface
-- I need to improve the mk2 and mk3 so dump can use them too, since 1000 credits could be represented as about 111 credits_mk2
-- The physical item
minetest.register_craftitem("credits:credits", {
description = credits.S("Credit... |
local myGlobal = require("__nco-LongWarehouses__/lib/nco_data")
local lib_warehouse = require("__nco-LongWarehouses__/lib/lib_warehouse")
local data_util = require("__nco-LongWarehouses__/lib/data_util")
local ghost_util = require("__nco-LongWarehouses__/script/ghost_util")
local myControl = {}
------------------------... |
local TweenService = game:GetService("TweenService")
repeat wait() until shared.Finity
local Finity = shared.Finity
return function(Object, Data)
Object.MouseButton1Click:Connect(function()
Data.Value = not Data.Value
if Data.Callback and type(Data.Callback) == "function" then
if Data.Value ~= nil then
... |
local m = require 'lpeg'
local re = require 're'
local bit = require 'bit'
local bor, band = bit.bor, bit.band
local lshift, rshift = bit.lshift, bit.rshift
local strbyte, strchar = string.byte, string.char
return re.compile([[
result <- ascii7 / surrogate_pair / codepoint
ascii7 <- (%NULL_CHAR -> '') %ASCII7_CH... |
local g = vim.g
-- Colorscheme options
-- g.tokyonight_transparent = true
-- g.tokyonight_style = "night"
-- g.tokyonight_dark_float = false
-- g.tokyonight_transparent_sidebar = true
g.tokyonight_colors = { bg_float = "#24283b" }
-- g.nightflyTransparent = 1
-- Available colorschemes:
local colorscheme = "tokyonight"... |
print("This is the 'UI - Notify Exit Resistance' mod script.")
local g_NotificationType = NotificationTypes.NOTIFICATION_GENERIC
function OnCityResistanceNotificationId(id)
print(string.format("Setting city resistance notification id to %i", id))
g_NotificationType = id
end
LuaEvents.CityResistanceNotificationId.... |
-----------------------------------
-- Area: Behemoths Dominion
-- Mob: Bhuta
-----------------------------------
require("scripts/globals/regimes")
-----------------------------------
function onMobDeath(mob, player, isKiller)
tpz.regime.checkRegime(player, mob, 103, 2, tpz.regime.type.FIELDS)
end;
|
--This file is used to generate HTML documentation using LDoc https://github.com/stevedonovan/LDoc
--- Entity component system for Lua scripting language.
-- @module lovelyecs.lua
-- @author Markus Septer
-- @copyright 2019
-- @license MIT
local lovelyecs = {}
-- WORLD FUNCTIONS
----------------------------------
... |
local KL = require 'klib/klib'
local KC = KL.Container
local Agent = KL.Agent
local Behaviors = require 'pda/behavior/behaviors'
local Commands = require 'pda/command/commands'
local Path = require 'pda/path/path'
local Position = require '__stdlib__/stdlib/area/position'
local table = require '__stdlib__/stdlib/utils... |
ExarKunTombScreenPlay = ScreenPlay:new {
numberOfActs = 1,
screenplayName = "ExarKunTombScreenPlay",
}
registerScreenPlay("ExarKunTombScreenPlay", true)
function ExarKunTombScreenPlay:start()
if (isZoneEnabled("dungeon2")) then
self:spawnMobiles()
self:spawnSceneObjects()
end
end
function ExarKunTombS... |
workspace "json_reader"
startproject "application"
platforms { "64" }
configurations { "Debug", "Release" }
architecture "x64"
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
project "json_reader"
location "json_reader"
kind "StaticLib"
language "C++"
staticruntime "Off"
targetdir ("... |
local playsession = {
{"EPO666", {310209}},
{"kjh2663", {661}},
{"MovingMike", {187007}},
{"McSafety", {161946}},
{"Poo76765", {167997}},
{"dazonker", {67236}},
{"jackazzm", {41266}}
}
return playsession |
--- A type for determining the orientation of a vector Input.
-- The directions are Vertical, and Horizontal. These are used with an Input
-- and a ControlScheme to create a vector Input from two axis Inputs.
--
-- @author LastTalon
-- @version 0.1.1, 2020-10-01
-- @since 0.1
--
-- @module VectorDirection
--
-- @see Co... |
--[[=========================================
_ _ _
| | | | | | /\ /\
| | | | | | / \ _ __ _ __ / \ _ __ ___
| | | | | |/ /\ \ | '_ \| '_ \ / /\ \ | '__/ __|
| |___| |__| / ____ \| |_) | |_) / ____ \| | | (__
|______\____/_/ \_\ .__/| .__/_/ \_\_| \___|
Scripting Pro... |
--
-- Server script for CC login system
-- https://github.com/olback/computercraft/blob/master/key-server/server/startup.lua
--
local modemSide = "top" -- Wireless/Wired modem
local hashFile = "password_hash.sha256" -- Don't change unless you know what you're doing!
file = fs.open(hashFile, "r")
hash = file.readAll... |
local unpack = table.unpack or unpack
local function tonumbers(...)
local args = {...}
for k, v in ipairs(args) do
args[k] = tonumber(v)
end
return unpack(args)
end
local function parse_claim(line)
return line:match('^#(%d+)%s@%s(%d+),(%d+):%s(%d+)x(%d+)')
end
local function overlaps(a, b)
local x1, ... |
-- on screen display (osd) module
local osd = {}
local w = {} -- a table of widths
local h = {} -- a table of heights
for i=1, 32 do
w[i] = of.getWidth()/i
h[i] = of.getHeight()/i
end
local font_size
if of.getWidth() >= 1280 then
font_size = 10
else
font_size = 8
end
osdFont = of.TrueTypeFont() ... |
-- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*-
-- vim: ts=4 sw=4 ft=lua noet
----------------------------------------------------------------------
-- @author Daniel Barney <daniel@pagodabox.com>
-- @copyright 2015, Pagoda Box, Inc.
-- @doc
--
-- @end
-- Created : 21 May 2015 by Daniel Barne... |
local Utility = require("Utility")
local Abaddon = {}
local optionAutoSave = Menu.AddOption({"Hero Specific", "Abaddon"}, "Auto Save", "Auto cast 'Aphotic Shield' to save needed ally")
local optionKillSteal = Menu.AddOption({"Hero Specific", "Abaddon"}, "Kill Steal", "Auto cast 'Mist Coil' to KS")
local optionAwaren... |
--
-- Created by David Lannan
-- User: grover
-- Date: 18/06/13
-- Time: 12:48 AM
-- Copyright 2013 Developed for use with the byt3d engine.
--
------------------------------------------------------------------------------------------------------------
local Smesh_manager = NewState()
------------------------------... |
local hotwiring = false
local keys = {}
local ped = nil
local function hasKey(veh)
for k, v in pairs(keys) do
if k == veh then
return v
end
end
return false
end
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
ped = GetPlayer... |
-- For common usage of the debug library
local Util = require("__DedLib__/modules/util")
local Debug = {}
function Debug.get_current_line(f)
local info = debug.getinfo(f)
return info.short_src, info.currentline
end
function Debug.get_defined_line(f)
local info = debug.getinfo(f)
return info.short_src... |
local K, C = unpack(select(2, ...))
-- Sourced: oUF_Phanx (Phanx)
-- Edited: KkthnxUI (Kkthnx)
-- Rewrite: Lars "Goldpaw" Norberg (Optimization and standard border texture compatibility)
-- Speeed!!!
local _G = _G
local pairs = _G.pairs
local type = _G.type
-- Default border values
local borderLayer = "OVERLAY"
loca... |
local file = require 'pl.file'
local M = {}
-- Takes a binary argument, base64 encodes it, and chunks it into multiple
-- AUTHENTICATE commands
function M.encode_authenticate(body)
local commands = {}
local n = 0
local function authenticate(msg)
n = n + 1
commands[n] = 'AUTHENTICATE ' .. ... |
local l_skins_gull = {
{"animal_gull_mesh.png"},
{"gull_black.png"},
{"gull_gray.png"},
{"gull_grayblue.png"}
}
local l_skins_bird = {
{"bird_blueish.png"},
{"bird_brown.png"},
{"bird_gray.png"},
{"bird_grayblue.png"},
{"bird_red.png"},
{"bird_redish.png"}
}
local l_anims = {
speed_normal = 2... |
---@~chinese del对象的附属,将对象状态置为"del"
---
---@~english delete the object and its servants; the status of object will be set to "del" so it is recognized to be
---deleted by the engine at the end of the frame
---@param o Object the object to be marked as deleted
function RawDel(o)
if o then
o.status = "del"
... |
return {
field = 5
} |
fireremover = {}
fireremoverParticles = {}
streetnames = {}
----------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------- CONFIG AREA ---------------------... |
-----------------------------------------------------------------------------------------------
-- Client Lua Script for BGChron
-- Copyright orbv, Celess. All rights reserved.
-----------------------------------------------------------------------------------------------
require "Window"
require "MatchMakingLib"
requ... |
---
-- @author wesen
-- @copyright 2019 wesen <wesen-ac@web.de>
-- @release 0.1
-- @license MIT
--
---
-- Calculates the start and end positions of string rows based on a StringParser instance.
--
-- @type RowDimensionsCalculator
--
local RowDimensionsCalculator = {}
---
-- The minimum row length
--
-- @tfield int m... |
pg = pg or {}
pg.enemy_data_statistics_5 = {
[166] = {
cannon = 0,
name = "时雨",
type = 1,
speed_growth = 0,
battle_unit_type = 49,
air = 0,
air_growth = 0,
durability = 99999,
friendly_cld = 0,
armor = 0,
id = 166,
bubble_fx = "",
dodge_growth = 0,
icon = "shiyu",
star = 0,
torpedo = 0,... |
--[[
相关接口:
handle = usbdisk.open(symbolic_link)
bool = usbdisk.close(handle)
wrote_cnt = usbdisk.write(handle,table)
table = usbdisk.read(handle,size)
]]--
local usb = require("lusbdisk")
function tbprint(tb,ss)
local s = ""
if ss ~= nil then
s = s .. ss
end
for i=1,#tb do
s = s .. string.format("%02x "... |
local D=6
local I=2
local naglosnienieO=playSound3D("http://s15038.sbg1.fastd.svpj.pl/psz-dzwieki/audio/seks.ogg",2415.74,-1220.88,2000.92,true)
local naglosnienieI=playSound3D("http://s15038.sbg1.fastd.svpj.pl/psz-dzwieki/audio/audiodump.ogg",2419.91,-1219.50,25.51,true)
setElementInterior(naglosnienieO,I)
setElement... |
local skynet = require "skynet"
local User = require "user"
local UserManager = class("UserManager")
function UserManager:ctor()
self._users = {}
self._map = {}
end
function UserManager:get_instance()
if self._instance == nil then
self._instance = self:new()
end
return self._instance
end
function UserManager:... |
local test = require 'regress'
local sys = require 'sys'
local BackgroundTaskPool = require 'ipc.BackgroundTaskPool'
test {
testSimple = function()
local pool = BackgroundTaskPool(20, { closeOnLastTask = true })
for _ = 1,1000 do
pool.addTask(function(t)
local sys = require 'sys'
... |
require("tableutil")
require("runtime-core/src/vnode")
require("runtime-core/src/warning")
require("runtime-core/src/components/KeepAlive")
require("@vue/reactivity")
require("runtime-core/src/errorHandling")
require("runtime-core/src/errorHandling/ErrorCodes")
require("@vue/shared/ShapeFlags")
require("@vue/shared/Pat... |
--[[ Copyright (c) 2009 Manuel König
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 to
use, copy, modify, merge, publish, distribute, ... |
local diff = {
["keyDiffs"] = {
["d1032pnilu1034cdnilvdnilvpnilvunil"] = {
["name"] = "Throttle Smoothly (Both) - Increase",
["removed"] = {
[1] = {
["key"] = "Num+",
},
},
},
["d1033pnilu1034cdnilvdnilvpnilvunil"] = {
["name"] = "Throttle Smoothly (Both) - Decrease",
["removed"] = {
... |
local RunService = game:GetService("RunService")
local EventUtil = {}
function EventUtil.InvokeOnFirst(func, ...)
local Bind = Instance.new("BindableEvent")
local Events = {...}
local function Fire(...)
for i = 1, #Events do
Events[i]:Disconnect()
end
return Bind:Fire(...)
end
for i = 1, #Events do
... |
---------------------------------------------------------------------------
--- Popup widget which shows current hotkeys and their descriptions.
--
-- It's easy to add hotkeys for your favorite application. Below is how to add
-- hotkeys for firefox to the previously created `hotkeys_popup` in `rc.lua`.
--
-- -- Cre... |
-----------------------------------
-- Area: Phomiuna_Aqueducts
-- NM: Mahisha
-----------------------------------
mixins = {require("scripts/mixins/fomor_hate")}
-----------------------------------
function onMobSpawn(mob)
mob:setLocalVar("fomorHateAdj", -1)
end
function onMobDeath(mob, player, isKiller)
end
... |
--[[
MIT License
Copyright (c) 2019 Michael Wiesendanger
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
to use, copy, mod... |
function getPlayerPosition( thePlayer, commandName )
if isPlayerTrialModerator(thePlayer) or isPlayerScripter(thePlayer) then
local x, y, z = getElementPosition(thePlayer)
local rot = getPedRotation(thePlayer)
local int = getElementInterior(thePlayer)
local dim = getElementDimension(thePlayer)
local de... |
--- TODO: Permissions System before fixing this.
--- TODO: Add VON encoding of any table's that are passed, work on 'universal' serializer and deserializer
-------------------------------------------------------------------------------
-- File functions
------------------------------------------------------------------... |
ENT.Type = "anim"
ENT.Base = "base_entity"
ENT.PrintName = "CE 40MM Grenade (default)"
ENT.Author = "L337N008"
ENT.Information = [[Centered-Explosion 40MM Grenade for underslung grenade launchers
150% blast damage
50% blast radius]]
ENT.Spawnable = true
ENT.AdminSpawnable = true
ENT.Category = "Grenade types" |
local class = require 'middleclass'
local Light = require(here('Light'))
local DirectionalLight = class(here('DirectionalLight'), Light)
DirectionalLight.static.lightType = 'global'
function DirectionalLight:initialize()
Light.initialize(self)
self:_setShaderLightType('directional')
end
function Directiona... |
-- Scoreboard player score row, based on sandbox version
include("sb_info.lua")
local GetTranslation = LANG.GetTranslation
local GetPTranslation = LANG.GetParamTranslation
SB_ROW_HEIGHT = 24 --16
local PANEL = {}
function PANEL:Init()
-- cannot create info card until player state is known
self.info = nil
self... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function ENT:Initialize()
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(SOLID_VPHYSICS)
self.rate = 0
end
function ENT:AcceptInput(name, activator, caller)
end
function ENT:SetRate(rate, setmodel)
... |
fx_version 'cerulean'
game 'gta5'
dependencies {
'yarn',
'webpack',
}
ui_page 'dist/index.html'
files {
'dist/css/*.css',
'dist/js/*.js',
'dist/img/*.png',
'dist/fonts/*.woff',
'dist/fonts/*.woff2',
'dist/index.html',
'scripts/cl_*.lua',
}
shared_scripts {
'@utils/shared/color.lua',
'@utils/shared/math.l... |
object_building_kashyyyk_nasllas_pillar_central = object_building_kashyyyk_shared_nasllas_pillar_central:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_nasllas_pillar_central, "object/building/kashyyyk/nasllas_pillar_central.iff")
|
local PANEL = {};
function PANEL:Init ( )
self.theirCashOffers = vgui.Create("DTextEntry", self);
self.theirCashOffers:SetNumeric(true);
self.theirCashOffers:SetEditable(false);
self.theirCashOffers:SetText("0");
self.ourCashOfferss = vgui.Create("DTextEntry", self:GetParent());
self.ourCashOfferss:SetN... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.