content
stringlengths
5
1.05M
local utils = {} local api = vim.api utils.map = function(key) -- get the extra options local opts = { noremap = true, silent = true } for i, v in pairs(key) do if type(i) == "string" then opts[i] = v end end -- basic support for buffer-scoped keybindings local buff...
--[[ A simple test to figure out what the raw switching cost is for the scheduler. Set a high frame rate until you're satisfied it's fast enough for your needs. With a framerate of 1,000, we are able to switch between tasks with only 1ms spent within the tasks. If you're trying to maintain s...
local mock_time = require("deftest.mock.time") local mock = require("deftest.mock.mock") local time_string = require("eva.libs.time_string") local const = require("eva.const") local eva = require("eva.eva") local luax = require("eva.luax") local function set_time(iso_time) local time = time_string.parse_ISO(iso_time)...
----------------------------------- -- Area: Monastic Cavern -- NM: Orcish Overlord -- Note: PH for Overlord Bakgodek -- TODO: messages should be zone-wide ----------------------------------- local ID = require("scripts/zones/Monastic_Cavern/IDs") mixins = {require("scripts/mixins/job_special")} require("scripts/glob...
--// services local LoadLibrary = require(game:GetService('ReplicatedStorage'):WaitForChild('PlayingCards')) local Services = setmetatable({}, {__index = function(cache, serviceName) cache[serviceName] = game:GetService(serviceName) return cache[serviceName] end}) --// functions local Initialize = script.Paren...
local answerModule = require "module.answerModule" local ItemHelper= require"utils.ItemHelper" local timeModule = require "module.Time" local matching = {} function matching:Start(data) self:initData(data) self:initUi() end function matching:initData(data) self.index = data and data.index or 1 self.q...
beastmaster_call_of_the_wild_boar_oaa = class(AbilityBaseClass) function beastmaster_call_of_the_wild_boar_oaa:OnSpellStart() local caster = self:GetCaster() local playerID = caster:GetPlayerID() local abilityLevel = self:GetLevel() local duration = self:GetSpecialValueFor("duration") self:SpawnBoar(caster...
MiDKP = MiDKP or {} local M = MiDKP M.Locale = {} function M.Locale:NewLocale(locale,default) local l = {} M.Locale[locale] = l --[[ if default then M.Locale.Default = l setmetatable(M.Locale.Default,{__index = function(t,index) if not t[index] then return index else return t[index] end end}) end]] return l end functio...
function start (song) setCamZoom(1) setHudZoom(2) showOnlyStrums = true strumLine1Visible = false strumLine2Visible = false end function update (elapsed) if curStep == 5 then setHudZoom(1) end if curStep == 100 then setHudZoom(2) end if curStep == 120 then strumLine1Visible = true e...
txd = engineLoadTXD("jester.txd") engineImportTXD(txd, 559) dff = engineLoadDFF("jester.dff", 559) engineReplaceModel(dff, 559)
local http = require("socket.http") -- Debian package is 'lua-socket' function scrapeTime (pageAddress, timeZone) local page = http.request(pageAddress) if not page then return "Cannot connect" end for line in page:gmatch("[^<BR>]*") do if line:match(timeZone) then return line:match(...
----------------------------------- -- -- Zone: Windurst_Woods (241) -- ----------------------------------- local ID = require("scripts/zones/Windurst_Woods/IDs") require("scripts/globals/events/harvest_festivals") require("scripts/globals/conquest") require("scripts/globals/settings") require("scripts/globals/chocobo"...
--- --- Created by Seaton. --- DateTime: 2017/11/9 0009 15:51 --- local upload = require('resty.upload') local util = require('common.util') local chunk_size = 4096 local form = upload:new(chunk_size) local file local save_path = ".//workspace/upload/" local FileUpload = {} --获取文件名 function FileUpload:get_filename(...
object_tangible_wearables_armor_armor_clothing_nostat_base_battle = object_tangible_wearables_armor_shared_armor_clothing_nostat_base_battle:new { } ObjectTemplates:addTemplate(object_tangible_wearables_armor_armor_clothing_nostat_base_battle, "object/tangible/wearables/armor/armor_clothing_nostat_base_battle.iff")
local theme={colors={normal={blue={0.1921568627451,0.50980392156863,0.74117647058824,1},green={0.1921568627451,0.63921568627451,0.32941176470588,1},cyan={0.50196078431373,0.69411764705882,0.82745098039216,1},white={0.71764705882353,0.72156862745098,0.72549019607843,1},red={0.89019607843137,0.10196078431373,0.1098039215...
if(GetRealmName() == "Whitemane")then WP_Database = { ["Punch"] = "ST:857/99%SB:894/99%SM:1033/99%", ["Wompy"] = "ST:851/99%SB:866/99%SM:1066/99%", ["Outbreak"] = "ST:902/99%SB:875/99%SM:1096/99%", ["Bigjoo"] = "ST:869/99%SB:878/99%SM:1043/99%", ["Kuzuqt"] = "ET:667/87%SB:831/99%SM:1067/99%", ["Grizzmint"] = "ST:816/99...
describe('runner', function() it('runs on empty configuration', function() assert.Not.Nil(require('wowless.runner').run({})) end) end)
local math = math; --local constant = _G.__LUAEX__.constant; constant("MATH_ARL", "all real numbers"); constant("MATH_INF", "infinite"); constant("MATH_NAN", "not a number"); constant("MATH_UNDEF", "undefined"); --the Eucclidian algorithm for finding the gcf --[[local function eucclidiangcf(nDividend, nDivisor) l...
return { postgres = { up = [[ DO $$ BEGIN ALTER TABLE IF EXISTS ONLY "foos" ADD "shape" TEXT UNIQUE; EXCEPTION WHEN DUPLICATE_COLUMN THEN -- Do nothing, accept existing state END; $$; ]], teardown = function(connector, _) assert(connector:connect_migrat...
local inventory = { items = { 1, 2 } } function inventory:addItem(id) table.insert(self.items, id) end function inventory:addItemsList(list) table.move(list, 1, #list, #self.items + 1, self.items) end function inventory:removeItem(id) table.removeByValue(self.items, id) end function inventory:getEquippableIds()...
return { coreter = { acceleration = 0.0407, activatewhenbuilt = true, brakerate = 0.06, buildcostenergy = 1867, buildcostmetal = 107, builder = false, buildpic = "coreter.dds", buildtime = 6400, canattack = false, canguard = true, canmove = true, canpatrol = true, canstop = 1, category = "A...
local cargo = dtrequire("lib.cargo") local json = dtrequire("lib.json") local lume = dtrequire("lib.lume") local resource = {} local base = {} cargo.loaders.shader = love.graphics.newShader function cargo.loaders.json(path) local s = love.filesystem.read(path) if s then return json.decode(s) end...
data:extend({ { type = "int-setting", name = "initial-scan-radius", setting_type = "runtime-global", default_value = 70, minimum_value = 10, maximum_value = 300 }, { type = "int-setting", name = "initial-scan-period", setting_type = "runtime-global", default_value = 10, minimum_value = 1, max...
local parserName = "MAIL_lua" local parserVersion = "2020.03.31.1" local mailParser = nw.createParser(parserName, "Internet Message Format") nw.logDebug(parserName .. " " .. parserVersion) local summary = {["parserName"] = parserName, ["parserVersion"] = parserVersion} summary.parserDetails = [=[ Extracts values fr...
local sources = {"src/Luvent.lua"} local tests = {"tests/Luvent.spec.lua"} tup.rule(sources, "^ Running Luacheck^ luacheck %f") tup.rule(sources, "^ Creating TAGS for Emacs^ ctags-exuberant --languages=lua -e %f", {"TAGS"}) tup.rule(tests, [[^ Running Unit Tests^ busted --pattern=".spec.lua" %f]]...
nomes = {"Suzana", "Marcos", "Rosana", "Roberto", "Tiago", "Mateus", "Felipe", "Ana", "Almir", "Juliana", "Renata", "Marcos", "Murilo", "Luciana", "Regina", "Jose", "Leandro", "Julia", "Andre", "Camilla", "Maria", "Tereza", "Jonas", "Amadeu", "Teodoro", "Sampaio", "Reginaldo", "Pedro", "Michele", "Rick", "Annie"} ...
-- Standard awesome library local awful = require("awful") -- Theme handling library local beautiful = require("beautiful") local dpi = beautiful.xresources.apply_dpi -- Widget library local wibox = require("wibox") -- Helpers local helpers = require("helpers") -- Todo --------- local todo_text = wibox.widget{ ...
local activeSounds = {} -- -- Threads -- Citizen.CreateThread(function() while true do Citizen.Wait(10) if next(activeSounds) then local playerCoordinates = GetEntityCoords(PlayerPedId()) local cameraDirection = getCameraDirection() SendNUIMessage({ ...
--[[ Author : Shyam "Doggan" Guthikonda Modified : 11.19.07 Desc : The main data source. --]] -- The dictionary. Add entries here. They don't have to be in alphabetical order, but -- keeping it as such allows for easier maintenance. WoWSlang_dict = { ["<3"] = "Love (it looks like a heart).", ...
local prompt = require('prompt')(require('pretty-print')) local exec = require('exec') local log = require('log').log -- Takes a time struct with a date and time in UTC and converts it into -- seconds since Unix epoch (0:00 1 Jan 1970 UTC). -- Trickier than you'd think because os.time assumes the struct is in local t...
local infinity_inserter = {} function infinity_inserter.snap(entity) local control = entity.get_control_behavior() if not control then -- this is a new inserter, so set control mode to blacklist by default entity.inserter_filter_mode = "blacklist" end end return infinity_inserter
dofile("test_setup.lua") local file1 = [=[ local iter = 0 return { f1 = function() iter = iter + 1 return iter end, f2 = function() log("f2 called, which uses global log") iter = iter + 1 return iter end } ]=] loca...
IS_WINDOWS = (require"package".config:sub(1,1) == '\\') local function export(t, d) d = d or _G for k,v in pairs(t) do d[k] = v end return d end DEFINITION_STRING_TYPE_NAME = 'varchar(50)' QUERYING_STRING_TYPE_NAME = 'string' TEST_TABLE_NAME = 'odbc_test_dbt' TEST_PROC_NAME = 'odbc_test_dbsp' ...
local acos = math.acos local cos = math.cos local max = math.max local min = math.min local remove = table.remove local sin = math.sin local sqrt = math.sqrt local function sign(x) return x < 0 and -1 or 1 end -- http://frederic-wang.fr/decomposition-of-2d-transform-matrices.html local function decompose2(transform...
-- dependencies local json = require('json') local discordia = require('discordia') local client = discordia.Client() storyServerID = "784167695372779561" storyChannelID = "784644349879255080" chapterSubtitle = "𝒞𝒽𝒶𝓅𝓉𝑒𝓇" charLimit = 1000 wipe = false post = true -- storyChannel:send{embed = chapter} client:on(...
-- inet addr tests context("Inet addr check functions", function() local ffi = require("ffi") ffi.cdef[[ typedef struct rspamd_inet_addr_s rspamd_inet_addr_t; bool rspamd_parse_inet_address (rspamd_inet_addr_t **target, const char *src); void rspamd_inet_address_freefree (rspamd_inet_addr_t *addr); ...
-- RGBClock local now = timetable(time(), _G.timezone, _G.dst) local colors = { { 26, 188, 156}, -- 00:00 { 46, 204, 113}, -- 01:00 { 52, 152, 219}, -- 02:00 {155, 89, 182}, -- 03:00 { 52, 73, 94}, -- 04:00 {243, 156, 18}, -- 05:00 {211, 84, 0}, -- 06:00 {192, 57, 43}, ...
--[[- Maps key codes from 1.12 and before to those used by 1.13 and later. Usage: key-code-converter my_program ]] if not fs.exists("old_keys.lua") then local request = http.get("https://raw.githubusercontent.com/SquidDev-CC/CC-Tweaked/master/src/main/resources/assets/computercraft/lua/rom/apis/keys.lua") ...
local ord={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"} local refOrder = {["1"] = "more-science-pack-01", ["2"] = "more-science-pack-02", ["3"] = "more-science-pack-03", ["4"] = "more-science-pack-04", ["5"] = "more-science-pack-05", ["6"] = "more-science-pa...
local _, core = ...; local _G = _G; local MonDKP = core.MonDKP; local L = core.L; function MonDKP:DKPModes_Misc() local f = core.ModesWindow.DKPModesMisc; f.AutoAwardContainer = MonDKP:CreateContainer(f, "AutoAwardContainer", L["AUTOAWARD"]) f.AutoAwardContainer:SetPoint("TOPLEFT", f, "TOPLEFT", 40, -40)...
dofile("../../tools/premake/options.lua") dofile("../../tools/premake/globals.lua") link_cmd = "" build_cmd = "" if platform_dir == "osx" then xcodebuildsettings { ["MACOSX_DEPLOYMENT_TARGET"] = "10.13" } end solution "bullet_build" location ("build/" .. platform_dir ) configurations { "Debug", "Release" } -...
-- Prosody IM -- Copyright (C) 2008-2010 Matthew Wild -- Copyright (C) 2008-2010 Waqas Hussain -- -- This project is MIT/X11 licensed. Please see the -- COPYING file in the source package for more information. -- local st = require "util.stanza"; local dataform_new = require "util.dataforms".new; local usermanager_us...
local Promise = nil RegisterNUICallback('close', function() SetNuiFocus(false, false) if Promise then Promise:resolve(false) end end) RegisterNUICallback('succeed', function() SetNuiFocus(false, false) Promise:resolve(true) end) RegisterNUICallback('failed', function() ...
-------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("Knight Captain Valyri", 1771, 2099) if not mod then return end mod:RegisterEnableMob(127490) -- Knight Captain Valyri mod.engageId = 2103 mod.respawnTime = 30 -------------------...
local playsession = { {"safriq", {514751}}, {"KickassLee", {748545}}, {"loutanifi", {181679}}, {"corbin9228", {1934415}}, {"FallenAngel1010", {375411}}, {"SmaleUp", {1469}}, {"davidbutora", {347039}}, {"raskl", {152763}}, {"Kruv", {429100}}, {"GreySintax", {572168}}, {"sharpshot2566", {638396}}, {"slyboogy"...
---@meta resty_lock={} function resty_lock.expire(self, time) end function resty_lock.unlock(self) end function resty_lock.new(_, dict_name, opts) end resty_lock._VERSION="0.08" function resty_lock.lock(self, key) end return resty_lock
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" local TOWERRECORD_PB = require("TowerRecord_pb") module('TowerRecord2DB_pb') TOWERRECORD2DB = protobuf.Descriptor(); local TOWERRECORD2DB_RECORDS_FIELD = protobuf.FieldDescriptor(); local TOWERRECORD2DB_M_UPDATETIME_FIELD = protob...
local path = require 'path' return function( args ) -- Check for script file name if not args[ 0 ] then error( 'Lua script missing' ) end -- Resolve full path to the Lua script args[ 0 ] = path.realpath( args[ 0 ] ) -- Add the Lua script folder to the Lua path --local dir = path.split( args[ 0 ...
supplyLimit("Corvette",50) supplyLimit("Frigate",300) supplyLimit("Capital",130) supplyLimit("Platform",18)
local module = {} local inputService = game:GetService("UserInputService") local positionX = math.huge local positionZ = math.huge local material = 1376 local size = 4 module.Initiate = function() local mouse = _G.plugin:GetMouse() local connection1 = nil local connection2 = nil local connection3 = nil local wi...
--[[ ReaScript Name:ReaOpen Author: LKC,JerContact REAPER: 5+ Extensions: SWS Version: 1.80 Provides: ReaOpen.exe ReaOpen MAC.zip ReaOpen.rpp install_wwise_command_for_pc.bat [Main] ReaOpen - Init Setup.lua [Main] ReaOpen - Open script directory.lua About: ReaOpen is a free lightweight program that...
ItemConfig["water_bottle"] = { name = "Water Bottle", type = "usable", category = "Grocery", price = 5, interactions = { use = { use_label = "Drink", sound = "sounds/drink.wav", animation = { name = "DRINKING" }, event = "DrinkWater" },...
---@meta ---@class cc.TransitionPageTurn :cc.TransitionScene local TransitionPageTurn={ } cc.TransitionPageTurn=TransitionPageTurn ---* Returns the action that will be performed with size.<br> ---* param vector A given size.<br> ---* return The action that will be performed. ---@param vector size_table ---@return...
set_project("log") set_version("0.10", {build = "%Y%m%d%H%M"}) set_xmakever("2.5.3") set_config("buildir", "xmake.Build") set_config("mode", "debug") set_config("plat", "macosx") set_config("arch", "x86_64") set_config("cxflags", "-O2") target("test") set_kind("binary") set_targetdir("$(buildir)/$(mod...
----------------------------------- -- -- tpz.effect.CAROL -- ----------------------------------- require("scripts/globals/status") require("scripts/globals/magic") ----------------------------------- function onEffectGain(target, effect) target:addMod(tpz.magic.resistMod[effect:getSubPower()], effect:getPowe...
require("rrpg.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); function newfrmGerenciador01_Sessao() __o_rrpgObjs.beginObjectsLoading(); local obj = gui.fromHandle(_obj_newObject("form")); local self = obj;...
object_tangible_loot_beast_beast_steroid_spider_tanray_mk2 = object_tangible_loot_beast_shared_beast_steroid_spider_tanray_mk2:new { } ObjectTemplates:addTemplate(object_tangible_loot_beast_beast_steroid_spider_tanray_mk2, "object/tangible/loot/beast/beast_steroid_spider_tanray_mk2.iff")
 local name = '' init = function (param) print('init .....', param) name = param return 0 end quit = function () print('quit .....') return 0 end on_cmd = function (msg, lparam, wparam, cobj) print('on_cmd.name:'..name, msg, lparam, wparam, cobj) return 0 end
Name = "Wall" Order = 0.8 -- Controls sort order for ID use. In the next patch ONLY names will be allowed! Hint = "$4954" Title = "$5464" Hotkey = 107 AI = 5 Icon = { texture = "DATA:UI\\NewUI\\Taskbar\\FormationIcons\\form_ico_wall.dds", uvRect = { 0/128, 0/512, 128/128, 128/512 }, ...
local function ChangeUser(msg) local text = msg.content_.text_ if ChatType == 'sp' or ChatType == 'gp' then if text then tdcli_function({ID = "GetUser",user_id_ = msg.sender_user_id_},function(arg,result) if result.id_ then local abbs = DevAbs:get("DevProxTEAM:User"..result.id_) if not result.username_ then if abbs...
--- -- Module for manipulating the request sent to the Service. -- @module kong.service.request local cjson = require "cjson.safe" local checks = require "kong.pdk.private.checks" local phase_checker = require "kong.pdk.private.phases" local ngx = ngx local ngx_var = ngx.var local table_insert = table.insert local t...
local ffi = require("ffi"); local facets = require("lua_schema.facets"); local basic_stuff = require("lua_schema.basic_stuff"); local error_handler = require("lua_schema.error_handler"); local __hexBinary_handler_class = {} local core_utils = require("lua_schema.core_utils"); __hexBinary_handler_class.type_name = 'hex...
-- ----------------------------------------------------------------------------- -- Common code for dolt benchmarks. -- ----------------------------------------------------------------------------- function init() assert(event ~= nil, "this script is meant to be included by other OLTP scripts and should not be ca...
/*--------------------------------------------------------------------------\ | THIS ENTIRE PLUGIN IS CREATED BY VIOMI | | PLEASE DO NOT COPY OR SELL ANY CODE IN HERE WITHOUT PERMISSION FROM VIOMI | | Contact: viomi@openmailbox.org | \-------...
local TXT = Localize{ [0] = " ", [1] = "Door", [2] = "Leave Castle Harmondale", [3] = "Chest", [4] = "Button", [5] = "Lever", [6] = "Vault", [7] = "Cabinet", [8] = "Switch", [9] = "Strange Torch", [10] = "Bookcase", [11] = "Arnold's Super Protein Drink", [12] = "Phasing Cauldron", [13] = "Elemental Totem"...
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( 'shared.lua' ) function ENT:Initialize() self:SetModel( "models/props_lab/powerbox01a.mdl" ) self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self:SetUseType( SIMPLE_USE ) self:PhysWake()...
local module = {} module.__index = module local showing = nil module.New = function() local object = setmetatable({}, module) object.scrollingFrame = Instance.new("ScrollingFrame") object.scrollingFrame.BackgroundColor3 = settings().Studio.Theme:GetColor(Enum.StudioStyleGuideColor.MainBackground) object.scrolli...
local _, class = UnitClass("player"); if (class == "MONK" or class == "WARLOCK") then --[[ The MIT License (MIT) Copyright (c) 2015-2018 Anthony "Turncoat Tony" Goins Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
include("shared.lua") local cachedVaults = {} function ENT:Initialize() self.room = ClientsideModel("models/freeman/vault/floor_safe_interior.mdl") self.room:SetPos(self:GetPos()) self.room:SetAngles(self:GetAngles()) self.room:SetNoDraw(true) self.room:SetBodygroup(1, 1) cachedVaults[self:EntIndex()] = self...
--- -- @module Concord local PATH = (...):gsub('%.init$', '') local Concord = { _VERSION = "3.0", _DESCRIPTION = "A feature-complete ECS library", _LICENCE = [[ MIT LICENSE Copyright (c) 2020 Justin van der Leij / Tjakka5 Permission is hereby granted, free of charge, to any person...
#!/usr/local/bin/lua -- 这是单行注释 --[[ 呐,看好了 这可是多行注释 --]] -- table print("table 使用示例:") table1 = {name="Jackie",age=28,from="GD","This is a string in table",100} for k,v in pairs(table1) do print(k.."-" .. v) end -- 键为nil,则等于是被删除了 table1.name = nil for k,v in pairs(table1) do print(k..":"..v) end -- boolean print(...
-- Default settings table, returns the table, so use -- local <x> = require 'SettingsDefault' to include in another file. -- default settings here, override only what you change in Initialize() local settings = { -- Name of the settings group (difficulty) name = 'Standard', -- Printed to c...
key="PASSWORD"local a=load((function(b,c)function bxor(d,e)local f={{0,1},{1,0}}local g=1;local h=0;while d>0 or e>0 do h=h+f[d%2+1][e%2+1]*g;d=math.floor(d/2)e=math.floor(e/2)g=g*2 end;return h end;local i=function(b)local j={}local k=1;local l=b[k]while l>=0 do j[k]=b[l+1]k=k+1;l=b[k]end;return j end;local m=function...
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [PTU-Proprietary] Transfer SystemRequest from mobile app to HMI -- -- Description: -- 1. Used preconditions: SDL is built with "DEXTENDED_POLICY: ON" flag. Trigger for PTU occurs -- 2. Performed step...
--- Rotation --- --- Rotation is an Animation that automatically applies an affine rotation to the region being animated. You can set the origin around which the rotation is being done, and the angle of rotation in either degrees or radians. --- Rotation animations have no effect on FontStrings. --- --- @See http://w...
-- Copyright 2012 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$ --- -- This class provides the interface between ...
local ffi = require"ffi" ----------------------------serialization local function cdataSerialize(cd) if ffi.istype("float[1]", cd) then return table.concat{[[ffi.new('float[1]',]],cd[0],[[)]]} elseif ffi.istype("int[1]", cd) then return table.concat{[[ffi.new('int[1]',]],cd[0],[[)]]} elseif...
-- Advanced Source Library -- The /other/ A/S/L. :3 -- by zorg § ISC @ 2018- -- Safeguards assert(select(1, love.getVersion()) >= 11, "This library needs at least LÖVE 11.0.0 to function.") assert(love.audio or love.sound, "This library needs both love.audio and love.sound enabled to function.") -- Constants lo...
--- Player global creation -- Requiring this module will automatically create a global.players[index] for all new players using stdlib's Event system -- @module Player -- @usage local Player = require 'stdlib/event/player' -- -- The fist time this is required it will register player creation events require('stdlib/ev...
return { require = require }
-- This needs to be an ActorFrame because children will want to load the base and merge their own elements into the table. t = Def.ActorFrame {}; --t[#t+1] = StandardDecorationFromFile( "LeftFrame", "LeftFrame" ); --t[#t+1] = StandardDecorationFromFile( "RightFrame", "RightFrame" ); t[#t+1] = StandardDecorationFromFil...
require( "iuplua" ) require( "iuplua_pplot" ) plot = iup.pplot{ TITLE = "Simple Line", MARGINBOTTOM="65", MARGINLEFT="65", AXS_XLABEL="X", AXS_YLABEL="Y", LEGENDSHOW="YES", LEGENDPOS="TOPLEFT", } iup.PPlotBegin(plot, 0) iup.PPlotAdd(plot, 0, 0) iup.PPlotAdd(plot, 1, 1) iup.PPlotEnd(plot)...
local colors = require("cobalt2.utils").colors local styles = require("cobalt2.utils").styles local Group = require("cobalt2.utils").Group --------------------------------------------------------------------------------- -- leap.nvim -- ----------------...
local template = {} template.html = "" local file = io.open("html/template.html", "rb") local i for i in file:lines() do template.html = template.html .. i end file:close() return template
biogenic_construction_ConversationTemplate = ConvoTemplate:new { initialScreen = "", templateType = "Lua", luaClassHandler = "BiogenicConstructionConvoHandler", screens = {} } intro_assistant_done = ConvoScreen:new { id = "intro_assistant_done", leftDialog = "@conversation/biogenic_construction:s_575de8f1", -- T...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BceMergeProp_pb', package.seeall) local BCEMERGEPROP = protobuf.Descriptor(); local BCEMERGEPROP_SRCPEW_FIELD = protobuf.FieldDescriptor(); local BCEMERGEPROP_DSTPEW_FIELD = protobuf.FieldDescriptor(); BCEMERGEPROP_SRCPEW_FIELD.na...
--[[ ------------------------------------ Description: HPC Speed PowerUp, Phasor V2+ Copyright (c) 2016-2018 * Author: Jericho Crosby * IGN: Chalwk * Written and Created by Jericho Crosby ----------------------------------- ]]-- -- When a player interacts with a camouflage, this script will give them a temporary speed ...
return function() dofile('wsconsole.lua')() leds = require 'leds' sat = 255 val = 255 total = 101 ws2812.init() buf = ws2812.newBuffer(total, 3) buf1 = ws2812.newBuffer(total, 3) buf2 = ws2812.newBuffer(total, 3) buf:fill(255,255,255) buf1:fill(0,0,0) buf2:fill(0,0,0) ...
local Workspace = game:GetService("Workspace") return function() local currentCamera = Workspace.CurrentCamera return currentCamera.ViewportSize end
local Fonts = require 'scripts.composer.fonts' local Layouts = {} Layouts.field = { x = 0, y = 0, w = 512, h = 512 } Layouts.anime = { art = { x = 13, y = 14, w = 544, h = 582, blur = 4 }, atk = { x = 234, y = 725, w = 157, h = 48, f = Fonts.get_family("values", "18.7"), ff = Fonts.get_file("values"), a = "...
--!strict local actions = require(script.Parent.actions) type AnyAction = actions.AnyAction export type Reducer<State = any, Action = AnyAction> = (State?, Action) -> State export type ReducersMapObject<State = any, Action = AnyAction> = { -- TODO Luau: used to be [K in keyof S]: K[S] [string]: Reducer<State, Acti...
-- Hives should begin as mature. local oldOnCreate = Hive.OnCreate function Hive:OnCreate() oldOnCreate(self) self:SetMature() end
return {'weg','wegaanduiding','wegaanleg','wegaansluiting','wegafzetting','wegbarricade','wegbebakening','wegbedekking','wegbeheer','wegbeheerder','wegbeplanting','wegbereider','wegbergen','wegberm','wegbezuinigen','wegblazen','wegblijven','wegblijver','wegblijvers','wegblokkade','wegbombarderen','wegbonjouren','wegbra...
workspace ("Primordial") location("./") defines "_CRT_SECURE_NO_WARNINGS" configurations { "Debug", "Release" } platforms "x64" includedirs { "./Engine", "./Engine/Externals/fmod/include", "./Engine/Externals/fmod/studio/include", "./Engine/Externals/freetype/include", "./Engine/E...
local pkgconfig = require 'pkgconfig' local LIB_DIR = "lib/" local RUNTIME_DIR = "runtime/" local SRC_DIR = "src/" solution "ToyRaygun" startproject "ToyRaygun" configurations { "Release", "Debug" } filter "system:windows" architecture "x86_64" filter "system:macosx" architecture "A...
local bytecode = require "luavm.bytecode" local vm = require "luavm.vm".native() function pass(...) return ... end local dump = string.dump(function(...) print(...) local r,e = 4,4 local a, b, c = pass(1,2,3) print(a,b,c) print(unpack({4,6,2,4})) local function t() r = 5 e = 6 end t() print(r,e) local ...
local android = {} androidMove = 0 androidInteract = false androidVertical = 0 androidEnter = 0 androidEsc = 0 function android.load() gLeft = { x = 4, y = height - 12, w = 12, h = 8 } gRight = { x = gLeft.x + gLeft.w + 4, y = gLeft.y, w = 12, h = 8 } gLeft2 = { x = 2, y ...
local rshift, lshift, band, ok, _ local string_loader string_loader = function(str) local sent = false return function() if sent then return nil end sent = true return str end end ok, band = pcall(load(string_loader([[ return function(a,b) a = a & b if a > 0x7FFFFFFF then -- e...
require 'lfs' -- Ensure the test is launched within the specs/ folder assert(string.match(lfs.currentdir(), "specs")~=nil, "You must run this test in specs folder") local initial_dir = lfs.currentdir() -- Go to specs folder while (not string.match(lfs.currentdir(), "/specs$")) do lfs.chdir("..") end local specs_d...
-- This is the central module of the game. -- All of the large-scale logic is here, along with miscellaneous small tasks. -- utilities module util = require "util" -- spawn module spawn = require "spawn" -- collision module shc = require "shc" -- input and I/O device module inbox = require "inbox" -- set ...