content
stringlengths
5
1.05M
require "media" Player = {} function Player:init() -- Defines spaceship start position self.x = WINDOW_W/2 self.y = WINDOW_H - 60 -- Spaceship x velocity. self.dx = 0 -- Spaceship health points. self.hp = 3 -- Spaceship speed local VELOCITY = 300 -- Standart selection o...
local songs = { Hearts = "feel", Arrows = "cloud break", Bears = "crystalis", Ducks = "Xuxa fami VRC6", Cats = "Beanmania IIDX", Spooky = "Spooky Scary Chiptunes", Gay = "Mystical Wheelbarrow Journey", Stars = "Shooting Star - faux VRC6 remix", Thonk = "Da Box of Kardboard Too (feat Naoki vs ZigZag) -...
----------------------------------------------------------------------------------------------------------------------- -- middleclass-extras.lua - v0.8 -- Enrique García ( enrique.garcia.cota [AT] gmail [DOT] com ) - 19 Oct 2009 -- Complementary lib for middleclass -----------------------------------------------------...
timer = {} timer.path = minetest.get_modpath("timer") timer.modname=minetest.get_current_modname() timer.mod_storage=minetest.get_mod_storage() minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- start loading from "..minetest.get_modpath(minetest.get_current_modname())) -- Load files -- import sett...
local N = require "NTest" ("Lua detail tests") N.test('typeerror', function() fail(function() math.abs("") end, "number expected, got string", "string") fail(function() math.abs() end, "number expected, got no value", "no value") end)
-- Contains only id, to test handling of defaults. data:add( { { type = "core.chara", id = "nothing", legacy_id = 9999 } } )
function sql(u, p, d) require "luasql.mysql" local sql_conn = nil local function sql_connect(sql_user, sql_pass, sql_db) env = assert (luasql.mysql()) con = assert (env:connect(sql_db, sql_user, sql_pass)) return con end local function sql_query(query) local r,e = sql_conn:execute(query) return r,e e...
-- UserPreferences: User Preferences "Module" -- Written by AJ Kelly of KKI Labs / Version 2.11-ssc -- (modified slightly for Cerulean Skies 2's disregard of the name of the -- themeinfo variable lol :p) --[[ the first released version was broken. this version aims to be simpler, and therefore work. [changelog] v2.1...
-- -- Created by IntelliJ IDEA. -- User: alex -- Date: 30/12/2014 -- Time: 21:39 -- To change this template use File | Settings | File Templates. -- classes = { URI = 'Pyro4.core.URI', FLAMEBUILTIN = 'Pyro4.utils.flame.FlameBuiltin', PROXY = 'Pyro4.core.Proxy' }
local namespace = KEYS[1]; local instanceTtl = ARGV[1]; local fixed = instanceTtl == "-1"; local serviceId = ARGV[2]; local instanceId = ARGV[3]; local schema = ARGV[4]; local host = ARGV[5]; local port = ARGV[6]; local weight = ARGV[7]; local ephemeral; if fixed then ephemeral = "false" else ephemeral = "true"...
local wash = { [1] = {ID=1,equipID=0,Level=1,equipPart=2,minAtk=0,maxAtk=0,minDef=2,maxDef=20,minMagic=0,maxMagic=0,minMagicDef=0,maxMagicDef=0,minHP=0,maxHP=0,minAtkCrit=0,maxAtkCrit=0,minMagicCrit=2,maxMagicCrit=20,minAtkResistance=1,maxAtkResistance=13,minMagicResistance=1,maxMagicResistance=13,minBlockRate=0,maxBlo...
CaveBot.Extensions.PosCheck = {} storage.posCheckRetries = 0 CaveBot.Extensions.PosCheck.setup = function() CaveBot.registerAction("PosCheck", "#00FFFF", function(value, retries) local tilePos local data = string.split(value, ",") if #data ~= 5 then error("wrong travel format, should be: label, dis...
ITEM.name = "Locker" ITEM.description = "containerLockerDesc" ITEM.ContainerModel = "models/props_c17/lockers001a.mdl" ITEM.price = 300
local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local common = ReplicatedStorage:WaitForChild("common") local lib = ReplicatedStorage:WaitForChild("lib") local event = ReplicatedStorage:WaitForChild("event") local util = ...
#!/usr/bin/env tarantool local test = require("sqltester") test:plan(25) -- This file implements regression tests for foreign keys. test:do_execsql_test( "fkey3-1.1", [[ CREATE TABLE t1(x INTEGER PRIMARY KEY); INSERT INTO t1 VALUES(100); INSERT INTO t1 VALUES(101); CREATE TABLE...
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ return function(loveframes) ---------- module start ---------- -- radiobutton object local newobject = loveframes.newObject...
-- author = ray require 'torch' require 'nn' require 'audio' require 'cunn' require 'optim' -- configuration test_path = 'data/test' model_file = 'model/mlp_3c.net' target_sr = 16000 enable_cuda = true -- load the mlp model if running locally loaded = torch.load(model_file) print('=> testing audios with mlp model') ...
-- * Metronome IM * -- -- This file is part of the Metronome XMPP server and is released under the -- ISC License, please see the LICENSE file in this source package for more -- information about copyright and licensing. local hosts = hosts; local ripairs, tonumber, type, os_remove, os_time, select, setmetatable, t_in...
while true do local success, data = turtle.inspect() if not success then turtle.select(1) turtle.place() local placed_turtle = peripheral.wrap("front") placed_turtle.turnOn() break end end
function onUse(cid, item, frompos, item2, topos) if item.uid == 1001 then queststatus = getPlayerStorageValue(cid, 1001) if queststatus == -1 then doPlayerSendTextMessage(cid, 22, "You have found a demon helmet.") doPlayerAddItem(cid, 2493, 1) setPlayerStorageVal...
--- Takes various mouse events, and converts them into other events, such as long press, pan, and swipe. -- @module[kind=skyos] gestures local coro = dofile("libraries/coro.lua") --- How long (in milliseconds) a tap must be help for to qualify as a "long press". local pressDelay = SkyOS.settings.longPressDelay or 100...
object_static_structure_dathomir_deathtrooper_pile = object_static_structure_dathomir_shared_deathtrooper_pile:new { } ObjectTemplates:addTemplate(object_static_structure_dathomir_deathtrooper_pile, "object/static/structure/dathomir/deathtrooper_pile.iff")
--credentials missing scriptTitle = "SoundCloud Connector" enable_Connector=0 cur_angle=0 function playpause_track() -- body if platform == "Windows" or platform == "MacOS" then myo.keyboard("space", "press") end end function next_track() -- body if platform == "Windows" or platform == "MacOS" ...
function RavenousFlayerMatriarch_OnEnterCombat(Unit,Event) Unit:CastSpell(36464) Unit:RegisterEvent("RavenousFlayerMatriarch_GushingWound", 25000, 0) end function RavenousFlayerMatriarch_GushingWound(Unit,Event) Unit:FullCastSpellOnTarget(38363,Unit:GetClosestPlayer()) end function RavenousFlayerMatriarch_OnLeaveC...
object_tangible_wearables_armor_invisible_invisible_neutral_clone_helmet = object_tangible_wearables_armor_invisible_shared_invisible_neutral_clone_helmet:new { } ObjectTemplates:addTemplate(object_tangible_wearables_armor_invisible_invisible_neutral_clone_helmet, "object/tangible/wearables/armor/invisible/invisible_ne...
--- A group of utility functions to be used to help create visual effectcs with ROBLOX GUIs -- @classmod qGui local RunService = game:GetService("RunService") local lib = {} function lib.PointInBounds(Frame, X, Y) local TopBound = Frame.AbsolutePosition.Y local BottomBound = Frame.AbsolutePosition.Y + Frame.Absolu...
require "torch" no_stacks = 3 no_disks = 3 first_stack = 1 picker = 1 Disk = {} Disk.__index = Disk Stack = {} Stack.__index = Stack Picker = {} Picker.__index = Picker function Disk.new(stack, dim, no) local disk = {} setmetatable(disk,Disk) disk.stack = stack disk.dim = dim disk.no = no return disk; end fun...
hlightning = { enable = true, type = { shan_dian_lian_zhu = "CLPB", -- 闪电效果 - 闪电链主 shan_dian_lian_ci = "CLSB", -- 闪电效果 - 闪电链次 ji_qu = "DRAB", -- 闪电效果 - 汲取 sheng_ming_ji_qu = "DRAL", -- 闪电效果 - 生命汲取 mo_fa_ji_qu = "DRAM", -- 闪电效果 - 魔法汲取 si_wang_zhi_zhi = "AFOD", -- 闪...
local modpath = minetest.get_modpath("mcl_lighting").. DIR_DELIM mcl_lighting = {} dofile(modpath.."crafts.lua") mcl_lighting = {} function mcl_lighting.register_variants(variants, fixedDef) for _,variant in ipairs(variants) do local name = variant.name local def = table.copy(fixedDef) for k,v in pai...
local function ruined_sign(random) return b.t.choice({ "XXX", "Go bak", "Go back!", "run", "help me, please!", "nobody is left", "Where has the Supreme One gone?", "why did He leave us", "help", "i will soon be gone", aurum.flavor.generate_name() .. " was here", aurum.flavor.generate_name() .. ...
-- Server Hacker -- Version: 1.0 -- we create stuff: local ScreenGui = Instance.new("ScreenGui") local ImageLabel = Instance.new("ImageLabel") local TextLabel = Instance.new("TextLabel") local TextLabel_2 = Instance.new("TextLabel") --we edit stuffs: ScreenGui.Parent = game.Players.LocalPlayer:WaitForCh...
-------------------------- -- Fakename by Aaron113 -- -------------------------- HOOK_MONITOR_LOW = HOOK_MONITOR_LOW or 2 -- (Ensure we don't break on older ULibs) local meta = FindMetaTable("Player") -- Just in case some gamemodes overwrite name functions too (DarkRP) hook.Add("Initialize", "SetupFak...
io2 = require("io2") local dir = "果冻头盔比在太空中飞行的鱼更方便" local file = "セイウチは空から落ちていて、私は人生の意味を見つけました.txt" local stream = io2.open(dir.."/"..file, "r") if stream:readline() ~= "test text" then error("BasicTest: Test readline() failed") end print(stream:readbytes(2):sub(1, 2)) print(stream:readbytes(9):sub(1, 9)) print(ty...
local mumble = require("mumble") local client = assert(mumble.connect("raspberrypi.lan", 64738, "bot.pem", "bot.key")) client:auth("Mumble-Bot") local afk = { channel = "AFK", -- The name of the channel to move the user to warning = 10, -- 10 minute warning before moving a user movetime = 90, -- 1 hour and 30 mi...
-------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("Attumen the Huntsman", 1651, 1835) if not mod then return end mod:RegisterEnableMob(114262, 114264) -- Attumen, Midnight mod.engageId = 1960 -------------------------------------...
workspace "DirectX11Basics" architecture "x64" configurations { "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" -- Inlcude directories relative to root folder (solution directory) IncludeDir = {} IncludeDir["GLFW"] = "libs/GLFW/...
--[[ multistream implements multistream select negotiation --]] local varint = require("varint") local M = {} function stringToBytePretty(s) out = "[ " for i=1,s:len(),1 do local b = string.byte(s, i) out = out .. b .. " " end out = out .. "]" return out end function M.lpRead(r) local len = assert(varint....
local state = {} state._NAME = ... require'hcm' local vector = require'vector' local util = require'util' local movearm = require'movearm' local libArmPlan = require 'libArmPlan' local arm_planner = libArmPlan.new_planner() local T = require'Transform' --Initial hand angle local lhand_rpy0 = {0,0*DEG_TO_RAD, 0*...
--閃刀姫-カガリ --Brandish Maiden Kagari --Scripted by Eerie Code function c100408027.initial_effect(c) c:SetSPSummonOnce(100408027) --link summon c:EnableReviveLimit() aux.AddLinkProcedure(c,c100408027.matfilter,1,1) --atk up local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_UPDATE_ATT...
local advertisementMessages = { "samp", "arıyorum", "aranır", "istiyom", "istiyorum", "SA-MP", "oyuncak", "boncuk", "silah", "peynir", "baharat", "deagle", "colt", "mp", "ak", "roleplay", "ananı", "sikeyim", "sikerim", "orospu", "evladı", "Kye", "arena", "Arina", "rina", "vendetta", "vandetta", "shodown", "Vedic", "ve...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
id = 'V-38455' severity = 'low' weight = 10.0 title = 'The system must use a separate file system for /tmp.' description = 'The "/tmp" partition is used as temporary storage by many programs. Placing "/tmp" in its own partition enables the setting of more restrictive mount options, which can help protect programs which...
local code = ngx.status -- Mark the backend as dead only for 5xx errors if not (ngx.status >= 501 and ngx.status ~= 503) then return end local frontend = ngx.var.frontend if #frontend == 0 then return end -- Put the dead backends in a shared dict (we cannot call Redis from here) local deads = ngx.shared.deads d...
source_rect = Rect(0, 0, 70, 14) surface = nil surface_test = nil offset = nil overlay = nil overlay_rect = nil function init() set_screen_mode(ScreenMode.hires) overlay_rect = Rect(Point(0, 0), screen.bounds) overlay = Surface(screen.bounds, PixelFormat.P) overlay.palette[0] = Pen(0, 0, 0, 0) ove...
-- -- tubetool:wand is in game tool that allows cloning pipeworks node data -- local modpath = minetest.get_modpath('tubetool') local recipe = { { '', '', 'default:mese_crystal' }, { '', 'pipeworks:lua_tube000000', '' }, { 'default:obsidian_shard', '', '' } } local tool = metatool:register_tool('tubetool', { des...
object_tangible_quest_ac_terminal_loc1_01 = object_tangible_quest_shared_ac_terminal_loc1_01:new { } ObjectTemplates:addTemplate(object_tangible_quest_ac_terminal_loc1_01, "object/tangible/quest/ac_terminal_loc1_01.iff")
local m = require 'pegparser.parser' local coder = require 'pegparser.coder' local util = require'pegparser.util' --[[ Inserted: 36 labels (36 correct) ]] g = [[ program <- SKIP head decs block^Err_001 Dot^Err_002 !. head <- PROGRAM Id^Err_003 (LPar ids^Err_004 RPar^Err_005)? Semi^Err_006 decs ...
-- load libtcod wrapper if type(loadlib) == "function" then init=loadlib else init=package.loadlib end a,b,c=init("./liblibtcod-lua.so","luaopen_libtcod") if a == nil then a,b,c=init("./liblibtcod-lua.dll","luaopen_libtcod") end a() -- improve the wrapper tcod = { } for key, value in pairs(libtcod) do...
-- 2018 Henric 'Kekke' Johansson ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) RegisterServerEvent('esx_kekke_tackle:tryTackle') AddEventHandler('esx_kekke_tackle:tryTackle', function(target) local targetPlayer = ESX.GetPlayerFromId(target) TriggerClientEvent('esx_kekke_tackle:getTack...
ccs = ccs or {} ---MovementData object ---@class MovementData : Ref local MovementData = {} ccs.MovementData = MovementData -------------------------------- -- ---@param boneName string ---@return MovementBoneData function MovementData:getMovementBoneData(boneName) end -------------------------------- -- ---@param mo...
-- Copyright (C) Kong Inc. local BasePlugin = require "kong.plugins.base_plugin" local access = require "kong.plugins.hmac-auth.access" local HMACAuthHandler = BasePlugin:extend() function HMACAuthHandler:new() HMACAuthHandler.super.new(self, "hmac-auth") end function HMACAuthHandler:access(conf) HMACAuthHandle...
local path = minetest.get_modpath"trinium_mapgen" .. "/code" trinium.mapgen = {} trinium.mapgen.S = minetest.get_translator"trinium_mapgen" dofile(path .. "/nodes.lua") dofile(path .. "/biomes.lua") dofile(path .. "/ore_generator.lua") dofile(path .. "/ores.lua") dofile(path .. "/trees.lua") dofile(path .. "/rocks.lu...
------------------------------------------------------------------------ --[[ PGXpLog ]]-- -- Composite of PGXpLogEntries ------------------------------------------------------------------------ local PGXpLog, parent = torch.class("dp.PGXpLog", "dp.XpLog") PGXpLog.isPGXpLog = true function PGXpLog:__init(config) co...
local ScreenGui = Instance.new("ScreenGui") local ui = Instance.new("Frame") local title = Instance.new("TextLabel") local Frame = Instance.new("Frame") local Username = Instance.new("TextBox") local Kill = Instance.new("TextButton") local cred = Instance.new("TextLabel") --Properties: ScreenGui.Parent = game:GetServic...
g_Root = root g_Me = localPlayer g_ScrW, g_ScrH = guiGetScreenSize() g_Images = { title = { path = "img/title.jpg", w = 0.8*g_ScrH, h = 600/800*0.8*g_ScrH }, specprev = { path = "img/specprev.png", w = 82, h = 82/167*180 }, specprev_hi = { path = "img/specprev_hi.png", w = 82, h = 82/167*180 }, specnext = ...
local common = require('test.vinyl-luatest.common') local server = require('test.luatest_helpers.server') local t = require('luatest') local g = t.group() g.before_all(function() g.server = server:new({ alias = 'master', box_cfg = common.default_box_cfg(), }) g.server:start() end) g.after_...
pg = pg or {} pg.enemy_data_statistics_244 = { [13100116] = { cannon = 24, reload = 150, speed_growth = 0, cannon_growth = 2016, rarity = 4, air = 0, torpedo = 33, dodge = 7, durability_growth = 41600, antiaircraft = 35, luck = 0, reload_growth = 0, dodge_growth = 102, hit_growth = 210, s...
return {'ska','skaat','skai','skald','skatebaan','skateboard','skateboardclub','skateboarden','skateboarder','skateboarders','skateboarding','skaten','skateparcours','skatepark','skater','skating','skaldengedicht','skarsterlan','skalden','skate','skatebanen','skateboardende','skateboards','skaters','skates','skatet','s...
function draw(time_diff, x, y) local w,h local radius = 20 for w=0,radius*2,1 do for h=0,radius*2,1 do dx = radius - w dy = radius - h if dx*dx + dy*dy <= radius*radius then drawpoint(x + dx, y + dy) end end end end
function lf4rcs.render_draft_reference(draft, wrapper) local repository, path, url = lf4rcs.get_config(draft.initiative.issue.area.unit) if not (config.lf4rcs[repository] and config.lf4rcs[repository].render_draft_reference) then error("Unsupported repository type") end if draft.external_reference then ...
--- @include "strings" --- @include "math" --- file: utils.lua
local mod = DBM:NewMod("BRHTrash", "DBM-Party-Legion", 1, 740) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 15188 $"):sub(12, -3)) --mod:SetModelID(47785) mod:SetZone() mod.isTrashMod = true mod:RegisterEvents( "SPELL_CAST_START 200261 221634 221688 225573", "SPELL_AURA_APPLIED 1949...
description 'GTA V Blips' client_script 'blips.lua'
local parser = require("moocscript.parser") local compile = require("moocscript.compile") describe("test success 1 #guard", function() local mnstr=[[ while true { guard false else { break } return 20 } guard false else { goto t...
return PlaceObj('ModDef', { 'title', "DroneAssemblerPinPlus", 'description', "Compatible with Cernan Update (Space Race and Green Planet DLC)\n\nAdds information to the Pin and Pin Rollover for the Drone Assembler showing how many Drones are in the construction queue/available prefabs built.\n\nUpdates to show how ma...
--shameless copy-pasta of SkyLight's micro_item_armorkit.lua which was a copy-pasta of Parakeet's micro_item_medkit.lua --gottem AddCSLuaFile() ENT.Base = "micro_item" ENT.ItemName = "Collectable Decorations Crate" ENT.ItemModel = "models/Items/item_item_crate.mdl" ENT.MaxCount = 1 local sound_unpacking ...
--[[ Name: "cl_init.lua". Product: "HL2 RP". --]] KS_GAMEMODE = GM; -- Derive the gamemode from kuroScript. DeriveGamemode("kuroScript");
modifier_oaa_scan_thinker = class(ModifierBaseClass) if IsServer() then function modifier_oaa_scan_thinker:OnCreated(keys) local parent = self:GetParent() EmitSoundOnLocationForAllies(parent:GetAbsOrigin(), "scan_minimap.activate", parent) self:StartIntervalThink(1) self:OnIntervalThink() end fu...
require 'torch' require 'nn' require 'image' require 'loadcaffe' function preprocess(img) local mean_pixel = torch.DoubleTensor({103.939, 116.779, 123.68}) local perm = torch.LongTensor{3, 2, 1} img = img:index(1, perm):mul(256.0) mean_pixel = mean_pixel:view(3, 1, 1):expandAs(img) img:add(-1, mean_pix...
#!/usr/bin/env luajit local env = setmetatable({}, {__index=_G}) if setfenv then setfenv(1, env) else _ENV = env end require 'symmath.tests.unit.unit'(env, 'tests/unit/simplifyMetrics') timer(nil, function() env.a = var'a' env.delta = Tensor:deltaSymbol() env.g = Tensor:metricSymbol() for _,line in ipairs(string.spl...
local V = { Name = "Pagani Zonda C12", Class = "prop_vehicle_jeep", Category = "TDM Cars", Author = "TheDanishMaster, Turn 10", Information = "A drivable Pagani Zonda C12 by TheDanishMaster", Model = "models/tdmcars/zondac12.mdl", KeyValues = { vehiclescript = "scripts/vehicles/TDMCars/c12....
hs = {} if obj.status ~= nil then if obj.status.phase == "Bound" and obj.status.lastOperationStatus == "Success" then hs.status = "Healthy" hs.message = obj.status.message return hs end if obj.status.lastOperationStatus == "Failed" then hs.status = "Degraded" hs.message = obj.status.message ...
object_tangible_component_camp_camp_module_shuttle_beacon = object_tangible_component_camp_shared_camp_module_shuttle_beacon:new { } ObjectTemplates:addTemplate(object_tangible_component_camp_camp_module_shuttle_beacon, "object/tangible/component/camp/camp_module_shuttle_beacon.iff")
local GSE = GSE local Statics = GSE.Static local L = GSE.L local AceGUI = LibStub("AceGUI-3.0") local Completing = LibStub("AceGUI-3.0-Completing-EditBox") local transauthor = GetUnitName("player", true) .. '@' .. GetRealmName() local transauthorlen = string.len(transauthor) local transmissionFrame...
--local appUtils ={} local appRows= { "Row1","Row2","Row3","Row4","Row5","Row6","Row7","Row8","Row9", "Row10","Row11","Row12","Row13","Row14","Row15","Row16","Row17","Row18", "Row19","Row20","Row21","Row22","Row23","Row24","Row25","Row26","Row27"} local widgetCount = 1 loc...
--[[ Спасибо за помощь в тесте: Дмитрий Майоров ]] script_name("AutoNum4_6") script_version("v2.1") script_authors("Tim4ukys") script_url("https://vk.com/petrov_team") script_dependencies("SA-MP v0.3.7 R1", "SA-MP v0.3.7 R3-1", "SA-MP v0.3.DL R1") local dl = require( 'SA-MP API.init' ) local ffi = require( '...
addEventHandler("onClientResourceStart", resourceRoot, function() wnd_set_spawn = guiCreateWindow(0.30, 0.19, 0.39, 0.52, "Wybierz miejsce spawnu", true) guiWindowSetSizable(wnd_set_spawn, false) grid_set_spawn = guiCreateGridList(0.03, 0.08, 0.94, 0.77, true, wnd_set_spawn) guiGrid...
-- https://github.com/ImagicTheCat/ALGUI -- MIT license (see LICENSE or src/ALGUI/GUI.lua) local class = require("Luaoop").class local bGUI = require("ALGUI.GUI") -- A basic GUI implementation with events, widget focus, etc. local GUI = class("GUI", bGUI) -- Get overed widgets, i.e. widgets crossed at the pointer po...
--Begin Tools.lua :) local SUDO = 157059515 -- put Your ID here! <=== function exi_files(cpath) local files = {} local pth = cpath for k, v in pairs(scandir(pth)) do table.insert(files, v) end return files end local function file_exi(name, cpath) for k,v in pairs(exi_files(cpath)) do ...
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0273-webengine-projection-mode.md -- -- Description: -- Processing of the OnExitApplication notification with reason RESOURCE_CONSTRAINT...
minetest.register_node(":blocks:roman_concrete",{ description = "Roman concrete", tiles = {"blocks_roman_cement_block.png","blocks_roman_cement_block_detail.png"}, groups = {cracky = 2, concrete = 2}, drawtype = "glasslike_framed", stack_max = 10000, paramtype = "light", paramtype2 = "glasslikeliquidlevel", }) ...
KVL = { [1] = { type = "collecting", coords = vector3(707.0196, -960.233, 30.395), --Items = { -- [1] = { -- name = "yun", -- count = 1 -- }, --} }, [2] = { type = "processing", -- Yün İşleme Kısmı coords = vector3(712.4254, ...
-- Echo that the test is starting mt.echo("*** begin test-28 - Subject:-Header too long") -- start the filter mt.startfilter("./mailheadercheck", "--socket", "inet:40000@127.0.0.1") mt.sleep(2) -- try to connect to it conn = mt.connect("inet:40000@127.0.0.1") if conn == nil then error "mt.connect() failed" end ...
include "./vendor/premake/premake_customization/solution_items.lua" workspace "Idxhook" architecture "x64" startproject "Idxhook" configurations { "Debug", "Release", "Dist" } solution_items { ".editorconfig" } flags { "MultiProcessorCompile" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg....
local binfile = require("binfile") local binaryWriter = {} binaryWriter._MT = {} binaryWriter._MT.__index = {} -- Add reading methods from binfile for name, func in pairs(binfile) do if name:match("^write") then binaryWriter._MT.__index[name] = func end end function binaryWriter._MT.__index:flush() ...
-- This file is part of the LrMediaWiki project and distributed under the terms -- of the MIT license (see LICENSE.txt file in the project root directory or -- [0]). See [1] for more information about LrMediaWiki. -- -- Copyright (C) 2015 by the LrMediaWiki team (see CREDITS.txt file in the -- project root direct...
local CBM = CALLBACK_MANAGER local CreateString = ZO_CreateStringId local PSBT_EVENTS = PSBT.EVENTS local PSBT_STRINGS = PSBT.STRINGS --[[ FALL_DAMAGE = 'SI_PSBT_EVENT_FALL_DAMAGE', CANNOT_SEE = 'SI_PSBT_EVENT_CANNOT_SEE', DAMAGE_CRIT = 'SI_PSBT_EVENT_DAMAGE_CRIT', DAMAGE ...
DefineClass.MysteryBase = { --data holder for mysteries __parents = {"InitDone"}, city = false, scenario_name = false, seq_player = false, display_name = "", rollover_text = "", challenge_mod = 0, --mystery resource properties resource_display_name = T{8064, "Mystery Resource"}, resource_display_icon =...
local registers = require(script.Parent.Registers) local event = script.Parent.Events.Cycle local internal = { cycleCount = 0, interrupt = false, previousInterrupt = false } function internal:Cycle() self.cycleCount += 1 event:Fire() self.previousInterrupt = self.interrupt self.interrup...
if SERVER then AddCSLuaFile("sitanywhere/client/sit.lua") AddCSLuaFile("sitanywhere/ground_sit.lua") include("sitanywhere/server/sit.lua") include("sitanywhere/server/unstuck.lua") include("sitanywhere/ground_sit.lua") else include("sitanywhere/client/sit.lua") include("sitanywhere/ground_si...
local cameramanager = { Properties = { InitialCamera = { default = EntityId(), }, InitialCameraTag = { default = "PlayerCamera" }, PlayerCameraTag = { default = "PlayerCamera" }, FlyCamTag = { default = "FlyCam" }, ActiveCamTag = { default = "ActiveCamera", description = "The tag that's used and applied...
local function DumpApiList(apiType) local apiTable = APIDocumentation:GetAPITableByTypeName(apiType) for i, apiInfo in ipairs(apiTable) do print(i, apiInfo.Name) end end -- DumpApiList("system") local function CountKeys(t) local count = 0 for _ in pairs(t) do count = count + 1 end return count end local f...
local Unity = require 'unity.Unity' local GameObject = Unity.GameObject local ListView = {} function ListView:Awake() local go = self:FindGameObject("Content") if go then self.content = go.transform else self.content = self.transform end self.prefabItem = self:FindGameObject('PrefabItem') end function Lis...
loadfile("spells/reflection.lua",nil,_ENV)() local function load_noita_symbols(path_to_data, gun_actions) -- get actions & 'ConfigGunActionInfo_Init' & ConfigGunShotEffects_Init gun_actions_base_path = path_to_data .. '\\scripts\\gun\\'; -- enums from data/script/gun.lua ACTION_DRAW_RELOAD_TIME_INCREA...
require 'objectlua.bootstrap' require 'objectlua.Class' require 'objectlua.Object'
allowCountdown = false; videoDelay = false; function onCreate() if isStoryMode and not seenCutscene then videoDelay = true; end addCharacterToList('Beast', 'dad'); addCharacterToList('Eggman', 'dad'); addCharacterToList('BOYFRIEND', 'bf'); addCharacterToList('Knucks', 'gf'); precacheImage('screenstatic'); ...
--[[ function createGameAccount(account, password) local a = Account.add(account, password) outputDebugString("createGameAccount > "..tostring(a)) return not (not a) end function changeGamePassword(account, password) local a = Account(account) if (a) then outputDebugString("Successfully changed password for ".....
local utils = require "mp.utils" local datetime = nil function main() local thisFolder, _ = utils.split_path(string.gsub(mp.get_property("path"), "/", "\\")) if (datetime == nil) then datetime = os.date("%Y%m%d%H%M%S") end local destFolder = utils.join_path(thisFolder, datetime) loca...
local path = ... require(path .. '.Object') require(path .. '.Class') require(path .. '.Array') require(path .. '.String') require(path .. '.Number') require(path .. '.Boolean') require(path .. '.Map') require(path .. '.Function')
object_building_mustafar_terrain_must_rock_smooth_10 = object_building_mustafar_terrain_shared_must_rock_smooth_10:new { } ObjectTemplates:addTemplate(object_building_mustafar_terrain_must_rock_smooth_10, "object/building/mustafar/terrain/must_rock_smooth_10.iff")