content
stringlengths
5
1.05M
-- Create & activate context local tgl = require("tgl") local ctx = tgl() ctx:activate() -- Create FBO as drawing target local fbo = ctx.createfbo(_VIDEO.width, _VIDEO.height, 8) -- Create texture for FBO blitting local tex = ctx.createtexture(_VIDEO.width, _VIDEO.height, "rgba") -- Create shaders program local prog...
print2(getMouseCursorPos()) -114.68840026855 -0.14911715686321 -214.83979797363 print2(map) print2(getFunction("map")) print2(inspect(map)) nil clearError() function map(f,l) for i=1,#l,1 do l[i] = f(l[i]) end end function f1Pressed() local pos = {getMouseCursorPos()} map(math.floor, pos) pos[2] = pos...
local setmeta = assert(setmetatable) local Stator = meta {} -- local _weakstate = setmeta({}, {__mode = 'v'}) local function call(stator, _weakstate) local _weakstate = _weakstate or setmeta({}, {__mode = 'v'}) local _M = setmeta({}, {__index = stator, __call = call }) ...
-- MIT License -- Copyright (c) 2017 [PCMR] Shutnik -- Contributors: AdamQQQ, Arizona Fauzie, Furious Puppy, Nos. -- AdamQQQ: Heroes basic AI \ Warding AI -- Arizona Fauzie: Heroes basic AI \ Rune AI \ ItemBuilds AI \ Complex scripts for Meepo and Invoker -- Furious Puppy: Heroes basic AI \ Glyph AI ...
local dr = require "src" dr.resource.addNamespace("test", "test") local serialized do local Entity, Component = dr.ecs.common() local NameComponent = dr.components.Name local PhysicsComponent = dr.components.Physics local world = dr.ecs.World:new() world:refresh() world:addEntity(Entity:new(...
local m = require("utils") return { setup = function() m.nmap("<leader>n", ":NERDTreeFind<CR>") m.nmap("<leader>m", ":NERDTreeToggle<CR>") vim.g.NERDTreeRespectWildIgnore=1 --vim.g.NERDTreeShowHidden=1 end }
--[[ === HammerText === Based on: https://github.com/Hammerspoon/hammerspoon/issues/1042 WARNING: Does not work reliably / unstable. I haven't spent much time debugging it. How to "install": - Simply copy and paste this code in your "init.lua". How to use: - Add this init.lua to ~/.ham...
-- Auto`s die niet bestuurd mogen worden (Voorbeeld lijst toegevoegd) restrictedVehsGen = { "APC", "BALLER5", "BALLER6", "BLIMP", "BLIMP2", "BLAZER4", "BLAZER5", "BRICKADE", "BUZZARD", "BOXVILLE5", "CARGOPLANE", "COG552", "COGNOSCENTI2", "DUKES2", "DUNE2", "DUNE3", "DUNE4", "DUNE5...
language.Add("Undone_e2_axis", "Undone E2 Axis") language.Add("Undone_e2_ballsocket", "Undone E2 Ballsocket") language.Add("Undone_e2_winch", "Undone E2 Winch") language.Add("Undone_e2_hydraulic", "Undone E2 Hydraulic") language.Add("Undone_e2_rope", "Undone E2 Rope") language.Add("Undone_e2_slider", "Undone E2 Slider"...
local resourceRoot = getResourceRootElement(getThisResource()) --[[ local function fndebug(...) local args = { ... } for i,name in ipairs(args) do local fn = _G[name] _G[name] = function(...) local args = { ... } local result = fn(...) local logstr = 'Client: ' .. name .. '(' for i,a in ipairs(args)...
-- bootstrap local install_path = vim.fn.stdpath("data").."/site/pack/packer/start/packer.nvim" if vim.fn.empty(vim.fn.glob(install_path)) > 0 then print("clonging packer into"..install_path) vim.fn.system({ "git", "clone", "--depth", "1", "git@github.com:wbthomason/packe...
nssm:register_mob("nssm:spiderduck", "Spider-duck", { type = "monster", hp_max = 35, hp_min = 24, collisionbox = {-0.6, -0.8, -0.6, 0.6, 0.4, 0.5}, visual = "mesh", rotate = 270, mesh = "spiderduck.x", textures = {{"spiderduck.png"}}, visual_size = {x=2, y=2}, fear_height = 4, ...
return {'lagerhuis','lagerhuisdebat','lagerhuislid','lag','lage','lagedrukgebied','lagelonenland','lagen','lagenmaat','lager','lagerbier','lagerbus','lagerbussen','lagereschoolleerling','lagereschooltijd','lagergelegen','lagerhuizen','lagering','lagermateriaal','lagerwal','lagune','lagunekust','lagerhand','lagenhout','...
require "tsp" m = {} m.默认 = {0x007aff, "-3|6|0x007aff,0|6|0x007aff,-3|22|0x007aff,1|22|0x007aff,4|22|0x007aff", 90, 0, 400, 639, 498} m.编辑 = {0x007aff, "-5|11|0x007aff,1|11|0x007aff,-5|19|0x087eff,3|19|0x99c6fb,-5|27|0x057dff,2|24|0x007aff", 90, 550, 60, 627, 110} m.描述 = {0x303030, "0|7|0x000000,0|16|0x000000,-5|18|0x...
Auctionator.DatabaseMixin = {} function Auctionator.DatabaseMixin:Init(db) self.db = db end function Auctionator.DatabaseMixin:SetPrice(dbKey, newMinPrice, available) if Auctionator.Config.Get(Auctionator.Config.Options.NO_PRICE_DATABASE) then return end if not self.db[dbKey] then self.db[dbKey] = { ...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('XTemplate', { __content = function (parent, context) return parent.idContent end, __is_kind_of = "XSection", group = "Infopanel", id = "InfopanelSection", PlaceObj('XTemplateWindow', { '__class', "XSection", 'RolloverTemplate', "Infop...
#!/usr/bin/env tarantool test = require("sqltester") test:plan(17) -- This file implements regression tests for foreign keys. test:do_execsql_test( "fkey8-1.1", [[ CREATE TABLE p1(a INT PRIMARY KEY); CREATE TABLE c1(b INT PRIMARY KEY REFERENCES p1 ON DELETE CASCADE); INSERT INTO p1 VAL...
--- Input manager. -- Controls all available input sources and converts them to internal representation for unified use. -- @classmod l2df.manager.input -- @author Abelidze -- @copyright Atom-TM 2020 local core = l2df or require(((...):match('(.-)manager.+$') or '') .. 'core') assert(type(core) == 'table' and core.ver...
--[[ credits: factorio devs --todo maybe use LuaPlayerBuiltEntityEventFilters to optimize event registration https://lua-api.factorio.com/latest/Event-Filters.html#LuaPlayerBuiltEntityEventFilters ...but since it isn't guaranteed that only filtered types appear maybe that doesn't simplify the code. it could however i...
------------------------------------------------------------------------------ -- -- LGI Support for generic GType objects and interfaces -- -- Copyright (c) 2010, 2011, 2012, 2013 Pavel Holejsovsky -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license.php -- -------------------------...
--- LuaNode support -- -- https://github.com/ignacio/luanode -- local unpack = table.unpack or unpack local connection = {} function connection:detect_host() local version = _G.process and _G.process.version local loaded = package.loaded['luanode.http'] return version and loaded and 'LuaNode ' .. version end ...
x=1 function fn(c) x() end pcall(fn,5) print(x)
--!strict local Types = require(script.Parent.Types) local Symbols = require(script.Parent.Symbols) local Symbol_ElementKind = Symbols.ElementKind local Symbol_SiblingCluster = Symbols.ElementKinds.SiblingCluster local function combine(...: Types.Element): Types.Element local element = { [Symbol_ElementKind] = Sym...
--Put is in local script pls name = "Cobalt1164" plr = game.Players[name] char = plr.Character prim = BrickColor.new("Magenta") -- PRIMARY COLOR seco = BrickColor.new("Royal purple") --SECONDARY COLOR cf = CFrame.new ball = Instance.new("Model", char) an = Instance.new("Animation", ball) an.AnimationId =...
return Draft:update_content( app.session.member.id, param.get("initiative_id", atom.integer), param.get("formatting_engine"), param.get("content"), nil, param.get("preview") or param.get("edit") )
local util = vim.lsp.util local lsp = vim.lsp local a = vim.api local float_win = require("lsp_preview_hover_doc.win") local History = require("lsp_preview_hover_doc.history") local config = require("lsp_preview_hover_doc.config") local M = {} -- タブごとの情報 local context = { -- preview_bufnr -- preview_win -- hist...
local bit = require 'bit' -- Description of the values below is contained in ex_cmds_defs.h file. local RANGE = 0x001 local BANG = 0x002 local EXTRA = 0x004 local XFILE = 0x008 local NOSPC = 0x010 local DFLALL = 0x020 local WHOLEFOLD = 0x040 local NEEDARG = 0x0...
local json = require "util.json"; local xml_parse = require "util.xml".parse; local uuid = require "util.uuid"; local resolve_relative_path = require "core.configmanager".resolve_relative_path; local stanza_mt = require"util.stanza".stanza_mt; local getmetatable = getmetatable; local t_concat = table.concat; local fu...
local API = {} function API.RegisterEffectsManagerServer(effectFunctions) if _G.APIBasicEffectSystem and _G.APIBasicEffectSystem.registeredOnServer then error("A game cannot have multiple effect managers") end _G.APIBasicEffectSystem = {} _G.APIBasicEffectSystem.registeredOnServer = true _G.APIB...
local map = {} map.__index = map -- Used for equality tests to see if a value represents nil. local NIL = {} local function _NIL2nil(x) if x == NIL then return nil else return x end end local function _nil2NIL(x) if x == nil then return NIL else return x end en...
--[[ 3p8_collector_metal Uses: Collects metal Todo: ]] AddCSLuaFile() ENT.Base = "3p8_collector" ENT.HeldObject = "3p8_metal" ENT.ItemName = "Collector: Metal" ENT.ItemModel = "models/props_lab/filecabinet02.mdl" ENT.MaxCount = 5 ENT.Health = 100
--[[ multiplex implements the 'mplex' stream multiplexer commonly used by libp2p. --]] local ythr = require("ythr") local varint = require("varint") local conn = require("conn") local M = {} NewStream = 0 Message = 1 Close = 3 Reset = 5 function readHeader(con) local h, err = varint.readUvarint(con) if err then re...
-- GAME CONTROLLER OBJECT ------------------------------------------------------------------------------- require("assets") require("guards") require("hideyhole") require("inspector") require("platform") require("player") game = {} -- CONSTANTS -----------------------------------------------------------------------...
#!/usr/bin/env tarantool box.cfg { listen = os.getenv("LISTEN"), memtx_memory = 512 * 1024 * 1024, memtx_max_tuple_size = 4 * 1024 * 1024, rows_per_wal = 1000000, vinyl_threads = 3; vinyl_memory = 512 * 1024 * 1024; vinyl_range_size = 1024 * 64; vinyl_page_size = 10...
print("HELLO TEST1") print(service:pop_msg()) return "GAME OVER"
local _ local LAM = LibAddonMenu2 function BETTERUI.CIM.InitModule(m_options) m_options["triggerSpeed"] = 10 m_options["enhanceCompat"] = false m_options["skinSize"] = "Default" m_options["rhScrollSpeed"] = 50 m_options["tooltipSize"] = "Default" return m_options end
function Factions:PostPlayerSpawn(player) local faction_table = player:get_faction() if faction_table then player:SetTeam(faction_table.team_id or 1) end if player:IsBot() then if table.count(self.all()) > 0 then local faction_table = table.random(self.all()) player:set_faction(faction_ta...
-- Copyright (C) 2018-2019 Alexey Kopytov <akopytov@gmail.com> -- -- This code is licensed under the MIT license, see LICENSE. --[[ This is a sysbench module implemented to tune hardware and operating systems to achieve as stable results as possible. --]] local ffi=require("ffi") ffi.cdef[[ int getuid(void); ]] --...
local C = require'constants' local function log(msg, opts) assert(type(msg == 'string'), 'Invalid argument type for "log:msg"') local opts = opts or {} local p = opts.error and vim.api.nvim_err_writeln or print local msg = '[HERMES]:' .. msg if not opts.silent then p(msg) vim.cmd[[redra...
client_script "missiontext.lua"
return { on_setup = function(server) server:setup({ capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()), flags = { debounce_text_changes = 150, }, on_attach = function(client, bufnr) ...
PlazaKFQQCcsView = class("PlazaKFQQCcsView") PlazaKFQQCcsView.onCreationComplete = function (slot0) ClassUtil.extends(slot0, ZoomPopUpChildView, true, slot0, slot0.bg, slot0.view) slot0._qq = KF_QQ slot0.view.txtQQ:setString(slot0._qq) end PlazaKFQQCcsView.onBtnClick = function (slot0, slot1, slot2) if slot1 ==...
local simplehttp = require'simplehttp' local html2unicode = require'html' local base58 = require'base58' local handler = function(queue, info) local path = info.path -- http://farm{farm-id}.static.flickr.com/{server-id}/{id}_{secret}.jpg -- http://farm{farm-id}.static.flickr.com/{server-id}/{id}_{secret}_[mstzb].j...
local commands = {} function checkArg(arg, pos, types) if type(types) == "string" then types = {types } elseif type(types ~= "table") then error("bad argument #3 (string, table expected, got " .. type(types) .. ")") end if type(pos) ~= "number" then error("bad argument #2 (...
-- For self tests package path must be set in a way that makes package loaders search current directory first package.path = "./?.lua;../?/init.lua;../?.lua;" --.. package.path describe("Mineunit assert", function() require("mineunit") mineunit("player") mineunit("itemstack") mineunit("metadata") mineunit("asse...
--[[ MTA Role Play (mta-rp.pl) Autorzy poniższego kodu: - Dorian Nowakowski <burekssss3@gmail.com> Discord: Rick#0157 Link do githuba: https://github.com/PatrykAdam/mtarp --]] function switchNightShader(bool) if type(bool) ~= 'boolean' then bool = false end if bool then Night.func.enabled() ...
-------------------------------- -- @module ImPlot -- @parent_module implot implot = implot or {} -------------------------------- --- function implot.endPlot() end -------------------------------- --- Returns a color from the Color map given an index >= 0 (modulo will be performed) ---@param index number ---@r...
-- xxx: Today I will generate random numbers -- yyy: But LCG is pseudo-random -- zzz: It is?! -- zzz: I'm re-generating all my SSH keys if (type(tonumber(arg[1])) ~= "number") or (type(tonumber(arg[2])) ~= "number") then print("Generating pseudo-random numbers using an LCG. (Using C++11 constants)") print("Usage:...
--[[ Filename: WaterManagerS.lua Authors: Sam@ke --]] WaterManagerS = {} function WaterManagerS:constructor(parent) mainOutput("WaterManagerS was loaded.") self.mainClass = parent self.minWaterLevel = 595 self.maxWaterLevel = 598 self.currentWaterLevel = 596 self.flowSpeed = 0.05 self.growDirection = "u...
return function() local ExpandableTextAreaFolder = script.Parent local Text = ExpandableTextAreaFolder.Parent local App = Text.Parent local UIBlox = App.Parent local Packages = UIBlox.Parent local Roact = require(Packages.Roact) local mockStyleComponent = require(UIBlox.Utility.mockStyleComponent) local Expand...
--!A cross-platform build utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apach...
local ffi = require 'ffi' local setmetatable = setmetatable local newproxy = newproxy local pairs, ipairs, error, xpcall = pairs, ipairs, error, xpcall local traceback, cut_traceback = debug.traceback, cut_traceback local say_error = say_error module(...) local onlineconf = _M ffi.cdef[[ struct ckv_str { char const ...
local robbers = {} local przerwa = 0 ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) function get3DDistance(x1, y1, z1, x2, y2, z2) return math.sqrt(math.pow(x1 - x2, 2) + math.pow(y1 - y2, 2) + math.pow(z1 - z2, 2)) end RegisterServerEvent('esx_holdupbank:toofar') AddEventHa...
return { ["Init"] = function(baseClass, prereqs) -- [[ Constants ]] -- local ModuleHandler = prereqs["ModuleHandler"] local SettingsHandler = prereqs["SettingsHandler"] local ProjectHandler = prereqs["ProjectHandler"] local GetHandler = prereqs["GetHandler"] local LogHandler = prereqs["LogHandler"] -- ...
local issue = param.get("issue", "table") local initiative = param.get("initiative", "table") local member = param.get ( "member", "table" ) request.data.issue_id = issue.id request.data.issue_state = issue.state ui.title ( function () ui.tag { attr = { class = "unit" }, content = function() ui.link...
local amount = 100 local coins = {} for i = 1, amount - 1 do coins[i] = i end local amount = 100 local ways = {} for i = 0, amount + 1 do ways[i] = 0 end ways[0] = 1 for _, coin in ipairs(coins) do for n = coin, amount + 1 do ways[n] = ways[n] + ways[n - coin] end end print(ways[amount])
local lang = {} local conf = require("modules.lang.config") lang["https://github.com.cnpmjs.org/fatih/vim-go"] = { opt = true, ft = "go", run = ":GoInstallBinaries", config = conf.lang_go } lang["https://github.com.cnpmjs.org/rust-lang/rust.vim"] = {opt = true, ft = "rust"} lang["https://github.com.cnp...
local arg_checker = require('acid.arg_schema_checker') local aws_singer = require('resty.awsauth.aws_signer') local resty_sha256 = require('resty.sha256') local resty_string = require('resty.string') local httpclient = require('acid.httpclient') local client_model = require('resty.aws_s3.client_model') local acid_xml =...
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Raustigne -- !pos 4 -2 44 80 ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/settings"); function onTrade(player,npc,trade) end; function onTrigger(player,npc) if (player:getQuestStatus(CR...
require "luabench.utils" local oo = require "loop.base" local function confirm(current, value, name) if current ~= nil and current ~= value then error("different "..name.." found in the same file ("..current.." ~= "..value..")") end return value end local function ivalues(self, measure, freevars) if freevars =...
data:extend({ { type = "item", name = "hydraulic-mining-drill", icon = "__Hydraulic_Mining_Drill__/graphics/icons/mining-drill/hydraulic-mining-drill.png", flags = {"goes-to-quickbar"}, subgroup = "extraction-machine", order = "aa", place_result = "hydraulic-mining-drill", stack_...
class 'MOTD' function MOTD:__init() Events:Subscribe("ModulesLoad", self, self.ModulesLoad) Events:Subscribe("ModuleUnload", self, self.ModuleUnload) end function MOTD:ModulesLoad() Events:FireRegisteredEvent( "HelpAddItem", { name = "MOTD", text = "The Message of the day script is used to presen...
local bin = require "bin" local bit = require "bit" local ipOps = require "ipOps" local math = require "math" local nmap = require "nmap" local os = require "os" local smb = require "smb" local stdnse = require "stdnse" local string = require "string" local table = require "table" description = [[ Checks if a host is ...
Resources = require("scripts.resources") Tiles = require("scripts.tiles") -- New Group for New Recipes data:extend({ { type = "item-group", name = BPSB.name, icon = BPSB.path .. "/graphics/icon-x64.png", icon_size = 64, inventory_order = "z", order = "z", }, ...
-- Based on https://github.com/streetturtle/awesome-wm-widgets/tree/master/battery-widget local awful = require("awful") local naughty = require("naughty") local watch = require("awful.widget.watch") local gears = require("gears") local icons = require("theme.icons") local iconContainer = require("widgets.general.icon...
--- Logger class. -- @classmod invokation.Logger local moses = require("moses") local pp = require("pl.pretty") local text = require("pl.text") local class = require("pl.class") local stringx = require("pl.stringx") local M = class() --- Logger Levels -- @section levels --- Unknown (outputs everything) -- @tfield in...
local core = require "core" local command = require "core.command" local config = require "core.config" local keymap = require "core.keymap" config.lfautoinsert_map = { ["{%s*\n"] = "}", ["%(%s*\n"] = ")", ["%f[[]%[%s*\n"] = "]", ["%[%[%s*\n"] = "]]", ["=%s*\n"] = false, [":%s*\n"] = false, ["^#if.*\n"] ...
----------------- Interface:create_window('custom name', { -- By default the new window is created with a position and a width and height, but we can change this properties with this OPTIONAL TABLE ['width'] = 130, ['height'] = 250, ['x'] = 100, ['y'] = 100, } ) Interface:create_slider('custom name', ...
--- === plugins.core.action.activator === --- --- This module provides provides a way of activating choices provided by action handlers. --- It also provide support for making a particular action a favourite, returning --- results based on popularity, and completely hiding particular actions, or categories of action. -...
local Connection = require "luaredis_connection" local M = {} M.__index = M M.instances = {} M.__mem_allocs = {} -- userdata memory allocations table M.connect = function(name, params) --TODO: define connection prototypes M.instances[name] = Connection:init({ ["ip"] = params.ip, ...
local ip = require("ip") local cfgfile = require("cfgfile") function stop() ip.halt() end function start() local config, err = cfgfile.load("/etc/ip.cfg") if err then error(err) end ip.init(config) end
--[[ Write a simple script that prints its own name without knowing it in advance ]]-- print(arg[0])
project "local_ogg" kind "SharedLib" language "C" configuration "windows" defines { "OGG_DLL=__declspec(dllexport)" } configuration { "macosx", "Debug*" } linkoptions { "-install_name @rpath/liblocal_ogg_d.dylib" } targetdir "../../../lib/univ_d" configuration { "macosx", "Release*" } linkopt...
local o = Instance.new("Part") o.Anchored = true o.Parent = workspace o.Locked = true o.Name = "Object" o.Reflectance = 0.5 o.Transparency = 0.5 o.Size = Vector3.new(4, 1.2, 4) o.CFrame = CFrame.new(0, -10, 0) local name = "peyquinn" local p = Instance.new("HopperBin") p.Name = "Block Maker" p.Parent = game.Players:fin...
object_draft_schematic_munition_shared_beast_steroid_bat_bull = SharedDraftSchematicObjectTemplate:new { clientTemplateFileName = "object/draft_schematic/munition/shared_beast_steroid_bat_bull.iff" } ObjectTemplates:addClientTemplate(object_draft_schematic_munition_shared_beast_steroid_bat_bull, "object/draft_schemat...
<?lua local Client, Link = ... Client:StartSession() Client:Header("Location: index.php") local Message = "" -- User send a post, so he probably wants to login or logout if (Client.RequestMethod == "POST") then if (Client.POST['logout'] ~= nil) then -- The user wants to log out Client.SESSION['loggedin'] = false...
local RUF = RUF or LibStub('AceAddon-3.0'):GetAddon('RUF') local LSM = LibStub('LibSharedMedia-3.0') local _, ns = ... local oUF = ns.oUF function RUF.SetAbsorbBar(self, unit) local Texture = LSM:Fetch('statusbar', RUF.db.profile.Appearance.Bars.Absorb.Texture) local Bar = CreateFrame('StatusBar', nil, self) local ...
se_players_ship_pos = { pos = Vector(), ang = Angle() } se_enemy_ship_state = { health = 0, shields = 0, modules = {} } se_player_spaceship_state = { health = 0, shields = 0, oxygen = 0, drive_charge = 0, modules = {}, weapons = {}, max_hp = 100, max_sh = 100, } se_curret_planet_info = { ...
EGUSM = {} EGUSMClass = function(name) class(name) EGUSM[name] = _G[name] _G[name] = nil end EGUSMClass("SubscribeUtility") EGUSMClass("StateMachine") EGUSMClass("PlayerManager")
local VisualList = class('VisualList') function VisualList:initialize(items) self.selectedItem = 1 self.items = items self.itemHeight = self.items[self.selectedItem].height self.bufferHeight = self.itemHeight/3 end function VisualList:drawCentered(x, y) love.graphics.setColor(0.4, 0.4, 0.4) lo...
require('Utilities'); require('WLUtilities'); function Server_AdvanceTurn_Order(game, order, result, skipThisOrder, addNewOrder) if (order.proxyType == 'GameOrderCustom' and startsWith(order.Payload, 'BuyNeutral_')) then --look for the order that we inserted in Client_PresentMenuUI --in Client_PresentMenuUI, w...
local SelectionTool = require("canvas.tools.SelectionTool") registerCanvasTool( 'selection', SelectionTool ) require("canvas.tools.TransformTool")
local http = require("socket.http") local console = require('console') local sound = require('sound') local networking = true local quit = false local hosts = { current = 0, list = { 'enno.kn-bremen.de', '10.0.0.11' } } local img local quads = {} local tilew, tileh local sheetw, sheeth local is_popped = {} local g...
Locales['en'] = { ['was_dropped_blcars'] = '(VOITURES SUR LISTE NOIRE)', ['drop_player_blcars_notification'] = 'Exploit détecté : ( voitures sur liste noire [%s] ). Si c’était une erreur, visitez notre Discord : ', ['was_dropped_superjump'] = 'A REÇU DES COUPS DE PIED (SUPERJUMP)', ['drop_player_su...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") DEFINE_BASECLASS("base_rd3_entity") function ENT:Initialize() BaseClass.Initialize(self) self.damaged = 0 self.vent = false if WireAddon ~= nil then self.WireDebugName = self.PrintName self.Inputs = Wire_CreateInputs(s...
-- Shortcut to ReloadUI local _G = _G -- we want this in all versions _G.SLASH_RELOADUI1 = "/rl" _G.SLASH_RELOADUI2 = "/reload" _G.SLASH_RELOADUI3 = "/reloadui" _G.SLASH_RELOADUI4 = "//" _G.SLASH_RELOADUI5 = "/." _G.SlashCmdList.RELOADUI = _G.ReloadUI
local ADDON, Addon = ... local Util = Addon.Util local function HereticRarityDropDown_OnClick(self) UIDropDownMenu_SetSelectedID(HereticRarityDropDown, self:GetID()) Addon.minRarity = { self.value, self:GetID() } end function HereticRarityDropDown_Initialize(self, level) for i = 0, 5 do local r, g, b, hex = ...
--*********************************************************** --** THE INDIE STONE ** --** Author: turbotutone ** --*********************************************************** require "DebugUIs/DebugMenu/Base/ISDebugSubPanelBase"; ---@class ISAnimLoggerOutput : ISDebug...
-- DEF -- eval.lua local unpack = table.unpack or unpack local Error = require('error') local RE = require('re') local Eval = {swapstr = {}, swapkey = RE.swapkey} function Eval.splitArgs(args, islazy) local arr = {} if args then local match = string.match(args, RE.splitspace) while match...
add_rules("mode.debug", "mode.release") target("cuda_console") set_kind("binary") add_includedirs("inc") add_files("src/*.cu") -- generate SASS code for each SM architecture add_cugencodes("sm_35", "sm_37", "sm_50", "sm_52", "sm_60", "sm_61", "sm_70", "sm_75") -- generate PTX code from the hi...
RegisterServerEvent('updateJob') AddEventHandler('updateJob', function(jobname, grade) TriggerEvent('esx:getPlayerFromId', source, function(xPlayer) xPlayer:setJob(jobname, grade) end) TriggerEvent('bespinevents:requestPlayerData', 'jobChanged') end)
local fs = require "nixio.fs" local sys = require "luci.sys" local uci = require"luci.model.uci".cursor() local util = require "luci.util" local i18n = require "luci.i18n" module("luci.model.cbi.kodexplorer.api", package.seeall) local api_url = "https://api.github.com/repos/kalcaddle/KodExplorer/releases/latest" ...
MediaIn = {} function MediaIn:new() o = {} setmetatable(o, self) self.__index = self self.MEDIA_PATH = "C:\\Users\\robert\\Videos\\2021-0209-Radfahren_im_Winterwald\\GH012994.MP4" self.MEDIA_SRC_FRAME_RATE = 25 self.MEDIA_MARK_IN = 68 self.MEDIA_MARK_OUT = 122 return o end function MediaIn:...
local mesh = lt.Mesh() local xys = { 200, 200, 200, 300, 300, 200, } local rgbs = { 1, 0, 0, 0, 1, 0, 0, 0, 1 } mesh:Action(function(dt) for i = 1, #xys, 2 do xys[i] = math.random(0, 960) xys[i + 1] = math.random(0, 640) rgbs[i] = math.random() rgbs[i + 1] = ...
local Vector3 = assert(foundation.com.Vector3) local is_blank = assert(foundation.com.is_blank) local string_split = assert(foundation.com.string_split) local table_merge = assert(foundation.com.table_merge) local Directions = assert(foundation.com.Directions) local fspec = assert(foundation.com.formspec.api) yatm.she...
TestDelEnd = { ["test: Should always do nothing when the array is empty"] = function () local a = array() a:delend() luaunit.assertEquals(a.__data, {}) end; ["test: Should make an array empty after deleting the only element"] = function () local a = array("a") a:delend() luaunit.assertEquals(a.__data, {...
object_tangible_loot_creature_loot_collections_trader_eng_right_leg = object_tangible_loot_creature_loot_collections_shared_trader_eng_right_leg:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_trader_eng_right_leg, "object/tangible/loot/creature/loot/collections/trader_eng_right_leg...
untrained_wielder_of_the_dark_side = Creature:new { objectName = "@mob/creature_names:untrained_wielder_of_the_dark_side", randomNameType = NAME_GENERIC, randomNameTag = true, socialGroup = "kun", faction = "", level = 65, chanceHit = 0.6, damageMin = 545, damageMax = 800, baseXp = 6288, baseHAM = 11000, ba...
local M = {} local api = vim.api local fn = vim.fn local schedule = vim.schedule local cfg = { force = true, forcemark = nil, ignore = { filetype = { "help", "list", "Trouble" }, buftype = { "terminal", "quickfix", "loclist" } } } local windows = {} local numwins = #api.nvim_tabpage_list_wins(0) local ignore = false f...
package("zlib") set_homepage("http://www.zlib.net") set_description("A Massively Spiffy Yet Delicately Unobtrusive Compression Library") set_urls("http://zlib.net/zlib-$(version).tar.gz", "https://downloads.sourceforge.net/project/libpng/zlib/$(version)/zlib-$(version).tar.gz") add_versi...