content
stringlengths
5
1.05M
local constants = require(".lua.common.constants") local logger = require(".lua.common.logger").new("gateway_new.lua") local request_builder = require(".lua.request_builder") local request_dispatcher = require(".lua.request_dispatcher") local response_dispatcher = require(".lua.response_dispatcher") local util = requir...
local colbox_type1 = { --top blocks type = 'fixed', fixed = {{-.49, -.5, 0.05, .5, .5, .52}} } local colbox_type2 = { --outside corner columns type = 'fixed', fixed = {{-.2, -.5, -.2, .5, .5, .5}} } local colbox_type3 = { --bottom blocks type = 'fixed', fixed = {{-.5, -.5, -.16, .5, .5, .25}} } local colbox_type4...
require "view.IView" CocosView = class("CocosView", IView) function CocosView:ctor(root) self.root = root local cache = cc.SpriteFrameCache:getInstance() local f = cache:getSpriteFrame(string.format("scene.OrangeWrap%04d", 0)) local effect= cc.Sprite:createWithSpriteFrame(f) e...
if global.playerSettings == nil then goto SkipMigration end for player_index, _ in pairs(game.players) do local playerSettings = global.playerSettings[player_index] if playerSettings == nil then goto NextPlayer end for _, tracker in pairs(playerSettings.trackers) do if tracker.type...
mpackage = "Bashing"
vim.g["sneak#label"] = 1 -- case insensitive sneak vim.g["sneak#use_ic_scs"] = 1 -- immediately move to the next instance of search, if you move the cursor sneak is back to default behavior vim.g["sneak#s_next"] = 1 -- Cool prompts vim.g["sneak#prompt"] = "🔎" -- remap so I can use , and ; with f and t vim.cmd([[ m...
--[[ Copyright (C) 2015 - Auke Kok <sofar@foo-projects.org> "flowerpot" 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.1 of the license, or (at your option) any later version....
--[[--------------------------------------------------------- Variables -----------------------------------------------------------]] local PANEL = {} --[[--------------------------------------------------------- Function: Init -----------------------------------------------------------]] function PANEL:Init...
local uv = require 'couv' local exports = {} exports['tcp.flags'] = function(test) coroutine.wrap(function() local handle = uv.Tcp.new() test.ok(true) handle:nodelay(true) test.ok(true) handle:keepalive(true, 60) test.ok(true) handle:close() test.ok(true) end)() uv.run() te...
return LoadActor("Cursorarrow")..{ InitCommand=cmd(zoom,0.65;glowshift;skewx,-0.25;effectmagnitude,0.95,1,1;effectperiod,0.75;); --pulse; };
describe("constructor '#rep'", function() local linq = require("lazylualinq") it("requires <count>", function() assert.has_error( function() linq.rep(1) end, "Second argument 'count' must be a positive number!" ) end) it("requires <count> to be a number", function() assert.has_error( function() lin...
RegistryTool = { desription = "Show registry", inventory_image = "core_registry.png", wield_image = "core_registry.png" } function RegistryTool.on_use(_, player) local connection = connections:get_connection(player:get_player_name(), common.get_env("GRI...
--[[ 实现思路 1,创建一个可触摸层捕获触摸事件 touchNode 2,创建容器node 装所有的cell节点 3,根据配置参数【缩放目标格子】【缩放比例】【间隔宽度】【是否循环】【...】对各节点遍历处理 4,添加接口可对任意格子做缩放处理(线性关系),渐变处理,位置偏移设定 5, ]] -- local SlideElastic = SlideElastic or class2("SlideElastic",function() -- return ui.node() -- end) -- function SlideElastic:ctor() -- s...
local nvim_pid = 2201099 vim.api.nvim_buf_set_lines(981, 0, -1, false, vim.fn.systemlist({'pmap', tostring(nvim_pid), '-X'}))
-- Copyright (c) 2020-2021 hoob3rt -- MIT license, see LICENSE for more details. local function encoding() return vim.opt.fileencoding:get() end return encoding
--[[ Tru --]] local Clockwork = Clockwork; function RappelFinish(e,playercolor,movetype,weaponcolor) local oldwepcolor = weaponcolor local oldcolor = playercolor if IsValid(e.Rappel) then e:EmitSound("prappel/rappel_land2.wav") timer.Simple(1, function() if IsValid(e.Rappel) then local ply = e.Rappe...
while true do if redstone.getAnalogInput("right") <= 13 then redstone.setAnalogOutput("left", 15) os.pullEvent("redstone") else redstone.setAnalogOutput("left", 0) os.pullEvent("redstone") end end
--[[ Swaggy Jenkins Jenkins API clients generated from Swagger / Open API specification The version of the OpenAPI document: 1.1.2-pre.0 Contact: blah@cliffano.com Generated by: https://openapi-generator.tech ]] -- unlabeled_load_statistics class local unlabeled_load_statistics = {} local unlabeled_load_st...
require "projectTemplate" require "demoTemplate" workspace ("Helltooth") filter { "system:windows"} configurations { "Debug-GL", "Release-GL", "Debug-DX", "Release-DX", } filter { "system:linux"} configurations { "Debug-GL", "Release-GL", } filter {} platforms { "x86", "x64", } l...
pac.PartTemplates = pac.PartTemplates or {} pac.VariableOrder = {} pac.GroupOrder = pac.GroupOrder or {} do local META = {} META.__index = META function META:StartStorableVars() self.store = true self.group = nil return self end function META:EndStorableVars() self.store = false self.group = nil ...
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules local Roact = require(Modules.Packages.Roact) local UIBlox = require(Modules.Packages.UIBlox) local withStyle = UIBlox.Style.withStyle local GRADIENT_IMAGE = "rbxasset://textures/ui/LuaApp/graphic/gradient_0_100.png" local GR...
require 'utils' local car = getCar() local addr = car:f('name').address -- Obtain a pointer to the name buffer. -- local tp = dbgscript.createTypedPointer('kernelbase!char', addr) -- Print the first few characters. -- print (tp[0].value) print (tp[1].value)
ix.randomitems.tables["reward_generic_valuable"] = { {500, {"value_statue_cat"}}, {300, {"value_statue_horse"}}, {400, {"value_statue_lion"}}, {500, {"value_gunpowder_green"}}, {400, {"value_gunpowder_blue"}}, {300, {"value_gunpowder_red"}}, {100, {"value_watch"}}, {250, {"value_phone_old"}}, {125, {"...
local Pill = script.Parent local App = Pill.Parent local UIBlox = App.Parent local Packages = UIBlox.Parent local Roact = require(Packages.Roact) local Cryo = require(Packages.Cryo) local t = require(Packages.t) local Images = require(App.ImageSet.Images) local CursorKind = require(App.SelectionImage.CursorKind) loca...
workspace "JetbrainsTask" architecture "x64" configurations { "Debug", "Release" } outputDir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" includeDir = {} includeDir["GLFW"] = "JetbrainsTask/vendor/glfw/include" include "JetbrainsTask/vendor/glfw" project "Jetbrai...
--[[ FLY by RedPolygon The functions in this file combine the orientation and auto flying functions to calculate the controls based off the mode the user is in --]] -- CONSTANTS local attitude = require "calc/attitude" local autopilot = require "calc/autopilot" local fly = {} fly.motorPins = { 1, 2, 3, ...
function love.conf(t) v1 = 1080 v2 = 540 t.window.title = "LuaChip8" t.window.width = v2 * (16/9) t.window.height = v2 t.console = false t.window.resizeable = false t.window.vsync = true end
-- Small functions for working with player, maybe that should be in base instead of lib player_meta = FindMetaTable( "Player" ) -- Returns true if player is captain function player_meta:IsCaptain() if self.se_role == SE_CAPTAIN then return true else return false end end -- Gets players role function pl...
local packer = require('util.packer') local global = require('core.global') local config = { max_jobs = global.is_mac and 60 or nil, profile = { enable = true, threshold = 0, -- the amount in ms that a plugins load time must be over for it to be included in the profile }, display = { open_fn = func...
--[[ Desc: State of being lifted up Author: SerDing Since: 2018-02-26 14:25:46 Alter: 2018-02-26 14:25:46 ]] local _Timer = require("utils.timer") local _Base = require("entity.states.base") ---@class State.Lift : Entity.State.Base local _Lift = require("core.class")(_Base) function _Lift:Ctor(data, name) _B...
local Sp,Si,Sm = "personality.lua","init.lua", "main.lc" local SA,SR,SL,SC,SM,SH,SW = "Aborting: ","Running: ", "Loading: ", "Connected: " , " Missing", "Heap: ","Waiting... " print(SH, node.heap()) fver = {} ; OS = false ; print(SL,SH,node.heap()) -- hardware init.lua means NO OS local fn,fp = "init", {"0.4b","5/23/18...
local Dash = {} Dash.config = function() if not lvim.builtin.telescope.active then return end -- -- If Dash.nvim plugin is installed and Dash.app is found -- configure Dash as a Telescope extension -- local status_ok, _ = pcall(require, "dash") if status_ok then local dash_app = vim.fn.glob "/...
local _waypointId = "splinter" SplinterNpc = { click = async(function(player, npc) Tools.configureDialog(player, npc) local opts = { "Buy", "Sell", "Crafting Skills", "Gathering Wood", "Don't Knock Woodworking", "Woodworking Devotion" } if (not Waypoint.isEnabled(player, _waypointId)) then...
base_research = nil base_research = { { Name = "MothershipBUILDSPEEDUpgrade1", RequiredResearch = "", RequiredSubSystems = "Research", RequireTag = "VaygrBuilder", Cost = 1000, Time = 60, DisplayedName = "$7815", DisplayPriority = 90, Description = "$7816", UpgradeType = ...
local SpatialConvolutionMap, parent = torch.class('nn.SpatialConvolutionMap', 'nn.Module') nn.tables = nn.tables or {} function nn.tables.full(nin, nout) local ft = torch.Tensor(nin*nout,2) local p = 1 for j=1,nout do for i=1,nin do ft[p][1] = i ft[p][2] = j p = p + 1 end end return f...
local CircularBuffer = require(script.Parent.Parent.Parent.CircularBuffer) local Signal = require(script.Parent.Parent.Parent.Signal) local MAX_DATASET_COUNT = tonumber(settings():GetFVariable("NewDevConsoleMaxGraphCount")) local getClientReplicator = require(script.Parent.Parent.Parent.Util.getClientReplicator) loc...
require "Client.Scripts.Modulus.Entity.Const.__init" require "Client.Scripts.Modulus.Entity.Data.__init" require "Client.Scripts.Modulus.Entity.SkillEvent.__init" require "Client.Scripts.Modulus.Entity.Role.__init" require "Client.Scripts.Modulus.Entity.Mgr.EntityMgr" require "Client.Scripts.Modulus.Entity.Mgr.SkillM...
local ffi = require("ffi") __VIR_LIBVIRT_H_INCLUDES__ = true; local export = {} -- Copy one dictionary into another local function appendTable(dst, src) if not src then return dst; end for key, value in pairs(src) do dst.key = value; end return dst; end -- Load all the definitions, while copying -- dict...
local config = require("lvim-kbrd.config") local utils = require("lvim-kbrd.utils") local autocmd = require("lvim-kbrd.autocmd") local M = {} M.setup = function(user_config) if user_config ~= nil then utils.merge(config, user_config) end M.init() end M.init = function() if config.active_plugi...
-- Julia vim.g.default_julia_version = "1.7" vim.g.latex_to_unicode_tab = "on" vim.g.latex_to_unicode_auto = false vim.g.julia_indent_align_import = false vim.g.julia_indent_align_brackets = false vim.g.julia_indent_align_funcargs = false WhichKey.register({ j = { name = "Julia", b = { ":call jul...
local composer = require( "composer" ) local mui = require( "materialui.mui" ) local scene = composer.newScene() -- ----------------------------------------------------------------------------------- -- Code outside of the scene event functions below will only be executed ONCE unless -- the scene is removed entirely (...
module(...,package.seeall) --by nirenr local function ps(str) str = str:gsub("%b\"\"",""):gsub("%b\'\'","") local _,f= str:gsub ('%f[%w]function%f[%W]',"") local _,t= str:gsub ('%f[%w]then%f[%W]',"") local _,i= str:gsub ('%f[%w]elseif%f[%W]',"") local _,d= str:gsub ('%f[%w]do%f[%W]',"") local _,e= str:gsub...
--[[ Pixel Vision 8 - New Template Script Copyright (C) 2017, Pixel Vision 8 (http://pixelvision8.com) Created by Jesse Freeman (@jessefreeman) This project was designed to display some basic instructions when you create a new game. Simply delete the following code and implement your own Init(), Update() ...
--mobs_fallout v0.0.1 --maikerumine --made for Extreme Survival game --dofile(minetest.get_modpath("mobs_fallout").."/api.lua") --CODING NOTES --REF CODE FROM PMOBS by CProgrammerRU --https://github.com/CProgrammerRU/progress --[[ -- right clicking with cooked meat will give npc more health on_rightclick = functio...
--- === cp.apple.finalcutpro.timeline.CaptionsSubrole == --- --- *Extends [Role](cp.apple.finalcutpro.timeline.Role.md)* --- --- A [Role](cp.apple.finalcutpro.timeline.Role.md) representing Captions. local axutils = require "cp.ui.axutils" local CheckBox = require "cp.ui.CheckBox" local StaticT...
-- -- Small utility module for dealing with battery inventories. -- local invbat = {} function invbat.calc_capacity(inv, list_name) local size = inv:get_size(list_name) local capacity = 0 for i = 1,size do local stack = inv:get_stack(list_name, i) if not stack:is_empty() then local en = stack:ge...
require('nn') require('nngraph') require('loadcaffe') require('xlua') require('image') require('optim') require('cunn') require('cudnn') require('./lib/tvloss') require('./lib/contentloss') require('./lib/gramloss') require('./lib/mrfloss') require('./lib/masked_gramloss') require('./lib/amplayer') require('./lib/rand...
#!/usr/bin/env tarantool local test = require("sqltester") test:plan(109) --!./tcltestrunner.lua -- 2005 June 25 -- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive o...
local class = require 'lib.middleclass.middleclass' local Messages = {} local Message = class('MidiMessage') function Message:initialize() end Messages.NoteOff = class("NoteOff", Message) function Messages.NoteOff:initialize(n) Message.initialize(self) self.prefix = 0 self.note = n end Messages.NoteOn = class...
--- Utilities and generic auxiliary functions -- @module util --- Get an element from the matrix -- @tparam table matrix -- @tparam int x position of the element -- @tparam int y position of the element -- @return The element at the given position or null if there is none function get_matrix_element(matrix, x, y) if...
--Last update by GlitterStorm @ Azralon on Feb,22th,2015 if GetLocale() ~= "ptBR" then return end local L -------------- -- Brawlers -- -------------- L= DBM:GetModLocalization("Brigões") L:SetGeneralLocalization({ name = "Brigões: Geral" }) L:SetWarningLocalization({ warnQueuePosition2 = "Você é %d na fila", sp...
#!/usr/bin/env luajit local xmlua = require("xmlua") local path = arg[1] local file = assert(io.open(path)) local html = file:read("*all") file:close() -- Parses HTML local success, document = pcall(xmlua.HTML.parse, html) if not success then local message = document print("Failed to parse HTML: " .. message) ...
-- Adds an ADSR (Attack, Decay, Sustain, Release) envelope to the input -- Convert from dB to voltage ratio, -- e.g. dbToRatio(6) is about 2, dbToRatio(-3) is about 0.7 local function dbToRatio(db) return 10 ^ (db/20) end local defs = {name = 'ADSR', knobs = {}} defs.knobs.attack = { min = 0.5, max = 10000.0...
-- CONFIGURATION -- How often to run. At 1, it will run every update. At 10, -- it will run every 10th update. The lower it is, the more -- responsive it will be, but it will also take more processing time. UpdateRate = 4 -- Range to fire interceptors InterceptRange = 1000 -- Hostile missiles at or below this altitu...
platforms = {} -- To hold all the platform objects from the object layer -- Platform (Object Layer) related function function spawnPlatform(x, y, width, height) -- Create a platform for the player local platform = world:newRectangleCollider(x, y, width, height, {collision_class = "Platform"}) platfo...
--[[============================================================ --= --= Get Latest Version Number Script --= --= Args: none --= --= Outputs: --= :version --= <version> --= <downloadUrl> --= --= :error_request --= <errorMessage> --= --= :error_http --= <statusCode> --= <statusText> --= --= ...
SILE.scratch.masters = {} local _currentMaster local function defineMaster (self, args) SU.required(args, "id", "defining master") SU.required(args, "frames", "defining master") SU.required(args, "firstContentFrame", "defining master") SILE.scratch.masters[args.id] = {frames = {}, firstContentFrame = nil} fo...
--[[ Class: Drawable Base class for drawables. Properties: (none) Methods: - (void) Draw ((number) dt) ]] -- Constants local _C = require("Helpers.Common") -- Imports local Class = require("Helpers.Class") -- This local Drawable = {} -- Prototype Drawable.prototype = { type = "Drawable", -- typ...
require "/scripts/vec2.lua" function init() storage.timer = storage.timer or 0 if storage.active == nil then updateActive() end object.setSoundEffectEnabled(storage.active) self.fireTime = config.getParameter("fireTime", 1) self.fireTimeVariance = config.getParameter("fireTimeVariance", 0) self.p...
--[[Author: Pizzalol Date: 06.04.2015. If the target unit is owned by the caster then heal it to full]] function HandOfGod( keys ) local caster = keys.caster local target = keys.target local ability = keys.ability local sound = keys.sound local hand_particle = keys.hand_particle if target:GetPlayerOwnerID() =...
vim.g.gruvbox_colors = { red = '#FA7970', orange = '#FAA356', yellow = '#D8A657', --cyan = '#89B482', blue = '#7DAEA3', purple = '#D3869B', bg_yellow = '#D8A657', }
require('luacov') local unpack = unpack or table.unpack local testcase = require('testcase') local basedir = require('basedir') local mkdir = require('mkdir') local rmdir = require('rmdir') local TESTDIR = 'test_dir' function testcase.new() -- test that create a basedir objrect assert(basedir.new(TESTDIR)) ...
--[[ VERIFIED @ 2017.08.14 by Qige <qigezhao@gmail.com> History: 2017.06.19 import abb from Proto-EC54S 2017.08.10 gws_abb|indent 2017.08.11 update_safe_rt|mesh_id 2017.08.14 bitrate TODO: 1. set() ]]-- -- DEBUG USE ONLY --local DBG = print local function DBG(msg) end local iwinfo = require "i...
local T, C, L = Tukui:unpack() local _, ns = ... local RaidCooldowns = ns.RaidCooldowns local UnitGUID = _G.UnitGUID local GetRealmName = _G.GetRealmName local IsInRaid = _G.IsInRaid local IsInGroup = _G.IsInGroup local GetNumGroupMembers = _G.GetNumGroupMembers local GetSpellInfo = _G.GetSpellInfo local GetSpellBa...
local M = {} local sanitize = require("nvim-rss.modules.utils").sanitize function M.insert_entries(entries) local append = vim.fn.append local line = vim.fn.line for i, entry in ipairs(entries) do append(line("$"), "") append(line("$"), "") append(line("$"), entry.title) append(line("$"), "----...
local t = Def.ActorFrame {} local TIMER = THEME:GetMetric("ScreenAdInfo","TimerSeconds") size = SCREEN_WIDTH/2.5; distance = SCREEN_WIDTH/4; t[#t+1] = LoadActor(THEME:GetPathG("","background/common_bg/shared"))..{ InitCommand=cmd(diffusealpha,0;linear,2;diffusealpha,1;sleep,TIMER-1;linear,1;diffusealpha,0)...
return function() print("GET", game:GetService("HttpService"):GetAsync("https://www.example.com")) end
---------------------------------------------------------------------------------------------------- -- -- All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or -- its licensors. -- -- For complete copyright and license terms please see the LICENSE at the root of this -- distribution (the "Li...
norns.script.load("code/gatherum/live.lua") tapestop() tapestart() tapebreak() clock.run(function() clock.sleep(1.5);tapestop();clock.sleep(2.5);tapestart() end) clock.run(function() clock.sleep(1.5);tapebreak() clock.sleep(1.5);tapebreak() end) play("bbr",er("if math.random()<0.2 then e.brev(1) end",5)) play("bbb",...
require "posix" -- require "inotify" require "logging.console" require 'socket.http' local logger = logging.console() local config = {} local handle local charmap = { Arc = "Archeologist", Bar = "Barbarian", Cav = "Caveman", Hea = "Healer", Kni = "Knight", Mon = "Monk", Pri = "Priest", Rog = "R...
function Bolt:CheckPassword(steam_id64, ip, sv_pass, cl_pass, name) local steam_id = util.SteamIDFrom64(steam_id64) local entry = self:get_bans()[steam_id] if entry and Plugin.call('ShouldCheckBan', steam_id, ip, name) != false then if entry.duration != 0 and entry.unban_time >= os.time() and Plugin.call('Sh...
local AlmaApiInternal = {}; AlmaApiInternal.ApiUrl = nil; AlmaApiInternal.ApiKey = nil; local types = {}; types["log4net.LogManager"] = luanet.import_type("log4net.LogManager"); types["System.Net.WebClient"] = luanet.import_type("System.Net.WebClient"); types["System.Text.Encoding"] = luanet.import_type("System.Text....
testInfo = { CodeName="Plot", ShortName="Plot", LongName="Plot", Description="Plots sequences", Functions= { "MakePlot", }, MakesIndividualImages = true, MakesSampleTypeImages = false, SamplePageShowsFunctionName = false, }
---@type number local aNumber ---@type boolean local aBoolean ---@type nil | number local nilOrNumber ---@type nil | boolean local nilOrBoolean ---@type fun(): number, boolean... local varreturnFunction aNumber, nilOrBoolean, nilOrBoolean = varreturnFunction() aNumber, nilOrBoolean, nilOrBoolean, <error descr="Typ...
cluster_center = "127.0.0.1:7000" cluster_db = "127.0.0.1:7001" cluster_login = "127.0.0.1:7002" cluster_gate = "127.0.0.1:7003" cluster_hall = "127.0.0.1:7004" cluster_game_niuniu = "127.0.0.1:6000" cluster_game_br = "127.0.0.1:6001"
function onPre(v) vee.putreg(v, RAX, 64, 50505050) vee.putreg(v, RBX, 64, 50505050) vee.putreg(v, RCX, 64, 50505050) vee.putreg(v, RDX, 64, 50505050) vee.putreg(v, RBP, 64, 50505050) vee.putreg(v, RSI, 64, 50505050) vee.putreg(v, RDI, 64, 50505050) vee.putreg(v, R8, 64, 50505050) ve...
al MAX_LONG_4BYTE = 1 << 32 local MIN_INT = -2147483648 local MAX_INT = 2147483647 local MIN_LONG = 0x8000000000000000 local MAX_LONG = 0x7fffffffffffffff local MIN_LONG_STRING = "-9223372036854775808" --The natural logarithm of 2. local LN2 = 0.6931471805599453 Long = {} function Long:new(low, high) local obj = ...
game.AddParticles("particles/tfa_fubar_muzzle.pcf") game.AddParticles("particles/tfa_fubar_particles.pcf") game.AddParticles("particles/tfa_fubar_particles_aq.pcf") game.AddParticles("particles/tfa_fubar_particles_blu.pcf") PrecacheParticleSystem("tfa_muzzle_fubar") PrecacheParticleSystem("weapon_fubar_trail") Preca...
force_bread = { minimumLevel = 0, maximumLevel = -1, customObjectName = "Ancient Force Bread", directObjectTemplate = "object/tangible/loot/misc/mt_flatbread.iff", craftingValues = { }, customizationStringNames = {}, customizationValues = {} } addLootItemTemplate("force_bread", force_bread)
malkloc_bull = Creature:new { objectName = "@mob/creature_names:malkloc_bull", socialGroup = "malkloc", faction = "", level = 28, chanceHit = 0.35, damageMin = 240, damageMax = 250, baseXp = 2822, baseHAM = 8200, baseHAMmax = 10000, armor = 0, resists = {135,135,10,-1,-1,-1,10,150,-1}, meatType = "meat_her...
--!strict --[=[ @class ChickynoidServer @server Server namespace for the Chickynoid package. ]=] local DefaultConfigs = require(script.Parent.DefaultConfigs) local Types = require(script.Parent.Types) local TableUtil = require(script.Parent.Vendor.TableUtil) local ServerCharacter = require(script.Server...
local Server = require 'server' local TEsound = {} local server = Server.getSingleton() local soundList = {} function TEsound.playSfx(file) local msg = string.format("%s %s %s","broadcast","sound",file) for k,v in pairs(server.clients) do soundList[k] = soundList[k] or {} table.insert(soundL...
local zone_manager = require(script.ZoneManager).New() local zone, zone_tag = zone_manager:CreateNewZone(Vector3.new(0, 12.5, 0), Vector3.new(25, 25, 25), false, 'Mald') zone.OnPlayerEntered:Connect(function(player: Player) print(player.Name, 'has entered zone #' .. zone_tag) end) zone.OnPlayerExited:Connect(functio...
local build_freqtable = function (data) local freq = { } for i = 1, #data do local cur = string.sub (data, i, i) local count = freq [cur] or 0 freq [cur] = count + 1 end local nodes = { } for w, f in next, freq do nodes [#nodes + 1] = { word = w, freq = f } end table.sort (nodes, functi...
require("indent_blankline").setup { indentLine_enabled = 1, char = "▏", filetype_exclude = { "help", "terminal", "dashboard", "packer", "lspinfo", "TelescopePrompt", "TelescopeResults", "startify", "dashboard", "dotooagenda", "log", "fugitive", "gitcommit", "packer", "vimwiki", "markdown", "txt"...
local STACK = require("constraint/stack") local Throw = require("util/throw") -- NOTE: Index start from 1 in Lua API local Stack = { -- virtual stack slots = nil, _top = nil, -- call info state = nil, closure = nil, varargs = nil, openuvs = nil, pc = nil, prev = nil, } functi...
-- ============================================================================ -- -- CommandItems Tab (View) -- Tab to preview and purchase rights to commands -- -- ============================================================================ -- =============================================================...
local levels = { [1] = 100, [2] = 200, [3] = 300, [4] = 400, [5] = 500, [6] = 600, [7] = 700, [8] = 800, [9] = 900, [10] = 1000, [11] = 1100, [12] = 1200, [13] = 1300, [14] = 1400, [15] = 1500, [16] = 1600, [17] = 1700, [18] = 1800, [19] = 1900, [20] = 2000, [21] = 2100, [22]...
local gd = require 'gd' local getFormat = function(path) local file = io.open(path,"r"); if not file then return nil; end local fileType = file:read(1):byte(1,1); io.close(file); --根据图片类型和路径生成gd对象 local ext = nil; if fileType == 137 then -- png ext = ".png" elseif fileType == 71 then -- gif ex...
-- ======= Copyright (c) 2003-2011, Unknown Worlds Entertainment, Inc. All rights reserved. ======= -- -- lua\DamageTypes.lua -- -- Created by: Andreas Urwalek (andi@unknownworlds.com) -- -- Contains all rules regarding damage types. New types behavior can be defined BuildDamageTypeRules(). -- -- Important c...
local turtle = _G.turtle local function doCommand(command, moves) local function format(value) if type(value) == 'boolean' then if value then return 'true' end return 'false' end if type(value) ~= 'table' then return value end local str for k,v in pairs(value) do if not str then str = '{ ...
local L = BigWigs:NewBossLocale("Neltharions Lair Trash", "koKR") if not L then return end if L then L.breaker = "막돌 파괴자" L.hulk = "악성수정 괴수" L.gnasher = "돌가죽 뾰족니악어" L.trapper = "돌갑옷 속박투사" end L = BigWigs:NewBossLocale("Rokmora", "koKR") if L then L.warmup_text = "로크모라 활성화" L.warmup_trigger = "나바로그? 이 배신자! 감히 침입자...
local map = vim.api.nvim_buf_set_keymap local file = vim.fn.expand('%') --compile map(0, "n", "<Leader>c", ":te pdflatex " .. file .. "<CR>", {noremap = true, silent = true}) --execute map(0, "n", "<Leader>e", ":!zathura " .. file:gsub(".tex", ".pdf&<CR><CR>"), {noremap = true, silent = true})
Config = {} local configFrame, titleLabel, versionLabel, contributorsLabel, separator, generalOptionsLabel, showWaitingRoomCheckbox, showWaitingRoomLabel, muteSoundsCheckbox, muteSoundsLabel, modulesFrame local function UpdateConfigFrameValues() showWaitingRoomCheckbox:SetChecked(REPORTED2_PREFS...
RaidJobsTweakData = RaidJobsTweakData or class() -- Lines: 5 to 17 function RaidJobsTweakData:init(tweak_data) self.challenges = {} self:_init_weapon_challenges(tweak_data) self:_init_mask_challenges(tweak_data) end -- Lines: 21 to 90 function RaidJobsTweakData:_init_weapon_challenges(tweak_data) table.insert(se...
yavin4_angler_giant_neutral_medium_boss_01 = Lair:new { mobiles = {{"giant_angler",1}}, bossMobiles = {{"mad_angler",1}}, spawnLimit = 15, buildingsVeryEasy = {"object/tangible/lair/base/antpile_dark.iff"}, buildingsEasy = {"object/tangible/lair/base/antpile_dark.iff"}, buildingsMedium = {"object/tangible/lair/ba...
main = { love = {} } function main.load() --requires-- dofile("app0:/controls.lua") --dofile("app0:/gameB.lua") --dofile("app0:/gameBmulti.lua") --dofile("app0:/gameA.lua") dofile("app0:/menu.lua") dofile("app0:/failed.lua") dofile("app0:/rocket.lua") vsync = true autosize() ...
local config = {} function config.nvim_treesitter() vim.api.nvim_command('set foldmethod=expr') vim.api.nvim_command('set foldexpr=nvim_treesitter#foldexpr()') require'nvim-treesitter.configs'.setup { -- list install ensure_installed = "maintained", -- ensure_installed = { "bash", "c", "make", "cpp",...
csc = {} csc.config = {} include("cl_csc_config.lua") net.Receive("csc.newMessage", function() local id = net.ReadString() local name = net.ReadString() local text = net.ReadString() chat.AddText(Color(25, 25, 220), "["..id.."] ", Color(25, 220, 25), name..": ", Color(235, 235, 235), text) end)
local finders = require('telescope.finders') local previewers = require('telescope.previewers') local pickers = require('telescope.pickers') -- Create a new finder. -- This finder, rather than taking a Lua list, -- generates a shell command that should be run. -- -- Each line of the shell command is converted to an...