content
stringlengths
5
1.05M
local config = require('config'); local party = require('party'); local actions = require('actions'); local packets = require('packets'); local buffs = require('behaviors.buffs') local healing = require('behaviors.healing'); local zones = require('zones'); local spell_levels = {}; return { tick = function(self) ...
msg = {"децималу", "децималe"}
libdirs { 'lib' } links { 'ws2_32', 'avutil', 'swresample' }
-- Copyright (c) 2016-present, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. local CrossingEas...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
-- util.lua: Shared utility functions -- Namespace local util = {} -- Error, type checking do local errfmt = "bad argument #%s to '%s' (%s expected, got %s)" local function checktypelist(t,a1,...) if a1 ~= nil then return t == a1 or checktypelist(t,...) end end function util.argcheck(v...
print("not done yet")
local _G = _G module('passion.graphics') -- The following code is based *heavily* on pekka (Pekka Karjalainen)'s work. -- I could not have done it without it. ------------------------------------------ -- MATRIX STUFF -- ------------------------------------------ local Matrix = _G.class('Mat...
local utils = require "utils" local mjlib = require "mjlib" local M = {} function M.get_tips(cards) local begin_tbl = {} local ting_tbl = M.get_ting_cards(cards) for card,_ in pairs(ting_tbl) do local begin = math.floor((card-1)/9)*9+1 begin_tbl[begin] = true end if not next(ting_...
object_tangible_meatlump_reward_mtp_meatlump_graffiti_02 = object_tangible_meatlump_reward_shared_mtp_meatlump_graffiti_02:new { } ObjectTemplates:addTemplate(object_tangible_meatlump_reward_mtp_meatlump_graffiti_02, "object/tangible/meatlump/reward/mtp_meatlump_graffiti_02.iff")
local _, private = ... -- Libs -- local oUF = private.oUF -- RealUI -- local RealUI = private.RealUI local db local UnitFrames = RealUI:GetModule("UnitFrames") UnitFrames.focustarget = { create = function(self) self.Name = self.overlay:CreateFontString(nil, "OVERLAY") self.Name:SetPoint("BOTTOMLE...
local LrBinding = import 'LrBinding' local LrView = import 'LrView' iPhotoUploadExportDialogSections = {} function iPhotoUploadExportDialogSections.sectionsForBottomOfDialog( f, propertyTable ) local f = LrView.osFactory() local bind = LrView.bind local share = LrView.share local result = { ...
function onCreate() -- background shit makeLuaSprite('background', 'stages/garcello-stage-background', -500, -300); addLuaSprite('background', false); scaleObject('background', 1.0, 1.0); makeLuaSprite('smoke', 'stages/garcello-stage-smoke', -500, -300); addLuaSprite('smoke', false); scaleObject('smoke', 1.0, ...
----------------------------------- -- -- Zone: Silver_Sea_Remnants -- ----------------------------------- local ID = require("scripts/zones/Silver_Sea_Remnants/IDs") ----------------------------------- function onInitialize(zone) end; function onZoneIn(player,prevZone) local cs = -1; player:addTempItem(5401...
roomSetting_new= { name="roomSetting_new",type=0,typeName="View",time=0,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft, { name="shiled",type=0,typeName="Image",time=112894910,x=28,y=476,width=1280,height=720,nodeAlign=kAlignTopLeft,visible=1,fillParentW...
--[[ Copyright (c) 2013, Ricky Gall All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the follo...
WireDermaExts = {} language.Add("wire_model", "Model:") -- Shortcut functions for Wire tools to make their model select controls -- TODO: redo category system function ModelPlug_AddToCPanel(panel, category, toolname, textbox_label, height) local list = list.Get("Wire_" .. category .. "_Models") if table.Coun...
local cjson = require("cjson.safe") local io = io local ngx = ngx local tostring = tostring local string = string local table = table local pairs = pairs -- this is the Lua representation of Configuration struct in internal/ingress/types.go local configuration_data = ngx.shared.configuration_data local certificate_da...
--[[ Big Numbers library V1.0 - 1/19/2021 by Chris This is a library to handle large numbers, without losing percision. You can do math on 100-digit numbers! Setup: ---------------- * Add the _BigNumbers file to your script as a custom project. * require() the _BigNumbers file, to allow your script to acce...
return {'beeldenstorm','beek','beekbezinking','beekdal','beeld','beeldafstand','beeldband','beeldbepalend','beeldbeschrijving','beeldbewerking','beeldbuis','beeldcombinatie','beeldcultuur','beelddrager','beeldenaar','beeldencollectie','beeldend','beeldendienaar','beeldendienst','beeldenexpositie','beeldengalerij','beel...
project "Flask" location "./" targetname "flask" filter "configurations:Debug" kind "ConsoleApp" filter "configurations:Release" kind "WindowedApp" filter {} language "C++" cppdialect "C++20" targetdir "../bin/%{cfg.buildcfg}" objdir "../build/%{cfg.buildcfg}/%{prj.name}" staticruntime "Off" --MultiThrea...
CombuctorVersion = nil CombuctorDB2 = { ["global"] = { }, ["version"] = "6.0.5", ["profiles"] = { ["Cervus - Frostmourne"] = { ["inventory"] = { ["h"] = 512, ["position"] = { "RIGHT", -- [1] }, ["showBags"] = false, ["exclude"] = { ["All"] = { "All", -- [1] ...
ENT.Type = "Anim" ENT.Base = "sent_kgren_base" ENT.PrintName = "Grenade" ENT.Author = "VurtualRuler98" ENT.Contact = "steam" ENT.Purpose = "Getting more ammo!" ENT.Instructions = "Spawn. Use. Reload." ENT.Category = "Vurtual's base" ENT.Spawnable = false ENT.AdminSpawnable = false ENT.BurnTime=60 ENT.DetonateSo...
-- Autogenerated from KST: please remove this line if doing any edits by hand! local luaunit = require("luaunit") require("enum_negative") TestEnumNegative = {} function TestEnumNegative:test_enum_negative() local r = EnumNegative:from_file("src/enum_negative.bin") luaunit.assertEquals(r.f1, EnumNegative.C...
local _G = _G or getfenv(0) local GetExpansion = ShaguTweaks.GetExpansion local module = ShaguTweaks:register({ title = "MiniMap Square", description = "Draw the mini map in a squared shape instead of a round one.", enabled = nil, }) Minimap:SetMaskTexture("Textures\\MinimapMask") module.enable = function(self...
object_tangible_quest_mauler_stronghold_terminal = object_tangible_quest_shared_mauler_stronghold_terminal:new { } ObjectTemplates:addTemplate(object_tangible_quest_mauler_stronghold_terminal, "object/tangible/quest/mauler_stronghold_terminal.iff")
local pn = {} local function divisors(n) local res = {} for i = 1, n - 1 do if math.floor(n / i) == (n / i) then table.insert(res, i) end end return res end function pn.aliquot_sum(n) local div = divisors(n) local sum = 0 for _, v in ipairs(div) do sum...
local api,lsp,util = vim.api,vim.lsp,vim.lsp.util local window = require('lspsaga.window') local config = require('lspsaga').config_values local hover = {} local call_back = function (_,method,result) vim.lsp.util.focusable_float(method, function() if not (result and result.contents) then return end ...
-- Dimensional Substation -- -- Entity -- local dS = {} dS.type = "electric-pole" dS.name = "DimensionalSubstation" dS.icon = "__Mobile_Factory_Graphics__/graphics/icones/DimensionalSubstation.png" dS.icon_size = 32 dS.flags = {"placeable-neutral", "player-creation"} dS.minable = {mining_time = 1, result = "D...
object_mobile_azure_cabal_hoolar = object_mobile_shared_azure_cabal_hoolar:new { } ObjectTemplates:addTemplate(object_mobile_azure_cabal_hoolar, "object/mobile/azure_cabal_hoolar.iff")
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
ActiveProp = nil local LastHitObject local LastHitStruct local TraceRange = 600.0 -- todo: this needs to adjust depending on 1st/3rd camera view AddEvent("OnGameTick", function() local hitObject, hitStruct = PlayerLookRaycast() -- previously hit an object but are now looking at something else if LastHit...
local striter = require("minify.__striter") ---------------------------------------------------------------------- -- Check that we can only create striters with strings or open fds. -- ---------------------------------------------------------------------- local closed = io.open("striter.lua") closed:close() local i...
----------------------------------- -- Ability: Snake Eye -- Your next roll will automatically be a 1. -- Obtained: Corsair Level 75 -- Recast Time: 0:05:00 -- Duration: 0:01:00 or the next usage of Phantom Roll or Double-Up ----------------------------------- require("scripts/globals/settings") require("scripts/global...
--[[ 983.70,-1304.33,13.38,340.9 ]]-- local sklepy = {} local function zaladujOferte(id, npc) local q = string.format("SELECT so.itemID,so.itemName,so.itemType,so.buyprice,so.sellprice FROM psz_shops_offers so WHERE so.shop_id=%d",id) local oferta = exports['psz-mysql']:pobierzTabeleWynikow(q) setElementData(npc,"...
function slot1(slot0, slot1) for slot6, slot7 in ipairs(slot2) do slot8 = slot0:Find(slot7[1]) if type ~= slot7[2] and not IsNil(slot8) then setActive(slot8, false) end end slot0:Find("icon_bg/frame"):GetComponent(typeof(Image)).enabled = true end return { __name = "EquipmentTransformUtil", SameDrop = ...
function Glider1(State, X, Y) State:at(X, Y).state = 1; State:at(X+1, Y).state = 1; State:at(X+2, Y).state = 1; State:at(X, Y+1).state = 1; State:at(X+1, Y+2).state = 1; end; function Glider2(State, X, Y) State:at(X, Y+2).state = 1; State:at(X+1, Y+2).state = 1; State:at(X+2, Y+2).state = 1; State:at(X, Y+1)...
#!/usr/local/bin/lua local command_line = require("luarocks.command_line") program_name = "luarocks" program_description = "LuaRocks main command-line interface" commands = {} commands.help = require("luarocks.help") commands.pack = require("luarocks.pack") commands.unpack = require("luarocks.unpack") commands.build...
Inherit = 'Button' X = 1 Width = 3 Height = 1 AutoWidth = false TextColour = colours.white ActiveTextColour = colours.lightGrey WindowDocked = false Window = false OnDraw = function(self, x, y) local text = self.Text if self.WindowDocked then text = ' > ' end local textColour = self.TextColour if self.Toggl...
MusicEndTheme = { type = "MusicEndTheme", Editor = { Icon="Music.bmp", }, Properties = { bIndoorOnly=0, bOutdoorOnly=0, bStopAtOnce=0, bFadeOut=1, bPlayEnd=0, bPlayEndAtFadePoint=0, nEndLimitInSec=10, bEndEverything=0, }, InsideArea=0, } function MusicEndTheme:OnSave(stm) stm.InsideArea = s...
local PLUGIN = PLUGIN; local Clockwork = Clockwork; local cwOption = Clockwork.option; local cwConfig = Clockwork.config; local playerMeta = FindMetaTable("Player"); cwConfig:Add("admin_help_interval", 10); cwConfig:Add("use_admin_approve", true); cwConfig:Add("use_death_notifications", true); cwConfig:Add("use_cp_...
local app = require("tbd.ui.app") local main = require("tbd.ui.section.main") local M = {} function M.start() app.start(main) end function M.event(id, evt, data) app.event(id, evt, data) end return M
local AS = unpack(AddOnSkins) function AS:Blizzard_Mail() AS:SkinFrame(MailFrame, nil, nil, true) AS:CreateShadow(MailFrame) AS:SkinCloseButton(MailFrame.CloseButton) AS:StripTextures(InboxFrame) for Attachment, Num in pairs({ ["SendMailAttachment"] = 16, ["OpenMailAttachmentButton"] = 16, ['MailItem'] = 7 })...
require'lspconfig'.gopls.setup{} require'lspconfig'.solargraph.setup{} local nvim_lsp = require('lspconfig') -- Use an on_attach function to only map the following keys -- after the language server attaches to the current buffer local on_attach = function(client, bufnr) local function buf_set_keymap(...) vim.api.nvi...
-- Copyright (C) 2018-2021 by KittenOS NEO contributors -- -- Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTI...
local function map(mode, lhs, rhs, opts) local options = { noremap = true } if opts then options = vim.tbl_extend("force", options, opts) end vim.api.nvim_set_keymap(mode, lhs, rhs, options) end -- Nvim Tree map("n", "<leader>e", ":NvimTreeToggle<CR>", { silent = true }) map("n", "<leader>u", ":NvimTreeFind...
--[[ Keypads - lua/autorun/keypad.lua Copyright 2018-2020 Lex Robinson 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 applica...
-- MagicObjectEntry: skilllvarg,<effect>,time,time_varg,atk_dmg,atk_varg,atk_dmg_fix,dot_varg,dot_dmg_fix,shield,shield_varg return { [500000]={5.0,nil,20.0,1.0,-100.0,2.0,nil,-100.0,5.0}, [500001]={100.0,{220,-5},3600.0,nil,nil,nil,nil,nil,nil,10.0,5.0}, [500002]={100.0,{26,100},3600.0,nil,nil,nil,nil,nil,nil,10...
PitBull4DB = { ["namespaces"] = { ["LeaderIcon"] = { ["profiles"] = { ["Default"] = { ["layouts"] = { ["Secondary"] = { ["enabled"] = false, }, }, }, }, }, ["LibDualSpec-1.0"] = { }, ["RangeFader"] = { ["profiles"] = { ["Default"] = { ...
local meta = FindMetaTable( "Player" ); local function nChangeTeam( len, ply ) if( !ply.Joined ) then return end if( GAMEMODE:GetState() == STATE_GAME ) then return end local targ = net.ReadUInt( 4 ); if( GAMEMODE:CanChangeTeam( ply:Team(), targ ) ) then ply:SetTeam( targ ); ply:SetColorToTeam(); net.St...
-- -- Copyright 2012 Rackspace -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compli...
local mathUtils = require("mathUtils") local tableUtils = require("tableUtils") local clampLength = mathUtils.clampLength local round = mathUtils.round local physics = {} function physics.applyFriction( entity, accelerationX, accelerationY, targetVelocityX, targetVelocityY, dt) physics.applyFrictionX(entity, ac...
local find_map = function(lhs) local maps = vim.api.nvim_get_keymap('n') for _, map in ipairs(maps) do if map.lhs == lhs then return map end end end describe("stackmap", function() before_each(function() require"stackmap"._clear() pcall(vim.keymap.del, "n", "asdfasdf") end) it("can be...
-- checking of valid get index from a dictionary return { dict = "D3", is_dict = false, add = true }
local cimguimodule = 'cimgui_glfw' --set imgui directory location local ffi = require"ffi" local cdecl = require"imgui.cdefs" local ffi_cdef = function(code) local ret,err = pcall(ffi.cdef,code) if not ret then local lineN = 1 for line in code:gmatch("([^\n\r]*)\r?\n") do print(line...
local PSBT = PSBT local ZO_Object = ZO_Object local ScrollArea = ZO_Object:Subclass() local CBM = CALLBACK_MANAGER local tinsert = table.insert local tremove = table.remove local NUM_STICKY = 4 local NUM_STANDARD = 25 local STANDARD_INTERVAL = 0.5 local CENTER = CENTER ...
--- 模块功能:休眠管理 -- @module pm -- @author openLuat -- @license MIT -- @copyright openLuat -- @release 2017.10.22 module(..., package.seeall) --[[ 关于休眠这一部分的说明: 目前的休眠处理有两种方式, 一种是底层core内部,自动处理,例如tcp发送或者接收数据时,会自动唤醒,发送接收结束后,会自动休眠;这部分不用lua脚本控制 另一种是lua脚本使用pm.sleep和pm.wake自行控制,例如,uart连接外围设备,uart接收数据前,要主动去pm.wake,这样才能保证前面接收的数据不出错...
JumpingNumbers = {} JumpingNumbers.__index = JumpingNumbers function JumpingNumbers:Create(x, y, number, color) local this = { mX = x or 0, mY = y or 0, mGravity = 700, -- pixels per second mFadeDistance = 33, -- pixels mNumber = number or 0, -- to display mColor ...
local StatEntity = { initial_properties = { physical = true, pointable = true, visual = "sprite", collide_with_objects = true, textures = {"core_file.png"}, is_visible = true, nametag_color = "black", infotext = "", static_save = true, ...
require "suproxy.utils.stringUtils" require "suproxy.utils.pureluapack" local event=require "suproxy.utils.event" local logger=require "suproxy.utils.compatibleLog" local tnsPackets=require "suproxy.tns.tnsPackets" local tableUtils=require "suproxy.utils.tableUtils" local crypt= require "suproxy.tns.crypt" local ...
require "pl" -- Take a set of node ids (locals/params/fields) and turn them (if a pointer) -- into a reference or Box Variable = {} function Variable.new(node_id, is_locl) self = {} self.id = node_id self.is_locl = is_locl self.shadowed = false setmetatable(self, Variable) Variable.__index = ...
-- Blink, toggling all channels between 0 and the current color -- -- Uses an upval to hold the display state between rounds return function() local x = false return function(st) x = ~x if x then st[1]:fill(st[4],st[5],st[6],st[7]) else st[1]:fill(0,0,0,st[7] and 0) end end
return {["size"] = {["y"] = 1, ["x"] = 6, ["z"] = 6}, ["nodes"] = {[140739635806205] = {["param1"] = 205, ["name"] = "stairs:slab_stone", ["param2"] = 0}, [140743930773503] = {["param1"] = 0, ["name"] = "default:stonebrick", ["param2"] = 0}, [140748225740797] = {["param1"] = 204, ["name"] = "air", ["param2"] = 240}, [1...
-- General settings vim.wo.wrap = false -- no wraping vim.o.fileencoding = "utf-8" vim.o.mouse = "a" -- enable mouse vim.wo.number = true -- enable numbers vim.o.clipboard = "unnamedplus" -- enable clipboard vim.o.backup = false vim.o.writebackup = false vim.o.hidden = true vim.cmd('set timeoutlen=600') -- Indentation...
return { [1] = {id=1,name="xxx",one_rows={{id=1,x=2,},},multi_rows1={{id=1,x=2,},},multi_rows2={{id=1,x=2,},},multi_rows4={[1]={id=1,x=2,y=3,},},multi_rows5={{id=1,items={{id=100,x=1,},},},},multi_rows6={},multi_rows7={[1]=10,[2]=10,[3]=30,[4]=40,},}, [2] = {id=2,name="xxx",one_rows={{id=2,x=4,},},multi_rows1={{id=2,x=...
-- WaterPlane ------------------------------------------------------------------------------- if WaterPlane == nil then WaterPlane = EternusEngine.ModScriptClass.Subclass("WaterPlane") end ------------------------------------------------------------------------------- -- Called once from C++ at engine initializati...
object_mobile_dressed_dark_jedi_elder_male_bothan_03 = object_mobile_shared_dressed_dark_jedi_elder_male_bothan_03:new { } ObjectTemplates:addTemplate(object_mobile_dressed_dark_jedi_elder_male_bothan_03, "object/mobile/dressed_dark_jedi_elder_male_bothan_03.iff")
local Points = Game:addState('Points') local ffi = require('ffi') ffi.cdef[[ typedef struct { float x, y; float s, t; unsigned char r, g, b, a; } fm_vertex; ]] local incs = { 1391376, 463792, 198768, 86961, 33936, 13776, 4592, 1968, 861, 336, 112, 48, 21, 7, 3, 1 } lo...
-- Various silly tweaks needed to keep up with Blizzard's shenanigans. Not added to core because they may not be needed/relevant forever. Skada:AddLoadableModule("Tweaks", "Various tweaks to get around deficiences and problems in the game's combat logs. Carries a small performance penalty.", function(Skada, L) if Sk...
--======================================= -- filename: entities/environments/elevator.lua -- author: Shane Krolikowski -- created: Apr, 2018 -- description: Elevator entity. --======================================= local Environment = require 'entities.environments.environment' local Elevator = Environ...
local N = 10000 local sum = 0 for i = 1, N do for j = 1, N do sum = sum + i * j end end print(sum) sum = "foo"
--* character (C) local E, C, L, ET, _ = select(2, shCore()):unpack() if C.main.restyleUI ~= true then return end local _G = _G local select, unpack, pairs = select, unpack, pairs local find = string.find local GetInventoryItemQuality = GetInventoryItemQuality local GetInventoryItemTexture = GetInventoryIte...
-- listen for power events and dispatch to nameplates local addon = KuiNameplates local ele = addon:NewElement('PowerBar') -- prototype additions ######################################################### function addon.Nameplate.UpdatePower(f) f = f.parent if f.elements.PowerBar then if f.state.power_ty...
--------------------------------------------------------------------------- -- @author Uli Schlachter -- @copyright 2010 Uli Schlachter -- @widgetmod wibox.widget.systray -- @supermodule wibox.widget.base --------------------------------------------------------------------------- local wbase = require("wibox.widget.ba...
--spiral troopers-- mewmew wrote this -- inspired from kyte local event = require 'utils.event' require "modules.dynamic_landfill" require "modules.spawners_contain_biters" require "modules.satellite_score" local map_functions = require "tools.map_functions" --require "rewards" local function shuffle(tbl) local siz...
-- version: 0.7.1.20 --[[ -- Written by JJSax -- Feel free to change any code to fit your needs. Any of my code you use credit me. ]] --[[ -- todo section -- Rednet to manipulate anywhere with correct protocall mostly for being able to recall/pause/resume from a home terminal logging events make block/t...
local error = error local byte, char, find, gsub, match, sub = string.byte, string.char, string.find, string.gsub, string.match, string.sub local tonumber = tonumber local tostring, type, unpack = tostring, type, table.unpack or unpack -- The function that interprets JSON strings is separated into another file so...
--New object_tangible_loot_creature_loot_collections_shared_base_collection = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/loot/creature_loot/collections/shared_base_collection.iff" } ObjectTemplates:addClientTemplate(object_tangible_loot_creature_loot_collections_shared_base_collection...
local utils = require("utils") local lfs = require("lfs_ffi") local config = {} local configMt = {} -- Get raw data out from filename function config.readConfigData(filename) local res local tempFilename = filename .. ".saving" local tempExists = utils.isFile(tempFilename) local targetExists = utils....
local http = game:GetService("HttpService") local RunService = game:GetService("RunService") local Players = game:GetService("Players") local random = Random.new() local ServerKey = tostring(random:NextInteger(10000000, 99999999)) -- awful and unreliable way of generating a key to tie to this server, will need to be ch...
-- =========== test a* =============== --[[ local astar = require "astar" -- [=[ local m = astar.new(20, 20, true) m:set_start(0, 19) m:set_end(19, 1) m:add_block(1, 1) for i = 3, 19 do m:add_block(4, i) end for i = 1, 18 do m:add_block(1, i) end m:add_blockset({ {1,1},{1,2},{1,3},{1,4},{1,5},{1,6},{1,7},...
--[=[ @class TorsoIKUtility ]=] local IKUtility = require(script.Parent.Parent.IKUtility) local OFFSET_Y = 0.5 local TorsoIKUtility = {} local WaistYawClamper = IKUtility.GetDampenedAngleClamp(math.rad(20), math.rad(10)) local WaistPitchClamper = IKUtility.GetDampenedAngleClamp(math.rad(20), math.rad(10)) -- TODO:...
local fio = require('fio') local t = require('luatest') local g = t.group() local helpers = require('test.helper') g.before_all = function() g.cluster = helpers.Cluster:new({ datadir = fio.tempdir(), server_command = helpers.entrypoint('srv_basic'), cookie = helpers.random_cookie(), ...
local tsutils = require('nvim-treesitter.ts_utils') local M = {} -- Shorthand for replace_termcodes function M.rtc(str) return vim.api.nvim_replace_termcodes(str, true, false, true) end -- Makes node text fit on one line function M.node_text(node) return table.concat(tsutils.get_node_text(node), ', ') end -...
require("config") package.projectPath='../Samples/classification/' package.path=package.path..";../Samples/classification/lua/?.lua" --;"..package.path require("common") require("module") require("RigidBodyWin/subRoutines/Constraints") package.path=package.path..";../../taesooLib/Samples/scripts/?.lua" --;"..package...
--color parsing, formatting and computation. --Written by Cosmin Apreutesei. Public Domain. --HSL-RGB conversions from Sputnik by Yuri Takhteyev (MIT/X License). local function clamp01(x) return math.min(math.max(x, 0), 1) end local function round(x) return math.floor(x + 0.5) end --clamping ---------------------...
if(settings.startup["alternative-science-r1"].value == 'Yes') then data:extend({ --RECIPE {--Wood Gear Wheel type = "recipe", name = "wood-gear-wheel-r1", icon = "__RExtended__/graphics/icons/bio-red/wood-gear-wheel-r1.png", icon_size = 32, energy_required = 0.5, enabled = true, ingredients = {...
function element_0(shader, t_base, t_second, t_detail) -- [0] 256x256 => 64x64 shader:begin("stub_notransform_build", "bloom_luminance_1") :fog (false) :zb (false, false) shader:dx10texture ("s_image", "$user$bloom1") shader:dx10sampler ("smp_rtlinear") end function element_1(shader, t_base, t_second, t...
function Armory:GetIsAdvanced() return self:GetTechId() == kTechId.AdvancedArmory end if Server then function Armory:GetShouldResupplyPlayer(player) if not player:GetIsAlive() then return false end local stunned = HasMixin(player, "Stun") and player:GetIsStunned() ...
require("input") require("util") local analytics = require("analytics") local floor = math.floor local ceil = math.ceil local shake_arr = {} local shake_idx = -6 for i=14,6,-1 do local x = -math.pi local step = math.pi * 2 / i for j=1,i do shake_arr[shake_idx] = (1 + math.cos(x))/2 x = x + step sha...
print("Hello lua")
sign1 = " " operat = {"+", "-"} factor1 = math.random(15) + 4 factor2 = math.random(99 - factor1)*10 + 91 factor3 = math.random(15) + 4 ind = math.random(2) if (ITEM == 1) then sign1 = ":" sign2 = operat[ind] if (ind == 1) then value = (factor2 - factor1) * factor3 else value = (factor2 + factor1...
while true do computer.beep(440,0.2) computer.beep(700,0.2) end
------[[Kirby Morph made by: DoogleFox, for kirbystar1996]]------------------------------------------------------------------------------------------------------------------------------------------------- user = "lordsheen" if script.Parent.className ~= "HopperBin" then bin = Instance.new("HopperBin") bin.Parent =...
local hpLerpSpeed = 0.4 local distStartFade = 800 local distEndFade = 1000 distStartFade = distStartFade * distStartFade local distEndFadeFactor = 1 / (distEndFade * distEndFade - distStartFade) local function CalcHealthFactor( ply ) ply.lastHealthFactor = ply.lastHealthFactor or 1 local actualHP = math.Clamp...
local CorePackages = game:GetService("CorePackages") local Roact = require(CorePackages.Roact) local FFlagLuaInviteModalEnabled = settings():GetFFlag("LuaInviteModalEnabledV384") local isSelectionGroupEnabled = require(script:FindFirstAncestor("ShareGame").isSelectionGroupEnabled) local BUTTON_IMAGE = "rbxasset://te...
-- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*- -- vim: ts=4 sw=4 ft=lua noet ---------------------------------------------------------------------- -- @author Daniel Barney <daniel@pagodabox.com> -- @copyright 2015, Pagoda Box, Inc. -- @doc -- -- @end -- Created : 27 May 2015 by Daniel Barne...
-- File selector for modelView app namespace "standard" local flat = require "engine.flat" local ui2 = require "ent.ui2" local DisplayUi = require "app.debug.modelView.display" local FileListUi = classNamed("FileListUi", ui2.ScreenEnt) function FileListUi:fileSearch(ents, dirpath) for i,filename in ipairs(lovr.fil...
if(GetRealmName() == "Ashkandi")then WP_Database = { ["Xyp"] = "ST:802/99%SB:839/99%SM:1029/99%", ["Huskers"] = "ST:805/99%SB:840/99%SM:1161/99%", ["Smallp"] = "ST:804/99%SB:859/99%SM:1069/99%", ["Yina"] = "ST:797/99%SB:837/99%LM:988/98%", ["Havvokk"] = "ST:795/99%SB:842/99%SM:1098/99%", ["Nageed"] = "ET:703/91%SB:798/...
--[[ * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. ]]-- local ...