content
stringlengths
5
1.05M
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules local GrantAsset = require(Modules.AvatarExperience.AvatarEditor.Actions.GrantAsset) local FetchItemData = require(Modules.AvatarExperience.Catalog.Thunks.FetchItemData) local CatalogConstants = require(Modules.AvatarExperience....
--変異体ミュートリア -- --Script by Trishula9 function c101107019.initial_effect(c) --self spsummon local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCountLimit(1,101107019) e1:SetCondition(c101107019.sscon) e1:SetTarget(c101107019.s...
answ = {"Tačka O pripada kružnici.", "Tačka C pripada kružnici.", "Tačka B pripada kružnici.", "Tačka A pripada krugu.", "Tačka B pripada krugu.", "Tačka O pripada krugu."} test = {"n", "t", "n", "t", "t", "t"}
local pausestate = states.state:extend() function pausestate:begin() megautils.loadStage(self, "assets/maps/weapon_select.lua") megautils.add(globals.pauseWeaponSelect) megautils.add(fade(false):setAfter(fade.remove)) view.x, view.y = 0, 0 end function pausestate:update(dt) if globals.pauseUpdateF...
return Def.ActorFrame { -- line Def.Quad{ InitCommand=function(self) self:x(48):y(16):zoomto(SCREEN_CENTER_X,2):diffuse(color("1,1,1,0.5")):fadeleft(0.25):faderight(0.25) end; }; };
local getTimer = system.getTimer local lastTime = 0 local M = {} function M.getTime() local dt = 0 if lastTime == 0 then lastTime = getTimer() else local curTime = getTimer() dt = curTime - lastTime lastTime = curTime end return dt end function M.restart() lastTime = 0 end return M
timer = Timer() move_up = Vec2(0, -1) move_down = Vec2(0, 1) move_left = Vec2(-1, 0) move_right = Vec2(1, 0) move_stop = Vec2(0, 0) snake = {Point(20, 15)} apple = Point(9, 10) direction = move_stop score = 0 sprite_snake = Point(9, 10) sprite_apple = Point(0, 0) game_bounds = Rect(0, 0, 320 / 8, 240 / 8) functi...
local Inventory = {} Inventory.SortEntityInventory = function(entity) --record request items into inventory, counts into counts local inventory = game.create_inventory(entity.request_slot_count) local counts = {} --record and remove all old requests for i = 1, entity.request_slot_count do ...
--[[ Copyright (c) 2011-2014 chukong-inc.com 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...
---------------- -- Nord-Theme -- ---------------- vim.g.nord_contrast = true vim.g.nord_borders = false vim.g.nord_disable_background = true vim.g.nord_italic = false -- Load the colorscheme local colorscheme = "nord" local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme) if not status_ok then return e...
--MADE BY KEERTHAN function g() gg.alert("removed my(keeru) credits :/") end lal = "imei verification by keeru" if string.len(lal) ~= 29 then g() os.exit() end gg.toast(lal) table = revo.getPhoneInfo() if string.len(lal) ~= 29 then g() os.exit() end function Tut(t, i) local text = "'" for k,v in pair...
local __exports = LibStub:NewLibrary("ovale/Score", 80300) if not __exports then return end local __class = LibStub:GetLibrary("tslib").newClass local __Ovale = LibStub:GetLibrary("ovale/Ovale") local MSG_PREFIX = __Ovale.MSG_PREFIX local aceEvent = LibStub:GetLibrary("AceEvent-3.0", true) local aceSerializer = LibStub...
AddCSLuaFile() local A = "AMBER" local R = "RED" local B = "BLUE" local W = "WHITE" local name = "Whelen Liberty II CHP" local COMPONENT = {} COMPONENT.Model = "models/schmal/liberty_ii.mdl" COMPONENT.Lightbar = true COMPONENT.Skin = 0 COMPONENT.Category = "Lightbar" COMPONENT.Bodygroups = {} COMPONENT.Meta = { l...
local beer = {} local GENERIC_VERSE = 'N bottles of beer on the wall, N bottles of beer.\nTake one down and pass it around, M bottles of beer on the wall.\n' local VERSE_FOR_0 = 'No more bottles of beer on the wall, no more bottles of beer.\nGo to the store and buy some more, 99 bottles of beer on the wall.\n' funct...
--Main function function EFFECT:Init(data) --Create particle emitter local emitter = ParticleEmitter(data:GetOrigin()) --Amount of particles to create for i=0, 128 do --Safeguard if not emitter then return end local position = (data:GetOrigin() + Vector( math.Rand(-32,32), math.Rand(-32,32), math.Rand(-32,32...
local TA={} function TA:new(o) o=o or {} -- create object if user does not provide one setmetatable(o,self) self.__index=self o.patterns={} o:stop() return o end function TA:stop() self.pulse=0 self.sn=0 self.qn=0 self.measure=0 self.last_command="" self.next=nil self.running=false end func...
local component = require('component') local sides = require('sides') local inv = component.inventory_controller local robot = require('robot') local shell = require('shell') local args, opts = shell.parse(...) --TODO: Documentation local slot = tonumber(opts.slot) local amount = tonumber(args[1]) or math.huge local...
local total = 0 SLASH_GETCOORDS1 = "/getCoords" SLASH_STOPCOORDS1 = "/stopCoords" local printCoords = 0 function onUpdate(self,elapsed) total = total + elapsed if( total >= 1 ) then local posX, posY = GetPlayerMapPosition("player") if printCoords == 1 and posX ~= nil and posX ~= 0 and posY ~= nil and posY ~= 0 t...
-- 头条验证(与微信基本一致) local wx = require "bw.auth.wx" local M = {} function M.request_access_token(appid, secret) return wx.request_access_token(appid, secret, 'https://developer.toutiao.com/api/apps/token') end function M.jscode2session(appid, secret, js_code) return wx.jscode2session(appid, secret, js_c...
Tremualin.Configuration.VindicationPointsRequired = 750 Tremualin.Configuration.VindicationPointsAcquiredPerShift = 50 Tremualin.Configuration.VindicationTrainingType = "vindication" Tremualin.Configuration.MaxRenegadesRehabilitatedPerOfficer = 4 local functions = Tremualin.Functions local configuration = Tremualin.Co...
--[[********************************** * * Multi Theft Auto - Admin Panel * * admin_commands.lua * * Original File by lil_Toady * **************************************]] _commands = {} function getPlayerWildcard ( string ) local player = getPlayerFromName ( string ) if ( player ) then return player end local matc...
local AS = unpack(AddOnSkins) if not AS:CheckAddOn('InboxMailBag') then return end function AS:InboxMailBag(event) if event ~= 'MAIL_SHOW' then return end AS:StripTextures(InboxMailbagFrame) AS:SkinEditBox(InboxMailbagFrameItemSearchBox) AS:SkinCheckBox(InboxMailbagFrameItemGroupStacksCheckBox) AS:SkinTab(MailFr...
--------------------------------------------------------------------------------------------------- -- func: takegil <amount> <player> -- desc: Removes the amount of gil from the given player. --------------------------------------------------------------------------------------------------- cmdprops = { permissio...
KiwiItemInfo.Locale["itIT"] = { ["TOOLTIP_UNIT"] = "Unità: ", ["TOOLTIP_STACK"] = "Stack:", ["TOOLTIP_ILVL"] = "iLvl ", ["TOOLTIP_PRY_EQUIP"] = "Attr.: ", ["TOOLTIP_PRY_USE"] = "USA: ", ["TOOLTIP_PRY_CHANCE"] = "PROBABILITÀ : ", ["TOOLTIP_CMP_AGILITY"] = "[+-]%d+%s[AGILITÀ]+", ["TOOLTIP_PRY_AGILITY"] = "AGILIT...
local moon = require("moon") local tcpserver = require("moon.net.tcpserver") local socket = require("moon.net.socket") local test_assert = require("test_assert") --------------------------SERVER------------------------- tcpserver.on("accept",function(sessionid, msg) --print("accept ", sessionid, msg:bytes()) end) ...
-- -- General utility -- -- Forward function declarations. local valueToString = nil local keyToString = nil local tableToString = nil valueToString = (function(v) if 'string' == type(v) then v = string.gsub(v, '\n', '\\n') if string.match(string.gsub(v,"[^'\"]",""), '^"+$') then return "'" .. v .. "'...
object_building_kashyyyk_poi_kash_rryatt_lvl2_bridge_s01 = object_building_kashyyyk_shared_poi_kash_rryatt_lvl2_bridge_s01:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_poi_kash_rryatt_lvl2_bridge_s01, "object/building/kashyyyk/poi_kash_rryatt_lvl2_bridge_s01.iff")
LinkLuaModifier("modifier_boss_kel_thuzad_immortality", "heroes/bosses/kel_thuzad/immortality.lua", LUA_MODIFIER_MOTION_NONE) boss_kel_thuzad_immortality = class({ GetIntrinsicModifierName = function() return "modifier_boss_kel_thuzad_immortality" end, }) modifier_boss_kel_thuzad_immortality = class({ IsPurgable = ...
mAcl.gui.simple = {} function mAcl.gui.simple.init() local tab = mAcl.gui.tab local tw, th = guiGetSize(tab, false) ----------------------------- x, y = GS.mrg2, GS.mrg2 w, h = tw - GS.mrg2*2, th - GS.mrg2*2 local tpnl = guiCreateTabPanel(x, y, w, h, false, tab) mAcl.gui.simple.tpnl = tpnl -------------...
oil = require "oil" -- Load OiL package iorfile = assert(..., "missing path to IOR file") oil.main(function() orb = oil.init{ flavor = "cooperative;corba;corba.ssl;kernel.ssl", options = { client = { security = "required", ssl = { key = "certs/client.key", ...
local myvar = (3 *4)/(45+ 1) myvar = 2*myvar
local Prop = {} Prop.Name = "Subs House 1" Prop.Cat = "House" Prop.Price = 450 Prop.Doors = { Vector( 8170.000000, 7233.906250, -12332.000000 ), Vector( 8429.906250, 7174.000000, -12332.000000 ), Vector( 8490.000000, 7185.906250, -12332.000000 ), Vector( 8430.000000, 7290.000000, -12332.000000 ), } GM.Property:Reg...
object_tangible_collection_col_stage_controller_01 = object_tangible_collection_shared_col_stage_controller_01:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_col_stage_controller_01, "object/tangible/collection/col_stage_controller_01.iff")
local Linq = require "linq"; require "dictionary"; require "hashSet"; require "list"; --- @type List|Enumerable local List = Linq.List; --- @type Enumerable local Enumerable = Linq.Enumerable; -- Helpers local sameTypeComparer = function(item1, item2) return type(item1) == type(item2); end; -- =====================...
Object = require "classic" slashes = {} function love.load() width, height, flags = love.window.getMode() math.randomseed(os.time()) line = 0 pos = 0 end function love.draw() local i = 1 while i < #slashes do slashes[i]:draw() i = i + 1 end end function love.update(dt) local i = 0 while i < 1 do loca...
-- Counterfeit cash factory: 1121.897, -3195.338, -40.4025 exports('GetBikerCounterfeitObject', function() return BikerCounterfeit end) BikerCounterfeit = { interiorId = 247809, Ipl = { Interior = { ipl = "bkr_biker_interior_placement_interior_5_biker_dlc_int_ware04_milo", ...
local playsession = { {"mewmew", {42567}}, {"beranabus", {678877}}, {"Hansi-TWZ", {1315}}, {"Digzol", {5039004}}, {"glookie1", {3871337}}, {"Lukaslille", {11602}}, {"Acidwings", {6885}}, {"Howolf", {292766}}, {"ScienceLion", {6055532}}, {"redkyleb", {5110}}, {"OKaukaski", {5521}}, {"DaCluwn", {54686}}, {"t...
local config = require 'config' local u = require 'utilities' local api = require 'methods' local plugin = {} local mod = { promote = function(chat_id, user) assert(user.id, "mod.promote: user.id missing") db:hmset(('chat:%d:mod:%d'):format(chat_id, tonumber(user.id)), user) loca...
frame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED"); local function eventHandler(self, event, ...) if event=="COMBAT_LOG_EVENT_UNFILTERED" then local timestamp, type, hideCaster, sourceGUID, sourceName, sourceFlags, sourceFlags2, destGUID, destName, destFlags, destFlags2 = select(1, ...) if type=="SP...
---@class CS.UnityEngine.Debug ---@field public unityLogger CS.UnityEngine.ILogger ---@field public developerConsoleVisible boolean ---@field public isDebugBuild boolean ---@type CS.UnityEngine.Debug CS.UnityEngine.Debug = { } ---@return CS.UnityEngine.Debug function CS.UnityEngine.Debug.New() end ---@overload fun(sta...
data:extend({ { type = "custom-input", name = ToggleGUI.toggleShortcut, order = "a[toggle]", key_sequence = "SHIFT + B" }, { type = "shortcut", name = ToggleGUI.toggleShortcut, order = "b[blueprints]-z[sandbox]", action = "lua", associa...
local utils = require('lgh.utils') local M = {} --- Makes a command executed in the shell -- Automatically concats commands and executes them in a shell -- @args The commands function M.shell_cmd(...) return vim.opt.shell:get() .. ' ' .. vim.opt.shellcmdflag:get() .. ' ' .. vim.fn.shellescape(M.multiple_commands(...)...
-------------------- --- Badssentials --- -------------------- function sendMsg(src, msg) TriggerClientEvent('chatMessage', src, Config.Prefix .. msg); end Citizen.CreateThread(function() while true do Wait(1000); TriggerClientEvent('Badssentials:SetAOP', -1, currentAOP); TriggerClientEvent...
-- Deal50: A game inspired by the TV show -- Developed by Joaquin -- Final project for GD50 2020 GameOverState = Class{__includes = BaseState} function GameOverState:init() -- Set color to yellow UpdateBG(255, 128, 0) -- Flag to halt input during animations self.haltPresses = true -- Variable to...
items = {} local files = love.filesystem.getFilesRecursively("character/items") for i = 1, #files do local item = love.filesystem.load(files[i])() items[item.id] = item end
--[[****************************************************************************** Addon: Battlefield History Author: Cyprias License: MIT License (http://opensource.org/licenses/MIT) **********************************************************************************]] local folder, core = ... _G._BH = ...
_G.requireInjector(_ENV) local Point = require('point') local device = _G.device local turtle = _G.turtle local MAX_FUEL = turtle.getFuelLimit() local scanner = device['plethora:scanner'] or turtle.equip('right', 'plethora:module:2') and device['plethora:scanner'] or error('Plethora scanner required') if not tur...
local constants = require(".lua.common.constants") local logger = require(".lua.common.logger").new("redis_service.lua") local redis = require(".lua.redis.redis") local redis_service_handle = {} local redis_service={} redis_service.__index = redis_service function redis_service_handle:new(clusterName) if clu...
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg)...
-- voltage controlled switch -- in1: select output based on 0-5v value -- in2: cv input -- out1-4: voltage from in2 (when selected) function init() -- set window ranges of 1.25v to choose outputs input[1].mode( 'window', {0,1.25,2.5,3.75,5}, 0.1 ) input[2].mode( 'stream', 0.01) for n=1,4 do o...
menup.options.addOption("snake", "enabled", 1) local squarew = 15 local snake = {headx = ScrW()/2, heady = ScrH()/2, dirx = 0, diry = 0, length = 0, tail = {}} local egg = {x = 0, y = 0} local speed = 200 local score = 0 local function MoveEgg() egg.x = math.Round(math.random(20,ScrW()-20)) egg.y = math.Round(math...
--servermessage module by greenarrow --include ("autorun/shared/servermessagetypes.lua") if CLIENT then local table = table local ipairs = ipairs local type = type local tostring = tostring local tonumber = tonumber local concommand = concommand local LocalPlayer = LocalPlayer local Msg = Msg module ("sm...
return {'nowak','nowee'}
_print('testing scanner') local function dostring (x) return assert(loadstring(x))() end dostring("x = 'a\0a'") assert(x == 'a\0a' and string.len(x) == 3) -- escape sequences assert('\n\"\'\\' == [[ "'\]]) assert(string.find("\a\b\f\n\r\t\v", "^%c%c%c%c%c%c%c$")) -- assume ASCII just for tests: assert("\09912" ==...
local constants = require "kong.constants" local ipmatcher = require "resty.ipmatcher" local lrucache = require "resty.lrucache" local isempty = require "table.isempty" local clone = require "table.clone" local bit = require "bit" local hostname_type = require("kong.tools.utils")....
cflags{ '-I $srcdir/include', '-I $srcdir/src', } build('awk', '$outdir/aliases.inc', {'$srcdir/build/Aliases', '|', '$dir/aliases.awk'}, { expr='-f $dir/aliases.awk', }) cc('src/charset/aliases.c', {'$outdir/aliases.inc'}, {cflags='$cflags -I $outdir'}) lib('libparserutils.a', [[src/( charset/( aliases.c.o cod...
local custom_actions = require "telescope._extensions.bookmarks.actions" describe("actions", function() insulate("smart_url_opener", function() local actions = require "telescope.actions" local action_state = require "telescope.actions.state" actions.close = function() end function action_state.get...
start = os.clock() disp_width = 1000 disp_height = 1000 scale_real = 3.0 / disp_width scale_imag = 3.0 / disp_height function pixel(x, y) u = 0.0 v = 0.0 u2 = 0.0 v2 = 0.0 iter = 0 while (u2 + v2 < 4.0) and (iter < 100) do v = 2 * v * u + y u = u2 - v2 + x u2 = u*u v2 = v*v iter = it...
-- scaffold geniefile for icu icu_script = path.getabsolute(path.getdirectory(_SCRIPT)) icu_root = path.join(icu_script, "icu") icu_includedirs = { path.join(icu_script, "config"), icu_root, } icu_libdirs = {} icu_links = {} icu_defines = {} ---- return { _add_includedirs = function() includedirs { icu_include...
local Class = require("facto.class") local AbstractFactory = require("facto.abstractfactory") -- @classmod UpdaterFactory local UpdaterFactory = Class.extend({}, AbstractFactory) -- function UpdaterFactory:__constructor(event) -- end --- Initialization function UpdaterFactory:initialize() self.serialize.token =...
local spec_helper = require "spec.spec_helpers" local http_client = require "kong.tools.http_client" local constants = require "kong.constants" local cjson = require "cjson" local STUB_GET_URL = spec_helper.STUB_GET_URL describe("Resolver #proxy", function() setup(function() spec_helper.prepare_db() spec_h...
--[[ Controls: Hold Z + Left Click = Select Part X = Weld to part C = Remove selection ]] -- // Services local Players = game:GetService("Players") local Workspace = game:GetService("Workspace") local UserInputService = game:GetService("UserInputService") -- // Vars local LocalPlayer = Players.LocalP...
--- === plugins.finalcutpro.timeline.transcode === --- --- Adds actions that allows you to transcode clips from the timeline. local require = require --local log = require "hs.logger".new "transcode" local fcp = require "cp.apple.finalcutpro" local go = require "c...
local cp = require "complex" local c1 = cp.new(4,3) local c2 = cp.new(2,1) local r = cp.add(c1, c2) -- cp.inv(c2) -- private in module print(r.r .. ", " .. r.i)
cs=require("collision") mm=require("movement") local bullet={} local btypelist={} local btable={} function bullet.addtype(drawfunc,w,h) table.insert(btypelist,{draw=drawfunc,w=w,h=h}) return #btypelist end function bullet.add( self,b ) table.insert(btable,b) mm.bond(btable[#btable]) end function bullet.draw( s...
----------------------------------------- -- Spell: Chaotic Eye -- Silences an enemy -- Spell cost: 13 MP -- Monster Type: Beasts -- Spell Type: Magical (Wind) -- Blue Magic Points: 2 -- Stat Bonus: AGI+1 -- Level: 32 -- Casting Time: 3 seconds -- Recast Time: 10 seconds -- Magic Bursts on: Detonation, Fragmentation, a...
--[[ NoMoreTroll Version 1.0.0.2 By CalixFoxUK ]]-- CalixFoxUK = "CalixFoxUK"; NMTLang = { -- English "en" = { "about" = { "message" = "Stop your basic troll in there tracks, with our new anti Troll formula.", "by" = "Created by "..CalixFoxUK } }, -- French "fr" = { "about" = { ...
require("lib/heartbeat") function love.load() windowWidth = love.graphics.getWidth() windowHeight = love.graphics.getHeight() love.window.setTitle("Heartbeat") love.keyboard.setKeyRepeat(true) love.filesystem.setIdentity("heartbeat") Heartbeat.createPlayer(Player, 100, 100) Heartbeat.newEntity(Zombie, 200, 100)...
local composer = require( "composer" ) local scene = composer.newScene() -- ----------------------------------------------------------------------------------- -- Code outside of the scene event functions below will only be executed ONCE unless -- the scene is removed entirely (not recycled) via "composer.removeSce...
local OnlookerSocketCmd = require("games/common2/onlooker/socket/onlookerSocketCmd"); require("games/common2/network/socket/commonGameSocketCmd2"); CommonGameSocketReader2 = class(CommonSocketReader); CommonGameSocketReader2.log = function(self,...) local fileName = self:getBaseLogFileName(); Log.addModuleCa...
fx_version 'cerulean' game 'gta5' author 'BRAZUCAS' contact 'E-mail: server.brazucas@gmail.com - Discord: ' client_scripts { '@vrp/lib/utils.lua', 'hansolo/*.lua' } server_scripts { '@vrp/lib/utils.lua', 'skywalker.lua' }
troll_warlord_fervor_lua = class({}) LinkLuaModifier( "modifier_troll_warlord_fervor_lua", "lua_abilities/troll_warlord_fervor_lua/modifier_troll_warlord_fervor_lua", LUA_MODIFIER_MOTION_NONE ) -------------------------------------------------------------------------------- function troll_warlord_fervor_lua:GetIntrin...
roleList = { "National", -- National Guardsmen "SASP", -- SASP "LSPD", -- LSPD "Owner", -- Fire/EMS Department } prefix = '^0[^3LEO Chat^0] ^r'; AddEventHandler('playerDropped', function (reason) isCop[source] = nil; inCopChat[source] = nil; hideCopChatMessages[source] = nil; end) isCop = {} inCopCha...
local Role, Vector2 = require(_DIR .. "role"), require(_DIR .. "vector2") local fonts = {} local TextRole = Role:extend() do function TextRole:draw(t) Role.draw(self, t) if not self.font then self.font = "victoria.8b" end if not fonts[self.font] then fonts[self.font] = text.loadfont(self....
local Class = require("lib.Class") local World = Class:derive("World") local mouth_atlas = love.graphics.newImage("assets/gfx/Tiles/Teeth/TEETH_FOREST.png") local stomach_atlas = love.graphics.newImage("assets/gfx/Tiles/stomach/StomachTiles.png") local stomach_walls = love.graphics.newImage("assets/gfx/Tiles/stomach/...
print( "// Command tebex forcecheck //" ) Tebex.commands["forcecheck"] = function(ply, args) Tebex.warn("Checking for commands to be executed..."); apiclient = TebexApiClient:init("https://plugin.tebex.io", config:get("secret")) apiclient:get("/queue", function(response) if (response["meta"]["ne...
playerlist = playerlist or {} function set_player(pid, pobj) playerlist[pid] = pobj end function get_player(pid) return playerlist[pid] end function del_player(pid) playerlist[pid] = nil end
project_root = "../../.." include(project_root.."/tools/build") group("src") project("xenia-vfs") uuid("395c8abd-4dc9-46ed-af7a-c2b9b68a3a98") kind("StaticLib") language("C++") links({ "xenia-base", }) defines({ }) includedirs({ project_root.."third_party/gflags/src", }) recursive_platform_...
do local function main(tmp) local a, b, c = tmp.a, tmp.b, tmp.c; (nil)((a + b) * c); (nil)(a * (b + c)); (nil)(a ^ b * c); (nil)(a * b ^ c); (nil)(a * (b / c)) return (nil)(a * b / c) end (nil)(main) end
getglobal workspace getfield -1 Events getfield -1 TycoonItems getfield -1 PurchaseMarketItem getfield -1 InvokeServer pushvalue -2 pushnumber -999999999 pushstring A pcall 3 1 0
do local _ = { ['fast-splitter'] = { icon = '__base__/graphics/icons/fast-splitter.png', animation_speed_coefficient = 32, structure = { north = { filename = '__base__/graphics/entity/fast-splitter/fast-splitter-north.png', ...
local plugin_name = ({...})[1]:match("^kong%.plugins%.([^%.]+)") local access = require("kong.plugins." .. plugin_name .. ".access") local plugin = { PRIORITY = 949, VERSION = "0.0.5-1", } function plugin:access(plugin_conf) access.execute(plugin_conf) end return plugin
local shader_params = include("pac3/libraries/shader_params.lua") local mat_hdr_level = GetConVar("mat_hdr_level") local material_flags = { debug = bit.lshift(1, 0), no_debug_override = bit.lshift(1, 1), no_draw = bit.lshift(1, 2), use_in_fillrate_mode = bit.lshift(1, 3), vertexcolor = bit.lshift(1, 4), vertexa...
local memcached = require("memcached") assert(memcached.BEHAVIOR) for k,v in pairs(memcached) do assert(k, v) end for k,v in pairs(memcached.BEHAVIOR) do assert(k, v) end for k,v in pairs(memcached.HASH) do assert(k, v) end assert(memcached.SUCCESS == 0)
GM.CL_Police_Max_Pistol = 16 GM.CL_Police_Max_Buckshot = 8 GM.CL_Police_Max_Ump = 25 function CL_PoliceUpdate( umsg ) local pmoney = umsg:ReadLong() local pistol = umsg:ReadLong() local riot = umsg:ReadLong() local ump = umsg:ReadLong() GAMEMODE.CL_PoliceMoney = pmoney GAMEMODE.CL_Police_Max_Pistol = pistol G...
local L = BigWigs:NewBossLocale("Dazar, The First King", "itIT") if not L then return end if L then -- L.spears_active = "Spear Launchers Active" end L = BigWigs:NewBossLocale("King's Rest Trash", "itIT") if L then L.guardian = "Guardiano Animato" L.minion = "Servitore di Zul" L.champion = "Campione della Genia de...
chainchomp = class:new() function chainchomp:init(x, y) --PHYSICS STUFF self.x = x-14/16 self.y = y-12/16 self.cox = x self.coy = y self.speedy = 0 self.speedx = -chainchompspeed self.width = 12/16 self.height = 12/16 self.static = false self.active = true self.category = 4 self.mask = { true, fal...
--[[ .app :cancel() - close the connect :get_body() .uri .method .http_version .ua .cookie -> not iterable table .session -> not iterable & rw table .var.? - see nginx wiki's variable & more --]] local req = {} function req:new(app) local req_ = { _create_phase = ngx.get_phase() } req_.app = app ...
-------------------------------- -- @module AtlasNode -- @extend Node,TextureProtocol -- @parent_module cc -------------------------------- -- updates the Atlas (indexed vertex array).<br> -- Shall be overridden in subclasses. -- @function [parent=#AtlasNode] updateAtlasValues -- @param self -- @return AtlasNode#At...
local function get_speakers(name) if name then local speaker = peripheral.wrap(name) if speaker == nil then error(("Speaker %q does not exist"):format(name), 0) return elseif not peripheral.hasType(name, "speaker") then error(("%q is not a speaker"):format...
local HuntingModule = require "module.HuntingModule" local MapConfig = require "config.MapConfig" local View = {} function View:Start() self.view = SGK.UIReference.Setup(self.gameObject); CS.UGUIClickEventListener.Get(self.view.Dialog.Close.gameObject).onClick = function() DialogStack.Pop(); end ...
if wifi.getmode()~=wifi.NULLMODE then wifi.setmode(wifi.NULLMODE) end; do local success,err=pcall(dofile,'inithw.lua'); if not success then print("inithw failed: "..err); return end end
--- manipulating Lua tables. -- @module table local table = {} --- -- Given an array where all elements are strings or numbers, returns -- `table[i]..sep..table[i+1] ... sep..table[j]`. The default value for -- `sep` is the empty string, the default for `i` is 1, and the default for -- `j` is the length of the table....
function on_activate(parent, ability) local targets = parent:targets():friendly() local targeter = parent:create_targeter(ability) targeter:set_selection_radius(ability:range()) targeter:add_selectable(parent) targeter:set_shape_circle(ability:range()) targeter:add_all_effectable(targets) targe...
-- Target appears when -- 1. Selected -- 2. Being attacked --- upvalues to prevent warnings local LibStub = LibStub local UnitPower, UnitPowerMax = UnitPower, UnitPowerMax local UnitName, UnitPowerType = UnitName, UnitPowerType local unpack = unpack ---Include files local ZxSimpleUI = LibStub("AceAddon-3.0"):GetAddon(...
#!/usr/local/bin/lua-5.3 --[[ Copyright (c) 2022 Jason Morley, Tom Sutcliffe 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, ...
local parse = grin.getPackageAPI(__package, "parse") local pipe = grin.getPackageAPI(__package, "pipe") local utils = grin.getPackageAPI(__package, "utils") local runChunk, runCommand, resolveArguments local write = write local function p(t) write(t .. "\n") end --- Resolves an argument, handling command and variable...
local api = vim.api local highlight = {} --- Highlight the yanked region -- --- use from init.vim via --- au TextYankPost * lua require'vim.highlight'.on_yank() --- customize highlight group and timeout via --- au TextYankPost * lua require'vim.highlight'.on_yank("IncSearch", 500) -- @param higroup highlight grou...
local require = require local ej = require 'war3.enhanced_jass' local Timer = require 'war3.timer' local Window = require 'war3.window' local e = require 'lib.event_manager':new() local l = require 'war3.listener':new(e) e:addEvent( "對話框-被點擊", "GetClickedDialog GetClickedButton", function(_, dialog, button...
-- Event notes hooks function onEvent(name, value1, value2) if name == 'Health Change' then healthchange = tonumber(value1); setProperty('health', healthchange); --debugPrint('Event triggered: ', name, duration, targetAlpha); end end