content
stringlengths
5
1.05M
local _, nChat = ... local cfg = nChat.Config -- Mouseover Itemlinks in the chat -- Code provided by the Tukui crew (Tukui.org) if not cfg.enableHyperlinkTooltip then return end local orig1, orig2 = {}, {} local GameTooltip = GameTooltip local linktypes = { item = true, enchant = true, spel...
--[[ *********************************************************** TestNILDump.lua This particular file has been released in the public domain and is therefore free of any restriction. You are allowed to credit me as the original author, but this is not required. This file was setup/modified in: If the law of your count...
require("screenplays.record_keepers.record_keeper") jabba_park = RecordKeeper:new { keeperName ="jabba_park", quests = {theme_park_jabba="ThemeParkJabba"}, faction = 0 } jabba_park_record_keeper_convo_handler = record_keeper_conv_handler:new { keeper = jabba_park }
--[[ 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...
----更新说明---- --2016-10-30:增加lcd1602的第二行,显示为日期和时间。其中日期和时间通过http.get()调用api得到。 -- 更新的频率与dht更新频率一样,注册到tmr0,30秒更新一次 -- todo:固件中加入rtctime,从sntp中获取到时间,set到rtctime中 --create STATIONAP Mode--设置初始化station ap模式-- function staAp() cid = string.sub(node.chipid(),4,8) local YOUR_SSID = "Node_"..node.chipid() ...
--[=[ @Author: Gavin "Mullets" Rosenthal @Desc: Internal methods for DataStores ]=] local Methods = {} Methods._Occupants = {} Methods._MaxRetries = 5 local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Loader")) local Manager = require("Manager") local DataStoreService = game:GetService("Dat...
GhostBan = GhostBan or {} hook.Add("OnPlayerChat", "GhostBan_OpenSettings", function(ply, text) if string.Trim(text) == "/ghostban" then if ply ~= LocalPlayer() || !ply:IsAdmin() then return true end local PANEL = {} PANEL.window = vgui.Create("DFrame") PANEL.window:SetSize(440,360) PANEL.window:Center...
QBCore = nil TriggerEvent('QBCore:GetObject', function(obj) QBCore = obj end) AddEventHandler('playerConnecting', function(name, setCallback, defer) defer.defer() local banned = false local src = source defer.update(L("CHECKING_BANLIST")) local bans = exports.ghmattimysql:executeSync("SELECT ide...
--------------------------------------------------------------------------------------------- -- @ CloneTrooper1019, 2019 --------------------------------------------------------------------------------------------- -- [PNG Library] -- -- A module for opening PNG files into a readable bitmap. -- This implementation w...
--------------------------------------------------------------------------------------------------- -- --filename: game.entities.ctrl.AnimationHeroCtrl --date:2019/9/30 18:00:11 --author: --desc: -- --------------------------------------------------------------------------------------------------- local AnimationCtrlB...
hook.Add( "OnPlayerChat", "ginterpolgithub", function( ply, strText, bTeam, bDead ) if ( ply != LocalPlayer() ) then return end strText = string.lower( strText ) if ( strText == "!ginterpol" ) then gui.OpenURL( "https://github.com/gInterpol/" ) return true end end ) if gInterpol.chatyazisi then timer....
include "map_builder.lua" include "trajectory_builder.lua" -- https://github.com/cartographer-project/cartographer/blob/master/configuration_files/trajectory_builder_2d.lua options = { map_builder = MAP_BUILDER, trajectory_builder = TRAJECTORY_BUILDER, map_frame = "map", tracking_frame = "imu_link", published...
local M = {} M.ctrl_pressed = false M.alt_pressed = false M.shift_pressed = false M.mouse_wpos = vmath.vector3() return M
local t = Def.ActorFrame { Def.ActorFrame { FOV=90; LoadActor( "CJ108" )..{ InitCommand=function(self) self:x(SCREEN_CENTER_X):y(SCREEN_CENTER_Y):scale_or_crop_background():diffusealpha(0.325) end; }; LoadActor( "stream" )..{ InitCommand=function(self) self:z(240):x(SCREEN_CENTER_X):...
--[[-------------------------------------------------------------------------- -- -- File: UALiquidator.State.RoundLoop.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: Novmber 18, 2010 -- ----------------------...
require("pixel") -- Simple Space Invaders game -- By Alicia Levy function GLUP.init_graphics() GLUP.SetRegionOfInterest(1,1,1,11,11,1) end oldtime=GLUP.ElapsedTime() x=5 y=1 missile=false missileX=x missileY=y+1 alien=true alienTime=0 alienX=5 alienY=10 extra=true extraTime=0 extraX=5 extraY=9 function an...
-- Note renderer -- Given an NMF note, transform it into a Retro note event function note(rate, t, dur, pitch, art, sect, layer) -- Just send to layer 1 instrument 1 if not grace note if dur > 0 then retro_event(t, dur, pitch, 1, 1) end end
HERO_ASSIST_RANGE = 1300 MAP_LENGTH = 8192 MAP_BORDER = 512 LEVELS_WITHOUT_ABILITY_POINTS = { [17] = true, [19] = true, [21] = true, [22] = true, [23] = true, [24] = true, -- also all of the levels above 25 } -- TODO: These enums appear to be outdated DOTA_ITEM_SLOT_10 = DOTA_ITEM_SLOT_9 + 1 DOTA_STASH_SLOT_1 ...
-- This file is part of SA MoonLoader package. -- Licensed under the MIT License. -- Copyright (c) 2016, BlastHack Team <blast.hk> return { --- -- default.ide --- AIRTRAIN_VLO = 320, GUN_DILDO1 = 321, GUN_DILDO2 = 322, GUN_VIBE1 = 323, GUN_VIBE2 = 324, FLOWERA = 325, GUN_CANE = 326, GUN_BOXWEE = 327, GUN_BOXBIG = 328...
--[[ Name: sv_manifest.lua For: santosrp By: santosrp ]]-- AddCSLuaFile "santosrp/gamemode/cl_init.lua" AddCSLuaFile "santosrp/gamemode/cl_manifest.lua" AddCSLuaFile "santosrp/gamemode/cl_networking.lua" AddCSLuaFile "santosrp/gamemode/cl_player.lua" AddCSLuaFile "santosrp/gamemode/cl_player_damage.lua" AddCSLuaFil...
local function hasPointerArg(v) for _, v in ipairs(v.arguments) do if v.pointer or v.type.name == 'Any' then return true end end return false end for _, v in pairs(_natives) do if matchApiSet(v) and hasPointerArg(v) then local avs = '' local i = 0 for _, v in ipairs(v.argumen...
require "test_javascript" require "test_applescript"
vicious = require("vicious") -- Standard awesome library -- {{{ local gears = require("gears") local awful = require("awful") awful.rules = require("awful.rules") require("awful.autofocus") --timer = require("timer") -- Widget and layout library local wibox = require("wibox")...
local path = (...) local sub1 = path:match("(.-)%.[^%.]+$") local sub2 = sub1:match("(.-)%.[^%.]+$") local sub3 = sub2:match("(.-)%.[^%.]+$") local sub4 = sub3:match("(.-)%.[^%.]+$") local EditableText = require (sub2..".component.EditableText") local guilt = require (sub3) local pleasure...
nadmin.null_rank = { title = "Unranked", id = "DEFAULT", icon = "no_texture", immunity = 0, access = nadmin.access.default, autoPromote = {when = 0, rank = "", enabled = false}, loadout = {}, color = Color(255, 255, 255), restrictions = {}, privileges = {} } functi...
--- @class ApplicationMenuItemState --- @field enabled boolean --- @field ticked boolean
----------------------------------- -- Area: Bastok Markets -- NPC: Raghd -- Standard Merchant NPC -- !pos -149.200 -4.819 -74.939 235 ----------------------------------- local ID = require("scripts/zones/Bastok_Markets/IDs") require("scripts/globals/shop") function onTrigger(player,npc) local stock = { ...
local CompileFile = CompileFile local CompileString = CompileString local debug = debug local error = error local file = file local hook = hook local include = include local isfunction = isfunction local math = math local os = os local pcall = pcall local string = string local table = table local tonumber = tonumber lo...
--- The mesh library allows you to create meshes. A mesh is a set of vertices that define a 3D shape, for constant meshes you should use the IMesh object instead. _G.mesh = {} --- Pushes the new vertex data onto the render stack. function mesh.AdvanceVertex() end --- Starts a new dynamic mesh. If an IMesh is passe...
-- Useful for example, when creating a deterministic seed for a given chunk coordinate. -- (x,y,z)->(x combine 1)+((x+y+1) combine 2)+((x+y+z+2) combine 3). -- See https://math.stackexchange.com/questions/1176184/how-to-find-unique-numbers-from-3-numbers -- https://math.stackexchange.com/questions/312879/how-to-define-...
-- Copyright (c) 2016 Boris Nagaev -- -- 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 or agreed to in...
local module = { G = 6.67408 * 10^-20, Rearth = 6.37*10^6 , M = 5.98*10^24 } return module
local rob = false local robbers = {} ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) RegisterServerEvent('esx_holdup:toofar') AddEventHandler('esx_holdup:toofar', function(robb) local _source = source local xPlayers = ESX.GetPlayers() rob = false for i=1, #xPlayers, 1 do l...
slot0 = class("CommanderIndexPage", import("...base.BaseSubView")) slot1 = { sort = { { i18n("word_achieved_item"), "id" }, { i18n("word_level"), "Level" }, { i18n("word_rarity"), "Rarity" } }, nation = { Nation.US, Nation.EN, Nation.JP, Nation.DE, Nation.CN, Nation.SN, Na...
AuctionatorListRenameButtonMixin = {} local ListRenamed = Auctionator.ShoppingLists.Events.ListRenamed local ListSelected = Auctionator.ShoppingLists.Events.ListSelected local ListCreated = Auctionator.ShoppingLists.Events.ListCreated local RenameDialogOnAccept = Auctionator.ShoppingLists.Events.RenameDialogOnAccept ...
-- Made by Divran 06/01/2012 WireToolSetup.setCategory( "Chips, Gates" ) WireToolSetup.open( "gates", "Gates", "gmod_wire_gate", nil, "Gates" ) WireToolSetup.BaseLang() WireToolSetup.SetupMax(100) if SERVER then ModelPlug_Register("gate") end if CLIENT then ---------------------------------------------------------...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' 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...
return { { type = "Sfx", name = "Pojawia_sie_FZB", id = "SFX_1" }, { type = "Sfx", name = "Pogłos", id = "SFX_2" }, { type = "Sfx", name = "Rozmywanie", id = "SFX_3" }, { type = "Sfx", name = "Pomruk silnika Szatańskiej Fury", id = "SFX_4" }, { type = "Sfx", name = "Odgłosy uderzania ręką w dach sam...
local wibox = require("wibox") local awful = require("awful") local icon = os.getenv("HOME") .. "/.config/awesome/widget/temp/icon.svg" local colorize = require("utils.function").colorize local beautiful = require("beautiful") local markup = require("utils.function").markup local M = {} -- Temperature M.icon = wibox...
--[[ █▀▀█ █▀▀█ █▀▀█ ░░▀ █▀▀ █▀▀ ▀▀█▀▀ ▀▀█ █▀▀ █▀▀█ █▀▀█ █░░█ █▄▄▀ █░░█ ░░█ █▀▀ █░░ ░░█░░ ▄▀░ █▀▀ █▄▄▀ █░░█ █▀▀▀ ▀░▀▀ ▀▀▀▀ █▄█ ▀▀▀ ▀▀▀ ░░▀░░ ▀▀▀ ▀▀▀ ▀░▀▀ ▀▀▀▀ SCRIPT CREADO POR ByBlackDeath DISCORD DEl CREADOR: ByBlackDeath#5528 ]]-- ---------------------------------- -------------FUNCIONES------------ ---------...
return "Hello world!"
AddCSLuaFile() ModernScoreboard = { VGUI = {} } local files = { sv = { "main" }, cl = { "main", "vgui" } } if SERVER then for _, f in pairs(files.sv) do include("modern_scoreboard/" .. f .. ".lua") end for _, f in pairs(files.cl) do AddCSLuaFile("modern_scoreboard/" .. f .. ".lua") end for _, ...
-- Variables local internet = component.internet local event = require("event") local filesystem = require("filesystem") local shell = require("shell") local run = true local repoURL = "https://raw.githubusercontent.com/zenith391/Fuchas/master/" -- AdorableCatgirl's uncpio local function ext(stream) l...
ENT.Base = "base_anim" ENT.Type = "anim" ENT.PrintName = "btn" ENT.Spawnable = false ENT.AdminSpawnable = false ENT.Category = ""
-- -- a simple command line arguments parser -- local Table = require('table') -- Extract options and arguments from -- an explicit list, or `process.argv`. -- Strings of form '--OPTION=VALUE' are parsed to { OPTION = 'VALUE' }. -- Strings of form '--OPTION' are parsed to { OPTION = true }. -- Multiple '--OPTION=VALU...
----------------------------------- -- -- Zone: Den_of_Rancor (160) -- ----------------------------------- local ID = require("scripts/zones/Den_of_Rancor/IDs") require("scripts/globals/conquest") require("scripts/globals/treasure") ----------------------------------- function onInitialize(zone) tpz.treasure.initZ...
extraTextures = { "monster_001_pooter.png", "tears.png" } audioClips = {"insect swarm.wav", "tear block.wav", "tear fire 5.wav"} difficulty = 0.5 --Init all the animation rects fly = { {x = 0 , y = 96-0, w = 32, h = 32}, {x = 32, y = 96-0, w = 32, h = 32}, } attack = { { x = 64, y = 96-0 , w = 32, h = 32 }, { x...
-- Copyright (c) 2018, Souche Inc. local cjson = require "cjson.safe" local fs = require "fs" local Object = require "utility.object" local function cluster() local is_worker = pcall(function() ngx.timer.at(0, function() end) end) if is_worker then return "worker" else retur...
------------------------------- LAB TILE ------------------------------- -- Item -- local ltI = {} ltI.type = "item" ltI.name = "LabTile" ltI.icon = "__Mobile_Factory_Graphics__/graphics/icons/labTileI.png" ltI.icon_size = 128 ltI.subgroup = "Tiles" ltI.order = "a" ltI.stack_size = 1000 ltI.place_as_tile = { ...
object_tangible_item_som_lava_beetle_nest_two = object_tangible_item_som_shared_lava_beetle_nest_two:new { } ObjectTemplates:addTemplate(object_tangible_item_som_lava_beetle_nest_two, "object/tangible/item/som/lava_beetle_nest_two.iff")
-- hooks.lua - Hooks -- This file is under copyright, and is bound to the agreement stated in the EULA. -- Any 3rd party content has been used as either public domain or with permission. -- © Copyright 2016-2017 Aritz Beobide-Cardinal All rights reserved. ARCPhone.Loaded = false hook.Add("Think","ARCPhone Th...
require('settings') require('plugins') require('keybindings') vim.cmd[[colorscheme gruvbox-flat]]
--Particle Trace v 0.9b --By Teta_Bonita function ParticleTrace(partrace) if ( SERVER ) then --these paramaters are essential. If we don't have them, we can't do the trace. if not partrace.func or not partrace.startpos or not (partrace.ang or partrace.velocity) then return end --these param...
-- @file godot_globals.lua Global Godot functionality and enum values -- This file is part of Godot Lua PluginScript: https://github.com/gilzoide/godot-lua-pluginscript -- -- Copyright (C) 2021 Gil Barbosa Reis. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and...
require('mono.metadata.appdomain') require('mono.metadata.mono-gc') require('mono.metadata.object') ffi.cdef [[ /** * This value will be incremented whenever breaking changes to the profiler API * are made. This macro is intended for use in profiler modules that wish to * support older versions of the profiler AP...
----------------------------------- -- Area: Bostaunieux Oubliette (167) -- Mob: Bloodsucker -- Note: This script will be loaded for both the NM and non-NM mobs of this name. -- !pos -21.776 16.983 -231.477 167 ----------------------------------- local ID = require("scripts/zones/Bostaunieux_Oubliette/IDs") require("s...
--This file should have all functions that are in the public api and either set --or read the state of this source. local vim = vim local utils = require("neo-tree.utils") local fs_scan = require("neo-tree.sources.filesystem.fs_scan") local fs_actions = require("neo-tree.sources.filesystem.fs_actions") local renderer ...
function love.load() -- Initialize Random number generator... don't ask. math.randomseed(os.time()) math.random() math.random() math.random() -- ...just don't. require "tiles" require "camera" require "player" require "time" require "UI" love.window.setMode(1280, 720) background = love.g...
local ItemEx = require("mod.ffhp.api.ItemEx") print(ItemEx.convert_item_ex_csv("mod/ceri_items/graphic/item/itemEx.csv", "mod/ceri_items", "ceri_items")) print(ItemEx.convert_item_ex_csv("mod/ffhp_matome/graphic/item/itemEx.csv", "mod/ffhp_matome", "ffhp_matome"))
return { { id = 'class_stalker', body = { 'body_human' }, stats = { ap = 40, hp = 8, viewRange = 12, shootingSkill = { min = 40, max = 70 }, throwingSkill = { min = 50, max = 80 } } }, { i...
-- input format {original, changed} function transmitter_constructer(opt) if opt.transmissionNoiseType == "identity" then local transmitter = nn.SelectTable(2) return transmitter, "identity" elseif opt.transmissionNoiseType == "dropout" then local diff = nn.Sequential() diff:add(nn.CSubTable()) diff:add(n...
--融合回収 function c185113840.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c185113840.target) e1:SetOperation(c185113840.activate) c:Register...
-- Copyright 2017-2022 Jason Tackaberry -- -- 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 or agr...
#!/usr/bin/env tarantool test = require("sqltester") test:plan(14) -- box.cfg{wal_mode='none'} table_count = 31 select_string_last = '' for _, term in ipairs({'UNION', 'UNION ALL', 'INTERSECT', 'EXCEPT'}) do select_string = '' test:do_test("Positive COMPOUND "..term, function() ...
local BasePlugin = require "kong.plugins.base_plugin" local http = require "resty.http" local json = require "cjson" local kong = kong local ExternalAuthHandler = BasePlugin:extend() function ExternalAuthHandler:new() ExternalAuthHandler.super.new(self, "external-auth") end function ExternalAuthHandler:access(con...
local vim = vim or {} local api = vim.api local lsp = vim.lsp local M = {} function M.signature_help(_, method, result) if not (result and result.signatures and result.signatures[1]) then return nil end local lines = lsp.util.convert_signature_help_to_markdown_lines(result) lines = lsp.util.trim_empty_lin...
Prat:AddModuleToLoad(function() local SMFHax = Prat:NewModule("SMFHax", "AceHook-3.0") SMFHax.fs_pool = {} local new, del do local wipe = wipe local cache = setmetatable({}, { __mode = 'k' }) function new() local t = next(cache) if t then ...
local Unity = require 'Unity' local MonoBehaviour = {balance = 0} function MonoBehaviour:new (children) children = children or {} setmetatable(children, self) self.__index = self Unity.add(children) return children end function MonoBehaviour:Start() end function MonoBehaviour:Update() end function ...
local copy_set = require 'src.sorting.copy_set' local function counting_sort(set) -- the next 3 loops could probably be combined local max = 0 for _, x in ipairs(set) do if x > max then max = x end end local count = {} for i = 1, max do count[i] = 0 end for _, x in ipairs(set) do count[x...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BceCyRegister_pb', package.seeall) local BCECYREGISTER = protobuf.Descriptor(); local BCECYREGISTER_USERNAME_FIELD = protobuf.FieldDescriptor(); local BCECYREGISTER_PASSWORD_FIELD = protobuf.FieldDescriptor(); BCECYREGISTER_USERNA...
local kernel = {} kernel.language = "glsl" kernel.category = "composite" kernel.name = "normalMapWith1DirLight" kernel.uniformData = { { name = "dirLightColor", default = { 1, 1, 1, 1 }, min = { 0, 0, 0, 0 }, max = { 1, 1, 1, 1 }, type="vec4", index = 0, -- u_UserData0 }, { name = "dirLightDirectio...
local Text = class('text') Text.static.ibmfont = love.graphics.newFont('assets/fonts/Px437_IBM_VGA8.ttf', 16) function Text.static.namecase(txt) local txt = txt or "" local ntxt = "" for word in txt:gmatch("(%a+)") do if #ntxt > 0 then ntxt = ntxt .. " " end ntxt = ntxt .. word:sub(1,1):upper() .. word:s...
--- -- This module contains basic string manipulation methods not included in the Lua standard library. -- local M = {} --- -- Check if string starts with a substring. -- -- @param text string to check -- -- @param start substring -- -- @return true if text start with mentioned substring -- function M.starts_with(text...
#!/usr/bin/env lua a = {} a.a = a print(a.a.a.a)
--Generated by SWGEmu Conversation Editor rk_record_keeper_jabbaConversationTemplate = ConvoTemplate:new { initialScreen = "init", templateType = "Lua", luaClassHandler = "jabba_park_record_keeper_convo_handler", screens = {} } record_keeper_init = ConvoScreen:new { id = "init", leftDialog = "", stopConversation...
-- test_math_matrix.lua local ffi = require("ffi"); local math_matrix = require("math_matrix"); local mat4 = math_matrix.mat4; local mat3 = math_matrix.mat3; local mat2 = math_matrix.mat2; local vec4 = math_matrix.vec4; local vec3 = math_matrix.vec3; local test_vec = function() local v0 = vec4(1,2,3,4); print("v0...
-- NODES minetest.register_node("seastone:seastone", { description = "Seastone", tiles = {"seastone_seastone.png"}, is_ground_content = true, groups = {cracky=3, stone=1}, drop = 'seacobble:seacobble', sounds = default.node_sound_stone_defaults(), }) minetest.register_node("seastone:seastone_cyan", { descript...
-- -- This class is used to test subclassing a class by passing in -- a path to the subclass. This prevents users from having to -- require, associate and then pass in the reference to the class. -- local Subclass = Class() function Subclass.new(self) function self.init() end function self.getVar() ...
--[[ makeMusic.lua Copyright (C) 2016 Kano Computing Ltd. License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPLv2 This is the dialogue you can have with Mr Pong in Overworld on the Beach. ]]-- return { type = "repeat", dialogues = { --- 1) Welcome dialogue - first speech-------------------------...
--[[ TheNexusAvenger Controls spawning and updating pets. --]] local SLOT_TO_PART_NAME = { PetCostumeHat = "Hat", PetCostumeCollar = "Collar", PetCostumeBack = "Cape", PetCostumeAnkle = "Anklet", } local ReplicatedStorage = game:GetService("ReplicatedStorage") local ReplicatedStorageProject = require(Replicat...
#!/usr/bin/lua local function unurl(x) return (x:gsub("%%(..)",function(x)return string.char(tonumber(x,16))end)) end local function unjs(x) return (x:gsub("\\u(....)",function(x)return string.char(tonumber(x,16))end)) end local function backtick(x) local f=io.popen(x) if f then local s=f:read"*a" f:close() r...
require "luaClass.init" _ENV=namespace "test" using_namespace "luaClass" using_namespace "container" class "LString" { public{ MEMBER._table(); MEMBER._args(); }; public{ FUNCTION.LString(function(self) self._table={} self._args=map() end); ...
function swap(array, index1, index2) array[index1], array[index2] = array[index2], array[index1] end function shuffle(array) math.randomseed(os.time()) math.random();math.random();math.random() local counter = #array while counter > 1 do local index = math.random(counter) swap(array...
local player = {} player.__index = player local playerfilter = function(item, other) if item.name == other.playername then return 'cross' elseif other.ground == true then return 'cross' elseif other.alive == false then return 'cross' else return 'touch' end end local jumpfilter = function(item, o...
Locales = { -- NUI Nui = { -- LeftNav leftNav = { actions = 'פעולות', savingAccountCont = 'חשבון חסכון', creditCardsCont = 'כרטיסי אשראי', cryptoCurrencyCont = "מטבעות דיגיטליים <sup class='text-danger'>HOT</sup>", statisticsCont = 'סטט...
local bit = require'bit' local base = 36 local tmin = 1 local tmax = 26 local skew = 38 local damp = 700 local initial_bias = 72 local initial_n = 0x80 local delimiter = 0x2D -- Bias adaptation function local adapt = function(delta, numpoints, firsttime) if(firsttime) then delta = math.floor(delta / damp) else ...
--[=====[ Fibonacci Implemntation in Lua https://github.com/allalgorithms/lua https://repl.it/@abranhe/Fibonacci-in-Lua --]=====] function fibonacci(number) if(number < 2) then return number else return fibonacci(number-1) + fibonacci(number-2) end end for i = 1,30,1 do print(i, "= ", fibonacci(i)...
--性能测试 --https://github.com/lulersoft/ME local testui2={} local this local gameObject local transform local material local colors={Color.red, Color.yellow, Color.blue, Color.white, Color.black, Color.cyan} function testui2.Start() this=testui2.this gameObject=testui2.gameObject transform=testui2.transform this...
local settings = {} local bool_settings = { ["spice-rack-longrange-turret"] = true, ["spice-rack-flamethrower-change"] = true, ["spice-rack-laser-turret-change"] = true, ["spice-rack-gun-turret-damage-change"] = true, --["spice-rack-gun-turret-health-change"] = true, ["spice-rack-landmine-chan...
object_draft_schematic_spices_spice_droid_lube_s01 = object_draft_schematic_spices_shared_spice_droid_lube_s01:new { } ObjectTemplates:addTemplate(object_draft_schematic_spices_spice_droid_lube_s01, "object/draft_schematic/spices/spice_droid_lube_s01.iff")
local has_telescope, telescope = pcall(require, "telescope") if not has_telescope then return end local nr2char = vim.fn.nr2char local finders = require "telescope.finders" local pickers = require "telescope.pickers" local config = require("telescope.config").values local entry_display = require "telescope.pickers....
object_tangible_storyteller_event_props_pt_event_fx_01 = object_tangible_storyteller_event_props_shared_pt_event_fx_01:new { } ObjectTemplates:addTemplate(object_tangible_storyteller_event_props_pt_event_fx_01, "object/tangible/storyteller/event_props/pt_event_fx_01.iff")
function tick(self, event) omgs.log_trace(event.id, event.tick, event.time) end function connected(self, event) omgs.log_info("Client connected, client_id=" .. event.client_id) end function received(self, event) omgs.log_debug("Data received, client_id=" .. event.client_id) local response = event.data...
-------------------------------------------------------------------------------- -- Login Server Settings ------------------------------------------------------- -------------------------------------------------------------------------------- server_id = "3cfa2c3f-b426-4508-a880-217944716c54" location = "AT" server_na...
package.path = package.path .. ";../?.lua" local ffi = require("ffi") local bit = require("bit") local bor, band = bit.bor, bit.band local libevdev = require("libevdev_ffi")(_G) local input = require("linux_input")(_G) local setup = require("test_setup")() local fd = open("/dev/input/event3", bor(O_RDONLY, O_NONBLOCK)...
local L = BigWigs:NewBossLocale("Utgarde Pinnacle Trash", "ptBR") if not L then return end if L then L.berserker = "Berserker Ymarjar" end
local M = {} local cmd = vim.cmd local g = vim.g local o = vim.o local fn = vim.fn local utils = require('solarized.utils') local colors cmd('hi clear') utils.default_settings() if fn.exists("syntax_on") then cmd('syntax reset') end g.colors_name = 'solarized' function M.load_syntax(colors) local syntax = {} s...
aclReload() function loginHandler(player,username,password,language) local account = getAccount(username,password) if account then setElementData(player,"language",language) triggerClientEvent(player,"loginSuccess",player) triggerClientEvent(player,"lowScreenWarn",player); logIn(player,account,password) tr...
local helpers = require('tests.helpers') local child = helpers.new_child_neovim() local eq = assert.are.same -- Helpers with child processes --stylua: ignore start local load_module = function(config) child.mini_load('bufremove', config) end local unload_module = function() child.mini_unload('bufremove') end local wi...
return {'gajes','gajadhar'}