content
stringlengths
5
1.05M
local bit = require('bit') local ffi = require('ffi') local math = require('math') local string = require('string') local table = require('table') local error = error local pairs = pairs local setmetatable = setmetatable local tostring = tostring local type = type local struct_metatype local struct_array local struct...
-- main source file to run a unit test in pico8 -- this is really useful for data tests and pico8 fixed-point math tests, -- otherwise busted tests should be enough -- each utest should be put inside the src/utests folder with the name utest{something}.lua -- must require at main top, to be used in any required modul...
-- Copyright (c) 2018 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local tiny = require "ext.tiny-ecs" local GuiDisplay = tiny.processingSystem() GuiDisplay.is_draw_system = true GuiDisplay.filter = tiny.requireAll("ui_display")...
local sprites = {} function sprites:new(image, collumns, rows, durationInSeconds) durationInSeconds = durationInSeconds or 0 if type(durationInSeconds) == "string" then durationInSeconds = helper:stringSplit(timing, ":")[1] or 0 elseif type(durationInSeconds) == "table" then durationInSeconds = durationInSecond...
-- -------------------- -- TellMeWhen -- Originally by Nephthys of Hyjal <lieandswell@yahoo.com> -- Other contributions by: -- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol, -- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune -- Currently maintained by -- Cybeloras of Aerie ...
--[[ Copyright 2012 Rackspace 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 writing, software dis...
AttackWall = Class(BehaviourNode, function(self, inst) BehaviourNode._ctor(self, "AttackWall") self.inst = inst end) function AttackWall:__tostring() return string.format("target %s", tostring(self.target)) end function AttackWall:Visit() if self.status == READY then local radius...
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA function DecodeMazePart2D(st, d1, d2) st = util.Base64Decode(st) print(st:len(), math.ceil(d1 * d2 / 8)) assert(st:len() == math.ceil(d1 * d2 / 8)) local dec = {} local byte = 0 local ...
-- 实验nginx: openresty http://openresty.org/cn/index.html --------安装-------------- -- https://github.com/bungle/lua-resty-template --cp lua-resty-template/lib/resty/template.lua /usr/local/lib/nginx/openresty/lualib/resty --cp -r lua-resty-template/lib/resty/template /usr/local/lib/nginx/openresty/lualib/resty -------...
vim.g.nvim_tree_lsp_diagnostics = 1
------------------------------------------------------------------------------- -- register_service.lua ------------------------------------------------------------------------------- local world = require "world" local service = require "service" local INFO_MSG = tengine.INFO_MSG local _M = {} function _M.command(...
local function calc_msg_len(len) local msg_len = 1 local limit = 9 while(true) do if len < limit then break end msg_len = msg_len + 1 limit = 10^msg_len - msg_len end return len + msg_len end local function _join_headers(headers) local t = {} for key,val i...
--[[========================================= _ _ _ | | | | | | /\ /\ | | | | | | / \ _ __ _ __ / \ _ __ ___ | | | | | |/ /\ \ | '_ \| '_ \ / /\ \ | '__/ __| | |___| |__| / ____ \| |_) | |_) / ____ \| | | (__ |______\____/_/ \_\ .__/| .__/_/ \_\_| \___| Scripting Pro...
return { dep = { --sh = 'zsh', --cc = 'clang', --py3 = '/usr/bin/python3', }, path = { home = nil, cloud = nil, desktop = nil, bin = nil, }, tui = { --bg = 'dark', --theme = '', }, gui = { font_half = 'Consolas',...
-- -------------------- -- TellMeWhen -- Originally by Nephthys of Hyjal <lieandswell@yahoo.com> -- Other contributions by: -- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol, -- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune -- Currently maintained by -- Cybeloras...
-- Build admin panel local function AdminPanel(panel) if not LocalPlayer():IsAdmin() then return end panel:CheckBox(Metrostroi.GetPhrase("Panel.RequireThirdRail"),"metrostroi_train_requirethirdrail") end -- Build regular client panel local function ClientPanel(panel) panel:ClearControls() panel:SetPaddi...
local screenW, screenH = guiGetScreenSize() window = guiCreateWindow((screenW - 730) / 2, (screenH - 406) / 2, 730, 406, "Yakın Çevrede Çıkan Oyuncular", false) guiWindowSetSizable(window, false) guiSetVisible(window,false) gridlist = guiCreateGridList(9, 25, 711, 315, false, wi...
help( [[ This module loads ROOT 6.06-02 with python 3.4 support into the environment. ROOT is a physics analysis application. ]]) whatis("Loads the ROOT data analysis environmemt") local version = "6.06-02-py34" local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/root/"..version pushenv("ROOTSYS", base) pre...
require "util.configuration" local b = require "util.broker" require "util.ecs" local gw = require "system.game.window" local gi = require "system.game.input" local ie = require "entity.game.input" local ui = require "system.ui.ui" local ce = require "entity.ui.cursor" require "entity.ui.osdi" require "entity.ui.window...
--[[ 用户默认配置 存储 ]]-- local function doTest() print("********************** init value ***********************") -- set default value -- 设置默认值 cc.UserDefault:getInstance():setStringForKey("string", "Yiang")-- 字符串 cc.UserDefault:getInstance():setIntegerForKey("integer", 10)-- 整型 cc.UserDefault:ge...
gungan_veermok = Creature:new { objectName = "@mob/creature_names:gungan_veermok", socialGroup = "gungan", faction = "gungan", level = 22, chanceHit = 0.35, damageMin = 210, damageMax = 220, baseXp = 2006, baseHAM = 5900, baseHAMmax = 7200, armor = 0, resists = {10,10,10,10,10,10,10,-1,-1}, meatType = "mea...
if pcall(require,'busted.runner') then require('busted.runner')() else describe = function(_,cb) -- luacheck: ignore cb() end it = function(_,cb) -- luacheck: ignore cb() end end local mode = os.getenv('TESTMODE') if not mode then mode = 'core' end local lib = require('luasodium.' .. mode) local ...
dxServerTheme = tocolor(142, 109, 75, 200); dxServerTheme2 = tocolor(209, 156, 104, 240); dxServerTheme3 = {222, 184, 135}; dxServerTheme4 = {222, 184, 135, 180}; dxServerTheme5 = tocolor(142, 109, 75, 255); addEventHandler("onClientElementDataChange",root,function(dataName) if (dataName == "setting.servertheme") the...
local activeWindow function init() g_ui.importStyle('textedit') connect(g_game, { onGameEnd = destroyWindow }) end function terminate() disconnect(g_game, { onGameEnd = destroyWindow }) destroyWindow() end function destroyWindow() if activeWindow then activeWindow:destroy() activeWindow = nil e...
local api = vim.api local function get_file_name() local cur_buf = api.nvim_get_current_buf() local path = api.nvim_buf_get_name(cur_buf) return path end local function valid_file(fn) if vim.endswith(fn, "_test.go") then return 1 elseif vim.endswith(fn, ".go") then return 0 en...
--The colorizer is for applying a colors theme on parser output, so it could be used for printing. colorizer = {} colorizer.defaultColor = 7 colorizer.theme = {} function colorizer:setTheme(theme) self.theme = theme end function colorizer:getColor(name) return self.theme[name] or self.defaultColor end function ...
local insert, remove do local _obj_0 = table insert, remove = _obj_0.insert, _obj_0.remove end local newLines, allowedOrign, NotifyBase, NotifyAnimated, NotifyDispatcherBase do local _obj_0 = Notify newLines, allowedOrign, NotifyBase, NotifyAnimated, NotifyDispatcherBase = _obj_0.newLines, _obj_0.allowe...
local awful = require("awful") local wibox = require("wibox") local naughty = require("naughty") local vicious = require("vicious") BatteryWidget_prototype = function() local this = {} this.__public_static = { -- Public Static Variables -- Public Static Funcs } this.__private_static = { -- Pr...
local function create(arith, v1, v2) local meta = { __add=function(a,b) return arith("add", a, b) end, __sub=function(a,b) return arith("sub", a, b) end, __mul=function(a,b) return arith("mul", a, b) end, __div=function(a,b) return arith("div", a, b) end, __mod=function(a,b) return arith("mod", a...
local Util = require('util') local fs = _G.fs local textutils = _G.textutils local PACKAGE_DIR = 'packages' local Packages = { } function Packages:installed() self.cache = { } if fs.exists(PACKAGE_DIR) then for _, dir in pairs(fs.list(PACKAGE_DIR)) do local path = fs.combine(fs.combine(PACKAGE_DIR, d...
package.loaded["guihua"] = nil package.loaded["guihua.view"] = nil package.loaded["guihua.viewctrl"] = nil package.loaded["guihua.listview"] = nil package.loaded["guihua.listviewctrl"] = nil -- vim.cmd("packadd guihua.lua") local ListView = require("guihua.listview") local TextView = require("guihua.textview") local l...
---@class CS.UnityEngine.Random.State : CS.System.ValueType ---@type CS.UnityEngine.Random.State CS.UnityEngine.Random.State = { }
local r1 = display.newRect(100, 300, 100, 100) local r2 = display.newRect(100, 500, 100, 100) local r3 = display.newRect(100, 700, 100, 100) local r4 = display.newRect(100, 900, 100, 100) local group = display.newGroup(r1, r2, r3, r4) transition.to(group, {x=group.x + 400, time=2000})
dofile("table_show.lua") dofile("urlcode.lua") local urlparse = require("socket.url") local http = require("socket.http") local max_seconds = tonumber(os.getenv("max_seconds")) local max_urls = tonumber(os.getenv("max_urls")) local max_bytes = tonumber(os.getenv("max_bytes")) local item_dir = os.getenv("item_dir") loc...
modifier_legion_commander_duel_damage_oaa_ardm = modifier_legion_commander_duel_damage_oaa_ardm or class({}) function modifier_legion_commander_duel_damage_oaa_ardm:IsHidden() return false -- needs tooltip end function modifier_legion_commander_duel_damage_oaa_ardm:IsDebuff() return false end function modifier_l...
-- Copyright 2013 CoreOS, Inc -- -- 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 ...
require("matrix_common") return { _size = 2, IsMat = function(a) return MatC.IsMat(a) and a._size == 2 end, _postfix = MatC.Postfix, _metatable = MatC.Metatable }
-- Includes local post = require "../models/post" local posts = {} function posts.index(page) -- Get all blog posts from the DB page:render("index", {blog_posts = post.get_all()}) return 200 end function posts.add(page) page:render("post_add") return 200 end function posts.create(page) -- Stop if there's n...
object_mobile_vehicle_pod_racer_light_bending = object_mobile_vehicle_shared_pod_racer_light_bending:new { templateType = VEHICLE, decayRate = 15, -- Damage tick per decay cycle decayCycle = 600 -- Time in seconds per cycle } ObjectTemplates:addTemplate(object_mobile_vehicle_pod_racer_light_bending, "object/mobile/...
class 'cannon' function cannon:shot() local bullet=self.npc_obj:spawnNPC(17, GENERATOR_APPEAR, SPAWN_UP, false) bullet.speedX = self.npc_obj.direction * 3 bullet.speedY = 0 bullet.direction = self.plr_pos_detector:directedTo() bullet.center_y = self.npc_obj.center_y bullet.center_x = self.npc_o...
-- -- -- --Cabbage | 128, 64, 144 | 8 | Y | bulk | 10 --Carrot | 224, 112, 32 | 10 | Y | bulk | 10 --Clay | 128, 96, 32 | 4 | Y | bulk | 20 --DeadTongue | 112, 64, 64 | 500 | N | normal | 4 --ToadSkin | 48, 96, 48 | 500 | N | normal | 4 --...
require 'nn' require 'cunn' require 'gvnn' require 'nngraph' local BN = nn.SpatialBatchNormalization local MP = nn.SpatialMaxPooling local MU = nn.SpatialMaxUnpooling local RL = nn.ReLU local conv = nn.SpatialConvolution local deconv = nn.SpatialFullConvolution local MT = nn.MapTable local pool = {} pool[1] = MP(2,...
-- Do nothing if not on GLUE screen. if (not IsOnGlueScreen()) then return; end -- Login email. If not previously set by SetSystemVariable, use "test@test.com". local email = wmbapi.GetSystemVar("relogger.email") or "test@test.com"; -- Login password. If not previously set by SetSystemVariable, use "password". loc...
-- -- Premake5 virtual projects extension -- Author : Bastien Brunnenstein -- local p = premake p.api.register { name = "virtualproject", scope = { "project" }, kind = "boolean", } premake.override(p.main, "postBake", function(base) print "Removing virtual projects..." for sln in p.global.eachSolution() ...
require "Window" local F = _G["ForgeLibs"]["ForgeUI"] -- ForgeUI API local G = _G["ForgeLibs"]["ForgeGUI"] -- ForgeGUI local ForgeUI_PetFrames = { _NAME = "ForgeUI_PetFrames", _API_VERSION = 3, _VERSION = "2.0", DISPLAY_NAME = "Pet frames", tSettings = { profile = { crBorder = "FF000000", crBackground =...
-- Copyright (c) 2011 by Robert G. Jakabosky <bobby@sharedrealm.com> -- -- 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 u...
if not COMBINE_LOCK then COMBINE_LOCK = {} end include('include/editor_gui/rule_editor.lua') include('include/editor_gui/rule_dialog.lua') include('include/editor_gui/owner_editor.lua') local PANEL = {} function PANEL:Init() local propsheet = vgui.Create("DPropertySheet",self) propsheet:Dock(FILL) self.ruleeditor...
-- module local TextureBaseModule = {} -------------------------------------------------------------------- local SupportedTextureAssetTypes = '' function getSupportedTextureAssetTypes () return SupportedTextureAssetTypes end function addSupportedTextureAssetType ( t ) if SupportedTextureAssetTypes ~= '...
local function checkPlayerSpawn(ply, ent, entTable) if (istable(ent)) then ent = ent.Class end if (ent == "prop_physics") then return nil end local ret = nil --Check if ent is restricted in all the different types if (table.HasValue(WUMA.GetWeapons(),ent)) and (WUMA.PlayerSpawnSWEP( ply, ent,...
--[[ -- added by wsh @ 2017-12-05 -- 客户端数据 --]] local ClientData = BaseClass("ClientData", Singleton) local function __init(self) self.app_version = CS.GameChannel.ChannelManager.Instance.appVersion self.res_version = CS.GameChannel.ChannelManager.Instance.resVersion self.account = CS.UnityEngine.PlayerPrefs.GetSt...
data:extend( { { type = "technology", name = "pallets", icon = "__pallets__/graphics/technology/pallets.png", icon_size = 128, effects = { { type = "unlock-recipe", recipe = "empty-pallet" } }, prerequisites = {"logistics-2"}, unit = { count = ...
lunar_horse_sun_orb_countdown_modifier = class({}) function lunar_horse_sun_orb_countdown_modifier:OnCreated( kv ) self.duration = self:GetAbility():GetSpecialValueFor("duration") self.move_distance_min = self:GetAbility():GetSpecialValueFor("move_distance_min") self.move_distance_max = self:GetAbili...
-- -- Copyright (c) 2021 Piotr Stolarz -- Copua: Lua CoAP library -- -- Sample CoAP server -- local coap = require("copua") -- -- CoAP request handler -- local function req_handler(req, resp) local conn = req.get_connection() print(string.format("Remote peer: %s:%d", conn.get_addr(), conn.get_port())); p...
function City:GetColonyStatsButtons() local resource_overview_obj = ResourceOverviewObj local t = { { button_caption = T(547, "Colonists"), button_text = T(9640, "Show historical data for Colonists, unemployed and homeless."), on_icon = "UI/Icons/ColonyControlCenter/colonist_on.tga", off_icon = "UI/Icon...
pacx.ServerModifiers = {} function pacx.AddServerModifier(id, func) local cvar local default = 1 if GAMEMODE and GAMEMODE.FolderName and not GAMEMODE.FolderName:lower():find("sandbox") then default = 0 end if SERVER then cvar = CreateConVar("pac_modifier_" .. id, default, CLIENT and {FCVAR_REPLICATED} or ...
local appName, internal = ... local require = internal.require; local export = internal.Module.export; internal.build = {} -- Collection of libraries to build internal.ext = nil -- Root extension local Tools = require("Tools") local Action, Extension, Character, UI, Effect, Timer, Event, Callback, Database,...
Common_UnitConsumeActPoint(attacker, 1); local all_targets = Pet_targets() Common_Sleep(attacker, 0.6); FireRandomTarget(1903210, attacker, all_targets, nil, { Hurt = attacker.ad, Type = 4, Element = 3, Attacks_Total = GetPetCount(attacker), }) Common_Sleep(attacker, 0.3)
--------------------------------------------------- -- Welcome to the Wonderful World of Mobile Lua! -- --------------------------------------------------- -- This script tests calling database syscalls. -- No error handling is done! -- Note that this example works on Android and iOS, -- and NOT on Windows Phone. -- ...
local class = require('middleclass') local Controller = require('mvc.Controller') local HasSignals = require('HasSignals') local GVRecordListController = class("GVRecordListController", Controller):include(HasSignals) function GVRecordListController:initialize(group) Controller.initialize(self) HasSignals.init...
local att = {} att.name = "bg_makpmext" att.displayName = "Extended Magazine" att.displayNameShort = "Ext. Mag" att.statModifiers = {ReloadSpeedMult = -.05} if CLIENT then att.displayIcon = surface.GetTextureID("atts/bg_makpmext") att.description = {[1] = {t = "Increases mag capacity to 14.", c = CustomizableWeapon...
-- CosVent, NotQuiteApex (c) 2018 -- love.module shortcuts local la = love.audio local le = love.event local lf = love.filesystem local lg = love.graphics local li = love.image local lj = love.joystick local lk = love.keyboard local lm = love.mouse local ln = love.math local lp = love.physics local ls = love.system l...
local core = require("apisix.core") local exporter = require("apisix.plugins.prometheus.exporter") local plugin_name = "prometheus" local schema = { type = "object", additionalProperties = false } local _M = { version = 0.1, priority = 500, name = plugin_name, init = exporter.init, log ...
nameManagerRodian = { -- Name Rules (First and last name) -- nameChance - Chance that the name generator will create the first or last name. Setting to 0 will prevent -- the name generator from generating the name. First name should always be 100. -- uniqueChance - Chance that the generator will mak...
return {'swing','swingen','switch','switchen','swipi','swingmuziek','swingpaleis','swingarm','swier','swinkels','swieten','swieringa','swillens','swildens','swierstra','swiebel','swingde','swingden','swingend','swingende','swingender','swingendste','swings','swingt','switcht','switchte','swipis'}
LinkLuaModifier("modifier_hawk_dive_stun", "abilities/oaa_beastmaster_hawk_dive.lua", LUA_MODIFIER_MOTION_NONE) beastmaster_hawk_dive_oaa = class(AbilityBaseClass) function beastmaster_hawk_dive_oaa:Precache(context) PrecacheResource("particle", "particles/beastmaster_hawk/hawk_dive_bomb_tracking_projectile.vpcf", ...
slot0 = class("BackYardThemeTemplateSortPanel", import("....base.BaseSubView")) slot1 = { "sort_default", "sort_time", "sort_like" } function slot2(slot0) return i18n(slot0[slot0]) end slot0.GetChineseByIndex = function (slot0) return slot0(slot0) end slot0.getUIName = function (slot0) return "BackYardThemeTem...
a = 100; if( a < 20 ) then print("a is less than 20" ) else print("a is not less than 20" ) end print("value of a is :", a)
-- Gestion, création des stages, vagues d'ennemis, gestion du level etc... STAGE_TEST = 0 -- uniquement pour des tests Stages = class.set() function Stages:init() self.targets = {} self.targets.stack ={} self.targets.active ={} self.level = 1 self.score = 0 self.gameStep = 0 self.victor...
local Application = dofile(_G.spoonPath.."/application.lua") local actions = { search = Application.createMenuItemEvent("Search", { focusAfter = true }), newPlaylist = Application.createMenuItemEvent("New Playlist", { focusAfter = true }), newPlaylistFolder = Application.createMenuItemEvent("New Playlist Fo...
local completion = require "cc.shell.completion" local complete = completion.build({completion.choice, {"autorun"}}) shell.setCompletionFunction("apps/pipe-activity.lua", complete) shell.setAlias("pipe-activity", "apps/pipe-activity.lua")
require "util" local file = fs.ydwe_path() / "bin" / "EverConfig.cfg" local tbl_index = { MapSave = { Option = "0" }, HostTest = { Option = "0" }, War3Patch = { Option = "0" }, MapTest = { EnableHost = "0", LaunchRenderingEngine = "Direct3D 8", LaunchWindowed = "1", LaunchFullWi...
local Tunnel = module("_core", "lib/Tunnel") local Proxy = module("_core", "lib/Proxy") API = Proxy.getInterface("API") cAPI = Tunnel.getInterface("API") dbAPI = Proxy.getInterface("API_DB") local Orgs = {} local cacheOrgs = {} function Orgs.Create(org_name) local org_id local rows = dbAPI.query("orgs:inser...
-- Copyright (c) 2019 Redfern, Trevor <trevorredfern@gmail.com> -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("Mouse", function() local mock_love = require "moonpie.test_helpers.mock_love" local node = require "moonpie.ui.node" local mouse = require "moonp...
-- Test bed Lovr app local letters = require('letters') -- state local font = lovr.graphics.newFont(24) local app = {} -- global function lovr.load() letters.load() lovr.graphics.setBackgroundColor(0.95, 0.98, 0.98) letters.defaultKeyboard = letters.HoverKeyboard app.hoverButton = letters.root:addChild(le...
print("Napis, na ktere strane je monitor: [top|bottom|left|right|front|back]") local side = read() monitor = peripheral.wrap(side) monitor.setTextScale(1.7) monitor.clear() print("Vyhledat hrace:") local nick = read() monitor.setCursorPos(1,1) monitor.setTextColor(colors.gray) monitor.write("Informace o hraci: ") monit...
local M = {} -- split the string according to the pattern and return an array function M.split(string, pattern) -- cf. http://lua-users.org/wiki/SplitJoin local result = {} -- NOTE: use {n = 0} in Lua-5.0 local findPattern = "(.-)" .. pattern local last_end = 1 local s, e, cap = string:find(findPattern, 1) ...
--[[ HTTPClient wrapper @author ikubicki MIT License Copyright (c) 2020 Irek Kubicki 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 ...
--[kirill] -- helper entity - to be used as wreck for destroyed vehicles -- --filippo: store the splash sound just once. PieceShared = { SplashSound = Sound:Load3DSound("sounds/player/water/watersplash.wav", 0, 255, 50, 300), } Piece = { name = "Piece", isActive = 0, isTouching = 0, lastPoint = {x=0,y=0,z=0}, ...
--- -- CollisionData.lua - Management and storage of per-player collision data -- local Physics = game:GetService("PhysicsService") local CollisionData = { collisionData = {}, } function CollisionData.updateCollision(player, part) if CollisionData.collisionData[player] then Physics:SetPartCollisionGroup(part, "C...
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) ...
--[[ # docx-apply-cell-styles.lua Finds table; get list of alignment; get list of styles to apply; apply styles for each cell ]] --local pretty = require("pl.pretty") local stringify = require("pandoc.utils").stringify local debug = require("pandocker.utils").debug local util_get_meta = require("pandocker.utils").uti...
--------------------------------------------------------------------------------------------------- -- Common module --------------------------------------------------------------------------------------------------- --[[ General configuration parameters ]] config.defaultProtocolVersion = 3 config.application1.register...
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** require "ISUI/ISScrollingListBox" ---@class MapSpawnSelect : ISPanelJoypad MapSpawnSelect = ISPanelJoypad:derive("MapSpawnSelect") ...
local crNotice = { DOCUMENT = "HPC Crash Player, Phasor V2+.lua", VERSION = "1.1.0", DESCRIPTION = "This script will crash the user on join (based on IGN and Hash)", ENGINE = "Phasor V2+ (modified)", INTENDED = "Halo PC (Combat Evolved)", URL = "https://github.com/Chalwk77", AUTHOR = "Jerich...
local minimizeTime = 60000 -- Time before minimizing kills in ms local minimizeRunningTick = false addEvent('informClientAntiMinimize',true) addEventHandler('informClientAntiMinimize',root,function(isRunning, tick) if isRunning then minimizeRunningTick = getTickCount() else minimizeRunningTic...
local awful = require("awful") -- auto launchs awful.spawn.with_shell("/home/flagmate/.config/polybar/launch.sh") awful.spawn.with_shell("/home/flagmate/.config/awesome/scripts/keyboardxmodmap.sh") -- awful.spawn.with_shell("/home/flagmate/.config/awesome/scripts/picom.sh")
local ReplicatedStorage = game:GetService("ReplicatedStorage") local Roact = require(ReplicatedStorage.Modules.Roact) local ResolutionScale = require(script.Parent.ResolutionScale) local function join(...) local new = {} for i = 1, select("#", ...) do for key, value in pairs((select(i, ...))) do new[key] = v...
DefineClass.SolarPanel = { __parents = { "ElectricityProducer" }, building_update_time = const.HourDuration, panel_entity = false, panel_obj = false, open_close_thread = false, interaction_state = false, artificial_sun = false, } function SolarPanel:GameInit() self.panel_obj = self:GetAttaches(self:GetEntity...
--[[ Name: SpreadJam timer Author: Dale Williams Use Case: - Timer counts down footage recorded up to 24hr Reasearch: - Adaptive CountDown by Tormy Van Cool - OBS Stats on Stream by GreenComfyTea ]] obs = obslua APP_NAME = "SpreadJam" APP_VERSION = "1.0.0" SOURCE_NAME = "SpreadJam" TEXT_PRE...
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of the author. --]] ITEM.name = "Green Beanie"; ITEM.model = "models/fty/items/greenbeanie.mdl" ITEM.price = 12 ITEM.description = "A green beanie made of a comfortable wool with extra fabric near the base to cover the ears. Keeps the ...
local PLUGIN = PLUGIN or { }; function PLUGIN:CanFallOver( client ) if (client:GetOverrideSeq()) then nut.util.Notify(PLUGIN:GetPluginLanguage("act_cant_fallover"), client) return false end end function PLUGIN:PlayerStartSeq(client, sequence) if (client:GetNutVar("nextAct", 0) >= CurTime()) then nut.util.No...
local Gui = require 'utils.gui' local Model = require 'utils.debug.model' local Color = require 'utils.color_presets' local dump = Model.dump local dump_text = Model.dump_text local concat = table.concat local Public = {} local ignore = {tokens = true} local header_name = Gui.uid_name() local left_panel_name = Gui....
return { [123644]={ [1]=234018,--Schutzumhang der alten Geister [2]=234019,--Schutzhalskette der alten Geister [3]=234020,--Schutzring der alten Geister [4]=234021,--Schutzohrring der alten Geister [5]=234029,--Massakerumhang der alten Geister [6]=234030,--Massakerhalskette der alten Geister [7]=23403...
function love.load() shapes = {} sounds = {} radius = 1 -- starting radius for circles love.keyboard.setKeyRepeat(true) rate = 1 -- grow rate for circle, should become an arg sine = love.audio.newSource("sine.wav", "static") sine:setLooping(false) chaos = false -- incoming arg: is it a c...
local Mod = GetMod() Mod:PrintDebug("Loading Client files", "Client") for i = 1, #Mod.config.modules do local path = Mod:FormatDir(Mod.config.modules[i], "Client") local ClientFiles = {} Shared.GetMatchingFileNames(path, true, ClientFiles) for i = 1, #ClientFiles do Mod:PrintDebug("Loading client file: " .. C...
Talk(17, "上回灵蛇岛的事,多谢少侠的帮忙.", "talkname17", 0); do return end;
local checkpoints = require("Checkpoints/checkpoints") local nocrap = require("Modules.Dregu.no_crap") local death_blocks = require("Modules.JawnGC.death_blocks") local sunkencity6 = { identifier = "sunkencity 6", title = "Sunken City 6: The Real Treasure", theme = THEME.SUNKEN_CITY, width = 8, hei...
--[[ Netherstorm -- Overseer Seylanna.lua This script was written and is protected by the GPL v2. This script was released by BlackHer0 of the BLUA Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation community. ~~End of License Agreement -- BlackH...
----------------------------------- -- Area: Konschtat Highlands -- Mob: Rock Eater ----------------------------------- require("scripts/globals/regimes") ----------------------------------- function onMobDeath(mob, player, isKiller) tpz.regime.checkRegime(player, mob, 20, 1, tpz.regime.type.FIELDS) end
t1 = {1,2,3} t2 = t1 print(type(t1)) print(type(t2)) print(t1 == t2) t1["test"] = "asdf" print(t2["test"])