content
stringlengths
5
1.05M
Player=game:GetService("Players").LocalPlayer Character=Player.Character PlayerGui=Player.PlayerGui Backpack=Player.Backpack Torso=Character.Torso Head=Character.Head Humanoid=Character.Humanoid m=Instance.new('Model',Character) LeftArm=Character["Left Arm"] LeftLeg=Character["Left Leg"] RightArm=Character["Right...
local load_nvim_module = require"utils".load_nvim_module; -- General settings load_nvim_module("options"); -- Plugins local packer = load_nvim_module("plugins"); if packer then packer.compile() end; -- Maps and other keybinds load_nvim_module("maps"); -- Autocmds load_nvim_module("autocmds");
workspace "lord" configurations { "debug", "release" } architecture "x64" cdialect "C89" toolset "clang" BASE_DIR = path.getabsolute(".") targetdir (BASE_DIR .. "/bin") objdir (BASE_DIR .. "/bin-int") filter "configurations:debug" defines { "DEBUG" } symbols "on" filter "configurations:release" defin...
Account = { balance = 0}; function Account:new (o) o = o or {}; setmetatable(o, self); self.__index = self; return o; end function Account:deposit (v) self.balance = self.balance + v; end function Account:withdraw (v) if v > self.balance then error "insufficient funds" end self.balance = self.balance - v; end...
local Logger = require('user.smartshack-logger') local Check = require('user.smartshack-check') local Cbus = require('user.smartshack-cbus') function pulseMultipleAutoLevel(cbusGas, durationSeconds) log(string.format('pulseMultipleAutoLevel %d %d', #cbusGas, durationSeconds)) -- Switch on, only if off or in autole...
-------------------------------------------------------------------------- -- Lmod License -------------------------------------------------------------------------- -- -- Lmod is licensed under the terms of the MIT license reproduced below. -- This means that Lmod is free software and can be used for both academic -...
fx_version 'bodacious' game 'gta5' author 'nimaiso' description 'This resource allows you to integrate your own radios in place of the original radios' version '2.0.0' -- Example custom radios -- supersede_radio "RADIO_01_CLASS_ROCK" { url = "https://playload.ir/mamad.ogg", volume = 0.8 } supersede_radio "RADIO_02_PO...
-- Wifi station test -- Suppose you have a TCP server, whose IP is 192.168.99.218, -- and it listens the PORT 8181, then you can run the following -- source to create a client to connect to the server. PORT = 8181 ADDR = "192.168.99.218" recv_cb = function(sock, c) print(c); end wifi.setmode(wifi.STATION); wifi.st...
local wkOpts = require("utils.whichkey-plugin") local wk = require("which-key") wk.register( { ["<leader>"] = { u = { name = "+Ultest", s = "Ultest Summary Toggle", f = "Ultest Run Tests in File", n = "Ultest Run Nearest", c = "Ultest Clear", o = "Ultest Jump...
local meta = FindMetaTable("Player") function meta:SQL_UpdateCharMoney() self.SQL_MoneyQuery = "UPDATE Accounts SET Money="..self:GetMoney().." WHERE PlayerID="..SQLStr(self:SteamID64())..";" end
/*hook.Add( "PlayerBindPress", "BindDropEntity", function( ply, bind, pressed ) if bind == "+menu_context" and pressed then LocalPlayer():ConCommand( "ze_dropentity" ) return true end end )*/
local tonumber = tonumber local format = string.format local strsplit = strsplit local strbyte, strchar, gsub = string.byte, string.char, gsub local print = print BuildModule('NetEasePinyin-1.0') local function getpinyin(value) local index = (value - 0x4e00) * 2 + 1 local shengmu, yunmu = strbyt...
local converter = {} local luastr local processed_keystrs = {} function write(filepath) local file = io.open(filepath, 'w') if not file then error("Can't write to "..filepath) end file:write(luastr) file:close() end local function fileprep() luastr = "local " end local function filefinish() luastr = luas...
slot0 = class("EventGiveUpCommand", pm.SimpleCommand) slot0.execute = function (slot0, slot1) if getProxy(EventProxy).findInfoById(slot4, slot3):IsActivityType() then slot0:sendNotification(GAME.ACT_COLLECTION_EVENT_OP, { arg2 = 0, cmd = ActivityConst.COLLETION_EVENT_OP_GIVE_UP, arg1 = slot3, arg_list =...
๏ปฟ --[[ Name custom properties of equipment as "Item1", "Item2", etc. --]] local ABI = require(script:GetCustomProperty("ABI")) function SpawnEquipment() local equipment = {} local looping = true local i = 0 while looping do i = i + 1 local key = "Item" .. tostring(i) local template = script:GetCustom...
local extra = {} local conf = require('modules.extra.config') extra['lambdalisue/suda.vim'] = { } extra['wakatime/vim-wakatime'] = { } extra['h-hg/fcitx.nvim'] = { } return extra
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by torvald. --- DateTime: 2019-11-03 02:04 --- if not _G.motd then _G.motd = {} end motd = {LIX_LOGO .. "Welcome to Lix " .. LIX_VERSION .. " (" .. _VERSION .. ")"}
-- Editors: -- AltiV - February 16th, 2019 LinkLuaModifier("modifier_item_imba_bloodstone_720", "components/items/item_bloodstone_720", LUA_MODIFIER_MOTION_NONE ) LinkLuaModifier("modifier_item_imba_bloodstone_active_720", "components/items/item_bloodstone_720", LUA_MODIFIER_MOTION_NONE ) LinkLuaModifier("modifier...
-- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.ff_p2pblock", package.seeall) function index() entry({"admin", "network", "firewall", "p2pblock"}, cbi("luci_fw/p2pblock"), _("P2P-Block"), 40) end
--[[ ########################################################## Inked Shadow Vaults By: keivamp ########################################################## LOCALIZED LUA FUNCTIONS ########################################################## GET ADDON DATA ########################################################## ]]-- lo...
--- Provides permissions for usergroups local P = {} P.id = "usergroups" P.name = "Usergroup Permissions" P.settingsoptions = { "Admin Only", "Anyone", "No one" } P.defaultsetting = 2 P.checks = { function(instance, target, key) return instance.player:IsAdmin(), "This function is admin only" end, "allow", "bloc...
--- @module Element -- A base class for all GUI elements. This module is typically only used by other -- elements, and will rarely be needed for scripts that aren't implementing their -- own. local Table = require("public.table") local T = Table.T local Element = T{} Element.__index = Element Element.__noRecursion = t...
local cjson = require "cjson.safe" local arg_keys = {} for k, _ in pairs(__args) do table.insert(arg_keys, k) end table.sort(arg_keys) for i, k in ipairs(arg_keys) do local v = __args[k] print(i, k, table.getn(v)) if type(v) == 'table' then for j, p in pairs(v) do pr...
if battle == 1 then SelectTarget(3) character_1:UseSkill(2) character_1:UseSkill(3) character_1:UseSkill(1) character_2:UseSkill(3) character_2:UseSkill(1) character_4:UseSkill(1) end if battle == 2 then Summon(1) character_2:UseSkill(2) character_3:UseSkill(2) Summon(6) end
local assets = { Asset("ANIM", "anim/rock_light.zip"), } local prefabs = { "nightmarelightfx", } local function ReturnChildren(inst) for k,child in pairs(inst.components.childspawner.childrenoutside) do if child.components.combat then child.components.combat:SetTarget(nil) end...
local router = { _VERSION = 'router.lua v0.6', _DESCRIPTION = 'A simple router for Lua', _LICENSE = [[ MIT LICENSE * table_copyright (c) 2013 Enrique Garcรญa Cota * table_copyright (c) 2013 Raimon Grau Permission is hereby granted, free of charge, to any person obtaining a table_copy ...
LinkLuaModifier( "modifier_item_glimmer_cape_fade", LUA_MODIFIER_MOTION_NONE ) LinkLuaModifier("modifier_generic_bonus", "modifiers/modifier_generic_bonus.lua", LUA_MODIFIER_MOTION_NONE) item_postactive_2a = class(ItemBaseClass) function item_postactive_2a:GetIntrinsicModifierName() return "modifier_generic_bonus" ...
xbg = default.gui_bg .. default.gui_bg_img .. default.gui_slots local default_inventory_size = 32 local default_inventory_formspecs = { ["8"] = [[ size[8,6] list[context;main;0,0;8,1;] list[current_player;main;0,2;8,4;] listring[current_player;main] listring[context;main] ]] .. default.get_hotbar_bg(0,2), ...
--[[ Name: "cl_scoreboard.lua". Product: "nexus". --]] local PANEL = {}; -- Called when the panel is initialized. function PANEL:Init() self:SetSize( nexus.menu.GetWidth(), nexus.menu.GetHeight() ); self:SetTitle("Scoreboard"); self:SetSizable(false); self:SetDraggable(false); self:ShowCloseButton(false); sel...
---@class ItemBoxUseWindow local ItemBoxUseWindow = DClass("ItemBoxUseWindow", BaseWindow) _G.ItemBoxUseWindow = ItemBoxUseWindow function ItemBoxUseWindow:ctor(data) ---@type Bag_ItemData self.itemData = data[1] end function ItemBoxUseWindow:onInit() self.coverCallBack = self.close local nodeTitle =...
function onUse(player, item, fromPosition, target, toPosition, isHotkey) return onUseShovel(player, item, fromPosition, target, toPosition, isHotkey) end
return function(self) return self.indent * self.chunk_length + self:get_text_length() end
local helpers = require('gmni.helpers') local loading_buffers = {} local spinner = {'|', '/', '-', '\\'} local function spin(bufnr) if loading_buffers[bufnr] == nil then return end if loading_buffers[bufnr] > #spinner then loading_buffers[bufnr] = 1 end helpers.load_to_buf(bufnr, { "Loading... " .. spinner[...
slot0 = class("MusicGameNote") slot0.easyTriggerStepTime = nil slot0.type_left = 1 slot0.type_right = 2 slot0.type_pu_normal = 1 slot0.type_pu_both = 2 slot0.type_dgree_easy = 1 slot0.type_dgree_hard = 2 slot1 = 1 slot2 = 2 slot3 = 3 slot4 = 4 slot5 = 4 slot6 = 0 slot7 = 1 slot8 = 2 slot9 = { 500, 800, 1250, 1450 }...
local velocity = ECS.Component("velocity", function(c, x, y) c.x = x or 0 c.y = y or 0 end) return velocity
-- Fluidity for Minetest 0.5.0+ -- Copyright (c) 2018 Evert "Diamond" Prants <evert@lunasqu.ee> fluidity = rawget(_G, "fluidity") or {} local mpath = minetest.get_modpath("fluidity") fluidity.modpath = mpath -- Functions dofile(mpath.."/functions.lua") -- Molten metals dofile(mpath.."/molten.lua") -- Tanks dofile(...
local default_config local function _1_(_, key) return error(("invalid setting: " .. key)) end default_config = setmetatable({enabled_plugins = {}}, {__index = _1_}) local user_config = setmetatable({}, {__index = default_config}) local valid_plugins local function _2_(_, key) return error(("invalid plugin name: " ...
local ItemUpgrade = { Name = "ItemUpgrade", Type = "System", Namespace = "C_ItemUpgrade", Functions = { { Name = "CanUpgradeItem", Type = "Function", Arguments = { { Name = "baseItem", Type = "table", Mixin = "ItemLocationMixin", Nilable = false }, }, Returns = { { Name = "isValid...
local fs = require("fs") local utils = require("miscUtils") local json = require("json") local discordia = require("discordia") local function getGuildsMissingCommand(command, conn) local resultset = conn:exec([[ SELECT guild_settings.guild_id AS guild_id FROM guild_settings WHERE NOT EXISTS( SELEC...
_TP = {} local types = { void=true, char=true, uint=true, int=true, u64=true, s64=true, u32=true, s32=true, u16=true, s16=true, u8=true, s8=true, float=true, f32=true, f64=true, } -- len aligned to word size function _TP.sizeof (len) local al = len if al > _ENV.c.word.len...
return { guild = { _ = { elona = { mage = { name = "Mages Guild" }, fighter = { name = "Fighters Guild" }, thief = { name = "Thieves Guild" } } } } }
---@class BaseState BaseState = Class{} function BaseState:init() end function BaseState:enter() end function BaseState:exit() end function BaseState:update(dt) end function BaseState:render() end
---@meta ---@class nvslib:table non-volatile storage. local M = {} ---@class NVSHandle:userdata non-volatile storage handle. local handle = {} ---Fetch the value of a key. ---@param key string ---@return any value ---@nodiscard function handle:get(key) end ---Set the value of a key. ---@param key string ---@param v...
local helper = {} --- Returns a integer encoding a color. -- @params r,g,b,a (integers in the [0,255] range): the red, green, blue, and alpha components of the color. function helper.make_color(r, g, b, a) local color = r * 256 + g color = color * 256 + b color = color * 256 + a return color end -- Returns an...
--------------------------------- -- INIT --------------------------------- --get the addon namespace local addon, ns = ... --get rBBS namespace local rBBS = ns.rBBS or rBBS --get the cfg local cfg = ns.cfg --------------------------------- -- SPAWN -----------------------------...
local awful = require('awful') local wibox = require('wibox') local watch = require('awful.widget.watch') local Net_widget = {} NET_CMD = [[ bash -c 'net.sh']] net_widget = wibox.widget { { { id = 'net_wdt', widget = wibox.widget.textbox }, widget = wibox.containe...
require 'mock.gfx.camerafx.LUTGenerator' require 'mock.gfx.camerafx.ColorGradingConfig' require 'mock.gfx.camerafx.LUTTexture'
--shotgun SWEP.Base = "hmcd_weapon_base" SWEP.PrintName = "Remington 870" SWEP.Instructions = "This is a typical civilian pump-action hunting shotgun. It has a 6-round magazine and fires 12-guage 2-3/4 inch cartridges. \n\nLMB to fire.\nRMB to aim.\nRELOAD to reload.\nShot placement counts.\nCrouching helps stabilit...
return { init_effect = "", name = "้Ÿงๆ€ง่ฃ…็”ฒ", time = 10, color = "red", picture = "", desc = "ๆˆ˜ๆ–—ๅฏน่ฑกๆฏ้š”X็ง’๏ผŒ็”Ÿๆˆไธ€ไธช้™ไฝŽ่ขซๆšดๅ‡ปไผคๅฎณY%็š„ๆŠค็›พ๏ผŒๆŒ็ปญZ็ง’", stack = 1, id = 73301, icon = 73300, last_effect = "Shield_enemy", effect_list = { { type = "BattleBuffAddAttr", trigger = { "onAttach", "onStack" }, arg_list = { ...
----------------------------------------- -- ID: 15838 -- Item: Protect Earring -- Item Effect: Protect ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") function onItemCheck(target) return 0 end function onItemUse(target) if (target:addStatusEffect(tpz...
GM.BaseAchievements = { --[[ xp reference amounts: 25,000 = level 25+ 100,000 = level 50+ 500,000 = level 100+ 1,500,000 = level 200+ 10,000,000 = level 500+ 50,000,000 = level 1,000+ 250,000,000 = level 2,500+ 999,999,999 = level 5,000+ ideas: One of a Kind - win an Impossible+ game with only one of eac...
data:extend{ { type = "double-setting", name = "rainbow-player-color-change-time", setting_type = "runtime-per-user", default_value = 300, minimum_value = 1 } }
require "keybow" -- Key mappings -- function handle_key_00(pressed) keybow.set_key(keybow.F13, pressed) end function handle_key_01(pressed) keybow.set_key(keybow.F14, pressed) end function handle_key_02(pressed) keybow.set_key(keybow.F15, pressed) end function handle_key_03(pressed) keybow.set_key(...
--====================================================================-- -- Main Sensors scene --====================================================================-- --[[ - Version: 0.1 - Made by Tom Tuning @ 2018 - Mail: tom.tuning@sas.com ****************** - INFORMATION ****************** - show sensor...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. rifle_spraystick = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/weapon/ranged/rifle/rifle_spraystick.iff", craftingValues = { {"mindamage",6,12,0}, {"maxdamage",73,138,0}, {"attackspeed",3.6,2....
includeFile("tangible/wearables/cybernetic/s02/cybernetic_s02_legs.lua") includeFile("tangible/wearables/cybernetic/s02/cybernetic_s02_arm_r.lua") includeFile("tangible/wearables/cybernetic/s02/cybernetic_s02_arm_l.lua") includeFile("tangible/wearables/cybernetic/s02/cybernetic_s02_torso.lua")
local group = vim.api.nvim_create_augroup( "LvimKbrd", { clear = true } ) local M = {} function M.enable() vim.api.nvim_create_autocmd( "InsertEnter", { pattern = "*", command = 'lua require"lvim-kbrd.switch".insert_enter()', group = grou...
----------------------------------- -- Area: Metalworks -- Door: _6le (Presidential Suite) -- !pos 113 -20 8 237 ----------------------------------- local ID = require("scripts/zones/Metalworks/IDs"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) player...
local mergesort = require('mergesort') local array1, array2 = {}, {} local N = 10000 for i = 1, N do array1[i] = math.random() array2[i] = array1[i] end table.sort( array1 ) mergesort( array2 ) for i = 1, N do assert( array1[i] == array2[i] ) end local gt = function( a, b ) return a > b end table.sort( array1,...
--[=[ Provides permissions on the client. See [PermissionService] for more details. :::tip Be sure to initialize the [PermissionService] on the server. ::: @class PermissionServiceClient @client ]=] local require = require(script.Parent.loader).load(script) local PermissionProviderConstants = require("Permiss...
require "socket" require "pins" require "gpio_cfg" module(..., package.seeall) local function print(...) _G.print("[---HENTRE---]",...) end local pin8flg = true local function pin8set() pins.set(pin8flg, gpio_cfg.gpioKeep) pin8flg = not pin8flg end local app = { GPIO_DBG = function(a, b, c) pri...
--[[ @Authors: Ben Dol (BeniS) @Details: Disable bot event logic ]] BotModule.Disable = {} Disable = BotModule.Disable function Disable.Event(event) local botIcon = BotModule.getPanel():getChildById('botIcon') botIcon:setEnabled(false) botIcon:setTooltip("Disabled") CandyBot.enable(false) BotLogger.wa...
local bit = require('bit') local event = require('core.event') local ffi = require('ffi') local os = require('os') local packet = require('packet') local server = require('shared.server') local string = require('string') local struct = require('struct') local status_effects_size = 0x400 local data = server.new(struct...
local roles_to_names = { [5] = "wizard", [7] = "trainer", [8] = "informer", [9] = "bartender", [10] = "arena_master", [11] = "pet_arena_master", [12] = "healer", [15] = "wizard", [17] = "slave_trader", [19] = "sister", [21] = "wizard", [22] = "horse_master", [23] = "caravan_master...
include "openssl/e_os2" include "openssl/bio" include "openssl/stack" include "openssl/evp" include "openssl/x509" include "openssl/pem2" include "openssl/symhacks" ffi.cdef [[ typedef struct PEM_Encode_Seal_st { EVP_ENCODE_CTX encode; EVP_MD_CTX md; EVP_CIPHER_CTX cipher; } PEM_ENCODE_SEAL_CTX; typedef struct pe...
local c local player = Var "Player" local ShowComboAt = THEME:GetMetric("Combo", "ShowComboAt") local Pulse = THEME:GetMetric("Combo", "PulseCommand") local PulseLabel = THEME:GetMetric("Combo", "PulseLabelCommand") local NumberMinZoom = THEME:GetMetric("Combo", "NumberMinZoom") local NumberMaxZoom = THEME:GetMetric("...
local AppBase = class("AppBase") AppBase.APP_ENTER_BACKGROUND_EVENT = "APP_ENTER_BACKGROUND_EVENT" AppBase.APP_ENTER_FOREGROUND_EVENT = "APP_ENTER_FOREGROUND_EVENT" function AppBase:ctor(appName, packageRoot) cc(self):addComponent("components.behavior.EventProtocol"):exportMethods() self.name = appName ...
Option = require('utils.option') Variable = require('utils.variable') Keymap = require('utils.keymap') Command = require('utils.command') Augroup = require('utils.augroup') Reload = require('utils.reload') Vim = { Option = Option, Variable = Variable, Keymap = Keymap, Command = Command, Augroup = A...
outputFiles = { NormvolumeCumulative={ filename="expData/logistic_regression_2.txt", selected_columns=[0,1], }, }
----------------------------------- -- Area: Davoi -- NPC: _451 (Elevator Lever) -- Notes: Used to operate Elevator @450 (actual npc script is _454) ----------------------------------- require("scripts/globals/status"); require("scripts/globals/settings"); ----------------------------------- function onTrade(player,n...
--[[ ๅ…ƒๆ•ฐๆฎ็ฎก็†ๅ™จ --]] local THIS_MODULE = ... local MetaManager = class("MetaManager", require("app.main.modules.index.IndexListener")) -- ่Žทๅพ—ๅ•ไพ‹ๅฏน่ฑก local instance = nil function MetaManager:getInstance() if instance == nil then instance = MetaManager:create() indexMgr:addListener(instance) end return instance end -...
-- You dont need to set any of these options. These are the default ones. Only -- the loading is important -- require('telescope').setup { -- extensions = { -- fzf = { -- fuzzy = true, -- false will only do exact matching -- override_generic_sorter = true, -- override the generic s...
-- this provides various lua-based utility and state related to key binding INPUTBINDING = { -- these values are indexed at 0, not 1 maxColumn = 4, -- the 5th column (yes there are actually many more columns to bind to) maxPlayer = 1, -- the right player/controller defaultColumn = 2, -- the column whic...
local joyobjs = {} local joys = {} local joys[1] = {} local joys[2] = {} local joys_prev = {} function InitJoysticks() joyobjs[1] = wpilib.Joystick(1) joyobjs[2] = wpilib.Joystick(2) --Initialize all joy buttons to off for k,v in pairs(joys) do for i=1,12 do v[i] = false end end end ...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. brackaset_plates = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/tangible/component/armor/armor_segment_enhancement_brackaset.iff", craftingValues = { {"armor_special_type",0,0,0}, {"blasteffective...
if (settings.startup["k2cp-use-workers"].value) then -- Insert farmers in k2cp-crops category for _, recipe in pairs(data.raw["recipe"]) do if (recipe.category == "k2cp-crops") then table.insert(recipe.ingredients,{"k2cp-farmer", 1}) end end -- Insert workers and scientists for _, recipe in pairs(...
local vim = vim local M = {} local defaults = { highlight_hovered_item = true, show_guides = true, position = 'right', auto_preview = false, -- experimental keymaps = { close = "<Esc>", goto_location = "<Cr>", focus_location = "o", hover_symbol = "<C-space>", ...
-- Copyright (c) 2021 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("moonpie.utility.read_only_table", function() local readOnlyTable = require "moonpie.utility.read_only_table" it("can make a table immutable", function() local t...
function onCreate() -- background shit makeLuaSprite('disruptor', 'disruptor', -400, -200); setLuaSpriteScrollFactor('disruptor', 0, 0); scaleObject('disruptor', 1, 1) addLuaSprite('disruptor', false); makeLuaSprite('disruptor2', 'disruptor2', -900, -1000); setLuaSpriteScrollFactor('disruptor2', 0, 0); ...
-- Autogenerated from KST: please remove this line if doing any edits by hand! local luaunit = require("luaunit") require("process_repeat_bytes") TestProcessRepeatBytes = {} function TestProcessRepeatBytes:test_process_repeat_bytes() local r = ProcessRepeatBytes:from_file("src/process_xor_4.bin") luaunit.a...
if GetLocale() ~= "esES" and GetLocale() ~= "esMX" then return end local _, addon = ... local L = addon.L
a={} if a.k then print(1) end
----------------------------------------- -- ID: 4988 -- Scroll of Armys Paeton III -- Teaches the song Armys Paeton III ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(380) end function onItemUse(target) target:addSpell(380) end
object_mobile_dressed_tatooine_entha_ankwee = object_mobile_shared_dressed_tatooine_entha_ankwee:new { } ObjectTemplates:addTemplate(object_mobile_dressed_tatooine_entha_ankwee, "object/mobile/dressed_tatooine_entha_ankwee.iff")
-- below functions are taken from MMExtension repo, as they're not released yet and I don't feel like writing my own saving function, because I might screw something up -- Saves a string into a file (overwrites it) function io.save(path, s, translate) local f = assert(io.open(path, translate and "wt" or "wb")) f:set...
Gui = Instance.new("ScreenGui", game.CoreGui) Button = Instance.new("TextButton", Gui) Button.Size = UDim2.new(0, 100, 0, 40) Button.BackgroundTransparency = 0.7 Button.Position = UDim2.new(0.003, 0, 0.93, 0) Button.Text = "Enable Noclip" Button.TextColor3 = Color3.new(255, 255, 255) noclip = false game:GetService('Run...
-- -- Skydark theme -- local theme_assets = require("beautiful.theme_assets") local xresources = require("beautiful.xresources") local dpi = xresources.apply_dpi local theme_path = "~/.config/awesome/themes/skydark/" local theme = {} -- -- Colors -- theme.nord0 = "#2E3440" theme.nord1 = "#3B4252" theme.nord2 = "#...
local M = {} function M.config() local home = os.getenv('HOME') g.dashboard_footer_icon = ' ๐Ÿฌ ' g.dashboard_default_executive = 'telescope' g.dashboard_session_directory = sessiondir -- g.dashboard_preview_command = 'figlet -f "3d" "Dashboard"' g.dashboard_preview_command = '/bin/cat' g....
---------------------------------------------------------------- -- Copyright (c) 2012 Klei Entertainment Inc. -- All Rights Reserved. -- SPY SOCIETY. ---------------------------------------------------------------- local resources = include( "resources" ) local animmgr = include( "anim-manager" ) local cdefs = includ...
--wifi.setmode(wifi.STATION)wifi.sta.config("SSID","KEY")wifi.sta.autoconnect(1) local hostname,pwd=wifi.ap.getconfig() wifi.sta.sethostname(hostname) print("Trying ", wifi.sta.getconfig(),"\n...wait 1 second or tmr.stop(0)") tmr.alarm(0, 1000, 1, function() if wifi.sta.getip() then tmr.stop(0) if mdns then m...
deathspeaker_xunra_bhamukas_mental_presence = class({}) function deathspeaker_xunra_bhamukas_mental_presence:OnSpellStart() local victim = GetRandomHeroEntities(1) if not victim then return end victim = victim[1] local victim_loc = victim:GetAbsOrigin() --- Get Caster, Victim, Player, Point --- local caste...
-- npm i -g pyright require'lspconfig'.pyright.setup { cmd = {DATA_PATH .. "/lspinstall/python/node_modules/.bin/pyright-langserver", "--stdio"}, on_attach = require'lsp'.common_on_attach, handlers = { ["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, { ...
local KEY_BINDS = {} function createKeyBindContainerForResource(resource) KEY_BINDS[resource] = {} end function createBindKeyFunctionForResource(resource) return (function(...) local args = {...} if isClient() then local key = table.remove(args,1) local keyState = table.remove(args...
function unsitInHelicopter(vehicle) local seat = getElementData(source, "seat") if (isElement(vehicle)) then if not (getElementType(vehicle)=="vehicle") then local vehicles = exports.mrp_pool:getPoolElementsByType("vehicle") local helicopters = { } for key, value in ipairs(vehicles) do if (getElement...
local awful = require("awful") local gears = require("gears") local M = {} local buttons = gears.table.join( awful.button({ }, 1, function (c) if c == client.focus then c.minimized = true else c:emit_signal( "request::activate", "tasklist", { raise = true } ) end end), awful.button({ }, ...
-- -- โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ I โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ -- :::::: C L A S S Y : : : : : : : : -- -------------------------------------------------------------------------- -- --- | V0.1 - Simple Class Builder --{Theros@MisModding} ---@class Classy --- Simple Class Object ---@...
local user, header = luawa.user, luawa.header --logout the user if user:logout() then return header:redirect('/login') else return header:redirect('/') end
local args = {...} local import_prefix = args[1] if import_prefix then import_prefix = import_prefix:match("^(.-)states%.[^%.]+$") end if not import_prefix then import_prefix = "" end local errormodule = require(import_prefix .. "error") local utilmodule = load_module(import_prefix .. "util", true) local classmodule ...
-------------------------------------------------------------------------------- -- single-TODO-unstrict-mode-suite.lua: suite used for full suite tests -- This file is a part of lua-nucleo library -- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license) -----------------------------------------------...
---@diagnostic disable: undefined-global local palette = require 'nord-palette' local base = require 'base' local clrs = palette.clrs local lang = function() return { dtBooleanKey {fg = clrs.nord7}, dtExecKey {fg = clrs.nord7}, dtLocaleKey {fg = clrs.nord7}, dtNumericKey {fg = clrs.nord7}, dtType...