content
stringlengths
5
1.05M
Locales['es'] = { ['attempt'] = 'Intentando vender droga', ['police'] = 'Han llamado a la policía porque el comprador no está interesado, ¡cuidado!', ['blip'] = 'Venta de drogas', ['press'] = 'Presiona [~r~Y~w~] para vender drogas', ['advise'] = 'Hay una persona vendiendo drogas en la zona, ¡hemos marcad...
paradeSlot("Vgr_Scout",{ -859, -143, 2622, },{ 0, 0, 1, },{ -1, 0, 0, },0) paradeSlot("Vgr_Interceptor",{ -1065, -95, 2265, },{ 0, 0, 1, },{ -1, 0, 0, },400) paradeSlot("Vgr_Bomber",{ -1325, -50, 1868, },{ 0, 0, 1, },{ -1, 0, 0, ...
local com = require("component") local event = require("event") local fs = require("filesystem") local term = require("term") local charts = require("charts") local gpu = com.gpu do if not fs.exists("/etc/railtank.cfg") then local file = io.open("/etc/railtank.cfg", "w") file:write([[ -- Fluid colors -- [...
--[[ Copyright (c) 2016-present, Facebook, Inc. All rights reserved. This source code is licensed under the license found in the LICENSE-examples file in the root directory of this source tree. --]] require('nn') require('paths') local tnt = require('torchnet') -- use GPU or not: local cmd = torch.CmdLine() cmd:op...
local GameSettings={} local GameSettingsByIndex={} function LoadGameSettings() print("LoadGameSettings()") local xml=CreateXML() -- попыта загрузить файл с настройками if not(xml.Load("data/GameSettings.xml")) then -- загружаем файл настроек по умолчанию xml.Load("data/Default_GameSettings.xml...
--[[ © 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 --]] Clockwork.config:Add("stam_regen_scale", 0.1, true); Clockwork.config:Add("stam_dr...
----------------------------------- -- Area: Al'Taieu -- NPC: ??? (Jailer of Prudence Spawn) -- Allows players to spawn the Jailer of Prudence by trading the Third Virtue, Deed of Sensibility, and High-Quality Hpemde Organ to a ???. -- !pos , 706 -1 22 ----------------------------------- local ID = require("scripts/zo...
local S = ethereal.intllib -- Strawberry (can also be planted as seed) minetest.register_craftitem("ethereal:strawberry", { description = S("Strawberry"), inventory_image = "strawberry.png", wield_image = "strawberry.png", groups = {food_strawberry = 1, food_berry = 1, flammable = 2}, on_place = function(itemsta...
project "shader_editor" libType() files { "src/**.c", "src/**.cpp", "src/**.h", "genie.lua" } defines { "BUILDING_SHADER_EDITOR" } links { "engine" } useLua() defaultConfigurations() linkPlugin("shader_editor")
object_tangible_component_armor_armor_core_enhancement_assault = object_tangible_component_armor_shared_armor_core_enhancement_assault:new { } ObjectTemplates:addTemplate(object_tangible_component_armor_armor_core_enhancement_assault, "object/tangible/component/armor/armor_core_enhancement_assault.iff")
#!/usr/bin/env tarantool test = require("sqltester") test:plan(9) --!./tcltestrunner.lua -- 2012 April 02 -- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. ...
template = [[ public void RegisterCallback($WrappedCallback callback) { Start(); // make sure the interface is initialized. if (null == $WrappedList) { $WrappedList = callback; raw$WrappedCallback = new OSVR.ClientKit.$RawCallbackType($RawCallback); iface.registerCallback (raw$WrappedCallback...
return { version = "1.2", luaversion = "5.1", tiledversion = "1.3.1", orientation = "orthogonal", renderorder = "right-down", width = 32, height = 32, tilewidth = 32, tileheight = 32, nextlayerid = 5, nextobjectid = 20, properties = {}, tilesets = {}, layers = { { type = "objectgro...
-- _.reduceRight.lua -- -- This method is like _.reduce except that it iterates over elements -- of collection from right to left. -- @usage local array = {0, 1, 2, 3, 4, 5}; -- _.print(_.reduceRight(array, function(str, other) -- return str .. other -- end, '')) -- --> 543210 -- -- @param collection The collectio...
local base = require('imgui.widgets.TabItem') ---@class xe.TabContent:im.TabItem local M = class('xe.TabContent', base) local im = imgui local wi = require('imgui.Widget') function M:ctor(title) base.ctor(self, title) end function M:addContent(icon, tooltip, cb) local sp = icon local btn, btn_disable = re...
data:extend( { -- Solid Fuel Engine { type = "assembling-machine", name = "y-sfe", icon_size = 32, icon = "__yi_engines__/graphics/entity/energy2/sfe-icon.png", flags = {"placeable-neutral","placeable-player", "player-creation"}, minable = {hardness = 0.2, mining_time = 0.5, result = "y-sfe"}, max_...
include("shared.lua") local Laws = {} ENT.DrawPos = Vector(1, -111, 58) local color_navy_200 = Color(0, 0, 70, 200) local color_red = Color(255, 0, 0, 255) local color_white = color_white function ENT:Draw() self:DrawModel() local DrawPos = self:LocalToWorld(self.DrawPos) local DrawAngles = self:GetAn...
local sounds = {} local function sfx(name) sounds[name] = love.audio.newSource("res/sfx/"..name..".wav", 'static') end sfx('hit') sfx('shoot') sfx('slash') sfx('kill') sfx('slime_call') return sounds
return { version = "1.5", luaversion = "5.1", tiledversion = "1.7.1", orientation = "orthogonal", renderorder = "right-down", width = 16, height = 15, tilewidth = 16, tileheight = 16, nextlayerid = 3, nextobjectid = 23, backgroundcolor = { 0, 0, 0 }, properties = {}, tilesets = { { ...
--[[ This file is part of 'Masque', an add-on for World of Warcraft. For license information, please see the included License.txt file or visit https://github.com/StormFX/Masque. * File...: Core\Regions\NewItem.lua * Author.: StormFX 'NewItem' Region * See Skins\Default.lua for region defaults. ]] local _, ...
--[=[ Add another layer of effects that can be faded in/out @class FadingCamera ]=] local ReplicatedStorage = game:GetService("ReplicatedStorage") local Spring = require(ReplicatedStorage.Knit.Util.Additions.Physics.Spring) local SummedCamera = require(script.Parent.SummedCamera) local FadingCamera = {} FadingCamer...
require "log" log.debug("********************* ydwe initialize start *********************") do local real_require = require require = function (str, ...) if not package.loaded[str] then log.trace("Initializing '" .. str .. "'") end return real_require(str, ...) end end require "utiliy" local function co...
--[[ Name: civilian.lua For: TalosLife By: TalosLife ]]-- local Job = {} Job.ID = 22 Job.Enum = "JOB_BANKER" Job.TeamColor = Color( 255, 255, 255, 255 ) Job.Name = "Banqueiro" Job.Cat = "Civis" Job.Pay = { { PlayTime = 0, Pay = 15 }, { PlayTime = 0, Pay = 15 }, { PlayTime = 0, Pay = 15 }, { PlayTime = 0, Pay = ...
local _ = function(k,...) return ImportPackage("i18n").t(GetPackageName(),k,...) end ShopObjectsCached = { } ShopTable = { { items = { water_bottle = 5, apple = 5, donut = 5, repair_kit = 50, health_kit = 50, lockpick = 500, picka...
if engine.ActiveGamemode() ~= "terrortown" then return end --- -- @module draw -- @author Bull -- @author Alf21 -- -- @desc A Simple Garry's mod drawing library -- Copyright (C) 2016 Bull [STEAM_0:0:42437032] [76561198045139792] -- Freely acquirable at https://github.com/bull29/b_draw-lib -- You can use this anywhere ...
local playsession = { {"mewmew", {1669923}}, {"NekoBaron", {284461}}, {"Tony_2083", {202919}}, {"MontrealCrook", {567795}}, {"iSTEVE", {189735}}, {"Xoxlohunter", {7686}}, {"realDonaldTrump", {133307}}, {"ETK03", {717780}}, {"zwierzak40", {14539}}, {"RebuffedBrute44", {157346}}, {"xxsevenevesxx", {253990}}, ...
package.path = "../../types.lua;" .. package.path local name = "predicate" local function generate_predicate_named(type, name) local name = name:gsub("^%l", string.upper) io.write(string.format("\n// %s represents a function that accepts a %s and returns a bool if the predicate is validated.\n", name, ty...
-- Fields with `nil` should be initialized in Rust -- Internal -- local internal = { paths = {}, sealed = false, source = nil, package = { loaded = {}, preload = {}, searchers = nil, }, } -- Hive table -- local function register(path, handler) assert( not internal.sealed, "cannot cal...
---@diagnostic disable: undefined-global local palette = require 'nord-palette' local base = require 'base' -- JavaScript -- > pangloss/vim-javascript local clrs = palette.clrs local spec = palette.spec local pkg = function() return { jsGlobalNodeObjects {fg = clrs.nord8, gui = spec.italic}, hjsBrackets {ba...
--====================================================================-- -- Async Sockets Basic -- -- Tests the Sockets library, async style -- -- Sample code is MIT licensed, the same license which covers Lua itself -- http://en.wikipedia.org/wiki/MIT_License -- Copyright (C) 2014-2015 David McCuskey. All Rights Reser...
-- This walks an AST, making back references to the parent node. -- -- This shouldn't be a separate step, but that's premature optimization. -- This is conceptually simple: -- Take the tree, add a parent reference that points to itself. -- Take all child members, if they're nodes, call the function recursively wit...
-- Gaster <3 -- Condolences To Asriel And Fang (sexy Mofo's) wait(0.016666666666667) Effects = {} local Player = game.Players.localPlayer local Character = Player.Character local Humanoid = Character.Humanoid local mouse = Player:GetMouse() local m = Instance.new("Model", Character) m.Name = "WeaponModel" local effect...
--*********************************************************** --** ROBERT JOHNSON ** --** Class wich help you to drag an item over the world, it display a ghost render of the item --** You can either press R or let the left mouse btn down and drag the mouse around to rotate the it...
-- Author: Hua Liang[Stupid ET] <et@everet.org> local TileMap2Scene = class("TileMap2Scene", function() local scene = cc.TestMapScene:create() return scene end) return TileMap2Scene
local protocol = require "miio.protocol" local util = require "util" local xpcall = xpcall local traceback = debug.traceback local assert = assert local type = type local tunpack = table.unpack local tinsert = table.insert local M = {} ---@class MiotIID: table MIOT instance ID. --- ---@field siid integer Service inst...
local util = require("scripts.util") return function(recipe_book, dictionaries) for name, prototype in pairs(global.prototypes.recipe_category) do recipe_book.recipe_category[name] = { class = "recipe_category", enabled_at_start = true, fluids = util.unique_obj_array{}, items = util.uniqu...
--[[ Name: "sh_auto.lua". Product: "titan". --]] titan = { nextCheckCreated = 0, onCreatedQueue = {}, ignoredKeys = {}, quickTimers = {}, entityMeta = FindMetaTable("Entity"), varClasses = {}, longTimers = {}, slowTimers = {}, netVars = {} }; if (SERVER) then include("sv_enums.lua"); include("sv_auto.lua")...
return { summary = 'Set the components of the quaternion.', description = [[ Sets the components of the quaternion. There are lots of different ways to specify the new components, the summary is: - Four numbers can be used to specify an angle/axis rotation, similar to other LÖVR functions. - Four ...
love.filesystem.setRequirePath("?.lua;lua_modules/share/lua/5.3/?.lua;lua_modules/share/lua/5.3/?/?.lua;?/init.lua") State = require "hump.gamestate" GAMESTATE = nil local virus = {} local mainMenu = require "menu" local optionsMenu = require "menu" function love.load() State.registerEvents() State.switch(m...
cc = cc or {} ---EaseQuadraticActionOut object ---@class EaseQuadraticActionOut : ActionEase local EaseQuadraticActionOut = {} cc.EaseQuadraticActionOut = EaseQuadraticActionOut -------------------------------- -- ---@param action ActionInterval ---@return EaseQuadraticActionOut function EaseQuadraticActionOut:create(...
local hp = { max_width = 50, } function hp:init (actor, max_hp, props) self.actor = actor self.value = max_hp self.max = max_hp props = props or {} if props.ui then local element = {} element.column = self.actor.side element.align = 1 element.size = point(self.max_width + 5, 2...
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0188-get-interior-data-resumption.md -- -- Description: SDL does not send OnHashChange notification to mobile app in case HMI responds w...
----------------------------------------- -- ID: 4937 -- Scroll of Doton: Ichi -- Teaches the ninjutsu Doton: Ichi ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(329) end function onItemUse(target) target:addSpell(329) end
--[[UDF which performs arithmetic operation on bin containing integer value. --]] function bin_udf_operation_integer(record, bin_name, x, y) record[bin_name] = (record[bin_name] + x) + y if aerospike:exists(record) then aerospike:update(record) else aerospike:create(record) end r...
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local DT = E:GetModule('DataTexts') --[[This file is a blank datatext example template, this file will not be loaded.]] local function Update(self, t) end local function OnEvent(self, event, ...) end local func...
dofile("GameUtil.lua"); dofile("GameWorld.lua"); GameAgentFactory=dofile("GameAgent.lua"); --train to obtain Saved.lua file; local dummy=GameAgentFactory.create("dummy agent"); initializeAgent(dummy); trainAgent(dummy); --test accuracy of the training local records=dofile("data.lua"); for recordIndex = 1, (# records...
-- prevent luarocks-installed fennel from overriding package.loaded.fennel = dofile("fennel.lua") table.insert(package.loaders or package.searchers, package.loaded.fennel.searcher) package.loaded.fennelview = package.loaded.fennel.dofile("fennelview.fnl") local lu, outputType = require('luaunit'), os.getenv('FNL_TEST_...
{$lua} -- Prevent execution of Lua in aasm scripts during syntax check if syntaxcheck then return end local asm = require "modules/asm" local SCRIPTNAME = "freeze_position" local FILE = "asm/position/freeze_position.asm" setGlobalDelayBetweenHotkeyActivation(500) -- 500 ms [ENABLE] local enableInf...
return { tag = 'graphicsState', summary = 'Get whether alpha sampling is enabled.', description = [[ Returns whether or not alpha sampling is enabled. Alpha sampling is also known as alpha-to-coverage. When it is enabled, the alpha channel of a pixel is factored into how antialiasing is computed, so...
local node = require('lib4/node') local node2d = require('lib4/node/node2d') local phys2d = require('lib4/node/phys2d') local rect = require('lib4/node/node2d/rect') local cpml = require('cpml') local player = {} function player:_load() self.speed = 220 self.shooting = 0 end local bullet = function(pos, vx,...
function o(self) print("o", #self) end function x() print("x") return {z=o} end x():z(x)
local PANEL = {}; local wantedX, wantedY = 5, 5 function PANEL:Init ( ) self.ourItemSlots = {}; for x = 1, wantedX do self.ourItemSlots[x] = {}; for y = 1, wantedY do self.ourItemSlots[x][y] = vgui.Create("perp2_shop_store_block", self); end end self.Description = true; self:SetSkin("ugperp") end...
local SpatialAveragePooling, parent = torch.class('nn.SpatialAveragePooling', 'nn.Module') function SpatialAveragePooling:__init(kW, kH, dW, dH, padW, padH) parent.__init(self) self.kW = kW self.kH = kH self.dW = dW or 1 self.dH = dH or 1 self.padW = padW or 0 self.padH = padH or 0 self.ceil_m...
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end local function searchYoutubeVideos(text) local url = 'https://www.googleapis.com/youtube/v3/search?' u...
return { postgres = { up = [[ CREATE TABLE IF NOT EXISTS "unique_foreigns" ( "id" UUID PRIMARY KEY, "name" TEXT ); CREATE TABLE IF NOT EXISTS "unique_references" ( "id" UUID PRIMARY KEY, "note" TEXT, "unique_foreign_id" ...
local awful = require('awful') local wibox = require('wibox') local gears = require('gears') local beautiful = require('beautiful') local dpi = beautiful.xresources.apply_dpi local button_container = require('ui.widgets.button') local notifbox_core = require('ui.notifs.notif-center.build-notifbox') local reset_notifb...
----------------------------------- -- Area: Northern San d'Oria -- NPC: Attarena -- Only sells when San d'Oria controlls Li'Telor Region ----------------------------------- local ID = require("scripts/zones/Northern_San_dOria/IDs") require("scripts/globals/events/harvest_festivals") require("scripts/glo...
-- 定义为全局模块,整个lua程序的入口类 GameMain = {}; --设置游戏帧率 CS.UnityEngine.Application.targetFrameRate = 60 local function OnApplicationQuit() -- 模块注销 if LogicUpdateManagerInst then LogicUpdateManagerInst:Dispose() end if UpdateManagerInst then UpdateManagerInst:Dispose() end if TimerManage...
local M = {} local memory = _G.memory local luap = require 'luap' local config = require 'config' local draw = require 'draw' local smw = require 'game.smw' local u8 = memory.readbyte local s8 = memory.readsbyte local s16 = memory.readsword local OPTIONS = config.OPTIONS local screen_coordinates = smw.screen_coordin...
local tbl = { two = 2, one = 1, "alpha", "bravo", [3] = "charlie", [5] = "echo", [6] = "foxtrot" } print( "pairs:" ) for k, v in pairs( tbl ) do print( k, v ) end print( "\nipairs:" ) for k, v in ipairs( tbl ) do print( k, v ) end /* pairs: 1 alpha 2 bravo 3 charlie 5 echo 6 foxtrot one 1 two 2 ipairs: 1 alpha 2 ...
-- 获取方法签名特征 local methodKey = KEYS[1] redis.log(redis.LOG_DEBUG,'key is',methodKey) -- 调用脚本传入的限流大小 local limit = tonumber(ARGV[1]) -- 获取当前流量大小 local count = tonumber(redis.call('get',methodKey) or "0") --是否超出限流值 if count + 1 >limit then -- 拒绝访问 return false else -- 没有超过阈值 -- 设置当前访问数量+1 redis.call...
local t = Def.ActorFrame{}; if not GAMESTATE:IsCourseMode() then return t; end; t[#t+1] = Def.Sprite { InitCommand=function(self) self:xy(SCREEN_CENTER_X,SCREEN_CENTER_Y) end, BeforeLoadingNextCourseSongMessageCommand=function(self) self:LoadFromSongBackground( SCREENMAN:GetTopScreen():GetNextCourseSong() ) end, C...
local game = require 'game' local Timer = require 'vendor/timer' return{ name = 'lightning', type = 'projectile', friction = 1, width = 100, height = 30, frameWidth = 100, frameHeight = 30, solid = true, lift = game.gravity, playerCanPickUp = false, enemyCanPickUp = false, canPlayerStore = false...
test_run = require('test_run').new() engine = test_run:get_cfg('engine') test_run:cmd("push filter 'Failed to allocate [0-9]+' to 'Failed to allocate <NUM>'") test_run:cmd("push filter '"..engine.."_max_tuple_size' to '<ENGINE>_max_tuple_size'") -- https://github.com/tarantool/tarantool/issues/2667 -- Allow to insert ...
package.path='/opt/tarantool/?.lua;/opt/tarantool/?/init.lua;/opt/TarantoolModules/?.lua;/opt/TarantoolModules/?/init.lua;'..package.path local function DoPercentEncoding(s) local function char_to_hex(c) return string.format("%%%02X",string.byte(c)) end return s and s:gsub("\n", "\r\n"):gsub("([^%w ])",char_...
local NotificationBindable = Instance.new("BindableFunction") NotificationBindable.OnInvoke = callback -- game.StarterGui:SetCore("SendNotification", { Title = "Dynamic Client"; Text = "ESP Activated."; Icon = "rbxassetid://5631279864"; Duration = 3; Callback = NotificationBindable; }) local Aimware = Instance.n...
bristleback_bristleback_lua = class({}) LinkLuaModifier( "modifier_bristleback_bristleback_lua", "lua_abilities/bristleback_bristleback_lua/modifier_bristleback_bristleback_lua", LUA_MODIFIER_MOTION_NONE ) -------------------------------------------------------------------------------- -- Passive Modifier function bri...
----------------------------------- -- Area: Dynamis - Xarcabard -- Mob: Animated Spear ----------------------------------- require("scripts/globals/status") local ID = require("scripts/zones/Dynamis-Xarcabard/IDs") ----------------------------------- function onMobEngaged(mob, target) if (mob:AnimationSub() == ...
local EnterName, EnterPassword, EnterSecurityQuestionAnswer Citizen.CreateThread(function() --Login Menu local SelectedSecurityQuestion = 1 while true do local SecurityQuestions = {SecurityQuestion1, SecurityQuestion2, SecurityQuestion3, SecurityQuestion4} if loginMenu then if not IsDisabledCon...
local Class = require("lib.class") local Lovox = require("lib.lovox") local Entity = require("src.entity") local World = require("src.world") local Chain = Class("Chain", Entity) Chain.batch = require("src.wallprop") function Chain:initialize(...) Entity.initialize(self, ...) self.id = Chain.batch:add(self.p...
setreadonly(math, false) function send(msg) local args = { [1] = tostring(msg), -- just in case trol [2] = "All" } game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args)) end function ShutdownServer(msg) game:Shutdown(tostring(msg)) end function GetFre...
-- MIT License -- -- Copyright (c) 2021 mmoole. -- -- 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, mer...
local AddonName, AddonTable = ... AddonTable.enchanting = { -- Reagents 172437, -- Enchanted Elethium Bar 172438, -- Enchanted Heavy Callous Hide 172439, -- Enchanted Lightless Silk -- Materials 172230, -- Soul Dust 172231, -- Sacred Shard 172232, -- Eternal Crystal -- Ring Enchants...
local AddonName, AddonTable = ... -- BfA Herbalism AddonTable.herbalism = { 152505, -- Riverbud 152506, -- Star Moss 152507, -- Akunda's Bite 152508, -- Winter's Kiss 152509, -- Siren's Pollen 152510, -- Anchor Weed 152511, -- Sea Stalk -- 8.3 168487, -- Zin'anthid }
local uri = {} local urifuncs = {} local urimt = {} local php local util = require 'libraryUtil' local checkType = util.checkType local checkTypeForIndex = util.checkTypeForIndex function uri.setupInterface( options ) -- Boilerplate uri.setupInterface = nil php = mw_interface mw_interface = nil -- Store options...
class("ExerciseCountRecoverUpCommand", pm.SimpleCommand).execute = function (slot0, slot1) slot3 = getProxy(MilitaryExerciseProxy) slot4 = slot3.getSeasonInfo(slot3) slot4:updateResetTime(slot2() + pg.TimeMgr.GetInstance():GetServerTime()) slot4:updateExerciseCount(SeasonInfo.RECOVER_UP_COUNT) slot3:updateSeasonI...
local Browser = { Name = "Browser", Type = "System", Namespace = "C_Browser", Functions = { }, Events = { { Name = "SimpleBrowserWebError", Type = "Event", LiteralName = "SIMPLE_BROWSER_WEB_ERROR", Payload = { { Name = "errorCode", Type = "number", Nilable = false }, }, }, { Nam...
--甲板守卫者 local m=14010084 local cm=_G["c"..m] function cm.initial_effect(c) --link summon c:EnableReviveLimit() aux.AddLinkProcedure(c,cm.matfilter,1,1) --cannot attack local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE) e1:SetRange(LOCATION_MZONE) ...
laser = class:new() function laser:init(x, y, dir) self.x = x-1/8 self.y = y-1/8 self.dir = dir self.active = true self.static = false self.gravity = 0 self.speedy = 0 self.speedx = 0 self.width = 1/4 self.height = 1/4 if self.dir == "right" then self.speedx = laserspeed self.width = 1 self.x = self...
local fs = require 'luarocks.fs' local modules = {} function modules.build(parser) parser:description( "Enumerates lua modules available in a project. " .. "In the case of no options, all modules are enumerated.\n" .. "NOTE: No guarantees are made about order, and duplicates may occur.") parser:flag "-r" ...
--[=[------------------------------------------------------------------------------------------- ║ Trouble in Terrorist Town Commands ║ ║ By: Skillz and Bender180 ║ ║ ...
object_mobile_azure_cabal_nikto_fanatic = object_mobile_shared_azure_cabal_nikto_fanatic:new { } ObjectTemplates:addTemplate(object_mobile_azure_cabal_nikto_fanatic, "object/mobile/azure_cabal_nikto_fanatic.iff")
EditUnitEditableGui = EditUnitEditableGui or class(EditUnit) function EditUnitEditableGui:editable(unit) return self.super.editable(self, unit) and unit:editable_gui() ~= nil end function EditUnitEditableGui:build_menu(units) local gui_options = self:Group("EditableGui") self._element_guis = {} self._fonts = { "c...
local vim = vim local api = vim.api local u = require 'vimwiki_server/lib/utils' local M = {} -- Builds a new GraphQL query function M.query(s, vars) local query = u.interpolate_vars(u.compress(s), vars or {}) -- If not prefixed with query keyword, we make one if query and string.sub(query, 1, 1) == '{' then ...
local shortport = require "shortport" local http = require "http" local stdnse = require "stdnse" local string = require "string" local vulns = require "vulns" local rand = require "rand" description = [[ Checks for a remote code execution vulnerability (MS15-034) in Microsoft Windows systems (CVE2015-2015-1635). The...
--item.lua local cobbleWall = table.deepcopy(data.raw["wall"]["stone-wall"]) cobbleWall.name = "cobblestone-wall" cobbleWall.max_health = 20 cobbleWall.minable.result = "cobblestone-wall" local recipe = table.deepcopy(data.raw.recipe["stone-wall"]) recipe.enabled = false recipe.name = "cobblestone-wall" r...
MaskModule = MaskModule or class(ItemModuleBase) MaskModule.type_name = "Mask" function MaskModule:init(...) self.clean_table = table.add(clone(self.clean_table), { {param = "pcs", action = "no_number_indexes"}, {param = "offsets", action = function(tbl) for _, v in pairs(tbl) do ...
--- Example for common use -- @module main include("lib2.lua"); --include("classes/node.class.lua") function macro.init() -- Now those object are there by default make things easier --tasktimer = CTaskTimer.new(); --taskstack = CTaskStack.new(); tasktimer:registerTask("test1",secondsToTimer(1),function() print(...
-- Converted API if not wmbapi then -- Use wmbapi variable to detect whether MiniBot's API is fully loaded return end __LB__ = wmbapi lb = wmbapi CancelPendingSpells = CancelPendingSpell ClickPosition = ClickPosition CreateDirectory = CreateDirectory DirectoryExists = DirectoryExists FileExists = FileExists GetBaseDi...
--- Wrapper over [Spot](https://github.com/r-lyeh/spot)'s image class. -- -- Spot images implement the [ByteReader protocol](https://ggcrunchy.github.io/corona-plugin-docs/DOCS/ByteReader/policy.html). By -- default they send RGBA image data, but the raw floating-point data may be used instead, cf. @{SpotImage:set_read...
local _M = require 'resty.http_ng.backend.cache' local fake_backend = require 'fake_backend_helper' local spy = require 'luassert.spy' local cache_store = require 'resty.http_ng.cache_store' local http_response = require 'resty.http_ng.response' local http_request = require 'resty.http_ng.request' local test_backend_cl...
--[[ Meta Portal Minimap - README v0.1.0 - 2021/5/27 Contributors: ============= Morticai (META) (https://www.coregames.com/user/d1073dbcc404405cbef8ce728e53d380) Ooccoo (META) (https://www.coregames.com/user/a136c0d1d9454d539c9932354198fc29) Divided (META) (https://www.coregames.com/user...
-- =========================================================================== -- Base File -- =========================================================================== include("TopPanel_Expansion1.lua"); include("toppanel_CQUI.lua");
data:extend{ { type = "shortcut", name = "moc-toggle", icon = { filename = "__MouseOverConstruction__/graphics/shortcut-x32.png", y = 0, size = 32, mipmap_count = 2, flags = {"icon"} }, disabled_icon = { filename = "__MouseOverConstruction__/graphics/shortcut-x3...
-- -- exit.lua -- exit screen component -- local awful = require("awful") local gears = require("gears") local wibox = require("wibox") local beautiful = require("beautiful") local helpers = require("helpers") local keys = require("keys") -- ======================================== -- Config -- =====================...
return { tag = 'mathOther', summary = 'Create a new Curve.', description = 'Creates a new `Curve` from a list of control points.', arguments = { n = { type = 'number', description = 'The number of points to reserve for the Curve.' }, x = { type = 'number', description = 'The ...
-- -- Copyright 2017 Alibaba Group -- License: MIT -- Website: https://alibaba.github.io/LuaViewSDK -- User: tuoli -- Date: 17/3/30 -- Navigation:title("Playground") local meta = object:new() function meta:onCreate(args) self.views = pica:getInstance():render("app.xml") self.widgetList = self.views["widgetTa...
data.raw["gui-style"].default["blueprint_button_style"] = { type = "button_style", parent = "button_style", top_padding = 1, right_padding = 5, bottom_padding = 1, left_padding = 5, left_click_sound = { { filename = "__core__/sound/gui-click.ogg", volu...
DEFINE_BASECLASS( "player_element" ) local player = {} player.WalkSpeed = 200 player.Icon = Material("element/classes/earth.png", "unlitgeneric") player.Color = _COLOR.BROWN player.Sound = "taikos0" player.Track = "heavy" player.Health = 250 player.skills = {} player.skills[KEY_Q] = "earth_bust" player.skills[KEY_E]...
return { -- Description can be found in Shared > Weapon CritChance = 25; CritBonus = 100; BaseDamage = 15; }