content
stringlengths
5
1.05M
---------------------------------------------------------- -- RamReader.lua: put variables on your video via AviUtl. ---------------------------------------------------------- if not aviutl then error("This script runs under Lua for AviUtl.") end ---------------------------------------------------------- --...
StringBuilder = luanet.import_type("System.Text.StringBuilder"); local sb = StringBuilder(); for i = 0,1000,1 do sb:Append("."); end; return sb:ToString();
Option = require('nvim.utils.option') Variable = require('nvim.utils.variable') Keybind = require('nvim.utils.keybind') Command = require('nvim.utils.command') Editor = require('nvim.utils.editor') Vim = { Option = Option, Variable = Variable, Keybind = Keybind, Command = Command, Editor = Editor, }
--[[ Updater Script ]]-- local path = ... print(path) local handle = http.get("https://raw.githubusercontent.com/ccTCP/Delta/master/Releases/latest.lua") local f = loadstring(handle.readAll()) setfenv(f,_G) f(path) --Just a test
yatm_fluid_pipe_valves.valve_mesecon_rules = { {x = 0, y = 0, z = -1}, {x = 1, y = 0, z = 0}, {x = -1, y = 0, z = 0}, {x = 0, y = 0, z = 1}, {x = 1, y = 1, z = 0}, {x = 1, y = -1, z = 0}, {x = -1, y = 1, z = 0}, {x = -1, y = -1, z = 0}, {x = 0, y = 1, z = 1}, {x = 0, y = -1, z ...
ayne = Entity:new({ img = love.graphics.newImage( "graphics/ayne.png" ), state = "down", states = { movedown = { quads = { love.graphics.newQuad(0, 0, 32, 48, 96, 192), love.graphics.newQuad(64, 0, 32, 48, 96, 192) }, framedelay = 5, move = function(self) self.y = self.y + self.s...
onTalk(function(name, level, mode, text, channelId, pos) if mode == 34 then if string.find(text, "world will suffer for") then say("Are you ever going to fight or do you prefer talking!") elseif string.find(text, "feet when they see me") then say("Even before they smell your ...
-- parent base: component = {} component.__index = component component.colors = { blue = {0.01, 0.46, 0.85, 1.0}, green = {0.36, 0.72, 0.36, 1.0}, cyan = {0.36, 0.75, 0.87, 1.0}, orange = {0.94, 0.68, 0.31, 1.0}, red = {0.85, 0.33, 0.31, 1.0}, black = {0.0, 0.0, 0.0, 1.0}, white = {1.0, 1.0...
author '¡SpyrokTVᵈᵉᵛ#0001' description 'Logs server By ¡SpyrokTVᵈᵉᵛ#0001' version '1.0' game 'gta5' fx_version 'bodacious' server_script { "server.lua", "config.lua" } client_script 'client.lua'
ITEM.name = "Toothpaste" ITEM.description = "A tube of toothpaste." ITEM.longdesc = "A tube of toothpaste. Handy for keeping oral hygiene." ITEM.model = "models/illusion/eftcontainers/toothpaste.mdl" ITEM.width = 1 ITEM.height = 1 ITEM.price = 200 ITEM.flatweight = 0.020 ITEM.img = ix.util.GetMaterial("vgui/hud/valu...
function exec(context, arg) return load(arg)() end function eval(context, arg) return load("return " .. arg)() end
local parser_config = require('nvim-treesitter.parsers').get_parser_configs() parser_config.org = { install_info = { url = 'https://github.com/milisims/tree-sitter-org', revision = 'f110024d539e676f25b72b7c80b0fd43c34264ef', files = { 'src/parser.c', 'src/scanner.cc' }, }, filetype = 'org', } require...
local Overlay = {} -- --- --- --- -- -- Constants -- --- --- --- -- local nbShoots = 8 -- To get the final score when combos are made, a little waiting time is required -- (between the first head(s) and the last head(s)) local nbFramesToWaitBeforeSavingScore = 60 -- --- --- --- -- -- Variables -- --- --- --- -- -- ...
-------------------------------- -- @module PhysicsJointGroove -- @extend PhysicsJoint -- @parent_module cc -------------------------------- -- -- @function [parent=#PhysicsJointGroove] setAnchr2 -- @param self -- @param #vec2_table anchr2 -- @return PhysicsJointGroove#PhysicsJointGroove self (return value: cc.Phys...
-- A convenience wrapper to support the convention of having the -- cdefs for a library held in the global variable cdef_string. local ffi=require 'ffi' ffi.cdef 'char *cdef_string' function ffi.load_with_cdefs(shared_object_name) local shared_object = ffi.load(shared_object_name) ffi.cdef(ffi.string(shared_obj...
--影六武衆-リハン --Shadow Six Samurai – Rihan --Scripted by Eerie Code --Fusion procedure by edo9300 function c100419006.initial_effect(c) c:EnableReviveLimit() --spsummon condition local e0=Effect.CreateEffect(c) e0:SetType(EFFECT_TYPE_SINGLE) e0:SetCode(EFFECT_SPSUMMON_CONDITION) e0:SetProperty(EFFECT_FLAG_CANNOT_DIS...
--[[ Syntax highlighting color scheme based on the color scheme used on http://lua-users.org/wiki/. Author: Peter Odding <peter@peterodding.com> Last Change: July 17, 2011 URL: http://peterodding.com/code/lua/lxsh/ ]] return { comment = { color = 0x00A000 }, constant = { color = 0x009090 }, default = { c...
ITEM.name = "Hunting Knife" ITEM.description = "A short, sharp blade typically used to skin game while hunting. It could also be used against humans proficiently." ITEM.model = "models/weapons/w_knife_stalker.mdl" ITEM.class = "stalker_knife" ITEM.weaponCategory = "melee" ITEM.width = 1 ITEM.height = 2 ITEM.chance = 43
local base = require( "acid.paxos.base" ) local paxos = require( "acid.paxos" ) local tableutil = require( "acid.tableutil" ) local errors = base.errors function test_new(t) local cases = { { mid=nil, impl=nil, rst=nil, err=errors.InvalidArgument, }...
-- Example of your main gamestate, handling creation of the level and its entities, and setting up input callbacks. local play = gamestate.new() local gui, level, player, world, physics, input function play:init() -- Create GUI gui = GUI() -- Create level with physics world level = Level(LevelData()) world = l...
obj.spec.paused = nil return obj
--[[DOC A more complex example to be embedded with linject, e.g. into luancher.exe. It is a lua script runner that handle some non-trivial cases. luancher.exe will set the lua package.path and cpath so that lua will load all the .lua and .dll files in the same directory (of luancher.exe). Then it will try to execut...
/* * Torrent - 2013 Illuminati Productions * * This product is 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 ...
-- -- 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 ...
-- -- Copyright (c) 2016, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- -- BBCNet datas...
--[[--------------------------------------------------------- Name: gamemode:OnPhysgunFreeze( weapon, phys, ent, player ) Desc: The physgun wants to freeze a prop -----------------------------------------------------------]] function GM:OnPhysgunFreeze( weapon, phys, ent, ply ) -- Object is already frozen (...
local RunService = game:GetService('RunService') local isDev = RunService:IsStudio() local GlobalConfig = { WAIT_TIME = isDev and 4 or 20, afterFinishWaitTime = 10, refreshLeaderboards = 5 * 60, DEFAULT_PLAYER_SLOTS = 3, DEFAULT_PLAYER_COINS = 100, DEFAULT_PLAYER_INVENTORY = {}, } return GlobalConfig
local cv = require 'cv._env' local ffi = require 'ffi' ffi.cdef[[ struct TensorWrapper inpaint(struct TensorWrapper src, struct TensorWrapper inpaintMask, struct TensorWrapper dst, double inpaintRadius, int flags); struct TensorWrapper fastNlMeansDenoising1(struct TensorWrapper src, stru...
local function AutoFile(msg) local text = msg.content_.text_ if Sudo(msg) then if text == 'تفعيل النسخه التلقائيه' or text == 'تفعيل جلب نسخه الكروبات' or text == 'تفعيل عمل نسخه للمجموعات' then Dev_Aek(msg.chat_id_,msg.id_, 1, "♕︙تم تفعيل جلب نسخة الكروبات التلقائيه\n♕︙سيتم ارسال نسخه تلقائيه للكروبات كل يوم الى خا...
local player = ... local pn = ToEnumShortString(player) local p = PlayerNumber:Reverse()[player] local rv local zoom_factor = WideScale(0.8,0.9) local labelX_col1 = WideScale(-70,-90) local dataX_col1 = WideScale(-75,-96) local labelX_col2 = WideScale(10,20) local dataX_col2 = WideScale(5,15) local h...
require 'math' --[[ A simple module with "math related" utility functions ]]-- local math_utils = {} function math_utils.random_range(min, max) if type(min) ~= 'number' then min = 0 end if type(max) ~= 'number' then max = 1 end if (max < min) then local temp = max max = min min = ...
-- x64 specific definitions return { epoll = [[ struct epoll_event { uint32_t events; epoll_data_t data; } __attribute__ ((packed)); ]], ucontext = [[ typedef long long greg_t, gregset_t[23]; typedef struct _fpstate { unsigned short cwd, swd, ftw, fop; unsigned long long rip, rdp; unsigned mxcsr, mxcr_m...
function SpawnPoints() return { constructionworker = { { worldX = 37, worldY = 35, posX = 168, posY = 188, posZ = 0 } }, fireofficer = { { worldX = 37, worldY = 35, posX = 168, posY = 188, posZ = 0 } }, parkranger = { { worldX = 37, worldY = 35, posX = 168, posY = 188,...
ParticleSystem = {} ParticleSystem.__index = ParticleSystem function ParticleSystem:new(universe) local particle_system = {} setmetatable(particle_system, self) particle_system.particles = {} particle_system.emitters = {} particle_system.universe = universe return particle_system end functio...
local ffi = require "ffi" local ffi_cdef = ffi.cdef ffi_cdef[[ void *opaque; void (*blockcode)(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_buffer *lang, const hoedown_renderer_data *data); void (*blockquote)(hoedown_buffer *ob, const hoedown_buffer *content, const hoedown_renderer_data *data); v...
client_scripts { 'data-ora.lua' }
#!/usr/bin/env lua require("socket") stack = {} mem = {} handles = {} address = {"0.0.0.0", 0} contexts = {} contextpos = {} curcontext = 0 pos = 0 function clear() while #stack ~= 0 do table.remove(stack) end end do local mt = {} function mt.__index() return 0 end setmetatable(stack, mt) setmetatable(mem,...
object_tangible_quest_corellia_disappearances_2_object_2 = object_tangible_quest_shared_corellia_disappearances_2_object_2:new { } ObjectTemplates:addTemplate(object_tangible_quest_corellia_disappearances_2_object_2, "object/tangible/quest/corellia_disappearances_2_object_2.iff")
local color = require('__stdlib__/stdlib/utils/defines/color') local allowed_values = {'default'} for name in pairs(color) do allowed_values[#allowed_values + 1] = name end data:extend{ { type = 'string-setting', name = 'picker-chat-color', setting_type = 'runtime-per-user', de...
vim.bo.tabstop = 4 vim.bo.shiftwidth = 4 vim.bo.expandtab = true vim.wo.listchars = { tab = ".." }
local K = require("game.constants") local hsl = require("utils.hsl") local easing = require('tweener.easing') local dynArray = require("utils.dynArray") local timing = require("utils.timing") local buffer = require('utils.buffer') local r = math.random local eh, es, el = easing.outQuad, easing.outExpo, easing.inQuad...
data:extend({ { type = "assembling-machine", name = "arboretum", icon = "__zenith-bio__/graphics/icons/arboretum.png", icon_size = 32, flags = {"placeable-neutral", "placeable-player", "player-creation"}, minable = {hardness = 0.2, mining_time = 0.5, result = "arboretum"}, max_health = 350...
local weapon_class = 'weapon_quest_system_tool_trigger_selector' sgui.RouteRegister('qsystem/editor/quest/triggers', function(quest) net.Start('sv_qsystem_open_trigger_editor') net.SendToServer() local is_back = true local frame = vgui.Create('DFrame') frame:SetPos(20, 20) frame:SetSize(550, 350) frame:SetTitl...
SCRIPT_TITLE = "Super Mario Bros. 3 Rainbow Riding" SCRIPT_VERSION = "0.1" require "m_utils" m_require("m_utils",0) --[[ Super Mario Bros. 3 Rainbow Riding version 0.1 by miau Visit http://morphcat.de/lua/ for the most recent version and other scripts. This script turns smb3 into a new game very similar...
dofile "test.lua" --^ kwb --[[a comment]] var=11 -- ^ num -- ^ opt -- ^^ num " " var=11 -- ^^ num -- ^ opt -- ^^ num var=111111111111111111111 -- ^^^^^^^^^^^^^^^^^^^^^ num Strings={ Delimiter=[["|'...
--[[ Probabilistic Criterion for Triplet Siamese Model for learning embedding. Ref: https://arxiv.org/pdf/1610.00243.pdf loss = -log( exp(-X) / ( exp(-X) + exp(-Y) ) ) where X : Distance between similar samples Y : Distance between dissimilar samples The loss could be break down to following log ...
Hooks:PostHook(UpgradesTweakData, "init", "VPPP_UpgradesTweakData_init", function(self) self:common_add_throwables("yakuza_injector", 1, 8) self:common_add_throwables("burglar_luck", 1, 8) self:common_add_throwables("med_x", 1, 8) self:common_add_throwables("adrenaline_shot", 2, 10) self:common_add_throwables("spa...
return function(ent, args) if ent.position.x < 0 then DOSWITCH = true scripts.systems.money.money.end_raid(true) local ent = scripts.systems.money.money.get_money_ent() ent.money.total, ent.money.pocket_treasure = ent.money.total + ent.money.pocket_treasure, 0 end end
ngx.header['response'] = ngx.req.get_method() .. '.' .. ngx.var.uri local config = require "./conf/lua/config_coreadmin" --local functions local function isempty(s) return s == nil or s == '' end local redis = require "resty.redis" local red = redis:new() red:set_timeout(1000) -- 1 sec local ok, err = red:c...
pg = pg or {} pg.world_goods_data = { [10101] = { id = 10101, priority = 2, price_id = 100, item_num = 1, is_auto_use = 1, item_id = 2002, item_type = 12, frequency = 1, price_num = 1000, price_type = 12 }, [10102] = { id = 10102, priority = 2, price_id = 100, item_num = 1, is_auto_use ...
local lpeg = require'lpeg' --local pp = require'pretty' local number = lpeg.R'09' ^ 1 / tonumber local space = lpeg.P(" ") ^ 0 local pattern = space * number * space * number * space * number local total = 0 local i = 0 local triangles = {} for line in io.lines("3.txt") do i = i + 1 local a, b, c = lpeg.match(pa...
class "BackgroundComponent" { extends "DisplayComponent", -- Override new = function (self, left,right,top,bottom) self:super(left,right,top,bottom) self.image = love.graphics.newImage("Assets/background.png") self.fits = {true, true} self.scales = {1, 1} self.offsets = {0, 0} self.isAligncenter = f...
-- See LICENSE for terms -- edited from orig func to remove deposits local function SetSignsVisible(visible) if visible and not g_SignsVisible then MapSetEnumFlags(const.efVisible, "map", "BuildingSign", "UnitSign", "ArrowTutorialBase", "SelectionArrow") g_SignsVisible = true end if not visible and g_SignsVisib...
map_proto = { [1] = { name = 4901, map = 1, }, [2] = { name = 4902, map = 3, }, [3] = { name = 4903, map = 3, }, [4] = { name = 4904, map = 3, }, [5] = { name = 4905, map = 3, }, [6] = { name = 4906, map = 3, }, [7] = { name = 4907, map = 3, }, [8] = { name = 4908, map = 3, }, [9] = { name = 4909, map = 3, }, [10] = { ...
local queries = require "nvim-treesitter.query" local M = {} function M.init() require("nvim-treesitter").define_modules { refactor = { highlight_definitions = { module_path = "nvim-treesitter-refactor.highlight_definitions", enable = false, disable = {}, is_supported = que...
return {'lto','lto'}
-- Functions: ------------------------------------------------------- function model.completeDataPartSpecific(data) if not data.partSpecific then data.partSpecific={} end -- if not data.partSpecific['width'] then -- data.partSpecific['width']=0.3 -- end end -- Additional handles: ---------...
require('nvim-treesitter.configs').setup { highlight = { enable = true, disable = { 'fennel', }, }, incremental_selection = { enable = false, -- too much for me! }, indent = { enable = true, }, textobjects = { select = { enable = true, ...
include("shared.lua") local lib = include("psychedelics/libs/cl/ents_cl.lua") local function drawPanel(ent) -- local pos = ent:LocalToWorld(Vector(18.5,0,28)) -- local pos = ent:LocalToWorld(Vector(18.5,0,24)) local base = ent:GetNWEntity("psychedelicsDoorBase", ent) local temp = base:GetNWInt("psychedelicsTemp", 2...
fx_version 'cerulean' game 'gta5' author 'An awesome dude' description 'An awesome, but short, description' version '1.0.0' resource_type 'gametype' { name = 'My awesome game type!' } client_script 'mymode_client.lua'
local K, C = unpack(select(2, ...)) local Module = K:GetModule("Skins") local _G = _G local pairs = pairs local table_insert = table.insert local hooksecurefunc = _G.hooksecurefunc local function LoadSpellBookSkin() local professionTexture = K.GetTexture(C["UITextures"].SkinTextures) for i = 1, _G.SPELLS_PER_PAGE...
--[[ 定义大厅用到的协议命令字 ]] local CMD = {}; ---客户端发送命令到服务器 CMD.C2S = { HALL_REQUEST = 0xEEEF, -- RPC请求 HEART_REQUEST = 0x2008, -- 心跳 IM_REQUEST = 0xEEF0, -- IM消息 MATCH_REQUEST = 0xEEEC, -- 比赛消息 }; ---服务器发送命令到客户端,协议都是双数 CMD.S2C = { HALL_RESPONSE = 0xEEEF, -- 大厅和后端交互的rpc消息 HEART_RESPO...
eHelicopter_announcers = eHelicopter_announcers or {} --[[ eHelicopter_announcers["name of announcer"] = { ["Lines"] = { ["lineID1"] = {0, "variation1"}, -- For the sake of organization It is recommended you write out some of the spoken audio for "LineID" -- The first entry within each line is the delay ad...
--[[ Name: gui/pages/settingsPage.lua Description: Program the players page Author: misrepresenting ]] local smoothScroll, colorPicker, onClick, singleSearch, blink do local helpers = import('gui/helpers') smoothScroll, colorPicker, onClick, singleSearch, blink = helpers.smoothScroll, helpers.color...
#!/usr/bin/env tarantool box.cfg({ listen = os.getenv("LISTEN"), memtx_allocator = os.getenv("MEMTX_ALLOCATOR") }) require('console').listen(os.getenv('ADMIN'))
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:29' 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...
if not pcall(require, 'telescope') then return end function ts_map(key, picker_f) local rhs = string.format(":lua require'plugins.telescope.pickers'.%s()<CR>", picker_f) local opts = { noremap = true, silent = true, } vim.api.nvim_set_keymap('n', key, rhs, opts) -- vim.api.nvim_buf_set_keymap(0, '...
--[[ ============================================================================================================ Author: Rook Date: February 4, 2015 Called when the unit lands an attack on a target. Applies the modifier so long as the target is not a structure. Additional parameters: keys.ColdDurationMelee and ke...
local helpers = {} local npairs=require('nvim-autopairs') npairs.setup() local eq = assert.are.same _G.npairs = npairs; vim.api.nvim_set_keymap('i' , '<CR>','v:lua.npairs.check_break_line_char()', {expr = true , noremap = true}) function helpers.feed(text, feed_opts) feed_opts = feed_opts or 'n' local to_feed = vi...
local tArgs = { ... } if #tArgs == 0 then print( "Usage: display <file>" ) return end local sPath = shell.resolve( tArgs[1] ) if fs.exists( sPath ) and fs.isDir( sPath ) then printError( "Cannot display a directory." ) return end if fs.exists( sPath ) then paintutils.drawImage(paintutils.loadImage(sPath), 1, ...
if (GetLocale() == "zhCN") then BF_TEXT_UPDATETOVERSION = "|CFFFFD000 您的大脚版本已过期,请用大脚客户端更新,最新版本为:%s,大脚插件由178游戏网(www.178.com)制作.|r" BF_TEXT_WRONGVERSION = "|CFFFFD000 您的大脚版本错误,请重新用大脚客户端更新,大脚插件由178游戏网(www.178.com)制作.|r" elseif (GetLocale() == "zhTW") then BF_TEXT_UPDATETOVERSION = "|CFFFFD000 您的大腳版本已過期,請用大腳客戶端更新,...
----------------------------------- -- Area: Southern San d'Oria -- NPC: Benaige -- Standard Merchant NPC -- !pos -142 -6 47 230 ----------------------------------- local ID = require("scripts/zones/Southern_San_dOria/IDs") require("scripts/globals/shop") ----------------------------------- function onTrade(player, n...
--[[---------------------------------------------------------------------------- premake4.lua -- Noel Cower This build script is public domain. ------------------------------------------------------------------------------]] -- Set up snow table snow = {} --[[-----------------------------------------------------...
require "example"
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** require "ISUI/ISCollapsableWindow" ---@class DebugLogSettings : ISCollapsableWindow DebugLogSettings = ISCollapsableWindow:derive("D...
function strip_raw_outmeta() for k,v in pairs(outmeta) do if k:sub(1,4) == "raw_" then outmeta[k] = nil end end end function consume_tag(wat) local ret = inmeta[wat] inmeta[wat] = nil if ret ~= nil and ret ~= "" then ret = ret:gsub("^[ \t]+",""):gsub("[ \t]+$","") end if ret == "" then...
workspace "TrueEngine" architecture "x64" startproject "Sandbox" configurations { "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" -- Include directories relative to root folder (solution directory) IncludeDir = {} IncludeDir["GLFW"] = "TrueEngine/vendor/GLFW/i...
local InviteToGameAnalytics = {} InviteToGameAnalytics.__index = InviteToGameAnalytics InviteToGameAnalytics.ButtonName = { SettingsHub = "settingsHub", ModalPrompt = "modalPrompt", } InviteToGameAnalytics.EventName = { InviteSent = "inputShareGameInviteSent", EntryPoint = "inputShareGameEntryPoint", } InviteToG...
--- A way of injecting plugins via the Howl DSL -- @module howl.modules.plugins local class = require "howl.class" local mixin = require "howl.class.mixin" local fs = require "howl.platform".fs local Plugins = class("howl.modules.plugins") :include(mixin.configurable) function Plugins:initialize(context) self.con...
-- Borrowed this from Factorio yatm.fluids.fluid_registry.register("yatm_fluids", "heavy_oil", { description = "Heavy Oil", aliases = { "yatm_core:heavy_oil", }, groups = { oil = 1, heavy_oil = 1, flammable = 1, }, nodes = { texture_basename = "yatm_heavy_oil", groups = { oil = 1,...
-- Dat View -- -- Class: GGPK Data -- GGPK Data -- local ipairs = ipairs local t_insert = table.insert local function scanDir(directory, extension) local i = 0 local t = { } local pFile = io.popen('dir "'..directory..'" /b') for filename in pFile:lines() do --ConPrintf("%s\n", filename) if extension then if...
function love.draw() love.graphics.print("Hello castle-cli", 400, 300) end
LinkLuaModifier("modifier_temari_sheer_wind_caster", "abilities/heroes/temari/temari_sheer_wind.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_temari_sheer_wind_stack_counter", "abilities/heroes/temari/temari_sheer_wind.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_temari_sheer_wind_stack_buff", ...
_addon.name = 'voidwatch' _addon.author = 'Dabidobido' _addon.version = '0.8.12' _addon.commands = {'vw'} -- copied lots of code from https://github.com/Muddshuvel/Voidwatch/blob/master/voidwatch.lua require('logger') require('coroutine') packets = require('packets') res = require('resources') config = require...
--[[ DevelopPresets.lua Object that represents develop settings from a catalog point of view. --]] local DevelopPresets, dbg, dbgf = Object:newClass{ className = "DevelopPresets", register=true } --- Get function DevelopPresets:getDevPresetNames() local names = {} local fold...
-------------------------------- -- @module GLProgramState -- @extend Ref -- @parent_module cc -------------------------------- -- Get the flag of vertex attribs used by OR operation. -- @function [parent=#GLProgramState] getVertexAttribsFlags -- @param self -- @return unsigned int#unsigned int ret (return value: u...
local PANEL = {} function PANEL:Init() self.List = vgui.Create("DPanelList", self) self.List:SetSpacing(1) self.List:EnableVerticalScrollbar() self.EntList = {} self:ApplySchemeSettings() end function PANEL:PerformLayout(w, h) local Border = 10 local Tall = 402 local iTop = Tall - Border self.List:SetPos(Bo...
return { postgres = { up = [[ -- Unique constraint on "name" already adds btree index DROP INDEX IF EXISTS "workspaces_name_idx"; ]], }, cassandra = { up = [[]], } }
--=========== Copyright © 2017, Planimeter, All rights reserved. =============-- -- -- Purpose: -- --============================================================================-- local ffi = require( "ffi" ) io.input( "HLLib.h" ) ffi.cdef( io.read( "*all" ) ) return ffi.load( ffi.os == "Windows" and "HLLib" or "hllib...
gui = require('Gspot') -- import the library --mainmenu = gui() -- create a gui instance. don't have to do this, but you may want a gui for each gamestate so they can talk to each other, and you won't have to recontsruct the gui every time you enter a state font = love.graphics.newFont(192) love.load = function() ...
local C, N, oUF = unpack(select(2, ...)) local playerClass = N.playerClass local FormatTime = N.FormatTime local UF = N.UnitFrame -- Lua APIs local unpack = unpack local huge = math.huge local tsort = table.sort -- WoW APIs local CreateFrame = CreateFrame local GetTime = GetTime local UnitAura ...
---@class LspModule ---@field keys LspKeyMappers ---@field buffer_keys LspKeyMappers ---@field on_attaches OnAttachFn[] ---@field caps_setters CapsSetter[] ---@class LspKeyMapper ---@field [1] string key ---@field [2] string command ---@field [3] string introduce ---@alias LspKeyMappers table<string, LspKeyMapper> --...
--[[ @Author: Ermano Arruda (exa371 at bham dot ac dot uk), June 2016 Just a simple food class. Food can either be poisonous or not. ]] require 'torch' local Food = torch.class("Food") function Food:__init(is_poison, world,ppm,vm) self.vm = vm -- force magnitude self.ppm = ppm self.shape = love.physics.newCircl...
-- Copyright © 2016, 2017, 2018, 2019, 2020 Emmanuel Roubion -- -- Author: Emmanuel Roubion -- URL: https://github.com/maanuair/dotfiles -- This file is part of Emmanuel's Roubion dot files, released under -- the MIT License as published by the Massachusetts Institute of Technology -- -- These dotfiles are distributed...
-- © 2021 Emmanuel Lajeunesse -- Roblox Services -- local ReplicatedStorage = game:GetService("ReplicatedStorage") -- Module local DebuGui = require(ReplicatedStorage.DebuGui) -- Get Existing Window local Gui1 = DebuGui.WaitForWindow('Core') -- This should end up at the bottom after everything from example 1 is fin...
--------------------------------------------------------------------------------------------------- -- User story: TBD -- Use case: TBD -- -- Requirement summary: -- TBD -- -- Description: -- In case: -- 1) Application is registered with PROJECTION appHMIType -- 2) and starts audio services -- 3) HMI rejects StartStrea...
local self = {} mUI.RenderEngine = self self.events = {} function self:Listen(event,id,callback,priority) self.events[event] = self.events[event] or {} for _,data in ipairs(self.events[event]) do if data.id == id then data.callback = callback data.priority = priority or 100 ...
-- TODO: THIS IS NOT DONE, IT IS NOT FULLY IMPLEMENTED. require "resty.nettle.types.asn1" local lib = require "resty.nettle.hogweed" local band = require "bit".band local ffi = require "ffi" local ffi_new = ffi.new local ffi_str = ffi.string local ffi_cdef = ffi.cdef local ffi_typeof = ffi...
local shell = require("shell") local fs = require("filesystem") local args = shell.parse(...) local ec = 0 if #args == 0 then repeat local read = io.read("*L") if read then io.write(read) end until not read else for i = 1, #args do local arg = args[i] if fs.isDirectory(ar...
//afkkick default config local function SetupDefaultConfig() local DefaultConfig = { } DefaultConfig.kAFKKickDelay = 150 DefaultConfig.kAFKKickCheckDelay = 5 DefaultConfig.kAFKKickMinimumPlayers = 5 DefaultConfig.kAFKKickWarning1 = 30 DefaultConfig.kAFKKickWarning2 = 10 DefaultConfig.kMonitoredTeams = { 0, 1, 2...