content
stringlengths
5
1.05M
L = LANG.GetLanguageTableReference("ja") -- GENERAL ROLE LANGUAGE STRINGS L[NECROMANCER.name] = "Necromancer" L[NECROMANCER.defaultTeam] = "Necromancer陣営" L["hilite_win_" .. NECROMANCER.defaultTeam] = "Necromancerの勝利" L["win_" .. NECROMANCER.defaultTeam] = "Necromancerの勝利だ!" L["info_popup_" .. NECROMANCER.name] = [[さあ...
-- version comment below is used for system.d spec file -- VERSION = '0.3.3' local box = require('box') local fio = require('fio') local errno = require('errno') -- lastsnapfilename will be returned in case of success and nil otherwise. local function lastsnapfilename() local lastsnapfn = "" local snap_dir = ...
-- Armor function hud.set_armor() end local shields = minetest.get_modpath("shields") ~= nil local armor_org_func = armor.update_armor local function get_armor_lvl(def) -- items/protection based display local lvl = def.level or 0 local max = 63 -- full diamond armor if shields then max = 84.14 -- full diamond a...
-- Induction Matrix, viewer, controller (IMVC) -- programme réalisé par redsarow -- nommer ce fichier autorun.lua pour un lancement automatique au démarage de l'ordi -- modification utilisateur local pasageVer = 90 local passageOrange = 20 local tempo = 0.5 -- (en second) temps de refresh local hasSignRedstone = true...
local skynet = require "skynet" local redis = require "redis" local logger = require "logger" require "skynet.manager" local mysql = require "mysql" local mysqlconf = {} local mysqlhandle = {} local function string_split(splitstr,splitchar) local split_table = {} while(true) do local pos = string.find(splitstr,sp...
--[[ Copyright 2008-2020 João Cardoso Sushi is distributed under the terms of the GNU General Public License (or the Lesser GPL). This file is part of Sushi List. Sushi is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundat...
-- Module that manages initialization of and events relating to the gui leaderboard instances local Manager = {} local Bindings = require("lib.Bindings") local Events = require("lib.Events") local GuiLeaderboard = require("scripts.GuiLeaderboard") local Names = require("scripts.GuiLeaderboard.Names") local gui_leader...
object_tangible_collection_col_tatooine_vistas_marker_06 = object_tangible_collection_shared_col_tatooine_vistas_marker_06:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_col_tatooine_vistas_marker_06, "object/tangible/collection/col_tatooine_vistas_marker_06.iff")
--[[ In this example, we use three captures, one for each sequence of digits. In a pattern, an item like '%n', where n is a single digit, matches only a copy of the n-th capture. As a typical use, suppose we want to find, inside a string, a substring enclosed between single or double quotes. We could try a pattern such...
io.stdout:setvbuf("no") local bit = require("bit") local utf8 = require("utf8") local tohex = bit.tohex local font = love.graphics.newFont("BFerdosi.ttf",128) local arabicText = "القرآن الكَريم" local varientsCount = {1,2,2,2,2, 4,2,4,2,4, 4,4,4,4,2, 2,2,2,4,4, 4,4,4,4,4,4, 4,4,4,4,4, 4,4,2,2,4} local varientPos = ...
--[[ Player Model Override : client init By 'Jai the Fox' 2021 ]] -- Functions -- Hook into InitPostEntity so we can send a network packet to the server to notify about a few things local function pmdlInitPostEntity() -- This variable starts off as false and is set to true if conditions below are met local mo...
local assets = { Asset("ANIM", "anim/gravestones.zip"), } local prefabs = { "ghost", "amulet", "redgem", "gears", "bluegem", "nightmarefuel", } for k= 1,NUM_TRINKETS do table.insert(prefabs, "trinket_"..tostring(k) ) end local function ReturnChildren(inst) for k,child in pairs(inst.components.childspawn...
PropCategories = {} Props = {} WeaponCategories = {} Weapons = {} local INCLUDE_CSGO_PROPS = true --- Adds a prop to the prop list. -- @param prop Table describing prop. local function addProp(prop) table.insert(Props, prop) end --- Adds a weapon to the weapon list. -- @param weapon Table describing ...
local class = require("heart.class") local heartMath = require("heart.math") local M = class.newClass() function M:init(engine, config) self.engine = assert(engine) self.physicsDomain = assert(self.engine.domains.physics) self.transformComponents = assert(self.engine.componentManagers.transform) end function M...
redirect = {} -- Prepares a redirect url, adding domain (target_server) if missing function redirect.prepare_url(page, location) local uri = nil local parsed = url.parse(location) if parsed.host then uri = location else uri = oimp_config.TARGET_SERVER uri = uri .. location uri = oimp.profile(ur...
local class = require 'spec.lib.middleclass' local Stateful = require 'stateful' describe("A Stateful class", function() local Enemy before_each(function() Enemy = class('Enemy'):include(Stateful) end) it("gets a new class attribute called 'states' when including the mixin", function() assert.equ...
require 'lmdb' require 'image' tds=require 'tds' ffi = require 'ffi' --list = {'bedroom'} list = {'church_outdoor'} -- list = {'bedroom', 'bridge', 'church_outdoor', 'classroom', 'conference_room', -- 'dining_room', 'kitchen', 'living_room', 'restaurant', 'tower'} root = os.getenv('DATA_ROOT') or os.getenv('...
local ct = require './classType' return function (nth, to, expected, value, level) expected = type(expected) ~= "table" and {expected} or expected local s for _, v in ipairs(expected) do if ct(value) == v then s = true; break end end if not s then nth = nth and ' #'..nth or '' return error(('bad argu...
--------------------------------------------------------------------------------------------------- -- User story: https://github.com/SmartDeviceLink/sdl_core/issues/1916 -- -- Description: -- Media app: system supports audio mixing and embedded navigation starts streaming (TTS session) -- Precondition: -- 1) "MixingAu...
-- Establish that all the basic features of ui2 work namespace "standard" local ui2 = require "ent.ui2" local TestUi = classNamed("TestUi", ui2.ScreenEnt) function TestUi:onLoad() ui2.routeMouse() -- Create some buttons that do different things local ents = { ui2.ButtonEnt{label="X", onButton = function(self) ...
local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities.textDocument.completion.completionItem.snippetSupport = true require'lspconfig'.html.setup{ capabilities = capabilities } require'lspconfig'.cssls.setup{ capabilities = capabilities } require'lspconfig'.tailwindcss.setup{} require('lspco...
local skynet = require "skynet" local udp_util = require("game/kcpudp/udp_util") --local cachedb_util = require("zj/cachedb_util") local funcT = {} local teamT = {} function funcT.createRoom(ackIngInfo1,ackIngInfo2) teamT[ackIngInfo1.teamType] = ackIngInfo1.arr teamT[ackIngInfo2.teamType] = ackIngInfo2.arr local ...
--[[-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------]]-- -- Extra Libraries used for examples --[[-------------------------------------------------------------------------------------------------...
-- -- instance_version.lua -- -- Example usage in any quest script: e.self:Say("Version is " .. instance_version.stillmoon_temple_tea_for_thy_master); -- -- Query used to generate list -- -- SELECT -- CONCAT( -- LOWER( -- REPLACE( -- REPLACE(REPLACE(long_name, " ", "_"), ":", ""), -- "'", --...
-- EdenLost Citizenship Mod. -- license: Apache 2.0 -- This mod implements the mod proposed in -- https://github.com/EdenLostMinetest/edenlost/issues/34 -- minetest.conf: -- citizenship.pos1 = x,y,z -- citizenship.pos2 = x,y,z -- citizenship.return_point = x,y,z -- citizenship.return_yaw_degrees = 180 -- ...
local uv = require "lluv" local counter = 0 local function on_write(cli, err) if err then cli:close() if err:name() ~= "EOF" then print("************************************") print("ERROR: ", err) print("************************************") end return end counter = counter...
help([==[ Description =========== Intel Math Kernel Library is a library of highly optimized, extensively threaded math routines for science, engineering, and financial applications that require maximum performance. Core math functions include BLAS, LAPACK, ScaLAPACK, Sparse Solvers, Fast Fourier Transforms, Vector...
local Packages = script.Parent.Parent.Parent.Parent.Parent local Roact = require(Packages.Roact) local Cryo = require(Packages.Cryo) local Scroller = require(Packages.UIBlox).Core.InfiniteScroller.Scroller ---- The things inside the scroller. local Thing = Roact.PureComponent:extend("Thing") function Thing:init() s...
local model = system.getInfo("model") local myData = require ("mydata") if ( string.sub( model, 1, 4 ) == "iPad" ) then application = { content = { width = 768, height = 1024, --width = 360, --height = 480, scale = "zoomEven", xAlign = "left", yAlign = "center", fps = 60, } } else a...
object_mobile_mustafarian = object_mobile_shared_mustafarian:new { } ObjectTemplates:addTemplate(object_mobile_mustafarian, "object/mobile/mustafarian.iff")
ESX = nil Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Citizen.Wait(0) end end) RegisterCommand("menu", function(source, args) TriggerServerEvent("fivemac:permission") SetDisplay(true) end) RegisterNetEvent("nopefuck")...
showNPCShop = function(player, npc) npc = npc:lower() if not npcsStores.shops[npc] then return alert_Error(player, 'error', 'nonexistentShop') end modernUI.new(player, 520, 300) :build() :showNPCShop(npcsStores.shops[npc]) end buildNpcsShopItems = function() for npc in next, npcsStores.shops do local newFormat...
local M = {} M.config = function() local status_ok, flt = pcall(require, "flutter-tools") if not status_ok then return end flt.setup { ui = { border = "rounded" }, debugger = { enabled = true, run_via_dap = true }, outline = { auto_open = false }, decorations = { statusline = { device...
local skillTypes = { "Attack", "Spell", "Projectile", "DualWield", "Buff", "Minion", "Hit", "Area", "Duration", "Shield", "ProjectileDamage", "ManaCostReserved", "ManaCostPercent", "SkillCanTrap", "SkillCanTotem", "SkillCanMine", "CauseElementalStatus", "CreateMinion", "Chaining", "Melee", "MeleeSi...
config = {} config.max_distance = 5 -- max distance the player can be from someone config.sound_vol = 0.6 -- perms based -- config.enable_perms = true config.ace_perm = "nat_zip" -- example below -- add_ace group.admin nat_zip allow # allow zip commands -- do not touch below -- function Closetplayer(...
local sourcenode = nil; local thresholdnode = nil; local indicatorwidget = nil; function onInit() -- initialize the base class super.onInit(); -- get the source node sourcenode = getDatabaseNode(); if sourcenode then -- get the threshold node thresholdnode = sourcenode.getChild("..threshold...
-- Read the weapon_real_base if you really want to know what each action does if (SERVER) then AddCSLuaFile("shared.lua") end if (CLIENT) then SWEP.PrintName = "HK UMP-45" SWEP.Slot = 2 SWEP.SlotPos = 1 SWEP.IconLetter = "q" killicon.AddFont("weapon_real_cs_ump_45", "CSKillIcons", SWEP.IconLetter, Col...
local View = {} local trialModule = require "module.trialModule" local battleCfg = require "config.battle" local skill = require "config.skill" local trialTowerConfig = require "config.trialTowerConfig" local ItemHelper = require "utils.ItemHelper"; local Time = require "module.Time" local EventManager = require 'utils...
-- normal for for i,v in ipairs(t) do -- iterate t -- print value print(v) -- printing -- printed for _, val in pairs({1, 2, 3}) do for bar, foo in pairs({1, 2, 3}) do end end end --- weird for for i, v in pairs({}) do print(foo) end
local http = require "resty.http" local plugin = { PRIORITY = 1000, VERSION = "0.1", } -- iterator da configuração local function iter(config_array) if type(config_array) ~= "table" then return noop end return function(config_array, i) i = i + 1 local iter_config = config_array[i] if iter_...
local fs = require "lemoon.fs" local class = require "lemoon.class" local filepath = require "lemoon.filepath" local lunajson = require "lunajson" local name = "github.com/cocos2d/cocos2d-x" local version = "cocos2d-x-3.10" print(package.path) local curl = class.n...
-- Configuration function love.conf(t) t.title = "MiniCurso Fecitel" -- The title of the window the game is in (string) t.version = "0.10.2" -- The LÖVE version this game was made for (string) t.window.width = 1375 -- we want our game to be long and thin. t.window.height = 765 t.window.vsync = true -...
---@class EquipSuit_Details 显示当前选中套装的详细信息 local EquipSuit_Details = DClass("EquipSuit_Details", BaseComponent) _G.EquipSuit_Details = EquipSuit_Details function EquipSuit_Details:ctor() self.messager = Messager.new(self) end function EquipSuit_Details:addListener() self.messager:addListener(Msg.EQUIP_SUIT_CHA...
require "toolbox" require "prospector" require "planner" require 'constructor' script.on_event({defines.events.on_player_selected_area}, function(event) if event.item == 'pump-selection-tool' then process_selected_area_with_this_mod(event, false) end end) script.on_event({defines.events.on_player_alt_...
--[[-- Example on how to use indicators with a TextUI buffer. This example shows how to define custom indicators and apply them for selected text. For the purpose of this example the `F6' key will be set to show the example buffer. Provided that TextUI is installed, you can copy this to your .textadept/init.lua, and p...
local mod = {} local function setContent(self, content) local img = self.scroller_:getChildAt(0) --设置img的宽高为指定图片宽高 local css = string.format("{content:%s;}", content) img:applyCSS(css) w, h = bones.getPixmapSize(content) css = string.format("{size:%dpx %dpx;}", w, h) img:apply...
if vim.fn.has("mac") == 1 then JAVA_LS_EXECUTABLE = 'java-mac-ls' elseif vim.fn.has("unix") == 1 then JAVA_LS_EXECUTABLE = 'java-linux-ls' else print("Java LS: Unsupported system") end local bundles = { vim.fn.glob(vim.fn.stdpath("data") .. "/dapinstall/java/java-debug/com.microsoft.java.debug.plugin/target/co...
if ( CLIENT ) then SWEP.DrawAmmo = true SWEP.DrawCrosshair = false SWEP.ViewModelFOV = 82 SWEP.ViewModelFlip = true SWEP.CSMuzzleFlashes = true // This is the font that's used to draw the death icons --surface.CreateFont( "csd", ScreenScale( 30 ), 500, true, true, "CSKillIcons" ) surface.Cre...
local K, C, L = unpack(select(2, ...)) local Module = K:NewModule("Tooltip", "AceTimer-3.0", "AceHook-3.0", "AceEvent-3.0") local ModuleSkins -- used to hold the skin module when we need it local _G = _G local ipairs = ipairs local math_floor = math.floor local select = select local string_find = string.find local str...
local CLK_PIN = 5 local DIO_PIN = 6 local TZ_OFFSET = 2*60*60 local display = require('tm1637') local sntp = require('sntp') local rtctime = require('rtctime') local networkEnabled = false local ticker = true local hour, minute = 12, 34 local timeServers = { '0.ua.pool.ntp.org', '1.ua.pool.ntp.org', '2.ua.pool.ntp....
-- vim: ts=4:sw=4:sts=4:expandtab local checks = require('checks') local log = require('log') local Const = require('metrics.const') local Registry = require('metrics.registry') local Counter = require('metrics.collectors.counter') local Gauge = require('metrics.collectors.gauge') local Histogram = require('metrics....
local modem = peripheral.find("modem") modem.open(3) while true do input = read() modem.transmit(1,3, input) if input == "exitbuck" then break end end modem.close(3)
--- -- @author wesen -- @copyright 2019 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local ScheduledGame = require "AC-LuaServer.Core.GameHandler.Game.ScheduledGame" --- -- Represents the game that will be played when a game changing vote passes. -- -- @type VotedGame -- local VotedGame = ScheduledGame:...
--[[ Brightness control ================== based on `xbacklight`! alternative ways to control brightness: sudo setpci -s 00:02.0 F4.B=80 xgamma -gamma .75 xrandr --output LVDS1 --brightness 0.9 echo X > /sys/class/backlight/intel_backlight/brightness xbacklight --]] local awful = require("awful...
local notify = require "nixfications" local c_print_chat = { } --chat lib c_print_chat.c_color_list = { "\x01", -- 1 -> Light Grey (Default Chat Color) "\x02", -- 2 -> Red "\x03", -- 3 -> Purple "\x04", -- 4 -> Lime "\x05", -- 5 -> Light Green "\x06", -- 6 -> Green "\x07", -- 7 -> Light Red "\x08...
local ModuleRepository = require('modutram.ModuleRepository') local t = require('modutram.types') describe('ModuleRepository', function () describe('isModutramModule', function () it ('checks weather a module belongs to modutram', function () assert.is_false(ModuleRepository.isModutramIte...
AuctionatorUndercutScanMixin = {} local ABORT_EVENTS = { "AUCTION_HOUSE_CLOSED" } local QUERY_EVENTS = { Auctionator.AH.Events.ScanResultsUpdate, Auctionator.AH.Events.ScanAborted, } local THROTTLE_EVENTS = { Auctionator.AH.Events.Ready, } function AuctionatorUndercutScanMixin:OnLoad() Auctionator.EventBu...
local allowCountdown = false function opponentNoteHit(id, direction, noteType, isSustainNote) cameraShake(game, 0.015, 0.2) characterPlayAnim('gf', 'scared', true) doTweenZoom('camerazoom','camGame',0.8,0.26,'quadInOut') setProperty('health', getProperty('health') - 1 * ((getProperty('health')/6))/2) end function good...
local PANEL = {} local MatBackground = surface.GetTextureID( "vgui/hand" ) local ow = 310 local oh = 270 local FingerPositions = { { 56 / ow, 230 / oh }, { 51 / ow, 180 / oh }, { 59 / ow, 130 / oh }, { 121 / ow, 114 / oh }, { 132 / ow, 75 / oh }, { 160 / ow, 34 / oh }, { 165 / ow, 126 / oh...
require 'paths' local drivers = {} function drivers.init(model, workers, opts) local state = {} state.gpuImgs = torch.CudaTensor(opts.batchSize, 3,opts.imsize,opts.imsize) state.gpuInstrs = torch.CudaTensor(opts.maxSeqlen, opts.batchSize, opts.stDim) state.gpuIngrs = torch.CudaTensor(opts.batchSize, opts.max...
Essentials = require "Essentials" function Initialize(Plugin) Plugin:SetName("Autobroadcaster") Plugin:SetVersion(1) return true end function MyOnTick(TimeDelta) Tick=true Tick=false TPS = Essentials.Tps(TimeDelta) end function MyOnPlayerCrouched(Player) while ~ Essentials.Timer(Tick,60,"TICKS") do end Pl...
-- lib/util.lua (SHARED) -- useful functions for both server and client -- prints a message into console formatted like "[BSU] bla bla bla" (color depends on realm) function BSU.Log(msg) MsgC(SERVER and Color(0, 100, 255) or Color(255, 100, 0), "[BSU] ", Color(255, 255, 255), msg .. "\n") end function BSU.ColorToHe...
local socket = require("socket") local Ot = require("minilib.otable") local Util={} function Util:tofile(file, ot) local h = assert(io.open(file, 'w')) for k, v in ot:opairs() do h:write(string.format('%s => %s\n', k, v)) end h:close() end function Util:fromfile(file) local h = assert(io.open(file, '...
ys = ys or {} slot1 = ys.Battle.BattleConst slot2 = ys.Battle.BattleConfig slot3 = ys.Battle.BattleDataFunction slot4 = class("BattleEnvironmentUnit") ys.Battle.BattleEnvironmentUnit = slot4 slot4.__name = "BattleEnvironmentUnit" slot4.Ctor = function (slot0, slot1, slot2) slot0.EventDispatcher.AttachEventDispatcher(...
--- Bounding box utilties. Prefer model:GetBoundingBox() in most cases. However, sometimes grouping isn't possible. -- @module BoundingBoxUtils local BoundingBoxUtils = {} function BoundingBoxUtils.getPartsBoundingBox(parts, relativeTo) return BoundingBoxUtils.getBoundingBox(parts, relativeTo) end -- https://devfor...
local Events = require "scripts/ToolKit/events" local Utilities = require "scripts/ToolKit/utilities" local CameraController = { Properties = { Debug = true, Player = EntityId(), Bounds = EntityId(), TerrainHeight = 32.0, } } function CameraController:OnActivate() Utilities:InitLogging(self, "CameraControl...
--[[ WX0kxol:;,, ,;:lodk0XW WNKkdc;, ;cokKNW WXOdc, ,;;;::::;;;, ,:oOXW WNOo: ;codkO0KXXXNNNNXXXK0Okdoc; ;oOXW WKxc ,oOXNW WNX0xc ...
function C_GM13B_GUI_Panel:Fill_About_Tab(About_Tab) -- Tabs local PropertySheet = vgui.Create("DPropertySheet", About_Tab) PropertySheet:Dock(FILL) -- Water mark local WtrmrkTB = { ["1"] = { ["Name"] = "ARC", ["Size"] = "65, 85", ["Image"] = "theendboss101/cgm13bgui/arc", ["Sound...
Config = {} Config.Locale = 'en' Config.RespawnTimer = 10000 -- time in milliseconds (10s by default) Config.RespawnPoint = {coords = vector3(-498.24, -335.85, 34.5), heading = 260.3} Config.KeepWeapons = true Config.RemoveCash = false Config.RemoveItems = false
-- scaffold geniefile for libjpeg libjpeg_script = path.getabsolute(path.getdirectory(_SCRIPT)) libjpeg_root = path.join(libjpeg_script, "libjpeg") libjpeg_includedirs = { path.join(libjpeg_script, "config"), libjpeg_root, } libjpeg_libdirs = {} libjpeg_links = {} libjpeg_defines = {} ---- return { _add_included...
local libfunctions = require("lib/libfunctions") local solid_fuel_factor = settings.startup['burner-power-progression-factor-solid'].value local fluid_fuel_factor = settings.startup['burner-power-progression-factor-fluid'].value -- don't increase vehicle fuels, because vehicle effectivity remain unchanged -- rocket-b...
local Rabbitcage = Class(function(self, inst) self.inst = inst self.onputrabbit = nil self.ondeadrabbit = nil self.hasrabbit = false end) function Rabbitcage:HasRabbit() return self.hasrabbit end function Rabbitcage:PutRabbit() self.inst:AddTag("hasrabbit") self.hasrabbit = true...
-- scaffolding entry point for µnit return dofile("µnit.lua")
--[[ This file is part of ClearTables @author Paul Norman <penorman@mac.com> @copyright 2016 Paul Norman, MIT license ]]-- require "common" function accept_barrier_line (tags) return tags["barrier"] == "fence" or tags["barrier"] == "wall" or tags["barrier"] == "hedge" or tags["ba...
NG.DEVELOPERS = { ['xXMADEXx'] = true } NG.IS_IN_DEVELOPMENT = false; local isClient = ( _G['triggerServerEvent'] ~= nil ); if ( isClient ) then function isDeveloper ( ) local acc = getElementData ( localPlayer, "AccountData:Username" ); return NG.IS_IN_DEVELOPMENT and NG.DEVELOPERS [ acc ] end else ...
module 'mock' -------------------------------------------------------------------- local _contextProviders = {} function getQuestContextProviders() return _contextProviders end function registerQuestContextProvider( provider, prepend ) if prepend ~= false then table.insert( _contextProviders, 1, provider ) else...
local mod = DBM:NewMod(2145, "DBM-Party-BfA", 6, 1001) local L = mod:GetLocalizedStrings() mod:SetRevision("2019050463032") mod:SetCreatureID(133392) mod:SetEncounterID(2127) mod:SetZone() mod:SetBossHPInfoToHighest() mod.noBossDeathKill = true mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_AURA_A...
----------------- -- Galaxian -- ----------------- -- Keith Davis -- -- (c) 2021 -- -- ZuniSoft -- ExplosionPieceSprite = class() function ExplosionPieceSprite:init(x, y, w, h, f) -- you can accept and set parameters here self.x = x self.y = y self.locRect = Rectangle(x, y, w, h) self.fa...
local questions = {} for i = 1, 20 do local category = {} category.category = "Category " .. tostring(i) category.questions = {} for j = 1, 4 do local question = {} question.text = category.category .. " question " .. tostring(j) question.answers = { "correct", "wrong1", "wrong2", "wrong3" }...
local ICONPATH = "__robotarmy__/graphics/icons/" data:extend( { { type = "recipe-category", name = "droids" }, { type = "item", name = "droid-smg", icon_size = 64, icon = ICONPATH .. "droid_smg_undep.png", flags = {}, order = "z[droid]", subgroup = "capsule", place_result...
slot0 = nil slot1 = class("objPoolMgr") slot1.getInstance = function (slot0) if slot0 == nil then slot0 = slot1.new() end return slot0 end slot1.initCacheList = function (slot0) slot0.tFishRenderPool = {} slot0.tBulletRenderPool = {} slot0.tNetRenderPool = {} slot0.oBingoNode = {} slot0.oFishGold = {} slo...
if SERVER then AddCSLuaFile() end ENT.Type = "anim" ENT.Base = "weapon_pickup"
local hv = require('helpful.vim') hv.setoption({ completeopt = 'menuone,noinsert,noselect' }) vim.api.nvim_exec([[autocmd! User GoyoEnter Limelight]], true) vim.api.nvim_exec([[autocmd! User GoyoLeave Limelight!]], true)
local echo = import "lib.lua" function run(id) print(echo("hello")) end
local validDrivebyWeapons = { [22]=true,[23]=true,[24]=true,[25]=true, [26]=true,[27]=true,[28]=true,[29]=true,[32]=true,[30]=true,[31]=true, [32]=true,[33]=true,[38]=true } function setDriverDrivebyAbility ( ... ) local newTable = {...} for key,weaponID in ipairs(newTable) do if not validDrivebyWeapons[w...
local LogLib = require"log" local Format = require "log.writer.format" local SysLog = require "log.logformat.syslog" local writer = require "log.writer.list".new( Format.new( -- explicit set logformat to console require "log.logformat.default".new(), require "log.writer.stdout".new() ), require...
require("utility\\animationList") require("utility\\animation") local RECT_FILL = "fill" local RECT_STROKE = "stroke" local RECT_FILL_STROKE = RECT_FILL .. RECT_STROKE local animationLibrary = AnimationList:new() local normalGaugeInnerColorAnimation = animationLibrary:create(0.01, 0, true) gfx._ImageAlpha = 1 gfx._Fi...
--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. ...
require("windowManager") require("spotify") require("reloadConfigOnChange") function launchOrFocus(app) return function() hs.application.launchOrFocus(app) end end hs.hotkey.bind({'ctrl', 'alt', 'cmd'}, 'S', launchOrFocus("Sketch")) hs.hotkey.bind({'ctrl', 'alt', 'cmd'}, 'A', launchOrFocus("Atom"))
local moon = require("moon") local conf = ... if conf and conf.receiver then local command = {} command.PING = function(sender,sessionid, ...) print(moon.name, "recv ", sender, "command", "PING") print(moon.name, "send to", sender, "command", "PONG") -- 把sessionid发送回去,发送方resume对应的协程 ...
MaterialClass = {} MaterialClass.__index = MaterialClass MaterialCount = 0; chinMaterial = {} materialStackCount = 0; prevmaterialStackCount = 0; folderPath = chinGetScriptPath() dofile(folderPath.."/chinMaterial_00_constrdestr.lua") dofile(folderPath.."/chinMaterial_01_functions.lua") --###########################...
-- 元表 --[[ 在 Lua table 中我们可以访问对应的key来得到value值,但是却无法对两个 table 进行操作。 因此 Lua 提供了元表(Metatable),允许我们改变table的行为,每个行为关联了对应的元方法。 例如,使用元表我们可以定义Lua如何计算两个table的相加操作a+b。 当Lua试图对两个表进行相加时,先检查两者之一是否有元表,之后检查是否有一个叫"__add"的字段,若找到,则调用对应的值。"__add"等即时字段,其对应的值(往往是一个函数或是table)就是"元方法"。 有两个很重要的函数来处理元表: setmetatable(table,metatable): 对指定table...
--- Handles external packages -- @module howl.packages.Manager local class = require "howl.class" local fs = require "howl.platform".fs local dump = require "howl.lib.dump" local mixin = require "howl.class.mixin" local Proxy = require "howl.packages.Proxy" local emptyCache = {} local Manager = class("howl.packages...
return Def.ActorFrame{ Name="Header", Def.Quad{ InitCommand=cmd(zoomto, _screen.w, 32; vertalign, top; diffuse,0.65,0.65,0.65,1; x, _screen.cx), }, Def.BitmapText{ Name="HeaderText", Font="_wendy small", Text=ScreenString("HeaderText"), InitCommand=cmd(diffusealpha,0; zoom,WideScale(0.5,0.6); horizalign...
-- from incredible-gmod.ru with <3 -- https://github.com/Be1zebub/Small-GLua-Things/blob/master/anti_steamid_spoof.lua -- found exploit that allows to spoof a steamid -- there is a way to steal a users token and use it to access any gmod servers under the steam ID of another user. -- for example - with this exploit, a...
itemTable = { ["farm"] = { -- NAME, ID, SIZE {"item1",1463,0.4,0,13}, {"medicine5",1578,0.5,0,4}, {"fooditem1",2683,1,0,6}, {"fooditem3",2770,1,0,6}, {"fooditem4",2601,1,0,6}, {"fooditem5",2768,1,0,6}, {"fooditem8",2673,0.5,0,12}, {"item6",2675,0.5,0,12}, {"fooditem7",2647,1,0,9}, {"item10",1650,...
DEFINE_BASECLASS("gamemode_sandbox") include("shared.lua") --gamemode functions function GM:CreateClientsideRagdoll(entity, ragdoll) if IsValid(entity) and entity.IsMinge then local color = entity.ShirtColor local start_time = RealTime() function ragdoll:GetPlayerColor() return color end timer.Simple(5,...
Price = 250 Config = { Tiendas = { {['gorras'] = vector3(-1124.23, -1437.36, 5.23), ['mochilas'] = vector3(-1124.5, -1443.63, 5.23)}, }, Price = 250 } Strings = { ['Press_E'] = 'Pulsa ~INPUT_CONTEXT~ para %s', ['gorros'] = 'comprar gorras', ['mochilas'] = 'compra...
object_tangible_deed_city_deed_cityhall_corellia_02_deed = object_tangible_deed_city_deed_shared_cityhall_corellia_02_deed:new { } ObjectTemplates:addTemplate(object_tangible_deed_city_deed_cityhall_corellia_02_deed, "object/tangible/deed/city_deed/cityhall_corellia_02_deed.iff")
local on_attach = function(client, bufnr) local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc') -- Mappings. local opts = { noremap=true, sil...