content
stringlengths
5
1.05M
function ScryerCavalier_OnEnterCombat(Unit,Event) Unit:CastSpell(30931) Unit:registerEvent("ScryerCavalier_Spellbreaker", 24000, 0) end function ScryerCavalier_Spellbreaker(Unit,Event) Unit:FullCastSpellOnTarget(35871,Unit:GetClosestPlayer()) end function ScryerCavalier_OnLeaveCombat(Unit,Event) Unit:RemoveEvents...
-- HANDLER KUPOWANIA JAK SKIN = 0 TO NIE DAJ RADY -- Troche zmiennych local temp_arr = nil local order_step = 0 -- na jednym GUI to rozwiążemy local orderGroupArray = nil local clothes = false local dummy = nil local selected = 1 -- Tablica na ubranka local clothes = {} clothes[1] = {2, 100, "Ubranie dziwaka"} cloth...
local Pattern = Pattern local M_PI = math.pi local sw, sh = stage:getSize() stage:addChild(DisplayShape.new(sw, sh) :setSource(Pattern.image(assets:loadImage("bg.png")):setExtend("repeat")) :paint()) local a = assets:loadDisplay("planet-earth.png"):setPosition(sw / 2, sh / 2):setScale(0.5):setAnchor(0.5...
Notification = Widget:subclass("Notification") function Notification:initialize(name, x, y, width, height, title, body, fg, bg, progresscolor, opacity) Widget.initialize(self, name, x, y, width, height) self.title = title self.body = body self.fg = fg self.bg = bg self.progresscolor = progresscolor self....
--- @param lsp LSP --- @param params table --- @return boolean return function (lsp, params) local doc = params.textDocument lsp:close(doc.uri) return true end
local K = unpack(select(2, ...)) local _G = _G local print = _G.print local CreateFrame = _G.CreateFrame local GetSpellInfo = _G.GetSpellInfo local IsPlayerSpell = _G.IsPlayerSpell local function Defaults(priorityOverride) return {["enable"] = true, ["priority"] = priorityOverride or 0, ["stackThreshold"] = 0} end ...
--------------------------------- --! @file OutPortConnectorBase.lua --! @brief OutPortコネクタ基底クラス定義 --------------------------------- --[[ Copyright (c) 2017 Nobuhiko Miyamoto ]] local OutPortConnector= {} --_G["openrtm.OutPortConnector"] = OutPortConnector local ConnectorBase = require "openrtm.ConnectorBase" -- Ou...
-------------------------------------------------------------------------------- -- frame.lua -- a custom window like object -------------------------------------------------------------------------------- local AddonName, Addon = ... local Frame = Addon:CreateClass('Frame') local L = LibStub('AceLocale-3.0'):GetLocal...
-- Copyright 2021 Zach Varberg, SmartThings -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or...
-- _.iter.lua -- _.iter = function(value) if _.isString(value) then local i = 0 return function() if _.lt(i, #value) then i = i + 1 local c = value:sub(i, i) return i, c end end elseif _.i...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) RegisterServerEvent("xp_system:server:getPlayerXP") AddEventHandler("xp_system:server:getPlayerXP", function() local _source = source local identifier = GetPlayerIdentifier(source, 0) getPlayerXP(_source, identifier) end) Register...
glyph_0 = { 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, } glyph_1 = { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, } glyph_2 = { 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0,...
ones = {"two", "three", "four", "five", "six", "seven", "eight", "nine"} tens = {"twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety"} msg_two = "two" msg_hundred = {"hundred", "hundred"} msg_thousand = {"thousand", "thousand"}
object_tangible_item_entertainer_console_stage_smoke_machine = object_tangible_item_entertainer_console_shared_stage_smoke_machine:new { } ObjectTemplates:addTemplate(object_tangible_item_entertainer_console_stage_smoke_machine, "object/tangible/item/entertainer_console/stage_smoke_machine.iff")
ID = "Shader" shaders = { particle_init = { cs = { "data/shader/particle.hlsl", "InitializeParticleCS" }, }, particle_copy_moon_vertex_dead = { cs = { "data/shader/particle.hlsl", "CopyDeadMoonVertexCountCS" }, }, particle_emit_in_sphere = { cs = { "data/shader/particle.hlsl", "EmitInSphereCS" }, ...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
local SkillFsm = require "gameplay.fsm.skillfsm" local BaseSkillFsm = Inherit(SkillFsm) local Damage = require "gameplay.damage" function BaseSkillFsm:Ctor(Owner, SkillInfo, SkillLevel, Target) self:Enter("Before") end function BaseSkillFsm:CalDamage() local LevelInfo = self.m_LevelInfo local DamageAmout = LevelI...
ITEM.name = "Патроны 12x70" ITEM.ammo = "12x70" ITEM.ammoAmount = 60 ITEM.desc = "Коробка с патронами калибра 12x70" ITEM.category = "Патроны" ITEM.price = 1200 ITEM.exRender = false ITEM.model = "models/kek1ch/ammo_12x70_buck.mdl" ITEM.width = 2 ITEM.height = 1 ITEM.iconCam = { pos = Vector(81.2373199...
---@class nil @内建空类型 ---@class boolean @内建布尔类型 ---@class number @内建浮点类型 ---@class int @内建整数类型 ---@class function @内建函数类型 ---@class userdata @内建C++对象类型 ---@class thread @内建协程类型 ---@class table @内建表类型 ---@class any @内建任意类型 ---@class void @内建无类型 ---@class string @内建字符串类型
object_tangible_collection_rare_melee_strike_assault_lance = object_tangible_collection_shared_rare_melee_strike_assault_lance:new { } ObjectTemplates:addTemplate(object_tangible_collection_rare_melee_strike_assault_lance, "object/tangible/collection/rare_melee_strike_assault_lance.iff")
-- Button.lua -- This tab contains the Unit.button class, which is simply a touch-sensitive version of Unit.textPanel. -- The init method requires a table of touch event functions, and can optionally include a highlight style and children. -- Don't ask me why there isn't a class for buttons without text. Buttons have ...
-- decode quoted-printable text T=read"*a" T=gsub(T,"=\n","") T=gsub(T,"=(%x%x)",function (x) return strchar(tonumber(x,16)) end) write(T)
---@diagnostic disable: unbalanced-assignments local SWFtRywD='2.1.0'local e,v,l6Sm5=next,type,pcall;local oUA,QFKEzBf=setmetatable,getmetatable local odpE,p=table.insert,table.sort;local lIpFkbLI,JdUtcU=table.remove,table.concat local GQLN,toXyq,S9TO=math.randomseed,math.random,math.huge;local pS78Y,BCf7,RlMSrmdD,VCD=...
local Weapons = ACF.Classes.Weapons function EFFECT:Init(Data) local Gun = Data:GetEntity() if not IsValid(Gun) then return end local Propellant = Data:GetScale() local ReloadTime = Data:GetMagnitude() local Sound = Gun:GetNWString("Sound") local Class = Gun:GetNWString("Class") local ClassData = Weapons[Clas...
local utils = require('nvim-autopairs.utils') local log = require('nvim-autopairs._log') local api = vim.api local helpers = {} function helpers.feed(text, feed_opts) feed_opts = feed_opts or 'n' local to_feed = vim.api.nvim_replace_termcodes(text, true, false, true) vim.api.nvim_feedkeys(to_feed, feed_opt...
local site = {} function site.doc(page) return page:redirect('docs') end return site
local c; local player = Var "Player"; local ShowComboAt = THEME:GetMetric("Combo", "ShowComboAt"); local Pulse = THEME:GetMetric("Combo", "2ndPulseCommand"); local PulseLabel = THEME:GetMetric("Combo", "2ndPulseLabelCommand"); local NumberMinZoom = THEME:GetMetric("Combo", "NumberMinZoom"); local NumberMaxZoom ...
local typedefs = require "kong.db.schema.typedefs" return { name = "graphql-operation-whitelist", fields = { { consumer = typedefs.no_consumer }, { run_on = typedefs.run_on_first }, { protocols = typedefs.protocols_http }, { config = { type = "record", fields = { { block_...
local debug = require('cmp.utils.debug') local autocmd = {} autocmd.events = {} ---Subscribe autocmd ---@param event string ---@param callback function ---@return function autocmd.subscribe = function(event, callback) autocmd.events[event] = autocmd.events[event] or {} table.insert(autocmd.events[event], callbac...
---@meta ---@class cc.EaseCircleActionOut :cc.ActionEase local EaseCircleActionOut={ } cc.EaseCircleActionOut=EaseCircleActionOut ---* ---@param action cc.ActionInterval ---@return self function EaseCircleActionOut:create (action) end ---* ---@return self function EaseCircleActionOut:clone () end ---* ---@param...
--[[ -- added by wsh @ 2017-12-11 -- Lua侧带有可复用功能的管理组,配合Unity原生组件UIScrollRect使用,负责管理和调度组下的可复用组件刷新 -- 可根据需要带有按钮组---注意:按钮组中按钮的bind_data会被占用,不要再绑定数据 -- 注意: -- 1、添加的组件必须是UIWrapComponent的子类、或者实现了它的接口的任何其它类 -- 2、如果组件逻辑功能足够简单,不想再另行创建UIWrapComponent子类,可以直接设置本脚本回调 -- 3、Unity侧在ScrollContent节点挂GridLayoutGroup脚本执行配置,对配置要求如下: -- ...
--[[-------------------------------------------------------------------]]--[[ Copyright wiltOS Technologies LLC, 2020 Contact: www.wiltostech.com ----------------------------------------]]-- wOS = wOS or {} wOS.ALCS = wOS.ALCS or {} wOS.ALCS.Config = wOS.ALCS.Config or {} wOS.ALCS.Config.GTN = wOS.ALCS.C...
local rcon = { id = 0, PACKET_TYPES = { AUTH = 3, AUTH_RESPONSE = 2, EXECCOMMAND = 2, RESPONSE_VALUE = 0, }, PACKET_FULL_SIZE_INCREMENT = 4, -- size width (i32) is not included in 'size' part of packets PACKET_MIN_BYTES_AFTER_SIZE = 10, -- i32, i32, \0, \0 ID_MAX = math.pow(2, 31) - 1, } rco...
-- Validate either gear sets or inventory. -- gs validate [inv|set] [filterlist] -- Where inv == i or inv or inventory -- Where set == s or set or sets -- Where filterlist can use - to negate a value (eg: -charis for everything except charis, instead of only charis) function validate(options) local validateType = 'set...
-- creates sphere object and makes it as a gaze target b = BinooAPI; b:CreateSphere("sphere",1,3,0,0); b:AddGazeTarget("sphere");
ELEMENT_ALL = -2 ELEMENT_NONE = -1 ELEMENT_FIRE = 0 ELEMENT_ICE = 1 ELEMENT_ELECTRICITY = 2 -- Combat actions COMBAT_WAITING = 0 COMBAT_DECIDING = 1 COMBAT_DEAD = 2 COMBAT_ATTACKING = 3 COMBAT_USING = 4 COMBAT_CASTING = 5 COMBAT_RUNNING = 6 COMBAT_DEFENDING = 7 COMBAT_BUSY = 8 COMBAT_SKIP = 9 --...
local plr = game:GetService('Players').LocalPlayer; local char = plr.Character; local Torso = char.Torso pplr = game.Workspace.TycoonKing1981 game.Workspace.TycoonKing1981.Head.face:Remove() torso = pplr.Torso head = pplr.Head leftarm = pplr["Left Arm"] rightarm = pplr["Right Arm"] leftleg = pplr["Left Leg"] rightleg =...
local component = require("component") local cassette = component.getPrimary("tape_drive") function demo_mesa() while true do cassette.play() os.sleep(93) cassette.stop() cassette.seek(-math.huge) end end demo_mesa()
local libs = {} local SEARCH_PATH = PS2_SCRIPT_PATH .. "?.lua" --[[ local myreq = function(name) print("require " .. name) local l = libs[name] if l ~= nil then return l else l = dofile(SEARCH_PATH .. name .. ".lua") libs[name] = l return l end end require = myreq function loadFnl(name) ...
AddCSLuaFile() DEFINE_BASECLASS("sd_turret_base") ENT.Base = "sd_turret_base" ENT.PrintName = "Small Turret" ENT.Category = "Squirrel Defense" ENT.Spawnable = true ENT.SpawnRotation = 180 ENT.Model = false ENT.UseCustomPhys = true ENT.PhysMin = Vector(-10, -10, -12) ENT.PhysMax = Vector(10, 10,...
--[[ --MIT License -- --Copyright (c) 2019 PapyElGringo --Copyright (c) 2019 Tom Meyers -- --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 th...
-- @docclass UIScrollBar = extends(UIWidget, "UIScrollBar") -- private functions local function calcValues(self) local slider = self:getChildById('sliderButton') local decrementButton = self:getChildById('decrementButton') local incrementButton = self:getChildById('incrementButton') local pxrange, center if...
local BUILDER, PART = pac.PartTemplate("base") PART.ClassName = "bodygroup" PART.Group = "legacy" PART.Icon = 'icon16/user.png' BUILDER:StartStorableVars() BUILDER:GetSet("BodyGroupName", "", { enums = function() return pace.current_part:GetBodyGroupNameList() end }) BUILDER:GetSet("ModelIndex", 0) BUILDER...
CAMERA_FOLLOW_AVERAGE = false --Create Camera local xscale = t_world.size.x * t_world.tile_size.x * t_world.tile_scale[1] local yscale = t_world.size.y * t_world.tile_size.y * t_world.tile_scale[2] Camera = Gamera.new(64, 64, xscale, yscale) --Set Window size WINDOW_WIDTH = 800 WINDOW_HEIGHT = 600 love.window.setMode...
local saga = require('lspsaga') -- add your config value here -- default value -- use_saga_diagnostic_sign = true -- error_sign = '', -- warn_sign = '', -- hint_sign = '', -- infor_sign = '', -- dianostic_header_icon = '  ', -- code_action_icon = ' ', -- code_action_prompt = { -- enable = true, -- sign = tr...
-- -- Created by IntelliJ IDEA. -- User: alexandre -- Date: 29/10/2019 -- Time: 14:45 -- To change this template use File | Settings | File Templates. -- return { title = 'Store', party = {'warrior', 'druid', 'archer', 'priest'}, encounters = { {'unguentoPW', 'unguentoRE', 'unguentoVE'}, } }
loadstring(exports.utils:load('require'))(); require 'general'; local rockets = {}; local camEnabled = false; local targetable = "player"; local targetSeekDist = 250; function Rocket(x, y, z, force, target, lifespan, creator) local self = {}; self.index = nil; self.pos = Vector3(x, y, z); self.vel = force or Vect...
require("src.misc.keybindings.default") require("src.misc.keybindings.global")
class = require 'hump.class' VectorLight = require 'hump/vector-light' local scale = 0.001 local font = love.graphics.newFont(10) DebugVector = Class { init = function(self, label, x0 , y0, dx, dy) self.x0 = x0; self.y0 = y0; self.dx = dx; self.dy = dy; self.label = label;...
local function printTable(t,offset) offset = offset or '' for i,v in pairs(t) do if(type(v)=='table') then print(offset ..i ..' :') printTable(v,offset..'\t') else print(offset ..i ..' : '..tostring(v)) end end end local tableToBeSaved = { i_am_boolean = true, name = 'myTable', randomNumbers = {},...
-- status line vim.cmd([[ hi PrimaryBlock ctermfg=white ctermbg=grey guifg=white guibg=grey hi SecondaryBlock ctermfg=white ctermbg=grey guifg=white guibg=grey hi Blanks ctermfg=white ctermbg=grey guifg=white guibg=grey ]]) local mode_map = { ['n'] = 'NORMAL ', ['no'] = 'NORMAL·OPERATOR PENDING ', ['v'] = 'VISUAL '...
local L --------------- -- Hellfire Assault -- --------------- L= DBM:GetModLocalization(1426) L:SetTimerLocalization({ timerSiegeVehicleCD = "Next Vehicle %s", }) L:SetOptionLocalization({ timerSiegeVehicleCD = "Show timer for when new siege vehicles spawn" }) L:SetMiscLocalization({ AddsSpawn1...
object_draft_schematic_furniture_must_furniture_throw_pillow_02 = object_draft_schematic_furniture_shared_must_furniture_throw_pillow_02:new { } ObjectTemplates:addTemplate(object_draft_schematic_furniture_must_furniture_throw_pillow_02, "object/draft_schematic/furniture/must_furniture_throw_pillow_02.iff")
meta.name = "Vlad's cape multi-jump" meta.version = "WIP" meta.description = "Unlimited jumping with Vlad's cape" meta.author = "Zappatic" -- give unlimited jumps to all vlad's capes -- note that this disables floating! set_callback(function() vladscapes = get_entities_by_type(ENT_TYPE.ITEM_VLADS_CAPE) for i, ...
local _test = TEST or require "u-test" local _ok, _elios = pcall(require, "eli.os") if not _ok then _test["eli.os available"] = function() _test.assert(false, "eli.os not available") end if not TEST then _test.summary() os.exit() else return end end _test["eli.os av...
local playsession = { {"Arusu", {2770}}, {"Krono", {22776}}, {"PogomanD", {152316}}, {"teomarx", {738}}, {"Lithidoria", {1507}}, {"neuronich", {3033}} } return playsession
-- =================================================================== -- Initialization -- =================================================================== local awful = require("awful") local gears = require("gears") local naughty = require("naughty") local beautiful = require("beautiful") -- local dpi = beautifu...
object_tangible_storyteller_prop_pr_gravestone_03 = object_tangible_storyteller_prop_shared_pr_gravestone_03:new { } ObjectTemplates:addTemplate(object_tangible_storyteller_prop_pr_gravestone_03, "object/tangible/storyteller/prop/pr_gravestone_03.iff")
-- test_nativewindow.lua local WindowKind = require("WindowKind"); local NativeWindow = require("NativeWindow"); local Application = require("Application"); local windowkind, err = WindowKind:create("test_windowkind"); if not windowkind then print("Window kind not created, ERROR: ", err); return false, err; end ...
--[[* @authors Centauri Soldier @copyright Public Domain @description <h2>pot</h2> <p>A logical potentiometer object. The client can set minimum and maximum values for the object, as well as rate of increase/decrease. Note: 'increase' and 'decrease' are logical terms referring to motion along a line based on the cur...
workspace "Infinite" architecture "x64" configurations { "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" project "Infinite" location "Infinite" kind "SharedLib" language "C++" targetdir("bin/" .. outputdir .. "/%{prj.name}") objdir("bin-int/" .. outputdir...
return function (data) if data.group == 261037783 then CQApi:SetGroupMemberVisitingCard(data.group,data.qq,"可能是单推") return end CQApi:SetGroupMemberVisitingCard(data.group,data.qq,"没有名字的笨蛋") end
local test = "test"
streets.workshop = {} streets.workshop.register_sign = function(nodename, desc, img, rrecipe, rtime) minetest.register_node(nodename, { description = desc, tiles = {img}, inventory_image = img, wield_image = img, groups = {snappy = 1,attached_node = 1}, on_construct = function(pos) local meta = mine...
function getSignBit(a) if (a > 0) then return 1 else return -1 end end local Pos = {} local T = {} function GETAXIS_Trace_Calculate(time_s,Pos,T) local n --后期根据time_s判断 第n条贝塞尔曲线 local as,bs,cs local at,bt,ct,dt local trace local A,B,C,Y1,Y2,t1,t2,t3,Temp,sita,t l...
local old_ptd000001_init = PlayerTweakData.init function PlayerTweakData:init(tweak_data) old_ptd000001_init(self, tweak_data) self.movement_state.standard.movement.speed.STANDARD_MAX = 700 self.movement_state.standard.movement.speed.RUNNING_MAX = 1150 self.movement_state.standard.movement.speed.CROUCHING_MAX = 450...
local Menu = script.Parent local App = Menu.Parent local UIBlox = App.Parent local Packages = UIBlox.Parent local Roact = require(Packages.Roact) local t = require(Packages.t) local withStyle = require(UIBlox.Core.Style.withStyle) local ImageSetComponent = require(Packages.UIBlox.Core.ImageSet.ImageSetComponent) loca...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) local InventorySlots = {} local settings = { cache = {}, cache_used = {}, timer = { [1] = 0, [2] = 0, [3] = 0, [4] = 0, [5] = 0, }, weapons = { 'pistol', } } LoadSlots = function(source) lo...
local oldMarineInit = Marine.OnInitialized function Marine:OnInitialized() oldMarineInit(self) InitMixin(self, WalkMixin) end local networkVars = { } AddMixinNetworkVars(WalkMixin, networkVars) Shared.LinkClassToMap("Marine", Marine.kMapName, networkVars, true) if Client then local oldTriggerFootstep = Player...
local BasePlugin = require "kong.plugins.base_plugin" local basic_serializer = require "kong.plugins.log-serializers.basic" local producers = require "kong.plugins.verifi-kafka-log.producers" local cjson = require "cjson" local cjson_encode = cjson.encode local cjson_decode = cjson.decode local utils = require "kong.to...
--[[ __________ __ ___. Open \______ \ ____ ____ | | _\_ |__ _______ ___ Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ ...
local CEmitter = require 'nelua.cemitter' local iters = require 'nelua.utils.iterators' local traits = require 'nelua.utils.traits' local errorer = require 'nelua.utils.errorer' local stringer = require 'nelua.utils.stringer' local bn = require 'nelua.utils.bn' local cdefs = require 'nelua.cdefs' local cbuiltins = requ...
--[[ ******************************************************* * LASP - LUA AREA SCRIPTING PROJECT * * License * ******************************************************* This software is provided as free and open source by the staff of The Lua Area Scripting Pr...
--[[ Copyright (c) 2010 Manuel "Roujin" Wolf Copyright (c) 2012 Henrique Poyatos 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 groupName = { [201848376] = "合宙群01", [604902189] = "合宙群02", [1092305811] = "合宙群03", [877164555] = "合宙群04", [851800257] = "合宙群05", [387396364] = "合宙群06", [423804427] = "合宙群07", [823812859] = "合宙群08", [679177589] = "WiFi群", [967368887] = "合宙群10", [627242078] = ...
--融合解除 function c952861650.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TODECK+CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c952861650.target) e1:SetOperation(c952861650.activat...
--=========== Copyright © 2019, Planimeter, All rights reserved. ===========-- -- -- Purpose: Chat Text Box HUD -- --==========================================================================-- class "gui.hudchattextbox" ( "gui.textbox" ) local hudchattextbox = gui.hudchattextbox function hudchattextbox:hudchattextb...
scum = { check = function(player) local del = 0 local write = 0 if player.gmLevel == 99 then del = 1 write = 1 end player.boardDel = del player.boardWrite = write end }
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2009, olcc -- -- This is now a standalone RSS reader for awesome: -- * http://github.com/olcc/aware --------------------------------------------------- -- {{{ Grab environment local pairs = pairs local io...
mg.write("HTTP/1.0 200 OK\r\n") -- MIME type: https://www.ietf.org/rfc/rfc4627.txt, chapter 6 mg.write("Content-Type: application/json\r\n") mg.write("\r\n") num_threads = mg.get_option("num_threads") num_threads = tonumber(num_threads) function n(s) if ((type(s) == "string") and (#s > 0)) then ...
-------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("Millificent Manastorm", 1544, 1688) if not mod then return end mod:RegisterEnableMob(101976) mod.engageId = 1847 -----------------------------------------------------------------...
local arrays = require "pgmoon.arrays" local json = require "pgmoon.json" local cjson = require "cjson" local cjson_safe = require "cjson.safe" local pl_tablex = require "pl.tablex" local kong = kong local ngx = ngx local encode_base64 = ngx.encode_base64 local decode...
-- define target target("cuda_console") -- set kind set_kind("binary") -- add include directories add_includedirs("inc") -- add files add_files("src/*.cu") -- generate SASS code for each SM architecture for _, sm in ipairs({"30", "35", "37", "50", "52", "60", "61", "70"}) do ...
-- definition of roman numeral chords assuming a root of C (transposable) roman_numeral_to_chord={} local nums={1,4,5} local rnums={"I","IV","V"} local notes={"C","F","G"} local adds={"maj","maj7","min","min7"} for i,_ in ipairs(nums) do roman_numeral_to_chord[nums[i]]={} local rn=rnums[i] for j,ad in ipairs(add...
object_mobile_exar_kun_cultist_f_02 = object_mobile_shared_exar_kun_cultist_f_02:new { } ObjectTemplates:addTemplate(object_mobile_exar_kun_cultist_f_02, "object/mobile/exar_kun_cultist_f_02.iff")
-- -- collisions.lua -- General collision math -- Includes general collisions and specific collision functions -- local Collisions = {} Collisions.__index = Collisions -- MODULES -- local Constants = require ("src.logic.general") -- END -- Collisions.__hWiggleConst = 0.1 / Constants.TERMINAL_HORIZONTAL Collis...
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] -- ####################################### -- ## Project: HUD ...
--By naschemaa and nathhhknowledge. --JUST THE SCRIPT (NEED HELP=Private Message) ragdolldeath = true cantouchkill = false debugmode = false canchase = true chasing = false amount = 0 speed = 0.6 heartbeat = game:GetService("RunService").Heartbeat pathfindingser = game:GetService("PathfindingService") scphead = script....
if package.loaded.luv then _hx_luv = _G.require("luv"); else _hx_luv = { run=function(mode) return false end, loop_alive=function() return false end } end
local PluginActions = {} PluginActions.ProgramActions = require(script.ProgramActions) PluginActions.PrintTrackPositions = require(script.PrintTrackPositions) return PluginActions
PLAYERSTATS = {}
-- local officeWifi = "OnePlus 7T" -- -- local officeWifi = "clear-corporate" -- local urlToLoad = "http://1.1.1.1" -- local browser = "Microsoft Edge Beta" -- local i = 0 -- local watcher = hs.wifi.watcher.new(function() -- local ssid = hs.wifi.currentNetwork() -- -- load the url when office wifi is connected -- ...
-- uses: -- default_buf -- buf -- ledpin c = require('config') f = require('fade') print("fadesrv:debug: init") f.init(c.state.numled) f.set_delay(c.state.fadedelay) local function handle_request(client,request) -- print("fadesrv:debug: got connection") local response = { "HTTP/1.1 200 OK\r\n", "Conten...
help( [[ This module loads Expat 2.1.0 Expat is a library for parsing XML documents ]]) whatis("Loads expat libraries which provide support for parsing XML documents") local version = "2.1.0" local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/expat/"..version prepend_path("LD_LIBRARY_PATH", pathJoin(base, "...
-- Pretty-Printed using HW2 Pretty-Printer 1.21 by Mikail. -- LuaDC version 0.9.19 -- 5/23/2004 7:23:40 PM -- LuaDC by Age2uN -- on error send source file (compiled lua) and this outputfile to Age2uN@gmx.net -- Ship = 0 SubSystem = 1 build = { { Type = SubSystem, ThingToBuild = "Hgn_C_Production_Fighter", Requ...
local E, C, L = select(2, ...):unpack() ---------------------------------------------------------------------------------------- -- Hover Key Bind ---------------------------------------------------------------------------------------- local bind, oneBind, localmacros = CreateFrame("Frame", "HoverBind", UIParent), t...
PLUGIN.name = "Acts" PLUGIN.author = "Chessnut" PLUGIN.desc = "Adds acts that can be performed." PLUGIN.acts = PLUGIN.acts or {} nut.util.include("sh_setup.lua") local Entity_Meta = FindMetaTable("Entity") local Player_GetNetVar = Entity_Meta.getNetVar for k, v in pairs(PLUGIN.acts) do local data = {} local multi...
object_tangible_meatlump_event_meatlump_map_01_07 = object_tangible_meatlump_event_shared_meatlump_map_01_07:new { } ObjectTemplates:addTemplate(object_tangible_meatlump_event_meatlump_map_01_07, "object/tangible/meatlump/event/meatlump_map_01_07.iff")
if not math.sin then dofile("lib-MATH.lua") end gps={ lat0=0, long0=0} function gps.Ref(lat, long) -- in degrees gps.lat0=lat * math.rad gps.long0=long * math.rad end function gps.Distance(lat, long) -- in degrees local lat1 = lat * math.rad local long1 = long * math.rad local R = 6371 -- Ra...
-- On Linux We have to query the dependencies of gtk+3 for sr_gui, we do this on the host for now. if os.ishost("linux") then listing, code = os.outputof("pkg-config --libs libnotify gtk+-3.0") liballLibs = string.explode(string.gsub(listing, "-l", ""), " ") end workspace("Calco") -- Configuration. configuratio...