content
stringlengths
5
1.05M
actualtree={ branchname="Zinsrechner", --tree['title0'] { branchname="1. Allgemeiner Rechner", --tree['title1'] state="COLLAPSED", "Geben Sie eine Rechenaufgabe ein, z.B. 5+7:", --tree['title2'] "10000*0.03", --tree['title3'] { branchname="Berechnen", --tree['title4'] "", --tree['title5'] }, }, { br...
slot2 = "CheckGameSilenceDownloadBean" CheckGameSilenceDownloadBean = class(slot1) CheckGameSilenceDownloadBean.ctor = function (slot0) slot4 = AbstractBean ClassUtil.extends(slot2, slot0) end CheckGameSilenceDownloadBean.start = function (slot0) if IS_TEST_PACKAGE_DOWNLOAD then slot3 = slot0 slot0.finish(sl...
--[[ File name: forge.lua Description: weapon system, this SHOULD NOT be used for items. For items look at "pine" Author: oldmilk --]] local forge = {} -- defaults local forgeDefaults = { defaultDamage = { min = 10, max = 30 } } local playerStats = require(game.ReplicatedStorage:Wa...
-- Project: OiL - ORB in Lua -- Release: 0.6 -- Title : Factory of outgoing (client-side) channels -- Authors: Renato Maia <maia@inf.puc-rio.br> local _G = require "_G" --[[VERBOSE]] local verbose = require "oil.verbose" local pairs = _G.pairs local coroutine ...
-- default mcl_beacon colors mcl_beacon.register_color("White", "#ffffffff", "mcl_dye:white") mcl_beacon.register_color("Black", "#0f0f0fff", "mcl_dye:black") mcl_beacon.register_color("Blue", "#0000ffff", "mcl_dye:blue") mcl_beacon.register_color("Cyan", "#00ffffff", "mcl_dye:cyan") mcl_beacon.register_color("Green",...
-- test_get_font_list.lua package.path = package.path..";../?.lua" local ffi = require("ffi") local caca_ffi = require("caca_ffi")() local Lib_caca = caca_ffi.Lib_caca; local function printFontInfo(name, font) print("==== printFontInfo ====") print(name); local width = caca_get_font_width(font); local height = ca...
-- optimised param2 rotation functions. -- please note, these were machine generated. local rotation_functions = {} rotation_functions[0] = function(v) return { x = v.x, y = v.y, z = v.z, } end rotation_functions[1] = function(v) return { x = v.z, y = v.y, z = ( -v.x ), } end rotation_functions[2] = function(v)...
require("user.options") require("user.keymaps") require("user.plugins") require("user.colorscheme") require("user.cmp") require("user.lsp") require("user.telescope") require("user.treesitter") require("user.autopairs") require("user.comment") require("user.gitsigns") require("user.nvim-tree") require("user.bufferline")...
-- Lua require('lsp.servers.sunmeko') -- Python require('lsp.servers.pyright') -- JavaScript require('lsp.servers.tsserver') --require('lsp.servers.eslint_d') -- General Lenguage Server require('lsp.servers.efm') -- Vimscript require("lsp.servers.vim")
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by Administrator. --- DateTime: 2018/6/23 20:17 --- local windowsBase = require("Core.WindowBase") local fgui = require("FGUI.FairyGUI") local yk = require("Core.YK") ---@class TestWind :WindowBase local this= yk.wind_class(windowsBase) function this...
local Suite = CreateTestSuite("fritomod.Ordering"); function Suite:TestOrdering() local o = Ordering:New(); o:Order("A", "B", "D", "C", "E", "F", "G"); o:Order("C", "D", "G"); Assert.Equals( {"A", "B", "C", "D", "E", "F", "G"}, o:Get()); end; function Suite:TestOrderingWithEqualHead() ...
local TRAIL_EFFECT = Idstring("effects/particles/weapons/sniper_trail") local idstr_trail = Idstring("trail") local idstr_simulator_length = Idstring("simulator_length") local idstr_size = Idstring("size") local trail_length function SniperGrazeDamage:on_wunderwaffe_fired(weapon_unit, result) if not alive(weapon_u...
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- F I N A L C U T P R O A P I -- -----------------------------------------------------------------------------...
--- Library for creating and manipulating physics-less models AKA "Holograms". -- @shared local holograms_library = SF.RegisterLibrary("holograms") --- Hologram type local hologram_methods, hologram_metamethods = SF.RegisterType("Hologram") local checktype = SF.CheckType local checkluatype = SF.CheckLuaType local ch...
sherkarTeleportScreenPlay = ScreenPlay:new { numberOfActs = 1, } registerScreenPlay("sherkarTeleportScreenPlay", true) function sherkarTeleportScreenPlay:start() if (isZoneEnabled("mustafar")) then self:spawnMobiles() self:spawnSceneObjects() end end function sherkarTeleportScreenPlay:spawnSceneObjects() ...
pfUI:RegisterModule("firstrun", 20400, function () pfUI.firstrun = CreateFrame("Frame", "pfFirstRunWizard", UIParent) pfUI.firstrun.steps = {} pfUI.firstrun:RegisterEvent("PLAYER_ENTERING_WORLD") pfUI.firstrun:SetScript("OnEvent", function() pfUI.firstrun:NextStep() end) local autoconfig = false function ...
return { meta = require("apioak.sys.meta"), admin = require("apioak.sys.admin"), router = require("apioak.sys.router"), plugin = require('apioak.sys.plugin'), balancer = require("apioak.sys.balancer"), }
local Object = require('core').Object local Http = require("./http").Http local router = require("./router") local app = Object:extend() function app:initialize() self._server = Http:new() self._router = router.new() end function app:get(path, cb) self._router:get(path, function(params) return cb(p...
mapFields = require "lib/mapFields" mapQuests = require "lib/mapQuests" quest = target.get_quest(mapQuests.getID("FreeMarketQuest")) quest.record = tostring(target.field) target.play_portal_sound_effect() target.transfer_field(mapFields.getID("FreeMarketEtrance"), "st00")
--[[ Netherstorm -- Captain Zovax.lua This script was written and is protected by the GPL v2. This script was released by BlackHer0 of the BLUA Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation community. ~~End of License Agreement -- BlackHer0,...
local K, C, L = unpack(select(2, ...)) if C.Automation.Resurrection ~= true then return end -- Wow API local CanUseSoulstone = CanUseSoulstone local GetBattlefieldStatus = GetBattlefieldStatus local GetCurrentMapAreaID = GetCurrentMapAreaID local GetMaxBattlefieldID = GetMaxBattlefieldID local HasSoulstone = HasSoulst...
--!A cross-platform build utility based on Lua -- -- 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 law...
ServerModSetup("1207269058") ServerModCollectionSetup("1207269058")
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA AF_CITYMAT = AF_CITYMAT or Material("swamponions/af/city") local c0 = Vector(-2385, 96, 763) --left edge of window local c1 = Vector(-2096, -193, 646) --right edge of window local w_center = (c0 + c1) * 0.5 l...
local outfit = {lookType = 267, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0} function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player then return true end doSetCreatureOutfit(player, outfit, -1) end function onStepOut...
return Def.ActorFrame{ LoadActor(THEME:GetPathG("","_gameover"))..{ InitCommand=function(self) self:Center():diffusealpha(0) end, OnCommand=function(self) self:accelerate(0.75):diffusealpha(0.75):glow(color("1,1,1,1")):decelerate(1):glow(color("1,1,1,0")) end, }, }
local typedefs = require "kong.db.schema.typedefs" local Schema = require "kong.db.schema" local PROTECTED_TAGS = { "error", "http.method", "http.path", "http.status_code", "kong.balancer.state", "kong.balancer.try", "kong.consumer", "kong.credential", "kong.node.id", "kong.route", "kong.service"...
Markers = {} Markers.showMarkers = false Markers.showHospital = false Markers.markerPositions = {} Markers.hospitalMarkerPosition = nil Markers.markerSize = Config.Markers.Size / 2.0 function Markers.StartMarkers(hospitalMarker) Markers.showMarkers = true Markers.hospitalMarkerPosition = hospitalMarker Ci...
function Inventories:OnContextMenuOpen() if IsValid(PLAYER.hotbar) then PLAYER.hotbar:safe_remove() end timer.destroy('fl_hotbar_popup') PLAYER.hotbar = Inventories:create_hotbar() PLAYER.hotbar:SetAlpha(255) PLAYER.hotbar:MakePopup() PLAYER.hotbar:MoveToFront() PLAYER.hotbar:SetMouseInputEnabled(...
AuctionatorFullScanFrameMixin = {} local FULL_SCAN_EVENTS = { "REPLICATE_ITEM_LIST_UPDATE", "AUCTION_HOUSE_CLOSED" } function AuctionatorFullScanFrameMixin:OnLoad() Auctionator.Debug.Message("AuctionatorFullScanFrameMixin:OnLoad") Auctionator.EventBus:RegisterSource(self, "AuctionatorFullScanFrameMixin") -...
return { include = function() includedirs { "../vendor/tinygltf/" } defines { "TINYGLTF_USE_CPP14", "TINYGLTF_NO_INCLUDE_JSON" } end, run = function() language 'C++' kind 'StaticLib' files { 'vendor/tinygltf.cpp' } end }
local re = require 'parser.relabel' local m = require 'lpeglabel' local ast = require 'parser.ast' local scriptBuf = '' local compiled = {} local parser local defs = ast.defs -- goto 可以作为名字,合法性之后处理 local RESERVED = { ['and'] = true, ['continue'] = true, ['break'] = true, ['do'] ...
-- Name: drawing.lua currentColor = { r = 255, g = 255, b = 255, a = 255 } function setColorGL(r,g,b,a) currentColor = { r = r, g = g, b = b, a = a } colorGL(currentColor.r, currentColor.g, currentColor.b, currentColor.a) end function shade(f) currentColor.r = currentColor.r * f currentColor.g = currentColor...
-- network-server 数据处理部分 local DataConverter = require("./dataConverter.lua") local utiles = require("../../utiles/utiles.lua") local logger = require("../log.lua") function process(data) if data == nil then logger.error("data is nil") return nil end logger.info("server data handler start...") if data....
-- ############################### -- ## Project: MTA:Speedrace ## -- ## Name: World Class ## -- ## Author: Noneatme ## -- ## Version: 1.0 ## -- ## License: See top Folder ## -- ############################### -- FUNCTIONS / METHODS -- local cFunc = {}; -- Local Functions local cSetting = {}; -- Local Settin...
cflags{ '-D HAVE_CONFIG_H', -- it is important that the arch-specific directory is searched first '-I $srcdir/linux/x86_64', '-I $srcdir/linux', '-I $srcdir', '-I $outdir', '-isystem $builddir/pkg/linux-headers/include', } build('cat', '$outdir/config.h', { '$builddir/probe/HAVE___BUILTIN_POPCOUNT', '$dir/con...
local _M = { _VERSION = '0.1' } local function _keys(tbl) local ks = {} for k, _ in pairs(tbl) do table.insert( ks, k ) end return ks end local function _repr_opt(opt) opt = opt or {} opt.indent = opt.indent or '' opt.sep = opt.sep or '' return opt end local function _normk...
local ContextFuncCompleted local oo = require "loop.base" local Component = oo.class() function Component:context(context) assert(context.__component == self, "invalid component implementation") assert(context.__factory == self.factory, "invalid factory") for _, context in ipairs{ context, context.__reference } do ...
local function round(num, n) local mult = 10^(n or 0) return math.floor(num * mult + 0.5) / mult end commandArray = {} if (devicechanged['Temperature balcon']) then if ((tonumber(otherdevices_temperature['Temperature balcon']) > tonumber(otherdevices_temperature['Temperature Salon'])) and uservariables['notifs...
function Test() local originalFiles = { "file1.tga", "file2.tga", "Jamfile.jam", } local originalDirs = { } ospath.remove('cache/') ospath.remove('.depcache') RunJam{ 'clean' } TestDirectories(originalDirs) TestFiles(originalFiles) local pattern = [[ *** found 5 target(s)... *** updating 2 target(s...
local ig = require "imgui.love" local instance love.load = function(args) instance = ig.love_load{use_imgui_docking = true, use_imgui_viewport = false} end love.textinput = function(text) instance.textinput(text) end love.keypressed = function(key,scancode,isrepeat) instance.update_key(scancode, true) e...
local metadata = { plugin = { format = 'jar', -- Valid values are 'jar' manifest = { permissions = {}, usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION", "android.permission.ACCESS_NETWORK_STATE", ...
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild -- -- This file is compatible with Lua 5.3 local class = require("class") require("kaitaistruct") local stringstream = require("string_stream") local utils = require("utils") TypeTernary = class.class(KaitaiStruct) fu...
local function mounts(path) local tbl = {} for str in io.lines(path) do table.insert(tbl, str) end return tbl end return { decoder = mounts; }
-- Importing modules local Explain = require "elasticsearch.endpoints.Explain" local parser = require "elasticsearch.parser" local MockTransport = require "lib.MockTransport" local getmetatable = getmetatable -- Setting up environment local _ENV = lunit.TEST_CASE "tests.endpoints.ExplainTest" -- Declaring local varia...
OpenNefia.Entities.Elona = { ItemComputer = { MetaData = { Name = "コンピューター" } } }
local Input = {} local Bridge = require "util.bridge" local Memory = require "util.memory" local Utils = require "util.utils" local lastSend local currentButton, remainingFrames, setForFrame local debug local bCancel = true local function bridgeButton(btn) if btn ~= lastSend then lastSend = btn Bridge.input(btn...
list.Set( "XDBot_Personas", "_default_persona", XDBOT_GLOBALS.DefaulPersona ) list.Set( "XDBot_Personas", "laszlo", { Name = "Laszlo", Model = "male05" --, -- Playercolor = "0.24 0.34 0.41", -- Weaponcolor = "0.30 1.80 2.10", -- Bodygroups = "0", -- Skin = "0" } ) list.Set( "XDBot_Personas", "emptytable", { } )...
Tunnel = module("vrp","lib/Tunnel") Proxy = module("vrp","lib/Proxy") Tools = module("vrp","lib/Tools") vRP = Proxy.getInterface("vRP") vRPclient = Tunnel.getInterface("vRP") vrpServer = {} Tunnel.bindInterface("pd-inventory",vrpServer) idgens = Tools.newIDGenerator() vCLIENT = Tunnel.getInterface("pd-inventory") vGAR...
-- -- Created by IntelliJ IDEA. -- User: Kunkka Huang -- Date: 17/1/18 -- Time: 下午6:08 -- To change this template use File | Settings | File Templates. -- local panel = {} function panel.create(parent) local winSize = cc.Director:getInstance():getWinSize() local self = cc.LayerColor:create(gk.theme.config.bac...
local HeroChangedVelocity = class("HeroChangedVelocity") function HeroChangedVelocity:initialize(vx, vy) self.vx = vx self.vy = vy end return HeroChangedVelocity
local Piece = require 'tetris.components.piece' local Ruleset = require 'tetris.rulesets.ti_srs' local SRS = Ruleset:extend() SRS.name = "ACE-SRS" SRS.hash = "ACE Standard" SRS.MANIPULATIONS_MAX = 128 function SRS:onPieceRotate(piece, grid) piece.lock_delay = 0 -- rotate reset if piece:isDropBlocked(grid) then ...
local exports = {} exports.parseType = function(s) -- s: String -- parse s type --[[ { list: boolean dict: boolean primitive: boolean # one and only one of these three conditionals must be true values?: table # if dict keys?: table # if list ...
local M = {} package.loaded["utils.hooks"] = nil ---Join path segments that were passed as input ---@return string function _G.join_paths(...) local uv = vim.loop local path_sep = "/" local result = table.concat({ ... }, path_sep) return result end ---Get the full path to runtime dir ---@return string functi...
print("starting up...") print("tmr.now()",tmr.now()) print("tmr.time()",tmr.time()) print("tmr.uptime()",tmr.uptime()) local tm = rtctime.epoch2cal(rtctime.get()) local tz = 'UTC' print("rtctime",string.format("%04d/%02d/%02d %02d:%02d:%02d %s",tm["year"],tm["mon"],tm["day"],tm["hour"],tm["min"],tm["sec"],tz)) print(...
--[[ Окна ]] -- ORGMOD.windows = {}; ORGMOD.windows.OrganizationAdmin = include( "orgmod/cl/menu/clan_admin.lua" ); ORGMOD.windows.OrganizationControl = include( "orgmod/cl/menu/organization_control/main_menu.lua" ); --[[ Консольные команды ]] -- -- Открыть меню управления кланом concommand.Add( "open_clan_menu", ...
require 'model_utils.MaskTime' require 'model_utils.MaskFuture' require 'model_utils.ReplaceZero' local encoderNet = {} function encoderNet.model(params) local dropout = params.dropout or 0.5 -- Use `nngraph` nn.FastLSTM.usenngraph = true; -- encoder network local enc = nn.Sequential(); -- ...
function Item.getType(self) return ItemType(self:getId()) end function Item.isContainer(self) return false end function Item.isCreature(self) return false end function Item.isMonster(self) return false end function Item.isNpc(self) return false end function Item.isPlayer(self) return false end function Item...
local Aye = Aye; if not Aye.load then return end; Aye.default.global.AutoReadyCheck = { enable = true, -- Enable Auto Ready Check AFKdisable = true, -- Disable Auto Ready Check if AFK DNDdisable = false, -- Disable Auto Ready Check if DND DeadDisable = true, -- Disable Auto Ready Check if Dead or ...
mt = {} function mt:a(arg) print('A from metatable') print(self) print(arg) end mt.__index = mt; mt.__gc = function() print('Death') end do local obj = {} setmetatable(obj, mt) obj:a(123) end collectgarbage('collect') print('Program end')
-- Description: GUI styles Textbox local default_gui = data.raw["gui-style"].default ------------------------------------------------------------------------------- -- Style slider -- -- @type Slider -- ------------------------------------------------------------------------------- -- Style of default -- -- @field [...
----------------------------------------------------------------------------------------- -- -- main.lua -- ----------------------------------------------------------------------------------------- -- Your code here physics = require("physics") physics.start() local ground = display.newRect(display.contentCenterX, 4...
local util = require 'lspconfig.util' local language_id_mapping = { bib = 'bibtex', plaintex = 'tex', rnoweb = 'sweave', rst = 'restructuredtext', tex = 'latex', xhtml = 'xhtml', } return { default_config = { cmd = { 'ltex-ls' }, filetypes = { 'bib', 'markdown', 'org', 'plaintex', 'rst', 'rnoweb...
local rules = require "scripts.rules" local animations = require "character.animations" local Character = require "character.character" local ServantGirl = Character:new() function ServantGirl:new(o, control) o = o or Character:new(o, control) setmetatable(o, self) self.__index = self return o end function ...
-- Inofficial NEO Extension for MoneyMoney -- Fetches NEO quantity for address via neoscan.io -- Fetches NEO price in EUR via CoinGecko -- Returns cryptoassets as securities -- -- Provide multiple NEO addresses comma-seperated -- MIT License -- Copyright (c) 2020 Jacubeit, aaronk6 -- Permission is hereby granted, fr...
teraud_loyalist = Creature:new { objectName = "@mob/creature_names:warren_teraud_loyalist", randomNameType = NAME_GENERIC, randomNameTag = true, socialGroup = "warren_teraud", faction = "", level = 34, chanceHit = 0.41, damageMin = 315, damageMax = 340, baseXp = 3460, baseHAM = 8700, baseHAMmax = 10700, ar...
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local t_insert, t_sort, t_remove, t_concat = table.insert, table.sort, table.remove, table.concat; lo...
vim.cmd("autocmd BufEnter * lua require'completion'.on_attach()")
TOOL.Category = "Metro" TOOL.Name = "Train Feature Editor" TOOL.Command = nil TOOL.ConfigName = "" if CLIENT then language.Add("Tool.switch.name", "Train Feature Editor") language.Add("Tool.switch.desc", "Change features of the target train") language.Add("Tool.switch.0", "Primary: Apply selected...
msgpack = require('msgpack') env = require('test_run') test_run = env.new() s = box.schema.space.create('select', { temporary = true }) index1 = s:create_index('primary', { type = 'tree' }) index2 = s:create_index('second', { type = 'tree', unique = true, parts = {2, 'unsigned', 1, 'unsigned'}}) for i = 1, 20 do s:in...
--[[---------------------------------------------------------------------------- Copyright (c) 2010, Erik Raetz All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Red...
function fibt(n0, n1, c) if c == 0 then return n0 elseif c == 1 then return n1 end return fibt(n1, n0+n1, c-1) end function fib(n) fibt(0, 1, n) end fib(1000000)
-- Local file storage backend for lua-tus-server -- -- Copyright (C) by Martin Matuska (mmatuska) local cjson = require "cjson" local os = require "os" local _M = {} local mt = { __index = _M } local config = { storage_path="/tmp", lock_zone=ngx.shared.tuslock } -- Check if a file is readable local function file...
theme_park_loot_jabba_valarian_thug = { description = "", minimumLevel = 0, maximumLevel = 0, lootItems = { {itemTemplate = "themepark_loot_code_cylinder", weight = 10000000} } } addLootGroupTemplate("theme_park_loot_jabba_valarian_thug", theme_park_loot_jabba_valarian_thug)
-- RUNNER: guarda a imagem, posicao inicial e dimensoes local img = canvas:new('runner.png') local dx, dy = img:attrSize() local runner = { img=img, frame=0, x=50-dx/2, y=10, dx=dx, dy=dy } -- Funcao de redesenho: -- chamada a cada ciclo de animacao local dx, dy = canvas:attrSize() local INI, END = 50, dx-58 function...
-- convert selected tile to a {tabbed,hsplit,vsplit,stacked,floating} container layout.{tabbed,hsplit,vsplit,stacked,floating}
#!src/lua -- LLL - Lua Low Level -- September, 2015 -- Author: Gabriel de Quadros Ligneul -- Copyright Notice for LLL: see lllcore.h -- -- test_optest.lua local executetests = require 'tests/executetests' local generateargs = require 'tests/generateargs' do local prefix = 'function(a) if ' local suffix = ' t...
if not zoo then require 'util.initenv' end local adam = torch.class('zoo.AdamOptimizer') function adam:__init(args, dw) self.beta1 = args.beta1 self.beta2 = args.beta2 self.gamma = args.gamma self.deltas = dw:clone():fill(0) self.tmp = dw:clone():fill(0) self.g = dw:clone():fill(0) ...
local ffi = require 'ffi' ffi.cdef [[ typedef enum CONDITION_OPERATION { COP_IMPLICIT = 0, COP_EQUAL = 1, COP_NOTEQUAL = 2, COP_LESSTHAN = 3, COP_GREATERTHAN = 4, COP_LESSTHANOREQUAL = 5, COP_GREATERTHANOREQUAL = 6, COP_VALUE_...
-- Scenes: scene template local scenes = require "scenes" local scene = {} -- set a more friendly name, or required filename is used -- can be overwritten on new() with name = "instanceName" scene.name = "modal" -- variables local to scene local image function scene:create(event) local options = event.options or ...
local spy = require "luassert.spy" local match = require "luassert.match" local mock = require "luassert.mock" local installer = require "nvim-lsp-installer.core.installer" local Optional = require "nvim-lsp-installer.core.optional" local gem = require "nvim-lsp-installer.core.managers.gem" local Result = require "nvim...
-- _.findLastIndex.lua -- -- This method is like [_.findIndex](#_.findIndex) except that it iterates over -- elements of collection from right to left. -- @usage _.print(_.findLastIndex({{a = 1}, {a = 2}, {a = 3}, {a = 2}, {a = 3}}, function(v) -- return v.a == 3 -- end)) -- --> 5 -- -- @param array The array to ...
eventNewPlayer = function(player) if player and isExploiting[player] then chatMessage("<r>Error.", player) showTextArea(54215, '', player, -5, -10, 850, 500, 1, 1, 1, true) return end ui.setMapName('Mycity') setPlayerScore(player, 0) showTextArea(8500, '', player, 805, -200, 15000, 1000, 0x6a7595, 0x6a759...
local _, Engine = ... local Handler = Engine:GetHandler("UnitFrame") -- WoW API local GetShapeshiftForm = GetShapeshiftForm local UnitAura = UnitAura local UnitExists = UnitExists local UnitGUID = UnitGUID local UnitIsConnected = UnitIsConnected local UnitIsVisible = UnitIsVisible local UnitSex = UnitSex ...
-- Generated by CSharp.lua Compiler local System = System System.namespace("Slipe.Shared.Peds", function (namespace) -- <summary> -- Represents controls settable by analog control state -- </summary> namespace.enum("AnalogControl", function () return { fire = 0, aim_weapon = 1, next_weapon...
local control0 = scene:getObjects("control0_ph")[1]:findPlaceholderComponent(); local control1 = scene:getObjects("control1_ph")[1]:findPlaceholderComponent(); local function enforcerSpawn(other, name) local objs = scene:getObjects(name); for _, obj in pairs(objs) do local e = factory:createEnforcer1()...
---@class EnumMap : java.util.EnumMap ---@field private keyType Class|Unknown ---@field private keyUniverse Enum[] ---@field private vals Object[] ---@field private size int ---@field private NULL Object ---@field private entrySet Set|Unknown ---@field private serialVersionUID long EnumMap = {} ---@public ---@param ar...
local PI = 3.141592653589793 local SOLAR_MASS = 4 * PI * PI local DAYS_PER_YEAR = 365.24 sun = body() sun.x= 0.0 sun.y= 0.0 sun.z= 0.0 sun.vx= 0.0 sun.vy= 0.0 sun.vz= 0.0 sun.mass= SOLAR_MASS jupiter = body() jupiter.x= 4.84143144246472090e+00 jupiter.y= -1.16032004402742839e+00 jupiter.z= -1.03622044471123109e-01 ju...
---@meta resty_sha256={} function resty_sha256.final(self) end function resty_sha256.new(self) end function resty_sha256.reset(self) end resty_sha256._VERSION="0.11" function resty_sha256.update(self, s) end return resty_sha256
Macro { area="Common"; key="CtrlR"; description="Use hotkey <Ctrl-R> to perform XLat function."; flags=""; action = function() Keys('xlat') end; }
------------------------------------------------------ -- options.lua -- -- ------------------------------------------------------ return function (vararg) ------------------------------------------------------ -- options {} -- -- Define a table of options using the following -- syntax rules: -- -- name = { s...
object_mobile_smuggler_fence_seth = object_mobile_shared_smuggler_fence_seth:new { } ObjectTemplates:addTemplate(object_mobile_smuggler_fence_seth, "object/mobile/smuggler_fence_seth.iff")
local names = {} EMVU = {} EMVU.Configurations = {} EMVU.Configurations.Supported = {} function EMVU:OverwriteIndex(n, t) table.insert(names, n) end Photon = {} Photon.VehicleLibrary = {} function Photon:OverwriteIndex() end list = {} function list.Set() end hook = {} function hook.Add() end concommand = {} functi...
-------------------------------------------------------------------------- -- category utilities -- -------------------------------------------------------------------------- function checkIfExists(table, name) for k,v in pairs(table) do if (v.name == name...
-- Copyright (c) 2017 Andrejs Mivreņiks -- -- 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, publ...
--[[ Validate a login attempt to a mailbox. ]] uuid = storage("channel", "uuid") -- Mailbox info. mailbox = storage("login_settings", "mailbox_number") password = storage("mailbox_settings", "password") -- The user entered password. entered_password = storage("get_digits", "password") -- Have we set up this mailbo...
local busted = require "busted" local dir = require "pl.dir" local etlua = require "etlua" local file = require "pl.file" local grp = require "posix.grp" local handler = require 'busted.outputHandlers.base'() local log_tail = require "spec.support.log_tail" local path = require "pl.path" local process = require "proces...
local objects = { -- LauraV createObject(8532,2097.3095703125,467.5703125,0.57099723815918,0,0,0,32), createObject(14412,2111.009765625,486.0947265625,5.9121675491333,0,0,0,32), createObject(7022,2072.052734375,473.7294921875,-0.98354810476303,0,0,179.98901367188,32), createObject(10615,2109.669921875,414.6308593...
require("games/common2/module/layerShowTypeData"); local headBaseLayout = require("view/kScreen_1280_800/games/common2/headBaseLayout"); require("games/common2/module/invite2/data/inviteConfig"); local viewBase = Import("games/common2/module/viewBase"); HeadViewBase = class(viewBase,false); local _getNickMax...
------------------------------------------------------------------------------------------- -- -- raylib [textures] example - Texture loading and drawing a part defined by a rectangle -- -- This example has been created using raylib 1.6 (www.raylib.com) -- raylib is licensed under an unmodified zlib/libpng license (...