content
stringlengths
5
1.05M
-- lightningexplo return { ["lightningexplo"] = { smogcone = { air = true, class = [[CSimpleParticleSystem]], count = 4, ground = true, water = true, properties = { airdrag = 0.8, alwa...
AddCSLuaFile("shared.lua") AddCSLuaFile("cl_init.lua") include("shared.lua") function ENT:Initialize() self:SetModel("models/psychedelics/mushroom/spores.mdl") self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:GetPhysicsObject():Wake() self:Activate() end fun...
object_tangible_loot_creature_loot_collections_eralam_shard_04 = object_tangible_loot_creature_loot_collections_shared_eralam_shard_04:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_eralam_shard_04, "object/tangible/loot/creature/loot/collections/eralam_shard_04.iff")
-- Hide ~ from end of lines. vim.opt.fillchars = {eob = " "} -- Add icons for lsp diagnostics sings vim.cmd [[ sign define LspDiagnosticsSignError text= texthl=LspDiagnosticsSignError linehl= numhl= sign define LspDiagnosticsSignWarning text= texthl=LspDiagnosticsSignWarning linehl= numhl= sign define LspDiagn...
FOREST_SIZE = 5 PLANT_SIZE = 5 NMS_MOD_DEFINITION_CONTAINER = { ["MOD_FILENAME"] = "ForestDensityAndSizeIncrease.pak", ["MOD_AUTHOR"] = "Mjjstral", ["NMS_VERSION"] = "1.77", ["MODIFICATIONS"] = { { ["PAK_FILE_SOURCE"] = "NMSARC.515F1D3.pak", ["MBIN_CHANGE_TABLE"] = { { ["MBIN_FIL...
--[[ Title: Common Load World Filter Author(s): big Date: 2021.3.30 Desc: use the lib: ------------------------------------------------------------ local CommonLoadWorldFilter = NPL.load('(gl)Mod/WorldShare/filters/cellar/Common/LoadWorld/CommonLoadWorldFilter.lua') CommonLoadWorldFilter:Init() ----------------------...
workspace "AudioCapture" startproject "AudioCapture" configurations { "Debug", "Release" } platforms { "x86", "x64" } filter "platforms:*64" architecture "x64" filter "platforms:*86" architecture "x86" outputdir = "%{cfg.system}-%{cfg.architecture}-%{cfg.buildcfg}" project "AudioCapture" lo...
--[[ Copyright (c) 2021-2022 Jason Morley, Tom Sutcliffe 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, ...
local PANEL = {} function PANEL:Init() self.size = NS_ICON_SIZE end function PANEL:setIconSize(size) self.size = size end function PANEL:setItem(item) self.Icon:SetSize( self.size * (item.width or 1), self.size * (item.height or 1) ) self.Icon:InvalidateLayout(true) self:setItemType(item:getID()) self:cen...
-- hydra farm has its E-W sprites flipped if data.raw["assembling-machine"]["ye_pool"] then local temp = data.raw["assembling-machine"]["ye_pool"].animation.east data.raw["assembling-machine"]["ye_pool"].animation.east = data.raw["assembling-machine"]["ye_pool"].animation.west data.raw["assembling-machine"]["ye_pool...
local Screen = {} function Screen:new(name, meta, props) self = meta or {} self.Name = name return self end return Screen
package.path = package.path .. ";data/scripts/lib/?.lua" --namespace SectorWreckageCleaner SectorWreckageCleaner = {} local self = SectorWreckageCleaner self._Debug = 0 self._SizeLimit = 15 --Change this value if you want to mess with the size of the wreckage pieces being deleted. Bigger # = bigger wreckage, g...
require 'src.entities.exit' Player = class('entities.Player', Person) local function initAnimations(image) local animations = {} local grid = anim8.newGrid(32, 32, image:getWidth(), image:getHeight()) animations.up = anim8.newAnimation(grid('1-4', 4), 0.15) animations.down = anim8.newAnimation(grid('...
#!/usr/bin/env lua n = io.read("*number") num = {} for i = 1, n do num[#num+1] = io.read("*number") end function A1(num) sum=0 isExist=false for i,v in ipairs(num) do if v%10==0 then sum=sum+v isExist=true end end return isExist and sum or nil end function A2(num) sign=0 sum=0 is...
function RPGM.CallClassFunction(class, functionName, ...) if not class then return end local functions = class:getFunctions() if not (istable(functions) and functions[functionName]) then return end return functions[functionName](...) end
local DrawRoad = Helpers.DrawRoad local function DrawConnectedEdges(vertexIndex, color) local connectedRoads = Roads:GetConnectedEdges(vertexIndex) for _, connectedEdge in pairs(connectedRoads) do if connectedEdge.id ~= vertexIndex then local connectedRoad = Roads:GetRoadById(connected...
require('../yarnparse') --really simple menu for displaying choices. --like dumb simple. menu={ --slows down input. timer=4.5, --select item. select=1 } function love.load() --load up the yarn file. yarn=yarnparse:load("twochoices.json") --let's start with Start --some would say it sh...
require("tint-tesla-turret") function genTeslaTurrets(inputs) -- Copy electric furnace local item = table.deepcopy(data.raw.item["laser-turret"]) local recipe = table.deepcopy(data.raw.recipe["laser-turret"]) local entity = table.deepcopy(data.raw["electric-turret"]["laser-turret"]) local tech = ta...
-- load all plugins require "pluginList" require "misc-utils" require "top-bufferline" require "statusline" require("colorizer").setup() require("neoscroll").setup() -- smooth scroll -- lsp stuff require "nvim-lspconfig" require "compe-completion" local cmd = vim.cmd local g = vim.g g.mapleader = " " g.auto_save =...
ATTRIBUTE.name = "Crafting" ATTRIBUTE.desc = "What you can craft."
-- General utility functions --------------------------------------------------------------------- local utils = {} -- Imports all key-values in a table, presumably the public entries in a module, into the current environment. -- If a key being imported already exists in the current environment, the current value for...
local settingsutil = require('__spice-rack-core__/util/settingsutil') local tableutil = require('__spice-rack-core__/util/tableutil') ------ >> Oil Change if settingsutil.get_startup_setting("oil-change") ~= "disabled" then data.raw.recipe['basic-oil-processing'].results = { {type="fluid", name="heavy-oil...
require 'nn' local Guassian, gaussianParent = torch.class('nn.Gaussian', 'nn.Sequential') function Guassian:__init(num_features, sigma) gaussianParent.__init(self) local radius = math.ceil(2 * sigma) gaussianParent.add(self, nn.SpatialReplicationPadding(radius, radius, radius, radius)) gaussianParent.add(self, nn....
require "data_structures" function serialize(o, maxdepth, indent, s) local seen = s or Stack:new() local t = type(o) local new_max_depth if maxdepth then new_max_depth = maxdepth-1 end if new_max_depth == 0 then return "<too deep>" end if t == "table" and seen:contains(o) then return "..." else ...
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> 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 h...
local metrics = require('metrics') local gauges_storage = {} local TNT_PREFIX = 'tnt_' local function prefix_name(name) return TNT_PREFIX .. name end local function set_gauge(name, description, value, labels) if (gauges_storage[name] == nil) then gauges_storage[name] = metrics.gauge(prefix_name(name...
libcurl=require("com.xplugin.libcurl") --curl库实现网络通讯 libpic=require("com.xplugin.libpic") --pic库实现部分图片功能 libjni=require("com_helper_mfjsml_jni") --C/C++支持库,实现部分lua难以做到高级功能 astarNetwork=require("com.astar.network") --astar网络插件,支持http,https,get,post,header --图像识别函数 --传入图像原始数据,无需编码,返回值为百度OCR引擎的JSON格式 function OCR...
function logLogsCount() local count = 0 for key, val in pairs(sensors) do local filename = val .. '.json' local readDb = file.open(filename, "r") filename = nil local originalJson = readDb:read(10000) readDb:close() readDb = nil count = cou...
local Being = require 'src.beings.Being' local minds = require_tree 'src.beings.minds' local bodies = require_tree 'src.beings.bodies' local Ghost = class(..., Being) function Ghost:initialize(map, subject, x,y) Being.initialize(self, minds.FollowerMind:new(subject), bodies.GhostBody:new(map,x,y,40)) end return ...
local common = require "errno.common" local ROOM = require "module".room local M = setmetatable({ }, common) return M
include("lib/basic.lua") function truthy(r, a) assert(allocated(r)) assert(allocated(a)) to(r) clear() if_then(a, function() to(r) inc() end) to(r) end function bor(r, a, b) assert(allocated(r)) assert(allocated(a)) assert(allocated(b)) to(r) clear() if_then(a, function() to(b) inc() end) tru...
fx_version 'cerulean' game 'gta5' description 'QB-NewsJob' version '1.0.0' shared_scripts { '@qb-core/import.lua', 'config.lua' } client_scripts { 'client/main.lua', 'client/camera.lua', 'client/gui.lua' } server_script 'server/main.lua'
-- Persistent Data local multiRefObjects = { } -- multiRefObjects local obj1 = { ["width"] = 64; ["version"] = 1.1; ["tileheight"] = 16; ["orientation"] = "orthogonal"; ["tilewidth"] = 16; ["properties"] = { ["minY"] = 0; ["maxY"] = 64; ["minX"] = 0; ["roomName"] = "Starting Point"; ["maxX"] = 64; }; ...
function log(phrase) a=file.open("access.log","a") if a then a:write(phrase.."\n") a:close() else print("não foi possível registrar o log") end end -- pl = serAng(100) set = wifi.setmode(wifi.STATION) wifi.sta.getap(1, listap) wifi.sta.disconnect() -- this part is only used the first time you ne...
--- -- @module UIDummy -- -- ------------------------------------------------ -- Required Modules -- ------------------------------------------------ local UIElement = require( 'src.ui.elements.UIElement' ) -- ------------------------------------------------ -- Module -- ---------------------------------------------...
local new = require "LuaObservable.src.new" local isObservable = require "LuaObservable.src.is" local subscribe = require "LuaObservable.src.subscribe" local empty = require("LuaObservable.src.ext.empty") --[[ From Converts any table or Observables into an Observable ]] return function (object) --[[ ...
object_mobile_smuggler_broker_russell = object_mobile_shared_smuggler_broker_russell:new { } ObjectTemplates:addTemplate(object_mobile_smuggler_broker_russell, "object/mobile/smuggler_broker_russell.iff")
--[[------------------------------------------------------------------ WEAPON ICONS Default HL2 weapon icons ]]-------------------------------------------------------------------- if CLIENT then local WEAPON_FONT = "hl2rbhud_weapon_icon"; local BRIGHT = "_b"; local W, H = 125, 90; local scale = 1....
return { source = { location = 'https://ftp.gnu.org/gnu/gdb/gdb-7.12.1.tar.xz', sha256sum = '4607680b973d3ec92c30ad029f1b7dbde3876869e6b3a117d8a7e90081113186' }, build = { type = 'gnu', options = { -- specify both build and host explicitly here so a user can set...
--Beam Drawer by TAD2020 AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') function ENT:Initialize() self.Entity:SetModel("models/props_c17/oildrum001.mdl") --for debuging --RDx_Beams.EntInit( self ) self.Beams = {} self.ProxiedEntities = {} end --[[ ...
package.path = '../src/?.lua;' .. package.path local utils = require "utils" function dofile (filename) local f = assert(loadfile(filename)) return f() end require "tableData" io.input("sdpData.txt") local sdp = io.read("*all") -- Test table -> SDP local toSDP = require "tosdp" local newSDP = toSDP.toSessio...
insulate("Register declaration", function() local parser = require("snabbp4.syntax.parser") local config = {preprocess = true} local input = [[ // The register stores the "previous" state of the color. // Index is the same as that used by the meter. register prev_color { width : 8; // paired w/ meters a...
return { version = "1.1", luaversion = "5.1", tiledversion = "1.1.5", orientation = "orthogonal", renderorder = "right-down", width = 27, height = 48, tilewidth = 15, tileheight = 15, nextobjectid = 199, properties = {}, tilesets = { { name = "tileset", firstgid = 1, tilewi...
i18n.importData("fr", { police_station = "Station de police", title_notification = "Gouvernement", now_cuffed = "Vous �tes menott� !", now_uncuffed = "Libert� !", info_fine_request_before_amount = "Appuyez sur ~g~Y~s~ pour accepter l'amende de $", info_fine_request_after_amount = ", appuyez sur ~r~R~s~ pour la re...
local Game = require 'game' local media = require 'media' local Intro = Game:addState('Intro') function Intro:draw() love.graphics.setColor(255,255,255) love.graphics.draw(media.img.intro, 0,0) love.graphics.setFont(media.fonts.ui) love.graphics.print('Press any key to start, or Esc to exit.', 10,575) lov...
--Nomal block print("------------start testNormalBlock------------") local m = require("elaapi") wallet = client.new("wallet_test.dat", "pwd", false) addr = wallet:getAddr() pubkey = wallet:getPubkey() assetID = m.getAssetID() m.togglemining(false) height = m.getCurrentBlockHeight() while(true) do m.discreteMining(1...
Config = {} Config.TackleDistance = 3.0
local fn = vim.fn local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' if fn.empty(fn.glob(install_path)) > 0 then packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) end return require('packer').startup(function(use) -...
local status_ok, dap = pcall(require, "dap") if not status_ok then return end dap.adapters.lldb = { type = "executable", command = "/usr/bin/lldb-vscode", name = "lldb" } dap.configurations.c = { { name = "Launch", type = "lldb", request = "launch", program = function() return vim.fn.in...
--[[ © 2013 GmodLive private project do not share without permission of its author (Andrew Mensky vk.com/men232). --]] local greenCode = greenCode; local math = math; local PLUGIN = PLUGIN or greenCode.plugin:Loader(); PLUGIN.stored = {}; PLUGIN.buffer = {}; PLUGIN.alpha = 0; local rightBarToLeft = CreateClientCon...
-- helpers function clean_empty(array) local clean_array = {} for _,value in pairs(array) do if not (value == "") then clean_array[ #clean_array+1 ] = value end end return clean_array end function split(s, delimiter) result = {}; for match in (s..delimiter):gmatch("(.-)"..delimiter) do table...
require "Item/SuburbsDistributions" if(not SSurvivors) then SSurvivors = {} end SSurvivors.isModEnabled = function(modname) local actmods = getActivatedMods(); for i=0, actmods:size()-1, 1 do if actmods:get(i) == modname then return true; end end return false; end SSurvivors.getSprites = function() g...
project("RED4ext.Loader") targetname("version") targetdir(red4ext.paths.build("bin")) kind("SharedLib") language("C++") pchheader("stdafx.hpp") pchsource("stdafx.cpp") dependson({ "RED4ext.Dll" }) includedirs( { ".", red4ext.project.includes("spdlog") }) fi...
if (SERVER) then hook.Add("PlayerCanPickupWeapon","ZombiePickupWeapons",function(pl) if (pl.Zomb) then return false end end) hook.Add("PlayerCanPickupItem","ZombiePickupItems",function(pl) if (pl.Zomb) then return false end end) hook.Add("GetFallDamage","ZombieFallDamage",function(pl,speed) if (pl.Zomb) then return...
--[[ D65 Tristimulus Values X = 95.04 Y = 100 Z = 108.88 sRGB Chromaticity Coordinates r = (0.64, 0.33) g = (0.30, 0.60) b = (0.15, 0.06) Equations RGB <-> XYZ matrices: http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html RGB -> ...
u_skins.load_players = function() local file = io.open(u_skins.file, "r") if file then for line in file:lines() do local data = string.split(line, " ", 2) u_skins.u_skins[data[1]] = data[2] end io.close(file) end end u_skins.load_players() local function tick() minetest.after(120, tick) --every 2min' ...
include "./Vendor/premake/premake_customization/solution_items.lua" workspace "Evil" architecture "x86_64" startproject "EvilEditor" configurations { "Debug", "Release", "Dist" } solution_items { ".editorconfig" } flags { "MultiProcessorCompile" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{...
-- author: Steve Chan sychan@lbl.gov -- -- Copyright 2013 The Regents of the University of California, -- Lawrence Berkeley National Laboratory -- United States Department of Energy -- The DOE Systems Biology Knowledgebase (KBase) -- Made available under the KBase Open Source Li...
include('shared.lua') ENT.RenderGroup = RENDERGROUP_BOTH function ENT:Initialize() mx, mn = self:GetRenderBounds() self:SetRenderBounds( mn + Vector(0,0,128), mx, 0 ) end function ENT:Draw() self.BaseClass.Draw(self) if (self:GetReadMode() == 0) then local vStart = self:GetPos() ...
local blip function resetTaxiJob() if (isElement(blip)) then destroyElement(blip) removeEventHandler("onClientVehicleEnter", getRootElement(), startTaxiJob) end end function displayTaxiJob() blip = createBlip(1771.537109375, -1858.5126953125, 12, 0, 4, 255, 127, 255) outputChatBox("#FF9933Approach ...
-- Sailor VROM (Lua version) by freem -- Use of this tool (e.g. using the exported files) is free. -- License is still undecided, but leaning towards public domain/unlicense/CC0. --============================================================================-- local verNum = 0.20 local pcmbSeparator = "|" local si...
workspace "Sleepy" configurations {"Debug", "Release", "Dist"} architecture "x64" project "Sleepy" location "Sleepy" kind "SharedLib" language "C++" targetdir ("bin/%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}/%{prj.name}") objdir ("obj/%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}/%{prj.name}") pch...
--[[-- --用function的方式实现继承. -- -- table方式优势: - 1, 创建基类对象比较快, 所有方法共享给对象 2,使用table将会消耗更少的内存。 3, 对于方法调用更加符合绝大多数面向对象的Lua代码 - closure方式优势: 1, 可以有私有field. 访问私有field很快. (since they're upvalues, not table lookups.) 2, 方法调用更快,因为他们不用 __index元方法 3, .的方式更适合习惯了其他语言的开发者。 - --]] local funct...
enableAlerts(0); --don't change this if isServer() then local scripter = "BackSlash *Jack*"; -- Insert scripter here -- Set color keys, format BBGGRR. local lightred = "<color;6666ff>"; local ec = "</color>"; function killPlatforms() sendChat(scripter, 4 , lightred.."Script starting..."); local shipNo = shipCo...
local vim = vim local api = vim.api local M = {} function M.setup() api.nvim_command([[command -nargs=? -complete=dir Yanil call luaeval('require("yanil/canvas").open(_A)', fnamemodify('<args>', ':p'))]]) api.nvim_command([[command YanilClose call luaeval('require("yanil/canvas").close()')]]) api.nvim_com...
--[[ Models factory ]] local models = {} function models.ffnn(inDim, outDim, ...) -- input layer local par = nn.ParallelTable() :add(nn.Linear(inDim,inDim)) :add(nn.Linear(inDim,inDim)) local net = nn.Sequential() :add(par) :add(nn.JoinTable(1)) :add(nn.Sigmoid()) -- add hidden layers l...
-- kolor v0.0.3 -- every light sequences samples -- -- llllllll.co/t/kolor -- -- this script mirrors the grid -- -- ▼ instructions below ▼ -- -- E2 changes row -- E3 changes column -- K2 is left finger -- K3 is right finger kolor=include("kolor/lib/kolor") if util.file_exists("/home/we/dust/code/tmi") then tmi=i...
------------------------------------------------------------ -- ShapeShifts.lua -- -- Abin -- 2014/10/21 ------------------------------------------------------------ local IsSpellKnown = IsSpellKnown local _, addon = ... addon:RegisterName("Travel Form", 783) addon:RegisterName("Cat Form", 768) addon:RegisterName("G...
goomba = class:new() function goomba:init(x, y, t) --PHYSICS STUFF self.x = x-6/16 self.y = y-11/16 self.speedy = 0 self.speedx = -goombaspeed self.width = 12/16 self.height = 12/16 self.static = false self.active = true self.category = 4 self.mask = { true, false, false, false, false, true, fa...
--servermessage module by greenarrow --AddCSLuaFile ("autorun/shared/servermessagetypes.lua") AddCSLuaFile ("autorun/client/smsg.lua") --include ("autorun/shared/servermessagetypes.lua") ----------------------------------------------------------------SERVER SIDE MODULE-----------------------------------------------...
local function check_tank_foundation(bpos) local meta = minetest.get_meta(bpos) local height = meta:get_int("height") if height < 1 then return end local d = math.ceil(height / 5) local ret = bitumen.check_foundation( {x = bpos.x - 2, y = bpos.y - 1 - d, z = bpos.z - 2}, {x = bpos.x + 2, y = bpos.y...
--this = SceneNode() --NPC function createNpcNode() local routePlanner = this:findNodeByType(NodeId.RoutePlanner) --routePlanner = RoutePlanner() local spawnArea = routePlanner:getRandomSpawnArea() local island = spawnArea:getIsland() local npcNode = island:addChild(SceneNode()) npcNode:setLocalPosition...
---@diagnostic disable: undefined-global -- Success function Success() print("======> success") end -- Failed function Failed(error) print("======> failed:", error) end -- Actions Actions = { function(data) stdlib:WriteInStream('INEND_e1a3f6df-1048-4582-aeac-9e7c45352db1', data) stdlib:Wri...
-- sfcraftguide/init.lua local S = minetest.get_translator("sfcraftguide") local esc = minetest.formspec_escape local sfcraftguide = {} local player_data = {} local init_items = {} local recipes_cache = {} local usages_cache = {} local group_stereotypes = { dye = "dye:white", wool = "wool:white", coal = "base_or...
----------------------------------------------------- --name : lib/crunch/20_lz77.lua --description: crunch module, writes lz77 prefix, wraps the stream, adds decompression code on cleanup --author : mpmxyz --github page: https://github.com/mpmxyz/ocprograms --forum page : none -------------------------------...
return {'ellebogenwerk','elleboog','elleboogstoot','ellen','ellende','ellendeling','ellendig','ellendige','ellendigheid','ellenlang','ellenmaat','ellens','ellepijp','ellips','ellipsoide','ellipsvormig','elliptisch','elleboogblessure','elleboogholte','ellebooggewricht','ella','elle','elleke','ellen','elles','ellikom','e...
include('shared.lua') surface.CreateFont( "Myfont", { font = "DefaultBold", -- Not file name, font name --size = fontSize, size = 25, weight = 400, antialias = true, shadow = true }) function ENT:Draw() --self:DrawModel() local pos = self:GetPos() local rot = CurTime()*50 cam.Start3D2D( p...
-- Version of bin/luacheck.lua for use in Luacheck binaries. -- Do not load modules from filesystem in case a bundled module is broken. package.path = "" package.cpath = "" require "luacheck.main"
function Circle(sub) for i = 1,4 do turtle.forward(); sub() turtle.forward(); turtle.turnLeft(); sub() end end function FillSlot() slot = 2 while turtle.getItemCount(1) < 64 and slot < 15 do turtle.select(slot) if turtle.compareTo(1) then turtle.transferTo(1,...
object_tangible_loot_mustafar_cube_loot_cube_loot_2o = object_tangible_loot_mustafar_cube_loot_shared_cube_loot_2o:new { } ObjectTemplates:addTemplate(object_tangible_loot_mustafar_cube_loot_cube_loot_2o, "object/tangible/loot/mustafar/cube/loot/cube_loot_2o.iff")
function LoadGEDatabase() ----------------------------------------------------------------- -- Reads the list of images in the Game Engine videos -- outputs: -- dataset: a table with list of files for each category -- datatset[category][angle][variation], e.g., -- datatse...
local Assets = {} local self = Assets Assets.saved_data = nil function Assets.clear() self.loaded = false self.data = { texture = {}, texture_data = {}, frame_ids = {}, frames = {}, fonts = {}, font_data = {}, font_image_data = {}, font_settings ...
-- Script: QuerySelector.lua local RS = game:GetService("RunService") local function log(thing, trackback) if script:GetAttribute('debug') then if typeof(trackback) ~= "number" then print(debug.traceback()) else if trackback == 2 then warn(thing) elseif trackback == 3 then error(thing) else ...
-- luacheck: globals describe beforeAll expect it local customEqualMatcher = function(received, expected) local pass = received == expected if pass then return { message = "custom failure message (not)", pass = true, } else return { message = "custom failure message", pass = false, ...
local modelname = ...; local M = {}; _G[modelname] = M; setfenv(1, M); i = {r=0, i=1} function new (r, i) return {r = r, i = i} end function add (c1, c2) return new(c1.r + c2.r, c1.i + c2.i); end function sub (c1, c2) return new(c1.r - c2.r, c1.i - c2.i); end function mul (c1, c2) return new(c1.r * c2.r - c1....
local pkg = {} local function cloneFrame(frame) local f = hs.geometry({x = frame.x, y= frame.y, w= frame.w, h = frame.h}) return f end pkg.cloneFrame = cloneFrame -- rounding up the coordinates in a grid of 10 pixels local function grid(frame) local new = cloneFrame(frame) new.x = math.ceil(frame.x /...
-- simple component, no need to break out into multiple files -- Taken from bb template if GameLengthVotes == nil then DebugPrint ( 'creating new GameLength voter object.' ) GameLengthVotes = class({}) end function GameLengthVotes:Init () DebugPrint( 'Initializing.' ) GameLengthVotes = self GameLengthVo...
zk_SPD.assign_performer("mod_recipes")
local ls = require "lovesnow" local socket = require "lovesnow.socket" local socketdriver = require "lovesnow.socketdriver" require "lovesnow.manager" -- import ls.launch, ... local table = table local slaves = {} local connect_queue = {} local globalname = {} local queryname = {} local harbor = {} local harbor_servic...
-- Add fake wagon data for drop overrides local function addwagon(name) minetest.register_entity(":"..name, {}) end addwagon("advtrains:engine_railbus") addwagon("advtrains:engine_industrial") addwagon("advtrains:engine_industrial_big") addwagon("advtrains:wagon_tank") addwagon("advtrains:wagon_wood") addwagon("a...
data:extend( { { type = "recipe", name = "water-recipe", icon = "__More_Ammo__/graphics/icons/items/SE/water-magazine.png", icon_size = 63, enabled = false, category = "crafting", group = "combat", subgroup = "ammo", order = "aj", ...
--CJ_Oyer, 2022 --[=[ A module used to provide instance based controls for rapid prototyping and inter-script communication with objects. @class Instancify ]=] local collectionService = game:GetService("CollectionService") local runService = game:GetService("RunService") local replicatedStorage = game:GetService("Re...
local BOOKING_KEY = KEYS[1] return redis.call('get', 'sq:' .. BOOKING_KEY)
--[[ init.lua Init.lua is automatically executed on bootup of the NodeMCU. This launcher file loads the actual init_XYZ file only when everything has been tested and debugged. A 15 second delay has been added in case of error and enable abort. --]] -- Set local variable FileToExecute="mqtt_dht22.lua" -- Set timer ...
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] CItemShopManager = inherit(cSingleton) function CItemShopMana...
ys = ys or {} slot1 = ys.Battle.BattleEvent slot2 = ys.Battle.BattleFormulas slot3 = ys.Battle.BattleConst slot5 = ys.Battle.BattleDataFunction slot6 = ys.Battle.BattleAttr slot7 = ys.Battle.BattleVariable slot8 = ys.Battle.BattleTargetChoise slot9 = ys.Battle.BattleConfig.VAN_SONAR_PROPERTY slot10 = class("BattleFleet...
local LastID RegisterNetEvent("InitInventaire:openPropertyInventory") AddEventHandler("InitInventaire:openPropertyInventory", function(data) setPropertyInventoryData(data) openPropertyInventory() end) function refreshPropertyInventory() TriggerServerCallback("getCoffrePropriete", function(contenu) ...
---------------------------------------------------------------------------------------------------- -- View class that displays a scrollable text. -- -- <h4>Extends:</h4> -- <ul> -- <li><a href="flower.widget.PanelView.html">PanelView</a><l/i> -- </ul> -- -- @author Makoto -- @release V3.0.0 --------------...
local l_sys = require("l_sys") local sh = l_sys.sh local x86_driver = {} -- 加载驱动 x86_driver.load = function() end -- 卸载驱动 x86_driver.unload = function() end return x86_driver
local mainRes = getResourceFromName"editor_main" topMenuClicked = {} --a table storing all functions when the topmenu is clicked --since the highlighter covers an icon button, this function acts as a redirect and triggers the function for the proper button function buttonClicked(mouseButton, state ) if state ~= ...