content
stringlengths
5
1.05M
local event = require("__flib__.event") local gui = require("__flib__.gui-beta") local migration = require("__flib__.migration") local translation = require("__flib__.translation") local global_data = require("scripts.global-data") local infinity_filter = require("scripts.infinity-filter") local migrations = require("...
--[[ 遗留BUG: 1. [《openresty的unescape_uri函数处理百分号后面字符的小特性》](https://www.cnxct.com/openresty-unescape_uri-feature-to-decode-char-after-percent-sign/) 未解决 可以按照该篇文章中的方法重新编译OpenResty解决。 ]] setGlobalHeader() if isWhiteIp() then elseif isBlackIp() then ngx.exit(403) elseif isCcAttack() then ngx.exit(503) elseif isScanne...
-- Mutate a memory table per the operation at the current program -- counter, and return the next program counter. local brianvm = (function() local OPS = { function(m, pc) io.write(string.char(m[1+m[2+pc]])) return pc + 2 end, function(m, pc) m[1...
if a then if {} then print("x") end end
--***************************************************************************** --* _______ __ --* |_ _| |--.----.---.-.--.--.--.-----.-----. --* | | | | _| _ | | | | |__ --| --* |___| |__|__|__| |___._|________|__|__|_____| --* ______ --* | __ \.-----.--.--.-----.-----.-...
local highlight = {} ---@type table<string,boolean> local registered_highlight = {} ---register highlight object to nvim ---@param hl HighlightOpt ---@return string highlight group name function highlight.register(hl) vim.validate({ fg = { hl.fg, 'string', true }, bg = { hl.bg, 'string', true }, style =...
local forest = {} forest.mt = {__index = forest} function forest.new() return setmetatable({ ents = {}, branches = {}, _nextbit = 0, _ent_set = {}, _dead = {}, _ent_masks = {}, }, forest.mt) end function forest:definebranch(name, requires, default) assert(self._nextbit <= 31) assert(no...
object_mobile_dressed_npe_tiasris = object_mobile_shared_dressed_npe_tiasris:new { } ObjectTemplates:addTemplate(object_mobile_dressed_npe_tiasris, "object/mobile/dressed_npe_tiasris.iff")
local PLUGIN = PLUGIN local find, ipairs, IsValid = ents.FindByClass, ipairs, IsValid local tSimple = timer.Simple if (PLUGIN.showAnom) then function PLUGIN:PlayerLoadedChar(player) netstream.Start(player, "showAnomalyChecked", false) if (timer.Exists("checkedAnom_"..player:SteamID())) then --safe tim...
AddCSLuaFile( 'goldenhudv3/sh_config.lua' ) AddCSLuaFile( 'goldenhudv3/sh_initialize.lua' ) include( 'goldenhudv3/sh_initialize.lua' ) Msg( "[goldenhudv3] sh_initialize.lua load !\n" ) local GoldenV1Version = "1.2" -- NEVER TOUCH THIS! if SERVER then util.AddNetworkString( "goldenhudv3version" ) hook...
#!/usr/bin/env lua local slt2 = require('slt2') if #arg > 1 then print('Usage: slt2dep.lua filename') os.exit(1) end local content if #arg == 1 then local fin = assert(io.open(arg[1])) content = fin:read('*a') fin:close() else content = io.read('*a') end print(table.concat(slt2.get_dependency(content), '\t')...
require("deepcore/std/class") ---@class DeepCoreTechLevelTransitionPolicy : DeepCoreTransitionPolicy DeepCoreTechLevelTransitionPolicy = class() ---@param target_level number ---@param faction PlayerObject ---@param transition_function fun(state_context: table<string, any>) function DeepCoreTechLevelTransitionPolicy:...
------------------------------------------------- -- Weather Widget based on the OpenWeatherMap -- https://openweathermap.org/ -- -- @author Pavel Makhov -- @copyright 2018 Pavel Makhov ------------------------------------------------- local socket = require("socket") local http = require("socket.http") local ltn12 = ...
Ambi.Timer = AMB.Timer or {} setmetatable( Ambi.Timer, { __index = timer } ) --[[ !!! DON'T UPDATE THIS FILE !!! This is I used replace original methods, because it file need updating only one time! If a file updated, when reset all methods, which used here! ]]-- -- ---------------------------------------...
RegisterClientScript() local pidmeta = RegisterMetatable("pidcontroller") pidmeta.__index = pidmeta function pidmeta:Update(currentError, elapsedTime) local incrIntegral = currentError * elapsedTime if (self.integral) then self.integral = self.integral + incrIntegral else self.integral = incrIntegral end lo...
-- Prosody IM -- Copyright (C) 2008-2014 Matthew Wild -- Copyright (C) 2008-2014 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local ok, crand = pcall(require, "util.crand"); if ok then return crand; end local urandom, urandom_err =...
---@class CS.FairyEditor.View.ResourceMenu ---@field public realMenu CS.FairyEditor.Component.IMenu ---@field public targetItems CS.System.Collections.Generic.List_CS.FairyEditor.FPackageItem ---@type CS.FairyEditor.View.ResourceMenu CS.FairyEditor.View.ResourceMenu = { } ---@return CS.FairyEditor.View.ResourceMenu fu...
local gui = require("__flib__.gui-beta") local math = require("__flib__.math") local constants = require("constants") local logistic_request = require("scripts.logistic-request") local logistic_request_gui = {} function logistic_request_gui.build(player, player_table) local resolution = player.display_resolution ...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BceGuildBagTake_pb', package.seeall) local BCEGUILDBAGTAKE = protobuf.Descriptor(); local BCEGUILDBAGTAKE_GUILDID_FIELD = protobuf.FieldDescriptor(); local BCEGUILDBAGTAKE_INDEX_FIELD = protobuf.FieldDescriptor(); BCEGUILDBAGTAKE_...
local IInput = require("api.gui.IInput") local IInputHandler = require("api.gui.IInputHandler") local KeyHandler = require("api.gui.KeyHandler") local MouseHandler = require("api.gui.MouseHandler") local InputHandler = class.class("InputHandler", {IInput, IInputHandler}) InputHandler:delegate("keys", { ...
class("GuildEventStartCommand", pm.SimpleCommand).execute = function (slot0, slot1) if getProxy(GuildProxy):getData() then pg.TipsMgr.GetInstance():ShowTips(i18n("guild_boss_appear")) slot2.eventTip = true slot0:sendNotification(GAME.BOSS_EVENT_START_DONE) end end return class("GuildEventStartCommand", pm.Si...
local awful = require('awful') local ruled = require('ruled') local beautiful = require('beautiful') local app = require('configuration.apps').default.quake local client_keys = require('configuration.client.keys') local client_buttons = require('configuration.client.buttons') local quake_id = nil local quake_client = n...
function yGatherIcon_OnClick(this, button, ignoreShift) if (button=="RBUTTON") then ToggleDropDownMenu(yGatherIconMenu); end end function yGatherIconMenu_OnLoad(this) UIDropDownMenu_Initialize( this, yGatherIconMenu_OnShow, "MENU"); end local function RemoveMarker(info) local stackInfo = info....
--luacheck: ignore describe it setup teardown describe('rapidjson.dump()', function() local rapidjson = require('rapidjson') local function check(filename, ...) local e = rapidjson.load(filename) local df = 'dump.json' rapidjson.dump(e, df, ...) local a = rapidjson.load(df) --os.remove(df) r...
local Timer = {} -- brief : 获取下N个小时的时间点 -- param : interval,若干小时 -- param : timepoint,起始时间点,为nil时则为当前时间 -- return : 小时点Hour,unix时间戳 function Timer.get_next_hour( interval,timepoint ) local tt = timepoint or this.time() tt = tt + 3600 * interval local time = os.date('*t',tt) return time.hour,tt end -- brief : 获...
function Naga_OnGossip(pUnit, event, player) pUnit:GossipCreateMenu(1, player, 0) pUnit:GossipMenuAddItem(1, "What is 76*76/5?", 1, 0) pUnit:GossipMenuAddItem(1, "Let me think...", 2, 0) pUnit:GossipSendMenu(player) end function Naga_OnGossipSelect(pUnit, event, player, id, intid, pmisc) if(intid == 1) then ...
function ShuffleArray(array) for i=1,#array-1 do local t = math.random(i, #array) array[i], array[t] = array[t], array[i] end end function GenerateNumber() local digits = {1,2,3,4,5,6,7,8,9} ShuffleArray(digits) return digits[1] * 1000 + digits[2] * 100 + digits[3] * ...
GM.ShipHealth = GM.ShipHealth or SHIP_HEALTH; function GM:GetNextDamageTime() if( #player.GetJoined() == 0 ) then return 1e10; end if( self:GetState() != STATE_GAME ) then return 1e10; end local tmul = 1 - ( self:TimeLeftInState() / STATE_TIMES[STATE_GAME] ); return math.Rand( 15 - tmul * 10, 30 - tmul * 10 ) /...
--[[-------------------------------------------------------------------- Copyright (C) 2018 Johnny C. Lam. See the file LICENSE.txt for copying permission. --]]-------------------------------------------------------------------- local ADDON_NAME, addon = ... local L = addon.L ---------------------------------...
local typedefs = require "kong.db.schema.typedefs" local cjson = require "cjson" local utils = require "kong.tools.utils" local EncryptionKeyPathRetriever = require "kong.plugins.escher.encryption_key_path_retriever" local function ensure_valid_uuid_or_nil(anonymous) if anonymous == nil or utils.is_valid_uuid(ano...
local id = ID("clippy.clippy") local menuid local stack local kStackLimit = 10 local function SaveStack(self) local settings = self:GetSettings() settings.stack = stack self:SetSettings( settings ) end local function SaveClip() local tdo = wx.wxTextDataObject("None") if wx.wxClipboard:Get():Ope...
local constants = require "prototypes/constants" local common = require "common" local logic = {} logic.logic = {} function logic.resolve_signalID(type_and_name) local split = string.find(type_and_name, "/") if not split then return nil end local signal_type = string.sub(type_and_name, 1, split - 1) loca...
workspace "cpp-template" architecture "x86_64" startproject "tests" configurations { "Debug", "Release" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" group "Dependencies" include "vendor/premake" include "tests/vendor" group "" include "cpp-project" include "tests"
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)...
--[[ This is just a very long comment!! ]] print("hello")
----------------------------------------- -- ID: 5481 -- Red Mage Die -- Teaches the job ability Warlock's Roll ----------------------------------------- function onItemCheck(target) return target:canLearnAbility(tpz.jobAbility.WARLOCKS_ROLL) end function onItemUse(target) target:addLearnedAbility(tpz.jobAbil...
local att = {} att.name = "bg_skspuscope" att.displayName = "PU Scope" att.displayNameShort = "PU" att.FOVModifier = 15 att.isBG = true att.isSight = true att.aimPos = {"PUPos", "PUAng"} att.withoutRail = true att.statModifiers = {OverallMouseSensMult = -0.2} if CLIENT then att.displayIcon = surface.GetTextureID("at...
GraphicItem { id = "main", Image { id = "image", source = "images/Qt/toolbutton.png", }, BorderImage { id = "borderImage", source = "images/border-image.png", x = 100, y = 100, width = 400, height = 100, borderLeft = 30, borderR...
--[[ ########################################################## S V U I By: Munglunch ########################################################## LOCALIZED LUA FUNCTIONS ########################################################## ]]-- --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; local select = _G.selec...
testingSILE = true local assert = require "luassert" SILE = require("core/sile") describe("The frame parser", function() it("should exist", function() assert.is.truthy(SILE.frameParser) end) local n = SILE.frameParserBits.number local f = SILE.frameParserBits.func local d = SILE.frameParserBits.dimensione...
local K, C, L = unpack(select(2, ...)) if K.CheckAddOn("OmniCC") or K.CheckAddOn("ncCooldown") or K.CheckAddOn("CooldownCount") or C.Cooldown.Enable ~= true then return end -- Lua API local _G = _G local ceil = math.ceil local floor = math.floor local pairs = pairs local strfind = string.find -- Wow API local GetTime...
--[[ This file enable the bots to harbor useful coordinative skills and apply them to combat.. It also decides how traitor bots acquire new targets. ]] //include("ttt_bots_rework.lua") local Meta = FindMetaTable("Player") function Meta:TraitorGetTarget() if(self.patience == nil) then self.patie...
--輪廻竜サンサーラ -- --Script by JustFish function c100200186.initial_effect(c) --double tribute local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_DOUBLE_TRIBUTE) e1:SetValue(c100200186.tricon) c:RegisterEffect(e1) --To hand local e2=Effect.CreateEffect(c) e2:SetCategory(CAT...
local x = 0 local y = 0 local clicks = {} function init() end function draw() print(tostring(x)..","..tostring(y), 260, 0) for i=#clicks,1,-1 do circ(clicks[i][1], clicks[i][2], clicks[i][3], i+2) clicks[i][3] = clicks[i][3]+5 if clicks[i][3] > 50 then table.remove(click...
-- Copyright 2004-present Facebook. All Rights Reserved. require('nn') local WeightedLookupTable, parent = torch.class('nn.WeightedLookupTable', 'nn.LookupTable') WeightedLookupTable.__version = 2 function WeightedLookupTable:__init(nIndex, nOutput) parent.__init(self, nIndex, nOutput) self._gradOutput = t...
setenv("A","0.1")
local ErrorController = {} local ngx_log = ngx.log local ngx_redirect = ngx.redirect local os_getenv = os.getenv function ErrorController:error() local env = os_getenv('VA_ENV') or 'development' if env == 'development' then local view = self:getView() view:assign(self.err) return view:...
--[[ https://wow.gamepedia.com/World_of_Warcraft_API PROTECTED - This function can only be called from secure code. See the Protected Functions category. NOCOMBAT - This function cannot be called from insecure code while in combat. HW - This function may only be called in response to a hardware event (from OnClick...
-- super mini bootstrap print("\n init_minizf1.lua zf180909.1112 \n") zswitch=3 --switch flash gpio.mode(zswitch, gpio.INT, gpio.PULLUP) initalarme=tmr.create() function zbutton() gpio.trig(zswitch, "none") tmr.unregister(initalarme) dofile("start_boot.lua") dofile("start_job.lua") end gpio....
RECIPE.name = "Talon Mark III Short Autopistol" RECIPE.description = "The Recipe for a Kantrael MG 'Defender' Pattern Service Pistol." RECIPE.model = "models/weapons/w_autopistol.mdl" RECIPE.category = "Autoguns" RECIPE.requirements = { ["talonmarkiiishortautopistolreciever"] = 1, ["autogunpistolgrip"] = 1, ["autogu...
--[[ -- 作者:Steven -- 日期:2017-02-26 -- 文件名:user_files.lua -- 版权说明:南京正溯网络科技有限公司.版权所有©copy right. -- 本脚本主要为用户提供文件操作相关的接口,类似网盘功能 --]] local cjson = require "cjson" local file_apis = require "files.common.file_apis" local zsrequest = require "common.request_args" local api_data = require "common.api_data_help" ...
local wibox = require("wibox") local awful = require("awful") local beautiful = require("beautiful") local naughty = require("naughty") local widget = require("util.widgets") -- beautiful vars local fg = beautiful.widget_wifi_str_fg local bg = beautiful.widget_wifi_str_bg local l = beautiful.widget_wifi_layout or 'hor...
modifier_ogre_seer_area_ignite_thinker = class( ModifierBaseClass ) ---------------------------------------------------------------------------------------- function modifier_ogre_seer_area_ignite_thinker:OnCreated( kv ) if IsServer() then self.radius = self:GetAbility():GetSpecialValueFor( "radius" ) self.area...
---- -*- Mode: Lua; -*- ---- ---- lpeg-debug.lua set up development environment with debugging version of lpeg ---- ---- © Copyright IBM Corporation 2016. ---- LICENSE: MIT License (https://opensource.org/licenses/mit-license.html) ---- AUTHO...
--[[ skill_id:技能id shape:攻击范围形状--1圆形,2直线,3扇形 duration:施放时间(毫秒) detail:每级的具体属性 detail.condition:学习条件--{lv,1}角色等级,{money,100}货币 detail.cd:冷却时间 detail.attack_max_num:攻击最大数量 detail.damage_rate:伤害比率 detail.area:攻击范围--shape为圆形时即半径,直线时即为距离 ]]-- local config = { --男角色技能 [110000] = { skill_id = 110000, shape = 1, duration =...
push = require 'lib/push' Class = require 'lib/class' require 'Bird' require 'Pipe' require 'PipePair' -- all code related to game state and state machines require 'StateMachine' require 'states/BaseState' require 'states/CountdownState' require 'states/PlayState' require 'states/ScoreState' require 'states/TitleScre...
package.path = "../?.lua;"..package.path; require("p5") local path = BLPath(); function setup() path:moveTo(10, 10) path:lineTo(200, 10) path:lineTo(200, 200) path:lineTo(10, 200) --path:close(); fill(0x00) stroke(0xff, 0,0) background(0xCC) end function draw() appContext:f...
local createEnum = import("../createEnum") return createEnum("Platform", { Windows = 0, OSX = 1, IOS = 2, Android = 3, XBoxOne = 4, PS4 = 5, PS3 = 6, XBox360 = 7, WiiU = 8, NX = 9, Ouya = 10, AndroidTV = 11, Chromecast = 12, Linux = 13, SteamOS = 14, WebOS = 15, DOS = 16, BeOS = 1...
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Abda Lurabda -- Standard Info NPC ----------------------------------- local ID = require("scripts/zones/Aht_Urhgan_Whitegate/IDs") require("scripts/globals/status") require("scripts/globals/pets") ----------------------------------- function on...
local voteClass = {} voteClass.__index = voteClass function amapvote.CreateVote() local instance = {} setmetatable(instance, voteClass) instance:ctor() return instance end function voteClass:ctor() self._options = {} self._votes = {} self._started = false self._duration = 30 self._startTime = ...
c = require("component") t = require("term") fisr = c.nc_fission_reactor local x = fisr.getLengthX() local y = fisr.getLengthY() local z = fisr.getLengthZ() local size = string.format("%s*%s*%s", x, y, z) local max_rf = fisr.getMaxEnergyStored() local max_hu = fisr.getMaxHeatLevel() local mult_rf = fisr.getE...
--[[ Name: "sh_book_pha.lua". Product: "HL2 RP". --]] local ITEM = {}; -- Set some information. ITEM.base = "book_base"; ITEM.name = "Poison Headcrab Anatomy"; ITEM.cost = 5; ITEM.model = "models/props_lab/bindergraylabel01b.mdl"; ITEM.uniqueID = "book_pha"; ITEM.business = true; ITEM.description = "A book with a bla...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = {}, Category = "DustStromStart", Delay = 120000, Effects = {}, Enabled = true, Enables = { "DustSickness_Deaths", "DustSickness_Cure", }, Image = "UI/Messages/Events/25_medical_check.tga", Prerequi...
--- URL rewriting policy -- This policy allows to modify the path of a request. local ipairs = ipairs local sub = ngx.re.sub local gsub = ngx.re.gsub local QueryParams = require 'apicast.policy.url_rewriting.query_params' local TemplateString = require 'apicast.template_string' local default_value_type = 'plain' loc...
function setup() displayMode(FULLSCREEN) backingMode(RETAINED) font("AppleColorEmoji") index = 1 detail = 5 speed = 10 drawit = false bg = false str = false end function draw() if drawit then if bg then background(0) bg = false end ...
---------------------------------------- -- -- TitleBarClass -- -- Creates a section with a title label: -- -- "SectionXXX" -- "TitleBarVisual" -- "Contents" -- -- Requires "parent" and "sectionName" parameters and returns the section and its contentsFrame -- The entire frame will resize dynamically as contents...
--- Gather configuration options. -- -- The module reads configuration options from multiple sources -- and then merges the options together according to source priority: -- -- 1. `--<VARNAME>` command line arguments. -- 2. `TARANTOOL_<VARNAME>` environment variables. -- 3. Configuration files. -- -- To specify a confi...
-- Script for box-tap/errinj_set_with_enviroment_vars.test.lua test. local tap = require('tap') local errinj = box.error.injection local test = tap.test('set errinjs via environment variables') test:plan(3) test:test('Set boolean error injections', function(test) test:plan(6) test:is(errinj.get('ERRINJ_TEST...
package("lua") set_homepage("http://lua.org") set_description("A powerful, efficient, lightweight, embeddable scripting language.") add_urls("http://117.143.63.254:9012/www/rt-smart/packages/lua-$(version).tar.gz") add_versions("5.1.4", "b038e225eaf2a5b57c9bcc35cd13aa8c6c8288ef493d52970c9545074098af3...
require 'torch' require 'nn' local compose_utils = require 'utils.compose_utils' -- -- Matrix composition model -- -- local Matrix, parent = torch.class('torch.Matrix', 'torch.CompositionModel') function Matrix:__init(inputs, outputs) parent.__init(self) self.inputs = inputs self.outputs = outputs end function...
return {["trigram"]={["albanian"]={["të "]="0",[" të"]="1",["në "]="2",["për"]="3",[" pë"]="4",[" e "]="5",["sht"]="6",[" në"]="7",[" sh"]="8",["se "]="9",["et "]="10",["ë s"]="11",["ë t"]="12",[" se"]="13",["he "]="14",["jë "]="15",["ër "]="16",["dhe"]="17",[" pa"]="18",["ë n"]="19",["ë p"]="20",[" që"]="21",[" dh"]="...
local msrpc = require "msrpc" local nmap = require "nmap" local smb = require "smb" local stdnse = require "stdnse" local string = require "string" local table = require "table" local vulns = require "vulns" description = [[ Detects Microsoft Windows systems with Dns Server RPC vulnerable to MS07-029. MS07-029 target...
--[[ Name: accel-and-compass-lsm303dlhc.lua Desc: This is an example that uses the LSM303DLHC Accelerometer & Magnetometer on the I2C Bus on EIO4(SCL) and EIO5(SDA) Note: This example is a combination of the LSM303 Accelerometer and LSM303 Magnetometer Lua scripts I2C examples...
--アビス・シャーク -- --Script by Trishula9 function c100426001.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_SEARCH+CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_HAND) e1:SetCountLimit(1,100426001) e1:SetCondition(c100426001.spcon) ...
--[[ ************************************************************* * This script is developed by Arturs Sosins aka ar2rsawseen, http://appcodingeasy.com * Feel free to distribute and modify code, but keep reference to its creator * * TextWrap object splits string into multiple lines by provided width. * You can also sp...
----------------------------------- -- Area: Dangruf Wadi -- NM: Teporingo ----------------------------------- require("scripts/globals/hunts") function onMobDeath(mob, player, isKiller) tpz.hunts.checkHunt(mob, player, 223) end
server = nil service = nil return function() server.Admin = { OnlineAdmins = {}; LevelToWord = function(Level) return ({ [0] = "Player"; [1] = "Moderator"; [2] = "Admin"; [3] = "Creator"; }) [Level] end...
local PANEL = {} function PANEL:Init() //self:ShowCloseButton( false ) self.Avatar = vgui.Create( "AvatarImage", self ) self.PlayerName = translate.Get( "rd_ui_shop_not_available" ) self.Desc = "" self:PerformLayout() end function PANEL:SetPlayerEnt( ply ) self.Avatar:SetPlayer( ply ) if IsValid( ply...
local mroot = os.getenv("MODULEPATH_ROOT") prepend_path("MODULEPATH", pathJoin(mroot, "C3"))
local status_ok, _ = pcall(require, "lspconfig") if not status_ok then return end require("rc/lsp/configs") require("rc/lsp/handlers").setup()
local M = {} local query = require('possession.query') local utils = require('possession.utils') -- FIXME: This seems hacky as hell and will most likely break some day... -- Get the lua parser for given buffer and replace its injection query -- with one that will highlight vimscript inside the string stored in -- the...
ESX = nil local connectedPlayers = {} TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) function CountJobs() local EMSConnected = 0 local PoliceConnected = 0 local TaxiConnected = 0 local MekConnected = 0 local BilConnected = 0 local MaklareConnected = 0 local PlayerConnected = 0 local xPlayer...
--[[ Audio Stats Author: Native Instruments Written by: Yaron Eshkar Modified: June 4, 2021 --]] -- Imports local root_path = filesystem.parentPath(scriptPath) package.path = root_path .. "/?.lua;" .. package.path local ctAudio = require("Modules.CtAudio") local ctUtil = require("Modules.CtUtil") -----------------...
-- Vim ftplugin file -- Remap: Better vim Support -- Better default for vim vim.bo.tabstop=2 vim.bo.softtabstop=2 vim.bo.shiftwidth=2 vim.bo.expandtab = true vim.api.nvim_buf_set_keymap(0, 'n', '<leader>h', ':source %<CR>', { noremap = true })
modifier_hero_stunned = class({}) function modifier_hero_stunned:IsHidden() return false end function modifier_hero_stunned:IsPurgable() return true end function modifier_hero_stunned:IsDebuff() return true end function modifier_hero_stunned:IsStunDebuff() return true end function modifier_hero_stunned:GetEffe...
--- --- Generated by MLN Team (https://www.immomo.com) --- Created by MLN Team. --- DateTime: 15-01-2020 17:35 --- --- --- ScrollView滚动方向 --- ---@link https://www.immomo.comScrollDirection.html ---@class ScrollDirection @parent class ---@public field name string ---@type ScrollDirection ScrollDirection = { --- --...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = { PlaceObj('CallTradeRocket', { 'rocket_id', "TheEternalSummerMoney", 'display_name', T(11386, --[[StoryBit TheDoorToSummer_RefuelExpensive display_name]] "The Eternal Summer"), 'description', T(113...
-- =========================================================================== -- Base File -- =========================================================================== include("TechTree"); include("techtree_CQUI.lua");
--[[ author: Aussiemon ----- Copyright 2018 Aussiemon 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...
workspace "TestGround" architecture "x86_64" startproject "TestGround" configurations { "Test", "Release" } flags { "MultiProcessorCompile" } OutputDir = "%{cfg.buildcfg}_%{cfg.system}_%{cfg.architecture}\\" IncludeDir = {} IncludeDir["KLIB_CORE"] = "../kL...
local root = script.Parent.Parent local G = require(root.G) local module = {} module.__index = module local function getSelectedName(value) for i, material in ipairs(G.modules["Data"].materials) do if material[1] == value then return material[3] end end end module.New = function(value) local object = setme...
-- -- Ubernim 0.8.0 plugin for Lite XL editor -- -- NOTE: the following is from language_nim.lua plugin ... -- -- mod-version:2 -- lite-xl 2.0 local syntax = require "core.syntax" local patterns = {} local symbols = { ["nil"] = "literal", ["true"] = "literal", ["false"] = "literal", } local number_patterns = ...
--[[ ################################################################################ # # Copyright (c) 2014-2017 Ultraschall (http://ultraschall.fm) # # 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 th...
-- BURST CACHE --------------------------------------------------- local _G = _G; local table = table; local floor = floor; local ipairs = ipairs; local twipe = table.wipe; local VUHDO_CONFIG; local VUHDO_PANEL_SETUP; local VUHDO_RAID; local VUHDO_getHeaderPos; local VUHDO_customizeHeader; local VUHDO_getDynamicMode...
surface.CreateFont( "HUDFont", { font = "Trebuchet MS", size = 15 } ) local function DrawHUDRectangle( x, y, w, h, bg, fg, innerW ) surface.SetDrawColor( bg ) surface.DrawRect( x, y, w, h ) surface.SetDrawColor( fg ) surface.DrawRect( x, y + h / 4, innerW * ( w - h / 4 ), h / 2 ) draw.SimpleText( innerW * 100 ....
sky = true object_atmo = true height_distribution_rayleigh = 8000 height_distribution_mie = 1200 ground_r = 6378 atmo_r = 6478 scatter_rayleigh = { 5.802 / 33.1, 13.558 / 33.1, 33.1 / 33.1 } scatter_fog = { 1, 1, 1 } scatter_mie = { 1, 1, 1 } absorb_mie = {1, 1, 1 } sunlight_color = {1, 1, 1} sunlight_strength = 10 clo...
object_mobile_dressed_trader_thug_male_wke_02 = object_mobile_shared_dressed_trader_thug_male_wke_02:new { } ObjectTemplates:addTemplate(object_mobile_dressed_trader_thug_male_wke_02, "object/mobile/dressed_trader_thug_male_wke_02.iff")
local M = {} M.__index = M local private = {} local default_angle = { 0, 0, 0 } local default_scale = { 1, 1, 1 } local default_albedo = { 0.96, 0.96, 0.97 } local default_physics = { roughness = 0.5, metallic = 0.3 } function M.new(...) local obj = setmetatable({}, M) obj:init(...) return obj end function M:i...
-- Input file for Hasegawa-Wakatani ---------------------------------- -- Problem dependent parameters -- ---------------------------------- polyOrder = 2 coupleCoeff = 0.3 -- adiabacity coefficient cfl = 0.5/(2*polyOrder+1) LX, LY = 40, 40 -- domain size NX, NY = 32, 32 -- number of cells numOverlappingCells = 4 --...
object_tangible_loot_creature_loot_collections_aurebesh_tile_qek = object_tangible_loot_creature_loot_collections_shared_aurebesh_tile_qek:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_aurebesh_tile_qek, "object/tangible/loot/creature/loot/collections/aurebesh_tile_qek.iff")