content
stringlengths
5
1.05M
-- Copyright (c) 2017-present, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the license found in the LICENSE file in -- the root directory of this source tree. An additional grant of patent rights -- can be found in the PATENTS file in the same directory. -- --[[ -- -- This module spe...
--- Platform implementation for vanilla Lua -- @module howl.platform.native local escapeBegin = string.char(27) .. '[' local colorMappings = { white = 97, orange = 33, magenta = 95, lightBlue = 94, yellow = 93, lime = 92, pink = 95, -- No pink gray = 90, grey = 90, lightGray = 37, l...
-- Sprites Soft Module -- Holds a list of some sprite names provided in factorio -- -- Check Factorio prototype definitions in: -- * \Factorio\data\core -- * \Factorio\data\base -- -- @usage local Sprites = require('util/Sprites') -- ------------------------------------------------------- -- -- @author Denis Zholob (DD...
-- RELATIVITY local lush = require('lush') local hsl = lush.hsl local theme = lush(function() -- pallette for this: -- purples/blues/slate grey as base colour -- -- neon red -- neon yellow -- muted colours? -- bg_dark = hsl("#1f2335")), -- bg = hsl("#24283b")), -- bg_highlight = hsl("#292e42")), -- terminal_blac...
--[[ © 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; local setmetatable = setmetatable; local tonumber = t...
translations["hu"] = { LIVES_LEFT = "<ROSE><N>${lives} <ROSE>életed maradt. <VI>Újraéledés 3...", LOST_ALL = "<ROSE>Elvesztetted az összes életed!", SD = "<VP>Hirtelen halál! Mindenkinek <N>1 <VP>élete maradt.", WELCOME = "<VP>Üdvözöl a pewpew! Használd a <N>lefele <VP>vagy a <N>space <VP>gombot, hogy ...
--- -- @module TouchingPartUtils -- @author Quenty local Workspace = game:GetService("Workspace") local EMPTY_FUNCTION = function() end local TouchingPartUtils = {} function TouchingPartUtils.getAllTouchingParts(part) -- Use the connection hack to gather all touching parts! local conn = part.Touched:Connect(EMPTY...
Game.ImportLibrary("system/scripts/savegame.lua", false) Game.ImportLibrary("gui/scripts/msemenu_debug_locations.lua", false) msemenu = {} msemenu.DebugMenuRoot = nil msemenu.DebugMenuMain = nil msemenu.DebugMenuInfoPanel = nil msemenu.aAreasLevels = {} msemenu.aAreasPresavedGames = {} function msemenu.G...
local cast = {} -- Takes a JA name as a string and sends the command function cast.JA(ja_name_string_en) windower.send_command('input /ja "%s" <me>':format(ja_name_string_en)) end -- Loops through the current buffs looking for "short_name maneuver" -- if found, it returns the count of how many are active function ca...
--鎮魂の決闘 -- --Script by Trishula9 function c100290009.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,100290009+EFFECT_COUNT_CODE_OATH) e1:SetHintTiming(0,TIMING_END_PHASE) e1:Set...
local path = require "nvim-lsp-installer.path" local fs = require "nvim-lsp-installer.fs" local Data = require "nvim-lsp-installer.data" local installers = require "nvim-lsp-installer.installers" local std = require "nvim-lsp-installer.installers.std" local platform = require "nvim-lsp-installer.platform" local process...
require "UIView" require "AppContext" require "CommonUtils" require "StringUtils" class(UIActionSheet, UIView); function UIActionSheet:create(title, cancelButtonTitle, destructiveButtonTitle, ...--[[button titles]]) if not cancelButtonTitle then cancelButtonTitle = ""; end if not destructiveButton...
--Use HP Potion Server.GetTopic("H_PORTION").Add(function(text) unit.StartGlobalEvent(288) end) --Use MP Potion Server.GetTopic("M_PORTION").Add(function(text) unit.StartGlobalEvent(287) end) --HP Potion Change Panel Server.GetTopic("H_change").Add(function(text) if unit.GetVar(285) == 1 then unit.S...
local hex local wct local function pack(fmt, ...) hex[#hex+1] = fmt:pack(...) end local function pack_head() if wct.format_version then pack('L', 0x80000004) end pack('l', 1) end local function pack_custom() pack('z', wct.custom.comment) if #wct.custom.code > 0 then ...
local __exports = LibStub:NewLibrary("ovale/scripts/ovale_warlock", 80300) if not __exports then return end __exports.registerWarlock = function(OvaleScripts) do local name = "sc_t24_warlock_affliction" local desc = "[8.3] Simulationcraft: T24_Warlock_Affliction" local code = [[ # Based on S...
local K, C, L, _ = select(2, ...):unpack() local _G = _G local unpack = unpack local select = select local sort = table.sort local GetAddOnInfo = GetAddOnInfo local CreateFrame = CreateFrame local UIParent = UIParent local GetNumAddOns = GetNumAddOns local GetAddOnDependencies = GetAddOnDependencies local AddonList =...
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') function ENT:Initialize() //self.BaseClass.Initialize(self) --use this in all ents self.Entity:PhysicsInit( SOLID_VPHYSICS ) self.Entity:SetMoveType( MOVETYPE_VPHYSICS ) self.Entity:SetSolid( SOLID_VPHYSICS ) end --use...
local Event = require('opus.event') local itemDB = require('core.itemDB') local neural = require('neural.interface') local UI = require('opus.ui') local Util = require('opus.util') local device = _G.device neural.assertModules({ 'plethora:sensor', 'plethora:kinetic', 'plethora:introspection', }) UI:conf...
-- Copyright (c) 2021 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT describe("game.ui.world_map", function() local WorldMap = require "game.ui.world_map" local testStates = require "test_helpers.test_states" before_each(function() moon...
ImportTarget("targets/linux.lua") function Target.Execute() target.arch = "x86_64" target.bits = 64 target.platform = "linux_x86_64" target.settings.cc.defines:Add("PLATFORM_LINUX") target.settings.cc.defines:Add("PLATFORM_LINUX_X86_64") target.settings.cc.defines:Add("ARCH_X86_64") target.settings.cc.defines:A...
local M = {} function M.setup() require("bufferline").setup { options = { mode = "buffers", numbers = "buffer_id", diagnostics = "nvim_lsp", separator_style = "slant" or "padded_slant", show_tab_indicators = true, show_buffer_close_icons = false, show_close_icon = false,...
local module = {} local replicatedStorage = game:GetService("ReplicatedStorage") local modules = require(replicatedStorage.modules) local network = modules.load("network") local utilities = modules.load("utilities") local mapping = modules.load("mapping") local enchantment = modules.load("enchantment") local itemDat...
--=========== Copyright © 2020, Planimeter, All rights reserved. ===========-- -- -- Purpose: -- --==========================================================================-- local cef = require( "cef" ) local require = require local framework = framework module( "framework.html" ) function newBrowser( url ) re...
Config = {} Config.PointMarker = { r = 0, g = 0, b = 255, x = 1.5, y = 1.5, z = 1.0 } Config.PoliceArmories = { { x = 452.24, y = -980.18, z = 29.69} } Config.Weapons = { {Label = "Flashlight", Hash = "weapon_flashlight", Ammo=100}, {Label = "Nightstick", Hash = "weapon_nightstick", Ammo=100}...
-- GetHeaders Packet local packet = {} packet.name = "getheaders" packet.type = 10 packet.fields = { count = ProtoField.uint64("handshake.getheaders.count", "Hash Count", base.DEC), hash = ProtoField.bytes("handshake.getheaders.hash", "Hash", base.NONE), stop = ProtoField.byt...
--[[ Copyright 2015 Rackspace 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 agreed to in writing, software dis...
-- Remove empty bob's techs bobmods.lib.tech.remove_prerequisite('cobalt-processing', 'chemical-processing-1') bobmods.lib.tech.remove_prerequisite('grinding', 'chemical-processing-1') bobmods.lib.tech.remove_prerequisite('cobalt-processing', 'electrolysis-1') bobmods.lib.tech.remove_prerequisite('lithium-processing',...
local server = nil local data, ip, port local wait_timer = 0 local queue = {} local nametags = {} local talk_form = "formspec_version[5]".. "size[1.5,1]".. "button[0.125,0.125;1.25,0.75;play;Talk]" modname = minetest.get_current_modname() modpath = minetest.get_modpath(modname) local function sanitizeNick(da...
require('strict').on() local function xci_read_software_version(dst_addr, msb_object_id, lsb_object_id) return xp.unpack_software_version( xp():read_user_info(dst_addr, msb_object_id), xp():read_user_info(dst_addr, lsb_object_id)); end return { xtender = xci_read_software_version(101, 3130, 3131), variotrack =...
local constants = { entity = { graphics = {}, input = {}, output = {} }, style = {} } constants.base_path = "__ImprovedCombinator__" constants.blank_image = constants.base_path.."/graphics/blank.png" constants.gui_image = constants.base_path.."/graphics/gui.png" constants.e...
--[[ LuCIRPCc (c) 2009 Steven Barth <steven@midlink.org> 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 $Id$ ]]-- local util = require "luci.ut...
function alert(text) Nova.Alert.Show('', text) end function notify(text) Nova.Alert.Show(text) end
-- -- tests/actions/vstudio/cs2005/test_output_props.lua -- Test the target output settings of a Visual Studio 2005+ C# project. -- Copyright (c) 2012-2013 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("vstudio_cs2005_netcore_prj") local dn2005 = p.vstudio.dotnetbase local cs200...
--test_ringbuffer.lua local ffi = require("ffi") local ringbuffer = require("ring_buffer") local rb = ringbuffer(); print("push: ", rb:push("Hello World!")) local count = 1; local vec = ffi.new("struct iovec[2]") local res = rb:peek(vec) print("vec: ", res) while res > 0 do print(ffi.string(vec[res-1].iov_base, v...
if vim.env.XDG_CONFIG_HOME == nil then vim.env.XDG_CONFIG_HOME = vim.env.HOME .. '/.config' end if vim.env.XDG_DATA_HOME == nil then vim.env.XDG_DATA_HOME = vim.env.HOME .. '/.local/share' end vim.cmd [[packadd packer.nvim]] require('packer').startup({ function() use { 'wbthomason/packe...
-- Flat 6 engines ACF.RegisterEngineClass("B6", { Name = "Flat 6 Engine", }) do ACF.RegisterEngine("2.8-B6", "B6", { Name = "2.8L Flat 6 Petrol", Description = "Car sized flat six engine, sporty and light", Model = "models/engines/b6small.mdl", Sound = "acf_base/engines/b6_petrolsmall.wav", Fuel ...
local opt = vim.opt -- Don't write to shadafile yet opt.shadafile = "NONE" -- Switch to a faster shell opt.shell = "/bin/sh" -- Make life better opt.clipboard = "unnamedplus" opt.mouse = "a" -- Numbers opt.number = true opt.relativenumber = true -- Only case sensitive when there are uppercase letters opt.ignorecas...
-- Simple voxal engine script for the TI-Nspire CX -- // DATA STRUCTURES \\ -- -- 2x1 Vector Vec2 = class() function Vec2:init(x, y) if x == nil then error("Tried to create a vector with x component nil") elseif y == nil then error("Tried to create a vector with y-component nil") end o = {} setm...
local Check = require('user.smartshack-check') local Logger = require('user.smartshack-logger') local Cbus = require('user.smartshack-cbus') local Zone = {} function Zone:new(cbusGa, durationSeconds) local id = table.concat(cbusGa,'/') local object = { id = id, cbusGa = cbusGa, durationSeconds = durati...
Frac = require 'lab6.z2.Frac' print ('Wynik: '..Frac(2, 3) + Frac(3, 4)) --> Wynik: 1 i 5/12 print (Frac.tofloat(Frac (2,3) * Frac (3 ,4))) --> 0.5 print (Frac (2,3) < Frac (3,4)) --> true print (Frac(2, 3) == Frac (8 ,12)) --> true print (Frac(2, 3) + 2) --> 2 i 2/3 print (Frac(2, 3) + 2.5) --> ??? print (Frac(...
local _, nMinimap = ... local cfg = nMinimap.Config if (not cfg.tab.show) then return end local _, class = UnitClass('player') local select = select local tostring = tostring local ceil = math.ceil local modf = math.modf local sort = table.sort local format = string.format local entry local total local addonTa...
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]] require("lualib_bundle"); __TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["5"] = 1,["6"] = 1,["7"] = 3,["8"] = 6,["9"] = 33,["10"] = 38}); local ____exports = {} local ____common = require("upgrades.common") local UpgradeTypes = ____common...
------------------------------------------------- -- Battery Widget for Awesome Window Manager -- Shows the battery status using the ACPI tool -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/battery-widget -- @author Pavel Makhov -- @copyright 2017 Pavel Makhov --...
-------------------------------------------------------------------------------- -- 0173-filter-test-names.lua: test whether tests are selectable by name -- This file is a part of lua-nucleo library -- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license) ----------------------------------------------...
local lib = require "resty.libxl.library" local sheet = require "resty.libxl.sheet" local setmetatable = setmetatable local rawget = rawget local rawset = rawset local type = type local sheets = {} function sheets.new(opts) return setmetatable(opts, sheets) end function sheets...
-- -- Created by IntelliJ IDEA. -- User: RJ -- Date: 21/02/2017 -- Time: 09:18 -- To change this template use File | Settings | File Templates. -- ---@class StashUtil StashUtil = {} StashUtil.newStash = function(name, type, item, customName) if not stash then stash = {}; end local newStash = {}; ...
local _M = {} local function trim(s) return (s:gsub("^%s*(.-)%s*$", "%1")) end local function select_fragment(column_family, select_columns) if select_columns then assert(type(select_columns) == "table", "select_columns must be a table") select_columns = table.concat(select_columns, ", ") else selec...
slot0 = class("HololiveMedalCollectionMediator", import("view.base.ContextMediator")) slot0.register = function (slot0) slot0:BindEvent() end slot0.BindEvent = function (slot0) slot0:bind(ActivityMediator.ON_TASK_SUBMIT, function (slot0, slot1) slot0:sendNotification(GAME.SUBMIT_TASK, slot1.id) end) slot0.bind(...
-- This is a 'class' representing a (group of) beacon(s) and the modules attached to it Beacon = {} -- Init a beacon without a module, which will have to be added afterwards function Beacon.init(beacon_proto, beacon_amount, total_amount, parent_line) local beacon = { proto = beacon_proto, amount = ...
--- Specifics options for @{Gauge} fill direction. -- @classmod GaugeFill local Enum = require("vyzor.enum") --- GaugeFill options. -- @table GaugeFill local _enum = { LeftRight = "left-to-right", RightLeft = "right-to-left", TopBottom = "top-to-bottom", BottomTop = "bottom-to-top" } local GaugeFill = Enum("...
-------------------------------- -- @module PhysicsShapeBox -- @extend PhysicsShapePolygon -- @parent_module cc -------------------------------- -- Get this box's width and height.<br> -- return An Size object. -- @function [parent=#PhysicsShapeBox] getSize -- @param self -- @return size_table#size_table ret (return...
package("vulkan-loader") set_homepage("https://github.com/KhronosGroup/Vulkan-Loader") set_description("This project provides the Khronos official Vulkan ICD desktop loader for Windows, Linux, and MacOS.") set_license("Apache-2.0") add_urls("https://github.com/KhronosGroup/Vulkan-Loader/archive/sdk-$(...
local traceback = "" local status, err = xpcall(function() SceneManager:restore() -- restore the scene data from the store TimerEvents:restore() FnManager:restore() FnManager:register("boardingDone", function (unit_id) ScenEdit_GetUnit({guid=unit_id}).transgressor:fire("done", {unit_id}) end) FnManager:register("ca...
--[[ 随机数参数器 ]] local b3 = require("app.main.modules.behavior3.b3") local Action = require("app.main.modules.behavior3.core.Action") local RandValue = class("RandValue", Action) --[[ Creates an instance of RandValue. properties label 标签 min 最小值 max 最大值 ]] function RandValue:ctor(config) config = config or ...
local LOCAL_PLAYER = Game.GetLocalPlayer() while not _G["DataBase"] do Task.Wait() end while not LOCAL_PLAYER.clientUserData.NetworkSpawn do Task.Wait() end local TYPE = script:GetCustomProperty("Type") local Database = _G["DataBase"] local Image = script:GetCustomProperty("Image"):WaitForObject() local D...
local AttackBox, super = Class(Object) AttackBox.BOLTSPEED = 8 function AttackBox:init(battler, offset, x, y) super:init(self, x, y) self.battler = battler self.offset = offset self.head_sprite = Sprite(battler.chara.head_icons.."/head", 21, 19) self.head_sprite:setOrigin(0.5, 0.5) self:addC...
-- This will load the new copy of the library on Unix systems where it's built -- with libtool. package.cpath = ".libs/liblua-?.so;" .. package.cpath local _tmp_filenames = {} function tmpname () local filename = os.tmpname() _tmp_filenames[#_tmp_filenames + 1] = filename return filename end function clea...
local plugin_name = vim.split((...):gsub("%.", "/"), "/", true)[1] local helper = require("vusted.helper") helper.root = helper.find_plugin_root(plugin_name) function helper.before_each() helper.test_data = require("vendorlib.vendor.misclib.test.data_dir").setup(helper.root) end function helper.after_each() help...
local randomanims = GetConVar( 'deathanimation_random' ) local BadBeginnings = { "g_", "p_", "e_", "b_", "bg_", "hg_", "tc_", "aim_", "turn", "gest_", "pose_", "auto_", "layer_", "posture", "bodyaccent", "a_" } local BadStrings = { "gesture", "posture", "_trans_", "_rot_", "gest", "aim", "bodyflex_", "delta", "ragdol...
local LibNumbers = Wheel("LibNumbers") assert(LibNumbers, "UnitCombatFeedback requires LibNumbers to be loaded.") -- Lua API local bit_band = bit.band local math_cos = math.cos local math_pi = math.pi local math_random = math.random local math_sin = math.sin local next = next local select = select local table_insert =...
--Initialization logic for setting up the entire addon function NL.NeverLockyInit() if not LockyFrame_HasInitialized then --print("Prepping init") NeverLockyFrame:SetBackdrop({ bgFile= "Interface\\DialogFrame\\UI-DialogBox-Background", edgeFile = "Interface\\DialogFrame\\UI-DialogBox-Border", tile = true...
-- Author: Coronhaus local keybinds = { C = 'PlayerRoll'; I = 'PlayerInventory'; X = 'Prone'; LeftShift = 'PlayerSprint'; LeftControl = 'Crouch'; Period = 'EmoteMenu'; SprintToggle = false; CrouchToggle = false; ProneToggle = false; } return keybinds
-- Copyright 2015-present Greg Hurrell. All rights reserved. -- Licensed under the terms of the MIT license. local util = require 'corpus.util' local chooser_buffer = nil local chooser_selected_index = nil local chooser_window = nil local chooser_namespace = vim.api.nvim_create_namespace('') local current_search = n...
-- Require cc.expect library local expect = require("cc.expect").expect -- Table that will hold all library functions and will be returned. local capture = {} --[[ Returns a boolean whether the specified term object is compatible with Capture. True if the term object is compatible, false otherwise. ]] capture.i...
local ARCHS = { "8080", "pdp11", "6303", "tlcs90" } for _, toolchain in ipairs(ALL_TOOLCHAINS) do for _, arch in ipairs(ARCHS) do cowgol { toolchain = toolchain, ins = { "src/cowasm/arch"..arch..".cow", "src/cowasm/cowasm.coh", "src/cowasm/stdsyms.coh", }, outs = { "bin/cowasm-"..arch } } ...
local hallLayerBaseWithName = require("hall/widget/hallLayerBaseWithName") local FloatBallDiskItem = require("hall/floatBall/floatBallDiskItem"); local FloatBallDisk = class(hallLayerBaseWithName,false); FloatBallDisk.Delegate = { onFloatBallDiskHide = "onFloatBallDiskHide"; } FloatBallDisk.ePosition = { ...
local logic = require "logic" local game = {} game.__index = game local _proto_name_map_func_name = { ["pdk.out_card"] = "on_out_card", ["pdk.pass"] = "on_pass" } function game.new(...) local o = {} setmetatable(o, game) game.init(o, ...) return o end function game:init(player_counts, room_i...
-- =========================================================================== -- World Input -- Copyright 2015-2016, Firaxis Games -- -- Handle input that occurs within the 3D world. -- -- In-file functions are organized in 3 areas: -- 1) "Operation" functions, occur agnostic of the input device -- 2) "Input...
-- mod-version:2 local config = require "core.config" local linter = require "plugins.linter" config.pylint_args = {} -- 32 for usage error, lower than that for warnings or success local expected_exitcodes = {} for i=0,31 do table.insert(expected_exitcodes, i) end linter.add_language { file_patterns = {"%.py$"},...
local modname = "wechat_proxy_access_token" local _M = { _VERSION = '0.0.1' } _G[modname] = _M local ngx_log = ngx.log local ngx_timer_at = ngx.timer.at local cjson = require("cjson") local updateurl = "https://api.weixin.qq.com/cgi-bin/token" local updateparam = { method = "GET", query = { grant_type...
local menuactive = false function ToggleActionMenu() menuactive = not menuactive if menuactive then SetNuiFocus(true,true) SendNUIMessage({ showmenu = true }) else SetNuiFocus(false) SendNUIMessage({ hidemenu = true }) end end ---------------------------------------------------------------------------------...
object_building_kashyyyk_grievous_encounter_power_hub = object_building_kashyyyk_shared_grievous_encounter_power_hub:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_grievous_encounter_power_hub, "object/building/kashyyyk/grievous_encounter_power_hub.iff")
-- base16-vis (https://github.com/pshevtsov/base16-vis) -- by Petr Shevtsov -- Darktooth scheme by Jason Milkins (https://github.com/jasonm23) local lexers = vis.lexers local colors = { ['base00'] = '#1D2021', ['base01'] = '#32302F', ['base02'] = '#504945', ['base03'] = '#665C54', ['base04'] = '#928374', ['base...
--[[ CREATE TABLE `advent_doors` ( `userid` varchar(32) NOT NULL, `door` int(11) DEFAULT NULL, `reward` varchar(32) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ]] function XYZChristmasAdvent.Core.RegisterDoorOpening(ply, reward) XYZShit.DataBase.Query(string.format("INSERT INTO advent_doors(userid, door, rewar...
local GlobalBaseStats = require(script:GetCustomProperty("GlobalBaseStats")) function Activate() GlobalBaseStats.currentStats.gravity = GlobalBaseStats.currentStats.gravity - 1.5 end local Effect = {} Effect.Activate = Activate return Effect
local CorePackages = game:GetService("CorePackages") local PerformFetch = require(CorePackages.AppTempCommon.LuaApp.Thunks.Networking.Util.PerformFetch) local InspectAndBuyFolder = script.Parent.Parent local Thunk = require(InspectAndBuyFolder.Thunk) local Network = require(InspectAndBuyFolder.Services.Network) local c...
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "Left", function() local win = hs.window.focusedWindow() local f = win:frame() local screen = win:screen() local max = screen:frame() f.x = max.x f.y = f.y f.w = max.w / 2 f.h = f.h win:setFrame(f) end) hs.hotkey.bind({"cmd", "alt", "ctrl"}, "Right", function()...
guiSetInputMode("no_binds_when_editing") sourceGUIInput = nil local Focus = {} function Focus.onFocus() sourceGUIInput = source end function Focus.onBlur() if sourceGUIInput ~= this then return end sourceGUIInput = nil end local _guiCreateEdit = guiCreateEdit function guiCreateEdit(x, y, w, h, text, relat...
-- --------------------------------------------------------------------------- -- ../bindings/wxwidgets/wx_datatypes.lua was generated by genwxbind.lua -- -- Any changes made to this file will be lost when the file is regenerated -- --------------------------------------------------------------------------- -- --...
local osmose = require 'osmose' local et = osmose.Model 'DieselBurner' ---------- -- User parameters ---------- et.inputs = { -- Heat supply TIN = {default=900, unit='C'}, TOUT = {default=200, unit='C'}, QMAX = {default=10000, unit='kW'}, -- Efficiency EFF = {default=0.9, unit=nil...
---@class AzeriteItem C_AzeriteItem = {} ---@return table activeAzeriteItemLocation function C_AzeriteItem:FindActiveAzeriteItem() end ---@param azeriteItemLocation table ---@return number, number xp, totalLevelXP function C_AzeriteItem:GetAzeriteItemXPInfo(azeriteItemLocation) end ---@param azeriteItemLocation tab...
function Client_SaveConfigureUI(alert) local turns = turnsInputField.GetValue(); if turns < 1 then alert('Turns to get a fort must be positive'); end Mod.Settings.TurnsToGetFort = turns; end
--- Autorun script. -- The first program to run, used to boot the whole system. Configuration -- is loaded using `nvs.read("autorun", parameter)` calls, where the -- available parameters are: -- --* `"runonce"` A program to execute only once. This parameter is set to nil -- just before running. This can be used to run ...
SConfig = {} SConfig.EnableProtection = false SConfig.InternalDetection = 2000 SConfig.DetectAsCheater = 10000 SConfig.DelayBetweenDropCheater = 2000 SConfig.LastMsgDelay = 3500 SConfig.DiscordWebhook = "" SConfig.DiscordLogWebhook = "" --Internal logs
local lspconfig = require 'lspconfig' --- Document highlights local function document_highlight() vim.api.nvim_exec([[ hi LspReferenceRead guibg=#121111 guifg=#FFFF00 hi LspReferenceText guibg=#121111 guifg=#FFFF00 hi LspReferenceWrite guibg=#121111 guifg=#FFFF00 augroup lsp_document_highlight autocmd! ...
--[[ ######################## # # # Walter White # # # # # # 2018 # # # # # ######################## --]] DrawMarkerShow = false DrawBlipShow = false ServicePublique = true FlicEnVille = t...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') util.AddNetworkString("OCRP_ShowPoliceResupply") util.AddNetworkString("OCRP_WithdrawPoliceItem") function ENT:Initialize() local angles = self:GetAngles() local newangles = angles self:SetAngles(Angle(0,0,0)) self:SetModel("models/props_...
return function() local ReplicatedStorage = game:GetService("ReplicatedStorage") local isNaN = require(ReplicatedStorage:WaitForChild("fitumi"):WaitForChild("internal"):WaitForChild("isNaN")) describe("isNaN", function() it("should recognize nan correctly", function() expect(isNaN(0 / 0)).to.equal(true) ...
--Stepper require "TaskQueue" GPIOSTEP = {} -- Controls stepper moter using four gpio pins using gpio.pulse -- Params: -- s1, s2, s3, s4 - the four gpio pins -- clock - the clock frequency in Hz (default 100) -- Returns: initialized stepper control object function GPIOSTEP:initialize(s1, s2, s3, s4, clock) gpio.mo...
return { Differentiate1D = require(script.Parent.Differentiate1D); MergeDeep = require(script.Parent.MergeDeep); Filter1D = require(script.Parent.Filter1D); Values1D = require(script.Parent.Values1D); Merge1D = require(script.Parent.Merge1D); Keys1D = require(script.Parent.Keys1D); Map1D = r...
local Skynet = require "local_skynet" local Debug = require "lualib.debug" local Handle = import "agent/command" local iNo = ... iNo = math.floor(tonumber(iNo)) local function __init__() Skynet.dispatch("lua", function(_, _, cmd, ...) local f = assert(Handle.command[cmd], cmd) Skynet.retpack(f(...))...
--FUNCTIONS-- function cf.portalBuild(pos, rad, is_fill) if(not is_fill)then local poses = {{x = pos.x + rad, y = pos.y, z = pos.z + rad}, {x = pos.x - rad, y = pos.y, z = pos.z - rad}, {x = pos.x - rad, y = pos.y, z = pos.z + rad}, {x = pos.x + rad, y = pos.y, z = pos.z...
--- === plugins.core.disk.favourites === --- --- Action that allows you save and open user-defined favourite folders. local require = require --local log = require "hs.logger".new "favourites" local config = require "cp.config" local dialog = require "cp.dialog" local ...
-- init.lua -- @Author : DengSir (tdaddon@163.com) -- @Link : https://dengsir.github.io -- @Date : 4/11/2019 2:14 PM require('lib.stdlib.base.table') require('lib.stdlib.base.string') require('lib.stdlib.base.class') -- @debug require('lib.stdlib.base.debug') -- @end-debug@
--[[ Variables ]] local isInBeatMode = false local isDebuffedFromBeating = false local beatingDebuffTime = nil local debuffThread = false --[[ Functions ]] function startBeatMode() local ped = PlayerPedId() local isMale = IsPedMale(ped) ClearPedTasks(PlayerPedId()) animThread() end fun...
local tables = {} tables.point = osm2pgsql.define_node_table('osm2pgsql_test_point', { { column = 'tags', type = 'hstore' }, { column = 'geom', type = 'point' }, }) tables.line = osm2pgsql.define_table{ name = 'osm2pgsql_test_line', ids = { type = 'way', id_column = 'osm_id' }, columns = { ...
entity = class:new() entitylist = { "remove", "mushroom", "oneup", "star", "manycoins", "goomba", "koopa", "spawn", "goombahalf", "koopahalf", "flag", "koopared", "kooparedhalf", "vine", "hammerbro", "cheepred", "cheepwhite", "platformup", --my mouse is dying :( "platformright", "box", "pipe", "...
object_tangible_furniture_city_road_torch_12x32_01 = object_tangible_furniture_city_shared_road_torch_12x32_01:new { } ObjectTemplates:addTemplate(object_tangible_furniture_city_road_torch_12x32_01, "object/tangible/furniture/city/road_torch_12x32_01.iff")
local mod = DBM:NewMod(2004, "DBM-AntorusBurningThrone", nil, 946) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 17548 $"):sub(12, -3)) mod:SetCreatureID(122578) mod:SetEncounterID(2088) mod:SetZone() --mod:SetBossHPInfoToHighest() mod:SetUsedIcons(1, 2, 3) mod:SetHotfixNoticeRev(16945) m...
pg = pg or {} pg.enemy_data_statistics_125 = { [10044031] = { cannon = 160, reload = 150, speed_growth = 0, cannon_growth = 1400, pilot_ai_template_id = 10001, air = 0, rarity = 2, dodge = 11, torpedo = 130, durability_growth = 68000, antiaircraft = 140, reload_growth = 0, dodge_growth = 162,...