content
stringlengths
5
1.05M
files { 'index.html', 'lalala.mp3', 'css/bootstrap.min.css', 'css/css.css', 'css/fontawesome-all.min.css', 'css/colors/yellow-2.css', 'css/style-dark.css', 'img/film-grain.png', 'img/logo-light.png', 'js/main.js', 'js/plugins.js', 'webfonts/fa-brands-400.eot',...
lgpio = require('lgpio') local assert = assert local engine = require('nclua.event.engine') local gpio do gpio = engine.new() gpio.class = 'gpio' gpio.INPUT = 0 gpio.OUTPUT = 1 gpio.LOW = 0 gpio.HIGH = 1 gpio.NONE = 0 gpio.RISING = 1 gpio.FALLING = 2 gpio.BOTH = 3 end function gpio:add_event(gpi...
local E = Brazier.Equals local M = Brazier.Maybe local T = Brazier.Type local Array = {} Brazier.Array = Array -- [T] @ (T => Boolean) => Array[T] => Boolean function Array.all(f) return function(arr) for _, x in ipairs(arr) do if not f(x) then return false end end return true end ...
local f = string.format My.Translator:register("en", { comms_upgrade_broker_label = "Ship Upgrades", comms_upgrade_broker_main_no_upgrades = "Unfortunately we have no upgrades to offer at the moment.", comms_upgrade_broker_main_upgrades = "We can offer you the following upgrades:", comms_upgrade_broke...
#!/usr/bin/env luajit local kdns = require('dns') local sift, utils = require('dns.sift'), require('dns.utils') local aio = require('dns.nbio') local lmdb_ok, lmdb = pcall(require, 'dns.lmdb') local dnssec_ok, dnssec = pcall(require, 'dns.dnssec') assert(arg[1], 'usage: bench.lua <zonefile>') local function bench_sif...
-- This file is autogenerated by NIGHTFOX. -- Do not make changes directly to this file. local cmd = vim.fn.has("nvim") == 0 and vim.command or vim.cmd if vim.g.colors_name then cmd("hi clear") end cmd("set termguicolors") cmd("set background=dark") vim.g.colors_name = "duskfox" cmd([[ highlight AerialGuide guifg...
measout = {"kvadratni metar", "ar", "hektar", "kvadratni kilometar"}
-- -- Device info -- local di = {} function di.isHugh() return hs.host.localizedName() == 'Hugh’s MacBook Pro' end return di
-- Load our configs local function init() -- Load our banned users if ULib.fileExists( "cfg/banned_user.cfg", true ) then ULib.execFile( "cfg/banned_user.cfg", "ULX-EXEC", true ) end end hook.Add( "Initialize", "ULXInitialize", init ) local function doMainCfg( path, noMount ) ULib.execStringULib( ULib.stripComm...
-- -- Enemy class. -- -- @filename LgBomb.lua -- @copyright Copyright (c) 2015 Yaukey/yaukeywang/WangYaoqi (yaukeywang@gmail.com) all rights reserved. -- @license The MIT License (MIT) -- @author Yaukey -- @date 2015-09-03 -- local DLog = YwDebug.Log local DLogWarn = YwDebug.LogWarning local DLogError = YwD...
--[[ [] Author: Martynas Petuska [] E-mail: martynas.petuska@outlook.com [] Date: March 2018 --]] local UI = ADDON.UI; local UpdateInfo = ADDON.UpdateInfo; --====================================================== CLASS =======================================================-- ---Class representing map tiles. --...
#!/usr/bin/env -S wordgrinder --lua -- © 2015 David Given. -- WordGrinder is licensed under the MIT open source license. See the COPYING -- file in this distribution for the full text. -- This user script is used to do quick and dirty benchmarks of the file -- load/save code. It generates a ludicrously big (million w...
MenuColour = { Banner = { R = 13, G = 24, B = 33, A = 255, }, Background = { R = 13, G = 24, B = 33, A = 200, }, Selection = { R = 123, G = 137, B = 138, A = 125, }, Desc = { R = 13, G = 24, B = 33, A = 150, }, Txt = { R = 191, G = 204, B =...
-- create global to make all components accessible globally emerald = {} emerald.logger = require('./emerald/logger') emerald.__privateLoggerScope = emerald.logger:getLoggerScope('emerald') emerald.__logger = emerald.__privateLoggerScope('main') emerald.__logger.info('Initializing Emerald')
package.path = "../src/lua/?.lua;" .. package.path local uv = require "lluv" local GNTP = require "gntp" local uuid = require "uuid" local options = { -- self identify on remote growl server name = 'GNTPSubscriber'; sid = uuid.new(); -- encryption/auth options pass = '12345...
local Route = require "atlas.route" local controllers = require "app.controllers" return {Route("/", controllers.home), Route("/about", controllers.about)}
Class = require "lib.hump.class" Gamestate = require "lib.hump.gamestate" MindBladeProjectile = require "game.projectiles.mindBladeProjectile" SimpleParticle = require "game.particles.simpleParticle" vector = require "lib.hump.vector" bump = require "lib.bump" MindBlade = Class { init = function(self) -- Do nothing...
--This script contains common functions that are used in many script. --How to use: --1. local testCasesForPolicyTable = require('user_modules/shared_testcases/testCasesForPolicyTable') --2. testCasesForPolicyTable:createPolicyTableWithoutAPI() -------------------------------------------------------------------------...
-- LUALOCALS < --------------------------------------------------------- local minetest, nodecore = minetest, nodecore -- LUALOCALS > --------------------------------------------------------- local modname = minetest.get_current_modname() ---------------------------------------- -----------------GRASS-------------...
--local Tunnel = module("vrp", "lib/Tunnel") local Proxy = module("vrp", "lib/Proxy") vRP = Proxy.getInterface("vRP") ConfigORG = {} ConfigORG.debug = true ConfigORG.org_tables_init = {} ConfigORG.org_membros_init = {} ConfigORG.org_fundador_init = {} vRP.prepare("vRP/orgs_table",[[ CREATE TABLE IF NOT EXISTS vrp_org...
-- @Author:pandayu -- @Version:1.0 -- @DateTime:2018-09-09 -- @Project:pandaCardServer CardGame -- @Contact: QQ:815099602 local roleMgr = require "manager.roleMgr" local slen = string.len local _M = function(role,data) if not data.id or type(data.id) ~= "number" then return 2 end if not data.typ or type(data.typ) ~=...
application = { content = { width = 320, height = 480, scale = "letterbox", fps = 60, }, steamworks = { -- This is Steam's test app ID used by their SDK' demo/test app. -- All Steam logins can access this app. appId = "480", }, }
-- Setup your account at http://hundredgraphs.com -- See API documentation at http://hundredgraphs.com/apidocs -- include that in Startup: -- monitcode = require("Moniton") -- monitcode.HGTimer(600) -- or you can run it only once like: -- monitcode = require("Moniton") -- monitcode.HGTimerOnce() local pkg = 'L_Hund...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = { PlaceObj('ForEachExecuteEffects', { 'Label', "Colonist", 'Filters', {}, 'Effects', { PlaceObj('RemoveTrait', { 'Trait', "Renegade", }), PlaceObj('ModifyObject', { 'Prop', "ba...
--[[ /////// ////////////////// /////// 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 /////// ///////////////// ]] addEventHandler("onClientClick", getRootElement(), function(bu...
-- ======= Copyright (c) 2003-2011, Unknown Worlds Entertainment, Inc. All rights reserved. ======= -- -- lua\TeamMixin.lua -- -- Created by: Brian Cronin (brianc@unknownworlds.com) -- -- ========= For more information, visit us at http://www.unknownworlds.com ===================== -- -- TeamMixin has functionali...
local mod = DBM:NewMod("ArtifactQueen", "DBM-Challenges", 2) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 84 $"):sub(12, -3)) mod:SetCreatureID(116484, 116499, 116496)--Sigryn, Jarl Velbrand, Runeseer Faljar mod:SetEncounterID(2059) mod:SetZone()--Healer (1710), Tank (1698), DPS (1703-The G...
local Prop = {} Prop.Name = "Evocity Clothing Store" Prop.Government = true Prop.Doors = { Vector( -2391, -2513, 139 ), Vector( -2269, -2513, 139 ), } GM.Property:Register( Prop )
local utils = require "typesystem_utils" function typesystem.vardef( node, context) local datatype,varnam,initval = table.unpack( utils.traverse( typedb, node, context)) return defineVariable( node, context, datatype, varnam, initval) end function typesystem.variable( node) local varname = node.arg...
local MP = minetest.get_modpath("eco_mapgen") eco_mapgen.register_decoration({ match = { biome = "grass", mapgen_type = "flat", min_height = 2, chance = 4 }, schematics = { MP .. "/schematics/decorations/grass_with_tree_1", MP .. "/schematics/decorations/grass_with_tree_2", MP .. "/schematics/decorati...
local constants = require "kong.constants" local iteration = {} function iteration.failed(err, err_t) local failed = false return function() if failed then return nil end failed = true return false, err, err_t end end local function page_iterator(pager, size, options) local page = 1 ...
UIMenuListItem = setmetatable({}, UIMenuListItem) UIMenuListItem.__index = UIMenuListItem UIMenuListItem.__call = function() return "UIMenuItem", "UIMenuListItem" end ---New ---@param Text string ---@param Items table ---@param Index number ---@param Description string function UIMenuListItem.New(Text, Items, Index, D...
error("This compiles fine, but throws an error when being run")
-- Copyright (c) 2020, The Pallene Developers -- Pallene is licensed under the MIT license. -- Please refer to the LICENSE and AUTHORS files for details -- SPDX-License-Identifier: MIT local ir = require "pallene.ir" local typedecl = require "pallene.typedecl" local uninitialized = {} -- B <- A local function copy(A...
local HealthInsurance = {} HealthInsurance.__index = HealthInsurance function HealthInsurance:new() local this = { moreHealth = function(lifeForm, min, max) local number = love.math.random(min, max) lifeForm:increaseLife(number) end, moreLives = function(lifeForm, a...
--[[---------------------------------------------------------------------------- ----------------------------------------------------------------------------]]-- return function(export) assert(type(export) == "table", "Export expects table as an input", 2) assert( type(export.create) == "function", ...
local ffi = require "ffi" local imgui_ffi = require "imgui_ffi.mod" local imgui = imgui_ffi.libs.imgui local const = imgui_ffi.enums local W = require "limgui" local uv = require "luv" local utils = require "limgui.utils" -- -- libclang task -- local function on_thread(data) local CommandLine = require "clangffi.c...
require 'misc/slither' require 'model/PSGenerator' require 'model/program' require 'model/system' require 'view/drawMethods' require 'controller/ressourceLoader' require 'controller/stateHandler' function love.load() math.randomseed(1) ressourceLoader_load() system = System() player = psGenerator_genera...
choice = math.random(4) for i = 1,4 do qq = lib.math.random_shuffle(set) ind = math.random(2) denom[i] = 1 for j = 1,ind do if (i == choice) then if (qq[j] == 3 or qq[j] == 7) then denom[i] = denom[i] * 5; else denom[i] = denom[i] * qq[j]; end ...
-- The Songs loader for custom wheels. -- Accepts Style. return function(Style) -- All the Compatible Songs Container. local AllCompSongs = {} -- For all Songs. for _, CurSong in pairs(SONGMAN:GetAllSongs()) do -- Temp Difficulty Container. local DiffCon = {} -- Set the first value to be Current Loo...
return { id = "effect_smoke", price = 3000, onSale = true, }
-- Copyright 2022 philh30 -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writ...
local light_list = { { "White Light Cube", "white"}, { "Green Light Cube", "green"}, { "Red Light Cube", "red"}, { "Blue Light Cube", "blue"}, { "Orange Light Cube", "orange"}, { "Yellow Light Cube", "yellow"}, { "Aqua Light Cube", "aqua"}, } for i in ipairs(light_list) do local lightdesc = light_list[i][1] ...
function onCreate() -- background shit makeLuaSprite('Pissy', 'Pissy', -450, -100); setScrollFactor('Pissy', 0.9, 0.9); makeAnimatedLuaSprite('gang','bg chars',-150,300)addAnimationByPrefix('gang','dance','dagang',24,true) objectPlayAnimation('gang','dance',false) setScrollFactor('gang', ...
-- VARIABLES =================================================================== local callOnce = true local deathArray = {} local index = 1 local clearIndex = 1 -- FUNCTIONS =================================================================== function Constructor() end function OnUpdate(dt) if (callOnce)...
include("shared.lua") function ENT:Draw() self.Entity:DrawModel() end local function myMenu() local DermaPanel = vgui.Create( "DFrame" ) DermaPanel:SetPos( ScrW() / 2 - 210, ScrH() / 2 - 125 ) DermaPanel:SetSize( 420, 250 ) DermaPanel:SetTitle( "Minigame Menu" ) DermaPanel:SetVisible(...
Locales['fr'] = { ['used_bread'] = 'vous avez utilisé ~y~1x~s~ ~b~pain~s~', ['used_water'] = 'vous avez utilisé ~y~1x~s~ ~b~eau~s~', }
--[[---------------------------------------------------------------------------- --- @file init.lua --- @brief fácil cli: init command handler. ----------------------------------------------------------------------------]]-- local Fl = require "facil" --- Cli wrapper for fl.init command. -- @param rootPath Root path ...
--Define Rainbow shield minetest.register_tool("rainbow_ore:rainbow_ore_shield", { description = "Rainbow Shield", inventory_image = "rainbow_ore_shield_inv.png", groups = {armor_shield=20, armor_heal=17, armor_use=40, armor_fire=1}, wear = 0, }) --Define Rainbow shield crafting recipe minetest.register_craft({ ...
local sprite local randomizer = love.math.newRandomGenerator() local objectsBatch = {} local objects = {} local objectCount = 0 local startTime local fps = 0 local spawnsCount = 50 local startTimer = 3 -- in seconds local windowHeight local windowWidth gameObj = {} gameObj.__index = gameObj function gameObj:create(...
local schemas = require "kong.dao.schemas_validation" local validate_entity = schemas.validate_entity local schema = require "kong.plugins.kong-plugin-jsonrpc-method-restriction.schema" describe("JSONRPC Method Restriction schema", function() it("should work when no configuration has been set", function() ...
local VariableStatement = require("lunar.ast.stats.variable_statement") local ExpressionStatement = require("lunar.ast.stats.expression_statement") local FunctionCallExpression = require("lunar.ast.exprs.function_call_expression") local StringLiteralExpression = require("lunar.ast.exprs.string_literal_expression") loca...
minetest.register_on_joinplayer(function(player) player:set_physics_override({jump=0,sneak = false, gravity = 10}) end)
--[[ @Authors: Ben Dol (BeniS) @Details: ]] PvpModule = {} -- load module events dofiles('events') local Panel = { -- } function PvpModule.getPanel() return Panel end function PvpModule.setPanel(panel) Panel = panel end function PvpModule.init() -- create tab local botTabBar = CandyBot.window:getChildBy...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BseChargeList_pb', package.seeall) local CHARGEDATA = protobuf.Descriptor(); local CHARGEDATA_ID_FIELD = protobuf.FieldDescriptor(); local CHARGEDATA_PRICE_FIELD = protobuf.FieldDescriptor(); local CHARGEDATA_CURRENCY_FIELD = proto...
local function print_inserter_command(param) local current_player = SeablockPlanningTools.player(param.player_index) local selected = current_player.selected if selected == nil or selected.type ~= "inserter" then return end print_inserter(current_player, selected) end local function print_inserter(player, se...
local vector = require "vector" local collisions = {} function collisions.resolve_collisions( balls, platform, walls, bricks, bonuses ) collisions.balls_platform_collision( balls, platform ) collisions.balls_walls_collision( balls, walls ) collisions.balls_bricks_collision( balls, bricks, bonuses ) c...
RPGM.Config.StartingMoney = 20000 RPGM.Config.SalaryTimer = 240 RPGM.Config.CurrencySymbol = "$" RPGM.Config.CurrencyLeft = true RPGM.Config.MoneyNotificationSound = "rpgm/ui/notifications/money.mp3" RPGM.Config.MoneyDroppedOnDeath = -1 --Less than 1 means nothing will be dropped RPGM.Config.MoneyDroppedOnSuicide ...
return {'hudo','hudson','hudepohl','hudos'}
local Node = require('gui.node') local RecipeTip = require('gui.recipe_tip') local floor = math.floor local Recipe = {} Recipe.__index = Recipe setmetatable(Recipe, {__index = Node}) function Recipe.new(player, recipe_idx) local self = setmetatable(Node.new(), Recipe) self.w = 20 self.h = 20 self.filt...
object_static_worldbuilding_structures_mun_nboo_capitol_destroyed = object_static_worldbuilding_structures_shared_mun_nboo_capitol_destroyed:new { } ObjectTemplates:addTemplate(object_static_worldbuilding_structures_mun_nboo_capitol_destroyed, "object/static/worldbuilding/structures/mun_nboo_capitol_destroyed.iff")
local style style = require("ansikit.style").style local safeOpen safeOpen = require("filekit").safeOpen local levels levels = function(t) local _tbl_0 = { } for i, v in ipairs(t) do _tbl_0[v] = i end return _tbl_0 end local inverse = levels local _cache_contains = { } local contains contains = function(e, ...
-- ============================================================= -- Copyright Roaming Gamer, LLC. 2009-2013 -- ============================================================= -- Behavior - Physics: Apply Timed Force -- ============================================================= -- Short and Sweet License: -- 1....
-- Component dependencies local MODULE = require( script:GetCustomProperty("ModuleManager") ) local API_SE = require( script:GetCustomProperty("APIStatusEffects") ) function COMBAT() return MODULE.Get("standardcombo.Combat.Wrap") end local function META_AP() return _G["Meta.Ability.Progression"] end function CRO...
--[[ font.lua: the OmniCC font styles panel --]] local _, Addon = ... local OmniCC = _G.OmniCC local L = LibStub("AceLocale-3.0"):GetLocale("OmniCC") local FontOptions = CreateFrame("Frame", "OmniCCFontOptionsPanel") local BUTTON_SPACING = 24 function FontOptions:AddWidgets() self.Sliders = {} self.Fonts = sel...
-- Prosody XMPP Server Configuration -- ---------- Server-wide settings ---------- -- Settings in this section apply to the whole server and are the default settings -- for any virtual hosts admins = { "{{XMPP_ADMIN}}" } -- Paths for data and modules data_path = "/var/lib/prosody/data" plugin_paths = { "/usr/lib/pros...
return "from_file"
-- Exports models to the file tree -- export many things -- format: exports = { [<path>] = instance, ... } local function export(exports) for directory, instance in pairs (exports) do remodel.createDirAll(directory) local children = instance:GetChildren() for _, model in pairs (children) do remodel.writeMode...
-- Copyright (c) 2021 Kirazy -- Part of Artisanal Reskins: Compatibility -- -- See LICENSE in the project directory for license information. -- Check to see if reskinning needs to be done. if not mods["extendedangels"] then return end if not (reskins.angels and reskins.angels.triggers.smelting.items) then return end ...
-------------------------------------------------------------------------------- -- Module declaration -- local mod, CL = BigWigs:NewBoss("Pandemonius", 557, 534) if not mod then return end mod:RegisterEnableMob(18341) -- mod.engageId = 1900 -- no boss frames, no ENCOUNTER_END on a wipe -- mod.respawnTime = 0 -- rese...
----------------------------------- -- Area: Port Jeuno -- NPC: Leyla -- Standard Merchant NPC ----------------------------------- local ID = require("scripts/zones/Port_Jeuno/IDs") require("scripts/globals/shop") function onTrade(player,npc,trade) end function onTrigger(player,npc) local stock = { 1...
local type = type local pairs = pairs local type = type local mrandom = math.random local sgsub = string.gsub local json = require("cjson") local _M = {} function _M.clear_slash(s) s, _ = sgsub(s, "(/+)", "/") return s end function _M.is_table_empty(t) if t == nil or _G.next(t) == nil then retur...
--[[ Name: "sh_stationary_radio.lua". Product: "HL2 RP". --]] local ITEM = {}; -- Set some information. ITEM.name = "Stationary Radio"; ITEM.cost = 75; ITEM.model = "models/props_lab/citizenradio.mdl"; ITEM.weight = 5; ITEM.access = "v"; ITEM.category = "Perpetuities" ITEM.business = true; ITEM.vocations = {VOC_CPA_E...
local Bird = {} Bird.__index = Bird function Bird.new(x, y, w, h, gravity, jump_speed) local self = setmetatable({}, Bird) self.x = x self.y = y self.w = w self.h = h self.gravity = gravity self.jump_speed = jump_speed self.speed = 0.0 return self end function Bird:update_speed(dt) self.speed = se...
return { name = "letiulthecode/Old-Machine", version = "1.0.3", description = "A mega simple bot made in discordia withot any other external libraries", tags = { "discordia", "luvit" }, license = "MIT", author = { name = "Git (lethel)", email = "minebuckbr@gmail.com" }, --i created that email ...
id = 'V-38669' severity = 'low' weight = 10.0 title = 'The postfix service must be enabled for mail delivery.' description = 'Local mail delivery is essential to some system maintenance and notification tasks.' fixtext = [=[The Postfix mail transfer agent is used for local mail delivery within the system. The default c...
DEFINE_BASECLASS( "player_element" ) local player = {} player.WalkSpeed = 500 player.Icon = Material("element/classes/air.png", "unlitgeneric") player.Color = _COLOR.WHITE player.Sound = "taikos2" player.Track = "calm" player.Health = 100 player.skills = {} player.skills[KEY_Q] = "air_storm" player.skills[KEY_E] = "...
local playsession = { {"Gerkiz", {6804}}, {"moocat12", {95406}}, {"Menander", {198537}}, {"realDonaldTrump", {175910}}, {"TheRealSlimChewy", {58835}}, {"MeggalBozale", {106547}}, {"762x51mm", {100371}}, {"Knex_gamingYT", {25508}}, {"rocifier", {36916}} } return playsession
-- Debug require'utils.debug' -- Mappings require'keys.mappings' -- Settings require'general.settings' -- Configs require'configs' -- Theming require'theming' -- Plugins require'packer.plugins'
local tankEquipment = script:GetCustomProperty("TankEquipment"):WaitForObject() local tankMovementControllerServer = script:GetCustomProperty("TankMovementControllerServer"):WaitForObject() local serverAdjustmentPoint = script:GetCustomProperty("ServerAdjustmentPoint"):WaitForObject() local adjustmentPoint = script:Ge...
--[[ The Clan class ]]-- CClan = {} CClan.__index = CClan function CClan:new(...) local Clan = {...} if type(Clan[1]) ~= "number" then outputDebugString("Clans: Missing data 'ClanID' :: ["..tostring(type(Clan[1])).."] "..tostring(Clan[1])) return nil end if type(Clan[2]) ~= "string" then outputDebugString("Cl...
------------------------------------------------------------------------ --[[ FacialKeypointFeedback ]]-- -- Feedback -- Measures error with respect to targets and optionaly compares this to -- constant (mean) value baseline ------------------------------------------------------------------------ local FacialKeypointF...
local Roact = require(script.Parent.Roact) local withRouter = require(script.Parent.withRouter) local Redirect = Roact.PureComponent:extend("Redirect") function Redirect:render() return withRouter(function(router) local props = self.props local history = router.history if props.replace then history:replace...
local Instruction = {} Instruction.__index = Instruction -- Все обрабатываемые Instruction Instruction.ValidInstructions = { ["say"] = true, ["set-name"] = true, ["set-data"] = true, ["get-data"] = true, ["set-image"] = true, ["draw-image"] = true, ["set-scene"] = true, ["...
require "validation" function updateRendererBSDFList(bsdf) _G["__RENDERER_ELEMENTS__"]["__BSDF_COUNT__"] = _G["__RENDERER_ELEMENTS__"]["__BSDF_COUNT__"] + 1 _G["__RENDERER_ELEMENTS__"]["__BSDFS__"][_G["__RENDERER_ELEMENTS__"]["__BSDF_COUNT__"]] = bsdf return _G["__RENDERER_ELEMENTS__"]["__BSDF_COUNT__"] en...
FixServerThinking = false RunConsoleCommand('sv_hibernate_think', '1') timer.Simple(0, function () if (RealTime() < 120) then timer.Simple(1, function() RunConsoleCommand("bot") end) FixServerThinking = true end end) hook.Add("PlayerInitialSpawn", "Fix.KickBotAf...
local InputUtils = {} function InputUtils.readLine() return io.stdin:read("*l") end function InputUtils.readChar() return io.stdin:read(1) end return InputUtils
-- Copyright 2022 SmartThings -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in ...
WireToolSetup.setCategory( "Input, Output" ) WireToolSetup.open( "lever", "Lever", "gmod_wire_lever", nil, "Levers" ) if CLIENT then language.Add( "tool.wire_lever.name", "Lever Tool (Wire)" ) language.Add( "tool.wire_lever.desc", "Spawns a Lever for use with the wire system." ) language.Add( "tool.wire_lever.minva...
-- -- Created by Noneatme -- User: Noneatme -- Date: 25.02.2015 -- Time: 12:02 -- Copyright(c) 2015 - iLife Team and Developers -- cNameTags = {} --[[ ]] -- /////////////////////////////// -- ///// New ////// -- ///// Returns: Object ////// -- /////////////////////////////// function cNameTags:new(...) loc...
------------------------------------------------------------------------------- -- NetCheck provides functions to detect changes in network connectivity. -- This module will create no global, it returns the <code>netcheck</code> table with -- the defined functions (see below).<br/> -- <br/>NetCheck is free software...
-- https://github.com/numToStr/Comment.nvim -- -- https://github.com/JoosepAlviste/nvim-ts-context-commentstring -- local comment_string = require("ts_context_commentstring") require("Comment").setup( { toggler = { -- 切换行注释 line = "gcc", --- 切换块注释 block = "gCC...
function onCreate() -- background shit makeAnimatedLuaSprite('smokey', 'garSmoke', -2000, -1100) addAnimationByPrefix('smokey','Idle','smokey instance','24',true) objectPlayAnimation('smokey','Idle',false) scaleObject('smokey', 3.1, 3.1); makeLuaSprite('garMinusMistStageBG', 'garMinusMistStageBG', -90...
ProjectName = "TextureLib" project( ProjectName ) config_list = { "Debug", "Release", "Debug DLL", "Release DLL" } configurations( config_list ) files( { "*.cpp", "*.h", "Converters/*.cpp", "Converters/*.h" } ) excludes( { "Converters/Texture360.*", "Converters/TexturePS3.*" } ) libdirs( { FOREIGN_SRC_DIR .. "...
local games = require("Games") local misc = require("Misc") local loveletter = {} local guardFunc, priestFunc, baronFunc, handmaidFunc, princeFunc, kingFunc, countessFunc, princessFunc --###################################################################################################################################...
local skynet = require "skynet" local args = {...} if #args == 0 then table.insert(args, "1_base") end -- 全局唯一服务 -- 全局唯一的服务等同于单例,即不管调用多少次创建接口, -- 最后都只会创建一个此类型的服务示例,且全局唯一。 -- skynet.uniqueservice(global, ...) -- 带参数global时,则表示此服务在所有节点之间是唯一的。 -- 第一次创建唯一服,返回服务地址,第二次创建的时候不会正常创建服务, -- 只是返回第一次创建的服务地址。 skynet.start(funct...
AttackEffect = GameObject:extend() function AttackEffect:new(area, x, y, opts) AttackEffect.super.new(self, area, x, y, opts) self.depth = 75 self.x, self.y = math.floor(self.x), math.floor(self.y) self.current_color = default_color self.timer:after(0.2, function() self.current_color = s...
if AkDebugLoad then print("[#Start] Loading ak.data.TrackCollector ...") end local EventBroker = require("ak.util.EventBroker") local RuntimeRegistry = require("ak.util.RuntimeRegistry") ---@class TrackDetection ---@field tracks table<number, Track> ---@field trackType string ---@field reservedFunction function ---@fi...
data:extend({ { type = "recipe", name = "mass-driver", enabled = false, ingredients = { {"advanced-circuit", 20}, {"concrete", 60}, {"iron-gear-wheel",20}, {"steel-plate",20}, {"accumulator",10}, {"radar",1}, }, energy_required = 30, result = "mass-driver", }, { t...
-- Modification loader. -- Dependencies: -- - fn -- - simplerr /*--------------------------------------------------------------------------- Disabled defaults ---------------------------------------------------------------------------*/ fprp.disabledDefaults = {} fprp.disabledDefaults["modules"] = { ["afk"] ...