content
stringlengths
5
1.05M
teal_map = { pos = "1;0", entities = { { codename = "villager", type = "character", pos = { x = 9, y = 10 }, orientation = "right" }, { codename = "villager", type = "character", pos ...
local tpl = require('ilk.template-text').template_eval local backend = require('ilk.backend.eigen.backend-symbols') local cppcom = require('ilk.backend.eigen.common') local com = require('ilk.common') local keys = require('ilk.parser').keys local M = {} local tpleval = function(template, env, opts) retu...
--[[ MOB SPAWN LIST mob(<mob_spawner_alias>, <mob_id>, <mob_count>, <spawner_limit>, <spawn_interval>, <spawner_range>, <map_id>, <x_pos>, <y_pos>, <z_pos>); --]] mob("", 41, 1, 4, 5, 16, 22, 5239.33, 5453.489, 31.07313); mob("", 41, 1, 4, 5, 16, 22, 5239.33, 5453.489, 31.07313); mob("", 41, 1, 4, 5, 16, 22, 5239.33,...
local plugin_name = 'pg.uptime' local every = 300 local sql_uptime = read_file_in_plugin_dir("uptime.sql") local sql_checkpointer_uptime = read_file_in_plugin_dir("checkpointer_uptime_10.sql") local function collect_9() local result = target:query(sql_uptime) for _, row ...
--MoveCurve --H_Tokisaki/curve_Attack_4 curve_Attack_4 return { filePath = "H_Tokisaki/curve_Attack_4", startTime = Fixed64(10485760) --[[10]], startRealTime = Fixed64(122334) --[[0.1166667]], endTime = Fixed64(69940016) --[[66.7]], endRealTime = Fixed64(815967) --[[0.7781667]], isZoom = false, isCompensate = f...
dofile("../framework/framework.lua") SetupSolution("Tutorial11") dofile("tutorials.lua")
--[[ LuCI - Lua Configuration Interface 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 ]]-- local ds = require "luci.dispatcher" local datatypes = requ...
--ZFUNC-marry-v1 local function marry( keys, values ) --> tab local tab = {} if #keys ~= #values then return nil end for i = 1, #keys do local k = keys[ i ] local v = values[ i ] tab[ k ] = v end return tab end return marry
local count = 1 if (count == 1) then print("yes") end local count = 2 if (count == 1) then print("yes") else print("no") end a = 1000 if (a == 100) then print("a=100") elseif (a == 200) then print("a=200") else print("a=" .. a) end
local TensionItem, super = Class(Item) function TensionItem:init() super:init(self) -- Amount of TP this item gives self.tp_amount = 0 end function TensionItem:getTensionAmount() return self.tp_amount end function TensionItem:onBattleSelect(user, target) self.tension_given = Game:giveTension(sel...
require("helper/table") require("helper/conversion") require("helper/math") ---find_nearby_balancer ---find neaby balancers, by searching on the map for nearby entities ---and then creating a unique list with them. ---Only index returned, to always use the original data and operate on them --- ---@param entity LuaEnti...
object_building_kashyyyk_poi_sign_go_back = object_building_kashyyyk_shared_poi_sign_go_back:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_poi_sign_go_back, "object/building/kashyyyk/poi_sign_go_back.iff")
workspace "Test1" architecture "x64" configurations { "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" --IncludeDirs = {} --IncludeDirs["GLFW"] = "VOI.I4GE/glfw/include" --IncludeDirs["Glad"] = "VOI.I4GE/Glad/include" --IncludeDirs["ImGui"] = "VOI.I4GE/ImGui" --I...
return function (filename) local fd = io.open(filename, "r") local contents = fd:read("*a") fd:close() return contents end
Build { Units = "units.lua", Configs = { { Name = "macosx-gcc", DefaultOnHost = "macosx", Tools = { "gcc" }, }, { Name = "linux-gcc", DefaultOnHost = "linux", Tools = { "gcc" }, }, { Name = "win32-msvc", DefaultOnHost = "windows", Tools = { "msvc-vs2012" }, }, { Name = "win...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:SetModel("models/props_c17/FurnitureBoiler001a.mdl") self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self.ingredients = {} local phys = self:GetPhysicsObje...
--[[ [] Author: Martynas Petuska [] E-mail: martynas.petuska@outlook.com [] Date: January 2018 --]] ---------------- NAMESPACE ---------------- ------------------------------------------- ADDON.Commands = { help = function() ADDON:Print("List of slash commands:"); --ADDON:Print("[reset] Resets the default...
require "yu.visitor" require "yu.type" local getTypeDecl,newTypeRef=yu.getTypeDecl,yu.newTypeRef local ipairs,print=ipairs,print local format = string.format local makeDeclRefName=yu.makeDeclRefName local setmetatable,getmetatable=setmetatable,getmetatable module("yu",package.seeall) local pre={} loc...
------------------------------------------------- -- Pomodoro Arc Widget for Awesome Window Manager -- Modelled after Pavel Makhov's work -- @author Raphaël Fournier-S'niehotta -- @copyright 2018 Raphaël Fournier-S'niehotta ------------------------------------------------- local awful = require("awful") local beautif...
local colorscheme = "onenord" local status_ok, colorscheme_module = pcall(require, colorscheme) if not status_ok then vim.notify("Could not load colorscheme " .. colorscheme) return end colorscheme_module.setup()
local Dictionary = script.Parent local Llama = Dictionary.Parent local equalObjects = require(Llama.equalObjects) local function compare(a, b) if type(a) ~= "table" or type(b) ~= "table" then return a == b end for key, value in pairs(a) do if b[key] ~= value then return false end end for key, value in...
local buttonAPI = {} local button = {} local component = require("component") local gpu = component.gpu local term = require("term") local w, h = gpu.getResolution() local colors = { ["lime"] = 0x00FF00, ["red"] = 0xFF0000, ["black"] = 0x000000, } buttonStatus = nil function buttonAPI.clear() gpu.setBackgro...
require("gitsigns").setup({ keymaps = { -- Default keymap options noremap = true, ["n ]h"] = { expr = true, "&diff ? ']c' : '<cmd>lua require\"gitsigns.actions\".next_hunk()<CR>zz'" }, ["n [h"] = { expr = true, "&diff ? '[c' : '<cmd>lua require\"gitsigns.actions\".prev_hunk()<CR>zz'" }, }, })
package.path = "../lua/?.lua" local evdtest = require("evdtest") a = 3 undef(a)
function test.foo(t) t:eq( 0, 0, '0 is 0' ) end
 --* Localization for enUS & enGB clients [GUI] --// System //-- L_GUI_APPLY = 'Apply' L_SYSTEM_ERROR = 'You can`t do that while in combat!' --// Main //-- L_GUI_MAIN = 'Main' L_GUI_MAIN_UISCALE = 'Use UI Scale' L_GUI_MAIN_RESTYLEUI = 'Restyles Default BlizzardUI' L_GUI_MAIN_ANNOUNCE = 'Announces Spell Me...
-- Modified from https://github.com/sainnhe/edge/blob/master/lua/lualine/themes/edge.lua local palette = require("edge_lush.palette") palette = vim.tbl_map(function(hsl) return tostring(hsl):lower() end, palette) return { normal = { a = { bg = palette.bg_purple, fg = palette.bg0, gui = "bold" }, b = { bg ...
-- Game hook mod injector function listener() local playerTurns = "" for i,a in pairs(Players) do if a:IsEverAlive() and a:IsHuman() then playerTurns = playerTurns .. "{" .. '"id" : ' .. tostring(a:GetID()) .. "," .. '"nickName" : ' .. '"' .. a:GetNickName() .. '"' .. "," .. ...
// Copyright 2006-2013 Robert Gieseke. See LICENSE. // Literate CoffeeScript LPeg lexer. // http://coffeescript.org/#literate var l = require('lexer'); var token = l.token; var P = lpeg.P; var M = {_NAME = 'litcoffee'}; // Embedded in Markdown. var markdown = l.load('markdown'); M._lexer = markdown; // ensure markdo...
--# selene: allow(unused_variable) ---@diagnostic disable: unused-local -- This sub-module is used to access the individual results of a spotlightObject or a spotlightGroupObject. -- -- Each Spotlight item contains attributes which you can access with the [hs.spotlight.item:valueForAttribute](#valueForAttribute) metho...
local arr = {"a", "b"} table.insert(arr, 1, 2) for key, value in ipairs(arr) do print(key, value) end
local ljson_decoder = require"json_decoder" local instance = ljson_decoder.new() local luafile = io.open("benchdata/simpledata.json", "rb") local text = luafile:read("*all") luafile:close() function run_iter(count) for n=1, count do local result, err = instance:decode(text) assert(result and not e...
if not loadLuaFileInRpgDir or not loadLuaFileInGameDir then local function loadFunc(path) return loadfile(path .. 'lua_file_loader.lua')() end local function tryLoadLuaFileLoader() for _, offset in ipairs({ './', './../', './lua/rpg/', './../lua/rpg/', './../../lua/rpg/' }) do local loadOk, _, _, _, setRpgGa...
-- -- created with TexturePacker - https://www.codeandweb.com/texturepacker -- -- $TexturePacker:SmartUpdate:1bcdb78b6183204ec35bd1d9528179ef:bec8917ba21f83e2ae490ccb2a64a2b9:662e339976a0837a1f28f0ec9a027adb$ -- -- local sheetInfo = require("mysheet") -- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheet...
function round(num, numDecimalPlaces) local mult = 10^(numDecimalPlaces or 0) return math.floor(num * mult + 0.5) / mult end function print_table(elt) for i,_ in ipairs(elt) do print(unpack(elt[i])) end end function draw_collision(x,y,w,h) -- {{{2 love.graphics.rectangle("line",x,y,w,h) -- vertical left end f...
local bson = require "bson" local socket = require "skynet.socket" local socketchannel = require "skynet.socketchannel" local skynet = require "skynet" local driver = require "skynet.mongo.driver" local md5 = require "md5" local crypt = require "skynet.crypt" local rawget = rawget local assert = assert local table = ta...
require 'xml' -- load XML xml = xml.load("test.xml") -- print printr(xml)
--technologies if settings.startup["moreshinybobs-tech-alien-and-research"] and settings.startup["moreshinybobs-tech-alien-and-research"].value == true then --alien-and-research require("tech-alien-and-research") end if settings.startup["moreshinybobs-tech-ammo"] and settings.startup["moreshinybobs-tech-ammo"].valu...
local Broadcast = require("core.Broadcast") local Logger = require("core.Logger") local tablex = require("pl.tablex") local sfmt = string.format --- ---An example behavior that causes an NPC to wander around an area when not in combat ---Options: --- areaRestricted: boolean, true to restrict the NPC's wand...
-- Not strictly necessary, kept here to help document and avoid forgotten flags return { ["escaped=prison"] = false, -- Escaped the first prison ["killed-minion1"] = false, ["killed-minion2"] = false, ["killed-minion3"] = false, ["killed-minion4"] = false, ["killed-bigboss"] = false, ["win"...
local vimscript = vim.cmd function PackInit() vim.cmd('packadd minpac') vim.call('minpac#init') local add = vim.fn['minpac#add'] add('k-takata/minpac', { type = 'opt' }) add('kyazdani42/nvim-web-devicons') add('kyazdani42/nvim-tree.lua') add('NLKNguyen/papercolor-theme') add('Raimondi/delimitMate') ...
local calc_util = require("scripts.calc.util") --- @param entity LuaEntity return function(rates, entity, emissions_per_second) local entity_prototype = entity.prototype local added_emissions = 0 -- Electric energy interfaces can have their settings adjusted at runtime, so checking the energy source is pointles...
--- Parse the ldoc dump file ($1 script argument) --- and generate the emmylua annotations output to stout --- --- author: Maxim Tuprikov, Insality <insality@gmail.com --- license: MIT --- date: 10.2020 local parser = require("./src/parser") local prepare = require("./src/prepare") local annotations = require("./src/a...
-- Created By, Hiram Abiff v2.1 --[[ This script was only possible due to the continued help from the really cool guys on the Berserk Forums. There may be some pieces of code that don't belong, but I will be sure to clean it up over time. A lot of snippets you may find here, are directly from MrStumps lua tutorials;...
--[[ This script reads a list of domains we want to block from a file and redirects all A or AAAA requsts to a "sorry page". --]] -- returns true if the given file exists function fileExists(file) local f = io.open(file, "rb") if f then f:close() end return f ~= nil end -- loads contents of a file line by line ...
-- -- This script dies at the assert if compiled using the following commands: -- 1. llvm-luac -O0 -no-main -bc -o scimark_rand.bc scimark_rand.lua -- 2. opt -O2 -f -o scimark_rand_opt.bc scimark_rand.bc -- 3. llc --march=c -f -o scimark_rand.c scimark_rand_opt.bc -- 4. gcc -O3 -o scimark_rand scimark_rand.c ../liblua_...
--Author Pasky13 --------------- ----GLOBALS---- --------------- local pbase = 0x9D8 local px = pbase +0x5 local py = pbase +0x8 local cx = 0x1E5D local cy = 0x1E60 local xm local ym --------------- ----TOGGLES---- --------------- local draw_megaman = true local draw_enemies = true local draw_hpvalues = true local dr...
local sl = require("SIGIL") -- set up our window and a few resources we need sl.slWindow(400, 400, "Simple SIGIL Example", false) sl.slSetFont(sl.slLoadFont("../fonts/jura.ttf"), 24) sl.slSetTextAlign(sl.SL_ALIGN_CENTER) while ((sl.slShouldClose() ~= 1) and (sl.slGetKey(sl.SL_KEY_ESCAPE) ~= 1)) do -- background glo...
Ext.RegisterSkillProperty("CUSTOMSURFACEBOOST", { GetDescription = function (property) return "Absorb surfaces to boost the skill" end }) --- @param status EsvStatus --- @param statusSource EsvGameObject --- @param character StatCharacter --- @param par string local function CSBStatusDescriptionParam(s...
energylauncher = class:new() function energylauncher:init(x, y, dir, r) --PHYSICS STUFF self.x = x-1 self.y = y-1 self.width = 8/16 self.height = 16/16 self.static = true self.active = true self.category = 4 self.gravity = 0 self.portalable = false self.dir = dir or "right" self.defaulton = true self.gree...
model.plot={} function model.plot.updateData(triggerData,plotId) if model.plot.ui then if plotId==1 then simUI.clearCurve(model.plot.ui,1,'l') simUI.clearCurve(model.plot.ui,1,'h') simUI.clearCurve(model.plot.ui,1,'trigger') local startT=0 if trig...
function onStart(target, buff) add_buff_parameter(target, buff, 1) end function onPostTick(target, buff) if buff.not_go_round > 0 then return end buff.remaining_round = buff.remaining_round - 1; if buff.remaining_round <= 0 then UnitRemoveBuff(buff); end end function onEnd(target, buff) add_buff_paramete...
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] ix.meta = ix.meta or {} local TRAIT = ix.meta.trait or {} TRAIT.__index = TRAIT TRAIT.name = "undefined" TRAIT.description = "undefined" TRAIT.uniqueID = "undefined" TRAIT.category = "undefined" TRAIT.icon = "undefine...
local function API_Check() if Drawing == nil then return "No" else return "Yes" end end local Find_Required = API_Check() if Find_Required == "No" then game:GetService("StarterGui"):SetCore("SendNotification",{ Title = "Exunys Developer"; Text = "Crosshair script could ...
local flora = {} local sep = "\x03" -- Flora's internal prefix coding for IRIs local function _flora_iri_to_string(iri) -- () -> return only the first value return (iri:gsub("^i\x08", "")) end local function _parse_xsb_output(str, fields) local i = 1 local j = str:find(sep) local vals = {} for num...
script_name 'mimgui hello world' local imgui = require 'mimgui' imgui.OnFrame( function() -- condition return isPlayerPlaying(PLAYER_HANDLE) end, function() -- render frame imgui.Begin('mimgui') imgui.Text('Hello, World!') imgui.End() end)
local L = LibStub("AceLocale-3.0"):NewLocale("CopyAnything", "enUS", true) --@localization(locale="enUS", handle-unlocalized="comment")@ --@do-not-package@ -- General L.copyAnything = "Copy Anything" -- Bindings L.show = "Show" -- Options L.general = "General" L.profiles = "Profiles" L.copyFrame = "Copy Frame" L.fa...
Import("mod3/mod3.lua")
--creating class for state machine machine = class{} --intialising machine class with states passed in main function machine:init(states) self.states = states or false self.current = false end --changing state function machine:change(state,params) self.current = self.states[state]() if params then ...
require("gameData/gameData"); require("hall/userInfo/data/userInfoData"); require("hall/prop/propManager"); --@brief 每日任务数据源 DayTaskData = class(GameData); DayTaskData.Delegate = { onGetDayTaskListCallBack = "onGetDayTaskListCallBack"; onGetTaskRewardCallBack = "onGetTaskRewardCallBack"; } DayTaskDat...
--@native term function Terminal.setFG(color) term.setTextColor(color) end function Terminal.setBG(color) term.setBackgroundColor(color) end function Terminal.write(string) term.write(cast(string, "string")) end function Terminal.clear() term.clear() end function Terminal.clearLine() term.clear...
package.path = package.path..';../?.lua' local ffi = require("ffi") local libvirt, err = require("libvirt") if (not libvirt) then print(err); return nil; end local function printHostName(conn) local hostname = ffi.string(libvirt.Lib.virConnectGetHostname(conn)); print("Host: ", hostname); end local function ...
Player = Object:extend() function Player:init(uid, x, y) self.dead = false self.uid = uid self.health = 100 self.armor = 0 self.speed = 250 self:setPos(x, y) self.img = Engine.assets.image.pieceGreen self.scale = .5 local w, h = self.img:getWidth(), self.img:getHeight() self:setSize(w, h)...
local api = GetApi() --api:setFPS(30); local press = "" function update() press = "" if api:btn(BTN_A) then press = press .. "A " else press = press .. " " end if api:btn(BTN_B) then press = press .. "B " else press = press .. " " end if api:btn(BTN_...
-- -- Created by IntelliJ IDEA. -- User: romansztergbaum -- Date: 17/07/2018 -- Time: 16:47 -- To change this template use File | Settings | File Templates. -- local entities = {} function update() end function on_key_pressed(evt) print("game scene keycode: " .. evt.keycode) if (evt.keycode == Keyboard.Escap...
--[[ This may be moved to a separate library at some point (Holiman) --]] local Utils = { -- Asks the user for Yes or No confirm = function(message, ...) local answer message = message .. " [y/n] ?" repeat io.write(message) io.flush() answer=io.read() if answer == 'Y' or answer == "y" then ret...
---@class WorldStateInfo C_WorldStateInfo = {}
-- Copyright (C) Alex Zhang local cjson = require "cjson.safe" local util = require "resty.requests.util" local setmetatable = setmetatable local pairs = pairs local new_tab = util.new_tab local is_func = util.is_func local is_str = util.is_str local insert = table.insert local concat = table.concat local find = stri...
ENT.Type = "brush" ENT.Base = "base_brush" function ENT:PassesTriggerFilters(ent) return (ent:IsPlayer() || ent:GetClass() == "portalball") end function ENT:StartTouch(ent) if ent:IsPlayer() then for _,w in pairs(ents.FindByClass("portalgun")) do if w.Owner == ent then w:Clear(true) w:Lock(true) w:...
AddCSLuaFile("cl_init.lua"); AddCSLuaFile("shared.lua"); include("shared.lua"); include("autorun/laundry_config.lua"); -- Include the config file. There are other ways to do this, but this one has proved to be the easiest. function ENT:Initialize() self:SetModel("models/props_wasteland/laundry_washer003.mdl"); -- ...
local modulemanager = require "core.modulemanager"; local config = require "core.configmanager"; module.host = "*"; local function reload_components() local defined_hosts = config.getconfig(); for host in pairs(defined_hosts) do if (not hosts[host] and host ~= "*") then ...
Config = {} Config.MarkerType = 1 Config.DrawDistance = 0.1 Config.ZoneSize = {x = 5.0, y = 5.0, z = 3.0} Config.MarkerColor = {r = 0, g = 0, b = 0} Config.RequiredCopsCoke = 3 Config.RequiredCopsMeth = 3 Config.RequiredCopsWeed = 3 Config.RequiredCopsOpium = 3 Config.Locale = 'fr' Config.Zones = {...
local bin = require "plc52.bin" local Reader = require("lightning-dissector.utils").Reader local OrderedDict = require("lightning-dissector.utils").OrderedDict local f = require("lightning-dissector.constants").fields.payload.deserialized function deserialize(payload) local reader = Reader:new(payload) local pack...
--- -- D-NEB class -- @classmod DNEB local mc = require "flos.middleclass.middleclass" local _NEB = require "flos.special.neb" local array = require "flos.num" -- Create the D-NEB class local DNEB = mc.class("DNEB", _NEB) --- Calculate perpendicular spring force for a given image -- @int image image to calculate th...
--[[ This script uses the lavfi cropdetect filter to automatically insert a crop filter with appropriate parameters for the currently playing video. It will automatically crop the video, when playback starts. Also It registers the key-binding "C" (shift+c). You can manually crop the video by pressing the "C" (shift+c...
local Json = require('json') local Fs = require('fs') local Object = require('core').Object local Watcher = require('uv').Watcher local Conf = Object:extend() function Conf:initialize(path) if Fs.existsSync(path) then self.path = path else error('No configuration file found') end end function ...
--[[ Mission mode for RIO Designed to be as idiot proof as possible Setup: 1. Make a folder in Courses with the name of your mission group. 2. Fill it with up to 6 courses. 3. Add to this script. Refer to https://github.com/stepmania/stepmania/wiki/Courses on help with making courses. There is one unique ta...
local Plugin = {} Plugin.WINRATE = "pregamescoreboardsort_WINRATE" TGNS.RegisterNetworkMessage(Plugin.WINRATE, {i="integer",m="float", a="float"}) function Plugin:Initialise() self.Enabled = true return true end function Plugin:Cleanup() --Cleanup your extra stuff like timers, data etc. self.BaseClass.Cle...
local cjson = require 'cjson' local utils = {} -- Assume required if default_value is nil function utils.getopt(opt, key, default_value) if default_value == nil and (opt == nil or opt[key] == nil) then error('error: required key ' .. key .. ' was not provided in an opt.') end if opt == nil then return defaul...
--[[ ############################################################################## S V U I By: Failcoder Obliterum Skin By: JoeyMagz ############################################################################## --]] --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; local select = _G.select; local ip...
greater_standing_attack_damage_moving_health_regen = class({}) function greater_standing_attack_damage_moving_health_regen:OnCreated( data ) -- ### VALUES START ### -- self.attack_damage = 24 self.health_regen = 1.5 self.effectiveness_defensive = 18.0 self.effectiveness_supp...
-- Helpful premake documentation -- Tokens https://github.com/premake/premake-core/wiki/Tokens workspace ("RuntimeCompiling") architecture ("x86") configurations { "Debug", "Release" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" IncludeDir = {} IncludeDir["dlfcn"] = "RuntimeCompiling/Ven...
------------------------- -- Brightness Widget -- ------------------------- local wibox = require("wibox") local text = wibox.widget{ align = 'center', valign = 'center', widget = wibox.widget.textbox, } brightness_indicator = { text, fg = '#e2a478', widget = wibox.container.background } f...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") AddCSLuaFile("round/cl_controller.lua") include("cvars.lua") include("shared.lua") include("round/sv_controller.lua") -- Teams team.SetUp(1, "Innocent", Color(125, 125, 125, 255)) team.SetUp(2, "Traitor", Color(125, 125, 125, 255)) team.SetUp(3, "Spectator", Col...
settings = NewSettings() source = { "CompSystem.c", "testmain.c" } objects = Compile(settings, source) exe = Link(settings, "test", objects)
pfDB["areatrigger"]["data-turtle"] = { }
return { summary = 'Reset the matrix to the identity.', description = [[ Resets the matrix to the identity, effectively setting its translation to zero, its scale to 1, and clearing any rotation. ]], arguments = {}, returns = { { name = 'm', type = 'Mat4', description = 'The orig...
pg = pg or {} pg.IPAddress = class("IPAddress") slot2 = "https://www.azurlane.tw/getip" slot3 = { { "202.39.128.0", "202.39.255.255" }, { "203.66.0.0", "203.66.255.255" }, { "203.69.0.0", "203.69.255.255" }, { "203.75.0.0", "203.75.255.255" }, { "203.74.0.0", "203.74.255.255" }, { "210....
-- Wolfe Labs Dual Universe Screen Library -- Project: DU-Screens -- Author: Matheus Pratta (DU: Wolfram) --------------------------------- -- class: ListVertical --------------------------------- local Element = require('Element') local Container = require('Container') local Class = require('@wolfe-labs/...
return { no_consumer = false, -- this plugin is available on APIs as well as on Consumers, fields = { routingkey = { required = true, type = "string" }, exchange = { default = "", type = "string" }, user = { default = "guest", type = "string" }, password = { default = "guest", type = "string" } },...
workspace "singlelibs" configurations { "debug", "release" } newoption { trigger = "notest", description = "Autoruns the test after successful build" } project "test" kind "ConsoleApp" language "C" targetdir "bin" files { "test.c", "hashtable.h", "mempool.h" } links "m" filter "configurations:deb...
if IsValid(Sonus.Player.Panel) then Sonus.Player.Panel:Remove() end Sonus.Player.Panel = vgui.Create("DFrame") local Panel = Sonus.Player.Panel Panel:SetSize(600,430) Panel:SetPos(ScrW()/2 - 300,ScrH()/2 - 215) Panel:SetMouseInputEnabled(true) Panel:SetKeyBoardInputEnabled(false) Panel:ShowCloseButton(true) Pane...
local common = require "unbox/common" local Contact = require "unbox/Contact" local Body = {} Body.__index = Body function Body.new(args) local body = setmetatable({}, Body) body:init(args or {}) return body end function Body:init(args) self.dynamic = false self.x, self.y = args.x or 0, args.y or...
require 'ext' local CSV = require 'csv' print'reading hyg' local hyg = CSV.file'../hyg/hygdata_v3.csv' print'done reading hyg' hyg:setColumnNames(hyg.rows:remove(1)) local num, con = ... if not con then con = num num = nil else assert(tonumber(num), "couldn't parse number "..tostring(num)) end asser...
local awful = require("awful") local gears = require("gears") local beautiful = require("beautiful") local xresources = require("beautiful.xresources") local dpi = xresources.apply_dpi local helpers = {} function helpers.move_focus(c, direction) if not c then return end local layout = awful.layout.getname(...
local Blocks = require('builder.blocks') local class = require('class') local Message = require('message') local Util = require('util') local device = _G.device local fs = _G.fs local turtle = _G.turtle local Builder = class() Util.merge(Builder, { isCommandComputer = not turtle, loc...
local event = require "event" local network = require "network" local component = require "component" network.tcp.listen(22) while true do local evt = {event.pullFiltered(function(ev, action, ch, remote, port, inc) if ev ~= "tcp" or action ~= "connection" or port ~= 22 or inc ~= "incoming" then ...
ItemSelection = ItemSelection or class({}) function ItemSelection:Init() Debug:EnableDebugging() self:Reset() self.loadedHeroes = {} self.prisonLocation = Entities:FindByName(nil, "player_prison"):GetAbsOrigin() self.abilitySelection = {} CustomGameEventManager:RegisterListener('repeat_fight', partial(It...
-- The base Shader class. Shader = Object:extend() function Shader:init(vertex_name, fragment_name) self.shader = love.graphics.newShader("assets/shaders/" .. (vertex_name or "default.vert"), "assets/shaders/" .. fragment_name) end -- Sets this shader as the active one. function Shader:set() current_shader = self...
local spawnedVehicles = {} vehspawned = false local matricula = {} Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(0) end while ESX.GetPlayerData().job == nil do Citizen.Wait(10) end PlayerData = ESX.GetPlayerData() Disab...