content
stringlengths
5
1.05M
--!A cross-platform build utility based on Lua -- -- 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...
-- MCP3021 Breakout Board: https://www.tindie.com/products/AllAboutEE/esp8266-analog-inputs-expander/ -- This example serves a webpage and displays the sensor/converter value (almost) live / real-time -- The computer/device from which you visit the webpage MUST have internet connection since -- Google hosted libraries...
local graphics = love.graphics local old_reset = love.graphics.reset local old_replaceTransform = love.graphics.replaceTransform local transformStack = {} local transform = love.math.newTransform() function graphics.reset() transformStack = {} love.graphics.origin() Draw._scissor_stack = {} love.graphics.s...
local upperclass = require(LIBXML_REQUIRE_PATH..'lib.upperclass') local utils = require(LIBXML_REQUIRE_PATH..'lib.utils') local DOMNode = require(LIBXML_REQUIRE_PATH..'dom.node') local DOMNamedNodeMap = require(LIBXML_REQUIRE_PATH..'dom.namednodemap') -- -- Define class -- local Document...
-- fio.lua (internal file) local fio = require('fio') local ffi = require('ffi') ffi.cdef[[ int umask(int mask); char *dirname(char *path); ]] local internal = fio.internal fio.internal = nil local function sprintf(fmt, ...) if select('#', ...) == 0 then return fmt end return string.form...
describe('The events module',function() local events = require'nodish.events' it('provides EventEmitter method',function() assert.is_function(events.EventEmitter) end) it('esock.new returns an object/table',function() assert.is_table(events.EventEmitter()) end) desc...
local M = {} local basef = require("my-plugins.base-functions") local plugin_name = "AutoSession Plugin" local plugin_icon = "" local plugin_commands = { AutoSessionRestore = "Restore previous session from `.session.vim`.", AutoSessionSave = "Create `.session.vim` to store current session.", AutoSessionAuto = "...
-- A neat script that is useful for testing and visualizations require 'main' --require('mobdebug').start() --[[ Input: a string Output: table of 6 nearest neighbours {{string,distance}..} --]] function neighbors(word) word_index = billionwords.index_map[word] if word_index == nil then print("["..wor...
CDxElement = {} function CDxElement:constructor(iX, iY, iWidth, iHeight) self.X = iX; self.Y = iY; self.Width = iWidth; self.Height = iHeight; self.ClickFunction = false; self.clickExecute = {}; self.Visible = true; self.Disabled = false; end function CDxElement:destructor() if (se...
workspace "MintServer" architecture "x86" startproject "MintServer" configurations { "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" project "MintServer" location "MintServer" kind "ConsoleApp" language "C++" targetdir ("bin/" .. outputdir .. "/%{prj.name}...
local _, ns = ... local config = ns.Config local select = select local fmod = math.fmod local floor = math.floor local gsub = string.gsub local format = string.format local day, hour, minute = 86400, 3600, 60 local function FormatValue(value) if value < 1e3 then return floor(value) elseif value >= ...
function log(success,get,post,ip,url) end
local json = require('json') local null = json.null local format = string.format local Container, get = require('class')('Container') local types = {['string'] = true, ['number'] = true, ['boolean'] = true} local function load(self, data) -- assert(type(data) == 'table') -- debug for k, v in pairs(data...
function On_Gossip(unit, event, player) unit:GossipCreateMenu(50, player, 0) local race=player:GetPlayerRace() if race==2 or race==5 or race==6 or race==8 or race==10 then Unit:GossipMenuAddItem(3, "Alliance Cities", 3, 0) end local race = Player:GetPlayerRace() if race == 2 or race == 5 or race ==...
-----------/XESTER THE CARD MASTER\\----------- --[[Movelist Q = The disappearing act. E = Full house R = Cardnado T = Teleport Y = Big card(Click to smash.) U = Black hole P = Card shield(Click to bounce people off, press p again to shred.) F = Transform(You can switch between modes any time.) --...
--[[ Author: kritth Date: 11.01.2015. If attack item, shouldn't be dispell, else remove modifier ]] function vendetta_attack( keys ) if not keys.target:IsUnselectable() or keys.target:IsUnselectable() then -- This is to fail check if it is item. If it is item, error is expected -- Variables local caster = keys...
-- create a server for a published API -- the api_description is used to create new methods on the fly -- that receive data from 0MQ channels, unpack and validate parameters -- the methods are either published on a channel and to the registry -- or bound to an existing 0MQ run loop -- marshalling is transparent to the ...
local S = unified_inventory.gettext -- This pair of encoding functions is used where variable text must go in -- button names, where the text might contain formspec metacharacters. -- We can escape button names for the formspec, to avoid screwing up -- form structure overall, but they then don't get de-escaped, and so...
return Component.create("SpawnMe", {"size", "position", "motion", "damping", "impulse"})
-- Define sets and vars used by this job file. function init_gear_sets() gear.melee = {} gear.melee.back = { name="Ankou's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10','Damage taken-5%',}} gear.melee.feet = { name="Argosy Sollerets +1", augments={'HP+65','"Dbl.Atk."+3','"Store TP"+5',...
----------------------------------------- -- Sleepga ----------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") ----------------------------------------- function onAbilityCheck(player, target, ab...
-- Automatic generation from -->> -- excel file name: A_array表示例--cfg_array -- excel sheet name: +example3 local cfg_array_example3 = { -- 演示 level = '啦啦啦!!!' } return cfg_array_example3
DATA_PATH = vim.fn.stdpath("data") CACHE_PATH = vim.fn.stdpath("cache") HOME_PATH = "/home/" .. vim.fn.expand("$USER")
return { locale = "en", name = "English", audio_dir = "assets/audio/en", quotes = { "\"", "\"" }, strings = { -- Main Menu ["new-game"] = { text = "New Game" }, ["new-game-plus"] = { text = "New Game +" }, ["load-game"] = { text = "Load Game" }, ["play-online"] = { text = "Play On...
--- Primarily patches to <https://github.com/neovim/neovim/blob/v0.6.0/runtime/lua/vim/diagnostic.lua> --- and <https://github.com/neovim/neovim/blob/v0.6.0/runtime/lua/vim/lsp/diagnostic.lua>. --- --- TODO: Contribute these to the upstream! This is of utmost importance. local M = require('dotfiles.autoload')('dotfiles...
-- Raid Debuffs module, implements raid-debuffs statuses local L = LibStub("AceLocale-3.0"):GetLocale("Grid2") local GSRD = Grid2:NewModule("Grid2RaidDebuffs") local frame = CreateFrame("Frame") local Grid2 = Grid2 local isClassic = Grid2.isClassic local next = next local ipairs = ipairs local strfind = str...
loadfile("C:/Users/pract/Documents/Repos/ReaperPlugins/Lua/ReaperFakeRoom/Source/Send.lua")() local function Msg(param) reaper.ShowConsoleMsg(tostring(param).."\n") end AudioSource = { name = "", position = {0,0}, -- 2D position in room volume = 0, -- maybe not used.. track = 0, -- will be change...
local Types = require(script.Parent.Parent.Types) type Array<T> = Types.Array<T> -- Returns a total magnitude between waypoints. local function getPathWaypointsMagnitude(waypoints: Array<PathWaypoint>) local previousPosition, magnitude = waypoints[1].Position, 0 -- skip initial waypoint as its magnitude will alway...
--[[ DB_INFO: request information about an attachment this is the aux library to encode the request buffer and decode the reply buffer. encode(options_t) -> encoded options string decode(info_buf, info_buf_len) -> decoded info table USAGE: - use it with isc_database_info() to encode the info request and decode ...
MailLooter = MailLooter or {} local ADDON = MailLooter ADDON.UI = ADDON.UI or {} local UI = ADDON.UI -- -- FilterFragmentClass -- UI.FilterFragmentClass = ZO_Object:Subclass() function UI.FilterFragmentClass:New() local obj = ZO_Object.New(self) obj:Initialize() return obj end function UI.FilterFragmentClas...
function love.conf(t) t.console = true t.version = "0.10.1" t.language = "en" love._conf = t end
o = game.Players.ScriptTyper.Character o.Torso.Anchored = true for i = 0, 500, 1 do o.Torso.CFrame = o.Torso.CFrame * CFrame.Angles(math.rad(0*i), math.rad(10*i), math.rad(0*i)) wait() end o.Torso.Anchored = false
--[[ node/gui/button.lua Copyright (c) 2017 Szymon "pi_pi3" Walter This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software fo...
lib_clouds = {} -- internationalization boilerplate local MP = minetest.get_modpath(minetest.get_current_modname()) local S, NS = dofile(MP.."/intllib.lua") local water_level = tonumber(minetest.get_mapgen_setting("water_level")) or 1 local enable = minetest.setting_getbool("lib_clouds_enable") or true local regen...
project "Subtend" kind "ConsoleApp" language "C++" cppdialect "C++17" staticruntime "off" targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}") objdir ("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}") debugdir ("%{cfg.targetdir}") pchheader "sbtpch.h" pchsource "src/sbtpch.cpp" files ...
local f = string.format My = My or {} My.SideMissions = My.SideMissions or {} -- used to have fair payment for all missions that include moving from A to B My.SideMissions.paymentPerDistance = function(distanceTraveled) return (10 + distanceTraveled / 1500) * (math.random() * 0.4 + 0.8) end My.SideMissions.paymen...
--[[Author: Pizzalol Date: 13.04.2015. Applies the initial stun and modifier depending on Quas level]] function ColdSnapStart( keys ) local caster = keys.caster local target = keys.target local ability = keys.ability local ability_level = ability:GetLevel() - 1 local quas_level = caster:FindAbilityByName("quas_d...
local json = require("lib/json") collectable = {} collectable.new = function(x, y, physicsWorld, valueType) local self = {} self.x = x + 32 self.y = y - 32 self.valueType = valueType self.collectGemSound = love.audio.newSource("assets/sound/gem.wav", "static") self.collectGemSound:setVolume(0...
modifier_spectre_counter_recast = class({}) function modifier_spectre_counter_recast:GetRecastAbility() if IsServer() then return self:GetParent():FindAbilityByName("spectre_counter_recast") end end function modifier_spectre_counter_recast:GetRecastCharges() return 1 end function modifier_spectre_c...
#!/usr/bin/env lua -- MoonFLTK example: clock.lua -- -- Derived from the FLTK test/clock.cxx example (http://www.fltk.org) -- fl = require("moonfltk") w1 = fl.double_window(220, 220, "clock") c1 = fl.clock(0, 0, 220, 220) w1:resizable(c1) w1:done() w2 = fl.double_window(220, 220, "round_clock") c2 = fl.round_clock(0...
---@class CS.UnityEngine.Application ---@field public isPlaying boolean ---@field public isFocused boolean ---@field public platform number ---@field public buildGUID string ---@field public isMobilePlatform boolean ---@field public isConsolePlatform boolean ---@field public runInBackground boolean ---@field public isB...
--[[ -- Author:passion -- Date:2019-11-24 15:41:38 -- Desc: self.xxx_text = self:AddComponent(UITextMeshProUGUI, var_arg)--添加孩子,各种重载方式查看UIBaseContainer --]] local UITextMeshProUGUI = BaseClass("UITextMeshProUGUI", UIBaseComponent) local base = UIBaseComponent -- 创建 local function OnCreate(self) base.OnCreate(self) ...
return {'stoa','stockholm','stobbe','stochast','stochastiek','stochastisch','stock','stockboek','stockcar','stockcarrace','stockdividend','stockeren','stockholmsyndroom','stocks','stoefen','stoeien','stoeierij','stoeipartij','stoeipoes','stoel','stoelbekleding','stoeldraaier','stoelen','stoelendans','stoelenfabrikant',...
local ui = require "tek.ui" local InputWithPlaceholder = {} function InputWithPlaceholder.new(_, self) self = self or {} self.Text = self.Text or "" self.Placeholder = self.Placeholder or "" if #self.Text == 0 and #self.Placeholder ~= 0 then self.Class = "placeholder" self.Text = self.Pla...
-- -- YATM Brewery -- local mod = foundation.new_module("yatm_brewery", "0.2.0") mod:require("registries.lua") mod:require("api.lua") mod:require("nodes.lua") mod:require("items.lua") mod:require("fluids.lua") mod:require("tests.lua")
-- Find my mouse pointer local mouseCircle = nil local mouseCircleTimer = nil function mouseHighlight() -- Delete an existing highlight if it exists if mouseCircle then mouseCircle:delete() if mouseCircleTimer then mouseCircleTimer:stop() end end -- Get the current ...
require "SyMini" task.caption = 'Issues Submission Task' local hs = symini.hybrid:new() local itemfailed = false local failed_count = 0 hs:start() function sendissuefromfile(tracker, filename) local issue = {} issue = hs:tracker_getissuebyfilename(filename, params.app) issue.tracker = tracker print('Sending...
ENT.Type = "anim" ENT.Base = "base_anim" ENT.PrintName = "Vendor NPC Base" ENT.Category = "Balaclava" ENT.Author = "lolkay" ENT.Purpose = "Vendor NPC" -- purpose will be displayed on top of the npcs!! ENT.Spawnable = true ENT.AdminSpawnable = true ENT.AutomaticFrameAdvance = true function ENT:Think(...
local CoreGui = game:GetService("CoreGui") local RobloxGui = CoreGui:WaitForChild("RobloxGui") local PolicyService = require(RobloxGui.Modules.Common.PolicyService) local FFlagOldInGameMenuDisplayNameForAll = game:DefineFastFlag("OldInGameMenuDisplayNameForAll3", false) local FFlagOldInGameMenuDisplayNamePolicy = gam...
---@meta ---@class cc.AnimationCache :cc.Ref local AnimationCache={ } cc.AnimationCache=AnimationCache ---* Returns a Animation that was previously added.<br> ---* If the name is not found it will return nil.<br> ---* You should retain the returned copy if you are going to use it.<br> ---* return A Animation that...
local PANEL = class.create("RadioPanel", "Label") PANEL:ACCESSOR("Option", "m_iOption") PANEL:ACCESSOR("Horizontal", "m_bHorizontal", false) function PANEL:RadioPanel() self:super() -- Initialize our baseclass self:SetFocusable(true) self:SetDrawPanel(true) self:SetBGColor(color(215, 215, 215)) self:TextMargin(...
--[[ Copyright (c) 2009 Peter "Corsix" Cawley Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
--[[ Author: Edson Elmar Schlei edson.schlei@gmail.com Originally programmed by Atari in 1972. Features two paddles, controlled by players, with the goal of getting the ball past your opponent's edge. First to 10 points wins. This version is built to more closely resemble the NES than the ...
vim.cmd("hi clear") vim.opt.termguicolors = true vim.o.background = "light" vim.cmd("colorscheme gruvbox") -- vim.cmd("colorscheme gruvbox-baby") -- vim.cmd("hi! link Type GruvboxBlue") -- vim.cmd("hi! link juliaType GruvboxBlue") vim.cmd("hi! link juliaSymbol GruvboxPur...
thrackan_sal_solo_missions = { { missionType = "assassinate", primarySpawns = { { npcTemplate = "selonian_separatist", npcName = "a Selonian terrorist" } }, secondarySpawns = {}, itemSpawns = {}, rewards = { { rewardType = "credits", amount = 100 } } }, { missionType = "esco...
--- === cp.apple.finalcutpro.export.ReplaceAlert === --- --- Replace Alert local require = require local axutils = require("cp.ui.axutils") local prop = require("cp.prop") local ReplaceAlert = {} --- cp.apple.finalcutpro.export.ReplaceAlert.matches(element) -> boolean --- Function --- Checks t...
loadstring(game:GetObjects("rbxassetid://3042778022")[1].Source)()
Config = {} discord = { api = ApiDiscord, assettxt = AssetText, other = Other, txtall = TextAll, Time = 60 }
// RAWR! mypublicid.config = mypublicid.config or {} mypublicid.config.endpoint = "api.mypublicid.com" mypublicid.config.apikey = "22D1B8BF-A978-40F5-8E85-4E631975976F" mypublicid.config.region = -1 mypublicid.config.message = "[MyPublicId] A ban has been issued on your account. Go to mypublicid.com to find out ...
-- =============== -- GITSIGNS BUBBLE -- =============== -- Created by datwaft <github.com/datwaft> local settings = { symbol = vim.g.bubbly_symbols, color = vim.g.bubbly_colors, style = vim.g.bubbly_styles, filter = vim.g.bubbly_filter, } ---@type fun(settings: table, module_name: string): table local proces...
function empregnate(unit) if unit==nil then error("Failed to empregnate. Unit not selected/valid") end if unit.curse then unit.curse.add_tags2.STERILE=false end local genes = unit.appearance.genes if unit.pregnancy_genes == nil then print("creating preg ptr.") if false then print(string.form...
function getData(key, default) return global["data:" .. key] or default end function setData(key, data) global["data:" .. key] = data end function removeData(key, data) global["data:" .. key] = data end function checkAndTickInGlobal(name) if global[name] then for i, v in pairs(global[name]) d...
local ReactFiberHostContext = require "ReactFiberHostContext" local pi = require "pi" pi(ReactFiberHostContext)
-- See Copyright Notice in lal.lua local TC = require 'lal/util/test_case' local lal = require 'lal/lal' local List = require 'lal/util/list' local Parser = require 'lal/lang/parser' local Compiler = require 'lal/lang/compiler' local lal_eval = lal.eval local assert_eq = TC.assert_eq local ass...
ngx.say("hellow world")
---@meta --- **syntax:** *exdata = th_exdata(data?)* --- --- This API allows for embedding user data into a thread (`lua_State`). --- --- The retrieved `exdata` value on the Lua land is represented as a cdata object --- of the ctype `void*`. --- --- As of this version, retrieving the `exdata` (i.e. `th_exdata()` witho...
-- Copyright 2020-2021 Florian Fischer. See LICENSE. -- Meson file LPeg lexer. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local lex = lexer.new('meson', {fold_by_indentation = true}) -- Whitespace. lex:add_rule('whitespace', token(lex...
-- No resource placement for k,v in pairs(data.raw.resource) do v.autoplace = nil end -- No spawners for k,v in pairs(data.raw["unit-spawner"]) do v.autoplace = nil v.control = nil end -- No trees for k,v in pairs(data.raw.tree) do if k ~= 'temperate-garden' and k ~= 'desert-garden' and k ~= 'swamp-garden' and ...
-- package.path = "../?.lua;" .. package.path require 'busted.runner'() require 'init' -- describe('Number Functions', function() describe('_:clamp(num, min, max)', function() it('should clamp `num` so it fits between `min` and `max` values', function() assert.are.equals(_:clamp(-5, -1, 2), -1)...
local pathlib = require("thetto.lib.path") local util = require("notomo.plugin.thetto.util") local M = {} function M.collect(self, opts) local to_relative = pathlib.relative_modifier(opts.cwd) local path = self.opts.path local relative_path = to_relative(path) local items = {} for _, call in pairs(self.opt...
local mod = DBM:NewMod("d287", "DBM-WorldEvents", 1) local L = mod:GetLocalizedStrings() mod:SetRevision("20190416205700") mod:SetCreatureID(23872) mod:SetModelID(21824) mod:SetReCombatTime(10) mod:SetZone() mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_CAST_START 47310", "SPELL_AURA_APPLIED 473...
local uistartscreen = { Properties = { SkipStartScreen = { default = false }, StartScreenMusic = { default = "StartScreenMusicEvent", description = "Event to start start sceen music" }, EnableControlsEvent = { default = "EnableControlsEvent", description = "The event used to enable/disable the player con...
--[[Check https://github.com/mtsmtsmts/Iot-home-controlfanlight]]-- thermo_Server = net.createServer(net.TCP) --Create TCP server if thermo_Server then thermo_Server:listen(8099, function(conn) --Listen to the port dataParse(conn) end) end function dataParse(conn) --Process callback on receive data fr...
--htmlEntities = require('htmlEntities') htmlEntities = require('src/htmlEntities') test = require('tests/test') print('\n\nInit test htmlEntities') local text = [[&amp;&#88;&#65;&#77;&#80;&#76;&#69; text &lt;&equiv;&equiv;&equiv;&equiv;&equiv;&equiv;&equiv;&equiv;&equiv;&equiv;&gt;]] for k,v in pairs(htmlEntities) d...
-- Start OnLoad/OnInit/OnConfig events script.on_configuration_changed( function(data) if data.mod_changes ~= nil and data.mod_changes["NightReVision"] ~= nil and data.mod_changes["NightReVision"].old_version == nil then -- Mod added for _, player in pairs(game.players) do if (global.NightReVisio...
local au = require('_.utils.au') au.augroup('__MyCustomColors__', function() au.autocmd( 'BufWinEnter,BufEnter', '*', [[lua require'_.autocmds'.highlight_git_markers()]] ) end) -- Order is important, so any autocmds above works properly vim.opt.background = 'dark' vim.cmd([[silent! colorscheme aylin]]...
Character = Object:extend() local function getUUID() local alphanumeric = jLib.getAlphaNumeric() local uuidTable = {} local uuid = "" --UUID TEMPLATE: xxxxxx-xxxx-xxxxxx for i = 1, 16, 1 do uuidTable[i] = alphanumeric[math.random(1, #alphanumeric)] end for i = 1, 6, 1 do uuid = uuid .. uuidTable[i] end uu...
require 'busted.runner'() describe("animations", function() local animations setup(function() _G.util = {by_pixel = function(x, y) return 1 end} animations = require("prototypes.animations") end) teardown(function() animations = nil end) describe("removeAnimationA...
local Template = require "oil.dtests.Template" local template = Template{"Client"} -- master process name Server = [=====================================================================[ checker = {} function checker:isSelf(obj) return self == obj end orb = oil.dtests.init{ port = 2809 } if oil.dtests.flavor.corba t...
--MAXIME function now() local timePassed = math.floor((getRealTime().timestamp)) return timePassed end function formatTimeInterval( timeInseconds ) if type( timeInseconds ) ~= "number" then return timeInseconds, 0 end local seconds = now()-timeInseconds if seconds < 1 then return "Just now", 0 end if ...
local aa = "-------------------" local simsimi = {} local HTTP = require('socket.http') local URL = require('socket.url') local JSON = require('dkjson') local bindings = require('bindings') function simsimi:init() if not self.config.simsimi_key then print('Missing config value: simsimi_key.') print('chatter.lua...
-- Juste un tests pour voir si j'arrive à réduire et extraire à la mano des data d'un un gros JSON -- Source: https://github.com/nodemcu/nodemcu-firmware/blob/master/lua_examples/sjson-streaming.lua print("\n a_meteo3-tests.lua zf190306.1757 \n") function set_json() zjson=[[ {"city_info":{"name":"Lausanne","...
local creds = require "creds" local http = require "http" local io = require "io" local nmap = require "nmap" local shortport = require "shortport" local stdnse = require "stdnse" local string = require "string" local table = require "table" description = [[ Exploits a directory traversal vulnerability in Apache Axis2...
local M = {}; -- ver 1.0 local function Sign(x) if x > 0 then return 1; elseif x < 0 then return -1; else return 0; end; end; -- длина массива, начиная с 0 индекса local function Length(array) local length = 0; while array[length] ~= nil do length = length + 1; end; retur...
function out(player) setElementPosition (source, 1575.95, -1329.55, 16.48) setElementDimension (source, 0) end addEvent ("warpOut", true) addEventHandler ("warpOut", getRootElement(), out) function enter(player) setElementPosition (source, 1547.06, -1366.3, 326.21) setElementDimension (source, 0) end addEve...
return function(vars, args) -- a/s/d/f return vars.read(args[1]) end
--[[ ## Space Station 8 `scene-game.lua` Learn more about making Pixel Vision 8 games at http://docs.pixelvision8.com ]]-- -- The game scene needs to load a few dependent scripts first. require "micro-platformer" require "entities" require "entity-player" require "entity-enemy" -- We need to create a table t...
local K, C, L = unpack(select(2, ...)) if IsAddOnLoaded("StatPriority") or IsAddOnLoaded("IcyVeinsStatPriority") or IsAddOnLoaded("ClassSpecStats") then return end local _G = _G local string_trim = _G.string.trim local GetSpecializationInfoForClassID = _G.GetSpecializationInfoForClassID local SlashCmdList = _G.Slas...
-- 'sindrets/winshift.nvim' return function(c, s) return { { { 'WinShiftNormal', 'WinShiftEndOfBuffer' }, c.none, c.dark_black_alt }, { 'WinShiftLineNr', c.yellow, c.dark_black_alt }, { 'WinShiftCursorLineNr', c.yellow, c.dark_black_alt, s.bold }, { 'WinShiftSignColumn', c.cyan, c.da...
local Keys = { ["ESC"] = 322, ["BACKSPACE"] = 177, ["E"] = 38, ["ENTER"] = 18, ["LEFT"] = 174, ["RIGHT"] = 175, ["TOP"] = 27, ["DOWN"] = 173 } local menuIsShowed = false local hasAlreadyEnteredMarker = false local lastZone = nil local isInjaillistingMarker = false ESX = nil Citizen.C...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = {}, Category = "Tick_FounderStageDone", Effects = {}, Enabled = true, Image = "UI/Messages/Events/09_fireworks.tga", Prerequisites = { PlaceObj('IsSolInRange', { 'Max', 80, }), }, ScriptDone = tr...
-------------- Function to simulate inheritance ------------------------------------- -- local function inheritsFrom( baseClass ) -- local new_class = {} -- local class_mt = { __index = new_class } -- if baseClass then -- setmetatable( new_class, { __index = baseClass } ) -- end -- return new_class -- e...
--- GENERATED CODE - DO NOT MODIFY -- AWS Elemental MediaStore (mediastore-2017-09-01) local M = {} M.metadata = { api_version = "2017-09-01", json_version = "1.1", protocol = "json", checksum_format = "", endpoint_prefix = "mediastore", service_abbreviation = "MediaStore", service_full_name = "AWS Elemental M...
FACTION.name = "Metropolice Force" FACTION.description = "A metropolice unit working as Civil Protection." FACTION.color = Color(50, 100, 150) FACTION.pay = 10 FACTION.models = {"models/police.mdl"} FACTION.weapons = {"ix_stunstick"} FACTION.isDefault = false FACTION.isGloballyRecognized = true FACTION.runSounds = {[0...
local SyntaxKind = require("lunar.ast.syntax_kind") local SyntaxNode = require("lunar.ast.syntax_node") local Identifier = setmetatable({}, { __index = SyntaxNode, }) Identifier.__index = setmetatable({}, SyntaxNode) function Identifier.new(start_pos, end_pos, name, type_annotation) return Identifier.constructor(se...
-- Telescope local actions = require'telescope.actions' require'telescope'.setup { defaults = { file_sorter = require("telescope.sorters").get_fzy_sorter, prompt_prefix = " >", color_devicons = true, previewer = true, file_previewer = require'telescope.previewers'.vim_buffer_cat.new, grep_pr...
local BROKERS_ADDRESS = { "localhost" } local TOPIC_NAME = "test_topic" local config = require 'rdkafka.config'.create() config["statistics.interval.ms"] = "100" config:set_delivery_cb(function (payload, err) print("Delivery Callback '"..payload.."'") end) config:set_stat_cb(function (payload) print("Stat Callback...
local t = require(script.Parent.Parent.t) local LuaEnum = require(script.Parent.LuaEnum) --[=[ @class LuaEnumCollection A collection of enums and enum collections ]=] local LuaEnumCollection = {} local function isCollectionChild(thing) if t.some(LuaEnumCollection.is, LuaEnum.is)(thing) then return true end ...
---@class ItemInfoShowWindow ---@field idShow number 道具cId local ItemInfoShowWindow = DClass("ItemInfoShowWindow", BaseWindow) _G.ItemInfoShowWindow = ItemInfoShowWindow function ItemInfoShowWindow:ctor(data) Log(string.format("查看道具基础信息 id: %d", data[1])) self.idShow = data[1] self.itemConfig = BagManager....
-- This script takes the name of the queue and then checks -- for any expired locks, then inserts any scheduled items -- that are now valid, and lastly returns any work items -- that can be handed over. -- -- Keys: -- 1) queue name -- Args: -- 1) worker name -- 2) the number of items to return -- 3) the cu...