content
stringlengths
5
1.05M
-- ffi_def_create_headers.lua print() print(" -- ffi_def_create_headers.lua start -- ") if jit then print(jit.version) else print(_VERSION) end print() local arg = {...} local noParse = false if arg[1] then noParse = arg[1] == "n" end local util = require "lib_util" local osname if true then -- keep ffi valid on...
return { name = "Catcher_Sprite"; w = 56; h = 64; fmt = ".png"; numf = 28; anim = { [1] = {0, 0, 56, 64, 6}; --Down [2] = {0, 66, 56, 64, 6}; --Up [3] = {0, 134, 56, 64, 6}; --Right [4] = {0, 200, 56, 64, 6}; --Left [5] = {0, 264, 54, 96, 5}; [6] = {0, 360, 54, 70, 5}; [7] = {0, 428, 96, 68, 5};...
local function make_counter() local counter = 1 return function() local value = counter counter = counter + 1 -- trace: value return value end end local a = make_counter() local b = make_counter() for i = 1, 10 do a() b() end
include('lib/track') include('lib/engine') QuantumPhysics = include('lib/engines/quantumphysics') GraphTheory = include('lib/engines/graphtheory') TimeWaver = include('lib/engines/timewaver') function Buffer:render_double_buffer (grid,dbuf) if self.grid.height~=dbuf.grid.height or self.grid.width~=dbuf.grid.width t...
-- oUF_OrbsConfig: global -- zork, 2018 ----------------------------- -- Variables ----------------------------- local A, L = ... ----------------------------- -- Global Config ----------------------------- --scale L.C.scale = 0.6 --colors L.C.colors = {} --colors bgMultiplier L.C.colors.bgMultiplier = 0.3 --colo...
-- Copyright (c) 2020 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT -- Copyright (c) 2020 Trevor Redfern -- -- This software is released under the MIT License. -- https://opensource.org/licenses/MIT local store = require "moonpie.redux.store" l...
--[[ Copyright (c) 2014 by Adam Hellberg. 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...
Player = game.Players:findFirstChild("xSoulStealerx") local M = Instance.new("ScreenGui") M.Parent = Player.PlayerGui local c = Instance.new("Frame") c.Parent = M c.Position = UDim2.new(0,9,0,562) c.Size = UDim2.new(0,556,0,46) c.BackgroundColor = BrickColor.new("Really black") c.BorderColor = BrickColor.new("Ne...
local _M = {} local admin_utils = require "api-umbrella.utils.admin" local cmsgpack = require "cmsgpack" local cjson = require "cjson" local invert_table = require "api-umbrella.utils.invert_table" local lrucache = require "resty.lrucache.pureffi" local mongo = require "api-umbrella.utils.mongo" local shcache = requir...
server { location /lua-jsonrpc-server { default_type "application/json"; content_by_lua ' local jsonrpc_server = require "resty.jsonrpc_server" local jsonrpc_demo = require "resty.jsonrpc_demo" local server = jsonrpc_server:new() local add1 = functi...
require("common/commonSocketWriter"); require("hall/onlineSocket/globalSocketCmd"); GlobalSocketWriter = class(CommonSocketWriter); GlobalSocketWriter.onSendLoginHall = function(self,packetId,info) self.m_socket:writeInt(packetId,info.userId); self.m_socket:writeShort(packetId,0); self.m_socket:writeShort(...
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
local PrVeh = "prop_vehicle_jeep" local Cat = "TDM Cars" local V = { Name = "Ford Focus RS", Class = PrVeh, Category = Cat, Author = "TheDanishMaster, Turn 10", Information = "A drivable Ford Focus RS by TheDanishMaster", Model = "models/tdmcars/focusrs.mdl", KeyValues = { vehiclescript = ...
--[[ Copyright 2018 The Nakama Authors 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 agreed to in writing, s...
-- The field names used here are the same as for the iostat -- program. -- That program uses a 'struct io_stats' -- Here we simply use a lua table local function decoder(path) path = path or "/proc/diskstats" local tbl = {} -- If you were using 'C', this would be a 'scanf' template local pattern = "(%d+)%s+(%d+)...
function onStepIn(cid, item, frompos, item2, topos) if not isPlayer(cid) then return true end if getPlayerStorageValue(cid, 17000) >= 1 then return true end if getPlayerStorageValue(cid, 17001) >= 1 then return true end doRemoveCondition(cid, CONDITION_OUTFIT) setPlayerStorageValue(cid, 1...
require('possession').setup { commands = { save = 'SSave', load = 'SLoad', delete = 'SDelete', list = 'SList' } }
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local S = E:GetModule('Skins') --Cache global variables --Lua functions local _G = _G --WoW API / Variables --Global variables that we don't cache, list them here for mikk's FindGlobals script -- GLOBALS: local f...
-- sumneko_lua require("olrtg.lsp.lua") -- emmet_ls require("olrtg.lsp.emmet") -- tailwindcss require("olrtg.lsp.tailwindcss") -- bashls require("olrtg.lsp.bash") lvim.lsp.automatic_servers_installation = false local utils = require("olrtg.utils") local formatters = require("lvim.lsp.null-ls.formatters") local lin...
--[[ Description: CGene class represents a GNN cell (i.e. GNN layer) ]] CGene = torch.class('nn.CGene', 'nn.Module') function getGeneAndTFRanges(taGERanges, strGene, taInputNames) local taMins = { output = 0, inputs = torch.zeros(#taInputNames) } local taMaxs = { output = 1, inputs = torch.ones(#taInputNames) } ...
if GetLocale() ~= "frFR" then return end NO_SELL_PRICE_TEXT = "Pas de prix de vente"
local framework = require('framework') local CommandOutputDataSource = framework.CommandOutputDataSource local PollerCollection = framework.PollerCollection local DataSourcePoller = framework.DataSourcePoller local Plugin = framework.Plugin local os = require('os') local table = require('table') local string = require(...
-- Copyright (c) 2015-present, 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. local stringx = re...
setenv("TACC_PETSC_VERSION","3.3")
require("__5dim_core__.lib.nuclear.generation-heat-exchanger") local speed = 2 local modules = 2 local energy = 10 local emisions = 1000 local techCount = 500 -- Electric furnace 01 genHeatExchangers { number = "01", subgroup = "nuclear-heat", craftingSpeed = speed, moduleSlots = modules, energyUs...
require('os') local lfs = require('lfs') local helpers = require('test.functional.helpers') local eval = helpers.eval local command = helpers.command local eq, neq = helpers.eq, helpers.neq local tempfile = os.tmpname() -- os.tmpname() also creates the file on POSIX systems. Remove it again. -- We just need th...
local race = { { _id = "kobold", is_extra = true, _ordering = 20010, elona_id = 1, properties = { breed_power = 250, image = "elona.chara_kobold", }, male_ratio = 50, height = 150, age_min = 15, ...
ys = ys or {} slot1 = ys.Battle.BattleConst ys.Battle.AttackOxyState = class("AttackOxyState", ys.Battle.IOxyState) ys.Battle.AttackOxyState.__name = "AttackOxyState" ys.Battle.AttackOxyState.Ctor = function (slot0) slot0.super.Ctor(slot0) end ys.Battle.AttackOxyState.GetWeaponUseableList = function (slot0) return ...
local M = {} M.namespace = vim.api.nvim_create_namespace("WhichKey") ---@class Options local defaults = { plugins = { marks = true, -- shows a list of your marks on ' and ` registers = true, -- shows your registers on " in NORMAL or <C-r> in INSERT mode -- the presets plugin, adds help for a bunch of de...
-- -- client.lua -- send "Hello" to a server using SDL_net -- local net = require "SDL.net" -- Init net net.init() -- Create and connect local addr = net.resolveHost("localhost", 5959) local s = net.openTcp(addr) s:send("Hello") net.quit()
-- lua/rs/Shift.lua if Server then -- SHIFT local UpdateShiftButtons = debug.getupvaluex(Shift.OnUpdate, "UpdateShiftButtons") if UpdateShiftButtons then local kEchoCooldown = 1 local function OnShiftButtonsCallback(self) UpdateShiftButtons(self) self.echoActive = ...
------------------------------------------------------------ -- SiegeOfOrgrimmar.lua -- -- Abin -- 2013/9/12 ------------------------------------------------------------ local module = CompactRaid:GetModule("RaidDebuff") if not module then return end local TIER = 5 -- Mists of Panaria local INSTANCE = 369 -- Siege o...
if SERVER then return end net.Receive("TFAStarWars_nfy", function() local msg = net.ReadString() local ntype = net.ReadInt(6) local time = net.ReadInt(16) TFAStarWars:DoNotify(msg, ntype, time) end) net.Receive("TFAStarWars_Snd", function() surface.PlaySound(net.ReadString()) end)
local GLayer = require("graphic.core.GLayer") local GmLayer = class("GmLayer", GLayer) local gmConfig = {} for i=1,100 do table.insert(gmConfig, {name="获取版本信息"..i,command="版本"..i}) end function GmLayer:ctor() GLayer.ctor(self) end function GmLayer:init() GLayer.init(self) local go = self:loadUiPrefab...
local quat = require "modules.quat" local vec3 = require "modules.vec3" local utils = require "modules.utils" local constants = require "modules.constants" describe("quat:", function() it("creates an identity quaternion", function() local a = quat() assert.is.equal(0, a.x) assert.is.equal(0, a.y) assert.is....
local function setup(args) local xplr = xplr local COMMANDS = {} local COMMAND_HISTORY = {} local CURR_CMD_INDEX = 1 -- Parse args args = args or {} args.mode = args.mode or "default" args.key = args.key or ":" args.remap_action_mode_to = args.remap_action_mode_to or { mode = "default", key = ";...
Title = {} function Title:new() local titleOptions = { text = "Snakes!", x = 12.5, y = 2, width = 13, height = 3, fontSize = 3, align = "center" } return display.newText(titleOptions) end return Title
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" m = Map("system", translate("Router Password")) s = m:section(TypedSection, "_dummy", "") s.addremove = false s.anonymous = tru...
object_tangible_furniture_house_cleanup_xeno_rug = object_tangible_furniture_house_cleanup_shared_xeno_rug:new { } ObjectTemplates:addTemplate(object_tangible_furniture_house_cleanup_xeno_rug, "object/tangible/furniture/house_cleanup/xeno_rug.iff")
--[[ MOB SPAWN LIST mob(<mob_spawner_alias>, <mob_id>, <mob_count>, <spawner_limit>, <spawn_interval>, <spawner_range>, <map_id>, <x_pos>, <y_pos>, <z_pos>); --]] mob("", 101, 1, 2, 10, 9, 1, 5408.55, 5467.28, 12.58); mob("", 102, 1, 2, 10, 9, 1, 5408.55, 5467.28, 12.58); mob("", 102, 1, 2, 10, 9, 1, 5408.55, 5467.28...
--local abr = minetest.get_mapgen_setting('active_block_range') local node_lava = nil --local min=math.min --local max=math.max --local spawn_rate = 1 - 0.2 --local spawn_reduction = 0.75 local function lava_dmg(self,dmg) node_lava = node_lava or minetest.registered_nodes[minetest.registered_aliases.mapgen_lava_sou...
AuctionatorBuyingItemTooltipMixin = {} function AuctionatorBuyingItemTooltipMixin:OnLoad() Auctionator.EventBus:Register(self, { Auctionator.Buying.Events.Show }) end function AuctionatorBuyingItemTooltipMixin:OnEnter() GameTooltip:SetOwner(self, "ANCHOR_TOP") GameTooltip:SetHyperlink(self.itemLink) Gam...
--------------------------------------------- -- Geist Wall -- -- Description: Party memory erase. -- Type: Enfeebling -- Notes: Removes one detrimental magic effect for party members within area of effect. --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/glob...
----------------------------------- -- Area: Palborough Mines -- NM: Qu'Vho Deathhurler ----------------------------------- mixins = {require("scripts/mixins/job_special")} require("scripts/globals/hunts") ----------------------------------- function onMobDeath(mob, player, isKiller) tpz.hunts.checkHunt(mob, pla...
--[[ Copyright (c) 2009 Peter "Corsix" Cawley 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...
local skynet = require "skynet" function main() skynet.newservice("httplistener", skynet.getenv("LOGIN_WEB_PORT")) skynet.newservice("mongo") skynet.call("mongo", "lua", "start") skynet.newservice("account_mgr") skynet.call("account_mgr", "lua", "start") skynet.exit() end skynet.start(main)...
--GLOBAL.CHEATS_ENABLED = true --GLOBAL.require( 'debugkeys' ) Assets = { Asset("ANIM", "anim/ATTACK_level_meter.zip"), Asset("ANIM", "anim/BUILD_level_meter.zip"), Asset("ANIM", "anim/CHOP_level_meter.zip"), Asset("ANIM", "anim/DIG_level_meter.zip"), Asset("ANIM", "anim/EAT_level_meter.zip"), Asset("AN...
function Altor_OnCombat(Unit, Event) Unit:SendChatMessage(14, 0, "You dare tread in the Halls of Old?! I'll send you back to your wretched hovels!") Unit:RegisterEvent("ThunderClap", 10000, 0) Unit:RegisterEvent("ConstrictingChains", 20000, 0) Unit:RegisterEvent("CharredEarth", 15000, 0) end function ThunderCla...
--- === BrightnessControl === --- --- Enters a transient mode in which the left and right arrow keys decrease and increase the system's brightness, respectively. local Hotkey = require("hs.hotkey") local Eventtap = require("hs.eventtap") local obj = {} obj.__index = obj obj.name = "BrightnessControl" obj.version = "...
-------------------------------- -- @module LayerColor -- @extend Layer,BlendProtocol -- @parent_module cc ---@class cc.LayerColor:cc.Layer,cc.BlendProtocol local LayerColor = {} cc.LayerColor = LayerColor -------------------------------- --- Change width and height in Points. --- param w The width of layer. --- pa...
FAdmin.StartHooks["Chatmute"] = function() FAdmin.Access.AddPrivilege("Chatmute", 2) FAdmin.Commands.AddCommand("Chatmute", nil, "<Player>") FAdmin.Commands.AddCommand("UnChatmute", nil, "<Player>") FAdmin.ScoreBoard.Player:AddActionButton(function(ply) if ply:FAdmin_GetGlobal("FAdmin_chatmuted") then return "Un...
local wv_util = {} local debug_checks = working_villages.setting_enabled("debug_checks",true) function wv_util.get_euclidean_neighbors() local base = vector.new() local neigh = {} for _,v in pairs({"x","y","z"}) do local pos, neg = vector.new(base),vector.new(base) pos[v] = 1 neg[v] = -1 neigh["...
---@class AceDB-3.0 local AceDB = {} ---@class AceDBObject-3.0 ---@field profile table Contains the active profile ---@field profiles table Contains all profiles ---@field keys table ---@field sv table ---@field defaults table Cache of defaults ---@field parent table local DBObjectLib = {} ---@param defaults table A ...
--[[ luws.lua - Luup WebSocket implemented (for Vera Luup and openLuup systems) Copyright 2020 Patrick H. Rigney, All Rights Reserved. http://www.toggledbits.com/ Works best with SockProxy installed. Ref: RFC6455 NOTA BENE: 64-bit payload length not supported. See CHANGELOG.md for release notes at https://githu...
local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, 10000) setConditionParam(condition, CONDITION_P...
require('luacov') local testcase = require('testcase') local status = require('reflex.status') function testcase.status() -- test that field names and values are correct for k, v in pairs(status) do local code if type(k) == 'string' then -- name/code pairs assert.match(...
create_actor([[pl;3;post_drawable_1,spr,spr_obj,mov,x_bounded,tcol,popper,col,confined,y_bounded| x:@1; y:@2; xf:@3; ix:.85; iy:.85; touching_ground:no; jump_speed:.75; wall_jump_xspeed:.75; wall_jump_yspeed:.5; sind:1; iyy:-1; i:@4; u:@5; tile_hit:@6; destroyed:@8; d:@9; ...
-- _ _ -- _ __ ___ (_)_ __ | | __ -- | '_ ` _ \| | '_ \| |/ / -- | | | | | | | | | | < -- |_| |_| |_|_|_| |_|_|\_\ -- -- SPDX-License-Identifier: MIT -- -- -- imports local M = require("mink")(...) local lunajson = require("lunajson") local inspect = require("inspect") -- get data local m_data = M...
scrollingtext = class("scrollingtext") function scrollingtext:init(s, x, y) self.x = x-xscroll self.y = y-yscroll self.s = s self.timer = 0 end function scrollingtext:update(dt) self.timer = self.timer + dt if self.timer > scrollingscoretime then return true end return false end function scrollingtext:dr...
require("test/bustedhelper_game") local speaker_component = require("dialogue/speaker_component") local animated_sprite = require("engine/render/animated_sprite") local character_info = require("content/character_info") local visual_data = require("resources/visual_data") local character = require("story/character") ...
local nvim = require 'neovim' local sys = require 'sys' local is_file = require('utils.files').is_file local realpath = require('utils.files').realpath local executable = require('utils.files').executable local plugins = require('neovim').plugins local M = { pyignores = { -- 'E121', -- -- 'E123',...
-- @Author: Webster -- @Date: 2016-01-20 09:31:57 -- @Last Modified by: WilliamChan -- @Last Modified time: 2018-01-02 00:19:43 local _L = JH.LoadLangPack local GKP_LOOT_ANCHOR = { s = "CENTER", r = "CENTER", x = 0, y = 0 } local GKP_LOOT_INIFILE = JH.GetAddonInfo().szRootPath .. "JH_GKP/ui/GKP_Loot.ini" local GK...
local tonumber = tonumber local random = require "resty.random".bytes local var = ngx.var local defaults = { length = tonumber(var.session_random_length, 10) or 16 } return function(session) local config = session.random or defaults local length = tonumber(config.length, 10) or defaults.length ...
return { map_id = 10008, id = 1012500, stages = { { stageIndex = 1, failCondition = 1, timeCount = 180, passCondition = 1, backGroundStageID = 1, totalArea = { -80, 20, 90, 70 }, playerArea = { -80, 20, 45, 68 }, enemyArea = {}, mainUnitPosition = { ...
-- Taiidan Number_Properties_Priority = 1.0 Number_Properties = { cfg_race_is_playable = 1.0, cfg_race_index_sort = 6.0, cfg_race_select_weight = 1.0, cfg_race_is_random = 0.0, cfg_build_by_ships = 1.0, --CPU Build persona_demand_scale_fighters = 7, persona_demand_scale_corvettes = 5, persona_demand_scale...
object_tangible_holiday_love_day_rewards_11_love_day_prop_2011_flowers_s01_r = object_tangible_holiday_love_day_rewards_11_shared_love_day_prop_2011_flowers_s01_r:new { } ObjectTemplates:addTemplate(object_tangible_holiday_love_day_rewards_11_love_day_prop_2011_flowers_s01_r, "object/tangible/holiday/love_day/rewards...
local M = {} local ERROR = vim.lsp.protocol.DiagnosticSeverity.Error local pattern = 'Error:%s+([%a+_?]+)%s+%(line:%s+(%d+),%s+col:%s+(%d+)%):%s+(.*)$' local diagnostic_skeleton = { source = 'norminette', severity = ERROR } M.parser = function(output) local result = vim.fn.split(output, "\n") local diagnostics = {}...
local wibox = require("wibox") local awful = require("awful") local naughty = require("naughty") local watch = require("awful.widget.watch") local path_to_icons = "/usr/share/icons/Arc/actions/22/" email_widget = wibox.widget.textbox() email_widget:set_font('Play 9') email_icon = wibox.widget.imagebox() email_icon:s...
-- Advanced Vehicles by Andrey01 adv_vehicles = {} global_nodenames_list = {} -- Creates a list with all registered nodes. local i = 0 for node_name, def in pairs(minetest.registered_nodes) do i = i+1 global_nodenames_list[i] = node_name end -- DEPRECATED Rounds 'num' to the tenth and return the rounded number. lo...
local L = LibStub("AceLocale-3.0"):NewLocale("StableSnapshot", "esMX") if not L then return end --@localization(locale="esMX", format="lua_additive_table", handle-unlocalized="english", handle-subnamespaces="concat")@
local Long = require("metaint") local MillerRabinTest = require("RSA/Math/MillerRabinTest") local RandomNum = require("RSA/Math/RandomNum") local function mulNum(op1,op2) -- костыль // применяем правила умножения для обработки целых чисел поверх натуральных local inv1 = op1.inv local inv2 = op2.inv local res = op1*o...
local oop = require("oop") local stringutils = require("stringutils") local libGUI = require("libGUI") local colors = require("libGUI/colors") local frame_base = require("libGUI/frame") local reactorState = require("brgc/reactor_state") local regulationState = require("brgc/regulation_state") local reactor_load_...
----------------------------------- -- Area: The Shrine of Ru'Avitau -- NPC: ??? (Spawn Olla Pequena) -- !pos 851 0.1 92 178 ----------------------------------- local ID = require("scripts/zones/The_Shrine_of_RuAvitau/IDs") require("scripts/globals/status") require("scripts/globals/npc_util") -------------------------...
do local _ = { ['map-settings'] = { max_failed_behavior_count = 3, enemy_evolution = {time_factor = 4e-06, destroy_factor = 0.002, pollution_factor = 9e-07, enabled = true}, pollution = { pollution_restored_per_tree_damage = 10, expected_ma...
return function(c, s, cs) -- 'glepnir/lspsaga.nvim' return { -- {'LspSagaDiagnosticBorder', c.nord12}, -- {'LspSagaDiagnosticHeader', c.nord12, c.none, s.bold}, -- {'LspSagaDiagnosticTruncateLine', c.nord12}, -- {'LspDiagnosticsFloatingWarn', c.nord12}, -- {'LspDiagnostic...
require "util" require "config" require "stdlib.area.tile" require "stdlib.entity.entity" require "stdlib.event.event" require "stdlib.time" local list_initialised = false local entity_list = {} local function count_fluids( entity ) local _fluids = 0 if entity.fluidbox and #entity.fluidbox > 0 then for _, _f...
vim.cmd 'colorscheme solarized'
-- Touch -- Stephen Leitnick -- March 14, 2021 local UserInputService = game:GetService("UserInputService") local Janitor = require(script.Parent.Parent.Janitor) local Signal = require(script.Parent.Parent.Signal) --[=[ @class Touch @client The Touch class is part of the Input package. ```lua local Touch = req...
local reportListScroll, mainSection local activeReport local function showReportInfo(data) activeReport = data.id mainSection:Clear() surface.SetFont("adminme_btn_small") local tW, tH = surface.GetTextSize("X") local headerPanel = vgui.Create("am.HeaderPanel", mainSection) headerPanel:SetSize(mainSection:GetW...
function read_bin_file(path) local file, errorMessage = io.open(path, "rb") if not file then error("Could not read the file:" .. errorMessage .. "\n") end local content = file:read "*all" file:close() return content end local Boundary = "----WebKitFormBoundaryePkpFF7tjBAqx29L" local B...
--############################################################################# --# Corona HTML5 Base64 Plugin --# (c)2018 C. Byerley (develephant) --############################################################################# local lib local platform = system.getInfo("platform") if platform == 'html5' then lib = ...
local _, class = UnitClass("PLAYER") local armormult local function round(arg1, decplaces) if (decplaces == nil) then decplaces = 0 end if arg1 == nil then arg1 = 0 end return string.format ("%."..decplaces.."f", arg1) end local function findpattern(text, pattern, start) if (text and pattern and (string...
ys = ys or {} slot2 = ys.Battle.BattleConfig slot3 = ys.Battle.BattleFormulas slot4 = ys.Battle.BattleConst.WeaponSuppressType slot5 = ys.Battle.BattleConst.WeaponSearchType slot6 = ys.Battle.BattleDataFunction slot7 = ys.Battle.BattleAttr slot8 = class("BattleWeaponUnit") ys.Battle.BattleWeaponUnit = slot8 slot8.__nam...
return { ['&lsquo;'] = "‘", ['&rsquo;'] = "’", ['&ldquo;'] = "“", ['&rdquo;'] = "”", ['&quot;'] = "\"", ['&#039;'] = "'", ['&mdash;'] = "—", ['&eacute;'] = "é", }
dofile("common.inc"); local distance_scale = 0.50; -- only scans pixels within a distance of this percentage from the center of the screen function getCenterPos() xyWindowSize = srGetWindowSize(); local ret = {}; ret[0] = xyWindowSize[0] / 2; ret[1] = xyWindowSize[1] / 2; return ret; end function isWithinRan...
local xresources = require("beautiful.xresources") local dpi = xresources.apply_dpi theme = {} theme.wallpaper = "~/.config/awesome/wallpapers/pas.jpg" -- blue | gray | green | purple | red | yellow | zen theme.c...
local Data = require("game.Data") print('----- init -----') do local spell = Data.get('core.ability', 'core.healing') print(spell) local spells = Data.get_table('core.ability') print(spells) end print('----------') -- do -- local spell = data.raw['core.ability']['core.healing'] -- print(spell) -- ...
local ffi = require("ffi") local requireffi = require("requireffi.requireffi") ffi.cdef([[ void lock( void ); bool try_lock( void ); void unlock( void ); unsigned int version( void ); ]]) local BM, loadedLibraryPath = requireffi("BM.BadMutex.BadMutex") local BMVersion = 0x000100 local libVer = BM.version() if libVer...
--Thanks To HessaFTW And His Slave BlueHunter --Hessa Is the one that made this compalation --BlueHunter was the test subject --Have eny scripts that arent in here send them to HessaFTW and he will test and put in for next update bill = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head) bill.Size = ...
-------------------------------------------------------------------------------- -- client -------------------------------------------------------------------------------- local slen = string.len local channel = tengine.channel local INFO_MSG = tengine.INFO_MSG local DEBUG_MSG = tengine.DEBUG_MSG local ERROR_MSG = te...
--[[ LipNet: End-to-End Sentence-level Lipreading. arXiv preprint arXiv:1611.01599 (2016). Copyright (C) 2017 Yannis M. Assael, Brendan Shillingford, Shimon Whiteson, Nando de Freitas Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You ...
local Object = require "object" local Vector2 = Object:extend() function Vector2:__new(x, y) self.x = x or 0 self.y = y or 0 end function Vector2:copy() return Vector2(self.x, self.y) end function Vector2.__add(a, b) return Vector2(a.x + b.x, a.y + b.y) end function Vector2.__sub(a, b) return Vector2(a.x...
-- Stats tracking FCStats = {} function FCStats.Inc( name ) local gcid = FCDevice.GetGameCenterID() if gcid == nil then gcid = "local" end val = FCPersistentData.GetNumber( "stats." .. gcid .. "." .. name ) if val then val = val + 1 else val = 1 end FCPersistentData.SetNumber( "stats." .. gcid .. "."...
require('actors/Projectile.lua') local image = passion.graphics.getImage('images/image.png') local quad1 = passion.graphics.newQuad(image, 0,32, 16,16 ) local quad2 = passion.graphics.newQuad(image, 16,32, 16,16 ) local quad3 = passion.graphics.newQuad(image, 32,32, 16,16 ) PlasmaProjectile = class('PlasmaProjectile...
local IsAnimated = false Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(0) end end) --------------------- client parapluie bleu RegisterNetEvent('esx_extraitems:umbrellablue') AddEventHandler('esx_extraitems:umbrellablue', func...
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)...
local spec_helper = require "spec.spec_helpers" local utils = require "kong.tools.utils" local http_client = require "kong.tools.http_client" local cjson = require "cjson" local rex = require "rex_pcre" -- Load everything we need from the spec_helper local env = spec_helper.get_env() -- test environment local dao_fact...
-------------------- -- Sassilization -- By Sassafrass / Spacetech / LuaPineapple -------------------- ENT.Type = "anim" ENT.Base = "base_anim" ENT.Attackable = true ENT.Building = true ENT.Refundable = true ENT.AutomaticFrameAdvance = true function ValidBuilding( bldg ) return bldg and bldg:IsValid(...
-- logic: first_run, setup module and _G {{{ local first_run = not _G.bfredl local bfredl = _G.bfredl or {} if not first_run then require'plenary.reload'.reload_module'bfredl.' end do local status, err = pcall(vim.cmd, [[ runtime! autoload/bfredl.vim ]]) if not status then vim.api.nvim_err_writeln(err) end ...
--Define Axinite_Pickaxe crafting recipe minetest.register_craft({ output = "axinitium:axinite_pickaxe", recipe = { {"axinitium:axinite_block", "axinitium:axinite_block", "axinitium:axinite_block", ""}, {"", "default:stick", "", ""}, {"", "default:stick", "", ""} } }) --Define Axinite Axe crafting recipe mine...