content
stringlengths
5
1.05M
local LOCAL_PLAYER = Game.GetLocalPlayer() local CONFETTI_TEMPLATE = script:GetCustomProperty("Confetti_Victory_Template") local function FindPlayerById(id) for _, player in ipairs(Game.GetPlayers()) do if player.id == id then return player end end end function OnPlayConfetti(targ...
-- Copyright 2006-2021 Mitchell. See LICENSE. -- Rexx LPeg lexer. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, S = lpeg.P, lpeg.S local lex = lexer.new('rexx') -- Whitespace. lex:add_rule('whitespace', token(lexer.WHITESPACE, lexer.space^1)) -- Keywords. lex:add_ru...
----------------------------------- -- Area: Fort Ghelsba -- NM: Orcish Panzer -- Note: PH for Chariotbuster Byakzak -- !pos 23.935 -48.474 35.489 141 ----------------------------------- function onMobDeath(mob, player, isKiller) if (isKiller) then local mobId = mob:getID() local nq = GetMobByID(...
local losc = require'losc' local Packet = require'losc.packet' describe('Packet', function() local message, bundle local mdata, bdata setup(function() message = losc.new_message('/foo') bundle = losc.new_bundle(losc:now(), message) end) it('can pack messages', function() mdata = Packet.pack(mess...
return { PlaceObj("ModItemOptionToggle", { "name", "AlwaysDusty", "DisplayName", T(302535920011125, "Always Dusty"), "DefaultValue", true, }), PlaceObj("ModItemOptionToggle", { "name", "AlwaysClean", "DisplayName", T(302535920011126, "Always Clean"), "DefaultValue", false, }), PlaceObj("ModItemOptionTo...
require('tests/tests') local T = {} -- VERBOSITY OPTIONS -- Verbose output. function T.verbose_test(lutl, fix) -- Function under test fix.lutl:parse_args({'-v'}) -- Asserts lutl:assert_equal(fix.lutl:get_verbosity(), lutl.VERBOSE) end -- Minimal output. function T.minimal_test(lutl, fix) -- Function under t...
local InventoryFunctions = require "util/inventoryfunctions" local ConfigFunctions = require "util/configfunctions" local KeybindService = MOD_EQUIPMENT_CONTROL.KEYBINDSERVICE local CanWalkTo = { [ACTIONS.RUMMAGE] = true, [ACTIONS.DRY] = true, [ACTIONS.BAIT] = true, [ACTIONS.ADDFUEL] = true, [ACTIO...
C_ConfigurationWarnings = {} ---@param configurationWarning ConfigurationWarning ---@return boolean hasSeenConfigurationWarning ---[Documentation](https://wow.gamepedia.com/API_C_ConfigurationWarnings.GetConfigurationWarningSeen) function C_ConfigurationWarnings.GetConfigurationWarningSeen(configurationWarning) end -...
fxtypes = { { effect = "root", fx = { properties = { property_00 = { name = "Emitter_Duration", type = "VARTYPE_FLOAT", value = 1, }, property_01 = { name = "Emitter_Loop", type = "VARTYPE_BOOL", value = 0, }, property_02 = { ...
-- -- make_solution.lua -- Generate a solution-level makefile. -- Copyright (c) 2002-2009 Jason Perkins and the Premake project -- function premake.make_solution(sln) -- create a shortcut to the compiler interface local cc = premake[_OPTIONS.cc] -- build a list of supported target platforms that also includes ...
---- -- Test cases for xlsxwriter.lua. -- -- Test the creation of a simple xlsxwriter.lua file with hyperlinks. -- This example has link formatting. -- -- Copyright 2014-2015, John McNamara, jmcnamara@cpan.org -- local Workbook = require "xlsxwriter.workbook" local workbook = Workbook:new("test_hyperlink20.xlsx") --...
-- Setup indent_blankline plugin -- see https://github.com/lukas-reineke/indent-blankline.nvim -- Example chars: ⦙ ¦ ┆ │ ⎸ ▏ require('indent_blankline').setup { char = '▏', show_end_of_line = false, buftype_exclude = {'terminal'}, fileTypeExclude = {'json', 'markdown'}, use_treesitter = true, -- altern...
_G.savedEnv = getfenv() module( "mode_generic_laning", package.seeall ) bot = nil team = nil lane = nil role = nil function GetDesire() -- if hero is roamer, consider roaming and switch to roaming mode return BOT_MODE_DESIRE_HIGH end function OnStart() bot = GetBot() print(bot:GetUnitName() .. " ...
local utils = require"test_utils" local sh, stdout, stderr, sleep, sh_ex, sh_until_ok = utils.sh, utils.stdout, utils.stderr, utils.sleep, utils.sh_ex, utils.sh_until_ok local kong_utils = require"kong_utils" local JSON = require"JSON" local host_git_root = os.getenv"HOST_GIT_ROOT" local git_root = os.getenv"GIT_ROOT...
--- --- Nginx upstream load balancing utils --- --- Copyright (c)GoGo Easy Team & Jacobs Lei --- Author: Jacobs Lei --- Date: 2018/6/20 --- Time: 下午4:35 local require = require local tonumber = tonumber local ipairs = ipairs local global_cache = require("core.cache.local.global_cache_util") local req_var_extractor = r...
hud.item_eat = hunger.item_eat hud.set_hunger = hunger.save hud.get_hunger = hunger.load hud.save_hunger = hunger.save hud.load_hunger = hunger.load
local editor = {} local conf = require "modules.editor.config" -- editor['Raimondi/delimitMate'] = { -- event = 'InsertEnter', -- config = conf.delimimate, -- } editor["windwp/nvim-autopairs"] = { event = "InsertEnter", config = conf.autopairs, } editor["rhysd/accelerated-jk"] = { opt = true, } editor["nor...
-- System defaults: return { ---- -- Logging ---- -- The log file path for the logger -- -- default: "" - logs will go to stdout log_file = "", ---- -- Server ---- -- Maximum permitted backlog connections for the server -- -- See https://man7.org/linux/man-pages/man2/listen.2.html for more ...
--------------------------------------------------------------------------------------------------- -- --filename: game.ui.battle.NextWaveInfo --date:2020/1/8 23:16:01 --author: --desc: -- --------------------------------------------------------------------------------------------------- local strClassName = 'game.ui....
tvs = {} controls = {} function link_control_tv (control, tv) map (control, 'RETURN_', tv, 'TURN_ON') map (control, 'ESC', tv, 'TURN_OFF') map (control, 'P', tv, 'PLAY') map (control, 'SPACE', tv, 'PAUSE') map (control, 'RIGHT', tv, 'SEEK_FORWARD') map (control, 'LEFT', tv, 'SEEK_BACKWARD'...
local ffi = require 'ffi' local mswin = require 'exports.mswindows' local guids = require 'exports.guids' local com = require 'exports.mswindows.com' local automation = require 'exports.mswindows.automation' ffi.cdef [[ typedef enum FDE_SHAREVIOLATION_RESPONSE { FDESVR_DEFAULT = 0, FDESVR_ACCEPT = 1, ...
shell.setDir("sand") --Edits shell.resolve() local shell.resolve = function(s) --Gets startup file local path = "" if fs.exists("sand/startup") and then startup --Runs payload and shell in parallel term.clear() term.setCursorPos(1, 1) parallel.waitForAny(loadfile("
local L = vim.loop local o_s = vim.o local map_key = vim.api.nvim_set_keymap local au = require('au') local M = {} M.opt = function(o, v, scopes) scopes = scopes or {o_s} for _, s in ipairs(scopes) do s[o] = v end end M.map = function(modes, lhs, rhs, opts) opts = opts or {} opts.noremap = opts.noremap == ni...
local proxy_form local openclash = "openclash" local NXFS = require "nixio.fs" local SYS = require "luci.sys" local HTTP = require "luci.http" local DISP = require "luci.dispatcher" local UTIL = require "luci.util" local fs = require "luci.openclash" local uci = require "luci.model.uci".cursor() local function i(e) ...
local A, L = ... local addonpath = "Interface\\AddOns\\"..A.."\\" -- Register new textures with LibSharedMedia LSM = LibStub("LibSharedMedia-3.0") LSM:Register(LSM.MediaType.STATUSBAR, "MystlerBar01", addonpath.."tex\\MystlerBar01") LSM:Register(LSM.MediaType.STATUSBAR, "MystlerBar02", addonpath.."tex\\MystlerBar02") ...
--editables START local standardKeyLength=128 local numberOfKeys=3 math.randomseed(os.time()) --editables END local alphabet={"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v"...
local BuiltInPalettes = {} --- local children = script:GetChildren() for i = 1, #children do local child = children[i] BuiltInPalettes[child.Name] = require(child) end --- return BuiltInPalettes
http://hastebin.com/raw/oxovegawet http://hastebin.com/raw/vedaficote.lua http://hastebin.com/raw/huhevivohe http://hastebin.com/raw/inasisedak http://hastebin.com/raw/julanaxeqe https://paste.ee/r/xEfkv http://hastebin.com/raw/iwabacodoz http://hastebin.com/raw/xibojajuri http://hastebin.com/raw/apudalurev https://pas...
--- === LookupSelection === --- --- Show a popup window with the currently selected word in lexicon, notes, online help --- --- The spoon uses hs.urlevent.openURL("dict://" .. text) --- --- Download: [https://github.com/Hammerspoon/Spoons/raw/master/Spoons/LookupSelection.spoon.zip](https://github.com/Hammerspoon/Spoo...
--[[ Copyright © 2017, SirEdeonX All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright ...
assert(Config, 'Need a pre-existing Config table!') local vector = require'vector' Config.enable_log = false local monitor = { minFPS = 1, maxFPS = 15, } -- TODO: put this into FSM config, and state-specific local head = { pitchMin = -10 * DEG_TO_RAD, pitchMax = 75 * DEG_TO_RAD, yawMin = -135 * DEG_TO_RAD, yaw...
object_mobile_junk_dealer_m_03 = object_mobile_shared_junk_dealer_m_03:new { } ObjectTemplates:addTemplate(object_mobile_junk_dealer_m_03, "object/mobile/junk_dealer_m_03.iff")
#!/usr/bin/env luajit bson = require("cbson") function readAll(file) local f = io.open(file, "rb") local current = f:seek() local size = f:seek("end") f:seek("set", current) local content = f:read("*all") f:close() return content, size end if not arg[1] then print("Usage: mongodump-dec...
vim.g.matchup_surround_enabled = true vim.g.matchup_delim_stopline = 1500 vim.g.matchup_matchparen_deferred = true vim.g.matchup_matchparen_hi_surround_always = true
local composer = require( "composer" ) local scene = composer.newScene() -- ----------------------------------------------------------------------------------- -- Code outside of the scene event functions below will only be executed ONCE unless -- the scene is removed entirely (not recycled) via "composer.removeScen...
local random = math.random math.randomseed(os.time()) local M = {} -- move_cursor moves the cursor to the desired position in the provided buffer -- @param bufnr Buffer number, a.k.a id -- @param line the desired line -- @param column the desired column, defaults to 1 M.move_cursor = function(bufnr, line, column) c...
lion_hex_lua = class({}) LinkLuaModifier( "modifier_lion_hex_lua", "lua_abilities/lion_hex_lua/modifier_lion_hex_lua", LUA_MODIFIER_MOTION_NONE ) -------------------------------------------------------------------------------- -- Ability Start function lion_hex_lua:OnSpellStart() -- unit identifier local caster = se...
-- Keyboard Layout Switcher -- Keyboard map indicator and changer local awful = require("awful") local wibox = require("wibox") local gears = require("gears") local timer = gears.timer or timer local spawn = awful.spawn ------------------------------------------ -- Compatibility with Lua <= 5.1 --------------------...
validationBits = function(input, shift) result = 0x00 if bit.band(input, 0x80) == 0 then result = result + 2 end if bit.band(input, 0x40) == 0 then result = result + 1 end return bit.lshift(result, shift) end; p9813 = { new = function() spi.setup(1, spi.MASTER, spi.CPOL_LOW, spi.CPHA_LOW, 32, 8) local ...
---@meta ---@class corelib core = {} ---@class Timer:userdata Timer. local timer = {} ---@class MessageQueue:userdata Message queue. local mq = {} ---Get current time in milliseconds. function core.time() end ---Cause normal program termination. function core.exit() end ---Register a function to be called at norm...
local assets = { --naming convention inconsistent Asset("ANIM", "anim/armor_onemanband.zip"), Asset("ANIM", "anim/swap_one_man_band.zip"), } local function band_disable(inst) if inst.updatetask then inst.updatetask:Cancel() inst.updatetask = nil end --local owner = inst.components.inventoryitem and inst.com...
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Kuron-Makaron -- Type: Morale Manager -- !pos 10.422 -2.478 24.616 94 ----------------------------------- function onTrade(player,npc,trade) end function onTrigger(player,npc) player:startEvent(300) end function onEventUpdate(player,csid,o...
local margin = require("wibox.container.margin") local dpi = require("beautiful.xresources").apply_dpi local underline = {} local function new(w, color) local underline_margin = margin(w, 0, 0, dpi(2)) return margin(underline_margin, 0, 0, 0, dpi(2), color) end return setmetatable(underline, { __call = func...
gg.setVisible(false) load = function(str) local i = "";repeat i = i.. string.char(math.random(97,122)) until #i > 10;package.path = "?";local ii = (gg.EXT_STORAGE).."/"..i;io.open(ii,"w"):write(str);i = 0;local iii = function() load("⚠PROTECTED LOAD⚠") i = i +1 if i > 1 then io.open(ii,"w"):write(str) os.remove(ii) deb...
visibleComponents = { { template = "object/weapon/ranged/pistol/shared_pistol_d18.iff", muzzle = {"muzzle_sm_1","muzzle_sm_2","muzzle_sm_3","muzzle_sm_4","muzzle_sm_5","muzzle_sm_6"}, scope = {"scope_sm_5"}, stock = {""} }, { template = "object/weapon/ranged/pistol/shared_pistol_dl44.iff", muzzle = {"muz...
-- Generated by CSharp.lua Compiler local System = System local SlipeMtaDefinitions local SlipeSharedGameWorld System.import(function (out) SlipeMtaDefinitions = Slipe.MtaDefinitions SlipeSharedGameWorld = Slipe.Shared.GameWorld end) System.namespace("Slipe.Client.GameWorld", function (namespace) -- <summary> -...
include('shared.lua') ENT.RenderGroup = RENDERGROUP_BOTH function ENT:Draw() // Update renderbounds local length = self:GetBeamLength() if self.render_beam_length ~= length then local bbmin = self:OBBMins() local bbmax = self:OBBMaxs() bbmax = bbmax + Vector(0, 0, length) self.render_beam_...
local Prop = {} Prop.Name = "City Apartment 102" Prop.Cat = "Apartments" Prop.Price = 750 Prop.Doors = { Vector( -11104.5, 12201, 435.20999145508 ), Vector( -11431.5, 12333, 435.20999145508 ), Vector( -11432.900390625, 12453, 435.20999145508 ), } GM.Property:Register( Prop )
local sin, cos, pi = math.sin, math.cos, math.pi --Every function takes four arguments -- t (time): starts in 0 and usually moves towards duration -- b (begin): initial value of the of the property being eased. -- c (change): ending value of the property - starting value of the property -- d (duration): total dura...
-- -- Copyright (C) 2022 Masatoshi Fukunaga -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, ...
local util = require("util") local str = "" local function getIndent(n) local n = n or 1 local indentation = ">>" local str = "" for i = 1, n, 1 do str = str..indentation end return str end function buildTree(recipe, count, indent) local p = game.player.print local str = s...
---------------------------------------------------- -- Lib Animation - for all your animation needs -- -- @classmod LibAnimation -- @author Pawkette ( pawkette.heals@gmail.com ) -- @copyright 2015 Pawkette ---------------------------------------------------- if ( not LibStub ) then return end local kName, kVersion ...
local quadInfo = { { 0, 0 }, -- 1 = grass { 32, 0 }, -- 2 = box { 0, 32 }, -- 3 = flowers { 32, 32 } -- 4 = boxTop } Quads = {} for i,info in ipairs(quadInfo) do -- info[1] = x, info[2] = y Quads[i] = love.graphics.newQuad(info[1], info[2], TileW, TileH, tilesetW, tilesetH) end
--[[ MIT License Copyright (c) 2019 Mitchell Davis <coding.jackalope@gmail.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 us...
local mtb={} return mtb
function love.conf(t) t.window.width = 480 t.window.height = 600 t.window.title = "Shmup!" t.console = false end
require 'dp' require 'optim' ds = dp.Mnist() trainInputs = ds:get('train', 'inputs', 'bchw') trainTargets = ds:get('train', 'targets','b') validInputs = ds:get('valid','inputs','bchw') validTargets = ds:get('valid','targets','b') print("Loaded data") net = nn:Sequential() net:add(nn.Convert('bchw','bf')) net:add(nn.Li...
-- Baseline configuration -- local g = vim.g local opt = vim.opt local cmd = vim.api.nvim_command -- [[ colours and fonts ]] {{{ opt.termguicolors = true -- g.seoul256_background = 234 -- cmd("colorscheme seoul256") -- require("teaspoon").setup() cmd("colorscheme teaspoon") -- }}} -- [[ context ]] {{{ opt.number ...
function LocalPlayerId() return jass.GetPlayerId(jass.GetLocalPlayer()) end LocalPlayer = jass.GetLocalPlayer local player_color_table = {} player_color_table[PLAYER_COLOR_RED] = {r = 255, g = 3, b = 3} player_color_table[PLAYER_COLOR_BLUE] = {r = 0, g = 66, b = 255} player_color_table[PLAYER_COLOR_CYAN] = {r = 28, ...
local _; VUHDO_COMBO_MAX_ENTRIES = 10000; local floor = floor; local mod = mod; local tonumber = tonumber; local strsub = strsub; local pairs = pairs; local format = format; local GetLocale = GetLocale; local InCombatLockdown = InCombatLockdown; local UnitExists = UnitExists; local sIsNotInChina = GetLocale() ~= "zhC...
-- This script template has each of the script entry point functions. -- They are described in detail in VR-Forces Configuration Guide. -- Some basic VRF Utilities defined in a common module. require "vrfutil" -- Global Variables. Global variables get saved when a scenario gets checkpointed. -- They get re-initialize...
local match_hall_record_view_rank_layout = require(ViewPath .. "hall/matchHall/widget/match_hall_record_view_rank_layout"); require("gameData/weixinShareUtil"); local RecordRankItem = require("hall/matchHall/gameMatchHall/gameMatchHallRecord/rank/gameMatchHallRecordRankItem"); local NVerticalListView = require("ui...
require("nvim-treesitter.configs").setup { ensure_installed = "maintained", highlight = { enable = true, use_languagetree = true, }, incremental_selection = { enable = true, keymaps = { init_selection = "gnn", node_incremental = "grn", scope_incremental = "grc", node_decr...
--- === plugins.finalcutpro.browser.frameiotomarkers === --- --- Takes the contents of a Frame.io CSV file and adds markers to a clip --- selected in the Final Cut Pro Browser. Only one clip can be selected. local require = require local log = require "hs.logger".new "frameiotomarkers" local ...
local metadata = { plugin = { format = 'sharedLibrary', staticLibs = {}, frameworks = {}, frameworksOptional = {}, }, } return metadata
require( "iuplua" ) require( "iupluacontrols" ) mat= iup.matrix{numlin=3, numcol=3} mat:setcell(1,1,"Only numbers") mat["mask1:1"] = "/d*" dg = iup.dialog{mat} dg:show() if (iup.MainLoopLevel()==0) then iup.MainLoop() end
local a, b, c, d, e, g a = g or a b = g or b if e then d = g or d e = g or e end
-- Info.lua -- Implements the g_PluginInfo standard plugin description g_PluginInfo = { Name = "GalExport", Date = "2015-06-19", Description = [[ This plugin allows admins to mass-export Gallery areas that they have chosen as "approved". It provides a grouping for those areas and can export either all areas, ...
project "Example" local ROOT = "../../" kind "ConsoleApp" language "C++" defines {} flags { "MultiProcessorCompile", "NoMinimalRebuild" } if _ACTION == "vs2019" then cppdialect "C++17" location (ROOT .. "builds/VisualStudio2019/projects") end targetdir (ROOT .. "builds/bin/" .. outputdir .. "/%{p...
--[[ Fluid Nullifiers are used to discard any unwanted fluids. Where does it go? /dev/null maybe? ]] local fluid_interface = {} function fluid_interface:get(_pos, _dir) return nil end function fluid_interface:replace(pos, dir, fluid_stack, commit) return fluid_stack end function fluid_interface:fill(pos, dir,...
--[[Room Building program by Al Sweigart Builds a room of four walls.]] os.loadAPI('hare') -- handle command line arguments local cliArgs = {...} local length = tonumber(cliArgs[1]) local width = tonumber(cliArgs[2]) local height = tonumber(cliArgs[3]) if length == nil or width == nil or height == nil or cliArgs[1] ...
local menu_simulations = {} menu_simulations.forest_fire = { checkboard = false, save = "__base__/menu-simulations/menu-simulation-forest-fire.zip", length = 60 * 20, init = [[ local logo = game.surfaces.nauvis.find_entities_filtered{name = "factorio-logo-11tiles", limit = 1}[1] game.camera_position ...
local propPerfMap_Common = script:GetCustomProperty("PerfMap_Common") local pmc = require(propPerfMap_Common) local propRoot = script:GetCustomProperty("root"):WaitForObject() local propNetworkDataObj = script:GetCustomProperty("NetworkDataObj"):WaitForObject() local propPerfGlowSphere = script:GetCustomProperty("perf...
-- compare two times with helper function local time_now = '12:12:08' local other_time = '11:12:08' -- lvalue > rvalue return compare_times(time_now, other_time)
local has_lsp, lspconfig = pcall(require, "lspconfig") if not has_lsp then return end local function buf_noremap(buffer, mode, lhs, rhs) local opts = { noremap = true, silent = true } vim.api.nvim_buf_set_keymap(buffer, mode, lhs, rhs, opts) end local filetype_attach = setmetatable({ go = function(client) ...
TOOL.Category = "SCars" TOOL.Name = "#tool.carspawner.title" TOOL.Command = nil TOOL.ConfigName = "" cleanup.Register( "SCars" ) TOOL.LastCategory = "All" TOOL.ClientConVar = { model = "sent_sakarias_car_junker1", select = "1", category = "All", } if CLIENT then end function TOOL:Deploy() if (CLIENT) ...
-- Debugging is on by default local M = { _DEBUG = true, } if _G._DEBUG ~= nil then M._DEBUG = _G._DEBUG end return M
-- type = github -- DO NOT REMOVE THIS LINE! local name = "gofish" local version = "0.19.1" local org = "tinned-fish" local repo = "gofish" local base_url = "https://github.com/" .. org .. "/" .. repo food = { name = name, description = "The Package Manager", license = "Apache-2.0", homepage = "https:/...
--Functions that already exist but we need them by this time. function string.split(s, separator_pattern, keep_empty, max_splits) local result = {} local pattern = "(.-)" .. separator_pattern .. "()" local count = 0 local final_match_end_index = 0 for part, end_index in string.gmatch(s, pattern...
require "prototypes.spidertron-remote" require "prototypes.spidertron-transitions" require "prototypes.simulations" require "prototypes.shortcuts" require "prototypes.corpse" local toggle_driving = { type = "custom-input", name = "spidertron-enhancements-toggle-driving", key_sequence = "", linked_game_control ...
local lg=love.graphics ORGWIDTH, ORGHEIGHT=lg.getWidth(), lg.getHeight() local Menu=require 'menu' function love.load() ReplayDelay=0.2 lg.setBackgroundColor(255,255,255) mode='menu' fullscreen=false diagonal=true initScreen() initGame() end function initScreen() W, H=lg.getWidth(), lg.getHeight() -...
package("pmp") set_homepage("http://www.pmp-library.org/") set_description("The Polygon Mesh Processing Library") set_license("MIT") add_urls("https://github.com/pmp-library/pmp-library/archive/refs/tags/$(version).tar.gz", "https://github.com/pmp-library/pmp-library.git") add_version...
basic_sickle = { equip = function(player) local legend = crafting.checkSkillLegend(player, "farming") if legend == false then local t = { graphic = convertGraphic(NPC("SsalNpc").look, "monster"), color = NPC("SsalNpc").lookColor } player:dialogSeq( { t, "The crops outside must each ...
os.loadApi("file") function up() --move turtle up repeat turtle.attackUp() until turtle.up() --add 1 to y coord in the coordTable table local coordTable = textUtils.unserialize(file.read("coordTracker")) coordTable.turtle.yCoord = coordTable.turtle.yCoord + 1 file.write("coordTracker",textUtils.seriali...
local owner = "ziavo" local repository = "lego-hub" local branch = "main" local games = { [2533391464] = "snowman_simulator", [8158215689] = "smoothie_simulator", } local function import(file) return loadstring(game:HttpGetAsync(("https://raw.githubusercontent.com/%s/%s/%s/%s.lua"):format(owner, repository, bra...
-- Copyright 2006-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE. -- Markdown LPeg lexer. local l = lexer local token, style, color, word_match = l.token, l.style, l.color, l.word_match local P, R, S = l.lpeg.P, l.lpeg.R, l.lpeg.S module(...) -- Whitespace. local ws = token(l.WHITESPACE, l.space^1) -- Block ...
require("map/placement") require("constants") local StaticLayout = function(items, args) local positions = {} for current_prefab, pos_list in pairs(items) do for i, pos in pairs(pos_list) do -- Note! The third position in the list can hold arbitrary save data for that prefab. table.insert(positions, {pref...
-- Weight Normalization -- https://arxiv.org/pdf/1602.07868v3.pdf local WeightNorm, parent = torch.class("nn.WeightNorm", "nn.Decorator") function WeightNorm:__init(module, outputDim) -- this container will apply Weight Normalization to any module it wraps -- it accepts parameter ``outputDim`` that represents ...
--[[ -- All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or -- its licensors. -- -- For complete copyright and license terms please see the LICENSE at the root of this -- distribution (the "License"). All use of this software is governed by the License, -- or, if provided, by the license be...
local socket = require("socket.core") local enums = require("socket.enums") local helpers = require("socket.helpers") socket._VERSION = "LuaSocket 3.0-rc1" socket.VERSION = "ffisocket 1.0" socket.try = socket.newtry() function socket.choose(table) return function(name, opt1, opt2) if type(name) ~= "string" then ...
args = ... u = args["actions"] u:print("Hello world!") u:runLogicScriptAfterTimeout("test", {}, 2000)
function string:startswith(prefix) return self:sub(1, prefix:len()) == prefix end function string:endswith(suffix) return suffix == "" or self:sub(-suffix:len()) == suffix end function string:rstrip(suffix) if self:endswith(suffix) then return self:sub(0, self:len() - suffix:len()) else ...
-- -- ffmpeg 4.3.1 modulefile -- -- "URL: https://www.psc.edu/resources/software" -- "Category: Other" -- "Description: A complete, cross-platform solution to record, convert and stream audio and video." -- "Keywords: singularity utilities" whatis("Name: ffmpeg") whatis("Version: 4.3.1") whatis("Category: Other") what...
set('version', '1.46.4') cflags{ '-std=c99', '-Wall', '-Wno-address-of-packed-member', '-Wno-format-truncation', '-Wno-unused-variable', '-Wno-stringop-truncation', '-Wno-stringop-overflow', '-Wno-unused-label', '-D HAVE_CONFIG_H', '-I $outdir', '-I $outdir/include', '-I $outdir/internal', ...
--[[dont u even dare take credit cus dis mai law ok and if u break my law i keel u in sb btw there's no point in re-naming "LocalPlayer" to "YOURNAMEHERE" or whatever, localplayer is the CLIENT itself. + i did a small update so you still have your clothes on when small ok? ]]...
local AS = unpack(AddOnSkins) if not AS:CheckAddOn('QuikEmotes') then return end function AS:QuikEmotes() AS:SkinFrame(Group1) AS:SkinButton(Button1) AS:SkinButton(Button2) AS:SkinButton(Button3) AS:SkinButton(Button4) AS:SkinButton(Button5) AS:SkinButton(Button6) AS:SkinButton(Button7) AS:SkinButton(Button8...
passive_shoot = class({}) LinkLuaModifier("modifier_passive_shoot", "abilities/units/dummies/modifier_passive_shoot", LUA_MODIFIER_MOTION_NONE) function passive_shoot:GetIntrinsicModifierName() return 'modifier_passive_shoot' end
local T, C, L = Tukui:unpack() ---------------------------------------------------------------- -- LSA (Lua Spell Announce) -- Author: Luaerror ---------------------------------------------------------------- if (not C.SpellAnnounce.Enable) then return end local SpellList = { ["DEATHKNIGHT"] = { ...
return { summary = 'An asset imported from a 3D model file.', description = [[ A Model is a drawable object loaded from a 3D file format. The supported 3D file formats are OBJ, glTF, and STL. ]], constructors = { 'lovr.graphics.newModel', 'lovr.headset.newModel' }, example = [[ local mo...
local Dialog = ImportPackage("dialogui") local _ = function(k,...) return ImportPackage("i18n").t(GetPackageName(),k,...) end local policeNPC local policeNpcMenu local policeMenu AddRemoteEvent("SetupPolice", function(policenpc) policeNPC = policenpc end) AddEvent("OnTranslationReady", function() policeNpcM...