content
stringlengths
5
1.05M
local depth = ECS.Component(function(e, depth) e.depth = depth or 0 end) return depth
net.Receive("ClothingSystem.SendLua.BigCode", function() local code = net.ReadString() RunString(code, "ClothingSystem.SendLua.BigCode", true) end)
--- class-based OO module for Lua <a target="_blank" href="https://github.com/siffiejoe/lua-classy">documentation</a> -- @classmod classy -- cache globals local assert = assert local V = assert( _VERSION ) local setmetatable = assert( setmetatable ) local select = assert( select ) local pairs = assert( pairs ) local i...
if (SERVER) then AddCSLuaFile() end --AK-74 sound.Add({ name="Weapon_AK74.Single", volume = 1.0, pitch = {100,105}, sound = "weapons/ak74/AK74_fp.wav", level = 145, channel = CHAN_STATIC }) sound.Add({ name="Weapon_AK74.SingleSilenced", volume = 1.0, pitch = {100,105}, sound = "weapons/ak74/AK74_suppressed_f...
local M = {} local xtpipeslib = require "make4ht-xtpipes" local domfilter = require "make4ht-domfilter" function M.prepare_parameters(settings, extensions) settings.tex4ht_sty_par = settings.tex4ht_sty_par ..",tei" settings = mkutils.extensions_prepare_parameters(extensions, settings) return settings end funct...
-- Configure DAP local Log = require "lvim.core.log" local DAP = {} DAP.config = function() if not lvim.builtin.dap.active then return end local status_ok, dap = pcall(require, "dap") if not status_ok then Log:get_default().error "Failed to load Debug Adapter Protocol (dap) plugin" return end ...
local function load_providers() return { conditions = require("galaxyline.condtions"), vcs = require("galaxyline.providers.vcs"), fileinfo = require("galaxyline.providers.fileinfo"), buffer = require("galaxyline.providers.buffer"), search = require("galaxyline.providers.searc...
local read = require("lua.read") local lex = require("lua.lex") local filename = assert(..., "usage: luajit run-lex.lua <filename>") local reader = read.file(filename) local ls = lex(reader, function() end) repeat ls.step() print(ls.line ..":"..ls.col, ls.token, ls.value or '') until ls.token == "TK_eof"
local LibFunctions = {} function LibFunctions.multiply_unit_value(table, propertyname, factor) local count, unit = (table[propertyname]):match("([%d\\.]+)([%a]+)") if count and factor and unit then table[propertyname] = (count*factor) .. unit end end return LibFunctions
PLUGIN:set_global('Inventories') require_relative 'cl_hooks' require_relative 'sv_hooks' require_relative 'sh_hooks'
local Canvas = require("tofu.graphics").Canvas local Class = require("tofu.util").Class local Timer = require("tofu.util").Timer local Main = Class.define() function Main:__ctor() Canvas.palette("pico-8") self.timerA = Timer.new(0.5, 50, function() --local o = Object.new() self.x = math.random() * Ca...
vim.fn['quickui#menu#reset']() local lines = {} table.insert(lines, 'line') table.insert(lines, 'line') table.insert(lines, 'line') local opts = { index = -1, title = 'Select', h = 30, w = 50, } local idx = vim.fn['quickui#listbox#inputlist'](lines, opts) print(idx) -- let content = [ -- \ [ 'ec...
-- simple spleef plugin for cuberite -- as usual, by DaPorkchop_ -- yeet NAME = "Spleef" VERSION_NUMBER = 1 VERSION = "v0.0.1-SNAPSHOT" PLUGIN = nil -- plugin instance LOCAL_FOLDER = nil -- plugin folder CONFIG_FILE = nil -- config file path WORLD_NAME = nil ...
local class = require 'stuart.class' -- Represents a row-oriented distributed Matrix with no meaningful row indices. local RowMatrix = class.new() function RowMatrix:_init(rows, nRows, nCols) self.rows = rows self.nRows = nRows or 0 self.nCols = nCols or 0 end function RowMatrix:checkNumColumns(cols) assert(...
----------------------------------------------------------------------------------------- -- -- Twitter.lua -- ----------------------------------------------------------------------------------------- local composer = require( "composer" ) local scene = composer.newScene() -- include Corona's "widget" library local w...
local focus = 0 local conv = 0 local talk_start = 0 function onCreatureSay(cid, type, msg) local msg = string.lower(msg) if(msgcontains(msg, 'yes') and not isInArray(states, talkState[talkUser]) and talkState[talkUser] == 0 and focus == cid) then if getPlayerStorageValue(cid, 200) >= 1 then selfSay('I h...
-- Copyright 2013 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' 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...
local failPosition = Position(32066, 32192, 7) function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player then return true end if player:isPremium() then return true end failPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE) player:teleportTo(failPosition) retu...
-- adapted from https://github.com/stevedonovan/Microlight#classes (MIT License) -- external API adapted roughly to https://github.com/torch/class local M = {} function M.istype(obj, super) return super.classof(obj) end function M.new(base) local klass, base_ctor = {}, nil if base then for k,v in pairs(bas...
local bit=require("bit") require "suproxy.utils.stringUtils" local _INTLEN=4 local _DEFAULT_ENDIAN="<" local function packDouble (e,l,n) local result local sign = 0 if n < 0.0 then sign = 0x80 n = -n end local mant, expo = math.frexp(n) if mant ~= mant then result = string...
fx_version "adamant" game "gta5" author "KattrigerKatta" server_only "yes" server_script "server.lua"
--[[ ComponentService ================== Service for Component retrieval. A Componnet is an object in the game that you want to apply functionality to. To do this normally, you may find yourself putting Scripts into a Model, then copy/pasting the Model around the game. This is a bad practice, as when you...
function love.conf(t) t.version = "11.3" t.window.width = 960 t.window.height = 540 t.window.vsync = 1 t.window.msaa = 0 t.console = true end
minetest.log("warning", "[technic] integration-test enabled!") -- those mods have to be present local assert_mods = { "technic", "pipeworks" } -- those nodes have to be present local assert_nodes = { "technic:admin_anchor" } -- defered integration test function minetest.register_on_mods_loaded(function() minete...
ESX = nil local ShopItems = {} local hasSqlRun = false TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) -- Load items AddEventHandler('onMySQLReady', function() hasSqlRun = true LoadShop() end) -- extremely useful when restarting script mid-game Citizen.CreateThread(functio...
local table_insert = table.insert table.BLANK = {} setmetatable(table.BLANK, { __index = function (_, k) error("Attempt to read undeclared variable: "..k) end, __newindex = function (_, k) error("Attempt to write undeclared variable: "..k) end, }) table.empty = function (t) if not t then return...
local Fuse = ACF.RegisterFuse("Contact") Fuse.desc = "This fuse triggers upon direct contact against solid surfaces." Fuse.Primer = 0 function Fuse:OnLoaded() -- Configuration information for things like acfmenu. self.Configurable = { { Name = "Primer", -- name of the variable to change DisplayN...
function all(t) local i = 0 return function() i = i + 1; return t[i] end end function map(f, t) local result = {} for _, v in ipairs(t) do table.insert(result, f(v)) end return result end function setxy(m, x, y, v) if m[y] == nil then m[y] = {} end m[y][x] = v end function getxy(m, x, y) ...
local M = {} local strwidth = vim.fn.strwidth local duplicates = {} function M.reset() duplicates = {} end --- This function marks any duplicate buffers granted --- the buffer names have changes ---@param buffers Buffer[] ---@return Buffer[] function M.mark(buffers) return vim.tbl_map(function(current) -- D...
function DoSubSystemDemand_Hiigaran() -- based on the highest demand determine what subsystems to ask for -- if fighter demand is high then request that -- if corvette and frigate demand is high then research modules -- if carrier/builders then capital ship -- determine FIGHTERPRODUCTION demand CpuBuild...
-- Copyright 2018 Anurag Ranjan and the Max Planck Gesellschaft. -- All rights reserved. -- This software is provided without any warranty. -- By using this software you agree to the terms of the license file -- in the root folder. require 'nn' require 'nngraph' require 'cunn' require 'cudnn' require 'stn' local mode...
return { { id = "将棋トーク_G1", content = function(shiori, ref) return shiori:talk("将棋トーク") end, }, { id = "将棋トーク_G1", content = [[ \s[きょとん]将棋倶楽部24がJavaだけでなくhtml5+javascriptにも対応したみたい。 \s[素]色々機能が追加されていて、今後の機能追加も含めると 2022年頃にはユーザー数、機能面両方でトップの対局サイトになるかも。 ]], }, { id = "将棋トーク_G1", ...
ITEM.name = "Pork Stew" ITEM.foodDesc = "A bowl of Pork and Mushroom Stew" ITEM.model = "models/z-o-m-b-i-e/metro_2033/station_props/m33_plate_11.mdl" ITEM.mustCooked = true ITEM.quantity = 1 ITEM.hungerAmount = 140000
--[[ Draggable UI Item Enables dragging of an object (not necessariliy the dragger) ]] local lib local dragger dragger = { drag_target = dragger, dragging = false, offset_x = 0, offset_y = 0, update = function(self, event) if (self.dragging) then self.drag_target.x = self.offset_x + love.mouse.getX() se...
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** --require 'Camping/camping_fuel' ---@class ISBBQMenu ISBBQMenu = {} local function predicateNotEmpty(item) return item:getUsedDelt...
require'xrowset' local path = require'path' local fs = require'fs' local _ = string.format --rowsets -------------------------------------------------------------------- local rowsets = virtual_rowset(function(rs) rs.fields = { {name = 'name'} } rs.pk = 'name' function rs:select_rows(res, params) res.rows = ...
---@brief [[ --- This module defines an idiomatic way to create enum classes, similar to --- those in java or kotlin. There are two ways to create an enum, one is with --- the exported `make_enum` function, or calling the module directly with the --- enum spec. --- --- The enum spec consists of a list-like table whose ...
local PANEL = {} Derma_Hook(PANEL, "Paint", "Paint", "ListViewHeaderLabel") Derma_Hook(PANEL, "ApplySchemeSettings", "Scheme", "ListViewHeaderLabel") Derma_Hook(PANEL, "PerformLayout", "Layout", "ListViewHeaderLabel") function PANEL:Init() -- end derma.DefineControl("DListViewHeaderLabel", "", PANEL, "DLa...
-- $Id: //depot/Projects/StarWars_Expansion/Run/Data/Scripts/GameObject/Demo_Felucia_Controller.lua#17 $ --///////////////////////////////////////////////////////////////////////////////////////////////// -- -- (C) Petroglyph Games, Inc. -- -- -- ***** ** * * -- * ...
function onTargetCreature(creature, target) return doChallengeCreature(creature, target) end local combat = Combat() combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) combat:setArea(createCombatArea(AREA_SQUARE1X1)) combat:setCallback(CALLBACK_PARAM_TARGETCREATURE, "onTargetCreature") function onCastSpel...
local de=(function(n,e)return(n/e);end)local e=(function(e,n)return(e<n);end)local R=(function(e,n)return(e..n);end)local T=(function(n,e)return(n+e);end)local H=(function(n,e)return(n%e);end)local I=(function(n,e)return(n-e);end)local e=(function(e,n)return(e^n);end)local e=(function(e,n)return(e>=n);end)local m=(func...
describe('Test tomoauto config library functions', function () local utils setup(function () utils = require('tomoauto.utils') end) teardown(function () utils = nil end) --before_each(function () --end) --after_each(function () --end) describe('Should be able to check type.', function()...
local ffi = require("ffi") local WTypes = require("WTypes") local IUnknown = require("IUnknown") local dxgiformat = require("dxgiformat") local d2dBaseTypes = require("d2dBaseTypes") local d3d10_1 = require("d3d10_1") local DCommon = require("DCommon") local Lib = ffi.load("d2d1") --[[ --]] ffi.cdef[[ // // Forw...
object_draft_schematic_furniture_furniture_couch_rustic = object_draft_schematic_furniture_shared_furniture_couch_rustic:new { } ObjectTemplates:addTemplate(object_draft_schematic_furniture_furniture_couch_rustic, "object/draft_schematic/furniture/furniture_couch_rustic.iff")
-- -*- lua -*- local oo = require("oo") local net = require("net") local cl = require("cl") local event = require("event") local task = require("task") local Client = oo.class("net.telnet.Client", task.Task) local opt = cl.Options.new({ q = { name = "quit", arg = "key"...
getglobal game getfield -1 Workspace getfield -1 Events getfield -1 ExpansionPurchase getfield -1 InvokeServer pushvalue -2 pushnumber 5 pushnumber 1 pcall 3 1 0
---- -- Handles world functionality. -- -- _**NB!** Only available when_ `TheWorld` _global is available._ -- -- **Source Code:** [https://github.com/dstmodders/dst-mod-sdk](https://github.com/dstmodders/dst-mod-sdk) -- -- @module SDK.World -- @see SDK -- @see SDK.World.SaveData -- @see SDK.World.Season -- @see SDK.Wor...
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- modifier_dark_seer...
return { [1022200001] = { _type_='TreasureBox',id=1022200001,key_item_id=1022300001,open_level={level=5,},use_on_obtain=true,drop_ids={1,},choose_list={},}, [1022300001] = { _type_='TreasureBox',id=1022300001,open_level={level=5,},use_on_obtain=true,drop_ids={},choose_list={},}, [1010010003] = { _type_='TreasureBox',id...
-- @description Add prefix or suffix to regions in time selection -- @author Aaron Cendan -- @version 1.2 -- @metapackage -- @provides -- [main] . > acendan_Add prefix or suffix to regions in time selection.lua -- @link https://aaroncendan.me -- @changelog Fixed isolated pre/suff usage -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~...
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) https://creativecommons.org/licenses/by-nc-nd/3.0/legalcode --]] function cwPlayerReport:Report(player) local toSend = { steamID = play...
----------------------------------- -- WORKSPACE CONFIGURATIONS ----------------------------------- workspace "ReachOut" architecture "x86" startproject "sandbox" configurations { "Debug", "Release" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" project "reachout" l...
cunn = nil require "cutorch" require "nn" require "cunn.THCUNN" require('cunn.test') require('cunn.DataParallelTable') nn.Module._flattenTensorBuffer['torch.CudaTensor'] = torch.FloatTensor.new nn.Module._flattenTensorBuffer['torch.CudaDoubleTensor'] = torch.DoubleTensor.new -- FIXME: change this to torch.HalfTensor...
function getClientInfo() return { name = "Test Time Axis (Lua)", category = "Tests", author = "Dreamtonics", versionNumber = 1, minEditorVersion = 65536 } end function resetTimeAxis(dst) local allTempoMarks = dst:getAllTempoMarks() local allMeasureMarks = dst:getAllMeasureMarks() for i =...
require "UnLua" local M = Class() function M:Test(V) self.V = V end return M
--PNG Floppy Disk Drive controlling program. local args = {...} --Get the arguments passed to this program if #args < 3 or args[1] == "-?" then printUsage( "disk write <source> <destination> [color]", "Writes a file to a png image", "disk read <source> <destination>", "Reads a png image to a file", "disk ...
function init() --Instantly spawn the pet when first created storage.spawnTimer = storage.spawnTimer and 0.5 or 0 storage.petParams = storage.petParams or {} self.monsterType = config.getParameter("shipPetType", "petcat") self.spawnOffset = config.getParameter("spawnOffset", {0, 2}) message.setHandler("ac...
-- Default web content local url = [[data:text/html,<!DOCTYPE html> <html> <body> <h1>Welcome !</h1> <p>You could specify an URL to open as a command line argument.</p> </body> </html> ]] -- Parse command line arguments local urlArg = arg[1] if urlArg and urlArg ~= '' then if urlArg == '-h' or urlArg == ...
function linkMono() libdirs {[[c:/Program Files/Mono/lib/]]} end project "csharp" libType() files { "src/**.c", "src/api.txt", "src/**.cpp", "src/**.h", "src/**.inl", "genie.lua" } includedirs { "../csharp/src", [[c:/Program Files/Mono/include/mono-2.0]] } buildoptions { "/wd4267", "/wd4244" } defi...
local t = Def.ActorFrame{}; if not GAMESTATE:IsCourseMode() then return t; end; t[#t+1] = Def.Sprite { InitCommand=cmd(Center); BeforeLoadingNextCourseSongMessageCommand=function(self) self:LoadFromSongBackground( SCREENMAN:GetTopScreen():GetNextCourseSong() ) end; ChangeCourseSongInMessageCommand=cmd(scale_or_cro...
require('cmp').register_source('ultisnips', require('cmp_nvim_ultisnips').create_source()) vim.cmd[[ command! -nargs=0 CmpUltisnipsReloadSnippets lua require('cmp_nvim_ultisnips').reload_snippets() ]]
local context = G.botContext local Panels = context.Panels Panels.Turning = function(parent) context.macro(1000, "Turning / AntiIdle", nil, function() context.turn(math.random(1, 4)) end, parent) end Panels.AntiIdle = Panels.Turning Panels.AttackSpell = function(parent) context.macro(500, "Auto a...
return {'ntg'}
id = 'V-38494' severity = 'low' weight = 10.0 title = 'The system must prevent the root account from logging in from serial consoles.' description = 'Preventing direct root login to serial port interfaces helps ensure accountability for actions taken on the systems using the root account.' fixtext = [=[To restrict root...
--[[ Based on pun.lua, Copyright 2016 topkecleon <drew@otou.to> This code is licensed under the GNU AGPLv3. ]]-- local pun = {} local mattata = require('mattata') function pun:init(configuration) pun.arguments = 'pun' pun.commands = mattata.commands(self.info.username, configuration.commandPrefix):c('pun'...
--[[ Mod: Mod Utility Author: MagicGonads Library to allow mods to be more compatible and expand capabilities. --]] ModUtil = { Mod = { }, Args = { }, String = { }, Table = { }, Path = { }, Array = { }, IndexArray = { }, Entangled = { }, Metatables = { } } -- Extended Global Utilities (assuming lua 5.2) ...
require "specs.busted" require "specs.Cocos2d-x" require "lang.Signal" require "Logger" Log.setLevel(LogLevel.Warning) local Promise = require("Promise") local IAP = require("iap.IAP") local Manager = require("iap.Manager") local Ticket = require("iap.Ticket") describe("IAP", function() local subject local ...
local memo = {} local function make_table(k) local t = {} local a, A = ('a'):byte(), ('A'):byte() for i = 0,25 do local c = a + i local C = A + i local rc = a + (i+k) % 26 local RC = A + (i+k) % 26 t[c], t[C] = rc, RC end return t end local function caes...
local utils = require 'utils' flowtypes = { MIASMA = 0, MIST = 1, MIST2 = 2, DUST = 3, LAVAMIST = 4, SMOKE = 5, DRAGONFIRE = 6, FIREBREATH = 7, WEB = 8, UNDIRECTEDGA...
local find = string.find -- entries must have colons to set the key and value apart local function check_for_value(value) for i, entry in ipairs(value) do local ok = find(entry, ":") if not ok then return false, "key '"..entry.."' has no value" end end return true end local function check_metho...
local function get_closest_flag(pos,flags) local min_dist = nil local idx = 0 for i, p in ipairs(flags) do if min_dist == nil then min_dist = vector.distance(p,pos) idx = i else local dist = vector.distance(p,pos) if dist < min_dist then min_dist = dist idx = i end end end return flags...
---------------------------------------- -- 对 ccexp.WebView 进行必要的封装 -- quick/zr/WebView.lua -- -- 作者:zrong -- 创建日期:2015-04-01 ---------------------------------------- local isWebView = nil if device.platform == 'android' or device.platform == 'ios' then if ccexp.WebView then isWebView = true end else isWebView = ...
help( [[ Pandas Network Analysis - dataframes of network queries, quickly ]]) local version = "0.4" local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/virtualenv-3.5/Pandana" pushenv("VIRTUAL_ENV", base) prepend_path("PATH", pathJoin(base, "bin")) prepend_path("LD_LIBRARY_PATH", pathJoin(base, "lib64/python3....
local ngx_handle = require("bin.utils.ngx_handle") local args_util = require("bin.utils.args_util") local logger = require("bin.utils.logger") local _M = {} _M.help = [[ Usage: orange reload [OPTIONS] Reload Orange with configurations(prefix/orange_conf/ngx_conf). Options: -p,--prefix (optional string) override...
local class = require 'middleclass' local world = require 'world' local timer = require 'timer' local entity = require 'entity' local particles = require 'particles' local player = class('player', entity) local coinVX = love.audio.newSource("sound/coinpickup.wav", "static") coinVX:setVolume(0.3) local hitVX = love.aud...
function trim(s) return (s:gsub("^%s*(.-)%s*$", "%1")) end commandArray = {} tc=next(devicechanged) v=tostring(tc) if (v:sub(1,3) == 'PIR') then c="Group:"..trim(v:sub(4)) commandArray[c] = 'On' tmess = c..' ==> On at time 0' print(tmess) end return commandArray
return require "lovesnow.db.redis"
-- DASHBOARD local g = vim.g local fn = vim.fn g.dashboard_disable_at_vimenter = 0 -- dashboard is disabled by default g.dashboard_disable_statusline = 1 g.dashboard_default_executive = "telescope" g.dashboard_custom_header = { " ", " ", " ...
require "Adaptor" require "oil" oil.main(function() local orb = oil.init() ------------------------------------------------------------------------------ orb:loadidl [[ module Concurrent { interface Server { long do_something_for(in long seconds); }; }; ]] --------------------------------------------...
C_ActionBar = {} ---@param flyoutID number ---@return number[] slots ---[Documentation](https://wow.gamepedia.com/API_C_ActionBar.FindFlyoutActionButtons) function C_ActionBar.FindFlyoutActionButtons(flyoutID) end ---@param petActionID number ---@return number[] slots ---[Documentation](https://wow.gamepedia.com/API_...
local decorator = system_load("builtin/decorator.lua")() -- expand as needed pipeworld_exchange_types = { "external_blob_pipe", "video_buffer_handle" } local function cell_anchor( cell, anchor, point, dx, dy, w, h, dt, interp) link_image(cell.bg, anchor, point) image_inherit_order(cell.bg, true) order_image(ce...
function onCreate() for i = 0, getProperty('unspawnNotes.length')-1 do if getPropertyFromGroup('unspawnNotes', i, 'noteType') == 'EpicOrange Note' then setPropertyFromGroup('unspawnNotes', i, 'texture', 'OrangeBone_assets'); setPropertyFromGroup('unspawnNotes', i, 'missHealth', 0.2); if getPropertyFromGroup...
---@type Ellyb local Ellyb = Ellyb(...); if Ellyb.PooledObjectMixin then return end -- Lua imports local newproxy = newproxy; local next = next; local setmetatable = setmetatable; --- Unique and private symbol that is used as the index on a class' static -- table to reference the original allocator. local ALLOCATO...
function directives.define(env, evar, val) svar.set(evar, val) return true end
local helpers = {} function helpers.random_angle() return fmath.random_fixedpoint(0fx, fmath.tau()) end function helpers.angle_from_ratio_of_tau(numerator, denominator) return fmath.tau() * fmath.from_fraction(numerator, denominator) end return helpers
return { tllgate2 = { activatewhenbuilt = true, buildangle = 1700, buildcostenergy = 10335, buildcostmetal = 2261, builder = false, buildinggrounddecaldecayspeed = 30, buildinggrounddecalsizex = 5, buildinggrounddecalsizey = 5, buildinggrounddecaltype = "tllgate2_aoplane.dds", buildpic =...
local Square = require "square" local Point = require "point" local Rectangle = require "Rectangle" local Quadrangle = require "Quadrangle" io.stdout:setvbuf("no") local testClass, testClasses function testClasses() testClass(Square, 20, 30, 400) testClass(Rectangle, 40, 50, 200,300) testClass(Quadrangle, 60, ...
------------------------- --SAR SARSettings = { SarPeriod = 0, SarPeriod2 = 0, SarDeviation = 0, Size = 0 } function initSAR() cache_SAR=nil cache_ST=nil EMA=nil BB=nil end function iterateSAR(iSec, cell) param1Min = 4 param1Max = 64 ...
local exec = {} local mattata = require('mattata') local HTTP = require('socket.http') local multipart = require('multipart-post') local ltn12 = require('ltn12') local JSON = require('dkjson') function exec:init(configuration) exec.arguments = 'exec <language> <code>' exec.commands = mattata.commands(self.info.usern...
local plugin_config_iterator = require("kong.dao.migrations.helpers").plugin_config_iterator return { { name = "2015-07-31-172400_init_keyauth", up = [[ CREATE TABLE IF NOT EXISTS keyauth_credentials( id uuid, consumer_id uuid, key text, created_at timestamp, PR...
function vardump(value, depth, key) local linePrefix = "" local spaces = "" if key ~= nil then linePrefix = "["..key.."] = " end if depth == nil then depth = 0 else depth = depth + 1 for i=1, depth do spaces = spaces .. " " end end if type(value) == 'table' then mTable = ge...
return _csharp_getType("io.compression.LuaGZipStream");
----------------------------------------------------------------------------------------- -- -- main.lua -- ----------------------------------------------------------------------------------------- display.setStatusBar( display.HiddenStatusBar ) local mte = require('mte').createMTE() --Load and instantiate MTE. mt...
local module = {} for i, v in pairs(table) do module[i] = v end function module.isArray(tab) local i = 1 for index, _ in pairs(tab) do if type(index) ~= "number" then return false end if index ~= i then return false end i += 1 end return true end function module.concat(...) local args = {...} if ...
object_tangible_quest_outbreak_outbreak_facility_vent_04 = object_tangible_quest_outbreak_shared_outbreak_facility_vent_04:new { } ObjectTemplates:addTemplate(object_tangible_quest_outbreak_outbreak_facility_vent_04, "object/tangible/quest/outbreak/outbreak_facility_vent_04.iff")
-- https://github.com/rcarriga/nvim-dap-ui local dap = require("dap") local dapui = require("dapui") -- 初始化调试界面 dapui.setup( { sidebar = { -- dapui 的窗口设置在右边 position = "right" } } ) -- 如果开启或关闭调试,则自动打开或关闭调试界面 dap.listeners.after.event_initialized["dapui_config"] = funct...
local util = {} util.pack = table.pack or function(...) return { n = select('#', ...), ... } end util.unpack = table.unpack or unpack util.eq = function(x, y) return x == y end util.noop = function() end util.identity = function(x) return x end util.constant = function(x) return function() return x end end util.isa = ...
LabelCount = 0 Labels = {} Threads = {} Id = 0 CamCoords = nil CamRotation = nil CamForward = nil --[[ Threads ]]-- Citizen.CreateThread(function() while true do CamCoords = GetFinalRenderedCamCoord() CamRotation = GetFinalRenderedCamRot(0) CamForward = FromRotation(CamRotation + vector3(0, 0, 90)) if Label...
E2VguiPanels["vgui_elements"]["functions"]["dpropertysheet"] = {} E2VguiPanels["vgui_elements"]["functions"]["dpropertysheet"]["createFunc"] = function(uniqueID, pnlData, e2EntityID,changes) local parent = E2VguiLib.GetPanelByID(pnlData["parentID"],e2EntityID) local panel = vgui.Create("DPropertySheet",parent) --rem...