content
stringlengths
5
1.05M
----------------------------------------------------------------------------------------------- -- Client Lua Script for OpenHouse -- Copyright (c) NCsoft. All rights reserved ----------------------------------------------------------------------------------------------- require "Window" require "string" require "H...
-- When the player logs into the server -- we want to setup the user in cache. function OnPlayerJoined(player) accounts:check(player:GetUUID()) return false -- Do not stop propagation. end -- When a player leaves save the ini file for -- all players loaded in memory. function OnPlayerDestroyed(player) accounts:...
Config = {} Config.AttachedVehicle = nil Config.AuthorizedIds = { "insertcitizenidhere", } Config.MaxStatusValues = { ["engine"] = 1000.0, ["body"] = 1000.0, ["radiator"] = 100, ["axle"] = 100, ["brakes"] = 100, ["clutch"] = 100, ["fuel"] = 100, } Config.ValuesLabels = { ["engine...
--[[ TYPE_simplistic__ignore.lua version: 18.01.10 Copyright (C) 2017, 2018 Jeroen P. Broks This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to ...
RegisterCommand('loadingbar_test_lua', function(source, args, rawCommand) exports["Assynu_Loadingbar"]:StartLoadingbar(5000, "Loading") end)
local Module = {} local UNDEFINED = "%%UNDEFINED%%" local API = { GuiObject = { NotCreatable = true, Properties = { Class = { Value = "GuiObject", Types = {"string"}, ReadOnly = true, }, Visible = { Value = false, Types = {"boolean"}, }, ZIndex = { Value = 1, Types = {"...
object_mobile_dressed_nym_arena_referee = object_mobile_shared_dressed_nym_arena_referee:new { } ObjectTemplates:addTemplate(object_mobile_dressed_nym_arena_referee, "object/mobile/dressed_nym_arena_referee.iff")
includeFile("custom_content/tangible/component/food/component_fryer_repair_tool.lua") includeFile("custom_content/tangible/component/food/ingredient_cereal_flakes.lua")
--- -- @date April 03, 2015 -- -- @description A module/library for the MCP3021, -- an I2C 10-bit A/D converter with a pre-programmed address of 0b1001000 to 0b1001111. -- -- @author Miguel -- GitHub: https://github.com/AllAboutEE -- YouTube: https://www.youtube.com/user/AllAboutEE -- Website: http://AllAboutEE.co...
local m, up_core m = SimpleForm("Version") m.reset = false m.submit = false up_core=m:field(DummyValue,"update_luci",translate("更新LuCI")) up_core.rawhtml = true up_core.template = "unblockneteasemusic/update_luci" up_core.value = translate("未检查") up_core.description = "更新完毕后请手动刷新该界面" up_core=m:field(DummyValue,"u...
require "common" require "response" require "controller" default = controller.new({name="default"}) -- create new table with base class of controller function default.index(request) return default:view_response("index", "layout") end return default
--アロメルスの蟲惑魔 --Scripted by mallu11 function c101012045.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,4,2,nil,nil,99) c:EnableReviveLimit() --immune local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetCode(EFFECT_IM...
MountModData( "ReulanEsper" ) local function OnLoad() local self_dir = "ReulanEsper:esper_mod/" local LOAD_FILE_ORDER = { -- Battle mods "esper_battle_cards", -- "esper_battle_grafts", -- Negotiation mods -- "esper_negotiation_cards", -- "esper_grafts", ...
local function name_comparable(name) return setmetatable({__name = name}, { __eq = function (t, other) if type(other) ~= "table" then return false end return t.__name == other.__name end } ) end return name_com...
--******************************************************************** -- TRAINING --******************************************************************** function train_both() if opt.criterion == 'joint' then print("==> Reseting Euclidean Weights for Loss function") criterion.criterions[2].weight...
local cwd = (...):gsub("%.[^%.]+$", "") .. "." return { name = "game_combatcontrols", description = "Combat controls window", author = "edubart, BeniS", website = "https://github.com/edubart/otclient", sandboxed = true, classPath = cwd .. "combatcontrols" }
return { ["EXAMPLE_FLASH"] = {code="EXAMPLE_FLASH",desc="这是一个例子飘窗",style={ _type_='ErrorStyleTip',},}, ["EXAMPLE_MSGBOX"] = {code="EXAMPLE_MSGBOX",desc="例子弹框,消息决定行为",style={ _type_='ErrorStyleMsgbox',btn_name="要重启了",operation=1,},}, ["EXAMPLE_DLG_OK"] = {code="EXAMPLE_DLG_OK",desc="例子:单按钮提示,用户自己提供回调",style={ _type_='Er...
local scheme = require('scheme') local cmd = vim.cmd -- base command settings cmd('set mouse=a') cmd('syntax on') -- keymaps and settings require('keymap') require('settings') -- plugins an related options require('plug') vim.opt.termguicolors = true scheme.load_scheme('onedark') scheme.load_lualine_scheme('onedark...
class("Timer").extends(gfx.sprite) function Timer:init() Timer.super.init(self, gfx.image.new(127, 72)) self:setCenter(0, 0) self:setZIndex(Z_INDEX_TIMER) self:moveTo(25, 0) end function Timer:enter(show, mode) self.show = show self.mode = mode self.start = math.floor(playdate.getCurrentTimeMilliseconds() / 1...
local Vector2 = require("Datastructures.Vector2"); local Entity = {}; Entity.__index = Entity; function Entity.new(x,y,width,height) local self = setmetatable({ pos = Vector2.New(x,y), velocity = Vector2.New(0,0), width = width, height = height, rotation = 0, inters...
local cartridge = require('cartridge') return require('cartridge').failover_get_params()
--[[ s:UI Automatically loot mail when in range Martin Karer / Sezz, 2014 http://www.sezz.at --]] local S = Apollo.GetPackage("Gemini:Addon-1.1").tPackage:GetAddon("SezzUI"); local M = S:CreateSubmodule("AutoLootMail"); local log, MagicMail, Flip; ---------------------------------------------------...
--[[ Copyright 2017 Stefano Mazzucco 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 applicable law or agreed to in writin...
--[[ reverse_lookup_filter: 依地球拼音为候选项加上带调拼音的注释 本例说明了环境的用法。 --]] -- 帮助函数(可跳过) local function xform_py(inp) if inp == "" then return "" end inp = string.gsub(inp, "([aeiou])(ng?)([1234])", "%1%3%2") inp = string.gsub(inp, "([aeiou])(r)([1234])", "%1%3%2") inp = string.gsub(inp, "([aeo])([iuo])([1234])", "%1...
--oo/controls/tooltip: standard tooltip control --Written by Cosmin Apreutesei. Public Domain. setfenv(1, require'winapi') require'winapi.basewindowclass' require'winapi.tooltip' require'winapi.controlclass' Tooltip = subclass({ __style_bitmask = bitmask{ always_show = TTS_ALWAYSTIP, --show when owner window is i...
local config = require("/etc/nginx/lua/config") local versions = require("/etc/nginx/lua/versions") local module = {} -- Normalize the probability of partitions to 1 function normalize_partitions(partitions) local total_probability = 0 for deployment_group, probability in pairs(partitions) do total_probabilit...
local Vendor = script.Parent.Parent.Parent.Parent local Roact = require(Vendor.Roact) local StudioComponents = require(Vendor.StudioComponents) local EnumItem = require(script.Parent.EnumItem) local Wrapper = Roact.Component:extend("CheckboxWrapper") function Wrapper:init() self:setState({ Selected = Enum.Font.Ca...
---- Roleplay: Prison hook.Add("SetupMove", "EnergyMove", function(InPlayer, InMoveData, InCommandData) if not InPlayer:GetNWBool("bIncapped") then local FinalMaxSpeed = Lerp(InPlayer:GetNWFloat("EnergyValue"), 100, InMoveData:GetMaxClientSpeed()) InMoveData:SetMaxClientSpeed(FinalMaxSpeed) end end) hook.Add...
package.path = "../?.lua;"..package.path local kernel = require("kernel") function main() print("Hello Kernel!!") halt(); end run(main)
local helpers = require('test.functional.helpers')(after_each) local eq = helpers.eq local dedent = helpers.dedent local exec = helpers.exec local feed = helpers.feed local clear = helpers.clear local funcs = helpers.funcs local command = helpers.command local curbufmeths = helpers.curbufmeths local Screen = require('...
function onCreate() -- background shit makeLuaSprite('stageback', 'stageback', -1000, -600); scaleObject('stageback', 1.9, 1.5); setScrollFactor('stageback', 0.5, 0.5); makeLuaSprite('stagefront', 'stagefront', -2100, 800); scaleObject('stagefront', 2.5, 1.5); setScrollFactor('stagefront', 1, 1); ma...
local VarsUI = {} local background local scroll local content local elements local font local label_width = 190 local edit_width = 100 local padding_l = 10 local padding_v = -5 local height = 0 VarsUI.Init = function() table.insert(UISpecialFrames, "KiwiItemInfoKIWIIIFrame") background = CreateFrame("Frame",...
---@class CS.FairyEditor.FTree : CS.FairyEditor.FTreeNode ---@field public treeNodeRender (fun(node:CS.FairyEditor.FTreeNode, obj:CS.FairyEditor.FComponent):void) ---@field public treeNodeWillExpand (fun(node:CS.FairyEditor.FTreeNode, expand:boolean):void) ---@field public indent number ---@type CS.FairyEditor.FTree C...
LuxModule.register("gui", [[ The GUI module handles all kinds of graphical user interface representations and actions. If you want to write your own GUI classes based on the Component class, you need to call the supermethods of the classes. I.e. if you overload the mousePressed method of the button, you need to ...
include("terms") answer = {""} answer_rand = {""} value = {} value_rand = {} numb = 1 + math.random(8); digit = ones[numb-1]; digit10 = tens[numb-1]; if (numb < 5) then name_1 = msg_one[1] name_2 = msg_ten[1] name_3 = msg_hundred[1] name_4 = msg_thousand[1] else name_1 = msg_one...
------------------------------------------------------------------------ --[[ ImageSource ]]-- -- A DataSource consisting of two sets (train and valid) -- of local training images. Similar to ImageNet DataSource. ------------------------------------------------------------------------ local ImageSource, DataSource = t...
local package_table = { generators = { Sine = require "Sine", Square = require "Square", Triangle = require "Triangle", WhiteNoise = require "WhiteNoise", KarplusStrong = require "KarplusStrong", }, filters = { Delay = require "Delay", Lowpass = require "Lowpass", KarplusStrongFilt...
-- -- c_detail.lua -- ---------------------------------------------------------------- -- enableDetail ---------------------------------------------------------------- function enableDetail() if bEffectEnabled then return end -- Load textures detail22Texture = dxCreateTexture('media/detail22.png', "dxt3...
local log = require('tiny.log.helper') local cache = { redis = require('tiny.cache.redis'), shared = require('tiny.cache.shared'), sync = require('tiny.cache.sync') } local cfg = require('tiny.util.cfg') local M = {} M._VERSION="1.0" function M.get(config) local cache_cfg = cfg:get_cache_cfg(config) ...
-- Sample enemy lua scirpt template thing! -- (not hooked to anything in engine yet) local Enemy = ... function Enemy:Something(dt) { while true local timeout = 2.0 -- seconds print "test 1" while timeout > 0 do dt = coroutine.yield() timeout = timeout - dt ...
-- ############################### -- ## Project: MTA:Speedrace ## -- ## Name: JoinHandler ## -- ## Author: Noneatme ## -- ## Version: 1.0 ## -- ## License: See top Folder ## -- ############################### -- FUNCTIONS / METHODS -- local cFunc = {}; -- Local Functions local cSetting = {}; -- Local Settin...
tree_list = {} offset = {} function init() for i=1,32 do if i == 2 then table.insert(offset, 1) else table.insert(offset, 0) end end end function append(t) local v = 1 | (t << 1) table.insert(tree_list, v) end function show(t, l) while l > 0 do ...
--[[ Author: kritth Date: 5.1.2015. Init: Register units to become target ]] function register_unit( keys ) -- Variables local caster = keys.caster local ability = keys.ability local target = keys.target local index = keys.target:entindex() -- Register if ability.units_hit[index] == nil then ability.uni...
game.SoundService.DistanceFactor = 99999 game.SoundService.DopplerScale = 99999 game.SoundService.AmbientReverb = 9 game.SoundService.AmbientReverb = "ConcertHall"
local chestLid1 = script:GetCustomProperty("JokerChest1Lid"):WaitForObject() local chestLid2 = script:GetCustomProperty("JokerChest2Lid"):WaitForObject() local chestTrigger = script:GetCustomProperty("ChestTrigger"):WaitForObject() local chestTrigger2 = script:GetCustomProperty("ChestTrigger2_0"):WaitForObject() loca...
-- February2013 -- Copyright © 2013 John Watson <john@watson-net.com> -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights to -- us...
------------------------------------------------------------------------------ -- FILE: Lekmapv2.2.lua (Modified Pangaea_Plus.lua) -- AUTHOR: Original Bob Thomas, Changes HellBlazer, lek10, EnormousApplePie, Cirra, Meota -- PURPOSE: Global map script - Simulates a Pan-Earth Supercontinent, with -- numerous ...
--[[ Copyright (C) 2018 Google Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope th...
local util = require "util" return assert(dofile(util.GetDataFilePath() .. "gl_specloaderfunc.lua"))
local _, ns = ... local addon = ns.MagnetButtons -- EACH button has this as their OnUpdate, do not do more than is needed here, use DoIt! Timers instead. function addon.OnUpdate(self, elapsed) -- Why blizzard? Ignore these OnUpdate events if (not elapsed) then elapsed = 0.01 end -- This code block is used...
#!@path_to_lua@/lua -- -*- lua -*- -------------------------------------------------------------------------- -- Fixme -- @script processMT -------------------------------------------------------------------------- -- Lmod License -------------------------------------------------------------------------- -- -- Lmod ...
-- Set how large the level will be. pewpew.set_level_size(500fx, 500fx) -- Create an entity at position (0,0) that will hold the background mesh. local background = pewpew.new_customizable_entity(0fx, 0fx) pewpew.customizable_entity_set_mesh(background, "/dynamic/square500x500_graphic.lua", 0) -- Configure player. pe...
-------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("The Black Morass Trash", 269) if not mod then return end mod.displayName = CL.trash mod:RegisterEnableMob( 20201, -- Sa'at 15608, -- Medivh 17879, -- Chrono Lord Deja 17880, -...
-- Simple diffuse shader require 'lubyk' local Demo = require 'demo' local Manip = require 'manip' local V2 = four.V2 local V3 = four.V3 local Quat = four.Quat local Transform = four.Transform local Geometry = four.Geometry local Effect = four.Effect local Buffer = four.Buffer local Camera = four.Camera local Color ...
require 'utiliy' require 'config' local ll = require 'ffi.loadlibrary' local getCommandLine = require 'getCommandLine' local ffi = require 'ffi' local event = require 'ev' local storm = require 'ffi.storm' local hook = require 'ffi.hook' local _, patch = global_config_war3_version() hook.iat('int(__stdcall...
--[[ State Table: keep_position - bool, marker to keep position on arrival after redispatch player - LuaPlayer, player we're tracking preferences for stationpins - LuaElement array, array of stations that are pinned ]] -- _tnp_state_playerprefs_prune() -- Clears invalid sta...
-- Default separators for each supported format local latex_separator = pandoc.RawInline("latex", " \\enspace $\\bullet$ \\enspace ") local html_separator = pandoc.RawInline("html", " &bull; ") local default_separators = {latex = latex_separator, html = html_separator} -- Make list of supported formats from those for...
--[[ UI Base View. 配合BaseUIManager来管理,变可单独使用 @author: muliang @date: 2018-12-26 @description: ]] local MsgDispatcher = require "base.MsgDispatcher" local UIView = class("UIView", require("base.BaseView")) -----------------------以下为内部函数-------------------- local OUT_SCREEN = Vector3.Ne...
config = require('config') print('Node ID is: ' .. config.nodeId) wifiService = require('wifiService') mainService = require('mainService') wifiService.init(config.wifi) mainService.init(config.general) wifiService.onConnect = function () mainService.netUp() end ...
p=game.Players.LocalPlayer t=p.Character.Torso m=p:GetMouse() m.Button1Down:connect(function() if m.Target.Name == 'Base' then return end pcall(function() local part=m.Target part.Anchored = true local sl=Instance.new('SelectionPartLasso',part) sl.Humanoid=p.Character.Humanoid sl.Part=part sl.Color=BrickColor.Random() ...
displayParts=function(trackingWindowParts) sim.addDrawingObjectItem(sphere1Container,nil) sim.addDrawingObjectItem(lineContainerR,nil) sim.addDrawingObjectItem(lineContainerG,nil) sim.addDrawingObjectItem(lineContainerB,nil) local al=0.06 for key,value in pairs(trackingWindowParts) do lo...
return function () local lsp_installer = require "nvim-lsp-installer" local lsp_servers = { 'bashls', 'clangd', 'cmake', 'cssls', 'eslint', 'html', 'jsonls', 'pylsp', 'stylelint_lsp', 'sumneko_lua', 'tsserver', } for _, name in pairs(lsp_servers) do local server...
require "config" function DrawCourtRecords(ui) local bodyOptions = {} local bodySelected = nil local menuButtons = { { title = "Back", key = controls.press_court_record }, -- TODO: Can you present a profile? { title = "Present", ...
-- log:clear("logAM"); -- list of managed AIs local ais = {}; -- list of managed attacks local attacks = { n = 0 }; -- event offsets local eventStartOffset = 0; local eventLockRotationOffset = 1000; local eventAttackOffset = 2000; local eventEndAttackOffset = 3000; local eventFinishOffset = 4000; AttackM...
------------------------------------------------------------------------ --[[ Norm Stabilization]] -- Regularizing RNNs by Stabilizing Activations -- Ref. A: http://arxiv.org/abs/1511.08400 -- For training, this module only works in batch mode. ------------------------------------------------------------------------ ...
local lu = require 'luaunit' local M = {} function M.forstats(t, ...) local sum, count = 0, 0 for i in ... do count = count + 1 sum = sum + i end if t.count then lu.assertEquals(count, t.count) end if t.sum then lu.assertEquals(sum, t.sum) end end return M
local guitk = require("hs._asm.guitk") local image = require("hs.image") local inspect = require("hs.inspect") local finspect = function(...) return (inspect({...}):gsub("%s+", " ")) end local module = {} local display = guitk.new{ x = 100, y = 100, h = 100, w = 100 }:show():passthroughCallback(function(...) pri...
-- inspect = hs.inspect.inspect -- prefix = require("prefix") -- utils = require("utils") -- require("double_cmdq_to_quit") -- require("keymaps") -- require("window") -- require("caffeinate") -- require("url_dispatcher") -- eventListener = require("event_listener") -- pcall(hs.fnutils.partial(require, "local")) -- ut...
local root = script.Parent.Parent local G = require(root.G) local module = {} local inputService = game:GetService("UserInputService") local positionX = math.huge local positionZ = math.huge local size = 4 module.Start = function() local mouse = G.plugin:GetMouse() local widgetButton = G.classes["WidgetButton"]....
-- Gamepad local gamePad = {} local joysticks = love.joystick.getJoysticks() joystick = joysticks[1] function gamePad.isRightDown() local gamepadDown = false local keyboardDown = false if joystick then gamepadDown = joystick:isGamepadDown("dpright") end keyboardDown = love.keyboard.isDo...
local M = {} M.schedule_job = function(opts) local job = require('plenary.job') local color = require'aosp_nvim.color' local environment = require'aosp_nvim.environment' local command = 'true' if opts.command ~= nil then command = opts.command end local args = '' if opts.args...
return{ states = {'q0','q1','q2'}, finalStates = {q1 = true}, startState = 'q0', sigma = {'0','1'}, delta = { q0 = {['0'] = "q2",['1'] = "q1"}, q1 = {['0'] = "q2",['1'] = "q1"}, q2 = {['0'] = "q2",['1'] = "q2"} } }
----------------------------------- -- Area: Southern San d'Oria -- NPC: Ambrotien -- !pos 93.419 -0.001 -57.347 230 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("scripts/globals/missions"); local ID = require("scripts/zones/Southern_San_dOria/ID...
local tab = require "std.Table" function func(a, b, c) local x=5 a, b, c=1,2,3 print( a .. "+" .. b .. "+" .. c .. "=" .. x) return x end
-- Discord Ice Heart#1826 dependency 'es_extended' ui_page "html/ui.html" files { "html/ui.html", "html/js/index.js", "html/css/style.css" } client_script { '@es_extended/locale.lua', 'config.lua', 'client.lua' } server_script { '@es_extended/locale.lua', 'config.lua', 'server.lua' }
print ("Enter your name") name = io.read() if #name <= 3 then print ("that's a short name, " .. name) elseif #name <= 6 then print (name .. " is an average length name") end print ("Enter a number") x = io.read() if x == "0" then print ("input is 0!") elseif x == "1" then print ("input is 1!") elseif x == "2" then...
local words = { --Time {{"how long", "how short", "when", "how much time"}, {"play_pln_gen_bfr_02", "play_pln_gen_bfr_03", "play_pln_gen_bfr_04"}}, --Quantitiy {{"how much", "how many", "how often"}, {"play_pln_gen_count_01", "play_pln_gen_count_02", "play_pln_gen_count_03", "play_pln_gen_count_04", "play_p...
mail.messages = {} mail.registered_on_receives = {} function mail.register_on_receive(func) mail.registered_on_receives[#mail.registered_on_receives + 1] = func end mail.receive_mail_message = "You have a new message from %s! Subject: %s\nTo view it, type /mail" mail.read_later_message = "You can read your messages ...
-------------------------------------------------------------------------------- --- Head: Style -- awesome themes --local rc = "style.awesome_default.rc" --local rc = "style.awesome_gtk.rc" --local rc = "style.awesome_zenburn.rc" --local rc = "style.awesome_sky.rc" --local rc = "style.awesome_xresources.rc" -- my...
local config = require "config" local exports = {} function exports.about(req, res) return res.render('static/about', { pageTitle = '关于我们' }) end function exports.admin(req, res) return res.render('static/admin', { pageTitle = '管理后台' }) end function exports.handbook(req, res) ret...
return(function(e,...)local G="This file was obfuscated using PSU Obfuscator 4.0.A | https://www.psu.dev/ & discord.gg/psu";local Q=e[(452768117)];local U=e[((17842149-#("this isn't krnl support you bonehead moron")))];local P=e["s0d1rx9"];local i=e[((#{437;254;50;(function(...)return 619,606,998,968;end)()}+273084863)...
ScutWriter ={} function ScutWriter:new() local instance = {} setmetatable(instance, self) self.__index = self end function ScutWriter:writeString(name, value) return ScutWriter_writeString(name, value) end function ScutWriter:writeInt32(name, value) return ScutWriter_writeInt32(name, value) en...
require('scripts/class') Writer = class(function(writer) writer.contents = {} end) function Writer:process(number, combo, comboFullTime) local lines = {} local firstInputTime = 40 local betweenInputTime = 2 for sInputs in string.gmatch(combo, '%S+') do local comboCurrentTime = 0 lo...
local the = require "the" local lib = require "lib" local Sway = the.class() function Sway:_init(data) self.n = the.fmap.n self.far = the.fmap.far self.min = math.floor((#data.rows)^the.fmap.min) self.data = data self.cols = data.some.y self.debug = false end function Sway:select(rows, lvl)...
--Character.Subscribe("Respawn", function(self) -- --end) -- --Character.Subscribe("Death", function(self, last_damage_taken, last_bone_damage, damage_type_reason, hit_from_direction, instigator) -- local PlayerControlled = self:GetPlayer() -- if PlayerControlled ~= nil then -- PlayerControlled:UnPossess...
local lapis = require "lapis" local r2 = require("lapis.application").respond_to local app = lapis.Application() app.__base = app app.name = "web.boards." app.path = "/board" app.handle_404 = require "apps.web.internal.code_404" app:match("board", "/:uri_name(/page/:page)", ...
data:extend( { { type = "technology", name = "oil-processing-inverted", icon_size = 256, icon = "__base__/graphics/technology/oil-gathering.png", prerequisites = {"oil-processing"}, effects = { { type = "unlock-recipe", recipe = "basic-oil-processing-inverted" ...
--======================================= -- filename: entities/enemies/oracle.lua -- author: Shane Krolikowski -- created: Apr, 2018 -- description: Oracle enemy entity. --======================================= local Enemy = require 'entities.enemies.enemy' local Oracle = Enemy:extend() function Oracle...
local API = {} -- nil RegisterFortTower() [Client, Server] function API.RegisterFortTower(id, functionTable) -- Generate the table if it doesn't exist if not _G.APIFortTowers then _G.APIFortTowers = {} end if _G.APIFortTowers[id] then warn(string.format("Registering fort tower with id: %s twice", id)) end ...
--[[ 2020-2022 Xalalau Xubilozo. MIT License https://xalalau.com/ --]] -- Run synthetic tests to easyly check if code changes are working function BS:Debug_RunTests(args) local tests = {} tests.aux = {} tests.text = { { "all", "Run all tests" }, { "CompileFile", "Run a prohibited c...
--[[ More Blocks: (x)pane definitions Copyright (c) 2018 Och Noe Licensed under the zlib license. See LICENSE.md for more information. --]] xpanes.register_pane("coal_glass_pane", { description = "Coal Glass Pane", textures = {"moreblocks_coal_glass.png","xpanes_pane_half.png","moreblocks_xpanes_c...
--dead simple named-event manager local uv = require "luv" local coroutine = require "prailude.util.coroutine" local weak_key = {__mode = 'k'} local mm = require "mm" local log = require "prailude.log" local channels = setmetatable({}, { __index = function(t, k) local cbs = { permanent_callbacks = {}, ...
-- -- Copyright 2010-2021 Branimir Karadzic. All rights reserved. -- License: https://github.com/bkaradzic/bx#license-bsd-2-clause -- project "bimg_decode" kind "StaticLib" includedirs { path.join(BX_DIR, "include"), path.join(BIMG_DIR, "include"), path.join(BIMG_DIR, "3rdparty"), path.join(BIMG_DIR, "3rdpa...
-- A basic encounter script skeleton you can copy and modify for your own creations. _ENV = require "CORE/init" -- Pre-Wrapping setup variables autowrapbullets = false autowrapsprites = false autowraptext = false autowrapfiles = false -- music = "shine_on_you_crazy_diamond" --Either OGG or WAV. Extension is ad...
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0240-sdl-js-pwa.md -- -- Description: -- Verify that the SDL responds with success:false, "INVALID_DATA" to request without mandatory pa...
package("mongo-c-driver") set_homepage("http://mongoc.org/") set_description("The MongoDB C Driver.") set_license("Apache-2.0") add_urls("https://github.com/mongodb/mongo-c-driver/archive/$(version).zip", "https://github.com/mongodb/mongo-c-driver.git") add_versions("1.19.0", "3e54596...
include "map_builder.lua" include "trajectory_builder.lua" options = { map_builder = MAP_BUILDER, trajectory_builder = TRAJECTORY_BUILDER, map_frame = "map", tracking_frame = "base_footprint", published_frame = "base_footprint", odom_frame = "odom", provide_odom_frame = true, publish_frame_projected_to...
-- Scripts juste pour tester des effets à la mano -- tout sur la couleur: https://www.w3schools.com/colors/default.asp -- roue des couleurs: https://iro.js.org/?ref=oldsite print("\n az_init_led.lua zf181125.1333 \n") znbled=300 function RGB_clear() ws2812.init() buffer = ws2812.newBuffer(znbled, 3) buff...
-- Some sugar around the linear library -- meta-methods for arithmetic operations, function to print. -- TODO? implement it directly into the linear library? linear = require "linear" oop = require "loop.simple" --function to ease matrix definition --TODO catch errors Linear = oop.class(linear) linear.Vector = oop.cl...
local M = {} local luv = vim.loop function M.promisify(fn) return function(...) local args = { ... } return M.new(function(resolve, reject) table.insert(args, function(err, v) if err then return reject(err) end resolve(v) end) fn(unpack(args)) end) ...