content
stringlengths
5
1.05M
local character local game local lib character = { world = nil, alive = true, life_time = 0, life_elapsed = 0, sort = 0, x = 0, y = 0, offset_x = 0, offset_y = 0, source = nil, draw = function(self, event) if (self.alive) then love.graphics.draw(self.source, (game.tile_size * game.scale * self.x...
--[[ MTA Role Play (mta-rp.pl) Autorzy poniższego kodu: - Patryk Adamowicz <patrykadam.dev@gmail.com> Discord: PatrykAdam#1293 Link do githuba: https://github.com/PatrykAdam/mtarp --]] local doors = {} function loadDoors() local count = 0 local doorsData = exports.sarp_mysql:mysql_result("SELE...
Menu = {} --[[ Functions: Menu ]]-- function Menu:Init() self.isLoaded = true self:Invoke(false, "loadConfig", { effects = Config.Effects, bones = Config.Bones, }) end function Menu:Invoke(target, method, ...) SendNUIMessage({ invoke = { target = target, method = method, args = {...}, } }) end ...
-------------------------------- -- @module sp -------------------------------------------------------- -- the sp Skeleton -- @field [parent=#sp] Skeleton#Skeleton Skeleton preloaded module -------------------------------------------------------- -- the sp SkeletonAnimation -- @field [parent=#sp] SkeletonAnimation#S...
local Buffer = require("lib/buffer") local BackWord = require("lib/motions/back_word") describe("BackWord", function() it("has a name", function() assert.are.equals("back_word", BackWord:new().name) end) describe("#getRange", function() it("handles simple words", function() local buffer = Buffer:n...
require 'dp' --[[parse command line arguments]]-- cmd = torch.CmdLine() cmd:text() cmd:text('PostgreSQL MLP Training/Optimization') cmd:text('Example:') cmd:text('$> th pgnn.lua --collection "MnistMLP1" --batchSize 128 --momentum 0.5') cmd:text('$> th pgnn.lua --collection "Mnist-MLP-baseline1" --batchSize 128 --learn...
resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'
_tile = _{ new = function(this, args) merge( this, { id = 1, sprite = 16, x = 1, y = 1 } ) merge(this,args) if this.id == 1 then this.passable = true end end, to_string = function(this) return this.x..", "..this.y..": "..this.id end...
-- Triangle wave. local SoundUnit = require((...):gsub('[^.]*$', '') .. 'soundunit') local function process (t, v) return math.abs(2 * v) - 1 end return function (t) t = SoundUnit(t) t.process = process return t end
format_version = "3.0" function linearType() return jbox.ui_linear { min=0, max=1, units = { min_text = jbox.ui_text("zero"), max_text = jbox.ui_text("one"), { decimals=2, unit = { template = jbox.ui_text("linear_template") } } } } end function rangeType(n...
local g_InitCallbacks = {} local g_PreInitFuncs = {} local _addEventHandler local g_Co, g_CoTicks local g_ScoreBoardRes #DBG_START_PERF = false local function setupDatabase() if (not DbInit()) then return false end if (not Settings.init()) then return false end if (not Updater.run()) the...
--[[ You can modify speeds via the main folder in this template. ]] local containerFolder = script.parent.parent local function CanRun() -- any condition you want (stamina checking etc) return true end local function UpdateWalkSpeed(player, states) local prefix = states.Crouched and "Crouch" or "" lo...
PLUGIN.commands = {} local times = { {1,"1 Год","1г"}, {2,"1 Месяц","1м"}, {3,"1 Неделя","1н"}, {4,"1 День","1д"}, {5,"30 Минут","30м"}, {6,"1 Минута","1м"}, } local reasons = { "Неуважение администрации.", "Некорректный RolePlay.", "Метагейм.", "Пауэргейм.", "Неуважительный RP.", "Нечестная игра.", "Нару...
local ShakeAction = {} function ShakeAction.create(node,call,is) local ts = 1.05 if is then ts = is end local os = node:getScale() local s0 = cc.ScaleTo:create(0.05,os * ts) local s1 = cc.ScaleTo:create(0.1,os) local action if call then action = cc.Sequence:create(s0,s1,cc.CallF...
function _hack_prime_log() -- this seems to make it update the data much quicker for i=1,GetNumQuestLogEntries()+1 do GetQuestLogTitle(i) QuestieQuest:GetRawLeaderBoardDetails(i) end end --- GLOBAL --- --This is needed for functions around the addon, due to UnitLevel("player") not returning actual level PL...
local tPeripherals = peripheral.getNames() print( "Attached Peripherals:" ) if #tPeripherals > 0 then for n=1,#tPeripherals do local sPeripheral = tPeripherals[n] print( sPeripheral .. " (" .. peripheral.getType( sPeripheral ) .. ")" ) end else print( "None" ) end
gunslinger = { __stack = {}, __guns = {}, __types = {}, __automatic = {}, __scopes = {}, __interval = {} } local config = { max_wear = 65534, projectile_speed = 500, base_dmg = 1, base_spread = 0.001, base_recoil = 0.001, lite = minetest.settings:get_bool("gunslinger.lite") } -- -- Internal API functions ...
-------------------------------- -- @module EaseQuarticActionInOut -- @extend ActionEase -- @parent_module cc ---@class cc.EaseQuarticActionInOut:cc.ActionEase local EaseQuarticActionInOut = {} cc.EaseQuarticActionInOut = EaseQuarticActionInOut -------------------------------- --- ---@param action cc.ActionInterval...
----------------------------------------------------- WIRELESS DATA TRANSMITTER --------------------------------- -- Entity -- wdtE = table.deepcopy(data.raw["constant-combinator"]["constant-combinator"]) wdtE.type = "constant-combinator" wdtE.name = "WirelessDataTransmitter" wdtE.icon = "__Mobile_Factory_Graphics__/g...
local os_ext = require('os_ext') local str = require('str') local path = {} local _windows_invalid_path_chars = { '"', '<', '>', '|', '\0' } for i = 1, 31 do table.insert(_windows_invalid_path_chars, string.char(i)) end -- returns windows specific cmd string to list all files in the root_directory -- with t...
-- CameraController.singletonInstance.zoomMin = 0.1; -- UnityEngine.Application.targetFrameRate = 60.0; -- RenderSettings.fog = false; if DebugLog == nil then DebugLog = {}; DebugLog.File = io.open("/data/local/tmp/script/rom.log", "a"); DebugLog.Write = function(data) DebugLog.File:write(os.date("%x %X"...
-- harmograph local J = require "include/protojuce" function Harmograph(args) local bounds = args.bounds or J.Rectangle_int{15,0,480,330}; local pageBack = args.pageBack or J.Colour.white; local pageFore = args.pageFore or J.Colour.black; local graphBack = args.graphBack or J.Colour.white; local graphFore = args....
----------------------------------- -- -- Zone: Windurst_Waters (238) -- ----------------------------------- local ID = require("scripts/zones/Windurst_Waters/IDs") require("scripts/globals/events/harvest_festivals") require("scripts/globals/conquest") require("scripts/globals/missions") require("scripts/globals/settin...
local status_ok, telescope = pcall(require, "telescope") if not status_ok then return end local mini_fuzzy_sorter = require("mini.fuzzy").get_telescope_sorter telescope.setup { defaults = { vimgrep_arguments = { "rg", "--color=never", "--no-heading", "--with-filename", "--line-nu...
-- 3rd party libraries include("span-lite") include("spdlog") include("catch2")
-- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!! -- This file is automaticly generated. Don't edit manualy! -- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!! ---@class C_SpellBook C_SpellBook = {} ---[Wowpedia documentation](https://wow.gamepedia.com/API_C_SpellBook.ContainsAnyDisenchantSpell) ---@...
--[[ PersistenceXP data file for Flight Factor 757 ]] module(..., package.seeall) --Modules local LIP = require("LIP") local LARM = nil local RARM = nil local pxpSwitchData = {} function pxpCompile() if (XPLMFindDataRef("anim/armCapt/1") ~= nil) then LARM = get("anim/armCapt/1") end if (XPLMFindData...
local antiSpam = {} local criminalRanks = { --Name, Required Points, whatGiveFunctiom {"L0. Trial", 0, function() return false end}, {"L1. Criminal", 100, function(thePlayer) exports.csgdrugs:giveDrug(thePlayer, "LSD",100 ) exports.csgdrugs:giveDrug(thePlayer, "Cocaine",100 ) exports.csgdrugs:giveDrug(thePlaye...
--[[ author: Aussiemon ----- Copyright 2021 Aussiemon 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, mer...
-- add package path for the example package.path = ";../src/?.lua;"..package.path -- lib local Luaoop = require("Luaoop") class = Luaoop.class -- DEF OBJECT Object = class("Object") Object.color = { BLACK = 0, BLUE = 1, YELLOW = 2, RED = 3, GREEN = 4, WHITE = 5 } function Object:__construct() print("n...
local lm = require "luamake" local fs = require "bee.filesystem" local Platform_renderers = { windows = "direct3d11", ios = "metal", macos = "metal", linux = "vulkan", android = "vulkan", } local stage_types = { fs = "fragment", vs = "vertex", cs = "compute", } local shader_options = { window...
Config = {} Config.Webhook = false Config.WebhookLink = 'https://discord.com/api/webhooks/' Config.Strings= { ['playerleft'] = 'Player left', ['sessiontime'] = 'Session time', ['totaltime'] = 'Total time', ['welcome1st'] = 'Welcome To Secret City Battleground', ['welcome'] = 'Welcome back!', ['ptotaltime'] =...
-- fake "osm2pgsql" table for test, usually created by the main C++ program osm2pgsql = {} -- load the init.lua script that is normally run by the main C++ program package.path = '../src/?.lua' require('init') print("Running Lua tests...") local o = osm2pgsql -- ----------------------------------------------------...
local read, write = io.read, io.write local num, nl = '*n', '\n' while true do local a = read(num) if a == 42 then return end write(a, nl) end
data:extend({ { type = "recipe", name = "advanced-combinator", enabled = false, energy_required = 20, ingredients = { { "constant-combinator", 24 }, { "arithmetic-combinator", 48 }, { "green-wire", 100 }, { "red-wire", 100 } }, result = "advanced-combinator" } })
/* Addon by Voikanaa */ player_manager.AddValidModel( "Snoop Dogg", "models/player/voikanaa/snoop_dogg.mdl" ); player_manager.AddValidHands( "Snoop Dogg", "models/player/voikanaa/snoop_dogg_arms.mdl", 0, "00000000" ) list.Set( "PlayerOptionsModel", "Snoop Dogg", "models/player/voikanaa/snoop_dogg.mdl" );
--------------------------- -- Default awesome theme -- --------------------------- local theme_assets = require "beautiful.theme_assets" local xresources = require "beautiful.xresources" local rnotification = require "ruled.notification" local dpi = xresources.apply_dpi local theme_path = require("gears").filesystem....
module 'mock' -------------------------------------------------------------------- local storyNodeTypeRegistry = {} function registerStoryNodeType( tag, clas ) storyNodeTypeRegistry[ tag ] = clas end -------------------------------------------------------------------- CLASS: StoryGraph () :MODEL{} function StoryGr...
-- Super Monkey Ball (PAL v1.0) local core = require("games.core") local game = core.newGame() local addr = 0x80225E00 local offset = 0x3C local controllers = { [1] = addr + offset * 0, [2] = addr + offset * 1, [3] = addr + offset * 2, [4] = addr + offset * 3, } local controller_struct = { [0x0] = { type = "s...
Tuple = { x = 0, y = 0, z = 0, w = 0, -- https://mathinsight.org/vectors_cartesian_coordinates_2d_3d magnitude = function (self) return math.sqrt(self.x^2 + self.y^2 + self.z^2 + self.w^2) end, normalize = function (self) local mag = self:magnitude() local a = Tuple:new(self.x / mag, self....
if blight then client = require 'client.blight.blight-adapter' require 'client.blight.blight-specific' else local mg_lua_dir = os.getenv('MG_LUA_DIR') package.path = package.path..';'..mg_lua_dir..'/?.lua' local mg_custom_dir = os.getenv('MG_LUA_CUSTOM_DIR') if mg_custom_dir ~= nil then package.path = ...
local Util = {} -- 清空子节点 Util.removeAllChild = function(gameObject) local len = gameObject.transform.childCount local obj = nil for i=0,len-1 do obj = gameObject.transform:GetChild(i).gameObject Object.Destroy(obj) end end -- 切割字符串 Util.split = function(s, p) local rt= {} string.gs...
return 'Hello World'
data:extend({ {type = "bool-setting", name = "diplomacy_tech_tanks_count_switcher", setting_type = "startup", default_value = true}, {type = "bool-setting", name = "diplomacy_hp_rocket_silo_switcher", setting_type = "startup", default_value = true}, {type = "bool-setting", name = "diplomacy_entity_not_on_map", setti...
return {'awara','awari','awacs','awater','awad','awaras','awaris'}
malkloc = Creature:new { objectName = "@mob/creature_names:malkloc", socialGroup = "malkloc", faction = "", level = 22, chanceHit = 0.33, damageMin = 190, damageMax = 200, baseXp = 2006, baseHAM = 5400, baseHAMmax = 6600, armor = 0, resists = {115,120,5,-1,-1,-1,5,145,-1}, meatType = "meat_herbivore", mea...
local KEY = require 'script.jzslm.key' local redis = require 'script.redis' local util = require 'script.utility' local log = require 'script.log' local CHEAT_TIME = 14 * 60 local CHEAT_LEVEL = 7 local CHEAT_MAX = 10 local m = {} function m.checkTime(level, time) if level < CHEAT_LEVEL then return ...
ITEM.name = "대형 케비넷" ITEM.model = Model("models/props_wasteland/controlroom_storagecloset001a.mdl") ITEM.uniqueID = "stor_closet" ITEM.maxWeight = 30 ITEM.desc = "녹색의 대형 케비넷입니다."
local refactors = require("refactoring.refactor") local Config = require("refactoring.config") local get_select_input = require("refactoring.get_select_input") local async = require("plenary.async") local M = {} function M.setup(config) Config.setup(config) end function M.refactor(name, opts) if opts == nil ...
-- rk4.lua -- (C) 2015 Lesley De Cruz -- See LICENSE.txt for license information. ------------------------------------------------------------------------ -- A classical fourth order Runge-Kutta scheme. -- Butcher tableau: -- -- 0 | -- 1/2 | 1/2 -- 1/2 | 0 1/2 -- 1 | 0 0 1 -- +--------...
great_borgle = Creature:new { objectName = "@mob/creature_names:great_borgle", socialGroup = "borgle", faction = "", level = 14, chanceHit = 0.3, damageMin = 140, damageMax = 150, baseXp = 714, baseHAM = 2400, baseHAMmax = 3000, armor = 0, resists = {0,0,0,0,0,0,0,-1,-1}, meatType = "meat_carnivore", meat...
local api = vim.api local loop = vim.loop local sync = vim.schedule_wrap local function write(window, buffer, data) if data == nil or not api.nvim_buf_is_valid(buffer) then return end local lines = api.nvim_buf_line_count(buffer) - 1 local value = vim.split(data, '\n') local offset = #value + lines ap...
local utf8 = require 'utf8' local defaultHighlight = { 0x80, 0x80, 0xff, 0x80 } local function getRectangle (self) return self.x, self.y, self.width, self.height end local function setValue (self, value) local oldValue = self.value if oldValue == value then return end self.value = value self:...
require("camerashake") FollowCamera = Class(function(self, inst) self.inst = inst self.target = nil self.currentpos = Vector3(0,0,0) self.distance = 30 self:SetDefault() self:Snap() self.time_since_zoom = nil end) function FollowCamera:SetDefault() self.targetpos = Vector3(0,0,0) --s...
-- Simple Spikes local b = {} b.Name = "Spikes" b.Icon = Material("yawd/hud/spikes.png") b.Health = -1 b.CanBuild = true b.BuildClass = {CLASS_CONSTRUCTOR, CLASS_JUGGERNAUT, CLASS_HEALER} b.Cost = 350 local damage = 50 -- This allows to balance traps b.BuildingSize = {-Vector(95, 95, 12), Vector(95, 95, 12)} b.TrapA...
object_tangible_loot_creature_loot_collections_dooku_datadisk_05 = object_tangible_loot_creature_loot_collections_shared_dooku_datadisk_05:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_dooku_datadisk_05, "object/tangible/loot/creature/loot/collections/dooku_datadisk_05.iff")
object_mobile_outbreak_hum_01 = object_mobile_shared_outbreak_hum_01:new { } ObjectTemplates:addTemplate(object_mobile_outbreak_hum_01, "object/mobile/outbreak_hum_01.iff")
--This is a rank table --There could be multiple tables to generate spawns from local Tsoo_Ranks_01 = { ["Underlings"] = { --NA }, ["Minions"] = { "Tsoo_01","Tsoo_04","Tsoo_05", "Tsoo_06","Tsoo_08","Tsoo_09", "Tsoo_12","Tsoo_17", }, ["Lieutenants"] = { "Tsoo_10...
-- Functions: ------------------------------------------------------- function model.completeDataPartSpecific(data) if not data.partSpecific then data.partSpecific={} end if not data.partSpecific['width'] then data.partSpecific['width']=0.3 end if not data.partSpecific['length'] then...
-- Helper functions for the marine buy menu -- headlines for the Buymenu function CombatMarineBuy_GetHeadlines() local headlines = { "Support", "Weapons", "Weapon Ups", "Armor Ups", "Class Ups", "Grenades", } return headlines end -- costum...
-- this script checks if we processed the whole request, and if so it cleans -- up all the structures created. -- If we did not process the whole request, the subrequest we just processed -- is acknowledged. -- -- KEYS[1] contains the ID of the request -- ARGV[1] contains the ID of the request entry in the consumer gro...
----------------------------------- -- Area: Waughroon Shrine -- Mob: Sa'Nha Soulsaver -- BCNM mob in Bastok mission 7-2. ----------------------------------- function onMobDeath(mob, player, isKiller) end;
local _M = {} _M.LOCAL_IP = "127.0.0.1" _M.LOCAL_HOST = "localhost" _M.BALANCER_CHASH = "CHASH" _M.BALANCER_ROUNDROBIN = "ROUNDROBIN" _M.ENVIRONMENT_PROD = "PROD" _M.ENVIRONMENT_BETA = "BETA" _M.ENVIRONMENT_TEST = "TEST" _M.REQUEST_API_ENV_KEY = "APIOAK-API-ENV" _M.REQUE...
ITEM.Name = 'Clock Mask' ITEM.Price = 50 ITEM.Model = 'models/props_c17/clock01.mdl' ITEM.Attachment = 'eyes' function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClientsideModel(ply, model, pos, ...
function make_model(time_anim, animation) local model = {} model["animation"] = animation or {} model["time_anim"] = time_anim local function set_animation(self, key, index_anim, sprite) self.animation[key] = { index_anim, sprite } end model["set_animation"] = set_animation ...
pg = pg or {} pg.navalacademy_shoppingstreet_template = { { special_goods_num = 3, lv_up_time = 10, goods_num = 10, words_enter = "恩?欢迎光临…|啊…又来了啊…|要来点科技箱吗……?", words_buy = "呼呼…谢谢惠顾…|再多买一点如何?|眼光不错……", lv = 1, words_touch = "呒…|打折?没有的不存在的……|下一个科技箱里就会有好东西的…|再怎么戳我也不会给你好处的…", lv_up_cost = { 1, 100 }...
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua\CompMod\Structures\Alien\Harvester\client.lua -- - Dragon -- Harvester local originalHarvesterOnUpdate originalHarvesterOnUpdate = Class_ReplaceMethod("Harvester", "OnUpdate", function(self, deltaTime) originalHar...
local event = require("__flib__.event") local gui = require("__flib__.gui-beta") local mod_gui = require("__core__.lualib.mod-gui") local migration = require("__flib__.migration") local mi_gui = require("scripts.gui") local table = require("__flib__.table") local lib = require "__ModuleInserterER__/lib_control" local ...
fx_version 'cerulean' game 'gta5' description 'QB-Multicharacter' version '1.0.0' ui_page 'html/index.html' shared_script '@qb-core/import.lua' client_script 'client/main.lua' server_script 'server/main.lua' files { 'html/index.html', 'html/style.css', 'html/reset.css', 'html/script.js' } dependenc...
return { ['Ameilia'] = { ['BLU'] = { ['Club'] = { ['hps'] = { ['<'] = 100, ['>'] = 0 }, ['mobs'] = {}, ['tpThreshold'] = 999, ['ws_cmd'] = '/ws "realmrazer" <t>' },...
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild -- -- This file is compatible with Lua 5.3 local class = require("class") require("kaitaistruct") local enum = require("enum") local utils = require("utils") require("dcmp_variable_length_integer") -- -- Compressed re...
LARGURA_TELA = 320 ALTURA_TELA = 480 MAX_METEOROS = 12 FIM_JOGO = false METEOROS_ATINGIDOS = 0 NUMERO_METEOROS_OBJETIVO = 100 aviao_14bis = { src = "imagens/14bis.png", largura = 55, altura = 63, x = LARGURA_TELA/2 - 64/2, y = ALTURA_TELA - 64/2, tiros = {} } meteoros = {} function daTiro() ...
-- luahs, Lua bindings to hyperscan -- Copyright (C) 2016 Boris Nagaev -- See the LICENSE file for terms of use. local luahs = require 'luahs' describe("compilation", function() it("compiles simple pattern", function() local db = luahs.compile { expression = 'aaa', mode = luahs.co...
Textbox = {} Textbox.__index = Textbox function Textbox:Create(params) params = params or {} if type(params.text) == "string" then params.text = {params.text} end local this = { -- mText = params.text, Removing this mChunks = params.text, mChunkInde...
SDL=require("samplesdlbind") --sample code from https://wiki.libsdl.org/SDL_CreateRenderer SDL.Init(SDL.INIT_VIDEO) --can not bit and on lua5.2 local window = assert(SDL.CreateWindow("test window",SDL.WINDOWPOS_CENTERED,SDL.WINDOWPOS_CENTERED,400,400,SDL.WINDOW_RESIZABLE)) local renderer = SDL.CreateRenderer(window, -1...
--[[ Project: SA-MP-API Author: Tim4ukys My url: vk.com/tim4ukys ]] local sys = require 'SA-MP API.kernel' sys.safely_include 'SA-MP API.samp.0_3_7-R4-2.stTextdraw' sys.ffi.cdef[[ struct stTextdrawPool { int iIsListed[2048]; int iPlayerTextDraw[256]; stTextdraw *textdraw[2048]; stTextdraw *playe...
-- Load globals require './globals' -- Load libs local push = require './libs/push' -- Load states local Menu = require './menu' local Play = require './play' -- Push set up function love.resize(w, h) push:resize(w, h) end push:setupScreen(GAME_WIDTH, GAME_HEIGHT, 800, 600, { vsync = true, fullscreen = ...
local class = require('opus.class') local UI = require('opus.ui') UI.WizardPage = class(UI.Window) UI.WizardPage.defaults = { UIElement = 'WizardPage', ey = -2, } function UI.WizardPage.validate() return true end
xgui.prepareDataType( "URSRestrictions" ) xgui.prepareDataType( "URSLimits" ) urs = {} urs.removers = {} urs.weapons = weapons.GetList() urs.arg1save = nil urs.back = xlib.makepanel{ parent = xgui.null } urs.restrictionlist = xlib.makelistview{ parent = urs.back, x = 5, y = 5, w = 150, h = 71 } urs.typelist = xlib.ma...
-- Code created by Kwik - Copyright: kwiksher.com {{year}} -- Version: {{vers}} -- Project: {{ProjName}} -- local _M = {} -- local _K = require "Application" local player = require "extlib.movieclip_player" -- -- {{#ultimate}} local imageWidth = {{elW}}/4 local imageHeight = {{elH}}/4 local mX, mY = _K.ultimatePosition...
local context = G.botContext if type(context.UI) ~= "table" then context.UI = {} end local UI = context.UI UI.SingleScrollItemPanel = function(params, callback, parent) -- callback = function(widget, newParams) --[[ params: on - bool, item - number, subType - number, title - string, ...
local shell = require("shell") local _, ops = shell.parse(...) if ops.help then print([[Usage: ls [OPTION]... [FILE]... -a, --all do not ignore entries starting with . --full-time with -l, print time in full iso format -h, --human-readable with -l and/or -s, print human r...
local function filtertab(tab, predicate) local length = #tab for i = length, 1, -1 do if predicate(tab[i]) then table.remove(tab, i) end end return tab end return filtertab
description = [[ Attempts to extract information from HP iLO boards including versions and addresses. HP iLO boards have an unauthenticated info disclosure at <ip>/xmldata?item=all. It lists board informations such as server model, firmware version, MAC addresses, IP addresses, etc. This script uses the slaxml library...
-- Object for managing Cleanup -- @README https://github.com/devSparkle/Maid local Maid = {} -- Maid[key] = (function) Adds a function to call at cleanup -- Maid[key] = (Instance) Adds an Object to be Destroyed at cleanup -- Maid[key] = (RBXScriptConnection) Adds a connection to be Disconnected at cleanup -- Ma...
----------------------------------- -- Area: Bostaunieux Obliette -- NPC: _4n2 (Sewer Lid) -- !pos -19.000 -17.899 20.000 167 ----------------------------------- local ID = require("scripts/zones/Bostaunieux_Oubliette/IDs") ----------------------------------- function onTrade(player, npc, trade) end function onTrigg...
local TextMeasureTemporaryPatch = true local TextService = game:GetService("TextService") local Text = {} -- FYI: Any number greater than 2^30 will make TextService:GetTextSize give invalid results local MAX_BOUND = 10000 -- TODO(CLIPLAYEREX-1633): We can remove this padding patch after fixing TextService:GetTextSi...
#!/usr/bin/env lua -- In case we want to run tests when library is built but not installed. local LUA_PATH_SEP = package.config:sub(3, 3) package.cpath = package.cpath .. LUA_PATH_SEP .. '../src/?.so' local function maketester(t) return function(library, name) assert(type(library[name]) == t, string.form...
local require = require local find = string.find local sub = string.sub local match = string.match local format = string.format local reverse = string.reverse local module = module local error = error local parse_prototype = {} local assert = assert local print = print local gfind = string.gfind local pcall = pcall if...
-- Model: vgg-face.small1.def.lua -- Description: Modified VGG Face network. Smaller and with batch normalization. -- !! In progress, may change. -- Input size: 3x96x96 -- Number of Parameters from net:getParameters() with embSize=128: TODO -- Components: Mostly `nn` -- Devices: CPU and CUDA -- -- Brandon Amos <http...
-- The MIT License (MIT) -- -- Copyright (c) 2014 Cyril David <cyx@cyx.is> -- Copyright (c) 2011-2013 Bertrand Mansion <bmansion@mamasam.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 So...
PLUGIN.Title = "Rank and List" PLUGIN.Description = "Allow Admins to Put Users in Ranks" PLUGIN.Author = "The Big Wig" PLUGIN.Version = "1.2.2" print(PLUGIN.Title .. " (" .. PLUGIN.Version .. ") plugin loaded") --Things To Add Later: --ADD STEAM IDS (ADMIN CANT REMOVE USERS AFTER NAME CHANGE UNLESS USING OLD NAME) --...
local headerHeight = 50; local function PlayerText(pn) local pnumber = pn == PLAYER_1 and "1" or "2"; local xpos = pn == PLAYER_1 and 0.5 or 1.5; return LoadFont("_wendy small")..{ Name="Label"..pname(pn); Text="Player "..pnumber; InitCommand=function(self) self:x(_screen.cx*xpos):y(headerHeight...
local present, telescope = pcall(require, "telescope") if not present then return end telescope.setup { defaults = { file_ignore_patterns = { "%.jpg", "%.jpeg", "%.png", "%.otf", "%.ttf", "node_modules", ".git", }, prompt_prefix = "│ ", selection_caret = "...
for i, force in pairs(game.forces) do if force.technologies["electric-energy-accumulators-1"].researched then force.recipes["alien-accumulator"].enabled = true end end
#@ SimpleGraphic -- Path of Building -- -- Module: Launch -- Program entry point; loads and runs the Main module within a protected environment -- SetWindowTitle("Path of Building") ConExecute("set vid_mode 8") ConExecute("set vid_resizable 3") local launch = { } SetMainObject(launch) function launch:OnInit() self....
local spell = {} spell["element"] = [[Support]] spell["cost"] = 6 spell["desc"] = [[Cures panic, fear and distress in all allies]] spell["target"] = [[All Ally]] spell["name"] = [[Me Patra]] spell["costtype"] = [[SP]] function spell.activate() state.context.cost(spell.costtype, spell.cost) if state.party[state...
-- Gemeinschaft 5 module: user class -- (c) AMOOMA GmbH 2012-2013 -- module(...,package.seeall) Tenant = {} -- Create Tenant object function Tenant.new(self, arg) arg = arg or {} object = arg.object or {} setmetatable(object, self) self.__index = self; self.class = 'tenant'; self.log = arg.log; self.d...
-- Handle mismatch between homebrew's version of Lua and hammerspoon's version local lVer = _VERSION:match("Lua (.+)$") local luarocks = "/opt/homebrew/bin/luarocks" package.path = package.path .. ";" .. hs.execute( luarocks .. " --lua-version " .. lVer .. " path --lr-path" ):gsub("\n", "") package.cpath = package.cp...
-- Copyright 2012 Gabor Varga <vargagab@gmail.com> -- Licensed to the public under the Apache License 2.0. module("luci.controller.transmission", package.seeall) function index() if not nixio.fs.access("/etc/config/transmission") then return end entry({"admin", "nas"}, firstchild(), "NAS", 44).dependent = fals...