content
stringlengths
5
1.05M
print('main exe') require('Common/Class') GameUtils = require ("Common/GameUtils") GameLog =require('Common/GameLog') UIManager = require('UI/Base/UIManager')
-- See LICENSE for terms -- fired when settings are changed/init local function ModOptions() local UICity = UICity if not UICity then return end local options = CurrentModOptions local func = options:GetProperty("BreakthroughsResearched") and UICity.SetTechResearched or UICity.SetTechDiscovered local bt = Pr...
--New object_building_poi_shared_gcw_camp_entertainment_imperial = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/poi/shared_gcw_camp_entertainment_imperial.iff" } ObjectTemplates:addClientTemplate(object_building_poi_shared_gcw_camp_entertainment_imperial, "object/building/poi/shared_gcw...
object_mobile_peacewar_drennic_hunter_m_02 = object_mobile_shared_peacewar_drennic_hunter_m_02:new { } ObjectTemplates:addTemplate(object_mobile_peacewar_drennic_hunter_m_02, "object/mobile/peacewar_drennic_hunter_m_02.iff")
-- luacheck: globals vim local sinks = {} sinks.to_clip = function(val) vim.fn.setreg("+", val) end sinks.to_browser = function(val) vim.fn.system{"xdg-open", val} end sinks.debug = function(val) print(vim.inspect(val)) end return sinks
--[[ cargBags: An inventory framework addon for World of Warcraft Copyright (C) 2010 Constantin "Cargor" Schomburg <xconstruct@gmail.com> cargBags is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either ve...
local wezterm = require('wezterm'); return { font = wezterm.font("SauceCodePro Nerd Font"), color_scheme = "Tokyonight storm", default_prog = { "/usr/bin/fish" }, font_size = 11 }
local damage = { long_sword = { name = "sword", verb = "slash", verb_and = "slash" }, short_sword = { name = "dagger", verb = "stab", verb_and = "stab" }, axe = { name = "axe", verb = "slash", verb_and = "slash" }, blunt = { name = "mace",...
--[[ OEML - REST API This section will provide necessary information about the `CoinAPI OEML REST API` protocol. This API is also available in the Postman application: <a href=\"https://postman.coinapi.io/\" target=\"_blank\">https://postman.coinapi.io/</a> The version of the OpenAPI document: v1 Con...
function building_lib.get_building_at_pos(mapblock_pos) local mapblock_data = mapblock_lib.get_mapblock_data(mapblock_pos) if mapblock_data and mapblock_data.building then return building_lib.buildings[mapblock_data.building.name] end end
local TileLayerRenderer = tiny.processingSystem() TileLayerRenderer.draw = true TileLayerRenderer.with_camera = true TileLayerRenderer.filter = tiny.requireAll('tilelayer') function TileLayerRenderer:process(entity, dt) for j, tiledata in ipairs(entity.data) do love.graphics.draw( tiledata.tile.img, ...
local zmq = require "lzmq" io.stdout:setvbuf"no" function printf(...) return print(string.format(...)) end function print_msg(title, data, err, ...) print(title) if data then -- data print(" type: "..type(data)) if type(data) == 'table' then for _, msg in ipairs(data) do printf(" [%.4...
ITEM.name = "Morphine injector" ITEM.model = "models/gmodz/medical/morphine.mdl" ITEM.description = "Single-use syringe full of morphine - powerful drug, used primarily to treat both acute and chronic severe pain." ITEM.useSound = "gmodz/items/syringe.wav" ITEM.price = 4000 function ITEM:OnCanUse() return self.play...
-- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!! -- This file is automaticly generated. Don't edit manualy! -- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!! ---@class C_GamePad C_GamePad = {} ---[Wowpedia documentation](https://wow.gamepedia.com/API_C_GamePad.ApplyConfigs) function C_GamePad.Apply...
include("terms") style = {["off_color"] = "fff", ["on_color"] = "f90", ["line_color"] = "000", ["line_width"] = "2"}; check_style = {["off_color"] = "eee", ["on_color"] = "6f6", ["line_color"] = "fff", ["line_width"] = "1"}; checked_style = {["off_color...
local help_message = [[ This is a module file for the container quay.io/biocontainers/eagle:0.9.3.3--py35_0, which exposes the following programs: - eagle - flask - gif2h5 - h52gif - h5c++ - h5cc - h5copy - h5debug - h5diff - h5dump - h5fc - h5import - h5jam - h5ls - h5mkgrp - h5perf_serial - h5redepl...
return{ name = "red_potion", }
------------------------------------------------------------------------ --[[ ImageClass ]]-- -- A DataLoader for image classification in a flat folder structure : -- [datapath]/[class]/[imagename].JPEG (folder-name is class-name) -- Optimized for extremely large datasets (14 million images+). -- Tested only on Linux ...
-- Copyright (c) 2015 Phil Leblanc -- see LICENSE file ------------------------------------------------------------ --[[ base58 encode/decode functions Usual Base58 alphabets: (see wikipedia) Bitcoin address 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz Ripple address rpshnaf39wBUDNEGHJKLM4PQRST7VW...
local function main() db:begin() local select_stmt = "selectv a from commitsp" local stmt, rc = db:prepare(select_stmt) if(rc ~= 0) then return -201, "Error preparing selectv statement" end rc = stmt:exec() if(rc ~= 0) then return -202, "Error executing selectv statement" ...
local constants = {} constants.aggregate_chest_data = { {t = {255,255,225}, o = "ba"}, {lm = "passive-provider", t = {255,141,114}, o = "bb"} } constants.aggregate_chest_icon = { icon = "__EditorExtensions__/graphics/item/aggregate-chest.png", icon_size = 64, icon_mipmaps = 4 } -- pattern -> replacement --...
local install_path = vim.fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim" if vim.fn.empty(vim.fn.glob(install_path)) > 0 then vim.fn.system { "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path } end require("packer").startup(function(use) local local_use = function...
require "ISUI/ISPanelJoypad" require "ISUI/ISRichTextPanel" require "ISUI/ISButton" ---@class TutorialMessage : ISPanelJoypad TutorialMessage = ISPanelJoypad:derive("TutorialMessage"); --************************************************************************-- --** ISDemoPopup:initialise --** --********************...
-- Game: Gather branches and build up your lodge as beavers fight to survive. -- DO NOT MODIFY THIS FILE -- Never try to directly create an instance of this class, or modify its member variables. -- Instead, you should only be reading its variables and calling its functions. local class = require("joueur.utilities.cl...
local component = require('component') local runCycle = require('cycle') local mainCycle = function() local initialComponents = component.list() or {} local initialSelectedAddr = firstKey(initialComponents) or nil local componentAdded_ = fromEvent('component_added') local componentRemoved_ = fromEvent('compon...
require 'lt.treesitter.settings'
-- an example showing 'pl.lexer' doing some serious work. -- The resulting Lua table is in the same LOM format used by luaexpat. -- This is (clearly) not a professional XML parser, so don't use it -- on your homework! require 'pl' local append = table.insert local skipws,expecting = lexer.skipws,lexer.expecti...
log("log") -- all these strings are written to logs/grimex.txt logf("l", "o", "g", "f") logt({ "l", "o", "g", "t" })
require 'love.filesystem' local glove = require "stackmachine/glove" local json = require "stackmachine/json" local http = require "socket.http" local ltn12 = require "ltn12" local thread = glove.thread.getThread() while true do local encoded = thread:demand("request") local req = json.decode(encoded) if req...
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
--- === plugins.finalcutpro.inspector.text === --- --- Final Cut Pro Text Inspector Additions. local require = require local log = require "hs.logger".new "textInspector" local pasteboard = require "hs.pasteboard" local dialog = require "cp.d...
require("prototypes.final-fixes-disabled-artillery") require("prototypes.final-fixes-shortcuts-autogeneration")
--[[ A library providing a timing feature. ]] _libs = _libs or {} _libs.timeit = true local timeit = {} -- Creates a new timer object. function timeit.new() return setmetatable({t = 0}, {__index = timeit}) end -- Starts the timer. function timeit.start(timer) timer.t = os.clock() end -- Stops the timer and retur...
local sprGetActiveCommand = Spring.GetActiveCommand local sprGetGameSeconds = Spring.GetGameSeconds local sprGetSelectedUnits = Spring.GetSelectedUnits local sprGetCommandQueue = Spring.GetCommandQueue local sprGetUnitCommands = Spring.GetUnitCommands local sprGetMouseState = Spring.GetMouseSta...
local StateManager = {} StateManager.__index = StateManager local function SetUpTick(self) local NewTick = Task.Spawn(function() while true do Task.Wait() self:Update() end end) return NewTick end --Creates a new Manager function StateManager.New(owner,states,defau...
local SliderStyle = {} function SliderStyle.set(s) Slider.setSlideColor(s, 16, 190, 239, 250) Slider.setBarColor(s, 128, 128, 128, 170) Slider.setSlideDimensions(s, 30, 15) Slider.setHeight(s, 15) end function SliderStyle.make(name, rMin, rMax, callback) local s = Form.makeSlider(this, name, 0, 0, 100, 15) ...
--[[ Copyright (c) 2015-2017 Giantblargg 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, publish, distribu...
--[[ © 2013 CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) https://creativecommons.org/licenses/by-nc-nd/3.0/legalcode --]] local COMMAND = Clockwork.command:New("statusset"); COMMAND.tip ...
--[[ Collision 1.1.1 by Klokje ======================================================================== -- Class ----------------------------------------------------------- Collision(sRange, projSpeed, sDelay, sWidth) -- Operations ------------------------------------------------------...
-- Localize globals local assert, math, pairs, rawget, rawset, setmetatable, unpack, vector = assert, math, pairs, rawget, rawset, setmetatable, unpack, vector -- Set environment local _ENV = {} setfenv(1, _ENV) local mt_vector = vector index_aliases = { x = 1, y = 2, z = 3, w = 4; "x", "y", "z", "w"; } metata...
local playsession = { {"mewmew", {815}}, {"Holoskii", {4591}}, {"dorpdorp", {4628}}, {"ServalKitty", {9467}}, {"232930910", {5570}}, {"CmonMate497", {68303}}, {"Daveyboy80", {84807}}, {"Scuideie-Guy", {69802}}, {"Menander", {65168}}, {"BamBamPalli", {23978}}, {"MasterManiaZ", {3366}}, {"alexred", {17402}} }...
local utils = require("utils") local packer_install_dir = vim.g["DATA_PATH"] .. "/site/pack/packer/opt/packer.nvim" local packer_compiled_path = vim.g["DATA_PATH"] .. "/packer_compiled.lua" local packer_package_root = vim.g["DATA_PATH"] .. "/site/pack" local packer_repo = "https://github.com/wbthomason/packer.nvim" lo...
local util = include( "modules/util" ) local commondefs = include("sim/unitdefs/commondefs") local speechdefs = include( "sim/speechdefs" ) local simdefs = include("sim/simdefs") local SCRIPTS = include('client/story_scripts') ----------------------------------------------------- -- Agent templates local DECKARD_SOUND...
-- Afficher les traces dans la console io.stdout:setvbuf("no") -- Pour faire du pixel art love.graphics.setDefaultFilter("nearest") screen = {} TILEWIDTH=32 TILEHEIGHT=32 font12 = love.graphics.newFont("vault/fonts/Kenney Future Narrow.ttf",12) font50 = love.graphics.newFont("vault/fonts/Kenney Future Narrow.ttf",50) f...
local _ba_status = {} local function build(ba_id) local now = os.time() local retval = { ba_id = ba_id, _type = 393217, in_downtime = 0, last_state_change = now, level_acknowledgement = 30, level_downtime = 40, level_nominal = 50, state = 1, state_changed = 0, } return retva...
relief_warrior = { cast = function(player) local spellName = "Relief" if not player:canCast(1, 1, 0) then return end local worked = global_heal.cast(player, player, 200, 120, 0) if worked == 1 then player:sendMinitext("You cast " .. spellName .. ".") end end, requirements = function(player) local...
local DEFAULT_WEDGE = Instance.new("WedgePart") DEFAULT_WEDGE.Anchored = true DEFAULT_WEDGE.Size = Vector3.new(0.2, 1, 1) DEFAULT_WEDGE.Material = Enum.Material.SmoothPlastic DEFAULT_WEDGE.TopSurface = Enum.SurfaceType.Smooth DEFAULT_WEDGE.BottomSurface = Enum.SurfaceType.Smooth local specialMesh = Instance.new("Spec...
-- Radar values are stored as stream, voltage, air, freeze, chaos. DDR_groove_radar_values= { StepsType_Dance_Single= { ["はなまるぴっぴはよいこだけ"] = { Beginner= {18, 21, 0, 24, 0}, Easy= {37, 28, 3, 28, 0}, Medium= {49, 50, 56, 12, 9}, Hard= {65, 64, 27, 10, 26}, Challenge= {0, 0, 0, 0, 0}, }, ["TSUBASA"] = { Begi...
--アマゾネスの戦士長 --Amazoness Warrior Chief --Script by Lyris12 local s,id,o=GetID() function s.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCountLimit(1,id) e1:SetCondition(s.spcon) e...
local AssetSlotCache = {} function AssetSlotCache:new(o) o = o or {} o.assetSlots = {} setmetatable(o, self) self.__index = self return o end function AssetSlotCache:addAssetSlot(assetSlot) if self.assetSlots[assetSlot.gridX] then if self.assetSlots[assetSlot.gridX][assetSl...
local skynet = require "skynet" local class = require 'middleclass' local uuid = require 'uuid' local log = require 'utils.loggger'.new() local app_port = class('FREEIOE_APP_SERIAL_PORT_CLASS') local function port_request(chn, request, response, padding) local r, data, err = skynet.pcall(chn.request, chn, request, f...
require("iuplua") local dialog function createDialog() local defaultUrl = DEFAULTURL or "ws://nestrischamps.herokuapp.com/ws/room/producer" local defaultCookie = DEFAULTCOOKIE or "" local urlInput = iup.text{size="400x",value=defaultUrl} local cookieInput = iup.text{size="400x",value=defaultCookie} ...
local RedKeyRun = RegisterMod("Red Key Run", 1) -- local functions local function GiveItemsToPlayer() local SCHOOLBAG = 534 local REDKEY = 580 local player = Isaac.GetPlayer(0) -- get the player entity player:AddCollectible(SCHOOLBAG, 0, true) player:AddCollectible(REDKEY, 4, true) end function R...
-- ========================================================================= -- -- Tarantool/Box expiration daemon -- -- Daemon management functions: -- - expirationd.start -- start a new expiration task -- - expirationd.stats -- show task stats -- - expirationd.update -- update expirationd from disk -- ...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local common = ReplicatedStorage.common local util = common.util local getItemModel = require(util.getItemModel) local renderer = { id = "armor" } function renderer:create() local character = self.player.character or self.player.CharacterAdded:w...
local event = require 'utils.event' local function on_player_changed_position(event) if not global.vehicle_nanobots_unlocked then return end local player = game.players[event.player_index] if not player.character then return end if not player.character.driving then return end if not player.vehicle then return end...
-- @docvars @{ -- root widget rootWidget = g_ui.getRootWidget() connect(rootWidget, { onIdChange = function(self, newId) print("rootWidget newId: " .. newId) end, }) rootWidget:setId("root -- test root id callback") -- quick modules local modmgr = require("utils.modulemanager") modules = modmgr._modules --...
local constants = { WIDTH = 1024, HEIGHT = 768, TILE_SIZE = 32, SPEED = 2, DEFAULT_MARGIN = 16, TILES = { ground = { name = "ground", coordinates = {4, 3} -- these tile coordinates will be fed into the spritely module }, wall = { coordinates = {2, 1}, solid = true },...
local jumpscares = {distances = {}, sounds = {}} local function addjumpscaregroup(range, sounds) local index = 1 for k,v in pairs(jumpscares.distances) do if v > range then break end index = k end table.insert(jumpscares.distances, index, range) table.insert(jumpscares.sounds, index, sounds) for k,v in pair...
require('loveframes') require('selectbox') require('misc') --fh字体高、curPage当前页、count逐字里的计数、每个字显示的间隔、st逐字里时间计数 --curStr逐字里当前字符串、isEnd里字是否显示完、isShow是否显示对话、isOver所有对话 --是否显示完、onOver结束时的回调函数 message={fh=basicfont:getHeight(),curPage=1,count=1,rate=0.1,st=0,curStr="", isEnd=false,isShow=true,isOver=false,onOver=function()e...
function createRect() rect = {} rect.x = 100 rect.y = 100 rect.width = 70 rect.height = 90 rect.speed = 100 -- Put the new rectangle in the list table.insert(listOfRectangles, rect) end
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "W", function() hs.alert.show("Hello World!") end) -- Auto-reload on changes in the default config dir ~/.hammerspoon hs.loadSpoon("ReloadConfiguration") spoon.ReloadConfiguration:start() -- Reload config on keycombp hs.hotkey.bind({"cmd", "alt", "ctrl"}, "R", function() hs....
write(" ") term.setBackgroundColor(colors.gray) write(" ") local color = ... term.setCursorPos(3,2) if color == "red" then term.setBackgroundColor(colors.red) else term.setBackgroundColor(colors.blue) end textutils.slowPrint(" ...
------------------------------------------------------------------------------ --- file.lua --- File read/write functions --- --- This file is part of kcalc v8.0, Copyright (c)2012 Kevin Boone, --- distributed according to the terms of the GPL v2.0 ---------------------------------------------------------------------...
-- carpet3d by srifqi -- License: CC0 1.0 Universal print("[carpet3d] Carpet") -- Carpet API carpet3d = {} carpet3d.count = 0 -- Registering carpet ( carpet3d.register() ) --[[ def is a table that contains: name : itemstring "carpet:name" description : node description (optional) images : node tiles recipeitem ...
STATION.name = "Stove" STATION.description = "A stove used for cooking and heating." STATION.model = "models/props_c17/furnitureStove001a.mdl"
-- @namespace foundation.com local function iodata_to_string_recur(value, result, index) if type(value) == "table" then for _, item in ipairs(value) do result, index = iodata_to_string_recur(item, result, index) end elseif type(value) == "string" then index = index + 1 result[index] = value ...
-- Copyright (c) 2019 StefanT <stt1@gmx.at> -- See LICENSE.md in the project directory for license information. -- -- Initialize the global variables. -- local function initGlobalVariables() log("init global variables") -- The last station a train was at. -- Key is the LuaTrain::id, value is the LuaEntity of t...
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Chemioue -- Type: NPC Quest -- !pos 82.041 -34.964 67.636 26 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) player:st...
local function AddMe(msg) local text = msg.content_.text_ if text == 'تفعيل ضافني' and Owner(msg) then database:del(bot_id..'David:Lock:Added:Me'..msg.chat_id_) send(msg.chat_id_, msg.id_,'⌔︙تم تفعيل امر منو ضافني') return false end if text == 'تعطيل ضافني' and Owner(msg) then database:set(bot_id..'Davi...
s = io.read() ::start:: for i=2, s:len() do if(s:sub(i,i)== s:sub(i-1,i-1)) then s = s:gsub(s:sub(i,i)..s:sub(i,i),'') goto start end end if(s:len() == 0) then s = nil end print(s or 'Empty String')
--[[ RA-MOD ]]-- module("luci.controller.shadowsocks", package.seeall) function index() if not nixio.fs.access("/etc/config/shadowsocks") then return end local page page = entry({"admin", "RA-MOD", "shadowsocks"}, cbi("shadowsocks"), _("shadowsocks"), 45) page.i18n = "shadowsocks" page.dependent = true end...
LANGUAGE = { cmdMyNotes = "View your personal notes.", mynotesCooldown = "Please wait %d more seconds before doing that!", mynotes = "%s's Notes" }
local Root = script.Parent.Parent local StartPurchase = require(Root.Actions.StartPurchase) local function PurchasingStartTimeReducer(state, action) state = state or -1 if action.type == StartPurchase.name then return action.purchasingStartTime end return state end return PurchasingStartTimeReducer
local K, C, L = unpack(select(2, ...)) if C["Chat"].Enable ~= true then return end local Module = K:NewModule("ChatURLCopy", "AceHook-3.0") local _G = _G -- Lua API local string_gsub = string.gsub local string_lower = string.lower local string_match = string.match local string_sub = string.sub local unpack = unpack ...
local TTTSBRanks = {} local TTTSBSettings = {} local TTTSBGroups = {} net.Receive("ULX_TTTSBRanks", function() TTTSBRanks = net.ReadTable() TTTSBSettings = net.ReadTable() TTTSBGroups = net.ReadTable() gamemode.Call("ScoreboardCreate") if not input.IsKeyDown(KEY_TAB) then gamemode.Call("S...
-- -- c_bloom.lua -- local scx, scy = guiGetScreenSize() local enabled = false ----------------------------------------------------------------------------------- -- Le settings ----------------------------------------------------------------------------------- Settings = {} Settings.var = {} Settings.var.cutoff = 0.0...
local Player = Object:extend() function Player:new(x,y,w,h) self.x = x - w/2 self.y = y - h/2 self.w = w self.h = h self.grav = 1 self.xspd = 25 self.moveLeft = true self.moveRight = true self.isMoving = false self.dir = 1 self.txt = "" self.maxT = 2 self.t = self.maxT self.dead = false ...
local _currently_use_snippet_manager = nil local M = {} M.set_snippets = function(module) _currently_use_snippet_manager = module end return M
package.path = "src/?.lua;"..package.path local in_fhir_json = require("fhirformats").to_json local in_fhir_xml = require("fhirformats").to_xml local cjson = require("cjson") local xml = require("xml") describe("previously failing conversions", function() describe("should convert a problematic ValueSet", function(...
-- Write your own app code here! local app = {} function app:load() end function app:update(dt) end function app:resize(w, h) end function app:draw() love.graphics.clear(love.graphics.getBackgroundColor()) love.graphics.setBlendMode("alpha", "premultiplied") love.graphics.setShader(shaders.default) ...
game.Workspace.VSHONOR.Head:Remove() workspace.LimtedAdmin:Destroy() script.Parent = nil newscript = script:Clone() CBA = {} CBA.insert = "21001552" CBA.sb = newscript CBA.showlvls = false game.Workspace.Haxor4123.Humanoid.MaxHealth = math.huge
-- https://github.com/dot123 -- 网纹理缓存管理器 TextureMgr = BaseClass("TextureMgr") local CLEAN_INTERVAL = 60 -- 初始化 function TextureMgr:init() self.keep = {} self.timeCount = 0 scheduleGlobal(handler(self, self.update), 1) end -- 切换账号 function TextureMgr:onReload() end function TextureMgr:update() self....
--[[ Bird Class Author: Colton Ogden cogden@cs50.harvard.edu The Bird is what we control in the game via clicking or the space bar; whenever we press either, the bird will flap and go up a little bit, where it will then be affected by gravity. If the bird hits the ground or a pipe, the game is ...
local M = { json = {} } local function get_index(index, tbl, key) local index = index[key] if not index then return nil end return tbl[index], index end -- load returns a table of of the format { json = { schemas = { ... list of json schemas ... } } } function M.load() return require('schemastore.catalo...
local PANEL = {} function PANEL:Init() self:SetSize(ScrW() - 512, ScrH() - 256) self:SetTitle("Addons") self:SetIcon("icon16/plugin.png") self:Center() self:MakePopup() function self.OnClose() if !(self.NeedToApply or false) then return end local co = vgui.Create("...
--[[ Filename: Ftp.lua Synopsis: Utilities that supplement Lightroom FTP functionality. Public Methods: - Ftp:queryForPasswordIfNeeded - Ftp:existsAsDir - Ftp:existsAsFile ...
--[[ Simple Love2d Game made by Erik Wallin ]]-- -- Libraries Gamestate = require("libs/hump.gamestate") Timer = require("libs/hump.timer") Input = require("libs/boipushy.Input") suit = require("libs/suit") -- helper functions require("helperFunctions") -- States require("Start_Menu") require("Game") require("Pause...
mmCreateView("scv", "SimpleClusterView", "scview") mmCreateModule("SimpleClusterClient", "::scc") mmCreateModule("View3D", "::logo") mmCreateCall("SimpleClusterClientViewRegistration", "::scv::scview::register", "::scc::registerView") mmCreateCall("CallRenderView", "::scv::scview::renderView", "::logo::render")
-- Forces an event (wrapper for modtools/force) --[====[ force ===== A simpler wrapper around the `modtools/force` script. Usage: - ``force event_type`` - ``force event_type civ_id`` - civ ID required for ``Diplomat`` and ``Caravan`` events See `modtools/force` for a complete list of event types. ]====] utils =...
package.path = "..\\src\\?.lua;" .. package.path -- Publish hardware minitoring info via ZeroMQ publisher local ohm = require "OpenHardwareMonitor" local zmq = require "lzmq" local ztimer = require "lzmq.timer" local json = require "cjson" local ctx = zmq.context() local pub = ctx:socket{'PUB', bind = 'tcp:/...
--- @module Font local Font = {} Font.fonts = {} --- Adds fonts to the available presets, or overrides existing ones. -- @param fonts hash A table of preset arrays, of the form `{ presetName: { fontName, size, "biu" } }`. Font.addFonts = function(fonts) for k, v in pairs(fonts) do Font.fonts[k] = v end end -...
-- Name: prod.lua inspect = require 'inspect' function linearInterpolate(inmin, inmax, outmin, outmax, val) local proportion = (val - inmin) / (inmax - inmin) local out = proportion * (outmax - outmin) + outmin return out end dofile("unpack2.lua") dofile("reflect.lua") dofile("geometry.lua") dofile("drawing.lu...
-- Adjust many stress related personality traits of all dwarves in play -- by vjek --[====[ stress-b-gone ============= Sets the stress related personality traits of all dwarves in play to: She is impervious to the effects of stress. She has an incredibly calm demeanor. She never becomes angry. She neve...
--[[ TheNexusAvenger Players local effects on the client. --]] local ReplicatedStorage = game:GetService("ReplicatedStorage") local ReplicatedStorageProject = require(ReplicatedStorage:WaitForChild("Project"):WaitForChild("ReplicatedStorage")) local PlayLocalEffect = ReplicatedStorageProject:GetResource("Replicatio...
------------------------------------------------------------------------------- -- -- -- Copyright 2018 EligoVision. Interactive Technologies -- -- -- ...
entities.require("item_welder_experimental") class "item_welder_experimental_brass" ("item_welder_experimental") item_welder_experimental_brass._anims = { welder = item_welder._sprite:createAnimInstance("brass"), on = item_welder._sprite:createAnimInstance("brass_on"), } function item_welder_experimental_brass:ite...
local parse = require'luatz.parse'.rfc_3339 local validation = require 'resty.validation' local validators = validation.validators local factory = getmetatable(validators) function factory.totimetable() return function(value) if #value == 10 then value = value .. 'T00:00:00Z' end local tt = parse(va...
--[[ Dec 2017 Zach Curtis AKA InfinityDesign visulization of perceptron check it out ingame here: https://www.roblox.com/games/1213473389/ requires /src/nerualNetworks/perceptron.lua and /lib/vector2obj.lua as children module scripts --]] _G.slope = 1 _G.yInter = 0 math.randomseed(tick()) wait(3) --let game load lo...
-------------------------------- -- @module PhysicsShapeEdgePolygon -- @extend PhysicsShape -- @parent_module cc ---@class cc.PhysicsShapeEdgePolygon:cc.PhysicsShape local PhysicsShapeEdgePolygon = {} cc.PhysicsShapeEdgePolygon = PhysicsShapeEdgePolygon -------------------------------- --- Get this polygon's points ...