content
stringlengths
5
1.05M
-- FXVersion Version fx_version 'adamant' games { 'gta5' } -- Client Scripts client_script 'client/main.lua' -- Server Scripts server_script 'server/main.lua' -- NUI Default Page ui_page "client/html/index.html" -- Files needed for NUI -- DON'T FORGET TO ADD THE SOUND FILES TO THIS! files { 'cli...
local queue = {} local MAX_QUEUE_SIZE = 10000 local FLUSH_INTERVAL = 1 local _M = {} local function flush_queue() local current_queue = queue queue = {} for _,v in ipairs(current_queue) do v.func(unpack(v.args)) end end function _M.init_worker() local _, err = ngx.timer.every(FLUSH_INTERVAL, flush_que...
--[[------------------------------------------------------------------------- * * ReadyCheck module for PerfectRaid addon. * * Written by: Panoramix * Version: 1.0 * ---------------------------------------------------------------------------]] local ReadyCheck = PerfectRaid:NewModule("PerfectRaid-Ready...
require("tests/testsuite") DocumentSet.addons.smartquotes.singlequotes = false DocumentSet.addons.smartquotes.doublequotes = false DocumentSet.addons.smartquotes.notinraw = true Cmd.InsertStringIntoParagraph("'Hello, world!'") Cmd.SplitCurrentParagraph() Cmd.InsertStringIntoParagraph('"Hello, world!"') Cmd.SplitCurr...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local Modules = ReplicatedStorage.Modules local Roact = require(Modules.Roact) local RoactRodux = require(Modules.RoactRodux) local Character = require(script.Parent.Character) local VisibleCharacters = Roact.Component:extend("VisibleCharacters") funct...
UnicornJob_Config = { drinks = { alcool = { }, noalcool = { {item = "water", label = "Eau minérale"} } }, clothes = { [1] = { label = "Tenue de serveur", male = { tshirt_1 = 59, tshirt_2 = 1, ...
return { id = 64, furnitures_1 = { { id = 64103, parent = 0, y = 20, dir = 1, x = 12, child = {} }, { id = 64001, parent = 0, y = 0, dir = 1, x = 0, child = {} }, { id = 64104, parent = 0, y = 12, dir = 1, x = 17, child = {} }, { id = 64002, pa...
local function messenger_require(name) return require ('app.messenger.resources.classes.' .. name) end local uv = require "lluv" local ut = require "lluv.utils" local esl = require "lluv.esl" local utils = messenger_require "Messenger.Utils" local BaseChannel = messenger_re...
hook.Add("PlayerInitialSpawn", "bSecure.CheckFamilyShare", function(pPlayer) if pPlayer:IsBot() then return end local serverguard_bans, ulib_bans local OwnerSteamID = pPlayer:OwnerSteamID64() if OwnerSteamID == pPlayer:SteamID64() then return end if serverguard then serverguard_bans = sql.Q...
local ffi = require "ffi" local clang = require "clang" local llvm = require "ffi.llvm" print(jit.version) local format = string.format --[[ around 1ms for a lua_CFunction to multiply a number by 2. around + 0.25ms for lua.h goes up to 3.5ms for 100 multiplies optimizer adds about 1ms more for realistic code, we mi...
local machine = script.Parent.Parent local selection1Name = "Flavors" local selection2Name = "Toppings" local origModel = machine.IceCream local origTool = script["Ice Cream"] local instruction1 = "Select flavor" local instruction2 = "Select topping" local function handleSelection1(ice, button) ice.Scoop.BrickColor = ...
-------------------------------- -- @module MWSvgSprite -- @extend Sprite -- @parent_module mw -------------------------------- -- -- @function [parent=#MWSvgSprite] setVectorScale -- @param self -- @param #float scale -------------------------------- -- -- @function [parent=#MWSvgSprite] getVectorScale ...
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: unit_smart_select.lua -- version: 1.36 -- brief: Selects units as you drag over them and provides selection modifier hotkeys -- ori...
bot_token = "283727744:AAF4hVqCVi-c1xz6BEBcthLvhcaiZsiy_2E " send_api = "https://api.telegram.org/bot"..bot_token bot_version = "6.0" sudo_name = "Mbdev" sudo_id = 127882811 admingp = -127882811 sudo_num = "989351372038" sudo_user = "shayan_soft" sudo_ch = "UmbrellaTeam"
-- Hopefully in a future update the entire spawn menu will be moved to Lua -- For now, in your gamemode, you could use the spawn menu keys to do something else --[[--------------------------------------------------------- If false is returned then the spawn menu is never created. This saves load times if your mod...
#!/usr/local/bin/lua -i function arrayPrinter(array) for _,v in ipairs(array) do print(v) end end function test() arrayPrinter({1,2,3,4,5}) end
-- threescale_utils.lua local M = {} -- public interface -- private -- Logging Helpers function M.show_table(t, ...) local indent = 0 --arg[1] or 0 local indentStr="" for i = 1,indent do indentStr=indentStr.." " end for k,v in pairs(t) do if type(v) == "table" then msg = indentStr .. M.show_table(v...
local AgentUserData = { time = 0 } local function jump(v1, v2, height, t) local out = {} out.x = v1.x + t * (v2.x - v1.x) out.y = v1.y + t * (v2.y - v1.y) out.z = v1.z + t * (v2.z - v1.z) out.y = out.y + height * math.sin(math.pi * t) return out end local actionManager = cc.Director:getIns...
ITEM.name = "Duct Tape" ITEM.model = Model("models/props_hla/props/duct_tape.mdl") ITEM.description = "A roll of tape with adhesive glue." ITEM.width = 2 ITEM.height = 1 ITEM.price = 5 ITEM.category = "Crafting" ITEM.rarity = "Rare" ITEM.noBusiness = true ITEM.maxStack = 5; ITEM.defaultStack = 1;
hs.window.animationDuration = 0 hs.hotkey.bind({ "cmd", "alt", "ctrl" }, "Up", function() local window = hs.window.focusedWindow() local screen = window:screen():frame() local frame = hs.geometry.rect(screen.x + 10, screen.y + 10, screen.w - 20, screen.h - 20) window:setFrame(frame) end) hs.hotkey.bin...
-- Plugin manager boilerplate return require('packer').startup(function(use) use 'wbthomason/packer.nvim' -- Prelude, aka dependencies use 'nvim-lua/popup.nvim' use 'nvim-lua/plenary.nvim' -- Theme use 'rhysd/vim-color-spring-night' use 'EdenEast/nightfox.nvim' -- Surround use 'tpope/vim-surround' ...
return { talon_paladium = { acceleration = 0.015, airsightdistance = 1000, activatewhenbuilt = true, brakerate = 0.015, buildangle = 16384, buildcostenergy = 3380221, buildcostmetal = 170923, buildpic = "talon_paladium.dds", buildtime = 2100000, canattack = true, canguard = true, c...
WireToolSetup.setCategory( "Physics" ) WireToolSetup.open( "detonator", "Detonator", "gmod_wire_detonator", nil, "Detonators" ) if CLIENT then language.Add( "tool.wire_detonator.name", "Detonator Tool (Wire)" ) language.Add( "tool.wire_detonator.desc", "Spawns a Detonator for use with the wire system." ) TOOL.Infor...
object_tangible_food_foraged_edible_jar_fungus_generic = object_tangible_food_foraged_shared_edible_jar_fungus_generic:new { } ObjectTemplates:addTemplate(object_tangible_food_foraged_edible_jar_fungus_generic, "object/tangible/food/foraged/edible_jar_fungus_generic.iff")
repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid") local mouse = game.Players.LocalPlayer:GetMouse() repeat wait() until mouse local plr = game.Players.Lo...
Media = Object:extend() Media:implement(State) function Media:init(name) self:init_state(name) end function Media:on_enter(from) camera.x, camera.y = gw/2, gh/2 self.main = Group() self.effects = Group() self.ui = Group() graphics.set_background_color(fg[0]) end function Media:update(dt) self.main:up...
geldispenser = class("geldispenser") function geldispenser:init(x, y, r) --PHYSICS STUFF self.cox = x self.coy = y self.x = x-1 self.y = y-1 self.r = r self.speedy = 0 self.speedx = 0 self.width = 2 self.height = 2 self.static = true self.active = true self.category = 7 self.mask = {true, false, false, f...
local present, lualine = pcall(require, "lualine") if not present then return end local gps_present, gps = pcall(require, "nvim-gps") local lsp_present, lsp_status = pcall(require, "lsp-status") local lualine_c = {} if lsp_present then lsp_status.config({ indicator_ok = '', status_symbol = '', }) table.ins...
local brute = require "brute" local coroutine = require "coroutine" local creds = require "creds" local shortport = require "shortport" local stdnse = require "stdnse" local xmpp = require "xmpp" description = [[ Performs brute force password auditing against XMPP (Jabber) instant messaging servers. ]] --- -- @usage ...
Player=Object:extend() function Player:new() self.image = love.graphics.newImage("sprites/canon.png") --self.image = love.graphics.newImage("panda.png") self.x = love.graphics.getWidth() / 2 self.y = love.graphics.getHeight() - self.image:getHeight() - 10 self.speed = 500 self.width = self.imag...
-- Generated by Luapress v3.0 -- pages_dir and posts_dir added local config = { url = '/tests/directories/build', posts_dir = 'post', pages_dir = 'page', archive_title = 'Old Posts' } return config
ITEM.Name = 'SMG' ITEM.Price = 200 ITEM.Model = 'models/weapons/w_smg1.mdl' ITEM.WeaponClass = 'weapon_smg1' ITEM.SingleUse = true function ITEM:OnBuy(ply) if (!ply:HasWeapon(self.WeaponClass)) then ply:Give(self.WeaponClass) else ply:GiveAmmo(180, "SMG1", false) end ply:SelectWeapon(self.WeaponC...
Config = {} Config.Locale = 'en' Config.RequiredCopsRob = 1 Config.RequiredCopsSell = 1 Config.MinJewels = 8 Config.MaxJewels = 20 Config.MaxWindows = 20 Config.SecBetwNextRob = 7200 --2 hour Config.MaxJewelsSell = 35 Config.PriceForOneJewel = 500 Config.EnableMarker = true Config.NeedBag = false Config.Borsoni = {4...
--get the addon namespace local addon, ns = ... --get the config values local cfg = ns.cfg local barcfg = cfg.bars.micromenu local NUM_MICRO = 12 if not barcfg.disable then local bar = CreateFrame("Frame","rABS_MicroMenu",UIParent, "SecureHandlerStateTemplate") bar:SetWidth(NUM_M...
-- This file is under copyright, and is bound to the agreement stated in the EULA. -- Any 3rd party content has been used as either public domain or with permission. -- © Copyright 2014-2018 Aritz Beobide-Cardinal All rights reserved. include('shared.lua') ENT.RenderGroup = RENDERGROUP_OPAQUE ENT.ScreenMsg = {} f...
--[[ This file is part of ClearTables @author Paul Norman <penorman@mac.com> @copyright 2015-2016 Paul Norman, MIT license ]]-- require ("common") print("common.lua tests") print("TESTING: oneway") assert(oneway(nil) == nil, "test failed: oneway(nil) == nil") assert(oneway('-1') == 'reverse', "test failed...
minetest.register_globalstep(function(dtime) minetest.set_timeofday(0.5) end)
local mtstates = require("mtstates") local s1 = mtstates.newstate("return function() return 3 end") local id = s1:id() local s2 = mtstates.state(id) local s3 = mtstates.state(id) assert(s1:isowner() == true) assert(s2:isowner() == false) assert(s3:isowner() == false) s2 = nil collectgarbage() assert(s3:call() == 3) as...
local Processer = require 'dataset.processer' local cmd = torch.CmdLine() cmd:option('-batch_size', 128, 'batch size') local opt = cmd:parse(arg) local directory = 'dataset/text8/' local text_file = directory .. 'text8' local tensor_text_file = directory .. 'text8.t7' local vocab_file = directory .. 'vocab.t7' local...
-- ULX GlobalBan System -- Adobe and NigNog ------------------ //Load the inital file for the server! if SERVER then print('[ULX GB] - Loading.....'); include('globalban/gb_generic.lua'); include('globalban/gb_mysqloo.lua'); end
ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.PrintName = "Dazzle Dust" ENT.Author = "Rickster" ENT.Spawnable = false function ENT:SetupDataTables() self:NetworkVar("Int", 0, "price") self:NetworkVar("Entity", 1, "owning_ent") end hook.Add("Move", "DazzleDruggedPlayer", function(ply, mv) if not ply.i...
--- The elasticsearch module -- -- Requirements: -- lua >= 5.1 -- -- @module elasticsearch -- @author Dhaval Kapil ------------------------------------------------------------------------------- -- Importing modules ------------------------------------------------------------------------------- local Client = require...
function onCreate() makeAnimatedLuaSprite('backG','Cgstage/CGBG',-1000,-740); setLuaSpriteScrollFactor('backG', 0.9, 0.9); scaleObject('backG', 1.36,1.2); addLuaSprite('backG', false); addAnimationByPrefix('backG', 'idle', 'new', 40, true); makeAnimatedLuaSpr...
-- @see demo-transport-belt-pictures fast_belt_animation_set = { animation_set = { filename = "__base__/graphics/entity/fast-transport-belt/fast-transport-belt.png", priority = "extra-high", width = 64, height = 64, frame_count = 32, direction_count = 20, hr_version = { filena...
local nilAssertion = flow.assertionFactory.new(function(data) return data == nil, "TYPE_RESTRICTION_VIOLATION", "Nil expected, got " .. type(data); end); return nilAssertion;
projectiles = {}
username = "root" password = "rewt" db = "rp" host = "localhost" port = 3306 function getMySQLUsername() return username end function getMySQLPassword() return password end function getMySQLDBName() return db end function getMySQLHost() return host end function getMySQLPort() return por...
--[[ Name: "cl_auto.lua". Product: "nexus". --]] local MOUNT = MOUNT; NEXUS:IncludePrefixed("sh_auto.lua"); NEXUS:HookDataStream("MapScene", function(data) MOUNT.mapScene = data; end);
AddCSLuaFile() SWEP.DrawWeaponInfoBox = false SWEP.Author = "TankNut" SWEP.Slot = 2 SWEP.AdminOnly = false SWEP.Spawnable = false SWEP.DrawCrosshair = true SWEP.ViewModel = Model("models/weapons/c_pistol.mdl") SWEP.WorldModel = Model("models/weapons/w_smg1.mdl") SWEP.Primary.ClipSize...
-- -- Created by IntelliJ IDEA. -- User: apatterson -- Date: 6/28/18 -- Time: 7:25 PM -- To change this template use File | Settings | File Templates. -- local mapBinder = require("../binder/mapBinder") local keyModifierMapFactory = require("../binder/maps/keyModifierMapFactory") local module = {}; local modifiers =...
----------------------------------------- -- Spell: Cursed Sphere -- Deals water damage to enemies within area of effect -- Spell cost: 36 MP -- Monster Type: Vermin -- Spell Type: Magical (Water) -- Blue Magic Points: 2 -- Stat Bonus: MND+1 -- Level: 18 -- Casting Time: 3 seconds -- Recast Time: 19.5 seconds -- Magic ...
//loader Plugin loader //Load Plugins local function LoadPlugins() if DAK.config ~= nil and DAK.config.loader ~= nil then for i = 1, #DAK.config.loader.PluginsList do local Plugin = DAK.config.loader.PluginsList[i] if Plugin ~= nil and Plugin ~= "" then local filename = string.format("lua/plugins/%s.lua...
-- n, v, i are mode names local function termcodes(str) return vim.api.nvim_replace_termcodes(str, true, true, true) end local M = {} M.general = { i = { -- go to beginning and end ["<C-b>"] = { "<ESC>^i", "論 beginning of line" }, ["<C-e>"] = { "<End>", "壟 end of line" }, -- navigat...
local IItemReadable = class.interface("IItemReadable", { on_read = "function" }) return IItemReadable
local playsession = { {"Jhumekes", {632374}}, {"Menander", {1022963}}, {"Gorlos", {11317}}, {"supra90", {1100578}}, {"everLord", {1352418}}, {"adieclay", {8173}}, {"MeggalBozale", {1176869}}, {"matam666", {1124455}}, {"lemarkiz", {10724}}, {"Augustona", {599619}}, {"tanneman", {594971}}, {"Collider", {68090...
local stores = { ["paleto_twentyfourseven"] = { position = { ['x'] = 1730.35949707031, ['y'] = 6416.7001953125, ['z'] = 35.0372161865234 }, reward = 1000, nameofstore = "Paleto Bay", lastrobbed = 0 }, ["sandyshores_twentyfoursever"] = { position = { ['x'] = 1960.4197998047, ['y'] = 3742.9755859375,...
minetest.register_on_newplayer(function(player) player:get_inventory():add_item('main', 'default:sword_steel') player:get_inventory():add_item('main', 'default:torch 8') end)
local _, G = ... local function asPrefList(a, b) local allList = true for _, x in pairs(a) do allList = allList and type(x) == 'table' end if allList then return a end local aa = {} for n, f in pairs(a) do local bns = {} for bn in pairs(b) do table.insert(bns, bn) end table....
-- Scanline floodfill, uses a self made stack that can either be a LIFO queue (depth-first search) -- or a simple queue (breadth-first search) -- See http://en.wikipedia.org/wiki/Flood_fill#Scanline_fill local function floodStackScanline(x,y,grid,stack) stack:clear() local y1 local spanLeft, spanRight if grid:has...
Materials = script.Parent.Materials Color = script.Parent.Colors while wait() do local Humanoid = script.Parent.Parent:FindFirstChild("Humanoid") -- Find the players humanoid Materials.Value = "None" if Humanoid.FloorMaterial == Enum.Material.SmoothPlastic or Humanoid.FloorMaterial == Enum.Material.Plastic then M...
local igwin = require"imgui.window" --local win = igwin:SDL(800,400, "widgets",{vsync=true,use_implot=true}) local win = igwin:GLFW(800,400, "widgets",{vsync=true}) win.ig.ImPlot_CreateContext() local ffi = require"ffi" local xs2, ys2 = ffi.new("float[?]",11),ffi.new("float[?]",11) for i = 0,10 do xs2[i] = i * 0...
return require("packer").startup(function() use "wbthomason/packer.nvim" use { "nvim-treesitter/nvim-treesitter", run = ":TSUpdate", config = function() require("nvim-treesitter.configs").setup { context_commentstring = { enable = true } } end } use { "nvim-telescope/telescope.nvim", ...
---@meta ---@class cc.EaseQuinticActionIn :cc.ActionEase local EaseQuinticActionIn={ } cc.EaseQuinticActionIn=EaseQuinticActionIn ---* ---@param action cc.ActionInterval ---@return self function EaseQuinticActionIn:create (action) end ---* ---@return self function EaseQuinticActionIn:clone () end ---* ---@param...
-------------- -- Includes -- -------------- #include 'include/internal_events.lua' #include 'include/config.lua' -------------------------------- -- Local function definitions -- -------------------------------- local VIP_PRICE = 0.6 local g_VipRes = Resource('rafalh_vip') -- name = { -- cost - it...
-- Pure LuaJIT implementation of quite OK image format (QOI) -- MIT license local ffi = require('ffi') local bit = require('bit') local band, bor, bxor = bit.band, bit.bor, bit.bxor local lshift, rshift, rol = bit.lshift, bit.rshift, bit.rol -- Constants local QOI_SRGB = 0 local QOI_LINEAR = 1 local QOI_OP_INDEX =...
-- @module gamecenter -- @group Services -- @brief The Game Center integration. -- @brief The listeners. local listeners = {} -- @brief Indicates if the player has been authenticated. local authenticatedFlag -- @brief Indicates if the login view is visible. local loginViewVisibleFlag -- @brief Indicates if the achi...
--setBufferName("recording09.lua") --print2(inspect(recorder.notes)) recorder.notes = { { frame = 96, midi = { 144, 72, 73 } }, { frame = 114, midi = { 144, 79, 76 } }, { frame = 115, midi = { 128, 72, 64 } }, { frame = 117, midi = { 128, 79, 64 } }, { frame = 131, midi ...
local wrapper = require("core.lib.wrapper") local Combat = wrapper.loadBundleScript("lib/Combat"); local CombatErrors = wrapper.loadBundleScript("lib/CombatErrors"); local B = require("core.Broadcast") local Logger = require("core.Logger") return { usage = "consider <target>", comman...
$file "demo.lua" $line 1 -- -- $Id: mips.lua 3 2006-04-29 13:17:19Z lindig $ -- -- Sample Generator for Quest. R = Rand Mips = {} Mips.members = R.choose(1,4) -- for structs, unions Mips.argc = R.choose(1,8) Mips.vargc = R.oneof { R.unit(0), R.choose(1,4) } -- vargv length Mips.simple ...
--[[ -- -- Copyright (c) 2013-2017 Wilson Kazuo Mizutani -- -- 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, mo...
local lpack = require 'lpack' local schar = string.char local tunpack = _G.unpack or table.unpack for k, v in pairs(lpack) do string[k] = v end local TYPE = { NIL = 'N', TRUE = 'T', FALSE = 'F', INT0 = '0', INT = 'I', FLOAT0 = '.', FLOAT = '*', STRING ...
ITEM.name = ".22LR" ITEM.model = "models/lostsignalproject/items/ammo/9x19.mdl" ITEM.ammo = ".22LR" // type of the ammo ITEM.ammoAmount = 60 // amount of the ammo ITEM.description = "" ITEM.quantdesc = "A box that contains %s rounds of .22LR ammo. " ITEM.longdesc = "This small .22LR round is primarily used for pest co...
--[[********************************** * * Multi Theft Auto - Admin Panel * * client\main\admin_bans.lua * * Original File by lil_Toady * **************************************]] aBansTab = { List = {} } function aBansTab.Create(tab) aBansTab.Tab = tab aBansTab.BansListSearch = guiCreateEd...
EffectEvent = SimpleClass(SkillEvent) function EffectEvent:initialize() end --子类重写 function EffectEvent:doEvent() --print("<color=red>EffectEvent: </color>",self.tickFrame,SkillEventTypeLang[self.type]) end
function VarDump(data) -- cache of tables already printed, to avoid infinite recursive loops local tablecache = {} local buffer = "" local padder = " " local function _dumpvar(d, depth) local t = type(d) local str = tostring(d) if (t == "table") then if (tabl...
local drawableSprite = require("structs.drawable_sprite") local utils = require("utils") local lockBlock = {} local textures = { wood = "objects/door/lockdoor00", temple_a = "objects/door/lockdoorTempleA00", temple_b = "objects/door/lockdoorTempleB00", moon = "objects/door/moonDoor11" } local textureO...
--- For working with inventories. -- @module Inventory -- @usage local Inventory = require('stdlib/entity/inventory') local fail_if_missing = require 'stdlib/game'['fail_if_missing'] Inventory = {} --luacheck: allow defined top --- Copies the contents of source inventory to destination inventory by using @{C...
object_tangible_content_wod_second_sister_fire_3 = object_tangible_content_shared_wod_second_sister_fire_3:new { } ObjectTemplates:addTemplate(object_tangible_content_wod_second_sister_fire_3, "object/tangible/content/wod_second_sister_fire_3.iff")
--女人唱歌男人趴 local m=14010024 local cm=_G["c"..m] function cm.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetOperation(cm.activate) c:RegisterEffect(e1) --Freesia local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Str...
local PluginRoot = script.Parent.Parent.Parent.Parent local Store = require(PluginRoot.Data.Store) local ResourceImage = require(PluginRoot.Data.Images) local Roact: Roact = require(PluginRoot.Packages.Roact) local ThemeProvider = require(script.Parent.Parent.ThemeProvider) local TabButton = require(script.Parent.Tab...
local M = {} local null_ls = require "null-ls" local Log = require "internal.log" local services = require "as.plugins.code.null_ls.services" function M.list_registered_providers(filetype) local null_ls_methods = require "null-ls.methods" local formatter_method = null_ls_methods.internal.FORMATTING local...
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may ...
pcall(require, "luarocks.loader") local gears = require("gears") local awful = require("awful") require("awful.autofocus") local wibox = require("wibox") local beautiful = require("beautiful") local naughty = require("naughty") local menubar = require("menubar") local hotkeys_popup = require("awful.hotkeys_popup") requ...
main_quest = true collectibles = { {"we_firesword", 1} } markers = { { map = "res/map/highland/highland.tmx", position = {500, 1600}, step = 0 }, { map = "res/map/highland/highland.tmx", position = {375, 1200}, npc = "npc_jason", step = 0 }, { map = "res/map/highland/highland.tmx", ...
print(type(a)) tab1 = { key1 = "val1", key2 = "val2", "val3" } for k, v in pairs(tab1) do print(k .. " - " .. v) end tab1.key1 = nil for k, v in pairs(tab1) do print(k .. " - " .. v) end
--[[ File: gameobject.lua Author: Daniel "lytedev" Flanagan Website: http://dmf.me The base gameobject class. ]]-- local Gameobject = Class{} function Gameobject:init(x, y, width, height, objectType, shape) local objectType = objectType or "static" local width = width or 8 local height = height or 8 gameob...
-- NormanYang -- 2019年4月7日 -- message消息分发机制 local type = type Message = {NumberMsg = {}, NormalMsg = {}} local this = Message; this.__index = this; --添加Msg监听 function Message.AddMessage(msgName, func, listener) if not msgName or type(func) ~= 'function' then error('Add message Error!') end if type(msgName) == 'numbe...
ITEM.name = "Cardazepine Tablets" ITEM.description = "A small blister packet." ITEM.longdesc = "Cardazepine is the prime choice for recovering after a bad run-in with a psychic mutant. Unlike the alternative Modafine, the side effects of Cardazepine are nowhere near as bad, and it is also more effective.\nThe only prob...
--[[ Name: task-scheduler_1.0.lua Desc: This script demonstrates a simple task scheduler used to execute multiple tasks at regular intervals to 1ms resolution Note: Requires Firmware 1.0199 or higher (for T7) Increase scheduler resolution to reduce CPU load on the T7 processor --]] ---...
-- assume that eid is some existing entity id function example_factory_add() fill = scene.components.fill.add(eid) end function example_factory_get() fill, found = scene.components.fill.get(eid) end function example_factory_remove() scene.components.fill.remove(eid) end function example_component_usage(...
local has_plenary_log, _ = pcall(require, "plenary.log") if not has_plenary_log then return { trace = print, warn = print, debug = print, info = print, error = print, fatal = print, } else return require("plenary.log").new { plugin = "octo", level = (vim.loop.os_getenv "USER" == "p...
function nonils (...) local arg = table.pack(...) for i = 1, arg.n do if arg[i] == nil then return false end end return true end print(nonils(2,3,nil)) --> false print(nonils(2,3)) --> true print(nonils()) --> true print(nonils(nil)) --> false
local Const = require("api.Const") local Event = require("api.Event") local DateTime = require("api.DateTime") local UidTracker = require("api.UidTracker") local Rand = require("api.Rand") local save = require("internal.global.save") local parties = require("internal.parties") local StayingCharas = require("api.Staying...
-- NetHack 3.7 Sovereign.des -- Copyright (c) 1989 by Jean-Christophe Collet -- Copyright (c) 1991-92 by M. Stephenson, P. Winner -- NetHack may be freely redistributed. See license for details. -- des.level_init({ style = "solidfill", fg = " " }); des.level_flags("mazelevel", "noteleport"); des.map([[ TTTTTTTTTTTTT...
--[[ -- the List type is a plain Lua table with additional methods that come from: -- 1. all the methods in Lua's 'table' global -- 2. a list of higher-order functions based on sml's (fairly minimal) list type. -- For each function that is an argument of a high-order List function can be either: -- 1. a real Lua funct...
return { corsh = { acceleration = 0.12, brakerate = 0.336, buildcostenergy = 1535, buildcostmetal = 76, builder = false, buildpic = "corsh.dds", buildtime = 4079, canattack = true, canguard = true, canhover = true, canmove = true, canpatrol = true, canstop = 1, category = "AL...
require 'user.api' local data = { address = "1/1/1", value = true, } API:construct("https://LINK-TO-API-BASEURL.com") local res, code, response_header = API:post('update.php', data) if(code == 200) then log("API request successful") else log("API request not successful") end
#!/usr/bin/lua --[[-------------------------------------------------------------------------- -- Licensed to Qualys, Inc. (QUALYS) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- QUALYS licenses this fi...
return { init_effect = "", name = "2020德系活动D3 构建者护盾", time = 15, last_effect = "ATdun_full", picture = "", desc = "AT·FIELD", stack = 1, id = 8792, icon = 8792, last_effect_cld_scale = true, effect_list = { { type = "BattleBuffBarrier", trigger = { "onUpdate", "onRemove", "onAttach", ...
print ([[ The program shows sensitivity and specificity values for certain feature types (e.g., gene, mRNA, and exon). For some feature types the number of missing and wrong features of that type is also shown. Thereby, ``missing'' means the number of features of that type from the ``reality'' without overlap to a fea...