content
stringlengths
5
1.05M
local n1 = { name = "default:dirt_with_grass" } local n2 = { name = "air" } local n3 = { name = "stairs:stair_cobble" } local n4 = { name = "stairs:stair_cobble", param2 = 20 } local n5 = { name = "walls:cobble" } local n6 = { name = "default:dirt" } local n7 = { name = "stairs:stair_cobble", param2 = 1 } local n8 = { ...
project "imgui" kind "StaticLib" language "C" targetdir ("bin/vendor/%{prj.name}") objdir ("bin-int/vendor/%{prj.name}") files { "imconfig.h", "imgui.h", "imgui_internal.h", "imstb_rectpack.h", "imstb_textedit.h", "imstb_truetype.h", "imgui.cpp", "imgui_demo.cpp", "imgui_...
return { ada = { name = "Ada", extensions = "a,ada,adb,ads" }, bash = { name = "Bash", extensions = "bash,sh", patterns = "configure" }, batch = { name = "Batch", extensions = "bat" }, coffeescript = { name = "CoffeeScript", extensions = "coffee" }, cpp = { name...
-- test_file.lua -- -- Driver for SMTP dissector sample -- local PDURec = require'pdurecord' local SMTPDissector=require 'smtp' -- usage test_file <filename> if #arg ~= 1 then print("Usage : test_file datafile") return end -- a PDURecord, we will pump this with chunks from the binary file local pdu1 = P...
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author (zacharyenriquee@gmail.com). --]] ix.command.Add("ViewData", { arguments = { ix.type.character }, OnRun = function(self, client, target) if (!hook.Run("CanPlayerViewData", client, target:GetPlayer())) then return "...
local History = require('opus.history') local UI = require('opus.ui') local Util = require('opus.util') local colors = _G.colors local os = _G.os local textutils = _G.textutils local term = _G.term local sandboxEnv = setmetatable(Util.shallowCopy(_ENV), { __index = _G }) sandboxEnv...
local mat3 = {} function mat3.identity() return {1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0} end function mat3.zero() return {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0} end function mat3.transpose(m) return {m[1], m[4], m[7], m[2], m[5], m[8], m[3]...
game.Players.LocalPlayer.playerstats.Hunger.Value = 100000 wait (0.1) game.Players.LocalPlayer.playerstats.Thirst.Value = 100000
local present, gitsigns = pcall(require, "gitsigns") if not present then return end gitsigns.setup { signs = { add = {hl = "GitSignsAdd", text = " ", numhl = "GitSignsAddNr", linehl = "GitSignsAddLn"}, change = {hl = "GitSignsChange", text = "▎", numhl = "GitSignsChangeNr", linehl = "GitSignsC...
mp = mp or {} PLAYER = FindMetaTable("Player") gpay.c = gpay.c or {} require 'nw' require 'pon' gpay.Msg = function(...) MsgC(Color(200,162,200),"[MP Donate] ",Color(255,255,255),...,"\n") end gpay.DebugMsg = function(...) if not gpay.c.debug then return end MsgC(Color(255,50,50),"(DEBUG) ",Color(200,162,20...
local lu = require("luaunit") local Vector = require("lib.vector") TestVector = {} function TestVector:test_to_string() lu.assertEquals(Vector:new{ x = 1, y = 2 }:to_string(), "{x = 1, y = 2}") end function TestVector:test_line_points_vertical() local origin = Vector:new{ x = 5, ...
-- Project: LOOP Class Library -- Release: 2.3 beta -- Title : Reachable Values Crawler -- Author : Renato Maia <maia@inf.puc-rio.br> local _G = require "_G" local getfenv = _G.getfenv local getmetatable = _G.getmetatable local pairs = _G.pairs local select = _G.select local type = _G.type local package = require "...
TOOL.Name = "Assimp" TOOL.Directory = "../plugins/Assimp" TOOL.Kind = "Plugin" TOOL.Includes = { "../include", "../plugins/Assimp" } TOOL.ExtIncludes = { "../thirdparty/include" } TOOL.Files = { "../plugins/Assimp/**.hpp", "../plugins/Assimp/**.inl", "../plugins/Assimp/**.cpp" } TOOL.Libraries = { "Nazar...
local util = require 'lusty.util' local methods = {} return { handler = function(context) local methodName = string.lower(context.method) local method = methods[methodName] if not method then method = util.inline('lusty-store-mysql.store.mysql.'..methodName, {channel = channel, config = config}).han...
local t = Def.Sprite { Texture=NOTESKIN:GetPath( '_Index', 'roll body active' ); Frame0000=0; Delay0000=0.44; Frame0001=1; Delay0001=0.03; Frame0002=2; Delay0002=0.03; Frame0003=3; Delay0003=0.44; Frame0004=2; Delay0004=0.03; Frame0005=1; Delay0005=0.03; }; return t;
fx = { style = "STYLE_BEAM", properties = { property_16 = { name = "LineDistance", type = "VARTYPE_FLOAT", value = 1750, }, property_15 = { name = "WidthEpsilon", type = "VARTYPE_FLOAT", value = 0, }, property_09 = { name = "Texture_U_Offset", type = "VARTYPE_ARRAY_TIMEFLOAT", value = { 0, 0, 1, 6, ...
local Packages = script.Parent.Parent.Parent.Packages local Roact = require(Packages.Roact) local StudioTheme = require(Packages.StudioTheme) local Hooks = require(Packages.Hooks) local e = Roact.createElement export type ListLayoutProps = { gap: number?, direction: Enum.FillDirection?, alignX: Enum.HorizontalAli...
-- See LICENSE for terms local ChoOrig_SupplyPod_Shutdown = SupplyPod.Shutdown function SupplyPod:Shutdown(...) CreateGameTimeThread(function() self:ToggleDemolish() end) return ChoOrig_SupplyPod_Shutdown(self, ...) end
local api = vim.api local lsp = vim.lsp local log = require("metals.log") local has_plenary, Float = pcall(require, "plenary.window.float") if not has_plenary then log.warn_and_show("Some features won't work without plenary installed. Please install nvim-lua/plenary.nvim") end --- Module meant to control the Metal...
--DEPENDENCIES --pamixer local wibox = require('wibox') local gears = require('gears') local awful = require('awful') local beautiful = require('beautiful') local spawn = awful.spawn local dpi = beautiful.xresources.apply_dpi local icons = require('widget.control-center.volume-slider.icons') local clickable_container...
local crypt = require'crypt' local password = 'password' local tests = { { method = 'md5'}, { method = 'md5', salt = 'aaaaaaaa'}, { method = 'blowfish', salt = '10$aaaaaaaaaaaaaaaaaaaaaa' }, { method = 'sha' }, { method = 'ssha'}, { method = 'ssha', salt = 'aaaaaaaa'}, { method = 'apr1...
local function run_input_label(wnd, v) if (not valid_vid(wnd.external, TYPE_FRAMESERVER)) then return; end local iotbl = { kind = "digital", label = v.label, translated = true, active = true, devid = 8, subid = 8 }; wnd:input_table(iotbl); iotbl.active = false; wnd:input_table(iotbl); end local ...
AddCSLuaFile() file.CreateDir("voxel") function voxel.SaveGrid(path, grid) local fs = assert(file.Open(path, "wb", "DATA")) fs:Write("GVOX") -- File signature fs:WriteByte(1) -- Version number -- Color table local colors = {} local lookup = {} for _, v in pairs(grid.Items) do local col = tostring(v) if...
url = "https://vimfung.github.io/LuaScriptCore/"; local json = require("dkjson"); local tbl = getDeviceInfo(); local str = json.encode (tbl, { indent = true }) print(url); print(str); function add (a, b) return a+b; end function printUrl(url) print (url); end function test() local value = 256; retu...
local trigger = {} trigger.name = "MaxHelpingHand/AllBlackholesStrengthTrigger" trigger.placements = { name = "trigger", data = { strength = "Mild" } } return trigger
--[[ MIT License Copyright (c) 2021 JasonP Love2d maxrects algorithm demo 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, cop...
object_tangible_deed_vehicle_deed_landspeeder_ab1_deed = object_tangible_deed_vehicle_deed_shared_landspeeder_ab1_deed:new { } ObjectTemplates:addTemplate(object_tangible_deed_vehicle_deed_landspeeder_ab1_deed, "object/tangible/deed/vehicle_deed/landspeeder_ab1_deed.iff")
local RateLimitSubject = require "kong.plugins.header-based-rate-limiting.rate_limit_subject" describe("RateLimitSubject", function() describe("#identifier", function() context("when only one header is used", function() it("should return the content of the header", function() lo...
--final = final drive ratio of car --gearratio[6] = gear ratio in 6th gear --tcircumference = tire circumference gearratio = {} acceleration = 4.9 redline = 8000 final = 4.62 gearratio[1] = 3.07 gearratio[2] = 1.96 gearratio[3] = 1.43 gearratio[4] = 1.12 gearratio[5] = .91 gearratio[6] = .72 tcircumference = 6.22 pri...
--[[ ───────────────────────────────────────────────────────────────── ShotSpotter (client.lua) - Created by ItzEndah Current Version: 1.0.2 (June 2021) Support - ItzEndah#0001 on Discord For the configuration, change the values in the config.lua DO NOT EDIT THIS FILE IF YOU DON'T KNOW WHAT YOU ARE D...
local repl = require 'resty.repl' describe('resty repl', function() it('should work', function() assert.are_equal('function', type(repl.start)) end) end)
-- pastebin run -f -- openDHD from Asher9 -- https://github.com/Asher9/Asher9-s-Programms/tree/master/openDHD return { pruefeKomponenten = "Pruefe Komponenten\n", verfuegbareVersion = "\nVerfuegbare Version: ", aktualisierenGleich = "Automatische Aktualisierung wenn Stargate untaetig ist....
-- Ogni Pokémon con forme alternative ha una tabella associata con -- tutte le informazioni necessarie come sottotabelle: si usano le -- sigle come chiavi, o come elementi stessi se l'informazione della -- tabella è booleana; sono considerati solo i Pokémon le cui forme -- alternative non sono puramente estetiche loca...
-- resty-gitweb@git/read_blob.lua -- Opens and reads blob by filename and rev -- Copyright (c) 2020 Joshua 'joshuas3' Stockin -- <https://git.joshstock.in/resty-gitweb> -- This software is licensed under the MIT License. local ffi = require("ffi") local bit = require("bit") local git2_error = require("git/git2_error"...
---- -- @file WorldSQLite ---- Brief description. -- <#Description#> -- @return <#return value description#> function WorldSQLite:WorldSQLite() end ---- Brief description. -- <#Description#> -- @param database_name <#database_name description#> -- @return <#return value description#> function WorldSQLite:openDataba...
function updateHudClock() -- watch cellphone PDA if exports.global:hasItem(getLocalPlayer(), 17) or exports.global:hasItem(getLocalPlayer(), 2) or exports.global:hasItem(getLocalPlayer(), 96) then showPlayerHudComponent("clock", true) else showPlayerHudCompo...
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] local Clockwork = Clockwork; Clockwork.disease = Clockwork.kernel:NewLibrary("Di...
package.path = "../?.lua;"..package.path; --[[ Generate computer keyboard layouts from some structured information You would want to do this to play with generating new graphics that represent a keyboard. Usage: luajit vkeyboardgen.lua outfilename.lua --]] local vkeys = require("vkeys") local ...
local crouched = false Citizen.CreateThread( function() while true do Citizen.Wait( 1 ) local ped = GetPlayerPed( -1 ) if ( DoesEntityExist( ped ) and not IsEntityDead( ped ) ) then DisableControlAction( 0, 36, true ) -- INPUT_DUCK if ( not IsPauseMenuActive()...
return function() local PlayerGui = game:GetService("Players").LocalPlayer.PlayerGui local Roact = require(game.ReplicatedStorage.Roact) --[[ A search bar with an icon and a text box When the icon is clicked, the TextBox captures focus ]] local SearchBar = Roact.Component:extend("SearchBar") function Searc...
--[[-------------------------------------------------------------------]]--[[ Copyright wiltOS Technologies LLC, 2020 Contact: www.wiltostech.com ----------------------------------------]]-- wOS = wOS or {} wOS.ALCS = wOS.ALCS or {} wOS.ALCS.ExecSys = wOS.ALCS.ExecSys or {} local dir = "wos/advswl/ex...
workspace "Raycaster" configurations { "Debug", "Release" } project "Raycaster" location "Raycaster" kind "ConsoleApp" language "C++" targetdir "Bin" objdir "Bin/Intermediates" files { "%{prj.name}/src/**.h", "%{prj.name}/src/**.hpp", "%{prj.name}/src/**.c", "%{prj.name}/src/**.cc", "%{prj.name}/s...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' 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...
level={{2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, {2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 1, 1}, {2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,...
local format = {} local buffer = require("buffer") function format:getType() return "raster" end function format:isSupported(file) local signature = file:read(8) local version = string.byte(file:read(1)) return signature == "OGFIMAG\x03" and version == 2 end function format:decode(file) file:read(9) -- skip sig...
local scene; -- Scene* local window; -- Window* local camera; -- GameObject* local render; -- Render* local skybox; -- Skybox* local cameraComp; -- Camera* local editorGUIScript; -- Script* function CreateTreeScene() local cube_1 = scene:Instance("cube_1"); ...
local v1 = _ENV["require"]("lattice.cell") local v2 = { } v2[ "InitWithFromNode" ] = function(v3, v4) local v5 = { _fromNode = v4, _executable = false } _ENV["setmetatable"](v5, v3) v3[ "__index" ] = v3 return v5 end v2[ "InitStartEdge" ] = function(v6) local v7 = { tag = "StartNode", outCell = v1:InitWithScope({...
local current_folder = ... and (...):match '(.-%.?)[^%.]+$' or '' local renderutils = require(current_folder .. ".Renderutils") local Text = require(current_folder .. ".Text") local imgui = require(current_folder .. ".imgui") local Button = {} -- Returns, in this order, if the button was just pressed, if the button i...
x = {[10] = 20} return x
--- Module for generating 'any' random value. -- @lqc.generators.any -- @alias new local lqc_gen = require 'lqc.lqc_gen' local tbl = require 'lqc.generators.table' local int = require 'lqc.generators.int' local float = require 'lqc.generators.float' local str = require 'lqc.generators.string' local bool = require 'lq...
hook.Add("XYZShitDBConnected", "xyz_pnc_db", function() XYZShit.DataBase.Query("SELECT * FROM pnc_arrests", function(q) for k, v in pairs(q) do if not PNC.Core.Arrests[v.userid] then PNC.Core.Arrests[v.userid] = {} end PNC.Core.Arrests[v.userid][v.time] = util.JSONToTable(v.charges) end end) XYZSh...
object_tangible_loot_creature_loot_collections_stormtrooper_head = object_tangible_loot_creature_loot_collections_shared_stormtrooper_head:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_stormtrooper_head, "object/tangible/loot/creature/loot/collections/stormtrooper_head.iff")
-- luacheck: push -- luacheck: std +busted tostring(setfenv, print(it)) -- luacheck: pop -- luacheck: std other_std tostring(setfenv, print(it))
local tostring = require "stostring" local scall = require "scall" local callbacks = {} local i = 1; local function CreateHTTPPacket( url, id ) return "HTTP,"..tostring(id)..";"..GetLastExecutedSteamID()..";".. PacketSafe(url)..":"; end function HTTPCallback ( id, code, body, err ) if (not ca...
local args = { ... } local max = tonumber(args[2]) local t = (args[1] == "inf" and 1 or args[1]) + args[2] + args[3] math.randomseed(tonumber(args[3])) function pos(max) return math.floor(math.random(0, max) - max / 2 - max % 2) end for i = 1, args[1] == "inf" and 1/0 or tonumber(args[1]) do os.execute(("xdo...
#!/bin/luajit -- TODO -- help -- config - daily_goal albo zmieniać config lub czytać z linni -- dodawanie pomodoro przez cli -- przy stopie dodawać niedokończony czas - test -- maybe use coroutine when when adds alert -- weird output -- 24 notyfikacja 25 → break 1; output jest po tym jak się wykona skrypt czyli będzie...
ArcCW.IncompatibleAddons = { ["847269692"] = "Causes viewmodel flickering, may crash when customization menu opens", ["306149085"] = "Makes the customize menu mouse unable to appear.", ["541434990"] = "Neurotec is ancient, half the base is missing, and it flat-out doesn't work. Causes all sorts of problems....
minetest.register_on_player_receive_fields(function(player, formname, fields) register.call_form_handlers(player, formname, fields) end)
local Prop = {} Prop.Name = "Shady Apartments 1-B" Prop.Cat = "Apartments" Prop.Price = 750 Prop.Doors = { Vector( -3880.000000, -7329.000000, -13894.700195 ), Vector( -4272.000000, -7329.000000, -13897.000000 ), Vector( -4184.000000, -7249.000000, -13897.000000 ), } GM.Property:Register( Prop )
-- -- @name init.lua -- @author vincent <wang.yuanqiu007@gmail.com> -- @description Entrypoint -- -------------------------------------------------- ---- Initialize Variables -------------------------------------------------- local WIFI_AUTH = {} local WIFI_CONFIG = {} local SENSOR_CONFIG = {} local MQTT_CONFIG = {} ...
local Module = require"Toolbox.Import.Module" return { Transform = Module.Child"Transform"; Object = Module.Child"Object"; Objects = Module.Child"Objects"; }
-- luacheck: globals insulate setup describe it assert mock -- luacheck: globals before_each after_each insulate("About #iron functionality", function() local _ = require('iron.util.tables') before_each(function() _G.vim = mock({ api = { nvim_call_function = function(_, _) return 1 ...
require('go').setup() function GoImportsSync(timeout_ms) vim.lsp.buf.formatting_sync(nil, 1000) local context = { source = { organizeImports = true } } vim.validate { context = { context, 't', true } } local params = vim.lsp.util.make_range_params() params.context = context local result = vim...
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] -- ####################################### -- ## Project: HUD ...
plr = "NAMEHERE" plrid = game.Players[plr].userId level = 120 pie = game.ReplicatedStorage.leaderstat[plrid] repeat pie.EXP.Value = pie.MaxEXP.Value wait() until pie.Level.Value == level repeat pie.AGTEXP.Value = pie.AGTMaxEXP.Value wait() until pie.AGTLevel.Value == level repeat pie.SMTEXP.Value = pie.SMTMaxEXP.Val...
object_tangible_quest_must_crash_site_destroyed_terminal = object_tangible_quest_shared_must_crash_site_destroyed_terminal:new { } ObjectTemplates:addTemplate(object_tangible_quest_must_crash_site_destroyed_terminal, "object/tangible/quest/must_crash_site_destroyed_terminal.iff")
local InventoryFunctions = require "util/inventoryfunctions" local CraftFunctions = require "util/craftfunctions" local PREFERRED_AUTO_LIGHT = GetModConfigData("PREFERRED_AUTO_LIGHT", MOD_EQUIPMENT_CONTROL.MODNAME) local CRAFTING_ALLOWED = GetModConfigData("AUTO_EQUIP_LIGHTSOURCE", MOD_EQUIPMENT_CONTROL.MODNAME) == 2 ...
--[[ Title: context object Author(s): LiXizhi Date: 2010.10.23 Desc: provides handy function to retrieve data on context object. use the lib: ------------------------------------------------------------ NPL.load("(gl)script/apps/Taurus/WindowManager/wm_context.lua"); local wmContext = commonlib.gettable("PETools.Windo...
data:extend({ { type = "sprite", name = "fp_semitransparent_pixel", filename = "__factoryplanner__/graphics/semitransparent_pixel.png", size = 1, flags = {"gui-icon"} }, { type = "sprite", name = "fp_zone_selection", filename = "__factoryplanne...
local colors = { white = "#FFFFFF", black = "#272822", lightblack = "#2D2E27", lightblack2 = "#383a3e", darkblack = "#211F1C", grey = "#8F908A", lightgrey = "#575b61", darkgrey = "#64645e", warmgrey = "#75715E", pink = "#F93C80", green = "#84F57D", aqua = "#66d9ef", darkaqua = "#4EADE5", yellow = "#FFFF4...
--[[ Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved. Copyright (c) 2012, Christoph Kubisch. 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 sour...
--[[ --- Day 17: Reservoir Research --- ]]-- local printf = function(s,...) return io.write(s:format(...)) end local fname = arg[1] local verbose = (fname == '-v') if verbose then fname = arg[2] end -- arena[y][x] = '#' when there's a clay wall -- '.' when it's open (sand) -- '+' f...
local present, packer = pcall(require, "plugins.packerInit") if not present then return false end local use = packer.use return packer.startup(function() local plugin_settings = require("core.utils").load_config().plugins local override_req = require("core.utils").override_req -- this is arranged on the...
NarciTooltipMixin = {}; local TP = NarciTooltipMixin; local GetMouseFocus = GetMouseFocus; local IsMouseButtonDown = IsMouseButtonDown; local UIFrameFadeIn = UIFrameFadeIn; local UIFrameFadeOut = UIFrameFadeOut; local FadeFrame = NarciAPI_FadeFrame; local max = math.max; local sin = math.sin; local pi = math.pi; loca...
local surface = surface local draw = draw local Color = Color SKIN = {} SKIN.PrintName = "Computer Derma Skin" SKIN.Author = "SantosRP" SKIN.DermaVersion = 1 SKIN.GwenTexture = Material( "nomad/computer/srpcomputer.png" ) SKIN.bg_color = Color( 101, 100, 105, 255 ) SKIN.bg_color_sleep = Color( 70, 70, 70...
-- Test vstruct performance. local vstruct = require "vstruct" local read,write = vstruct.read,vstruct.write local SIZE = 2^14 local data = { strings = {}; numbers = {}; booleans = {}; masks = {}; } for i=1,SIZE do data.strings[i] = "xxxx" data.numbers[i] = i data.booleans[i] = i % 2 == 0 data.masks...
--Creator: MIMI#0001-- if game.Players.LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then spawn(function() local speaker = game.Players.LocalPlayer local Anim = Instance.new("Animation") Anim.AnimationId = "rbxassetid://27432686" local bruh = game.Players.LocalPlayer.Character.Huma...
return { wall = function(cutscene, event) -- Open textbox and wait for completion cutscene:text("* The wall seems cracked.") -- If we have Susie, play a cutscene local susie = cutscene:getCharacter("susie") if susie then -- Detach camera and followers (since char...
local major = "AceGUI-3.0-SpellLoader" local minor = 1 local SpellLoader = LibStub:NewLibrary(major, minor) if( not SpellLoader ) then return end SpellLoader.predictors = SpellLoader.predictors or {} SpellLoader.spellList = SpellLoader.spellList or {} SpellLoader.spellsLoaded = SpellLoader.spellsLoaded or 0 ...
local fs = require 'fs' function cdHandle(inp) local input, exit, err = hilbish.runner.lua(inp) if not err then return input, exit, err end input, exit, err = hilbish.runner.sh(inp) if exit ~= 0 and hilbish.opts.autocd then local ok, stat = pcall(fs.stat, input) if ok and stat.isDir then -- discard he...
-- Copyright (c) 2020, The Pallene Developers -- Pallene is licensed under the MIT license. -- Please refer to the LICENSE and AUTHORS files for details -- SPDX-License-Identifier: MIT local ir = require "pallene.ir" local typedecl = require "pallene.typedecl" local constant_propagation = {} local function is_consta...
return { DOMAIN = 1, PORT = 1, SERVER = 1, TIMEOUT = 1, ZONE = 1, message = 1, send = 1, }
local M = {SemVer = {}, Requirement = {}, } local SemVer = M.SemVer local Requirement = M.Requirement local Range = require("crates.types").Range function SemVer.new(obj) return setmetatable(obj, { __index = SemVer }) end function SemVer:display() local text = "" if self.major the...
-- ITS - In The Shadows -- Copyright (C) 2015, 2016, 2017 James Niemira -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later ve...
--[[ The MIT License (MIT) Copyright (c) 2014 Socialz (+ soc-i-alz GitHub organization) 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...
--Creates invisible button onload, hidden under the "REFILL" on the deck pad function onLoad() self.createButton({ click_function="click_draw_hero", function_owner=self, position={0,0,0}, label="Draw hero", color={1,1,1,0}, width=2000, height=3000 }) self.createButton({ click_func...
local red = 0 local green = 0 local blue = 0 local velocity = nil local counter = 0 local STARTINGCOUNTER = 60 local window local function getNumber() return engine.math.random(0, 128) / 255 end local function makeVelocity() return {r = getNumber(), g = getNumber(), b = getNumber()} end function engine.update(dt) ...
--[[ This example spawns, rigs, and animates a Luanoid using a modified version of Dogutsune's Dogu15 rig which is a R15 rig with mesh deformation. This example depends on HttpService being enabled to insert the rig. Dogu15 Rig: https://devforum.roblox.com/t/dogu15-an-improved-r15-rig-mesh-deformat...
function load(add) player = game:GetService("Players").lordsheen local starter = Instance.new("ScreenGui") starter.Parent = player.PlayerGui script.Parent = starter local Frame = Instance.new("Frame") Frame.Paren...
local SP = SmoothyPlates local Utils = SP.Utils local Healers = SP.Addon:NewModule('Healers', 'AceEvent-3.0') local healerclasses = { [65] = 'Paladin: Holy', [105] = 'Druid: Restoration', [256] = 'Priest: Discipline', [257] = 'Priest: Holy', [264] = 'Shaman: Restoration', [270] = 'Monk: Mistweaver' } -- Stolen ...
ROAD_SPEED = -.125 create_actor([[popsicle;2;drawable,spr,vec,dim,col,confined| touchable:no; x:@1; variant:@2; i:@4; ry:.5; sind:70; sh:2; u=@3,; hit=@6,u=@7,i=@5,tl_max_time=5; ]], function(a) if g_pl and g_pl.x+4 > a.x then a:next() end end, function(a) a.dx = ROAD_S...
-- Copyright 2016 The Cartographer Authors -- -- 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...
--[[------------------------------------------------------ # Scheduler TODO: Missing documentation on yield operations --]]------------------------------------------------------ local lub = require 'lub' local lens = require 'lens' local lib = lub.class 'lens.Scheduler' local setmetatable, create, ...
---@class UITransition : zombie.ui.UITransition ---@field private duration float ---@field private elapsed float ---@field private frac float ---@field private fadeOut boolean ---@field private bIgnoreUpdateTime boolean ---@field private updateTimeMS long ---@field private currentTimeMS long ---@field private elapsedTi...
--// options for orderhallbar //-- local _, ns = ... local L = ns.L local LUI = LolzenUI.L local LSM = LibStub("LibSharedMedia-3.0") local f = CreateFrame("Frame") f:RegisterEvent("ADDON_LOADED") f:SetScript("OnEvent", function(self, event, addon) if addon == "LolzenUI_Options" and LolzenUIcfg.modules["orderhallbar"...
co = coroutine.create(function() print("hello") end) print(type(co)) --> thread main = coroutine.running() print(type(main)) --> thread print(coroutine.status(main)) --> running co = coroutine.create(function() print(coroutine.status(co)) --> running coroutine.resume(coroutine.create(function() ...
--[[ · 退选课程 lua 脚本实现 参数 KEYS[1] 为 courseId,值 ARGV[1] 表示 studentId 1. 返回 1 代表退选成功 --]] -- 当前要退选的课程中的学生 KEY local selectedCourseKey = 'course_selected_student_'..KEYS[1] -- 学生要退选的课程 KEY local studentSelected = 'student_selected_course_'..ARGV[1] -- 课程数量剩余 key local courseNumKey = 'course_left_num_'..KEYS[1] -- 剩...
checkformat = "tex" testfiledir = "testfiles-plain"
local ls = require"luasnip" local s = ls.s local i = ls.insert_node local fmt = require("luasnip.extras.fmt").fmt return { s("doctype", fmt( [[ <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>{}</title> </head> <body> ...
-- luacheck: globals ngx import require 'lua-nucleo.import' local tjson_simple = import 'lua-nucleo/string.lua' { 'tjson_simple' } local go_exists, go_have_action_as, go_initiate_action, go_initiate_scheduled_actions, go_write_geo = import 'go.lua' { 'go_exists', '...