content
stringlengths
5
1.05M
local vim = vim local validate = vim.validate local uv = vim.loop local M = {} -- Some path utilities M.path = (function() local function exists(filename) local stat = uv.fs_stat(filename) return stat and stat.type or false end local function is_dir(filename) return exists(filename) == 'directory' ...
-- some local definitions crypto = require "crypto" local strf = string.format local byte, char = string.byte, string.char local spack, sunpack = string.pack, string.unpack local app, concat = table.insert, table.concat local function stohex(s, ln, sep) -- stohex(s [, ln [, sep]]) -- return the hex encoding of str...
mathcore.set_use_cuda_default( util.is_cuda_available() ) april_print_script_header(arg) local common = require "scripts.common" local adaboost = common.adaboost local bootstrap = common.bootstrap local create_ds = common.create_ds local gradient_boosting = common.gradient_boosting local predict = common.predic...
return { { Rank = 0, Description = "Your Servare does not have any bonus attributes.", GoldPrice = 100, SucceedChance = 1, --0 - 1 SetbackChance = 0, --0 - 1 SetbackLevels = 0, --amount of levels to setback by ItemsToGoNext = { --items needed to get to next rank {name, amount} {"Plastic Sheet", 5}, ...
local path = GetParentPath(...) return require(path.."replaceRepair")
--[[ switch_processor: 通过选择自定义的候选项来切换开关(以简繁切换和下一方案为例) `Switcher` 适用于: 1. 不方便或不倾向用 key_binder 处理的情况 2. 自定义开关的读取(本例未体现) 须将 lua_processor@switch_processor 放在 engine/processors 里,并位于默认 selector 之前 为更好的使用本例,可以添加置顶的自定义词组,如 〔简〕 simp 〔繁〕 simp 〔下一方案〕 next --]] -- 帮助函数,返回被选中的候选的索引 local function select_index(key, env) loca...
local API_NPC = require(script:GetCustomProperty("API_NPC")) local API_RE = require(script:GetCustomProperty("APIReliableEvents")) local EFFECT_TEMPLATE = script:GetCustomProperty("EffectTemplate") local FIRE_PATCH_TEMPLATE = script:GetCustomProperty("FirePatchTemplate") local MAX_START_OFFSET = 1000.0 local F...
function on_activate(parent, item) item:activate(parent) game:start_conversation("history_of_the_aegis", parent) end
local randomchoice = require "randomchoice" -- NOTHING = 0x00 local STYLE_DEFS = { ELEC_GUTS = 0x09, -- mod 4 == 1 HEAT_GUTS = 0x0A, -- mod 4 == 2 AQUA_GUTS = 0x0B, -- mod 4 == 3 WOOD_GUTS = 0x0C, -- mod 4 == 0 ELEC_CUST = 0x11, HEAT_CUST = 0x12, AQUA_CUST = 0x13, WOOD_CUS...
local game_scene = {} game_scene.name = 'game' function game_scene:load() -- Object loading self.board_img = still_image.new('board.png', measure.board_x, measure.board_y) self.pieces = require("scripts.game.game_pieces") self.board_floor = require("scripts.game.board_floor") self.board = require(...
--[[ UTL.ClearSetting(name, value) Clears setttings from settings file Usage: UTL.ClearSetting("last_level"); ]] function UTL.ClearSetting(name) local setting = UTL.LoadTable("settings.json"); if (setting == nil) then setting = {}; end setting[name] = nil; UTL.SaveTable(s...
--[[ Created by Grid2 original authors, modified by Michael --]] local Grid2Layout = Grid2:NewModule("Grid2Layout") local Grid2 = Grid2 local pairs, ipairs, next, strmatch, strsplit = pairs, ipairs, next, strmatch, strsplit --{{{ Frame config function for secure headers local function GridHeader_InitialConfigFunctio...
slot0 = requireLuaFromModule(slot1) slot3 = "dntgtest.fishConfig.Dntgtest_BulletSet" requireLuaFromModule("dntgtest.model.DntgtestModel+Cannon") slot4 = {} slot1 = class("dntgtest.model.DntgtestModel+Cannon", "Player") slot1.ctor = function (slot0, slot1) slot0.m_Wastage = 0 slot0.m_nCannonSetType = 0 slot0.m_nCa...
-- ======= Copyright (c) 2003-2012, Unknown Worlds Entertainment, Inc. All rights reserved. ======= -- -- lua\MarineCommander.lua -- -- Created by: Charlie Cleveland (charlie@unknownworlds.com) -- -- Handled Commander movement and actions. -- -- ========= For more information, visit us at http://www.unknownworlds....
--[[ -- -- This module defines a class of colors. It maps names in the -- LNVL.Color table to tables of RGB values suitable as arguments to -- love.graphics.setColor() and similar functions. We generate the -- list of colors dynamically from the 'rgb.txt' file from X11. The -- license at -- -- http://www.xfree86...
--[[ -- added by wsh @ 2017-12-01 -- UILogin控制层 --]] local UILoginCtrl = BaseClass("UILoginCtrl", UIBaseCtrl) local MsgIDDefine = require "Net.Config.MsgIDDefine" local json = require("rapidjson") local util = require("xlua.util") local yield_return = (require "cs_coroutine").yield_return local MsgIDMap = require("Net...
local table = require("__flib__.table") local constants = {} -- dictionary category -> affects research -- anything with `0` as the value will be ignored for research constants.disabled_recipe_categories = { -- creative mod ["creative-mod_free-fluids"] = 1, ["creative-mod_energy-absorption"] = 1, -- editor ex...
local function goto_cell(cell, ignore_scale) cell.row.wm:drop_popup() cell.row:focus() cell.row:select_cell(cell) if ignore_scale and not cell.scale_ignore then cell:ignore_scale() end cell.row.wm:pan_fit(cell, true) end return function(types) return { handler = goto_cell, args = {types.NIL, types.CELL,...
local web_driver = require("web-driver") local driver = web_driver.Firefox.new() local URL = "https://clear-code.gitlab.io/lua-web-driver/sample/" driver:start_session(function(session) session:navigate_to(URL) local element_set = session:css_select('#p2') local text = element_set:text() print(text) end)
--[[ Autoinstall plugin Licensed by Creative Commons Attribution-ShareAlike 4.0 http://creativecommons.org/licenses/by-sa/4.0/ Dev: TheHeroeGAC Designed By Gdljjrod & DevDavisNunez. Collaborators: BaltazaR4 & Wzjk. ]] screenshots = "ux0:data/AUTOPLUGIN2/screenshots/" files.mkdir(screenshots) function plugin...
-- -- Generated from idempotent.lt -- local locker = require("losty.lock") local json = require("cjson.safe") local crc32 = ngx.crc32_short local intmax = 2147483647 return function(lock_name, cache_name, key) local cache = ngx.shared[cache_name] if not cache then error("missing lua_shared_dict " .. cac...
-- simple /info script by steven dodge productions -- consider adding me on discord Michael Production#0301 for my future scripts -- if a person do /info in chat it will show them info about your server -- you can clear some message if you dont want them -- if you have any suggestions for commands add me on discor...
-- See LICENSE for terms -- local some globals local table = table local IsGameRuleActive = IsGameRuleActive local OverrideDisasterDescriptor = OverrideDisasterDescriptor local GetDisasterWarningTime = GetDisasterWarningTime local GameTime = GameTime local Sleep = Sleep local MeteorsDisaster = MeteorsDisaster local Ge...
print('called from server')
-------------------------------- -- @module SkeletonNode -- @extend BoneNode -- @parent_module ccs -------------------------------- -- get bonenode in skeleton node by bone name -- @function [parent=#SkeletonNode] getBoneNode -- @param self -- @param #string boneName -- @return BoneNode#BoneNode ret (return value: c...
------------(BannedList)------------------------------------------------------------------------------------------------------------- local Settings={["Un_Removable"]= "On"} local function mFloor(x) return x - x % 1 end local Un_Removable = tostring(Settings["Un_Removable"]):lower() == "on" if Un_Removable then Game.W...
local Application = dofile(_G.spoonPath.."/application.lua") local actions = { newDocument = Application.createMenuItemEvent("New", { focusAfter = true }), saveDocument = Application.createMenuItemEvent("Save", { focusAfter = true }), openDocument = Application.createMenuItemEvent("Open...", { focusAfter = ...
push([[ ----------------------------------------------------------- --- /client/gui/checkbox_class.lua --- --- Part of openFrame project --- --- Written by 50p. Additional changes by Orange. --- --- Lately edited in revision number 13 by Orange --- --- Li...
--[[ LuCI - Lua Configuration Interface Copyright 2019 lisaac <https://github.com/lisaac/luci-app-dockerman> ]]-- local docker = require "luci.model.docker" local m, s, o local dk = docker.new() m = SimpleForm("docker", translate("Docker")) m.redirect = luci.dispatcher.build_url("admin", "docker", "networks") s = ...
local K, C, L = unpack(select(2, ...)) -- Lua API local _G = _G local print = print local table_wipe = table.wipe -- GLOBALS: BigWigs, LibStub, BigWigs3DB function K.LoadBigWigsProfile() if BigWigs3DB then table_wipe(BigWigs3DB) end BigWigs3DB = { ["namespaces"] = { ["BigWigs_Plugins_Victory"] = {}, ["...
local folderOfThisFile = (...):match("(.-)[^%/%.]+$") local Base = require(folderOfThisFile .. 'Base') -- スプラッシュスクリーン local Splash = Base:newState 'splash' -- クラス local o_ten_one = require 'o-ten-one' -- エイリアス local lg = love.graphics -- 次のステートへ function Splash:nextState(...) self:gotoState('title', ...) end ...
LinkLuaModifier("modifier_dark_terminator_terminate_target", "heroes/dark_terminator/terminate.lua", LUA_MODIFIER_MOTION_NONE) dark_terminator_terminate = class({}) function dark_terminator_terminate:GetCastPoint() local delay = self.BaseClass.GetCastPoint(self) if IsServer() then local talent = self:GetCaster():...
lure.rom.HTMLBodyRenderObj = {} -- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: function lure.rom.HTMLBodyRenderObj.new() local self = lure.rom.nodeObj.new(1) --=================================================================== -- PROPERTIES ...
local getlook = TalkAction("/getlook") function getlook.onSay(player, words, param) if player:getGroup():getAccess() then local lookt = Creature(player):getOutfit() player:sendTextMessage(MESSAGE_LOOK, "<look type=\"".. lookt.lookType .."\" head=\"".. lookt.lookHead .."\" body=\"".. lookt.lookBody .."\" legs=\""...
if SubtitlesCommand then -- 優先度設定( 優先度区分ID, 開始時優先度, 再生中優先度 ) SubtitlesCommand:SetDefaultSubPriority( 0, 255, 255 ) -- Unknown SubtitlesCommand:SetDefaultSubPriority( 1, 0, 0 ) -- Unknown(優先度を気にしない) SubtitlesCommand:SetDefaultSubPriority( 2, 0, 0 ) -- カットシーン SubtitlesCommand:SetDefaultSubPriority( 6, 15, 50 ) --...
local __Scripts = LibStub:GetLibrary("ovale/Scripts") local OvaleScripts = __Scripts.OvaleScripts do local name = "icyveins_priest_discipline" local desc = "[7.1.5] Icy-Veins: Priest Discipline" local code = [[ Include(ovale_common) Include(ovale_trinkets_mop) Include(ovale_trinkets_wod) Include(ovale_pri...
local map = vim.api.nvim_set_keymap local opts = { noremap = true, silent = true } local opts_echo = { noremap = true } -- center search results map("n", "n", "nzz", opts) map("n", "N", "Nzz", opts) -- Copy to clipboard map("n", "<leader>y", "+y", opts) map("n", "<leader>Y", "+y$", opts) -- Paste from clipboard map(...
require 'middleclass' context('class()', function() context('when given no params', function() test('it throws an error', function() assert_error(class) end) end) context('when given a name', function() local TheClass before(function() TheClass = class('TheClass') end) tes...
local enemies = {} function enemies.randomEnemy(level) --[[ Generate a random enemy. Parameters: > level (int) : player level Returns: > enemy (table) : a random enemy --]] local names = {"Minotaur", "Olog-Hai", "Chuck Norris", "The Blog", "Sepiroth", "The Balrog"} local enemy = {} enem...
local skynet = require "skynet" local cluster = require "skynet.cluster" local protobuf = require "protobuf" local game_type_list local game_kind_list local game_room_list = {} local CMD = {} local rpc = {} function CMD.start(typelist, kindlist) game_type_list = typelist game_kind_list = kindlist end functi...
--[[------------------------------------------------------ class test ---------- ... --]]------------------------------------------------------ require 'lubyk' local should = test.Suite('class') function should.autoload() assertType('function', class) end function should.createClass() assertPass(function...
local Point = class(); Point.x = 0; Point.y = 0; function Point:ctor(x,y) if x and y then self.x = x; self.y = y; end end function Point:__add(another) return Point.new(self.x + another.x, self.y + another.y); end function Point.static:__call(...) return self.new(...); end local Ano...
-- Copyright 2021 Sonu Kumar -- -- 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 -- -- https://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agr...
return { version = "1.5", luaversion = "5.1", tiledversion = "1.8.4", name = "city_alley", tilewidth = 40, tileheight = 40, spacing = 4, margin = 2, columns = 10, image = "../../../assets/sprites/tilesets/city_alley.png", imagewidth = 440, imageheight = 484, objectalignment = "unspecified", ...
C_VoiceChat = {} ---@param channelID number ---[Documentation](https://wow.gamepedia.com/API_C_VoiceChat.ActivateChannel) function C_VoiceChat.ActivateChannel(channelID) end ---@param listenToLocalUser boolean ---[Documentation](https://wow.gamepedia.com/API_C_VoiceChat.BeginLocalCapture) function C_VoiceChat.BeginLo...
--- libdas: DENG asset management library --- licence: Apache, see LICENCE file --- file: StreamReader.lua - StreamReader class test build configuration --- author: Karl-Mihkel Ott local AsciiStreamReader = {} function AsciiStreamReader.build() project "AsciiStreamReaderTest" kind "ConsoleApp" la...
local love = require("love") function love.keypressed(key) if key == "escape" then love.event.quit() end end function love.mousepressed(x, y, b, istouch, clicks) -- Double-tap the screen (when using a touch screen) to exit. if istouch and clicks == 2 then if love.window.showMessageBox("Exit No-Game Screen", "...
local make_set = require 'parse.char.utf8.make.set' return make_set { S = '^' .. '\u{3d5}\u{3f0}\u{3f1}\u{3f4}\u{3f5}' .. '\u{2016}\u{2040}\u{207d}\u{207e}\u{208d}\u{208e}\u{20e1}\u{20e5}\u{20e6}' .. '\u{2102}\u{2107}\u{2115}\u{2124}\u{2128}\u{2129}\u{212c}\u{212d}\u{2133}' .. '\u{2134}\u{21a1}\u{21a2}\u{21a4...
return { -- nvim-treesitter { 'nvim-treesitter/nvim-treesitter', config = function() require'nvim-treesitter.configs'.setup { -- one of "all", "maintained" (parsers with maintainers), or a list of languages ensure_installed = "maintained", -- Consistent syntax highlighting. ...
function NetherwingRay_OnEnterCombat(Unit,Event) Unit:RegisterEvent("NetherwingRay_DrainMana", 1000, 0) Unit:RegisterEvent("NetherwingRay_TailSting", 32000, 0) end function NetherwingRay_DrainMana(Unit,Event) if Unit:GetManaPct() == 92 then Unit:FullCastSpellOnTarget(17008,Unit:GetRandomPlayer(4)) end end functio...
local initiative = param.get("initiative", "table") local suggestions_selector = param.get("suggestions_selector", "table") suggestions_selector:add_order_by("proportional_order NULLS LAST, plus2_unfulfilled_count + plus1_unfulfilled_count DESC, id") local ui_filters = ui.filters if true or not show_filter then ui...
-- Race conditions in this files are possible. It is ok by biz logic. function ussender_add(user_id, sender_id) local user_id = box.unpack("i", user_id) local sender_id = box.unpack("l", sender_id) local selected = { box.select_limit(0, 0, 0, 1, user_id) } if #selected == 0 then box.insert(0, u...
local qconsts = require 'Q/UTILS/lua/q_consts' local ffi = require 'ffi' local lVector = require 'Q/RUNTIME/VCTR/lua/lVector' local Reducer = require 'Q/RUNTIME/lua/Reducer' local qc = require 'Q/UTILS/lua/q_core' local qtypes = require 'Q/OPERATORS/APPROX/FREQUENT/lua/qtypes' local spfn = require 'Q/OPERA...
MouseHold = { Position = vector(0,0), StartPosition = vector(0,0), Field_l = false, Field_r = false, Field_m = false, } KeyboardHolder = { _Listeners = {}, RegisterListener = function(o,key,callback) if not o._Listeners[key] then o._Listeners[key] = {} end ListInsert(o._Listeners[key],callback) end, ...
local core = require "sys.core" local np = require "sys.netpacket" local testaux = require "testaux" local P = require "print" local BUFF local function rawtostring(buff, sz) local str = core.tostring(buff, sz) np.drop(buff) return str end local function popdata() local fd, buff, sz = np.pop(BUFF) if not fd the...
#!/usr/bin/env lua --[[ Copyright (C) 2015 Real-Time Innovations, Inc. 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 ...
PlatformCheckpoint = {} function PlatformCheckpoint:new(checkpointId, checkpointX, checkpointY) local object = { id = checkpointId, x = checkpointX, y = checkpointY } setmetatable(object, { __index = PlatformCheckpoint }) return object end
-------------------------------- -- @module ScrollView -- @extend Layout -- @parent_module ccui ---@class ccui.ScrollView:ccui.Layout local ScrollView = {} ccui.ScrollView = ScrollView -------------------------------- --- Scroll inner container to top boundary of scrollview. --- param timeInSec Time in seconds. --- ...
local heros = { { Name = "剑士", Propernames = "无名氏", Ubertip = hcolor.grey("身穿盔甲的战士,持剑作战,攻防兼备。"), Art = "ReplaceableTextures\\CommandButtons\\BTNFootman.blp", file = "units\\human\\Footman\\Footman", unitSound = "Footman", movetp = "foot", moveHeight = ...
hook.Add('playerCanChangeTeam', 'BGN_LockChangeTeamIfPlayerWanted', function(ply) if not bgNPC.cfg.darkrp.disableChangeTeamByWanted then return end if bgNPC:GetModule('wanted'):HasWanted(ply) then return false, bgNPC.cfg.darkrp.disableChangeTeamByWantedText end end)
return Def.ActorFrame { Def.Quad { Name="CursorLeft"; InitCommand=cmd(zoomto,2,26;); } };
local dbg = rdebug() local textsV2 = {} local nearTextsV2 = {} local getPed = PlayerPedId local getCoords = GetEntityCoords --Only near Citizen.CreateThread(function() while true do Citizen.Wait(Config.CheckPlayerPosition) local ped = getPed() local coords = getCoords(ped) for i,s...
--encapulsation of the button list editor local luajava = _G["luajava"] local R_id = _G["R_id"] local R_layout = _G["R_layout"] local RelativeLayout = _G["RelativeLayout"] local RelativeLayoutParams = _G["RelativeLayoutParams"] local TranslateAnimation = _G["TranslateAnimation"] local R_drawable = _G["R_drawable"] loca...
object_tangible_item_beast_converted_angler_decoration = object_tangible_item_beast_shared_converted_angler_decoration:new { } ObjectTemplates:addTemplate(object_tangible_item_beast_converted_angler_decoration, "object/tangible/item/beast/converted_angler_decoration.iff")
--[[ Copyright 2017 YANG Huan (sy.yanghuan@gmail.com). 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 i...
data:extend({ -- Startup settings { name = "Powered_Entities_00_manual_mode", type = "bool-setting", setting_type = "startup", default_value = true }, { name = "Powered_Entities_01_minimum_wire_reach", type = "bool-setting", setting_type = "startup", default_value = false }, { name = "Powered_En...
-- test_console.lua local ffi = require("ffi"); local bit = require("bit"); local band = bit.band; local bor = bit.bor; local bxor = bit.bxor; local core_console1 = require("core_console_l1_1_0"); local core_console2 = require("core_console_l2_1_0"); local processenviron = require("core_processenvironment"); local co...
local val = { a = { A234 = "abc", B234 = "ABC" } } return val
ASTRO_DIR = path.getabsolute("..") if BUILD_DIR == nil then BUILD_DIR = path.join(ASTRO_DIR, ".build") solution "astro" end ASTRO_THIRD_PARTY_DIR = path.join(ASTRO_DIR, "lib") configurations { "Debug", "Release" } platforms { "x32", "x64", "Native" } language "C++" startproject ...
-- -------------------- -- TellMeWhen -- Originally by Nephthys of Hyjal <lieandswell@yahoo.com> -- Other contributions by: -- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol, -- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune -- Currently maintained by -- Cybeloras of Aerie ...
---@class ProjectileVariant @enum ProjectileVariant = {} --- --- 0 ProjectileVariant.PROJECTILE_NORMAL = 0 --- --- 1 ProjectileVariant.PROJECTILE_BONE = 1 --- --- 2 ProjectileVariant.PROJECTILE_FIRE = 2 --- --- 3 ProjectileVariant.PROJECTILE_PUKE = 3 --- --- 4 ProjectileVariant.PROJECTILE_TEAR = 4 --- --- 5 Projectile...
function(event, ...) if aura_env.tw ~= nil and event == "WA_TW_EVENT" then local subEvent = select(1, ...) local schoolId = tonumber(select(2, ...)) if schoolId == aura_env.tw.schoolId and subEvent == "WA_TW_NOTIFICATION_HIDE" then return true end end ...
----------------------------------------------------------------------------------------------- -- Client Lua Script for RuneMaster -- Copyright (c) Tyler T. Hardy (Potato Rays/perterter/daperterter). All rights reserved ----------------------------------------------------------------------------------------------- l...
local actor = require "luactor" -- Setup reactor--------------------------------------------------------------- local reactor_name = os.getenv("LUACTOR_REACTOR") or 'luaevent' print('The reactor you use is *'..reactor_name..'*.') local timeout = function () print ('Timer Actor start...') print ('Register 1s t...
local resolution = 2 function Drawing() local t = {} t.toDraw = "ERROR" t.pixels = Grid(Screen.width, Screen.height) --Previous position t.prevPos = vec2(0,0) local function addBetween(prevPos, newPos) local dist = Vector2.distance(prevPos, newPos)/resolution if dist == 0 then t.pixels:set(newPos.x,ne...
-- WireGuard <-> WireHub synchronization -- -- Configure WireGuard with latest WireHub metadata about peers. Set keys, -- endpoints, persistent keep-alive, ... -- -- Update the last time each peer was seen by WireGuard, to have a unified view -- for WireHub and WireGuard. local REFRESH_EVERY = wh.NAT_TIMEOUT / 2 loca...
ReloadGameState = State:new() function ReloadGameState:needToRun(game_context, bot_context) if game_context.battle.is_in_battle then -- all enemies must either be a card or alive for enemy_index = 0,2 do local enemy = game_context.battle.enemies[enemy_index] if enemy.exists and not enemy.is_card ...
return { aliceblue = {r = 0.94117647058824, g = 0.97254901960784, b = 1}, antiquewhite = {r = 0.98039215686275, g = 0.92156862745098, b = 0.84313725490196}, aqua = {r = 0, g = 1, b = 1}, aquamarine = {r = 0.49803921568627, g = 1, b = 0.83137254901961}, azure = {r = 0.94117647058824, g = 1, b = 1}, ...
dout("LOADING KEEPER UPGRADE INFO") rt_fighter = { } rt_corvette = { KPR_AIRWEAPONUPGRADE1, KPR_AIRWEAPONUPGRADE2, KPR_AIRWEAPONUPGRADE3, } rt_frigate = { KPR_FRIGATEWEAPONUPGRADE1, KPR_FRIGATEWEAPONUPGRADE2, KPR_FRIGATEWEAPONUPGRADE3, KPR_AIHEALTHUPGRADE1, KPR_AIHEALTHUPGRADE2, KPR_AIH...
local oop = require 'src/oop' local chip_artist = oop.class() function chip_artist:init () -- Chip graphics are fixed size at 256x256 -- this enables quads to be computed once only local w,h = 256,256 self.icon_quad = love.graphics.newQuad(0,0,16,16,w,h) self.art_quad = love.graphics.newQuad(0,16,64,72...
local event = require("__flib__.event") local gui = require("__flib__.gui") local migration = require("__flib__.migration") local cheat_mode = require("scripts.cheat-mode") local compatibility = require("scripts.compatibility") local constants = require("scripts.constants") local debug_world = require("scripts.debug-w...
workspace "cah_file" configurations { "Release", "Debug" } location "build" files { "src/*.*" } includedirs { "src" } project "cah_file" kind "ConsoleApp" language "C++" targetname "cah_file" targetdir "bin/%{cfg.buildcfg}" characterset ("MBCS") -- toolset ("v141_xp") links { "legacy_stdio_...
include('shared.lua') function ENT:Draw() self:DrawModel() end function ENT:DrawStatus2D() local pos = self:GetPos():ToScreen() pos.x = pos.x -100 --background surface.SetDrawColor(0, 0, 0, 200) surface.DrawRect(pos.x, pos.y, 200, 116 -40) --115 --[STATS]-- --title surface.SetDrawColor(0, 255, 0) surf...
local path = technic.modpath.."/machines" dofile(path.."/register/init.lua") -- Tiers dofile(path.."/LV/init.lua") dofile(path.."/MV/init.lua") dofile(path.."/HV/init.lua") dofile(path.."/switching_station.lua") dofile(path.."/supply_converter.lua") dofile(path.."/other/init.lua")
--[[ PLAYER SPAWN POINT LIST revive_point(<map_id>, <x_pos>, <y_pos>); start_point(<map_id>, <x_pos>, <y_pos>); respawn_point(<map_id>, <x_pos>, <y_pos>); --]] start_point(20, 5306.15, 5394.22); respawn_point(20, 5312.36, 5394.31);
local M = {} M.treesitter = { ensure_installed = { "lua", "go", "c", "cpp", "yaml", "json", "markdown", "dockerfile", }, highlight = { enable = true, use_languagetree = true, additional_vim_regex_highlighting = false, }, -- enable Indentation indent = { enable = true, }, -- enable Inc...
--DELIMITERS old: ,-;*= new: ¤×¸·¨ BLOCKDELIMITER = {"¤",","} LAYERDELIMITER = {"×","-"} CATEGORYDELIMITER = {"¸",";"} MULTIPLYDELIMITER = {"·","*"} EQUALSIGN = {"¨","="} --HUGO'S VARIABLES portalbouncethreshold = 256 --SETABLE VARS-- --almost all vars are in "blocks", "blocks per second" or just "secon...
--************************ --name : bdid_001.lua --ver : 0.1 --author : Ferron --date : 2004/09/21 --lang : en --desc : General Faction Information --npc : Hacknet Broadcast Daemon v0.1.1 --************************ --changelog: --2004/09/21(0.1): built from snows template --*********************...
return(function(e,...)local C="This file was obfuscated using PSU Obfuscator 4.0.A | https://www.psu.dev/ & discord.gg/psu";local h=e["bDHhX"];local p=e[((#{157;649;673;246;}+8238502))];local S=e[(360062171)];local T=e.ZQHnH58HYD;local f=e.I0339Fr;local r=e[((#{376;225;359;847;}+328424618))];local L=e[(340615532)];loca...
local Gui = require("api.Gui") local Input = require("api.Input") local I18N = require("api.I18N") local Save = require("api.Save") local Chara = require("api.Chara") local Log = require("api.Log") local Wish = {} --- Queries the player for a wish and grants it. function Wish.query_wish() Gui.mes_c("wish.what_do_y...
local byte = require 'parse.substitution.charset.byte' return byte + { ['\xa1'] = '\u{2018}'; -- left single quotation mark ['\xa2'] = '\u{2019}'; -- right single quotation mark ['\xa4'] = '\u{20ac}'; -- euro sign ['\xa5'] = '\u{20af}'; -- drachma sign ['\xaa'] = '\u{37a}'; -- greek ypogegrammeni ['\xae'] = req...
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua\CompMod\Classes\Alien\Babbler\shared.lua -- - Dragon Babbler.ModifyDamageTaken = nil
local nmap = require "nmap" local stdnse = require "stdnse" local string = require "string" local table = require "table" local target = require "target" local ipOps = require "ipOps" description = [[ Resolves hostnames and adds every address (IPv4 or IPv6, depending on Nmap mode) to Nmap's target list. This differs ...
ITEM.name = "9x19mm" ITEM.model = "models/Items/BoxSRounds.mdl" ITEM.ammo = "9x19MM" ITEM.ammoAmount = 150 ITEM.description = "This basic 9x19 caliber round with a jacketed bullet has good characteristics while being simple to produce. The round is popular due to the fact that international conventions prohibit the use...
--------------------------------- --- @file pipe.lua --- @brief Pipe ... --- @todo TODO docu --------------------------------- local mod = {} local memory = require "memory" local ffi = require "ffi" local serpent = require "Serpent" local dpdk = require "dpdk" local log = require "log" ffi.cdef [[ // dummy str...
local M = {} M.setup = function() local g = vim.g local packer_dir = require("utils.packer").packer_dir g.dashboard_default_executive = "telescope" g.dashboard_disable_at_vimenter = false g.dashboard_enable_session = false g.dashboard_disable_statusline = 1 -- Header g.dashboard_custom_...
local _2afile_2a = "fnl/snap/consumer/combine.fnl" local snap = require("snap") local tbl = snap.get("common.tbl") local function _1_(...) local producers = {...} local function _2_(request) for _, producer in ipairs(producers) do for results in snap.consume(producer, request) do coroutine.yield(r...
local module = {} local CollectionService = game:GetService("CollectionService") local network local function attackInteractionSoundPlayed(player, part, soundName) if not player then return end if not player.Character then return end if not player.Character.PrimaryPart then return end local distance = (part.Pos...
if not commands then error( "Cannot load command API on normal computer", 2 ) end native = commands.native or commands local function collapseArgs( errorDepth, bJSONIsNBT, arg1, ... ) if arg1 ~= nil then if type(arg1) == "boolean" or type(arg1) == "number" or type(arg1) == "string" then retur...
local pac_wear_friends_only = CreateClientConVar("pac_wear_friends_only", "0", true, false, 'Wear outfits only to friends') local pac_wear_reverse = CreateClientConVar("pac_wear_reverse", "0", true, false, 'Wear to NOBODY but to people from list (Blacklist -> Whitelist)') do -- to server local function assemblePlaye...